Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | List of all members
TYMainWindow Class Reference

Main window of the Tympan application. More...

#include <TYMainWindow.h>

Inheritance diagram for TYMainWindow:
Inheritance graph
[legend]
Collaboration diagram for TYMainWindow:
Collaboration graph
[legend]

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)
 
TYElementelementToSave ()
 
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 ()
 
TYModelerFramegetCurrentModeler ()
 
TYProjetFramegetProjetFrame ()
 
TYSiteFramegetSiteFrame ()
 
TYOutputFramegetOutputFrame ()
 
TYFaceToolbargetFaceToolbar ()
 
TYModelerToolbargetModelerToolbar ()
 
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)
 

Detailed Description

Main window of the Tympan application.

Definition at line 49 of file TYMainWindow.h.

Constructor & Destructor Documentation

◆ TYMainWindow()

TYMainWindow::TYMainWindow ( )

Default constructor.

Definition at line 93 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ ~TYMainWindow()

TYMainWindow::~TYMainWindow ( )
virtual

Destructor.

Definition at line 462 of file TYMainWindow.cpp.

Member Function Documentation

◆ about

void TYMainWindow::about ( )
slot

Displays the information window about Tympan.

Definition at line 668 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ backupFile

bool TYMainWindow::backupFile ( const QString &  fileName)
slot

Creates a copy of the file passed as a parameter.

Definition at line 2001 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ close

void TYMainWindow::close ( )
slot

Closes the current project or site.

Definition at line 1704 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeEvent()

void TYMainWindow::closeEvent ( QCloseEvent *  pEvent)
protectedvirtual

Definition at line 2208 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ closeModeler

void TYMainWindow::closeModeler ( const TYElement pElement)
slot

Closes the modeler of an element.

Parameters
pElementObject whose modeler is open.

Definition at line 1002 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeModelers

void TYMainWindow::closeModelers ( )
slot

Closes all modelers

Definition at line 1022 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ connectActionManager

void TYMainWindow::connectActionManager ( TYActionManager pActionManager)
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.

Parameters
pActionManagerThe ActionManager to connect.

Definition at line 839 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectDefaultActionManager

void TYMainWindow::connectDefaultActionManager ( )
slot

Connects the Application's ActionManager to this MainWindow.

Definition at line 859 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy

void TYMainWindow::copy ( )
slot

Cut-Copy-Paste.

Definition at line 2153 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNew

void TYMainWindow::createNew ( )
slot

Displays the dialog for creating a new element.

Definition at line 1441 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewBatiment

void TYMainWindow::createNewBatiment ( )
slot

Creates a new building.

Definition at line 1615 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewGeoProjet

void TYMainWindow::createNewGeoProjet ( )
slot

Creates a new geographic project.

Definition at line 1498 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewMachine

void TYMainWindow::createNewMachine ( )
slot

Creates a new machine.

Definition at line 1623 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewProjet

void TYMainWindow::createNewProjet ( )
slot

Creates a new project.

Definition at line 1449 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createNewSite

void TYMainWindow::createNewSite ( )
slot

Creates a new site.

Definition at line 1607 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createPopupMenu()

QMenu * TYMainWindow::createPopupMenu ( )
virtual

Definition at line 468 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ cut

void TYMainWindow::cut ( )
slot

Cut-Copy-Paste.

Definition at line 2148 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ editCurCalcul

void TYMainWindow::editCurCalcul ( )
slot

Displays the widget of the current calculation.

Definition at line 1033 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementToSave

TYElement * TYMainWindow::elementToSave ( )
slot

Definition at line 1780 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ formatFileName

void TYMainWindow::formatFileName ( QString &  fileName)
inlineslot

Definition at line 204 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getCurrentModeler()

TYModelerFrame* TYMainWindow::getCurrentModeler ( )
inline

Definition at line 68 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getFaceToolbar()

TYFaceToolbar* TYMainWindow::getFaceToolbar ( )
inline

Definition at line 86 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getFileName()

QString TYMainWindow::getFileName ( const QString &  filter,
QString &  dirName,
const bool &  forceNewName = false 
)
protected

Produces a valid file name (or nothing!)

Definition at line 2083 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getModelerToolbar()

TYModelerToolbar* TYMainWindow::getModelerToolbar ( )
inline

Definition at line 90 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getOutputFrame()

TYOutputFrame* TYMainWindow::getOutputFrame ( )
inline

Definition at line 81 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getProjetFrame()

TYProjetFrame* TYMainWindow::getProjetFrame ( )
inline

Definition at line 73 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getSaveStatus()

bool TYMainWindow::getSaveStatus ( )
inline

Returns the save request status.

Definition at line 98 of file TYMainWindow.h.

◆ getSiteFrame()

TYSiteFrame* TYMainWindow::getSiteFrame ( )
inline

Definition at line 77 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ getWorkspace()

QMdiArea* TYMainWindow::getWorkspace ( )
inline

Definition at line 63 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ goCurCalcul

void TYMainWindow::goCurCalcul ( )
slot

Launches the current calculation.

Definition at line 1041 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initSaveStatus()

void TYMainWindow::initSaveStatus ( )
inline

Definition at line 102 of file TYMainWindow.h.

◆ launchImporter

void TYMainWindow::launchImporter ( )
slot

Opens the Importer (Tympan II to Tympan 3 conversion) in a new process.

Definition at line 2185 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ loadSettings

bool TYMainWindow::loadSettings ( const QString &  fileName)
slot

Loads settings.

Definition at line 507 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeBatimentModeler

bool TYMainWindow::makeBatimentModeler ( LPTYBatiment  pBatiment = NULL)
slot

Instantiates a new Building Modeler window.

Definition at line 726 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeMachineModeler

bool TYMainWindow::makeMachineModeler ( LPTYMachine  pMachine = NULL)
slot

Instantiates a new Machine Modeler window.

Definition at line 765 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeModeler

bool TYMainWindow::makeModeler ( TYElement pElt)
slot

Creates a modeler based on a type.

Definition at line 694 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeProjetModeler

void TYMainWindow::makeProjetModeler ( LPTYProjet  pProjet = NULL)
slot

Instantiates a new Project Modeler window.

Definition at line 822 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSiteModeler

void TYMainWindow::makeSiteModeler ( LPTYSiteNode  pSite = NULL)
slot

Instantiates a new Site Modeler window.

Definition at line 805 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCourbeNiveauCreated()

void TYMainWindow::onCourbeNiveauCreated ( LPTYCourbeNiveau  courbeNiveau)
private

Definition at line 1387 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onDestroyed

void TYMainWindow::onDestroyed ( )
inlineprivateslot

Definition at line 457 of file TYMainWindow.h.

Here is the caller graph for this function:

◆ onRedo

void TYMainWindow::onRedo ( )
signal

Signal that a redo is requested.

Here is the caller graph for this function:

◆ onUndo

void TYMainWindow::onUndo ( )
signal

Signal that an undo is requested.

Here is the caller graph for this function:

◆ open [1/2]

void TYMainWindow::open ( )
slot

Opens an XML file.

Definition at line 1631 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open [2/2]

void TYMainWindow::open ( std::vector< LPTYElement > &  tabElem,
const bool &  bRegenerate = false 
)
slot

Opens an XML file (used for importing components).

Definition at line 1679 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ paste

void TYMainWindow::paste ( )
slot

Cut-Copy-Paste.

Definition at line 2158 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print

void TYMainWindow::print ( )
slot

Displays the print dialog.

Definition at line 2128 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ quitte

void TYMainWindow::quitte ( )
slot

Quits the application.

Definition at line 1759 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ redo

void TYMainWindow::redo ( )
slot

Redoes the last undone action.

Definition at line 2143 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ refreshWindowTitle

void TYMainWindow::refreshWindowTitle ( )
slot

Refreshes the window title.

Definition at line 2228 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadSlots

void TYMainWindow::reloadSlots ( )
slot

Definition at line 505 of file TYMainWindow.cpp.

◆ save [1/2]

bool TYMainWindow::save ( )
slot

Saves the element of the active window.

Definition at line 1821 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save [2/2]

bool TYMainWindow::save ( QString  dirName,
QString &  fileName,
TYElement pElement 
)
slot

Definition at line 1854 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ saveAs [1/2]

bool TYMainWindow::saveAs ( )
slot

Saves the project (or active element) under a different name.

Definition at line 1892 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveAs [2/2]

bool TYMainWindow::saveAs ( LPTYElement  pElement)
slot

Saves the element passed as a parameter.

Definition at line 1963 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ saveAsNoResult

bool TYMainWindow::saveAsNoResult ( )
slot

Saves the project (or active element) under a different name without calculation results.

Definition at line 1928 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveCurBatimentMode

void TYMainWindow::saveCurBatimentMode ( int  mode)
privateslot

To preserve the current mode of BatimentModeler windows.

Definition at line 1345 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ saveCurFaceMode

void TYMainWindow::saveCurFaceMode ( int  mode)
privateslot

To preserve the current mode of FaceModeler windows.

Definition at line 1352 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ saveCurMachineMode

void TYMainWindow::saveCurMachineMode ( int  mode)
privateslot

To preserve the current mode of MachineModeler windows.

Definition at line 1338 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ saveCurSiteMode

void TYMainWindow::saveCurSiteMode ( int  mode)
privateslot

To preserve the current mode of SiteModeler windows.

Definition at line 1331 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ saveGeometryToPreferences()

void TYMainWindow::saveGeometryToPreferences ( )

save geometry of windows to preferences

Definition at line 477 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ saveSettings

bool TYMainWindow::saveSettings ( const QString &  fileName)
slot

Saves settings.

Definition at line 641 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ searchSettingsFile

std::unique_ptr< QFile > TYMainWindow::searchSettingsFile ( const QString &  TympanUserDir,
const QString &  fileNameBegin,
const QString &  fileNameEnd,
const QString &  fileNamePattern 
)
slot

Returns a regular file name or the most recent file matching the file name pattern in the Tympan user directory.

Parameters
TympanUserDirTympan user directory
fileNameBeginBeginning of the file name to search for
fileNameEndEnd of the file name to search for
fileNamePatternFile name pattern with a single-digit placeholder for 'x'
Returns
A QFile

Definition at line 582 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ setCurProjet

void TYMainWindow::setCurProjet ( LPTYProjet  pProjet)
slot

Sets the current project.

Definition at line 1393 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurSiteNode

void TYMainWindow::setCurSiteNode ( LPTYSiteNode  pSiteNode)
slot

Sets the current site node.

Definition at line 1407 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaultCameraMode

void TYMainWindow::setDefaultCameraMode ( )
slot

Resets the interface to the default camera mode (automatically used after creating elements)

Definition at line 1114 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showBiblio

void TYMainWindow::showBiblio ( bool  show)
slot

Shows or hides the library.

Definition at line 2167 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ showHelp

void TYMainWindow::showHelp ( )
slot

Displays the help browser.

Definition at line 663 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ showMaillageManager

void TYMainWindow::showMaillageManager ( bool  show)
slot

Shows or hides the mesh manager.

Definition at line 2165 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ showOutput

void TYMainWindow::showOutput ( bool  show)
slot

Displays the output window.

Definition at line 2175 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ showPluginManager

void TYMainWindow::showPluginManager ( )
slot

Displays the plugin manager.

Definition at line 2037 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showPreferenceDialog

void TYMainWindow::showPreferenceDialog ( )
slot

Displays the preferences dialog.

Definition at line 2169 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showSpectreManager

void TYMainWindow::showSpectreManager ( bool  show)
slot

Shows or hides the spectrum manager.

Definition at line 2163 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ showZoneSelectPage

void TYMainWindow::showZoneSelectPage ( )
slot

Show the select zone page to create new geo project

Definition at line 1472 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subWindowActivated

void TYMainWindow::subWindowActivated ( )
privateslot

Called when a window is activated.

Definition at line 1122 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testFile()

bool TYMainWindow::testFile ( const QString &  fileName)
protected

Tests the existence and the possibility of writing the file.

Definition at line 2051 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ undo

void TYMainWindow::undo ( )
slot

Undoes the last action.

Definition at line 2138 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ updateCurCalcul

void TYMainWindow::updateCurCalcul ( )
slot

Updates the current calculation.

Definition at line 1413 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateCurrentAppFile

void TYMainWindow::updateCurrentAppFile ( const QString &  dirName,
const QString &  fileName 
)
slot

Definition at line 1992 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateCurrentFileName()

void TYMainWindow::updateCurrentFileName ( const QString &  fileName)

Definition at line 2217 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateHideOrShowOutputAction

void TYMainWindow::updateHideOrShowOutputAction ( bool  visibilityChanged)
slot

Synchronizes the button state with the visibility of the output window.

Definition at line 2180 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ updateModelers

void TYMainWindow::updateModelers ( bool  clipping = true,
bool  axesAndGrid = true,
bool  displayList = true 
)
slot

Updates the graphical views of the open modelers.

Parameters
clippingTo update the camera's clipping range.
axesAndGridTo update the axes and grid.
displayListTo update the global display list.

Definition at line 864 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateModelersAfterComputation

void TYMainWindow::updateModelersAfterComputation ( LPTYProjet result)
slot

Updates the open modelers after acoustic calculation.

Parameters
resultThe new project after acoustic calculation.

Definition at line 938 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateModelersElementGraphic

void TYMainWindow::updateModelersElementGraphic ( bool  force = false)
slot

Updates the graphical structure of the element associated with the open modelers.

Parameters
forceForces the update even if the element is not marked as modified.

Definition at line 922 of file TYMainWindow.cpp.

Here is the call graph for this function:

◆ updateUndoRedo

void TYMainWindow::updateUndoRedo ( bool  undoAvailable,
bool  redoAvailable,
const QString &  undoCmd,
const QString &  redoCmd 
)
privateslot

Updates the menus and buttons for undo and redo.

Definition at line 1359 of file TYMainWindow.cpp.

Here is the caller graph for this function:

◆ windowsMenuAboutToShow

void TYMainWindow::windowsMenuAboutToShow ( )
privateslot

Manages the display of windows.

Definition at line 1046 of file TYMainWindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ windowsMenuActivated

void TYMainWindow::windowsMenuActivated ( )
privateslot

Manages the display of windows.

Definition at line 1087 of file TYMainWindow.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _closeAndQuit

bool TYMainWindow::_closeAndQuit
protected

Indicator for canceling the exit command.

Definition at line 625 of file TYMainWindow.h.

◆ _curBatimentMode

int TYMainWindow::_curBatimentMode
protected

Preserves the current mode of BatimentModeler windows.

Definition at line 591 of file TYMainWindow.h.

◆ _curFaceMode

int TYMainWindow::_curFaceMode
protected

Preserves the current mode of FaceModeler windows.

Definition at line 584 of file TYMainWindow.h.

◆ _curMachineMode

int TYMainWindow::_curMachineMode
protected

Preserves the current mode of MachineModeler windows.

Definition at line 577 of file TYMainWindow.h.

◆ _curSiteMode

int TYMainWindow::_curSiteMode
protected

Preserves the current mode of SiteModeler windows.

Definition at line 566 of file TYMainWindow.h.

◆ _pBatimentBtnGroup

QButtonGroup* TYMainWindow::_pBatimentBtnGroup
protected

Button group for building toolbar.

Definition at line 589 of file TYMainWindow.h.

◆ _pCalculAcousticToolbar

QToolBar* TYMainWindow::_pCalculAcousticToolbar
protected

Toolbar for acoustic calculations.

Definition at line 558 of file TYMainWindow.h.

◆ _pCloseAction

QAction* TYMainWindow::_pCloseAction
protected

Action to close the current project or site.

Definition at line 500 of file TYMainWindow.h.

◆ _pCopyAction

QAction* TYMainWindow::_pCopyAction
protected

Action to perform a copy.

Definition at line 533 of file TYMainWindow.h.

◆ _pCreateNewAction

QAction* TYMainWindow::_pCreateNewAction
protected

Action to create a new element.

Definition at line 496 of file TYMainWindow.h.

◆ _pCurrentModeler

TYModelerFrame* TYMainWindow::_pCurrentModeler
protected

Currently displayed modeler.

Definition at line 493 of file TYMainWindow.h.

◆ _pCutAction

QAction* TYMainWindow::_pCutAction
protected

Action to perform a cut.

Definition at line 531 of file TYMainWindow.h.

◆ _pDummyQOpenGLWidget

QOpenGLWidget* TYMainWindow::_pDummyQOpenGLWidget
protected

Dummy QOpenGLWidget to get around issue #696 See https://bugreports.qt.io/browse/QTBUG-107585

Definition at line 629 of file TYMainWindow.h.

◆ _pEditCurCalculAction

QAction* TYMainWindow::_pEditCurCalculAction
protected

Action to edit the preferences of the current calculation.

Definition at line 547 of file TYMainWindow.h.

◆ _pExportXMLAction

QAction* TYMainWindow::_pExportXMLAction
protected

Action to export the element from the active modeler to XML.

Definition at line 520 of file TYMainWindow.h.

◆ _pFaceBtnGroup

QButtonGroup* TYMainWindow::_pFaceBtnGroup
protected

Button group for face toolbar.

Definition at line 582 of file TYMainWindow.h.

◆ _pGoCurCalculAction

QAction* TYMainWindow::_pGoCurCalculAction
protected

Action to start the current calculation.

Definition at line 549 of file TYMainWindow.h.

◆ _pHelpBrowser

QTextBrowser* TYMainWindow::_pHelpBrowser
protected

Help browser.

Definition at line 622 of file TYMainWindow.h.

◆ _pHideOrShowBiblioAction

QAction* TYMainWindow::_pHideOrShowBiblioAction
protected

Shows or hides the Library of elements.

Definition at line 542 of file TYMainWindow.h.

◆ _pHideOrShowMaillageMngrAction

QAction* TYMainWindow::_pHideOrShowMaillageMngrAction
protected

Shows or hides the Mesh Manager.

Definition at line 540 of file TYMainWindow.h.

◆ _pHideOrShowOutputAction

QAction* TYMainWindow::_pHideOrShowOutputAction
protected

Shows or hides the output messages window.

Definition at line 544 of file TYMainWindow.h.

◆ _pHideOrShowSpectreMngrAction

QAction* TYMainWindow::_pHideOrShowSpectreMngrAction
protected

Shows or hides the Spectrum Manager.

Definition at line 538 of file TYMainWindow.h.

◆ _pImportXMLAction

QAction* TYMainWindow::_pImportXMLAction
protected

Action to import an element from an XML file.

Definition at line 518 of file TYMainWindow.h.

◆ _pMachineBtnGroup

QButtonGroup* TYMainWindow::_pMachineBtnGroup
protected

Button group for machine toolbar.

Definition at line 575 of file TYMainWindow.h.

◆ _pMainToolbar

QToolBar* TYMainWindow::_pMainToolbar
protected

Main toolbar.

Definition at line 552 of file TYMainWindow.h.

◆ _pOpenAction

QAction* TYMainWindow::_pOpenAction
protected

Action to open the library manager.

Definition at line 498 of file TYMainWindow.h.

◆ _pOutputDockWnd

QDockWidget* TYMainWindow::_pOutputDockWnd
protected

Dockable window for feedback messages.

Definition at line 608 of file TYMainWindow.h.

◆ _pOutputFrame

TYOutputFrame* TYMainWindow::_pOutputFrame
protected

Frame for feedback messages.

Definition at line 606 of file TYMainWindow.h.

◆ _pPasteAction

QAction* TYMainWindow::_pPasteAction
protected

Action to perform a paste.

Definition at line 535 of file TYMainWindow.h.

◆ _pPrintAction

QAction* TYMainWindow::_pPrintAction
protected

Action to print.

Definition at line 523 of file TYMainWindow.h.

◆ _pProjetDockWnd

QDockWidget* TYMainWindow::_pProjetDockWnd
protected

Dockable window for project management.

Definition at line 598 of file TYMainWindow.h.

◆ _pProjetFrame

TYProjetFrame* TYMainWindow::_pProjetFrame
protected

Frame for project management.

Definition at line 596 of file TYMainWindow.h.

◆ _pRedoAction

QAction* TYMainWindow::_pRedoAction
protected

Action to perform a redo.

Definition at line 528 of file TYMainWindow.h.

◆ _pSaveAction

QAction* TYMainWindow::_pSaveAction
protected

Action to save an element.

Definition at line 503 of file TYMainWindow.h.

◆ _pSaveAllAction

QAction* TYMainWindow::_pSaveAllAction
protected

Action to save all elements.

Definition at line 515 of file TYMainWindow.h.

◆ _pSaveAsAction

QAction* TYMainWindow::_pSaveAsAction
protected

Action to save an element with a specific name.

Definition at line 506 of file TYMainWindow.h.

◆ _pSaveAsNoResultAction

QAction* TYMainWindow::_pSaveAsNoResultAction
protected

Action to save an element with a specific name without calculation results.

Definition at line 509 of file TYMainWindow.h.

◆ _pShowPluginManagerAction

QAction* TYMainWindow::_pShowPluginManagerAction
protected

Action to display the plug-in manager.

Definition at line 512 of file TYMainWindow.h.

◆ _pSiteBtnGroup

QButtonGroup* TYMainWindow::_pSiteBtnGroup
protected

Button group for site toolbars.

Definition at line 564 of file TYMainWindow.h.

◆ _pSiteDockWnd

QDockWidget* TYMainWindow::_pSiteDockWnd
protected

Dockable window for site management.

Definition at line 603 of file TYMainWindow.h.

◆ _pSiteFrame

TYSiteFrame* TYMainWindow::_pSiteFrame
protected

Frame for site management.

Definition at line 601 of file TYMainWindow.h.

◆ _pToolbarBatiment

TYBatimentToolbar* TYMainWindow::_pToolbarBatiment
protected

Building toolbar.

Definition at line 593 of file TYMainWindow.h.

◆ _pToolbarCalcul

TYCalculToolbar* TYMainWindow::_pToolbarCalcul
protected

Calculation toolbar.

Definition at line 572 of file TYMainWindow.h.

◆ _pToolbarFace

TYFaceToolbar* TYMainWindow::_pToolbarFace
protected

Face toolbar.

Definition at line 586 of file TYMainWindow.h.

◆ _pToolbarInfra

TYInfraToolbar* TYMainWindow::_pToolbarInfra
protected

Infrastructure toolbar.

Definition at line 570 of file TYMainWindow.h.

◆ _pToolbarMachine

TYMachineToolbar* TYMainWindow::_pToolbarMachine
protected

Machine toolbar.

Definition at line 579 of file TYMainWindow.h.

◆ _pToolbarModeler

TYModelerToolbar* TYMainWindow::_pToolbarModeler
protected

General toolbar for modelers.

Definition at line 561 of file TYMainWindow.h.

◆ _pToolbarTopo

TYTopoToolbar* TYMainWindow::_pToolbarTopo
protected

Topography toolbar.

Definition at line 568 of file TYMainWindow.h.

◆ _pUndoAction

QAction* TYMainWindow::_pUndoAction
protected

Action to perform an undo.

Definition at line 526 of file TYMainWindow.h.

◆ _pWindowsMenu

QMenu* TYMainWindow::_pWindowsMenu
protected

Spectra manager.

Mesh manager. Mesh modeler for the mesh manager. Window management menu.

Definition at line 619 of file TYMainWindow.h.

◆ _pWindowToolbar

QToolBar* TYMainWindow::_pWindowToolbar
protected

Toolbar for window management.

Definition at line 555 of file TYMainWindow.h.

◆ _pWorkspace

QMdiArea* TYMainWindow::_pWorkspace
protected

Workspace for MDI management.

Definition at line 488 of file TYMainWindow.h.


The documentation for this class was generated from the following files: