![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Signals |
#include <libanjuta/interfaces/ianjuta-project-manager.h> #define IANJUTA_PROJECT_MANAGER_ERROR #define IANJUTA_PROJECT_MANAGER_PROJECT_ROOT_URI #define IANJUTA_PROJECT_MANAGER_CURRENT_URI IAnjutaProjectManager; IAnjutaProjectManagerIface; GQuark ianjuta_project_manager_error_quark (void); GType ianjuta_project_manager_get_type (void); gchar* ianjuta_project_manager_add_group (IAnjutaProjectManager *obj, const gchar *group_name_to_add, const gchar *default_location_uri, GError **err); gchar* ianjuta_project_manager_add_source (IAnjutaProjectManager *obj, const gchar *source_uri_to_add, const gchar *default_location_uri, GError **err); GList* ianjuta_project_manager_add_sources (IAnjutaProjectManager *obj, GList *source_uris_to_add, const gchar *default_location_uri, GError **err); gchar* ianjuta_project_manager_add_target (IAnjutaProjectManager *obj, const gchar *target_name_to_add, const gchar *default_location_uri, GError **err); guint ianjuta_project_manager_get_capabilities (IAnjutaProjectManager *obj, GError **err); GList* ianjuta_project_manager_get_children (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); AnjutaProjectNodeType ianjuta_project_manager_get_element_type (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); GList* ianjuta_project_manager_get_elements (IAnjutaProjectManager *obj, AnjutaProjectNodeType element_type, GError **err); GList* ianjuta_project_manager_get_packages (IAnjutaProjectManager *obj, GError **err); gchar* ianjuta_project_manager_get_parent (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); gchar* ianjuta_project_manager_get_selected (IAnjutaProjectManager *obj, GError **err); AnjutaProjectTargetClass ianjuta_project_manager_get_target_type (IAnjutaProjectManager *obj, const gchar *target_uri, GError **err); GList* ianjuta_project_manager_get_targets (IAnjutaProjectManager *obj, AnjutaProjectTargetClass target_type, GError **err); gboolean ianjuta_project_manager_is_open (IAnjutaProjectManager *obj, GError **err);
#define IANJUTA_PROJECT_MANAGER_ERROR ianjuta_project_manager_error_quark()
#define IANJUTA_PROJECT_MANAGER_PROJECT_ROOT_URI "project_root_uri"
Anjuta shell value set by project manager to the project root uri.
#define IANJUTA_PROJECT_MANAGER_CURRENT_URI "project_manager_current_uri"
Anjuta shell value set by project manager to the current uri.
typedef struct { GTypeInterface g_iface; /* Signal */ void (*element_added) (IAnjutaProjectManager *obj, const gchar *element_uri); /* Signal */ void (*element_removed) (IAnjutaProjectManager *obj, const gchar *element_uri); /* Signal */ void (*element_selected) (IAnjutaProjectManager *obj, const gchar *element_uri); gchar* (*add_group) (IAnjutaProjectManager *obj, const gchar *group_name_to_add, const gchar *default_location_uri, GError **err); gchar* (*add_source) (IAnjutaProjectManager *obj, const gchar *source_uri_to_add, const gchar *default_location_uri, GError **err); gchar* (*add_source_quiet) (IAnjutaProjectManager *obj, const gchar *source_uri_to_add, const gchar *target_uri, GError **err); GList* (*add_sources) (IAnjutaProjectManager *obj, GList* source_uris_to_add, const gchar *default_location_uri, GError **err); gchar* (*add_target) (IAnjutaProjectManager *obj, const gchar *target_name_to_add, const gchar *default_location_uri, GError **err); guint (*get_capabilities) (IAnjutaProjectManager *obj, GError **err); GList* (*get_children) (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); AnjutaProjectNodeType (*get_element_type) (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); GList* (*get_elements) (IAnjutaProjectManager *obj, AnjutaProjectNodeType element_type, GError **err); GList* (*get_packages) (IAnjutaProjectManager *obj, GError **err); gchar* (*get_parent) (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err); gchar* (*get_selected) (IAnjutaProjectManager *obj, GError **err); gchar* (*get_selected_id) (IAnjutaProjectManager *obj, AnjutaProjectNodeType element_type, GError **err); AnjutaProjectTargetClass (*get_target_type) (IAnjutaProjectManager *obj, const gchar *target_uri, GError **err); GList* (*get_targets) (IAnjutaProjectManager *obj, AnjutaProjectTargetClass target_type, GError **err); gboolean (*is_open) (IAnjutaProjectManager *obj, GError **err); } IAnjutaProjectManagerIface;
gchar* ianjuta_project_manager_add_group (IAnjutaProjectManager *obj, const gchar *group_name_to_add, const gchar *default_location_uri, GError **err);
fixme
|
Self |
|
fixme |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
gchar* ianjuta_project_manager_add_source (IAnjutaProjectManager *obj, const gchar *source_uri_to_add, const gchar *default_location_uri, GError **err);
Prompt the user to add a file to the project. If the user selects multiple files only the first uri is returned.
|
Self |
|
Target name or uri |
|
Default source location or NULL if don't care |
|
Error propagation and reporting. |
Returns : |
element URIs. Must be freed when no longer required. |
GList* ianjuta_project_manager_add_sources (IAnjutaProjectManager *obj, GList *source_uris_to_add, const gchar *default_location_uri, GError **err);
Prompt the user to add a file to the project. Depending on the project backend, it can be possible that the source files must be located in a particular directory. You can pass to this function relative URI and it will return absolute URI valid for the target selected by the user.
You can add non existing file. In this case the element_added signal will be emitted with a non existing file. So it is up to the caller to reemit this signal later when the file is created.
|
Self |
|
sources URI to add |
|
fixme |
|
Error propagation and reporting. |
Returns : |
absolute element URIs. Must be freed when no longer required. |
gchar* ianjuta_project_manager_add_target (IAnjutaProjectManager *obj, const gchar *target_name_to_add, const gchar *default_location_uri, GError **err);
fixme
|
Self |
|
fixme |
|
fixme |
|
Error propagation and reporting. |
Returns : |
guint ianjuta_project_manager_get_capabilities (IAnjutaProjectManager *obj, GError **err);
Returns the capabilites of project whether it can add group, target sources etc.
|
Self |
|
Error propagation and reporting. |
Returns : |
Supported capabilites. |
GList* ianjuta_project_manager_get_children (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
AnjutaProjectNodeType ianjuta_project_manager_get_element_type (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
GList* ianjuta_project_manager_get_elements (IAnjutaProjectManager *obj, AnjutaProjectNodeType element_type, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
GList* ianjuta_project_manager_get_packages (IAnjutaProjectManager *obj, GError **err);
|
|
|
|
Returns : |
gchar* ianjuta_project_manager_get_parent (IAnjutaProjectManager *obj, const gchar *element_uri, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
gchar* ianjuta_project_manager_get_selected (IAnjutaProjectManager *obj, GError **err);
fixme
|
Self |
|
Error propagation and reporting. |
Returns : |
AnjutaProjectTargetClass ianjuta_project_manager_get_target_type (IAnjutaProjectManager *obj, const gchar *target_uri, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
GList* ianjuta_project_manager_get_targets (IAnjutaProjectManager *obj, AnjutaProjectTargetClass target_type, GError **err);
fixme
|
Self |
|
fixme |
|
Error propagation and reporting. |
Returns : |
fixme |
gboolean ianjuta_project_manager_is_open (IAnjutaProjectManager *obj, GError **err);
fixme
|
Self |
|
Error propagation and reporting. |
Returns : |
"element-added"
signalvoid user_function (IAnjutaProjectManager *ianjutaprojectmanager, gchar *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"element-removed"
signalvoid user_function (IAnjutaProjectManager *ianjutaprojectmanager, gchar *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"element-selected"
signalvoid user_function (IAnjutaProjectManager *ianjutaprojectmanager, gchar *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |