| Top |  |  |  |  | 
| gchar * | description | Read / Write / Construct | 
| gboolean | enabled | Read / Write / Construct | 
| gchar * | extensions | Read / Write / Construct | 
| gchar * | files-to-open | Read / Write / Construct | 
| gchar * | icon | Read / Write / Construct | 
| gint | id | Read / Write / Construct | 
| gchar * | 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” gchar *
Flags: Read / Write / Construct
Default value: NULL
“files-to-open” property“files-to-open” gchar *
Flags: Read / Write / Construct
Default value: NULL
“id” property“id” gint
The build tool ID. It is used only by the default build tools, for saving in GSettings the lists of enabled/disabled build tools.
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0