Top | ![]() |
![]() |
![]() |
![]() |
This main control object is where we try to draw the line between what is the Glade core and what is the main application. The main application must derive from the GladeApp object and create an instance to initialize the Glade core.
void
glade_app_set_project (GladeProject *project
);
Sets the active project in the GladeApp to project
.
GladePointerMode
glade_app_get_pointer_mode (void
);
Gets the current GladePointerMode
void
glade_app_set_pointer_mode (GladePointerMode mode
);
Sets the GladePointerMode
GladeProject *
glade_app_get_project_by_path (const gchar *project_path
);
Finds an open project with path
void
glade_app_command_copy (void
);
Copy the active project's selection (the new copies will end up on the clipboard and will be set as the clipboards selection).
void
glade_app_command_cut (void
);
Cut the active project's selection (the cut objects will end up on the clipboard and will be set as the clipboards selection).
void
glade_app_command_paste (GladePlaceholder *placeholder
);
Paste the clipboard selection to the active project's selection (the project must have only one object selected).
void
glade_app_command_delete (void
);
Delete the active project's selection.
void
glade_app_command_delete_clipboard (void
);
Delete the clipboard's selection.
gint
glade_app_config_save (void
);
Saves the GKeyFile to "g_get_user_config_dir()
/GLADE_CONFIG_FILENAME"
Return 0 on success.
void glade_app_selection_remove (GObject *object
,gboolean emit_signal
);
“active-project”
property“active-project” GladeProject *
The active project.
Flags: Read / Write
“signal-editor-created”
signalvoid user_function (GladeApp *gladeapp, GObject *signal_editor, gpointer user_data)
Emitted when a new signal editor created. A tree view is created in the default handler. Connect your handler before the default handler for setting a custom column or renderer and after it for connecting to the tree view signals
gladeapp |
the GladeApp which received the signal. |
|
signal_editor |
the new GladeSignalEditor. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last