QCAD Application Framework
CAD Application Development and Automation.
 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 initPlugins (void plugins, void splash)
void loadPlugins (void plugins, void splash)
 Loads and initializes all plugins.
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 plugins, void splash)
 Loads translations for all plugins if appropriate.
void main ()
 Loads the plugins 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 postInitPlugins (void plugins, 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 initPlugins ( void  plugins,
void  splash 
)
void loadPlugins ( void  plugins,
void  splash 
)

Loads and initializes all plugins.

Parameters:
pluginsarray of Plugin 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  plugins,
void  splash 
)

Loads translations for all plugins if appropriate.

void main ( )

Loads the plugins 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 postInitPlugins ( void  plugins,
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.