27 #ifndef __TY_MAIN_WINDOW__
28 #define __TY_MAIN_WINDOW__
30 #include <qmainwindow.h>
134 std::unique_ptr<QFile>
searchSettingsFile(
const QString& TympanUserDir,
const QString& fileNameBegin,
135 const QString& fileNameEnd,
const QString& fileNamePattern);
194 void open(std::vector<LPTYElement>& tabElem,
const bool& bRegenerate =
false);
199 bool save(QString dirName, QString& fileName,
TYElement* pElement);
206 if (!fileName.endsWith(
".xml"))
373 void updateModelers(
bool clipping =
true,
bool axesAndGrid =
true,
bool displayList =
true);
457 void updateUndoRedo(
bool undoAvailable,
bool redoAvailable,
const QString& undoCmd,
458 const QString& redoCmd);
487 bool testFile(
const QString& fileName);
490 QString
getFileName(
const QString& filter, QString& dirName,
const bool& forceNewName =
false);
Main window of the Tympan application.
void updateModelersAfterComputation(LPTYProjet &result)
void updateHideOrShowOutputAction(bool visibilityChanged)
QDockWidget * _pOutputDockWnd
Dockable window for feedback messages.
TYProjetFrame * _pProjetFrame
Frame for project management.
TYInfraToolbar * _pToolbarInfra
Infrastructure toolbar.
TYOutputFrame * getOutputFrame()
TYElement * elementToSave()
void updateCurrentAppFile(const QString &dirName, const QString &fileName)
TYFaceToolbar * _pToolbarFace
Face toolbar.
QString getFileName(const QString &filter, QString &dirName, const bool &forceNewName=false)
Produces a valid file name (or nothing!)
QButtonGroup * _pBatimentBtnGroup
Button group for building toolbar.
QAction * _pOpenAction
Action to open the library manager.
QDockWidget * _pSiteDockWnd
Dockable window for site management.
void updateCurrentFileName(const QString &fileName)
void saveCurBatimentMode(int mode)
TYSiteFrame * _pSiteFrame
Frame for site management.
void saveCurFaceMode(int mode)
TYTopoToolbar * _pToolbarTopo
Topography toolbar.
void setCurSiteNode(LPTYSiteNode pSiteNode)
QAction * _pCreateNewAction
Action to create a new element.
void onCourbeNiveauCreated(LPTYCourbeNiveau courbeNiveau)
bool loadSettings(const QString &fileName)
void makeSiteModeler(LPTYSiteNode pSite=NULL)
bool _closeAndQuit
Indicator for canceling the exit command.
TYCalculToolbar * _pToolbarCalcul
Calculation toolbar.
void formatFileName(QString &fileName)
bool backupFile(const QString &fileName)
QAction * _pSaveAsAction
Action to save an element with a specific name.
void updateUndoRedo(bool undoAvailable, bool redoAvailable, const QString &undoCmd, const QString &redoCmd)
bool makeBatimentModeler(LPTYBatiment pBatiment=NULL)
bool getSaveStatus()
Returns the save request status.
QAction * _pUndoAction
Action to perform an undo.
int _curSiteMode
Preserves the current mode of SiteModeler windows.
QAction * _pPrintAction
Action to print.
QAction * _pRedoAction
Action to perform a redo.
void windowsMenuActivated()
QButtonGroup * _pFaceBtnGroup
Button group for face toolbar.
QAction * _pExportXMLAction
Action to export the element from the active modeler to XML.
QAction * _pSaveAction
Action to save an element.
QAction * _pHideOrShowOutputAction
Shows or hides the output messages window.
QMdiArea * _pWorkspace
Workspace for MDI management.
TYProjetFrame * getProjetFrame()
QAction * _pPasteAction
Action to perform a paste.
bool makeModeler(TYElement *pElt)
void saveCurMachineMode(int mode)
QAction * _pCloseAction
Action to close the current project or site.
void createNewGeoProjet()
QButtonGroup * _pMachineBtnGroup
Button group for machine toolbar.
void updateModelers(bool clipping=true, bool axesAndGrid=true, bool displayList=true)
void connectActionManager(TYActionManager *pActionManager)
TYSiteFrame * getSiteFrame()
TYModelerToolbar * _pToolbarModeler
General toolbar for modelers.
void showBiblio(bool show)
QAction * _pHideOrShowSpectreMngrAction
Shows or hides the Spectrum Manager.
int _curFaceMode
Preserves the current mode of FaceModeler windows.
TYMachineToolbar * _pToolbarMachine
Machine toolbar.
QMenu * _pWindowsMenu
Spectra manager.
void refreshWindowTitle()
void showPreferenceDialog()
QAction * _pHideOrShowMaillageMngrAction
Shows or hides the Mesh Manager.
void showZoneSelectPage()
void makeProjetModeler(LPTYProjet pProjet=NULL)
virtual void closeEvent(QCloseEvent *pEvent)
void showMaillageManager(bool show)
bool saveSettings(const QString &fileName)
TYModelerFrame * _pCurrentModeler
Currently displayed modeler.
void connectDefaultActionManager()
QOpenGLWidget * _pDummyQOpenGLWidget
QAction * _pGoCurCalculAction
Action to start the current calculation.
TYFaceToolbar * getFaceToolbar()
void updateModelersElementGraphic(bool force=false)
QToolBar * _pCalculAcousticToolbar
Toolbar for acoustic calculations.
QAction * _pImportXMLAction
Action to import an element from an XML file.
QAction * _pCutAction
Action to perform a cut.
bool makeMachineModeler(LPTYMachine pMachine=NULL)
QAction * _pEditCurCalculAction
Action to edit the preferences of the current calculation.
void setCurProjet(LPTYProjet pProjet)
TYModelerToolbar * getModelerToolbar()
QAction * _pSaveAsNoResultAction
Action to save an element with a specific name without calculation results.
void showOutput(bool show)
virtual QMenu * createPopupMenu()
bool testFile(const QString &fileName)
Tests the existence and the possibility of writing the file.
QTextBrowser * _pHelpBrowser
Help browser.
void saveGeometryToPreferences()
save geometry of windows to preferences
QMdiArea * getWorkspace()
int _curMachineMode
Preserves the current mode of MachineModeler windows.
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...
void windowsMenuAboutToShow()
QToolBar * _pWindowToolbar
Toolbar for window management.
TYOutputFrame * _pOutputFrame
Frame for feedback messages.
void saveCurSiteMode(int mode)
void closeModeler(const TYElement *pElement)
QButtonGroup * _pSiteBtnGroup
Button group for site toolbars.
QAction * _pCopyAction
Action to perform a copy.
QToolBar * _pMainToolbar
Main toolbar.
QAction * _pShowPluginManagerAction
Action to display the plug-in manager.
TYBatimentToolbar * _pToolbarBatiment
Building toolbar.
void subWindowActivated()
int _curBatimentMode
Preserves the current mode of BatimentModeler windows.
QDockWidget * _pProjetDockWnd
Dockable window for project management.
QAction * _pSaveAllAction
Action to save all elements.
TYModelerFrame * getCurrentModeler()
void showSpectreManager(bool show)
QAction * _pHideOrShowBiblioAction
Shows or hides the Library of elements.
void setDefaultCameraMode()
Generic class for a modeler window.
Frame pour les messages de retour.
Frame pour la gestion de projet.
Frame pour la gestion de site.