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

Boite de dialogue pour le chargement d'un element metier. L'element peut etre ouvert dans un modeleur (Projet, Site, Bâtiment et Machine) ou directement sauvegarde en BDD. More...

#include <TYOpenElementDialog.h>

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

Public Slots

void open ()
 
void openElement (LPTYElement pElt)
 
virtual void accept ()
 
virtual void reject ()
 

Public Member Functions

 TYOpenElementDialog (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYOpenElementDialog ()
 
bool isFileReadOnly ()
 
QString getFileName ()
 
const QString getFileName () const
 
QString getDirName ()
 Get du nom du repertoire de travail. More...
 
const QString getDirName () const
 
void setDirName (const QString &value)
 Set du nom du repertoire de travail. More...
 
void setMultiSelect (const bool &b)
 
std::vector< LPTYElementgetTabElem ()
 
LPTYElementArray getAvailableElements ()
 

Protected Slots

void updateFrame ()
 
void openSelected ()
 Lit la selection. More...
 
void openSelectedElement ()
 Lit le premier element selectionne. More...
 
void openSelectedElements ()
 Lit l'ensemble des elements selectionnes. More...
 
void save (LPTYElement pElt)
 

Protected Attributes

LPTYElementArray _elements
 La collection d'elements dans la liste. More...
 
QList< int > _selectedElts
 La liste des indices des elements selectionnes. More...
 
QString _fileName
 
QString _dirName
 
QListWidget * _pElementChoiceListBox
 
QPushButton * _pOpenBtn
 
std::vector< LPTYElement_tabElem
 
bool _isReadOnly
 
bool _multiSelect
 

Detailed Description

Boite de dialogue pour le chargement d'un element metier. L'element peut etre ouvert dans un modeleur (Projet, Site, Bâtiment et Machine) ou directement sauvegarde en BDD.

Definition at line 47 of file TYOpenElementDialog.h.

Constructor & Destructor Documentation

◆ TYOpenElementDialog()

TYOpenElementDialog::TYOpenElementDialog ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = QFlag(0) 
)

Constructeur par defaut.

Definition at line 47 of file TYOpenElementDialog.cpp.

Here is the call graph for this function:

◆ ~TYOpenElementDialog()

TYOpenElementDialog::~TYOpenElementDialog ( )
virtual

Destructeur.

Definition at line 86 of file TYOpenElementDialog.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ accept

void TYOpenElementDialog::accept ( )
virtualslot

Slot appele lorsque l'utilisateur accepte la base de de donnee.

Definition at line 334 of file TYOpenElementDialog.cpp.

Here is the caller graph for this function:

◆ getAvailableElements()

LPTYElementArray TYOpenElementDialog::getAvailableElements ( )
inline

Retourne les elements de la liste de choix du dialogue

Definition at line 113 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ getDirName() [1/2]

QString TYOpenElementDialog::getDirName ( )
inline

Get du nom du repertoire de travail.

Definition at line 82 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ getDirName() [2/2]

const QString TYOpenElementDialog::getDirName ( ) const
inline

Definition at line 86 of file TYOpenElementDialog.h.

◆ getFileName() [1/2]

QString TYOpenElementDialog::getFileName ( )
inline

Nom du fichier lu

Definition at line 72 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ getFileName() [2/2]

const QString TYOpenElementDialog::getFileName ( ) const
inline

Definition at line 76 of file TYOpenElementDialog.h.

◆ getTabElem()

std::vector<LPTYElement> TYOpenElementDialog::getTabElem ( )
inline

Lecture du tableau des elements lus

Definition at line 105 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ isFileReadOnly()

bool TYOpenElementDialog::isFileReadOnly ( )
inline

Etat du fichier

Definition at line 64 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ open

void TYOpenElementDialog::open ( )
slot

Affiche la boite de dialogue.

Definition at line 95 of file TYOpenElementDialog.cpp.

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

◆ openElement

void TYOpenElementDialog::openElement ( LPTYElement  pElt)
slot

Gere l'ouverture d'un element au sein de l'application.

Parameters
pEltL'element a ouvrir.

Definition at line 230 of file TYOpenElementDialog.cpp.

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

◆ openSelected

void TYOpenElementDialog::openSelected ( )
protectedslot

Lit la selection.

Definition at line 192 of file TYOpenElementDialog.cpp.

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

◆ openSelectedElement

void TYOpenElementDialog::openSelectedElement ( )
protectedslot

Lit le premier element selectionne.

Definition at line 204 of file TYOpenElementDialog.cpp.

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

◆ openSelectedElements

void TYOpenElementDialog::openSelectedElements ( )
protectedslot

Lit l'ensemble des elements selectionnes.

Definition at line 214 of file TYOpenElementDialog.cpp.

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

◆ reject

void TYOpenElementDialog::reject ( )
virtualslot

Slot appele lorsque l'utilisateur rejete la base de de donnee.

Definition at line 339 of file TYOpenElementDialog.cpp.

Here is the caller graph for this function:

◆ save

void TYOpenElementDialog::save ( LPTYElement  pElt)
protectedslot

Definition at line 293 of file TYOpenElementDialog.cpp.

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

◆ setDirName()

void TYOpenElementDialog::setDirName ( const QString &  value)
inline

Set du nom du repertoire de travail.

Definition at line 92 of file TYOpenElementDialog.h.

Here is the caller graph for this function:

◆ setMultiSelect()

void TYOpenElementDialog::setMultiSelect ( const bool &  b)

Capacite de selection de la listBox (true=multiselection/false=selection unique)

Definition at line 344 of file TYOpenElementDialog.cpp.

Here is the caller graph for this function:

◆ updateFrame

void TYOpenElementDialog::updateFrame ( )
protectedslot

Definition at line 273 of file TYOpenElementDialog.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _dirName

QString TYOpenElementDialog::_dirName
protected

Definition at line 164 of file TYOpenElementDialog.h.

◆ _elements

LPTYElementArray TYOpenElementDialog::_elements
protected

La collection d'elements dans la liste.

Definition at line 155 of file TYOpenElementDialog.h.

◆ _fileName

QString TYOpenElementDialog::_fileName
protected

Definition at line 161 of file TYOpenElementDialog.h.

◆ _isReadOnly

bool TYOpenElementDialog::_isReadOnly
protected

Definition at line 172 of file TYOpenElementDialog.h.

◆ _multiSelect

bool TYOpenElementDialog::_multiSelect
protected

Definition at line 173 of file TYOpenElementDialog.h.

◆ _pElementChoiceListBox

QListWidget* TYOpenElementDialog::_pElementChoiceListBox
protected

Definition at line 166 of file TYOpenElementDialog.h.

◆ _pOpenBtn

QPushButton* TYOpenElementDialog::_pOpenBtn
protected

Definition at line 167 of file TYOpenElementDialog.h.

◆ _selectedElts

QList<int> TYOpenElementDialog::_selectedElts
protected

La liste des indices des elements selectionnes.

Definition at line 158 of file TYOpenElementDialog.h.

◆ _tabElem

std::vector<LPTYElement> TYOpenElementDialog::_tabElem
protected

Definition at line 170 of file TYOpenElementDialog.h.


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