![]() |
![]() |
![]() |
pluma Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
enum PlumaTabState; PlumaTabPrivate; struct PlumaTab; PlumaView * pluma_tab_get_view (PlumaTab *tab
); PlumaDocument * pluma_tab_get_document (PlumaTab *tab
); PlumaTab * pluma_tab_get_from_document (PlumaDocument *doc
); PlumaTabState pluma_tab_get_state (PlumaTab *tab
); gboolean pluma_tab_get_auto_save_enabled (PlumaTab *tab
); void pluma_tab_set_auto_save_enabled (PlumaTab *tab
,gboolean enable
); gint pluma_tab_get_auto_save_interval (PlumaTab *tab
); void pluma_tab_set_auto_save_interval (PlumaTab *tab
,gint interval
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----PlumaTab
"autosave" gboolean : Read / Write "autosave-interval" gint : Read / Write "name" gchar* : Read "state" PlumaTabState : Read
typedef enum { PLUMA_TAB_STATE_NORMAL = 0, PLUMA_TAB_STATE_LOADING, PLUMA_TAB_STATE_REVERTING, PLUMA_TAB_STATE_SAVING, PLUMA_TAB_STATE_PRINTING, PLUMA_TAB_STATE_PRINT_PREVIEWING, PLUMA_TAB_STATE_SHOWING_PRINT_PREVIEW, PLUMA_TAB_STATE_GENERIC_NOT_EDITABLE, PLUMA_TAB_STATE_LOADING_ERROR, PLUMA_TAB_STATE_REVERTING_ERROR, PLUMA_TAB_STATE_SAVING_ERROR, PLUMA_TAB_STATE_GENERIC_ERROR, PLUMA_TAB_STATE_CLOSING, PLUMA_TAB_STATE_EXTERNALLY_MODIFIED_NOTIFICATION, PLUMA_TAB_NUM_OF_STATES /* This is not a valid state */ } PlumaTabState;
PlumaView * pluma_tab_get_view (PlumaTab *tab
);
Gets the PlumaView inside tab
.
PlumaDocument * pluma_tab_get_document (PlumaTab *tab
);
Gets the PlumaDocument associated to tab
.
|
a PlumaTab |
Returns : |
the PlumaDocument associated to tab
|
PlumaTab * pluma_tab_get_from_document (PlumaDocument *doc
);
Gets the PlumaTab associated with doc
.
|
a PlumaDocument |
Returns : |
the PlumaTab associated with doc
|
PlumaTabState pluma_tab_get_state (PlumaTab *tab
);
Gets the PlumaTabState of tab
.
|
a PlumaTab |
Returns : |
the PlumaTabState of tab
|
gboolean pluma_tab_get_auto_save_enabled (PlumaTab *tab
);
Gets the current state for the autosave feature
void pluma_tab_set_auto_save_enabled (PlumaTab *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
gint pluma_tab_get_auto_save_interval (PlumaTab *tab
);
Gets the current interval for the autosaves
|
a PlumaTab |
Returns : |
the value of the autosave |
void pluma_tab_set_auto_save_interval (PlumaTab *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.
|
a PlumaTab |
|
the new interval |
"autosave-interval"
property"autosave-interval" gint : Read / Write
Time between two autosaves.
Allowed values: >= 0
Default value: 0
"state"
property"state" PlumaTabState : Read
The tab's state.
Default value: PLUMA_TAB_STATE_NORMAL