![]() |
![]() |
![]() |
GTranslator Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
struct GtrTab; struct GtrTabClass; enum GtrTabMove; enum GtrTabPlacement; 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_add_widget (GtrTab *tab
,GtkWidget *widget
,const gchar *unique_name
,const gchar *name
,const gchar *stock_id
,GtrTabPlacement placement
); void gtr_tab_remove_widget (GtrTab *tab
,GtkWidget *widget
); void gtr_tab_show_widget (GtrTab *tab
,GtkWidget *widget
); 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
);
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;
typedef enum { GTR_TAB_PLACEMENT_NONE = 0, GTR_TAB_PLACEMENT_TOP, GTR_TAB_PLACEMENT_BOTTOM, GTR_TAB_PLACEMENT_RIGHT, GTR_TAB_PLACEMENT_LEFT, GTR_TAB_PLACEMENT_CENTER, GTR_TAB_PLACEMENT_FLOATING } GtrTabPlacement;
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_add_widget (GtrTab *tab
,GtkWidget *widget
,const gchar *unique_name
,const gchar *name
,const gchar *stock_id
,GtrTabPlacement placement
);
Adds a new widget to place in tab
.
|
a GtrTab |
|
a GtkWidget |
|
an unique name for the widget |
|
the name of widget
|
|
stock id for the icon of widget or NULL . [allow-none]
|
|
where to place widget in the tab |
void gtr_tab_remove_widget (GtrTab *tab
,GtkWidget *widget
);
Removes the widget
from tab
.
|
a GtrTab |
|
a GtkWidget |
void gtr_tab_show_widget (GtrTab *tab
,GtkWidget *widget
);
Presents the widget if it is not visible
|
a GtrTab |
|
a GtkWidget |
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 |