Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
gui
widgets
TYSpectreWidget.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) <2012> <EDF-R&D> <FRANCE>
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
* See the GNU General Public License for more details.
11
* You should have received a copy of the GNU General Public License along
12
* with this program; if not, write to the Free Software Foundation, Inc.,
13
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14
*/
15
27
#ifndef __TY_SPECTRE_WIDGET__
28
#define __TY_SPECTRE_WIDGET__
29
30
#include "
TYWidget.h
"
31
// Added by qt3to4:
32
#include <QGridLayout>
33
#include <QLabel>
34
#include <QString>
35
class
QLineEdit;
36
class
QGridLayout;
37
class
QLabel;
38
class
QTreeWidget;
39
class
QGroupBox;
40
class
TYElementWidget
;
41
class
QComboBox;
42
class
QTabWidget;
43
class
QTableWidget;
44
class
QPushButton;
45
class
QPrinter;
46
class
QRadioButton;
47
class
QButtonGroup;
48
class
TYSpectre
;
49
class
TYHistoWidget
;
50
class
TYCourbeWidget
;
51
56
class
TYSpectreWidget
:
public
TYWidget
57
{
58
Q_OBJECT
59
60
TY_DECL_METIER_WIDGET
(
TYSpectre
)
61
62
// Methodes
63
public
:
67
TYSpectreWidget
(
TYSpectre
* pElement, QWidget* _pParent = NULL);
71
virtual
~TYSpectreWidget
();
72
76
void
setPrecision
(
const
int
& prec)
77
{
78
_precision
= prec;
79
}
80
int
getPrecision
()
81
{
82
return
_precision
;
83
}
84
const
int
getPrecision
()
const
85
{
86
return
_precision
;
87
}
88
89
public
:
93
void
resetTab
();
94
99
void
spectreToTableau
(
TYSpectre
* pSpectre);
100
105
void
tableauToSpectre
(
TYSpectre
* pSpectre);
106
115
void
spectre
(
TYSpectre
* pSpectre);
116
117
public
slots:
118
virtual
void
updateContent
();
119
virtual
void
apply
();
120
124
void
tabChanged
(
int
);
125
129
void
print
();
130
134
void
exportCsv
();
135
139
void
importCsv
();
140
144
void
tabValueChanged
(
int
row,
int
col);
145
149
void
changeOctave
();
150
154
void
changeType
();
155
159
void
setContentEnabled
(
bool
state);
160
161
// Membres
162
protected
:
163
QGroupBox*
_groupBox
;
164
QTreeWidget*
_listViewTabSp
;
165
QLineEdit*
_lineEditRq
;
166
QLabel*
_labeRq
;
167
QComboBox*
_comboBoxType
;
168
QLabel*
_labelType
;
169
QTabWidget*
_tabWidget
;
170
QTableWidget*
_tableau
;
171
QPushButton*
_pushButtonPrint
;
172
QPushButton*
_pushButtonExport
;
173
QPushButton*
_pushButtonImport
;
174
QRadioButton*
_radioButtonTiers
;
175
QRadioButton*
_radioButtonOctave
;
176
QPushButton*
_pushButtonFit
;
177
QButtonGroup*
_buttonGroup
;
178
TYHistoWidget
*
_histoWidget
;
179
TYCourbeWidget
*
_courbeWidget
;
180
181
protected
:
182
QGridLayout*
_spectreLayout
;
183
QGridLayout*
_groupBoxLayout
;
184
185
TYElementWidget
*
_elmW
;
186
int
_nbFreq
;
187
QPrinter*
_printer
;
188
189
public
:
190
TYSpectre
*
_pTmpSpectre
;
191
192
protected
:
193
bool
_isModified
;
194
196
int
_precision
;
197
198
private
:
199
bool
_isDrawing
;
200
QString
_etatSpectre
;
201
};
202
203
#endif
// __TY_SPECTRE_WIDGET__
TYWidget.h
outil IHM pour un objet metier de type TYElement (fichier header)
TY_DECL_METIER_WIDGET
#define TY_DECL_METIER_WIDGET(classname)
Definition:
TYWidget.h:31
TYCourbeWidget
classe de l'objet IHM pour une courbe
Definition:
TYCourbeWidget.h:40
TYElementWidget
classe de l'objet IHM pour un element
Definition:
TYElementWidget.h:46
TYHistoWidget
classe de l'outil IHM pour un histogramme
Definition:
TYHistoWidget.h:40
TYSpectreWidget
classe de l'objet IHM pour un spectre
Definition:
TYSpectreWidget.h:57
TYSpectreWidget::apply
virtual void apply()
Definition:
TYSpectreWidget.cpp:239
TYSpectreWidget::_lineEditRq
QLineEdit * _lineEditRq
Definition:
TYSpectreWidget.h:165
TYSpectreWidget::_groupBoxLayout
QGridLayout * _groupBoxLayout
Definition:
TYSpectreWidget.h:183
TYSpectreWidget::~TYSpectreWidget
virtual ~TYSpectreWidget()
Definition:
TYSpectreWidget.cpp:195
TYSpectreWidget::changeOctave
void changeOctave()
Definition:
TYSpectreWidget.cpp:521
TYSpectreWidget::getPrecision
const int getPrecision() const
Definition:
TYSpectreWidget.h:84
TYSpectreWidget::changeType
void changeType()
Definition:
TYSpectreWidget.cpp:564
TYSpectreWidget::_pushButtonFit
QPushButton * _pushButtonFit
Definition:
TYSpectreWidget.h:176
TYSpectreWidget::_printer
QPrinter * _printer
Definition:
TYSpectreWidget.h:187
TYSpectreWidget::_isModified
bool _isModified
Definition:
TYSpectreWidget.h:193
TYSpectreWidget::spectre
void spectre(TYSpectre *pSpectre)
Construit un spectre a partir du contenu du widget.
Definition:
TYSpectreWidget.cpp:634
TYSpectreWidget::_precision
int _precision
Precision d'affichage des spectres.
Definition:
TYSpectreWidget.h:196
TYSpectreWidget::exportCsv
void exportCsv()
Definition:
TYSpectreWidget.cpp:415
TYSpectreWidget::resetTab
void resetTab()
Initialisation du tableau.
Definition:
TYSpectreWidget.cpp:578
TYSpectreWidget::_labelType
QLabel * _labelType
Definition:
TYSpectreWidget.h:168
TYSpectreWidget::tabValueChanged
void tabValueChanged(int row, int col)
Definition:
TYSpectreWidget.cpp:259
TYSpectreWidget::_courbeWidget
TYCourbeWidget * _courbeWidget
Definition:
TYSpectreWidget.h:179
TYSpectreWidget::_nbFreq
int _nbFreq
Definition:
TYSpectreWidget.h:186
TYSpectreWidget::_radioButtonOctave
QRadioButton * _radioButtonOctave
Definition:
TYSpectreWidget.h:175
TYSpectreWidget::_groupBox
QGroupBox * _groupBox
Definition:
TYSpectreWidget.h:163
TYSpectreWidget::print
void print()
Definition:
TYSpectreWidget.cpp:452
TYSpectreWidget::tableauToSpectre
void tableauToSpectre(TYSpectre *pSpectre)
Mise a jour d'un spectre depuis le tableau.
Definition:
TYSpectreWidget.cpp:612
TYSpectreWidget::_labeRq
QLabel * _labeRq
Definition:
TYSpectreWidget.h:166
TYSpectreWidget::_elmW
TYElementWidget * _elmW
Definition:
TYSpectreWidget.h:185
TYSpectreWidget::setContentEnabled
void setContentEnabled(bool state)
Definition:
TYSpectreWidget.cpp:304
TYSpectreWidget::_spectreLayout
QGridLayout * _spectreLayout
Definition:
TYSpectreWidget.h:182
TYSpectreWidget::_histoWidget
TYHistoWidget * _histoWidget
Definition:
TYSpectreWidget.h:178
TYSpectreWidget::_listViewTabSp
QTreeWidget * _listViewTabSp
Definition:
TYSpectreWidget.h:164
TYSpectreWidget::_buttonGroup
QButtonGroup * _buttonGroup
Definition:
TYSpectreWidget.h:177
TYSpectreWidget::_isDrawing
bool _isDrawing
Definition:
TYSpectreWidget.h:199
TYSpectreWidget::spectreToTableau
void spectreToTableau(TYSpectre *pSpectre)
Mise a jour du tableau depuis un spectre.
Definition:
TYSpectreWidget.cpp:590
TYSpectreWidget::_pushButtonPrint
QPushButton * _pushButtonPrint
Definition:
TYSpectreWidget.h:171
TYSpectreWidget::getPrecision
int getPrecision()
Definition:
TYSpectreWidget.h:80
TYSpectreWidget::_etatSpectre
QString _etatSpectre
Definition:
TYSpectreWidget.h:200
TYSpectreWidget::setPrecision
void setPrecision(const int &prec)
Definition:
TYSpectreWidget.h:76
TYSpectreWidget::importCsv
void importCsv()
Definition:
TYSpectreWidget.cpp:321
TYSpectreWidget::_pushButtonImport
QPushButton * _pushButtonImport
Definition:
TYSpectreWidget.h:173
TYSpectreWidget::updateContent
virtual void updateContent()
Definition:
TYSpectreWidget.cpp:200
TYSpectreWidget::_pushButtonExport
QPushButton * _pushButtonExport
Definition:
TYSpectreWidget.h:172
TYSpectreWidget::TYSpectreWidget
TYSpectreWidget(TYSpectre *pElement, QWidget *_pParent=NULL)
Definition:
TYSpectreWidget.cpp:56
TYSpectreWidget::_comboBoxType
QComboBox * _comboBoxType
Definition:
TYSpectreWidget.h:167
TYSpectreWidget::_pTmpSpectre
TYSpectre * _pTmpSpectre
Definition:
TYSpectreWidget.h:190
TYSpectreWidget::tabChanged
void tabChanged(int)
Definition:
TYSpectreWidget.cpp:288
TYSpectreWidget::_radioButtonTiers
QRadioButton * _radioButtonTiers
Definition:
TYSpectreWidget.h:174
TYSpectreWidget::_tabWidget
QTabWidget * _tabWidget
Definition:
TYSpectreWidget.h:169
TYSpectreWidget::_tableau
QTableWidget * _tableau
Definition:
TYSpectreWidget.h:170
TYSpectre
Definition:
TYSpectre.h:33
TYWidget
classe de l'objet IHM pour un objet metier de type TYElement
Definition:
TYWidget.h:43
Generated on Mon Nov 27 2023 07:56:32 for Code_TYMPAN by
1.9.1