Top | ![]() |
![]() |
![]() |
![]() |
IdeBackForwardList * | back-forward-list | Read |
IdeBufferManager * | buffer-manager | Read |
IdeBuildSystem * | build-system | Read |
IdeDeviceManager * | device-manager | Read |
IdeProject * | project | Read |
GFile * | project-file | Read / Write / Construct Only |
gchar * | root-build-dir | Read / Write |
IdeScriptManager * | script-manager | Read |
IdeSearchEngine * | search-engine | Read |
IdeSourceSnippetsManager * | snippets-manager | Read / Write |
IdeUnsavedFiles * | unsaved-files | Read |
IdeVcs * | vcs | Read |
IdeBackForwardList *
ide_context_get_back_forward_list (IdeContext *self
);
Retrieves the global back forward list for the IdeContext.
Consumers of this should branch the IdeBackForwardList and merge them when there document stack is closed.
See ide_back_forward_list_branch()
and ide_back_forward_list_merge()
for
more information.
GFile *
ide_context_get_project_file (IdeContext *self
);
Retrieves a GFile containing the project file that was used to load the context.
IdeBufferManager *
ide_context_get_buffer_manager (IdeContext *self
);
Gets the “buffer-manager” property. The buffer manager is responsible for loading and saving buffers (files) within the IdeContext. It provides a convenient place for scripts to hook into the load and save process.
IdeBuildSystem *
ide_context_get_build_system (IdeContext *self
);
Fetches the "build-system" property of context
.
IdeDeviceManager *
ide_context_get_device_manager (IdeContext *self
);
Retrieves the "device-manager" property. The device manager is responsible for connecting and disconnecting to physical or virtual devices within LibIDE.
IdeProject *
ide_context_get_project (IdeContext *self
);
Retrieves the IdeProject for the context.
GtkRecentManager *
ide_context_get_recent_manager (IdeContext *self
);
Gets the IdeContext:recent-manager property. The recent manager is a GtkRecentManager instance that should be used for the workbench.
IdeScriptManager *
ide_context_get_script_manager (IdeContext *self
);
Retrieves the script manager for the context.
IdeSearchEngine *
ide_context_get_search_engine (IdeContext *self
);
Retrieves the search engine for the context.
IdeSettings * ide_context_get_settings (IdeContext *self
,const gchar *schema_id
,const gchar *relative_path
);
Gets an IdeSettings representing the given GSettingsSchema.
relative_path will be used to apply multiple layers of settings. Project settings will be applied to first, followed by global settings.
IdeSourceSnippetsManager *
ide_context_get_snippets_manager (IdeContext *self
);
Gets the “snippets-manager” property.
IdeUnsavedFiles *
ide_context_get_unsaved_files (IdeContext *self
);
Returns the unsaved files for the IdeContext. These are the contents of open buffers in the IDE.
IdeVcs *
ide_context_get_vcs (IdeContext *self
);
Retrieves the IdeVcs used to load the project. If no version control system could be found, this will return an IdeDirectoryVcs.
const gchar *
ide_context_get_root_build_dir (IdeContext *self
);
Retrieves the "root-build-dir" for the context. This is the root directory that will contain builds made for various devices.
gpointer ide_context_get_service_typed (IdeContext *self
,GType service_type
);
Retrieves a service matching service_type
. If no match was found, a type
implementing the requested service type will be returned. If no matching
service type could be found, then an instance of the service will be
created, started, and returned.
void ide_context_unload_async (IdeContext *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
This function attempts to unload various components in the IdeContext. This should be called before you dispose the context. Unsaved buffers will be persisted to the drafts directory. More operations may be added in the future.
If there is a hold on the IdeContext, created by ide_context_hold()
, then
the unload request will be delayed until the appropriate number of calls to
ide_context_release()
have been called.
gboolean ide_context_unload_finish (IdeContext *self
,GAsyncResult *result
,GError **error
);
void ide_context_new_async (GFile *project_file
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
IdeContext * ide_context_new_finish (GAsyncResult *result
,GError **error
);
void ide_context_set_root_build_dir (IdeContext *self
,const gchar *root_build_dir
);
Sets the "root-build-dir" property. This is the root directory that will be used when building projects for projects that support building out of tree.
void ide_context_restore_async (IdeContext *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_context_restore_finish (IdeContext *self
,GAsyncResult *result
,GError **error
);
void
ide_context_hold (IdeContext *self
);
Puts a hold on the IdeContext, preventing the context from being unloaded
until a call to ide_context_release()
.
If ide_context_unload_async()
is called while a hold is in progress, the
unload will be delayed until ide_context_release()
has been called the
same number of times as ide_context_hold()
.
void ide_context_hold_for_object (IdeContext *self
,gpointer instance
);
Adds a hold on self
for the lifetime of instance
.
void
ide_context_release (IdeContext *self
);
Releases a hold on the context previously created with ide_context_hold()
.
If a pending unload of the context has been requested, it will be dispatched once the hold count reaches zero.
“back-forward-list”
property“back-forward-list” IdeBackForwardList *
Back/forward navigation history for the context.
Flags: Read
“buffer-manager”
property“buffer-manager” IdeBufferManager *
The buffer manager for the context.
Flags: Read
“build-system”
property“build-system” IdeBuildSystem *
The build system used by the context.
Flags: Read
“device-manager”
property“device-manager” IdeDeviceManager *
The device manager for the context.
Flags: Read
“project-file”
property “project-file” GFile *
The project file for the context.
Flags: Read / Write / Construct Only
“root-build-dir”
property “root-build-dir” gchar *
The root directory to perform builds within.
Flags: Read / Write
Default value: NULL
“script-manager”
property“script-manager” IdeScriptManager *
The script manager for the context.
Flags: Read
“search-engine”
property“search-engine” IdeSearchEngine *
The search engine for the context.
Flags: Read
“snippets-manager”
property“snippets-manager” IdeSourceSnippetsManager *
The snippets manager for the context.
Flags: Read / Write
“unsaved-files”
property“unsaved-files” IdeUnsavedFiles *
The unsaved files in the context.
Flags: Read
“loaded”
signalvoid user_function (IdeContext *arg0, gpointer user_data)
This signal is emitted when loading of the context has completed. Plugins and services might want to get notified of this to perform work that requires subsystems that may not be loaded during context startup.
Flags: Run Last