Top |
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 LatexilaBuildJob's to run. And a list of files to open when the build jobs are successfully run.
LatexilaBuildTool *
latexila_build_tool_clone (LatexilaBuildTool *build_tool
);
Clones a build tool (deep copy).
void latexila_build_tool_add_job (LatexilaBuildTool *build_tool
,LatexilaBuildJob *build_job
);
Adds a build job at the end of the list (in O(1)).
GList *
latexila_build_tool_get_jobs (LatexilaBuildTool *build_tool
);
const gchar *
latexila_build_tool_get_description (LatexilaBuildTool *build_tool
);
Gets the description. The label is returned if the description is empty.
void latexila_build_tool_run_async (LatexilaBuildTool *build_tool
,GFile *file
,LatexilaBuildView *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 latexila_build_tool_run_finish (LatexilaBuildTool *build_tool
,GAsyncResult *result
);
Finishes the operation started with latexila_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: LatexilaBuildTool
Flags: Read / Write / Construct
Default value: NULL
“enabled”
property“enabled” gboolean
Owner: LatexilaBuildTool
Flags: Read / Write / Construct
Default value: FALSE
“extensions”
property “extensions” char *
Owner: LatexilaBuildTool
Flags: Read / Write / Construct
Default value: NULL
“files-to-open”
property “files-to-open” char *
Owner: LatexilaBuildTool
Flags: Read / Write / Construct
Default value: NULL
“icon”
property “icon” char *
Owner: LatexilaBuildTool
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: LatexilaBuildTool
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0