XedTab

XedTab

Functions

Properties

gboolean autosave Read / Write
int autosave-interval Read / Write
gboolean can-close Read
char * name Read
XedTabState state Read

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── XedTab

Description

Functions

xed_tab_get_view ()

XedView *
xed_tab_get_view (XedTab *tab);

Gets the XedView inside tab .

Parameters

tab

a XedTab

 

Returns

the XedView inside tab .

[transfer none]


xed_tab_get_document ()

XedDocument *
xed_tab_get_document (XedTab *tab);

Gets the XedDocument associated to tab .

Parameters

tab

a XedTab

 

Returns

the XedDocument associated to tab .

[transfer none]


xed_tab_get_from_document ()

XedTab *
xed_tab_get_from_document (XedDocument *doc);

Gets the XedTab associated with doc .

Parameters

doc

a XedDocument

 

Returns

the XedTab associated with doc .

[transfer none]


xed_tab_get_state ()

XedTabState
xed_tab_get_state (XedTab *tab);

Gets the XedTabState of tab .

Parameters

tab

a XedTab

 

Returns

the XedTabState of tab


xed_tab_get_auto_save_enabled ()

gboolean
xed_tab_get_auto_save_enabled (XedTab *tab);

Gets the current state for the autosave feature

Parameters

tab

a XedTab

 

Returns

TRUE if the autosave is enabled, else FALSE


xed_tab_set_auto_save_enabled ()

void
xed_tab_set_auto_save_enabled (XedTab *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

Parameters

tab

a XedTab

 

enable

enable (TRUE) or disable (FALSE) auto save

 

xed_tab_get_auto_save_interval ()

gint
xed_tab_get_auto_save_interval (XedTab *tab);

Gets the current interval for the autosaves

Parameters

tab

a XedTab

 

Returns

the value of the autosave


xed_tab_set_auto_save_interval ()

void
xed_tab_set_auto_save_interval (XedTab *tab,
                                gint interval);

Sets the interval for the autosave feature.

Parameters

tab

a XedTab

 

interval

the new interval

 

xed_tab_set_info_bar ()

void
xed_tab_set_info_bar (XedTab *tab,
                      GtkWidget *info_bar);

Types and Values

enum XedTabState

Members

XED_TAB_STATE_NORMAL

   

XED_TAB_STATE_LOADING

   

XED_TAB_STATE_REVERTING

   

XED_TAB_STATE_SAVING

   

XED_TAB_STATE_PRINTING

   

XED_TAB_STATE_PRINT_PREVIEWING

   

XED_TAB_STATE_SHOWING_PRINT_PREVIEW

   

XED_TAB_STATE_GENERIC_NOT_EDITABLE

   

XED_TAB_STATE_LOADING_ERROR

   

XED_TAB_STATE_REVERTING_ERROR

   

XED_TAB_STATE_SAVING_ERROR

   

XED_TAB_STATE_GENERIC_ERROR

   

XED_TAB_STATE_CLOSING

   

XED_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION

   

XED_TAB_NUM_OF_STATES

   

Property Details

The “autosave” property

  “autosave”                 gboolean

Autosave feature.

Owner: XedTab

Flags: Read / Write

Default value: TRUE


The “autosave-interval” property

  “autosave-interval”        int

Time between two autosaves.

Owner: XedTab

Flags: Read / Write

Allowed values: >= 0

Default value: 0


The “can-close” property

  “can-close”                gboolean

Wheather the tab can be closed.

Owner: XedTab

Flags: Read

Default value: TRUE


The “name” property

  “name”                     char *

The tab's name.

Owner: XedTab

Flags: Read

Default value: NULL


The “state” property

  “state”                    XedTabState

The tab's state.

Owner: XedTab

Flags: Read

Default value: XED_TAB_STATE_NORMAL