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

Classe principale pour l'application Tympan. More...

#include <TYApplication.h>

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

Public Slots

void setCurProjet (LPTYProjet pProjet)
 Set/Get du projet courant. More...
 
void setCurSiteNode (LPTYSiteNode pSiteNode)
 Set/Get du site node courant. More...
 

Signals

void curProjetChanged (LPTYProjet pCurProjet)
 Signal que le projet courant a change. More...
 
void curSiteNodeChanged (LPTYSiteNode pCurSiteNode)
 Signal que le site node courant a change. More...
 

Public Member Functions

 TYApplication (int &argc, char **argv)
 Constructeur par defaut. More...
 
virtual ~TYApplication ()
 Destructeur. More...
 
bool init ()
 Initialise l'application et charges toutes les ressources. More...
 
bool run ()
 Lance l'application. More...
 
bool close ()
 Ferme l'application et libere toutes les ressources. More...
 
TYMainWindowgetMainWnd ()
 Get de la fenetre principale. More...
 
TYActionManagergetActionManager ()
 Get du gestionnaire d'actions (historique pour les undos). More...
 
TYCalculManagergetCalculManager ()
 Get du gestionnaire de calculs. More...
 
LPTYProjet getCurProjet ()
 Set/Get du projet courant. More...
 
LPTYSiteNode getCurSiteNode ()
 Set/Get du site node courant. More...
 
bool getIsCurrentFileSaved ()
 Get/Set de l'indicateur d'etat de sauvegarde du fichier courant. More...
 
void setIsCurrentFileSaved (const bool &saved)
 Get/Set de l'indicateur d'etat de sauvegarde du fichier courant. More...
 

Static Public Member Functions

static QString tympanUserDir ()
 Retourne le chemin du dossier de sauvegarde de l'utilisateur courant. Celui-ci est donne par la variable d'environnement TYMPANUSERDIR. Si la variable n'est pas definie, c'est le dossier courant de l'application qui est utilise. More...
 
static const QString & getCurrentFileName ()
 Retourne le nom du fichier en cours d'utilisation. More...
 
static void setCurrentFileName (const QString &fileName)
 Enregistre le nom du ficgier de travail courant. More...
 
static void setCurrentDirName (const QString &dirName)
 Get/Set du repertoire de travail courant. More...
 
static const QString & getCurrentDirName ()
 
static QString tympanAppDir ()
 Retourne le chemin du dossier de l'application. More...
 
static const QString & getOriginalCurrentDirPath ()
 Get Chemin d'origine de l'application. (singleton) More...
 
static void setOriginalCurrentDirPath (const QString &)
 Set Chemin d'origine de l'application. More...
 
static const QString & getSettingsDir ()
 Get chemin des preferences utilisateur. More...
 
static void setSettingsDir (const QString &)
 Set chemin des preferences utilisateur. More...
 

Protected Attributes

OSplashScreen_pSplash
 Splash screen. More...
 
TYMainWindow_pMainWnd
 La fenetre principale de l'application. More...
 
TYActionManager _actionManager
 Le gestionnaire d'actions (historique pour les undos). More...
 
TYCalculManager_pCalculManager
 Le gestionnaire de calculs. More...
 
LPTYProjet _pCurProjet
 Pointeur sur le projet courant. More...
 
LPTYSiteNode _pCurSiteNode
 Pointeur sur le site node courant. More...
 
TYMessageManager_pMessageManager
 Le gestionnaire de messages d'erreurs. More...
 
TYImageManager_pImageManager
 Le gestionnaire d'image. More...
 
TYPluginManager_pPluginManager
 Le gestionnaire de plugins. More...
 
bool _saved
 Indicateur de l'etat de sauvegarde du fichier courant. More...
 

Private Member Functions

bool createMainWnd ()
 
bool createProgressMngr ()
 
bool createMessageMngr ()
 
bool loadTextures ()
 
bool loadPlugins ()
 
bool createCalculMngr ()
 
bool loadSettings ()
 
bool createCacheDir ()
 
bool createWorkDir ()
 

Static Private Attributes

static QString * _originalCurrentDirPath = NULL
 Chemin d'origine de l'application. More...
 
static QString * _settingsDir = NULL
 Chemin des parametres utilisateur de l'application. More...
 
static QString * _currentFileName = NULL
 Nom du fichier de travail courant. More...
 
static QString * _currentDirName = NULL
 Nom du repertoire de travail courant. More...
 

Detailed Description

Classe principale pour l'application Tympan.

Definition at line 45 of file TYApplication.h.

Constructor & Destructor Documentation

◆ TYApplication()

TYApplication::TYApplication ( int &  argc,
char **  argv 
)

Constructeur par defaut.

Definition at line 162 of file TYApplication.cpp.

Here is the call graph for this function:

◆ ~TYApplication()

TYApplication::~TYApplication ( )
virtual

Destructeur.

Definition at line 174 of file TYApplication.cpp.

Member Function Documentation

◆ close()

bool TYApplication::close ( )

Ferme l'application et libere toutes les ressources.

Definition at line 409 of file TYApplication.cpp.

Here is the call graph for this function:

◆ createCacheDir()

bool TYApplication::createCacheDir ( )
private

Definition at line 352 of file TYApplication.cpp.

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

◆ createCalculMngr()

bool TYApplication::createCalculMngr ( )
private

Definition at line 328 of file TYApplication.cpp.

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

◆ createMainWnd()

bool TYApplication::createMainWnd ( )
private

Definition at line 248 of file TYApplication.cpp.

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

◆ createMessageMngr()

bool TYApplication::createMessageMngr ( )
private

Definition at line 270 of file TYApplication.cpp.

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

◆ createProgressMngr()

bool TYApplication::createProgressMngr ( )
private

Definition at line 259 of file TYApplication.cpp.

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

◆ createWorkDir()

bool TYApplication::createWorkDir ( )
private

Definition at line 371 of file TYApplication.cpp.

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

◆ curProjetChanged

void TYApplication::curProjetChanged ( LPTYProjet  pCurProjet)
signal

Signal que le projet courant a change.

Here is the caller graph for this function:

◆ curSiteNodeChanged

void TYApplication::curSiteNodeChanged ( LPTYSiteNode  pCurSiteNode)
signal

Signal que le site node courant a change.

Here is the caller graph for this function:

◆ getActionManager()

TYActionManager * TYApplication::getActionManager ( )
inline

Get du gestionnaire d'actions (historique pour les undos).

Definition at line 90 of file TYApplication.h.

Here is the caller graph for this function:

◆ getCalculManager()

TYCalculManager * TYApplication::getCalculManager ( )
inline

Get du gestionnaire de calculs.

Definition at line 99 of file TYApplication.h.

Here is the caller graph for this function:

◆ getCurProjet()

LPTYProjet TYApplication::getCurProjet ( )
inline

Set/Get du projet courant.

Definition at line 108 of file TYApplication.h.

Here is the caller graph for this function:

◆ getCurrentDirName()

const QString & TYApplication::getCurrentDirName ( )
static

Definition at line 137 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ getCurrentFileName()

static const QString & TYApplication::getCurrentFileName ( )
static

Retourne le nom du fichier en cours d'utilisation.

Definition at line 112 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ getCurSiteNode()

LPTYSiteNode TYApplication::getCurSiteNode ( )
inline

Set/Get du site node courant.

Definition at line 116 of file TYApplication.h.

◆ getIsCurrentFileSaved()

bool TYApplication::getIsCurrentFileSaved ( )
inline

Get/Set de l'indicateur d'etat de sauvegarde du fichier courant.

Definition at line 156 of file TYApplication.h.

◆ getMainWnd()

TYMainWindow * TYApplication::getMainWnd ( )
inline

Get de la fenetre principale.

Definition at line 81 of file TYApplication.h.

Here is the caller graph for this function:

◆ getOriginalCurrentDirPath()

const QString & TYApplication::getOriginalCurrentDirPath ( )
static

Get Chemin d'origine de l'application. (singleton)

Definition at line 89 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ getSettingsDir()

const QString & TYApplication::getSettingsDir ( )
static

Get chemin des preferences utilisateur.

Definition at line 465 of file TYApplication.cpp.

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

◆ init()

bool TYApplication::init ( )

Initialise l'application et charges toutes les ressources.

Definition at line 183 of file TYApplication.cpp.

Here is the call graph for this function:

◆ loadPlugins()

bool TYApplication::loadPlugins ( )
private

Definition at line 302 of file TYApplication.cpp.

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

◆ loadSettings()

bool TYApplication::loadSettings ( )
private

Definition at line 341 of file TYApplication.cpp.

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

◆ loadTextures()

bool TYApplication::loadTextures ( )
private

Definition at line 282 of file TYApplication.cpp.

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

◆ run()

bool TYApplication::run ( )

Lance l'application.

Definition at line 391 of file TYApplication.cpp.

Here is the call graph for this function:

◆ setCurProjet

void TYApplication::setCurProjet ( LPTYProjet  pProjet)
slot

Set/Get du projet courant.

Definition at line 438 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ setCurrentDirName()

void TYApplication::setCurrentDirName ( const QString &  dirName)
static

Get/Set du repertoire de travail courant.

Definition at line 150 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ setCurrentFileName()

static void TYApplication::setCurrentFileName ( const QString &  fileName)
static

Enregistre le nom du ficgier de travail courant.

Definition at line 125 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ setCurSiteNode

void TYApplication::setCurSiteNode ( LPTYSiteNode  pSiteNode)
slot

Set/Get du site node courant.

Definition at line 444 of file TYApplication.cpp.

Here is the caller graph for this function:

◆ setIsCurrentFileSaved()

void TYApplication::setIsCurrentFileSaved ( const bool &  saved)
inline

Get/Set de l'indicateur d'etat de sauvegarde du fichier courant.

Definition at line 165 of file TYApplication.h.

◆ setOriginalCurrentDirPath()

void TYApplication::setOriginalCurrentDirPath ( const QString &  newValue)
static

Set Chemin d'origine de l'application.

Definition at line 100 of file TYApplication.cpp.

◆ setSettingsDir()

static void TYApplication::setSettingsDir ( const QString &  )
static

Set chemin des preferences utilisateur.

◆ tympanAppDir()

static QString TYApplication::tympanAppDir ( )
static

Retourne le chemin du dossier de l'application.

Definition at line 512 of file TYApplication.cpp.

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

◆ tympanUserDir()

static QString TYApplication::tympanUserDir ( )
static

Retourne le chemin du dossier de sauvegarde de l'utilisateur courant. Celui-ci est donne par la variable d'environnement TYMPANUSERDIR. Si la variable n'est pas definie, c'est le dossier courant de l'application qui est utilise.

Definition at line 450 of file TYApplication.cpp.

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

Member Data Documentation

◆ _actionManager

TYActionManager TYApplication::_actionManager
protected

Le gestionnaire d'actions (historique pour les undos).

Definition at line 202 of file TYApplication.h.

◆ _currentDirName

QString * TYApplication::_currentDirName = NULL
staticprivate

Nom du repertoire de travail courant.

Definition at line 260 of file TYApplication.h.

◆ _currentFileName

QString * TYApplication::_currentFileName = NULL
staticprivate

Nom du fichier de travail courant.

Definition at line 257 of file TYApplication.h.

◆ _originalCurrentDirPath

QString * TYApplication::_originalCurrentDirPath = NULL
staticprivate

Chemin d'origine de l'application.

Definition at line 251 of file TYApplication.h.

◆ _pCalculManager

TYCalculManager* TYApplication::_pCalculManager
protected

Le gestionnaire de calculs.

Definition at line 205 of file TYApplication.h.

◆ _pCurProjet

LPTYProjet TYApplication::_pCurProjet
protected

Pointeur sur le projet courant.

Definition at line 208 of file TYApplication.h.

◆ _pCurSiteNode

LPTYSiteNode TYApplication::_pCurSiteNode
protected

Pointeur sur le site node courant.

Definition at line 211 of file TYApplication.h.

◆ _pImageManager

TYImageManager* TYApplication::_pImageManager
protected

Le gestionnaire d'image.

Definition at line 217 of file TYApplication.h.

◆ _pMainWnd

TYMainWindow* TYApplication::_pMainWnd
protected

La fenetre principale de l'application.

Definition at line 199 of file TYApplication.h.

◆ _pMessageManager

TYMessageManager* TYApplication::_pMessageManager
protected

Le gestionnaire de messages d'erreurs.

Definition at line 214 of file TYApplication.h.

◆ _pPluginManager

TYPluginManager* TYApplication::_pPluginManager
protected

Le gestionnaire de plugins.

Definition at line 220 of file TYApplication.h.

◆ _pSplash

OSplashScreen* TYApplication::_pSplash
protected

Splash screen.

Definition at line 196 of file TYApplication.h.

◆ _saved

bool TYApplication::_saved
protected

Indicateur de l'etat de sauvegarde du fichier courant.

Definition at line 223 of file TYApplication.h.

◆ _settingsDir

QString * TYApplication::_settingsDir = NULL
staticprivate

Chemin des parametres utilisateur de l'application.

Definition at line 254 of file TYApplication.h.


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