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

classe de l'objet IHM pour un spectre More...

#include <TYSpectreWidget.h>

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

Public Slots

virtual void updateContent ()
 
virtual void apply ()
 
void tabChanged (int)
 
void print ()
 
void exportCsv ()
 
void importCsv ()
 
void tabValueChanged (int row, int col)
 
void changeOctave ()
 
void changeType ()
 
void setContentEnabled (bool state)
 
- Public Slots inherited from TYWidget
virtual void updateContent ()=0
 
virtual void apply ()=0
 
virtual void reject ()
 

Public Member Functions

 TYSpectreWidget (TYSpectre *pElement, QWidget *_pParent=NULL)
 
virtual ~TYSpectreWidget ()
 
void setPrecision (const int &prec)
 
int getPrecision ()
 
const int getPrecision () const
 
void resetTab ()
 Initialisation du tableau. More...
 
void spectreToTableau (TYSpectre *pSpectre)
 Mise a jour du tableau depuis un spectre. More...
 
void tableauToSpectre (TYSpectre *pSpectre)
 Mise a jour d'un spectre depuis le tableau. More...
 
void spectre (TYSpectre *pSpectre)
 Construit un spectre a partir du contenu du widget. More...
 
- Public Member Functions inherited from TYWidget
 TYWidget (TYElement *pElement, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
 
virtual ~TYWidget ()
 
void setElement (TYElement *pElement)
 

Public Attributes

TYSpectre_pTmpSpectre
 

Protected Attributes

QGroupBox * _groupBox
 
QTreeWidget * _listViewTabSp
 
QLineEdit * _lineEditRq
 
QLabel * _labeRq
 
QComboBox * _comboBoxType
 
QLabel * _labelType
 
QTabWidget * _tabWidget
 
QTableWidget * _tableau
 
QPushButton * _pushButtonPrint
 
QPushButton * _pushButtonExport
 
QPushButton * _pushButtonImport
 
QRadioButton * _radioButtonTiers
 
QRadioButton * _radioButtonOctave
 
QPushButton * _pushButtonFit
 
QButtonGroup * _buttonGroup
 
TYHistoWidget_histoWidget
 
TYCourbeWidget_courbeWidget
 
QGridLayout * _spectreLayout
 
QGridLayout * _groupBoxLayout
 
TYElementWidget_elmW
 
int _nbFreq
 
QPrinter * _printer
 
bool _isModified
 
int _precision
 Precision d'affichage des spectres. More...
 
- Protected Attributes inherited from TYWidget
TYElement_pElement
 
bool _locked
 

Private Attributes

bool _isDrawing
 
QString _etatSpectre
 

Additional Inherited Members

- Signals inherited from TYWidget
void modified ()
 
- Static Public Member Functions inherited from TYWidget
static int edit (TYElement *pElement, QWidget *pParent=NULL)
 
static QString getDisplayName (TYElement *pElt)
 

Detailed Description

classe de l'objet IHM pour un spectre

Definition at line 56 of file TYSpectreWidget.h.

Constructor & Destructor Documentation

◆ TYSpectreWidget()

TYSpectreWidget::TYSpectreWidget ( TYSpectre pElement,
QWidget *  _pParent = NULL 
)

Constructeur.

Definition at line 56 of file TYSpectreWidget.cpp.

Here is the call graph for this function:

◆ ~TYSpectreWidget()

TYSpectreWidget::~TYSpectreWidget ( )
virtual

Destructeur.

Definition at line 195 of file TYSpectreWidget.cpp.

Member Function Documentation

◆ apply

void TYSpectreWidget::apply ( )
virtualslot

Definition at line 239 of file TYSpectreWidget.cpp.

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

◆ changeOctave

void TYSpectreWidget::changeOctave ( )
slot

Gere le passage de tiers d'octave a octave et inversement.

Definition at line 521 of file TYSpectreWidget.cpp.

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

◆ changeType

void TYSpectreWidget::changeType ( )
slot

Gere le changement de type.

Definition at line 564 of file TYSpectreWidget.cpp.

Here is the call graph for this function:

◆ exportCsv

void TYSpectreWidget::exportCsv ( )
slot

Fonction d'export vers un fichier csv.

Definition at line 415 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ getPrecision() [1/2]

int TYSpectreWidget::getPrecision ( )
inline

Definition at line 80 of file TYSpectreWidget.h.

◆ getPrecision() [2/2]

const int TYSpectreWidget::getPrecision ( ) const
inline

Definition at line 84 of file TYSpectreWidget.h.

◆ importCsv

void TYSpectreWidget::importCsv ( )
slot

Fonction d'import depuis un fichier csv.

Definition at line 321 of file TYSpectreWidget.cpp.

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

◆ print

void TYSpectreWidget::print ( )
slot

Gere l'impression.

Definition at line 452 of file TYSpectreWidget.cpp.

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

◆ resetTab()

void TYSpectreWidget::resetTab ( )

Initialisation du tableau.

Definition at line 578 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ setContentEnabled

void TYSpectreWidget::setContentEnabled ( bool  state)
slot

Permet ou non de modifier le contenu de la widget.

Definition at line 304 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ setPrecision()

void TYSpectreWidget::setPrecision ( const int &  prec)
inline

Get/Set de la precision d'affichage

Definition at line 76 of file TYSpectreWidget.h.

◆ spectre()

void TYSpectreWidget::spectre ( TYSpectre pSpectre)

Construit un spectre a partir du contenu du widget.

A la difference difference de la methode tableauToSpectre, cette methode cree un spectre pleinement fonctionnel

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 634 of file TYSpectreWidget.cpp.

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

◆ spectreToTableau()

void TYSpectreWidget::spectreToTableau ( TYSpectre pSpectre)

Mise a jour du tableau depuis un spectre.

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 590 of file TYSpectreWidget.cpp.

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

◆ tabChanged

void TYSpectreWidget::tabChanged ( int  index)
slot

Gere le changement de fiche.

Definition at line 288 of file TYSpectreWidget.cpp.

Here is the caller graph for this function:

◆ tableauToSpectre()

void TYSpectreWidget::tableauToSpectre ( TYSpectre pSpectre)

Mise a jour d'un spectre depuis le tableau.

Parameters
pSpectrePointeur sur un TYSpectre

Definition at line 612 of file TYSpectreWidget.cpp.

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

◆ tabValueChanged

void TYSpectreWidget::tabValueChanged ( int  row,
int  col 
)
slot

Modification du tableau de valeurs.

Definition at line 259 of file TYSpectreWidget.cpp.

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

◆ updateContent

void TYSpectreWidget::updateContent ( )
virtualslot

Definition at line 200 of file TYSpectreWidget.cpp.

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

Member Data Documentation

◆ _buttonGroup

QButtonGroup* TYSpectreWidget::_buttonGroup
protected

Definition at line 177 of file TYSpectreWidget.h.

◆ _comboBoxType

QComboBox* TYSpectreWidget::_comboBoxType
protected

Definition at line 167 of file TYSpectreWidget.h.

◆ _courbeWidget

TYCourbeWidget* TYSpectreWidget::_courbeWidget
protected

Definition at line 179 of file TYSpectreWidget.h.

◆ _elmW

TYElementWidget* TYSpectreWidget::_elmW
protected

Definition at line 185 of file TYSpectreWidget.h.

◆ _etatSpectre

QString TYSpectreWidget::_etatSpectre
private

Definition at line 200 of file TYSpectreWidget.h.

◆ _groupBox

QGroupBox* TYSpectreWidget::_groupBox
protected

Definition at line 163 of file TYSpectreWidget.h.

◆ _groupBoxLayout

QGridLayout* TYSpectreWidget::_groupBoxLayout
protected

Definition at line 183 of file TYSpectreWidget.h.

◆ _histoWidget

TYHistoWidget* TYSpectreWidget::_histoWidget
protected

Definition at line 178 of file TYSpectreWidget.h.

◆ _isDrawing

bool TYSpectreWidget::_isDrawing
private

Definition at line 199 of file TYSpectreWidget.h.

◆ _isModified

bool TYSpectreWidget::_isModified
protected

Definition at line 193 of file TYSpectreWidget.h.

◆ _labelType

QLabel* TYSpectreWidget::_labelType
protected

Definition at line 168 of file TYSpectreWidget.h.

◆ _labeRq

QLabel* TYSpectreWidget::_labeRq
protected

Definition at line 166 of file TYSpectreWidget.h.

◆ _lineEditRq

QLineEdit* TYSpectreWidget::_lineEditRq
protected

Definition at line 165 of file TYSpectreWidget.h.

◆ _listViewTabSp

QTreeWidget* TYSpectreWidget::_listViewTabSp
protected

Definition at line 164 of file TYSpectreWidget.h.

◆ _nbFreq

int TYSpectreWidget::_nbFreq
protected

Definition at line 186 of file TYSpectreWidget.h.

◆ _precision

int TYSpectreWidget::_precision
protected

Precision d'affichage des spectres.

Definition at line 196 of file TYSpectreWidget.h.

◆ _printer

QPrinter* TYSpectreWidget::_printer
protected

Definition at line 187 of file TYSpectreWidget.h.

◆ _pTmpSpectre

TYSpectre* TYSpectreWidget::_pTmpSpectre

Definition at line 190 of file TYSpectreWidget.h.

◆ _pushButtonExport

QPushButton* TYSpectreWidget::_pushButtonExport
protected

Definition at line 172 of file TYSpectreWidget.h.

◆ _pushButtonFit

QPushButton* TYSpectreWidget::_pushButtonFit
protected

Definition at line 176 of file TYSpectreWidget.h.

◆ _pushButtonImport

QPushButton* TYSpectreWidget::_pushButtonImport
protected

Definition at line 173 of file TYSpectreWidget.h.

◆ _pushButtonPrint

QPushButton* TYSpectreWidget::_pushButtonPrint
protected

Definition at line 171 of file TYSpectreWidget.h.

◆ _radioButtonOctave

QRadioButton* TYSpectreWidget::_radioButtonOctave
protected

Definition at line 175 of file TYSpectreWidget.h.

◆ _radioButtonTiers

QRadioButton* TYSpectreWidget::_radioButtonTiers
protected

Definition at line 174 of file TYSpectreWidget.h.

◆ _spectreLayout

QGridLayout* TYSpectreWidget::_spectreLayout
protected

Definition at line 182 of file TYSpectreWidget.h.

◆ _tableau

QTableWidget* TYSpectreWidget::_tableau
protected

Definition at line 170 of file TYSpectreWidget.h.

◆ _tabWidget

QTabWidget* TYSpectreWidget::_tabWidget
protected

Definition at line 169 of file TYSpectreWidget.h.


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