GtranslatorWindow

GtranslatorWindow

Synopsis

                    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);

Description

Details

GtranslatorWindowPrivate

typedef struct _GtranslatorWindowPrivate GtranslatorWindowPrivate;


GtranslatorWindow

typedef struct {
	GtkWindow parent_instance;
} GtranslatorWindow;


enum GtranslatorWindowPlacement

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;


gtranslator_window_register_type ()

GType               gtranslator_window_register_type    (GTypeModule *module);

module :

Returns :


gtranslator_window_create_tab ()

GtranslatorTab *    gtranslator_window_create_tab       (GtranslatorWindow *window,
                                                         GtranslatorPo *po);

Adds a new GtranslatorTab to the GtranslatorNotebook and returns the GtranslatorTab.

window :

a GtranslatorWindow

po :

a GtranslatorPo

Returns :

a new GtranslatorTab object

gtranslator_window_get_active_tab ()

GtranslatorTab *    gtranslator_window_get_active_tab   (GtranslatorWindow *window);

Gets the active GtranslatorTab of the window.

window :

a GtranslatorWindow

Returns :

the active GtranslatorTab of the window.

gtranslator_window_get_all_tabs ()

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.

window :

a GtranslatorWindow

Returns :

a list of all tabs in the window or NULL if there is no tab opened.

gtranslator_window_get_notebook ()

GtranslatorNotebook * gtranslator_window_get_notebook   (GtranslatorWindow *window);

Gets the main GtranslatorNotebook of the window.

window :

a GtranslatorWindow

Returns :

the GtranslatorNotebook of the window

gtranslator_window_get_header_from_active_tab ()

GtranslatorHeader * gtranslator_window_get_header_from_active_tab
                                                        (GtranslatorWindow *window);

Gets the GtranslatorHeader of the GtranslatorPo of in the active GtranslatorTab.

window :

a GtranslatorWindow

Returns :

the GtranslatorHeader of the GtranslatorPo of in the active GtranslatorTab

gtranslator_window_get_statusbar ()

GtkWidget *         gtranslator_window_get_statusbar    (GtranslatorWindow *window);

Gets the statusbar widget of the window.

window :

a GtranslatorWindow

Returns :

the statusbar widget of the window

gtranslator_window_get_ui_manager ()

GtkUIManager *      gtranslator_window_get_ui_manager   (GtranslatorWindow *window);

Gets the GtkUIManager of the window.

window :

a GtranslatorWindow

Returns :

the GtkUIManager of the window

gtranslator_window_get_active_view ()

GtranslatorView *   gtranslator_window_get_active_view  (GtranslatorWindow *window);

Gets the active translation view in the GtranslationWindow or NULL if there is not tab opened.

window :

a GtranslationWindow

Returns :

the active translation view in the GtranslationWindow or NULL if there is not tab opened.

gtranslator_window_get_all_views ()

GList *             gtranslator_window_get_all_views    (GtranslatorWindow *window,
                                                         gboolean original,
                                                         gboolean translated);

Returns all the views currently present in GtranslationWindow

window :

the GtranslationWindow

original :

TRUE if you want original TextViews.

translated :

TRUE if you want transtated TextViews.

Returns :

a newly allocated list of GtranslationWindow objects

set_sensitive_according_to_message ()

void                set_sensitive_according_to_message  (GtranslatorWindow *window,
                                                         GtranslatorPo *po);

window :

po :


set_sensitive_according_to_window ()

void                set_sensitive_according_to_window   (GtranslatorWindow *window);

window :


gtranslator_window_add_widget ()

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.

window :

a GtranslatorWindow

widget :

the widget to add in the window

name :

the name of the widged

title :

the title

stock_id :

the stock id for the icon

placement :

a GtranslatorWindowPlacement

gtranslator_window_remove_widget ()

void                gtranslator_window_remove_widget    (GtranslatorWindow *window,
                                                         GtkWidget *widget);

Removes from the window the widget if it exists.

window :

a GtranslatorWindow

widget :

the widget to remove

gtranslator_window_get_tab_from_location ()

GtkWidget *         gtranslator_window_get_tab_from_location
                                                        (GtranslatorWindow *window,
                                                         GFile *location);

window :

location :

Returns :


gtranslator_window_set_active_tab ()

void                gtranslator_window_set_active_tab   (GtranslatorWindow *window,
                                                         GtkWidget *tab);

Sets the active tab for the window.

window :

a GtranslatorWindow

tab :

a GtranslatorTab

gtranslator_window_get_tm_menu ()

GtkWidget *         gtranslator_window_get_tm_menu      (GtranslatorWindow *window);

window :

Returns :