| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GtrTab; struct GtrTabClass; enum GtrTabMove; GtrTab * gtr_tab_new (GtrPo *po); GtrPo * gtr_tab_get_po (GtrTab *tab); gint gtr_tab_get_active_trans_tab (GtrTab *tab); GtrContextPanel * gtr_tab_get_context_panel (GtrTab *tab); GtrView * gtr_tab_get_active_view (GtrTab *tab); GList * gtr_tab_get_all_views (GtrTab *tab,gboolean original,gboolean translated); void gtr_tab_message_go_to (GtrTab *tab,GtrMsg *to_go,gboolean searching,GtrTabMove move); GtrTab * gtr_tab_get_from_document (GtrPo *po); gboolean gtr_tab_get_autosave_enabled (GtrTab *tab); void gtr_tab_set_autosave_enabled (GtrTab *tab,gboolean enable); gint gtr_tab_get_autosave_interval (GtrTab *tab); void gtr_tab_set_autosave_interval (GtrTab *tab,gint interval); void gtr_tab_clear_msgstr_views (GtrTab *tab); void gtr_tab_copy_to_translation (GtrTab *tab); void gtr_tab_block_movement (GtrTab *tab); void gtr_tab_unblock_movement (GtrTab *tab); void gtr_tab_go_to_next (GtrTab *tab); void gtr_tab_go_to_prev (GtrTab *tab); void gtr_tab_go_to_first (GtrTab *tab); void gtr_tab_go_to_last (GtrTab *tab); gboolean gtr_tab_go_to_next_fuzzy (GtrTab *tab); gboolean gtr_tab_go_to_prev_fuzzy (GtrTab *tab); gboolean gtr_tab_go_to_next_untrans (GtrTab *tab); gboolean gtr_tab_go_to_prev_untrans (GtrTab *tab); gboolean gtr_tab_go_to_next_fuzzy_or_untrans (GtrTab *tab); gboolean gtr_tab_go_to_prev_fuzzy_or_untrans (GtrTab *tab); void gtr_tab_go_to_number (GtrTab *tab,gint number); void gtr_tab_set_info_bar (GtrTab *tab,GtkWidget *infobar); GtrTabPrivate;
struct GtrTabClass {
GtkBoxClass parent_class;
void (*showed_message) (GtrTab * tab, GtrMsg * msg);
void (*message_changed) (GtrTab * tab, GtrMsg * msg);
void (*message_edition_finished) (GtrTab * tab, GtrMsg * msg);
void (*selection_changed) (GtrTab * tab);
};
typedef enum {
GTR_TAB_MOVE_NONE,
GTR_TAB_MOVE_NEXT,
GTR_TAB_MOVE_PREV
} GtrTabMove;
GtrPo * gtr_tab_get_po (GtrTab *tab);
|
a GtrTab |
Returns : |
the GtrPo stored in the GtrTab. [transfer none] |
gint gtr_tab_get_active_trans_tab (GtrTab *tab);
|
a GtranslationTab |
Returns : |
the number of the active translation notebook. |
GtrContextPanel * gtr_tab_get_context_panel (GtrTab *tab);
|
a GtrTab |
Returns : |
the GtranslaorContextPanel. [transfer none] |
GtrView * gtr_tab_get_active_view (GtrTab *tab);
|
a GtranslationTab |
Returns : |
the active page of the translation notebook. [transfer none] |
GList * gtr_tab_get_all_views (GtrTab *tab,gboolean original,gboolean translated);
Returns all the views currently present in GtranslationTab
|
the GtranslationTab |
|
TRUE if you want original TextViews. |
|
TRUE if you want tranlated TextViews. |
Returns : |
a newly allocated list of GtranslationTab objects. [transfer container][element-type Gtranslator.View] |
void gtr_tab_message_go_to (GtrTab *tab,GtrMsg *to_go,gboolean searching,GtrTabMove move);
Jumps to the specific to_go pointer message and show the message
in the GtrView.
GtrTab * gtr_tab_get_from_document (GtrPo *po);
Returns the GtrTab for a specific GtrPo.
|
a GtrPo |
Returns : |
the GtrTab for a specific GtrPo. [transfer none] |
gboolean gtr_tab_get_autosave_enabled (GtrTab *tab);
Gets the current state for the autosave feature
|
a GtrTab |
Returns : |
TRUE if the autosave is enabled, else FALSE |
void gtr_tab_set_autosave_enabled (GtrTab *tab,gboolean enable);
Enables or disables the autosave feature. It does not install an autosave timeout if the document is new or is read-only
|
a GtrTab |
|
enable (TRUE) or disable (FALSE) auto save |
gint gtr_tab_get_autosave_interval (GtrTab *tab);
Gets the current interval for the autosaves
|
a GtrTab |
Returns : |
the value of the autosave |
void gtr_tab_set_autosave_interval (GtrTab *tab,gint interval);
Sets the interval for the autosave feature. It does nothing if the interval is the same as the one already present. It removes the old interval timeout and adds a new one with the autosave passed as argument.
|
a GtrTab |
|
the new interval |
void gtr_tab_clear_msgstr_views (GtrTab *tab);
Clears all text from msgstr text views.
|
a GtrTab |
void gtr_tab_copy_to_translation (GtrTab *tab);
Copies the text from the original text box to the translation text box.
|
a GtrTab |
void gtr_tab_block_movement (GtrTab *tab);
Blocks the movement to the next/prev message.
|
a GtrTab |
void gtr_tab_unblock_movement (GtrTab *tab);
Unblocks the movement to the next/prev message.
|
a GtrTab |
void gtr_tab_go_to_next (GtrTab *tab);
Moves to the next message or plural tab in case the message has plurals.
|
a GtrTab |
void gtr_tab_go_to_prev (GtrTab *tab);
Moves to the previous message or plural tab in case the message has plurals.
|
a GtrTab |
void gtr_tab_go_to_first (GtrTab *tab);
Jumps to the first message.
|
a GtrTab |
void gtr_tab_go_to_last (GtrTab *tab);
Jumps to the last message.
|
a GtrTab |
gboolean gtr_tab_go_to_next_fuzzy (GtrTab *tab);
If there is a next fuzzy message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a next fuzzy message. |
gboolean gtr_tab_go_to_prev_fuzzy (GtrTab *tab);
If there is a prev fuzzy message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a prev fuzzy message. |
gboolean gtr_tab_go_to_next_untrans (GtrTab *tab);
If there is a next untranslated message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a next untranslated message. |
gboolean gtr_tab_go_to_prev_untrans (GtrTab *tab);
If there is a prev untranslated message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a prev untranslated message. |
gboolean gtr_tab_go_to_next_fuzzy_or_untrans (GtrTab *tab);
If there is a next fuzzy or untranslated message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a next fuzzy or untranslated message. |
gboolean gtr_tab_go_to_prev_fuzzy_or_untrans (GtrTab *tab);
If there is a prev fuzzy or untranslated message it jumps to it.
|
a GtrTab |
Returns : |
TRUE if there is a prev fuzzy or untranslated message. |
void gtr_tab_go_to_number (GtrTab *tab,gint number);
Jumps to the message with the number in the list, if the message does not
exists it does not jump.
|
a GtrTab |
|
the message number you want to jump |
void gtr_tab_set_info_bar (GtrTab *tab,GtkWidget *infobar);
Sets the infobar to be shown in the tab.
|
a GtrTab |
|
a GtrMessageArea |