|
|
The base class for K2dGrFlow application windows. It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. An instance of K2dGrFlowView creates your center view, which is connected to the window's Doc object. K2dGrFlowApp reimplements the methods that KMainWindow provides for main window handling and supports full session management as well as using KActions.
See also: KMainWindow, KApplication, KConfig
| friend class K2dGrFlowView | K2dGrFlowView |
[private]
| K2dGrFlowApp (QWidget* parent=0, const char* name=0)
| K2dGrFlowApp |
construtor of K2dGrFlowApp, calls all init functions to create the application.
| ~K2dGrFlowApp ()
| ~K2dGrFlowApp |
| void openDocumentFile (const KURL& url=0)
| openDocumentFile |
opens a file specified by commandline option
| K2dGrFlowDoc * getDocument ()
| getDocument |
[const]
returns a pointer to the current document connected to the KTMainWindow instance and is used by the View class to access the document object's methods
| K2dDomain * getDomain ()
| getDomain |
[const]
returns a pointer to the current domain connected to the KTMainWindow instance and is used by the View class to access the domain's object's methods
| bool checkModel ()
| checkModel |
Does the overal checking of the model before data is used or saved Generates Messageboxes with the errors, returns false if not ok, true when ok
| void saveOptions ()
| saveOptions |
[protected]
save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration file
| void readOptions ()
| readOptions |
[protected]
read general Options again and initialize all variables like the recent file list
| void initActions ()
| initActions |
[protected]
initializes the KActions of the application
| void initStatusBar ()
| initStatusBar |
[protected]
sets up the statusbar for the main window by initialzing a statuslabel.
| void initDocument ()
| initDocument |
[protected]
initializes the document object of the main window that is connected to the view in initView().
See also: initView();
| void initView ()
| initView |
[protected]
creates the centerwidget of the KTMainWindow instance and sets it as the view
| bool queryClose ()
| queryClose |
[protected virtual]
queryClose is called by KTMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calles saveModified() on the document object to ask if the document shall be saved if Modified; on cancel the closeEvent is rejected.
See also: KTMainWindow#queryClose, KTMainWindow#closeEvent
Reimplemented from KMainWindow.
| bool queryExit ()
| queryExit |
[protected virtual]
queryExit is called by KTMainWindow when the last window of the application is going to be closed during the closeEvent(). Against the default implementation that just returns true, this calls saveOptions() to save the settings of the last window's properties.
See also: KTMainWindow#queryExit, KTMainWindow#closeEvent
Reimplemented from KMainWindow.
| void saveProperties (KConfig *_cfg)
| saveProperties |
[protected virtual]
saves the window properties for each open window during session end to the session config file, including saving the currently opened file by a temporary filename provided by KApplication.
See also: KTMainWindow#saveProperties
Reimplemented from KMainWindow.
| void readProperties (KConfig *_cfg)
| readProperties |
[protected virtual]
reads the session config file and restores the application's state including the last opened files and documents by reading the temporary files saved by saveProperties()
See also: KTMainWindow#readProperties
Reimplemented from KMainWindow.
| void slotFileNewWindow ()
| slotFileNewWindow |
[slot]
| void slotFileNew ()
| slotFileNew |
[slot]
| void slotFileOpen ()
| slotFileOpen |
[slot]
| void slotFileOpenRecent (const KURL& url)
| slotFileOpenRecent |
[slot]
| void slotFileSave ()
| slotFileSave |
[slot]
| void slotFileSaveAs ()
| slotFileSaveAs |
[slot]
| void slotFileClose ()
| slotFileClose |
[slot]
| void slotFilePrint ()
| slotFilePrint |
[slot]
| void slotFileQuit ()
| slotFileQuit |
[slot]
closes all open windows by calling close() on each memberList item until the list is empty, then quits the application. If queryClose() returns false because the user canceled the saveModified() dialog, the closing breaks.
| void slotEditCut ()
| slotEditCut |
[slot]
put the marked text/object into the clipboard and remove it from the document
| void slotEditCopy ()
| slotEditCopy |
[slot]
put the marked text/object into the clipboard
| void slotEditPaste ()
| slotEditPaste |
[slot]
paste the clipboard into the document
| void slotViewToolBar ()
| slotViewToolBar |
[slot]
toggles the toolbar
| void slotViewStatusBar ()
| slotViewStatusBar |
[slot]
toggles the statusbar
| void slotStatusMsg (const QString &text)
| slotStatusMsg |
[slot]
changes the statusbar contents for the standard label permanently, used to indicate current actions.
Parameters:
| text | the text that is displayed in the statusbar |
| void slotBorderInput ()
| slotBorderInput |
[slot]
| void slotBorderAdaptive ()
| slotBorderAdaptive |
[slot]
| void slotBorderPlot ()
| slotBorderPlot |
[slot]
| void slotBorderPlotMeshBorder ()
| slotBorderPlotMeshBorder |
[slot]
| void slotMeshOptions ()
| slotMeshOptions |
[slot]
| void slotMeshGenerate ()
| slotMeshGenerate |
[slot]
| void slotMeshPlot ()
| slotMeshPlot |
[slot]
| void slotMeshViewNodes ()
| slotMeshViewNodes |
[slot]
| void slotMeshViewElements ()
| slotMeshViewElements |
[slot]
| void slotMeshViewSides ()
| slotMeshViewSides |
[slot]
| void slotMeshShowMesh ()
| slotMeshShowMesh |
[slot]
| void slotFEMRunModel ()
| slotFEMRunModel |
[slot]
| void slotFEMViewResult ()
| slotFEMViewResult |
[slot]
| KConfig * config | config |
[private]
| K2dGrFlowView * view | view |
[private]
| K2dGrFlowDoc * doc | doc |
[private]
| K2dDomain * domain | domain |
[private]
| KAction* fileNewWindow | fileNewWindow |
[private]
| KAction* fileNew | fileNew |
[private]
| KAction* fileOpen | fileOpen |
[private]
| KRecentFilesAction* fileOpenRecent | fileOpenRecent |
[private]
| KAction* fileSave | fileSave |
[private]
| KAction* fileSaveAs | fileSaveAs |
[private]
| KAction* fileClose | fileClose |
[private]
| KAction* filePrint | filePrint |
[private]
| KAction* fileQuit | fileQuit |
[private]
| KAction* editCut | editCut |
[private]
| KAction* editCopy | editCopy |
[private]
| KAction* editPaste | editPaste |
[private]
| KToggleAction* viewToolBar | viewToolBar |
[private]
| KToggleAction* viewStatusBar | viewStatusBar |
[private]
| KAction* borderInput | borderInput |
[private]
| KAction* borderAdaptive | borderAdaptive |
[private]
| KAction* borderPlot | borderPlot |
[private]
| KAction* borderPlotMeshBorder | borderPlotMeshBorder |
[private]
| KAction* meshOptions | meshOptions |
[private]
| KAction* meshGenerate | meshGenerate |
[private]
| KAction* meshPlot | meshPlot |
[private]
| KAction* meshViewNodes | meshViewNodes |
[private]
| KAction* meshViewElements | meshViewElements |
[private]
| KAction* meshViewSides | meshViewSides |
[private]
| KAction* meshShowMesh | meshShowMesh |
[private]
| KAction* femRunModel | femRunModel |
[private]
| KAction* femViewResult | femViewResult |
[private]