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

Frame pour la gestion de projet. More...

#include <TYProjetFrame.h>

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

Public Slots

void setProjet (LPTYProjet pProjet)
 
void updateList ()
 
TYElementListItemaddToList (LPTYProjet pElement, TYElementListItem *parent=NULL)
 
TYElementListItemaddToList (LPTYCalcul pElement, TYElementListItem *parent=NULL)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void doubleClic (QTreeWidgetItem *, int)
 
void apply (QTreeWidgetItem *item, int col)
 

Signals

void changeCurrentCalcul (LPTYCalcul pCalcul)
 
void changeSite (LPTYSiteNode pSite)
 

Public Member Functions

 TYProjetFrame (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYProjetFrame ()
 
LPTYProjet getProjet ()
 
void clear ()
 
TYSpectresManagerFrame * getTYSpectresManagerFrame ()
 
void setCalculDone (bool state)
 

Protected Member Functions

TYElementListItemaddEltToList (LPTYElement pElement, TYElementListItem *parent=NULL)
 
bool remFromList (TYElementListItem *item)
 
void exportMaillageCSV (const LPTYMaillage pMaillage)
 
void setCalculItemState (TYElementListItem *pCalcItem, bool state)
 
void selectOrUnselectAll (TYElementListItem *item, const bool &bSelect)
 
void updateGraphics ()
 void updateGraphics() More...
 
void highlight_element (TYElementGraphic *pGraphicObject, TYElement *pElement)
 highlight object More...
 

Protected Attributes

QMenuBar * _pMenuBar
 
QTreeWidget * _pListView
 
LPTYProjet _pProjet
 Le projet. More...
 
LPTYCalcul _pCurrentCalcul
 Le calcul courant. More...
 
TYElementListItem_pCurrentCalculItem
 L'item du treeview du projet. More...
 
TYSpectresManagerFrame * _pSpectresManagerFrame
 

Detailed Description

Frame pour la gestion de projet.

Definition at line 41 of file TYProjetFrame.h.

Constructor & Destructor Documentation

◆ TYProjetFrame()

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

Constructeur par defaut.

Definition at line 61 of file TYProjetFrame.cpp.

Here is the call graph for this function:

◆ ~TYProjetFrame()

TYProjetFrame::~TYProjetFrame ( )
virtual

Destructeur.

Definition at line 88 of file TYProjetFrame.cpp.

Member Function Documentation

◆ addEltToList()

TYElementListItem * TYProjetFrame::addEltToList ( LPTYElement  pElement,
TYElementListItem parent = NULL 
)
protected

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 696 of file TYProjetFrame.cpp.

Here is the caller graph for this function:

◆ addToList [1/2]

TYElementListItem * TYProjetFrame::addToList ( LPTYCalcul  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 170 of file TYProjetFrame.cpp.

Here is the call graph for this function:

◆ addToList [2/2]

TYElementListItem * TYProjetFrame::addToList ( LPTYProjet  pElement,
TYElementListItem parent = NULL 
)
slot

Ajoute un element a la liste. Si le parent est NULL, l'item est ajoute a la racine.

Definition at line 138 of file TYProjetFrame.cpp.

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

◆ apply

void TYProjetFrame::apply ( QTreeWidgetItem *  item,
int  col 
)
slot

Mise a jour d'un l'element.

Parameters
itemItem de la liste correspondant a l'element.
colcolonne

Definition at line 773 of file TYProjetFrame.cpp.

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

◆ changeCurrentCalcul

void TYProjetFrame::changeCurrentCalcul ( LPTYCalcul  pCalcul)
signal

Signal de changement de calcul.

Here is the caller graph for this function:

◆ changeSite

void TYProjetFrame::changeSite ( LPTYSiteNode  pSite)
signal

Signal de changement de site.

Here is the caller graph for this function:

◆ clear()

void TYProjetFrame::clear ( )
inline

Vide la list view.

Definition at line 66 of file TYProjetFrame.h.

Here is the caller graph for this function:

◆ contextMenuEvent

void TYProjetFrame::contextMenuEvent ( QContextMenuEvent *  e)
virtualslot

Affiche un menu contextuel.

Definition at line 247 of file TYProjetFrame.cpp.

Here is the call graph for this function:

◆ doubleClic

void TYProjetFrame::doubleClic ( QTreeWidgetItem *  item,
int  column 
)
slot

Action sur double clic : ouverture du modeleur ou affichage des proprietes

Definition at line 741 of file TYProjetFrame.cpp.

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

◆ exportMaillageCSV()

void TYProjetFrame::exportMaillageCSV ( const LPTYMaillage  pMaillage)
protected

Export du maillage au format csv

Definition at line 782 of file TYProjetFrame.cpp.

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

◆ getProjet()

LPTYProjet TYProjetFrame::getProjet ( )
inline

Set/get du projet.

Definition at line 58 of file TYProjetFrame.h.

Here is the caller graph for this function:

◆ getTYSpectresManagerFrame()

TYSpectresManagerFrame* TYProjetFrame::getTYSpectresManagerFrame ( )
inline

Definition at line 71 of file TYProjetFrame.h.

◆ highlight_element()

void TYProjetFrame::highlight_element ( TYElementGraphic pGraphicObject,
TYElement pElement 
)
protected

highlight object

Definition at line 872 of file TYProjetFrame.cpp.

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

◆ keyPressEvent

void TYProjetFrame::keyPressEvent ( QKeyEvent *  e)
slot

Definition at line 725 of file TYProjetFrame.cpp.

Here is the call graph for this function:

◆ remFromList()

bool TYProjetFrame::remFromList ( TYElementListItem item)
protected

Supprime un element du site.

Parameters
itemItem de la liste corrspondant a l'element a supprimer.
Returns
Vrai si l'element a bien ete supprime.

Definition at line 712 of file TYProjetFrame.cpp.

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

◆ selectOrUnselectAll()

void TYProjetFrame::selectOrUnselectAll ( TYElementListItem item,
const bool &  bSelect 
)
protected

Selection ou deselection de tous les elements "cochables" du meme type

Definition at line 841 of file TYProjetFrame.cpp.

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

◆ setCalculDone()

void TYProjetFrame::setCalculDone ( bool  state)

Indique dans le treeview si le calcul doit etre relance

Definition at line 199 of file TYProjetFrame.cpp.

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

◆ setCalculItemState()

void TYProjetFrame::setCalculItemState ( TYElementListItem pCalcItem,
bool  state 
)
protected

Change l'affichage d'un item du treeview de calcul grise ou non

Definition at line 226 of file TYProjetFrame.cpp.

Here is the caller graph for this function:

◆ setProjet

void TYProjetFrame::setProjet ( LPTYProjet  pProjet)
slot

Set/get du projet.

Definition at line 93 of file TYProjetFrame.cpp.

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

◆ updateGraphics()

void TYProjetFrame::updateGraphics ( )
protected

void updateGraphics()

Definition at line 856 of file TYProjetFrame.cpp.

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

◆ updateList

void TYProjetFrame::updateList ( )
slot

Mets a jour de toute la liste.

Definition at line 124 of file TYProjetFrame.cpp.

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

Member Data Documentation

◆ _pCurrentCalcul

LPTYCalcul TYProjetFrame::_pCurrentCalcul
protected

Le calcul courant.

Definition at line 182 of file TYProjetFrame.h.

◆ _pCurrentCalculItem

TYElementListItem* TYProjetFrame::_pCurrentCalculItem
protected

L'item du treeview du projet.

Definition at line 185 of file TYProjetFrame.h.

◆ _pListView

QTreeWidget* TYProjetFrame::_pListView
protected

Definition at line 176 of file TYProjetFrame.h.

◆ _pMenuBar

QMenuBar* TYProjetFrame::_pMenuBar
protected

Definition at line 175 of file TYProjetFrame.h.

◆ _pProjet

LPTYProjet TYProjetFrame::_pProjet
protected

Le projet.

Definition at line 179 of file TYProjetFrame.h.

◆ _pSpectresManagerFrame

TYSpectresManagerFrame* TYProjetFrame::_pSpectresManagerFrame
protected

Definition at line 187 of file TYProjetFrame.h.


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