void storeSettings();
void initMDI();
void initView();
- bool queryExit(bool force);
+ bool QueryExit(void);
/** Catch hotkey for giving focus to command line. */
- virtual void keyPressEvent(QKeyEvent* e);
+ virtual void keyPressEvent(QKeyEvent * e);
virtual void keyReleaseEvent(QKeyEvent * e);
public slots:
void finishSplashScreen();
void slotFocus();
void slotBack();
- //void slotNext();
void slotEnter();
void slotFocusCommandLine();
void slotError(const QString & msg);
MDIWindow * slotFileNew(Document * doc = NULL);
/** opens a document */
void slotFileOpen();
- /**
- * opens a recent file document
- * @param id File Menu id of the file
- */
+ /** opens a recent file document */
void slotFileOpenRecent(void);
- /**
- * opens the given file.
- */
+ /** opens the given file. */
void slotFileOpen(const QString & fileName, RS2::FormatType type);
/** saves a document */
void slotFileSave();
/** exits the application */
void slotFileQuit();
-#if 0
- /** forces to quit QCad (demo) */
- void slotFileDemoQuit();
-#endif
-
/** toggle the grid */
void slotViewGrid(bool toggle);
/** toggle the draft mode */
void slotViewDraft(bool toggle);
/** toggle the statusbar */
void slotViewStatusBar(bool toggle);
- /** toggle the layerlist */
- //void slotViewLayerList(bool toggle);
- /** toggle the blocklist */
- //void slotViewBlockList(bool toggle);
- /** toggle the command line */
- //void slotViewCommandLine(bool toggle);
- /** toggle the option toolbar */
- //void slotViewOptionToolbar(bool toggle);
-
- //void slotBlocksEdit();
+
void slotOptionsGeneral();
void slotScriptOpenIDE();
void slotInsertBlock();
void slotInsertBlock(const QString & name);
- /** shows an about dlg*/
+ /** shows an about dlg */
void slotHelpAbout();
void slotHelpManual();
void slotTestResize1024();
signals:
- void gridChanged(bool on);
- void draftChanged(bool on);
- void printPreviewChanged(bool on);
- void windowsChanged(bool windowsLeft);
+// void gridChanged(bool on);
+// void draftChanged(bool on);
+// void printPreviewChanged(bool on);
+ void windowsChanged(bool);
public:
static ApplicationWindow * getAppWindow();
QMdiArea * getWorkspace();
MDIWindow * getMDIWindow();
- virtual GraphicView * getGraphicView();
- virtual Document * getDocument();
- virtual void createNewDocument(const QString & fileName = QString::null, Document * doc = NULL);
- virtual QMainWindow * GetMainWindow();
- virtual ActionHandler * getActionHandler();
- virtual void showSimulationControls();
- /**
- * @return Pointer to the qsa object.
- */
#ifdef SCRIPTING
+ /**
+ * @return Pointer to the qsa object.
+ */
QSProject * getQSAProject();
#endif
void redrawAll();
void updateGrids();
- /**
- * Implementation from QG_MainWindowInterface.
- */
+ /** Implementation from QG_MainWindowInterface. */
virtual void setFocus2();
+ virtual GraphicView * getGraphicView();
+ virtual Document * getDocument();
+ virtual void createNewDocument(const QString & fileName = QString::null, Document * doc = NULL);
+ virtual void showSimulationControls();
protected:
void closeEvent(QCloseEvent *);
// Toolbar for CAD tools
CadToolBar * cadToolBar;
-//No. QAssistantClient * assistant;
-
QAction * scriptOpenIDE;
QAction * scriptRun;