|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
Main window of the Tympan application. More...
#include <TYMainWindow.h>


Public Slots | |
| void | refreshWindowTitle () |
| bool | loadSettings (const QString &fileName) |
| std::unique_ptr< QFile > | searchSettingsFile (const QString &TympanUserDir, const QString &fileNameBegin, const QString &fileNameEnd, const QString &fileNamePattern) |
| Returns a regular file name or the most recent file matching the file name pattern in the Tympan user directory. More... | |
| bool | saveSettings (const QString &fileName) |
| void | setCurProjet (LPTYProjet pProjet) |
| void | setCurSiteNode (LPTYSiteNode pSiteNode) |
| void | updateCurCalcul () |
| void | createNew () |
| void | createNewProjet () |
| void | showZoneSelectPage () |
| void | createNewGeoProjet () |
| void | createNewSite () |
| void | createNewBatiment () |
| void | createNewMachine () |
| void | open () |
| void | open (std::vector< LPTYElement > &tabElem, const bool &bRegenerate=false) |
| bool | save (QString dirName, QString &fileName, TYElement *pElement) |
| void | formatFileName (QString &fileName) |
| void | updateCurrentAppFile (const QString &dirName, const QString &fileName) |
| bool | save () |
| bool | saveAs () |
| bool | saveAsNoResult () |
| bool | saveAs (LPTYElement pElement) |
| TYElement * | elementToSave () |
| bool | backupFile (const QString &fileName) |
| void | showPluginManager () |
| void | close () |
| void | quitte () |
| void | print () |
| void | undo () |
| void | redo () |
| void | cut () |
| void | copy () |
| void | paste () |
| void | showHelp () |
| void | about () |
| void | showSpectreManager (bool show) |
| void | showMaillageManager (bool show) |
| void | showBiblio (bool show) |
| void | showPreferenceDialog () |
| void | showOutput (bool show) |
| void | updateHideOrShowOutputAction (bool visibilityChanged) |
| void | launchImporter () |
| bool | makeModeler (TYElement *pElt) |
| bool | makeBatimentModeler (LPTYBatiment pBatiment=NULL) |
| bool | makeMachineModeler (LPTYMachine pMachine=NULL) |
| void | makeSiteModeler (LPTYSiteNode pSite=NULL) |
| void | makeProjetModeler (LPTYProjet pProjet=NULL) |
| void | connectActionManager (TYActionManager *pActionManager) |
| void | connectDefaultActionManager () |
| void | updateModelers (bool clipping=true, bool axesAndGrid=true, bool displayList=true) |
| void | updateModelersElementGraphic (bool force=false) |
| void | updateModelersAfterComputation (LPTYProjet &result) |
| void | closeModeler (const TYElement *pElement) |
| void | closeModelers () |
| void | editCurCalcul () |
| void | goCurCalcul () |
| void | reloadSlots () |
| void | setDefaultCameraMode () |
Signals | |
| void | onUndo () |
| void | onRedo () |
Public Member Functions | |
| TYMainWindow () | |
| virtual | ~TYMainWindow () |
| QMdiArea * | getWorkspace () |
| TYModelerFrame * | getCurrentModeler () |
| TYProjetFrame * | getProjetFrame () |
| TYSiteFrame * | getSiteFrame () |
| TYOutputFrame * | getOutputFrame () |
| TYFaceToolbar * | getFaceToolbar () |
| TYModelerToolbar * | getModelerToolbar () |
| void | updateCurrentFileName (const QString &fileName) |
| bool | getSaveStatus () |
| Returns the save request status. More... | |
| void | initSaveStatus () |
| virtual QMenu * | createPopupMenu () |
| void | saveGeometryToPreferences () |
| save geometry of windows to preferences More... | |
Protected Member Functions | |
| virtual void | closeEvent (QCloseEvent *pEvent) |
| bool | testFile (const QString &fileName) |
| Tests the existence and the possibility of writing the file. More... | |
| QString | getFileName (const QString &filter, QString &dirName, const bool &forceNewName=false) |
| Produces a valid file name (or nothing!) More... | |
Protected Attributes | |
| QMdiArea * | _pWorkspace |
| Workspace for MDI management. More... | |
| TYModelerFrame * | _pCurrentModeler |
| Currently displayed modeler. More... | |
| QAction * | _pCreateNewAction |
| Action to create a new element. More... | |
| QAction * | _pOpenAction |
| Action to open the library manager. More... | |
| QAction * | _pCloseAction |
| Action to close the current project or site. More... | |
| QAction * | _pSaveAction |
| Action to save an element. More... | |
| QAction * | _pSaveAsAction |
| Action to save an element with a specific name. More... | |
| QAction * | _pSaveAsNoResultAction |
| Action to save an element with a specific name without calculation results. More... | |
| QAction * | _pShowPluginManagerAction |
| Action to display the plug-in manager. More... | |
| QAction * | _pSaveAllAction |
| Action to save all elements. More... | |
| QAction * | _pImportXMLAction |
| Action to import an element from an XML file. More... | |
| QAction * | _pExportXMLAction |
| Action to export the element from the active modeler to XML. More... | |
| QAction * | _pPrintAction |
| Action to print. More... | |
| QAction * | _pUndoAction |
| Action to perform an undo. More... | |
| QAction * | _pRedoAction |
| Action to perform a redo. More... | |
| QAction * | _pCutAction |
| Action to perform a cut. More... | |
| QAction * | _pCopyAction |
| Action to perform a copy. More... | |
| QAction * | _pPasteAction |
| Action to perform a paste. More... | |
| QAction * | _pHideOrShowSpectreMngrAction |
| Shows or hides the Spectrum Manager. More... | |
| QAction * | _pHideOrShowMaillageMngrAction |
| Shows or hides the Mesh Manager. More... | |
| QAction * | _pHideOrShowBiblioAction |
| Shows or hides the Library of elements. More... | |
| QAction * | _pHideOrShowOutputAction |
| Shows or hides the output messages window. More... | |
| QAction * | _pEditCurCalculAction |
| Action to edit the preferences of the current calculation. More... | |
| QAction * | _pGoCurCalculAction |
| Action to start the current calculation. More... | |
| QToolBar * | _pMainToolbar |
| Main toolbar. More... | |
| QToolBar * | _pWindowToolbar |
| Toolbar for window management. More... | |
| QToolBar * | _pCalculAcousticToolbar |
| Toolbar for acoustic calculations. More... | |
| TYModelerToolbar * | _pToolbarModeler |
| General toolbar for modelers. More... | |
| QButtonGroup * | _pSiteBtnGroup |
| Button group for site toolbars. More... | |
| int | _curSiteMode |
| Preserves the current mode of SiteModeler windows. More... | |
| TYTopoToolbar * | _pToolbarTopo |
| Topography toolbar. More... | |
| TYInfraToolbar * | _pToolbarInfra |
| Infrastructure toolbar. More... | |
| TYCalculToolbar * | _pToolbarCalcul |
| Calculation toolbar. More... | |
| QButtonGroup * | _pMachineBtnGroup |
| Button group for machine toolbar. More... | |
| int | _curMachineMode |
| Preserves the current mode of MachineModeler windows. More... | |
| TYMachineToolbar * | _pToolbarMachine |
| Machine toolbar. More... | |
| QButtonGroup * | _pFaceBtnGroup |
| Button group for face toolbar. More... | |
| int | _curFaceMode |
| Preserves the current mode of FaceModeler windows. More... | |
| TYFaceToolbar * | _pToolbarFace |
| Face toolbar. More... | |
| QButtonGroup * | _pBatimentBtnGroup |
| Button group for building toolbar. More... | |
| int | _curBatimentMode |
| Preserves the current mode of BatimentModeler windows. More... | |
| TYBatimentToolbar * | _pToolbarBatiment |
| Building toolbar. More... | |
| TYProjetFrame * | _pProjetFrame |
| Frame for project management. More... | |
| QDockWidget * | _pProjetDockWnd |
| Dockable window for project management. More... | |
| TYSiteFrame * | _pSiteFrame |
| Frame for site management. More... | |
| QDockWidget * | _pSiteDockWnd |
| Dockable window for site management. More... | |
| TYOutputFrame * | _pOutputFrame |
| Frame for feedback messages. More... | |
| QDockWidget * | _pOutputDockWnd |
| Dockable window for feedback messages. More... | |
| QMenu * | _pWindowsMenu |
| Spectra manager. More... | |
| QTextBrowser * | _pHelpBrowser |
| Help browser. More... | |
| bool | _closeAndQuit |
| Indicator for canceling the exit command. More... | |
| QOpenGLWidget * | _pDummyQOpenGLWidget |
Private Slots | |
| void | windowsMenuAboutToShow () |
| void | windowsMenuActivated () |
| void | subWindowActivated () |
| void | saveCurSiteMode (int mode) |
| void | saveCurMachineMode (int mode) |
| void | saveCurBatimentMode (int mode) |
| void | saveCurFaceMode (int mode) |
| void | updateUndoRedo (bool undoAvailable, bool redoAvailable, const QString &undoCmd, const QString &redoCmd) |
| void | onDestroyed () |
Private Member Functions | |
| void | onCourbeNiveauCreated (LPTYCourbeNiveau courbeNiveau) |
Private Attributes | |
| bool | _handlingCloseEvent = false |
Main window of the Tympan application.
Definition at line 49 of file TYMainWindow.h.
| TYMainWindow::TYMainWindow | ( | ) |
Default constructor.
Definition at line 93 of file TYMainWindow.cpp.

|
virtual |
Destructor.
Definition at line 462 of file TYMainWindow.cpp.
|
slot |
Displays the information window about Tympan.
Definition at line 668 of file TYMainWindow.cpp.

|
slot |
Creates a copy of the file passed as a parameter.
Definition at line 2006 of file TYMainWindow.cpp.

|
slot |
Closes the current project or site.
Definition at line 1705 of file TYMainWindow.cpp.


|
protectedvirtual |
|
slot |
Closes the modeler of an element.
| pElement | Object whose modeler is open. |
Definition at line 1002 of file TYMainWindow.cpp.


|
slot |
Closes all modelers
Definition at line 1022 of file TYMainWindow.cpp.

|
slot |
Connects an ActionManager to this MainWindow. This way, the undo and redo actions will be connected to this new ActionManager, and the previous one will be disconnected.
| pActionManager | The ActionManager to connect. |
Definition at line 839 of file TYMainWindow.cpp.


|
slot |
Connects the Application's ActionManager to this MainWindow.
Definition at line 859 of file TYMainWindow.cpp.


|
slot |
Cut-Copy-Paste.
Definition at line 2158 of file TYMainWindow.cpp.


|
slot |
Displays the dialog for creating a new element.
Definition at line 1441 of file TYMainWindow.cpp.


|
slot |
Creates a new building.
Definition at line 1616 of file TYMainWindow.cpp.


|
slot |
Creates a new geographic project.
Definition at line 1498 of file TYMainWindow.cpp.


|
slot |
Creates a new machine.
Definition at line 1624 of file TYMainWindow.cpp.


|
slot |
Creates a new project.
Definition at line 1449 of file TYMainWindow.cpp.


|
slot |
Creates a new site.
Definition at line 1608 of file TYMainWindow.cpp.


|
virtual |
|
slot |
Cut-Copy-Paste.
Definition at line 2153 of file TYMainWindow.cpp.


|
slot |
Displays the widget of the current calculation.
Definition at line 1033 of file TYMainWindow.cpp.


|
slot |
Definition at line 1785 of file TYMainWindow.cpp.


|
inlineslot |
|
inline |
|
inline |
|
protected |
Produces a valid file name (or nothing!)
Definition at line 2088 of file TYMainWindow.cpp.


|
inline |
|
inline |
|
inline |
|
inline |
Returns the save request status.
Definition at line 98 of file TYMainWindow.h.
|
inline |
|
inline |
|
slot |
Launches the current calculation.
Definition at line 1041 of file TYMainWindow.cpp.


|
inline |
Definition at line 102 of file TYMainWindow.h.
|
slot |
Opens the Importer (Tympan II to Tympan 3 conversion) in a new process.
Definition at line 2190 of file TYMainWindow.cpp.

|
slot |
Loads settings.
Definition at line 507 of file TYMainWindow.cpp.


|
slot |
Instantiates a new Building Modeler window.
Definition at line 726 of file TYMainWindow.cpp.


|
slot |
Instantiates a new Machine Modeler window.
Definition at line 765 of file TYMainWindow.cpp.


|
slot |
Creates a modeler based on a type.
Definition at line 694 of file TYMainWindow.cpp.


|
slot |
Instantiates a new Project Modeler window.
Definition at line 822 of file TYMainWindow.cpp.


|
slot |
Instantiates a new Site Modeler window.
Definition at line 805 of file TYMainWindow.cpp.


|
private |
Definition at line 1387 of file TYMainWindow.cpp.


|
inlineprivateslot |
|
signal |
Signal that a redo is requested.

|
signal |
Signal that an undo is requested.

|
slot |
Opens an XML file.
Definition at line 1632 of file TYMainWindow.cpp.


|
slot |
Opens an XML file (used for importing components).
Definition at line 1680 of file TYMainWindow.cpp.

|
slot |
Cut-Copy-Paste.
Definition at line 2163 of file TYMainWindow.cpp.


|
slot |
Displays the print dialog.
Definition at line 2133 of file TYMainWindow.cpp.

|
slot |
Quits the application.
Definition at line 1764 of file TYMainWindow.cpp.


|
slot |
Redoes the last undone action.
Definition at line 2148 of file TYMainWindow.cpp.

|
slot |
Refreshes the window title.
Definition at line 2258 of file TYMainWindow.cpp.


|
slot |
Definition at line 505 of file TYMainWindow.cpp.
|
slot |
Saves the element of the active window.
Definition at line 1826 of file TYMainWindow.cpp.


|
slot |
|
slot |
Saves the project (or active element) under a different name.
Definition at line 1897 of file TYMainWindow.cpp.


|
slot |
Saves the element passed as a parameter.
Definition at line 1968 of file TYMainWindow.cpp.

|
slot |
Saves the project (or active element) under a different name without calculation results.
Definition at line 1933 of file TYMainWindow.cpp.


|
privateslot |
To preserve the current mode of BatimentModeler windows.
Definition at line 1345 of file TYMainWindow.cpp.

|
privateslot |
To preserve the current mode of FaceModeler windows.
Definition at line 1352 of file TYMainWindow.cpp.

|
privateslot |
To preserve the current mode of MachineModeler windows.
Definition at line 1338 of file TYMainWindow.cpp.

|
privateslot |
To preserve the current mode of SiteModeler windows.
Definition at line 1331 of file TYMainWindow.cpp.

| void TYMainWindow::saveGeometryToPreferences | ( | ) |
save geometry of windows to preferences
Definition at line 477 of file TYMainWindow.cpp.

|
slot |
Saves settings.
Definition at line 641 of file TYMainWindow.cpp.

|
slot |
Returns a regular file name or the most recent file matching the file name pattern in the Tympan user directory.
| TympanUserDir | Tympan user directory |
| fileNameBegin | Beginning of the file name to search for |
| fileNameEnd | End of the file name to search for |
| fileNamePattern | File name pattern with a single-digit placeholder for 'x' |
Definition at line 582 of file TYMainWindow.cpp.

|
slot |
Sets the current project.
Definition at line 1393 of file TYMainWindow.cpp.


|
slot |
Sets the current site node.
Definition at line 1407 of file TYMainWindow.cpp.


|
slot |
Resets the interface to the default camera mode (automatically used after creating elements)
Definition at line 1114 of file TYMainWindow.cpp.


|
slot |
Shows or hides the library.
Definition at line 2172 of file TYMainWindow.cpp.

|
slot |
Displays the help browser.
Definition at line 663 of file TYMainWindow.cpp.

|
slot |
Shows or hides the mesh manager.
Definition at line 2170 of file TYMainWindow.cpp.

|
slot |
Displays the output window.
Definition at line 2180 of file TYMainWindow.cpp.

|
slot |
Displays the plugin manager.
Definition at line 2042 of file TYMainWindow.cpp.


|
slot |
Displays the preferences dialog.
Definition at line 2174 of file TYMainWindow.cpp.


|
slot |
Shows or hides the spectrum manager.
Definition at line 2168 of file TYMainWindow.cpp.

|
slot |
Show the select zone page to create new geo project
Definition at line 1472 of file TYMainWindow.cpp.


|
privateslot |
Called when a window is activated.
Definition at line 1122 of file TYMainWindow.cpp.


|
protected |
Tests the existence and the possibility of writing the file.
Definition at line 2056 of file TYMainWindow.cpp.

|
slot |
Undoes the last action.
Definition at line 2143 of file TYMainWindow.cpp.

|
slot |
Updates the current calculation.
Definition at line 1413 of file TYMainWindow.cpp.


|
slot |
Definition at line 1997 of file TYMainWindow.cpp.


| void TYMainWindow::updateCurrentFileName | ( | const QString & | fileName | ) |
Definition at line 2247 of file TYMainWindow.cpp.


|
slot |
Synchronizes the button state with the visibility of the output window.
Definition at line 2185 of file TYMainWindow.cpp.

|
slot |
Updates the graphical views of the open modelers.
| clipping | To update the camera's clipping range. |
| axesAndGrid | To update the axes and grid. |
| displayList | To update the global display list. |
Definition at line 864 of file TYMainWindow.cpp.


|
slot |
Updates the open modelers after acoustic calculation.
| result | The new project after acoustic calculation. |
Definition at line 938 of file TYMainWindow.cpp.


|
slot |
Updates the graphical structure of the element associated with the open modelers.
| force | Forces the update even if the element is not marked as modified. |
Definition at line 922 of file TYMainWindow.cpp.

|
privateslot |
Updates the menus and buttons for undo and redo.
Definition at line 1359 of file TYMainWindow.cpp.

|
privateslot |
Manages the display of windows.
Definition at line 1046 of file TYMainWindow.cpp.


|
privateslot |
Manages the display of windows.
Definition at line 1087 of file TYMainWindow.cpp.

|
protected |
Indicator for canceling the exit command.
Definition at line 631 of file TYMainWindow.h.
|
protected |
Preserves the current mode of BatimentModeler windows.
Definition at line 597 of file TYMainWindow.h.
|
protected |
Preserves the current mode of FaceModeler windows.
Definition at line 590 of file TYMainWindow.h.
|
protected |
Preserves the current mode of MachineModeler windows.
Definition at line 583 of file TYMainWindow.h.
|
protected |
Preserves the current mode of SiteModeler windows.
Definition at line 572 of file TYMainWindow.h.
|
private |
Re-entrancy guard for closeEvent() to prevent recursive shutdown/quit loops.
Definition at line 421 of file TYMainWindow.h.
|
protected |
Button group for building toolbar.
Definition at line 595 of file TYMainWindow.h.
|
protected |
Toolbar for acoustic calculations.
Definition at line 564 of file TYMainWindow.h.
|
protected |
Action to close the current project or site.
Definition at line 506 of file TYMainWindow.h.
|
protected |
Action to perform a copy.
Definition at line 539 of file TYMainWindow.h.
|
protected |
Action to create a new element.
Definition at line 502 of file TYMainWindow.h.
|
protected |
Currently displayed modeler.
Definition at line 499 of file TYMainWindow.h.
|
protected |
Action to perform a cut.
Definition at line 537 of file TYMainWindow.h.
|
protected |
Dummy QOpenGLWidget to get around issue #696 See https://bugreports.qt.io/browse/QTBUG-107585
Definition at line 635 of file TYMainWindow.h.
|
protected |
Action to edit the preferences of the current calculation.
Definition at line 553 of file TYMainWindow.h.
|
protected |
Action to export the element from the active modeler to XML.
Definition at line 526 of file TYMainWindow.h.
|
protected |
Button group for face toolbar.
Definition at line 588 of file TYMainWindow.h.
|
protected |
Action to start the current calculation.
Definition at line 555 of file TYMainWindow.h.
|
protected |
Help browser.
Definition at line 628 of file TYMainWindow.h.
|
protected |
Shows or hides the Library of elements.
Definition at line 548 of file TYMainWindow.h.
|
protected |
Shows or hides the Mesh Manager.
Definition at line 546 of file TYMainWindow.h.
|
protected |
Shows or hides the output messages window.
Definition at line 550 of file TYMainWindow.h.
|
protected |
Shows or hides the Spectrum Manager.
Definition at line 544 of file TYMainWindow.h.
|
protected |
Action to import an element from an XML file.
Definition at line 524 of file TYMainWindow.h.
|
protected |
Button group for machine toolbar.
Definition at line 581 of file TYMainWindow.h.
|
protected |
Main toolbar.
Definition at line 558 of file TYMainWindow.h.
|
protected |
Action to open the library manager.
Definition at line 504 of file TYMainWindow.h.
|
protected |
Dockable window for feedback messages.
Definition at line 614 of file TYMainWindow.h.
|
protected |
Frame for feedback messages.
Definition at line 612 of file TYMainWindow.h.
|
protected |
Action to perform a paste.
Definition at line 541 of file TYMainWindow.h.
|
protected |
Action to print.
Definition at line 529 of file TYMainWindow.h.
|
protected |
Dockable window for project management.
Definition at line 604 of file TYMainWindow.h.
|
protected |
Frame for project management.
Definition at line 602 of file TYMainWindow.h.
|
protected |
Action to perform a redo.
Definition at line 534 of file TYMainWindow.h.
|
protected |
Action to save an element.
Definition at line 509 of file TYMainWindow.h.
|
protected |
Action to save all elements.
Definition at line 521 of file TYMainWindow.h.
|
protected |
Action to save an element with a specific name.
Definition at line 512 of file TYMainWindow.h.
|
protected |
Action to save an element with a specific name without calculation results.
Definition at line 515 of file TYMainWindow.h.
|
protected |
Action to display the plug-in manager.
Definition at line 518 of file TYMainWindow.h.
|
protected |
Button group for site toolbars.
Definition at line 570 of file TYMainWindow.h.
|
protected |
Dockable window for site management.
Definition at line 609 of file TYMainWindow.h.
|
protected |
Frame for site management.
Definition at line 607 of file TYMainWindow.h.
|
protected |
Building toolbar.
Definition at line 599 of file TYMainWindow.h.
|
protected |
Calculation toolbar.
Definition at line 578 of file TYMainWindow.h.
|
protected |
Face toolbar.
Definition at line 592 of file TYMainWindow.h.
|
protected |
Infrastructure toolbar.
Definition at line 576 of file TYMainWindow.h.
|
protected |
Machine toolbar.
Definition at line 585 of file TYMainWindow.h.
|
protected |
General toolbar for modelers.
Definition at line 567 of file TYMainWindow.h.
|
protected |
Topography toolbar.
Definition at line 574 of file TYMainWindow.h.
|
protected |
Action to perform an undo.
Definition at line 532 of file TYMainWindow.h.
|
protected |
Spectra manager.
Mesh manager. Mesh modeler for the mesh manager. Window management menu.
Definition at line 625 of file TYMainWindow.h.
|
protected |
Toolbar for window management.
Definition at line 561 of file TYMainWindow.h.
|
protected |
Workspace for MDI management.
Definition at line 494 of file TYMainWindow.h.