| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GtranslatorWindowPrivate;
GtranslatorWindow;
enum GtranslatorWindowPlacement;
GType gtranslator_window_register_type (GTypeModule *module);
GtranslatorTab * gtranslator_window_create_tab (GtranslatorWindow *window,
GtranslatorPo *po);
GtranslatorTab * gtranslator_window_get_active_tab (GtranslatorWindow *window);
GList * gtranslator_window_get_all_tabs (GtranslatorWindow *window);
GtranslatorNotebook * gtranslator_window_get_notebook (GtranslatorWindow *window);
GtranslatorHeader * gtranslator_window_get_header_from_active_tab
(GtranslatorWindow *window);
GtkWidget * gtranslator_window_get_statusbar (GtranslatorWindow *window);
GtkUIManager * gtranslator_window_get_ui_manager (GtranslatorWindow *window);
GtranslatorView * gtranslator_window_get_active_view (GtranslatorWindow *window);
GList * gtranslator_window_get_all_views (GtranslatorWindow *window,
gboolean original,
gboolean translated);
void set_sensitive_according_to_message (GtranslatorWindow *window,
GtranslatorPo *po);
void set_sensitive_according_to_window (GtranslatorWindow *window);
void gtranslator_window_add_widget (GtranslatorWindow *window,
GtkWidget *widget,
const gchar *name,
const gchar *title,
const gchar *stock_id,
GtranslatorWindowPlacement placement);
void gtranslator_window_remove_widget (GtranslatorWindow *window,
GtkWidget *widget);
GtkWidget * gtranslator_window_get_tab_from_location
(GtranslatorWindow *window,
GFile *location);
void gtranslator_window_set_active_tab (GtranslatorWindow *window,
GtkWidget *tab);
GtkWidget * gtranslator_window_get_tm_menu (GtranslatorWindow *window);
typedef enum
{
GTR_WINDOW_PLACEMENT_NONE = 0,
GTR_WINDOW_PLACEMENT_TOP,
GTR_WINDOW_PLACEMENT_BOTTOM,
GTR_WINDOW_PLACEMENT_RIGHT,
GTR_WINDOW_PLACEMENT_LEFT,
GTR_WINDOW_PLACEMENT_CENTER,
GTR_WINDOW_PLACEMENT_FLOATING
} GtranslatorWindowPlacement;
GType gtranslator_window_register_type (GTypeModule *module);
|
|
Returns : |
GtranslatorTab * gtranslator_window_create_tab (GtranslatorWindow *window, GtranslatorPo *po);
Adds a new GtranslatorTab to the GtranslatorNotebook and returns the GtranslatorTab.
|
a GtranslatorWindow |
|
a GtranslatorPo |
Returns : |
a new GtranslatorTab object |
GtranslatorTab * gtranslator_window_get_active_tab (GtranslatorWindow *window);
Gets the active GtranslatorTab of the window.
|
a GtranslatorWindow |
Returns : |
the active GtranslatorTab of the window.
|
GList * gtranslator_window_get_all_tabs (GtranslatorWindow *window);
Gets a list of all tabs in the window or NULL if there is no tab opened.
|
a GtranslatorWindow |
Returns : |
a list of all tabs in the window or NULL if there is no tab opened.
|
GtranslatorNotebook * gtranslator_window_get_notebook (GtranslatorWindow *window);
Gets the main GtranslatorNotebook of the window.
|
a GtranslatorWindow |
Returns : |
the GtranslatorNotebook of the window
|
GtranslatorHeader * gtranslator_window_get_header_from_active_tab (GtranslatorWindow *window);
Gets the GtranslatorHeader of the GtranslatorPo of in the active GtranslatorTab.
|
a GtranslatorWindow |
Returns : |
the GtranslatorHeader of the GtranslatorPo of in the active GtranslatorTab |
GtkWidget * gtranslator_window_get_statusbar (GtranslatorWindow *window);
Gets the statusbar widget of the window.
|
a GtranslatorWindow |
Returns : |
the statusbar widget of the window |
GtkUIManager * gtranslator_window_get_ui_manager (GtranslatorWindow *window);
Gets the GtkUIManager of the window.
|
a GtranslatorWindow |
Returns : |
the GtkUIManager of the window
|
GtranslatorView * gtranslator_window_get_active_view (GtranslatorWindow *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. |
GList * gtranslator_window_get_all_views (GtranslatorWindow *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 |
void set_sensitive_according_to_message (GtranslatorWindow *window, GtranslatorPo *po);
|
|
|
void set_sensitive_according_to_window (GtranslatorWindow *window);
|
void gtranslator_window_add_widget (GtranslatorWindow *window, GtkWidget *widget, const gchar *name, const gchar *title, const gchar *stock_id, GtranslatorWindowPlacement placement);
Adds a new widget to the window in the placement you prefer with and
specific name, title and icon you want.
|
a GtranslatorWindow |
|
the widget to add in the window |
|
the name of the widged |
|
the title |
|
the stock id for the icon |
|
a GtranslatorWindowPlacement |
void gtranslator_window_remove_widget (GtranslatorWindow *window, GtkWidget *widget);
Removes from the window the widget if it exists.
|
a GtranslatorWindow |
|
the widget to remove |
GtkWidget * gtranslator_window_get_tab_from_location
(GtranslatorWindow *window,
GFile *location);
|
|
|
|
Returns : |
void gtranslator_window_set_active_tab (GtranslatorWindow *window, GtkWidget *tab);
Sets the active tab for the window.
|
a GtranslatorWindow |
|
a GtranslatorTab |
GtkWidget * gtranslator_window_get_tm_menu (GtranslatorWindow *window);
|
|
Returns : |