| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GtranslatorTabPrivate;
GtranslatorTab;
enum GtranslatorTabMove;
GType gtranslator_tab_register_type (GTypeModule *module);
GtranslatorTab * gtranslator_tab_new (GtranslatorPo *po);
GtranslatorPo * gtranslator_tab_get_po (GtranslatorTab *tab);
GtkWidget * gtranslator_tab_get_panel (GtranslatorTab *tab);
gint gtranslator_tab_get_active_trans_tab
(GtranslatorTab *tab);
GtkWidget * gtranslator_tab_get_translation_memory_ui
(GtranslatorTab *tab);
GtranslatorView * gtranslator_tab_get_active_view (GtranslatorTab *tab);
GList * gtranslator_tab_get_all_views (GtranslatorTab *tab,
gboolean original,
gboolean translated);
gchar * gtranslator_tab_get_name (GtranslatorTab *tab);
void gtranslator_tab_message_go_to (GtranslatorTab *tab,
GList *to_go,
gboolean searching,
GtranslatorTabMove move);
GtranslatorTab * gtranslator_tab_get_from_document (GtranslatorPo *po);
gboolean gtranslator_tab_get_autosave_enabled
(GtranslatorTab *tab);
void gtranslator_tab_set_autosave_enabled
(GtranslatorTab *tab,
gboolean enable);
gint gtranslator_tab_get_autosave_interval
(GtranslatorTab *tab);
void gtranslator_tab_set_autosave_interval
(GtranslatorTab *tab,
gint interval);
void gtranslator_tab_add_widget_to_lateral_panel
(GtranslatorTab *tab,
GtkWidget *widget,
const gchar *tab_name);
void gtranslator_tab_remove_widget_from_lateral_panel
(GtranslatorTab *tab,
GtkWidget *widget);
void gtranslator_tab_show_lateral_panel_widget
(GtranslatorTab *tab,
GtkWidget *widget);
void gtranslator_tab_clear_msgstr_views (GtranslatorTab *tab);
void gtranslator_tab_block_movement (GtranslatorTab *tab);
void gtranslator_tab_unblock_movement (GtranslatorTab *tab);
void gtranslator_tab_go_to_next (GtranslatorTab *tab);
void gtranslator_tab_go_to_prev (GtranslatorTab *tab);
void gtranslator_tab_go_to_first (GtranslatorTab *tab);
void gtranslator_tab_go_to_last (GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_next_fuzzy (GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_prev_fuzzy (GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_next_untrans (GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_prev_untrans (GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_next_fuzzy_or_untrans
(GtranslatorTab *tab);
gboolean gtranslator_tab_go_to_prev_fuzzy_or_untrans
(GtranslatorTab *tab);
void gtranslator_tab_go_to_number (GtranslatorTab *tab,
gint number);
void gtranslator_tab_set_message_area (GtranslatorTab *tab,
GtkWidget *message_area);
typedef enum
{
GTR_TAB_MOVE_NONE,
GTR_TAB_MOVE_NEXT,
GTR_TAB_MOVE_PREV
} GtranslatorTabMove;
GType gtranslator_tab_register_type (GTypeModule *module);
|
|
Returns : |
GtranslatorTab * gtranslator_tab_new (GtranslatorPo *po);
Creates a new GtranslatorTab.
|
a GtranslatorPo |
Returns : |
a new GtranslatorTab object |
GtranslatorPo * gtranslator_tab_get_po (GtranslatorTab *tab);
|
a GtranslatorTab |
Returns : |
the GtranslatorPo stored in the GtranslatorTab |
GtkWidget * gtranslator_tab_get_panel (GtranslatorTab *tab);
|
a GtranslationTab |
Returns : |
the horizontal notebook of the GtranslationTab |
gint gtranslator_tab_get_active_trans_tab (GtranslatorTab *tab);
|
a GtranslationTab |
Returns : |
the number of the active translation notebook. |
GtkWidget * gtranslator_tab_get_translation_memory_ui
(GtranslatorTab *tab);
|
a GtranslatorTab |
Returns : |
the GtranslatorTranslationMemoryUi panel. |
GtranslatorView * gtranslator_tab_get_active_view (GtranslatorTab *tab);
|
a GtranslationTab |
Returns : |
the active page of the translation notebook. |
GList * gtranslator_tab_get_all_views (GtranslatorTab *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 |
gchar * gtranslator_tab_get_name (GtranslatorTab *tab);
|
a GtranslatorTab |
Returns : |
a new allocated string with the name of the tab.
|
void gtranslator_tab_message_go_to (GtranslatorTab *tab, GList *to_go, gboolean searching, GtranslatorTabMove move);
Jumps to the specific to_go pointer message and show the message
in the GtranslatorView.
|
a GtranslatorTab |
|
the GtranslatorMsg you want to jump |
|
TRUE if we are searching in the message list |
|
GtranslatorTab * gtranslator_tab_get_from_document (GtranslatorPo *po);
Returns the GtranslatorTab for a specific GtranslatorPo.
|
a GtranslatorPo |
Returns : |
the GtranslatorTab for a specific GtranslatorPo |
gboolean gtranslator_tab_get_autosave_enabled (GtranslatorTab *tab);
Gets the current state for the autosave feature
|
a GtranslatorTab |
Returns : |
TRUE if the autosave is enabled, else FALSE |
void gtranslator_tab_set_autosave_enabled
(GtranslatorTab *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 GtranslatorTab |
|
enable (TRUE) or disable (FALSE) auto save |
gint gtranslator_tab_get_autosave_interval (GtranslatorTab *tab);
Gets the current interval for the autosaves
|
a GtranslatorTab |
Returns : |
the value of the autosave |
void gtranslator_tab_set_autosave_interval
(GtranslatorTab *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 GtranslatorTab |
|
the new interval |
void gtranslator_tab_add_widget_to_lateral_panel
(GtranslatorTab *tab,
GtkWidget *widget,
const gchar *tab_name);
Adds a new widget to the laberal panel notebook.
|
a GtranslatorTab |
|
a GtkWidget |
|
the tab name in the notebook |
void gtranslator_tab_remove_widget_from_lateral_panel
(GtranslatorTab *tab,
GtkWidget *widget);
Removes the widget from the lateral panel notebook of tab.
|
a GtranslatorTab |
|
a GtkWidget |
void gtranslator_tab_show_lateral_panel_widget
(GtranslatorTab *tab,
GtkWidget *widget);
Shows the notebook page of the widget.
|
a GtranslatorTab |
|
the widget to be shown. |
void gtranslator_tab_clear_msgstr_views (GtranslatorTab *tab);
Clears all text from msgstr text views.
|
a GtranslatorTab |
void gtranslator_tab_block_movement (GtranslatorTab *tab);
Blocks the movement to the next/prev message.
|
a GtranslatorTab |
void gtranslator_tab_unblock_movement (GtranslatorTab *tab);
Unblocks the movement to the next/prev message.
|
a GtranslatorTab |
void gtranslator_tab_go_to_next (GtranslatorTab *tab);
Moves to the next message or plural tab in case the message has plurals.
|
a GtranslatorTab |
void gtranslator_tab_go_to_prev (GtranslatorTab *tab);
Moves to the previous message or plural tab in case the message has plurals.
|
a GtranslatorTab |
void gtranslator_tab_go_to_first (GtranslatorTab *tab);
Jumps to the first message.
|
a GtranslatorTab |
void gtranslator_tab_go_to_last (GtranslatorTab *tab);
Jumps to the last message.
|
a GtranslatorTab |
gboolean gtranslator_tab_go_to_next_fuzzy (GtranslatorTab *tab);
If there is a next fuzzy message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a next fuzzy message. |
gboolean gtranslator_tab_go_to_prev_fuzzy (GtranslatorTab *tab);
If there is a prev fuzzy message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a prev fuzzy message. |
gboolean gtranslator_tab_go_to_next_untrans (GtranslatorTab *tab);
If there is a next untranslated message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a next untranslated message. |
gboolean gtranslator_tab_go_to_prev_untrans (GtranslatorTab *tab);
If there is a prev untranslated message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a prev untranslated message. |
gboolean gtranslator_tab_go_to_next_fuzzy_or_untrans (GtranslatorTab *tab);
If there is a next fuzzy or untranslated message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a next fuzzy or untranslated message. |
gboolean gtranslator_tab_go_to_prev_fuzzy_or_untrans (GtranslatorTab *tab);
If there is a prev fuzzy or untranslated message it jumps to it.
|
a GtranslatorTab |
Returns : |
TRUE if there is a prev fuzzy or untranslated message. |
void gtranslator_tab_go_to_number (GtranslatorTab *tab, gint number);
Jumps to the message with the number in the list, if the message does not
exists it does not jump.
|
a GtranslatorTab |
|
the message number you want to jump |
void gtranslator_tab_set_message_area (GtranslatorTab *tab, GtkWidget *message_area);
Sets the message_area to be shown in the tab.
|
a GtranslatorTab |
|
a GtranslatorMessageArea |