GtranslatorTab

GtranslatorTab

Synopsis

                    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);
GtranslatorContextPanel * gtranslator_tab_get_context_panel
                                                        (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);

Description

Details

GtranslatorTabPrivate

typedef struct _GtranslatorTabPrivate GtranslatorTabPrivate;


GtranslatorTab

typedef struct {
	GtkVBox parent_instance;
} GtranslatorTab;


enum GtranslatorTabMove

typedef enum
{
	GTR_TAB_MOVE_NONE,
	GTR_TAB_MOVE_NEXT,
	GTR_TAB_MOVE_PREV
}GtranslatorTabMove;


gtranslator_tab_register_type ()

GType               gtranslator_tab_register_type       (GTypeModule *module);

module :

Returns :


gtranslator_tab_new ()

GtranslatorTab *    gtranslator_tab_new                 (GtranslatorPo *po);

Creates a new GtranslatorTab.

po :

a GtranslatorPo

Returns :

a new GtranslatorTab object

gtranslator_tab_get_po ()

GtranslatorPo *     gtranslator_tab_get_po              (GtranslatorTab *tab);

tab :

a GtranslatorTab

Returns :

the GtranslatorPo stored in the GtranslatorTab

gtranslator_tab_get_panel ()

GtkWidget *         gtranslator_tab_get_panel           (GtranslatorTab *tab);

tab :

a GtranslationTab

Returns :

the horizontal notebook of the GtranslationTab

gtranslator_tab_get_active_trans_tab ()

gint                gtranslator_tab_get_active_trans_tab
                                                        (GtranslatorTab *tab);

tab :

a GtranslationTab

Returns :

the number of the active translation notebook.

gtranslator_tab_get_context_panel ()

GtranslatorContextPanel * gtranslator_tab_get_context_panel
                                                        (GtranslatorTab *tab);

tab :

a GtranslatorTab

Returns :

the GtranslaorContextPanel

gtranslator_tab_get_translation_memory_ui ()

GtkWidget *         gtranslator_tab_get_translation_memory_ui
                                                        (GtranslatorTab *tab);

tab :

a GtranslatorTab

Returns :

the GtranslatorTranslationMemoryUi panel.

gtranslator_tab_get_active_view ()

GtranslatorView *   gtranslator_tab_get_active_view     (GtranslatorTab *tab);

tab :

a GtranslationTab

Returns :

the active page of the translation notebook.

gtranslator_tab_get_all_views ()

GList *             gtranslator_tab_get_all_views       (GtranslatorTab *tab,
                                                         gboolean original,
                                                         gboolean translated);

Returns all the views currently present in GtranslationTab

tab :

the GtranslationTab

original :

TRUE if you want original TextViews.

translated :

TRUE if you want tranlated TextViews.

Returns :

a newly allocated list of GtranslationTab objects

gtranslator_tab_get_name ()

gchar *             gtranslator_tab_get_name            (GtranslatorTab *tab);

tab :

a GtranslatorTab

Returns :

a new allocated string with the name of the tab.

gtranslator_tab_message_go_to ()

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.

tab :

a GtranslatorTab

to_go :

the GtranslatorMsg you want to jump

searching :

TRUE if we are searching in the message list

move :


gtranslator_tab_get_from_document ()

GtranslatorTab *    gtranslator_tab_get_from_document   (GtranslatorPo *po);

Returns the GtranslatorTab for a specific GtranslatorPo.

po :

a GtranslatorPo

Returns :

the GtranslatorTab for a specific GtranslatorPo

gtranslator_tab_get_autosave_enabled ()

gboolean            gtranslator_tab_get_autosave_enabled
                                                        (GtranslatorTab *tab);

Gets the current state for the autosave feature

tab :

a GtranslatorTab

Returns :

TRUE if the autosave is enabled, else FALSE

gtranslator_tab_set_autosave_enabled ()

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

tab :

a GtranslatorTab

enable :

enable (TRUE) or disable (FALSE) auto save

gtranslator_tab_get_autosave_interval ()

gint                gtranslator_tab_get_autosave_interval
                                                        (GtranslatorTab *tab);

Gets the current interval for the autosaves

tab :

a GtranslatorTab

Returns :

the value of the autosave

gtranslator_tab_set_autosave_interval ()

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.

tab :

a GtranslatorTab

interval :

the new interval

gtranslator_tab_add_widget_to_lateral_panel ()

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.

tab :

a GtranslatorTab

widget :

a GtkWidget

tab_name :

the tab name in the notebook

gtranslator_tab_remove_widget_from_lateral_panel ()

void                gtranslator_tab_remove_widget_from_lateral_panel
                                                        (GtranslatorTab *tab,
                                                         GtkWidget *widget);

Removes the widget from the lateral panel notebook of tab.

tab :

a GtranslatorTab

widget :

a GtkWidget

gtranslator_tab_show_lateral_panel_widget ()

void                gtranslator_tab_show_lateral_panel_widget
                                                        (GtranslatorTab *tab,
                                                         GtkWidget *widget);

Shows the notebook page of the widget.

tab :

a GtranslatorTab

widget :

the widget to be shown.

gtranslator_tab_clear_msgstr_views ()

void                gtranslator_tab_clear_msgstr_views  (GtranslatorTab *tab);

Clears all text from msgstr text views.

tab :

a GtranslatorTab

gtranslator_tab_block_movement ()

void                gtranslator_tab_block_movement      (GtranslatorTab *tab);

Blocks the movement to the next/prev message.

tab :

a GtranslatorTab

gtranslator_tab_unblock_movement ()

void                gtranslator_tab_unblock_movement    (GtranslatorTab *tab);

Unblocks the movement to the next/prev message.

tab :

a GtranslatorTab

gtranslator_tab_go_to_next ()

void                gtranslator_tab_go_to_next          (GtranslatorTab *tab);

Moves to the next message or plural tab in case the message has plurals.

tab :

a GtranslatorTab

gtranslator_tab_go_to_prev ()

void                gtranslator_tab_go_to_prev          (GtranslatorTab *tab);

Moves to the previous message or plural tab in case the message has plurals.

tab :

a GtranslatorTab

gtranslator_tab_go_to_first ()

void                gtranslator_tab_go_to_first         (GtranslatorTab *tab);

Jumps to the first message.

tab :

a GtranslatorTab

gtranslator_tab_go_to_last ()

void                gtranslator_tab_go_to_last          (GtranslatorTab *tab);

Jumps to the last message.

tab :

a GtranslatorTab

gtranslator_tab_go_to_next_fuzzy ()

gboolean            gtranslator_tab_go_to_next_fuzzy    (GtranslatorTab *tab);

If there is a next fuzzy message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a next fuzzy message.

gtranslator_tab_go_to_prev_fuzzy ()

gboolean            gtranslator_tab_go_to_prev_fuzzy    (GtranslatorTab *tab);

If there is a prev fuzzy message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a prev fuzzy message.

gtranslator_tab_go_to_next_untrans ()

gboolean            gtranslator_tab_go_to_next_untrans  (GtranslatorTab *tab);

If there is a next untranslated message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a next untranslated message.

gtranslator_tab_go_to_prev_untrans ()

gboolean            gtranslator_tab_go_to_prev_untrans  (GtranslatorTab *tab);

If there is a prev untranslated message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a prev untranslated message.

gtranslator_tab_go_to_next_fuzzy_or_untrans ()

gboolean            gtranslator_tab_go_to_next_fuzzy_or_untrans
                                                        (GtranslatorTab *tab);

If there is a next fuzzy or untranslated message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a next fuzzy or untranslated message.

gtranslator_tab_go_to_prev_fuzzy_or_untrans ()

gboolean            gtranslator_tab_go_to_prev_fuzzy_or_untrans
                                                        (GtranslatorTab *tab);

If there is a prev fuzzy or untranslated message it jumps to it.

tab :

a GtranslatorTab

Returns :

TRUE if there is a prev fuzzy or untranslated message.

gtranslator_tab_go_to_number ()

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.

tab :

a GtranslatorTab

number :

the message number you want to jump

gtranslator_tab_set_message_area ()

void                gtranslator_tab_set_message_area    (GtranslatorTab *tab,
                                                         GtkWidget *message_area);

Sets the message_area to be shown in the tab.

tab :

a GtranslatorTab

message_area :

a GtranslatorMessageArea