Top | ![]() |
![]() |
![]() |
![]() |
GtexBuildTool * | gtex_build_tool_new () |
GtexBuildTool * | gtex_build_tool_clone () |
void | gtex_build_tool_add_job () |
GList * | gtex_build_tool_get_jobs () |
const gchar * | gtex_build_tool_get_description () |
gchar * | gtex_build_tool_to_xml () |
void | gtex_build_tool_run_async () |
void | gtex_build_tool_run_finish () |
char * | description | Read / Write / Construct |
gboolean | enabled | Read / Write / Construct |
char * | extensions | Read / Write / Construct |
char * | files-to-open | Read / Write / Construct |
char * | icon | Read / Write / Construct |
int | id | Read / Write / Construct |
char * | label | Read / Write / Construct |
A build tool. It contains some basic properties: a label, a description, an icon, etc. It contains a list of file extensions for which the build tool can run on. More interestingly, it contains the list of GtexBuildJob's to run. And a list of files to open when the build jobs are successfully run.
GtexBuildTool *
gtex_build_tool_clone (GtexBuildTool *build_tool
);
Clones a build tool (deep copy).
void gtex_build_tool_add_job (GtexBuildTool *build_tool
,GtexBuildJob *build_job
);
Adds a build job at the end of the list (in O(1)).
const gchar *
gtex_build_tool_get_description (GtexBuildTool *build_tool
);
Gets the description. The label is returned if the description is empty.
void gtex_build_tool_run_async (GtexBuildTool *build_tool
,GFile *file
,GtexBuildView *build_view
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Run a build tool on a file with the messages displayed in a build view.
build_tool |
a build tool. |
|
file |
a file. |
|
build_view |
a build view. |
|
cancellable |
a GCancellable object. |
|
callback |
the callback to call when the operation is finished. |
|
user_data |
the data to pass to the callback function. |
void gtex_build_tool_run_finish (GtexBuildTool *build_tool
,GAsyncResult *result
);
Finishes the operation started with gtex_build_tool_run_async()
.
Before calling this function you should keep a reference to result
as long
as the build messages are displayed in the build view. result
is needed for
example to show/hide some messages when the "More details" button is toggled.
“description”
property “description” char *
Owner: GtexBuildTool
Flags: Read / Write / Construct
Default value: NULL
“enabled”
property“enabled” gboolean
Owner: GtexBuildTool
Flags: Read / Write / Construct
Default value: FALSE
“extensions”
property “extensions” char *
Owner: GtexBuildTool
Flags: Read / Write / Construct
Default value: NULL
“files-to-open”
property “files-to-open” char *
Owner: GtexBuildTool
Flags: Read / Write / Construct
Default value: NULL
“icon”
property “icon” char *
Owner: GtexBuildTool
Flags: Read / Write / Construct
Default value: NULL
“id”
property “id” int
The build tool ID. It is used only by the default build tools, for saving in GSettings the lists of enabled/disabled build tools.
Owner: GtexBuildTool
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0