![]() |
![]() |
![]() |
CodeSlayer Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <codeslayer/codeslayer-notebook.h> struct CodeSlayerNotebook; GtkWidget * codeslayer_notebook_new (GtkWindow *window
,CodeSlayerPreferences *preferences
,CodeSlayerSettings *settings
); void codeslayer_notebook_add_editor (CodeSlayerNotebook *notebook
,CodeSlayerDocument *document
); void codeslayer_notebook_save_editor (CodeSlayerNotebook *notebook
,gint page_num
); void codeslayer_notebook_save_all_editors (CodeSlayerNotebook *notebook
); gboolean codeslayer_notebook_has_unsaved_editors (CodeSlayerNotebook *notebook
); gboolean codeslayer_notebook_close_editor (CodeSlayerNotebook *notebook
,gint page_num
); void codeslayer_notebook_close_all_editors (CodeSlayerNotebook *notebook
); GtkWidget * codeslayer_notebook_get_active_editor (CodeSlayerNotebook *notebook
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkNotebook +----CodeSlayerNotebook
GtkWidget * codeslayer_notebook_new (GtkWindow *window
,CodeSlayerPreferences *preferences
,CodeSlayerSettings *settings
);
Creates a new CodeSlayerNotebook.
|
a GtkWindow. |
|
a CodeSlayerPreferences. |
|
a CodeSlayerSettings. |
Returns : |
a new CodeSlayerNotebook. |
void codeslayer_notebook_add_editor (CodeSlayerNotebook *notebook
,CodeSlayerDocument *document
);
Add a new page to the notebook based on the document. This method is
for internal use only. The correct way for plugins to add a page is to call
the codeslayer_projects_select_document()
method. That will
select the document in the tree and then call this method to add the page
to the notebook.
|
a CodeSlayerNotebook. |
|
a CodeSlayerDocument. |
void codeslayer_notebook_save_editor (CodeSlayerNotebook *notebook
,gint page_num
);
|
a CodeSlayerNotebook. |
|
the notebook page to save. Pages begin with 0 starting from the left. |
void codeslayer_notebook_save_all_editors
(CodeSlayerNotebook *notebook
);
|
a CodeSlayerNotebook. |
gboolean codeslayer_notebook_has_unsaved_editors
(CodeSlayerNotebook *notebook
);
gboolean codeslayer_notebook_close_editor (CodeSlayerNotebook *notebook
,gint page_num
);
|
a CodeSlayerNotebook. |
|
the notebook page to close. Pages begin with 0 starting from the left. |
Returns : |
is TRUE unless the editor needs to be saved. If the editor needs to be saved then the page will not be closed and this method will return FALSE. |
void codeslayer_notebook_close_all_editors
(CodeSlayerNotebook *notebook
);
|
a CodeSlayerNotebook. |
GtkWidget * codeslayer_notebook_get_active_editor
(CodeSlayerNotebook *notebook
);
|
a CodeSlayerNotebook. |
Returns : |
the active editor. |
"editor-saved"
signalvoid user_function (CodeSlayerNotebook *codeslayernotebook,
gpointer arg1,
gpointer user_data) : No Hooks
The ::editor-saved signal is emitted when an editor is saved successfully
|
the notebook that received the signal |
|
user data set when the signal handler was connected. |
"editors-all-saved"
signalvoid user_function (CodeSlayerNotebook *codeslayernotebook,
gpointer editors,
gpointer user_data) : No Hooks
The ::editors-all-saved signal is emitted when all the editors have been saved successfully
|
the notebook that received the signal |
|
a GList of CodeSlayerEditor objects that were saved |
|
user data set when the signal handler was connected. |
"select-editor"
signalvoid user_function (CodeSlayerNotebook *codeslayernotebook,
guint arg1,
gpointer user_data) : No Hooks
The ::editor-saved signal is emitted when an editor is saved successfully
|
the notebook that received the signal |
|
user data set when the signal handler was connected. |