QCAD
Open Source 2D CAD
autostart.js File Reference

Functions

void execScripts (void args)
 Executes the scripts that are given as arguments of -exec. More...
 
void initAddOns (void addOns, void splash)
 
void loadAddOns (void addOns, void splash)
 Loads and initializes all add-ons. More...
 
void loadTranslations (void addOns, void splash)
 Loads translations for all add-ons if appropriate. More...
 
void main ()
 Loads the add-ons and starts QCAD. More...
 
void openFiles (void args, void createNew, void close)
 Open files given as arguments args. More...
 
void postInitAddOns (void addOns, void splash)
 
void setUpDragAndDrop (void appWin)
 Sets up drag and drop support (droping files on the application window opens them). More...
 
void uninitAddOns (void addOns)
 
void usage ()
 Prints command line usage information on stdout. More...
 
void version ()
 Prints version information. More...
 

Variables

int i
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 

Function Documentation

◆ execScripts()

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.

◆ initAddOns()

void initAddOns ( void  addOns,
void  splash 
)

◆ loadAddOns()

void loadAddOns ( void  addOns,
void  splash 
)

Loads and initializes all add-ons.

Parameters
addOnsarray of AddOn objects.
splashthe splash window for displaying status updates.

◆ loadTranslations()

void loadTranslations ( void  addOns,
void  splash 
)

Loads translations for all add-ons if appropriate.

◆ main()

void main ( )

Loads the add-ons and starts QCAD.

◆ openFiles()

void openFiles ( void  args,
void  createNew,
void  close 
)

Open files given as arguments args.

Parameters
createNewCreates a new document if no files are given
closeCloses existing open MDI widgets

◆ postInitAddOns()

void postInitAddOns ( void  addOns,
void  splash 
)

◆ setUpDragAndDrop()

void setUpDragAndDrop ( void  appWin)

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

◆ uninitAddOns()

void uninitAddOns ( void  addOns)

◆ usage()

void usage ( )

Prints command line usage information on stdout.

◆ version()

void version ( )

Prints version information.

Variable Documentation

◆ i

int i

Copyright (c) 2011-2018 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.