| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GtrWindow; struct GtrWindowClass; GType gtr_window_register_type (GTypeModule *module); GtrTab * gtr_window_create_tab (GtrWindow *window,GtrPo *po); GtrTab * gtr_window_get_active_tab (GtrWindow *window); GList * gtr_window_get_all_tabs (GtrWindow *window); GtrNotebook * gtr_window_get_notebook (GtrWindow *window); GtrHeader * gtr_window_get_header_from_active_tab (GtrWindow *window); GtkWidget * gtr_window_get_statusbar (GtrWindow *window); GtkUIManager * gtr_window_get_ui_manager (GtrWindow *window); GtrView * gtr_window_get_active_view (GtrWindow *window); GList * gtr_window_get_all_views (GtrWindow *window,gboolean original,gboolean translated); GtkWidget * gtr_window_get_tab_from_location (GtrWindow *window,GFile *location); void gtr_window_set_active_tab (GtrWindow *window,GtkWidget *tab); GtrWindowPrivate;
GtrTab * gtr_window_create_tab (GtrWindow *window,GtrPo *po);
Adds a new GtrTab to the GtrNotebook and returns the GtrTab.
|
a GtrWindow |
|
a GtrPo |
Returns : |
a new GtrTab object. [transfer none] |
GtrTab * gtr_window_get_active_tab (GtrWindow *window);
Gets the active GtrTab of the window.
|
a GtrWindow |
Returns : |
the active GtrTab of the window. [transfer none]
|
GList * gtr_window_get_all_tabs (GtrWindow *window);
Gets a list of all tabs in the window or NULL if there is no tab opened.
|
a GtrWindow |
Returns : |
a list of all tabs in the window or NULL if there
is no tab opened. [transfer container]
|
GtrNotebook * gtr_window_get_notebook (GtrWindow *window);
Gets the main GtrNotebook of the window.
|
a GtrWindow |
Returns : |
the GtrNotebook of the window. [transfer none]
|
GtrHeader * gtr_window_get_header_from_active_tab
(GtrWindow *window);
Gets the GtrHeader of the GtrPo of in the active GtrTab.
|
a GtrWindow |
Returns : |
the GtrHeader of the GtrPo of in the active GtrTab. [transfer none] |
GtkWidget * gtr_window_get_statusbar (GtrWindow *window);
Gets the statusbar widget of the window.
|
a GtrWindow |
Returns : |
the statusbar widget of the window. [transfer none] |
GtkUIManager * gtr_window_get_ui_manager (GtrWindow *window);
Gets the GtkUIManager of the window.
|
a GtrWindow |
Returns : |
the GtkUIManager of the window. [transfer none]
|
GtrView * gtr_window_get_active_view (GtrWindow *window);
Gets the active translation view in the GtranslationWindow or NULL if there is not tab opened.
|
a GtranslationWindow |
Returns : |
the active translation view in the
GtranslationWindow or NULL if there is not tab opened. [transfer none]
|
GList * gtr_window_get_all_views (GtrWindow *window,gboolean original,gboolean translated);
Returns all the views currently present in GtranslationWindow
|
the GtranslationWindow |
|
TRUE if you want original TextViews. |
|
TRUE if you want transtated TextViews. |
Returns : |
a newly allocated list of GtranslationWindow objects. [transfer container] |
GtkWidget * gtr_window_get_tab_from_location (GtrWindow *window,GFile *location);
Gets the GtrTab of the GtrWindows that matches with the
location.
|
a GtrWindow |
|
the GFile of the po file of the GtrTab |
Returns : |
the GtrTab which location matches with its po file. [transfer none]
|
void gtr_window_set_active_tab (GtrWindow *window,GtkWidget *tab);
Sets the active tab for the window.