QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
autostart.js File Reference

Functions

void execScripts (void args)
 Executes the scripts that are given as arguments of -exec.
void initAddOns (void addOns, void splash)
void loadAddOns (void addOns, void splash)
 Loads and initializes all add-ons.
void loadStyleSheets (void args)
 Loads application wide style sheets given as arguments after -gui-style or -gui-css-file of placed in the user's home under [config directory]/custom.css.
void loadTranslations (void addOns, void splash)
 Loads translations for all add-ons if appropriate.
void main ()
 Loads the add-ons and starts QCAD.
void openFiles (void args, void createNew)
 Open files given as arguments args or creates a new document if no files are given and createNew is true.
void postInitAddOns (void addOns, void splash)
void setUpDragAndDrop (void appWin)
 Sets up drag and drop support (droping files on the application window opens them).
void usage ()
 Prints command line usage information on stdout.
void version ()
 Prints version information.

Function Documentation

void execScripts ( void  args)

Executes the scripts that are given as arguments of -exec.

Returns:
true if the application should quit after executing the scripts, false otherwise.
void initAddOns ( void  addOns,
void  splash 
)
void loadAddOns ( void  addOns,
void  splash 
)

Loads and initializes all add-ons.

Parameters:
addOnsarray of AddOn objects.
splashthe splash window for displaying status updates.
void loadStyleSheets ( void  args)

Loads application wide style sheets given as arguments after -gui-style or -gui-css-file of placed in the user's home under [config directory]/custom.css.

void loadTranslations ( void  addOns,
void  splash 
)

Loads translations for all add-ons if appropriate.

void main ( )

Loads the add-ons and starts QCAD.

void openFiles ( void  args,
void  createNew 
)

Open files given as arguments args or creates a new document if no files are given and createNew is true.

void postInitAddOns ( void  addOns,
void  splash 
)
void setUpDragAndDrop ( void  appWin)

Sets up drag and drop support (droping files on the application window opens them).

void usage ( )

Prints command line usage information on stdout.

void version ( )

Prints version information.