Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYBatimentToolbar.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 
28 #ifndef __TY_BATIMENT_TOOLBAR__
29 #define __TY_BATIMENT_TOOLBAR__
30 
31 #include <qtoolbar.h>
32 
33 class QMainWindow;
34 class QToolButton;
35 class QButtonGroup;
36 
41 class TYBatimentToolbar : public QToolBar
42 {
43  Q_OBJECT
44 
45 public:
50  TYBatimentToolbar(QButtonGroup* pBtnGroup, QMainWindow* parent = 0, QString title = "");
55  virtual ~TYBatimentToolbar();
56 
57 public slots:
62  void activeButtons(bool active);
63 
64 protected:
66  QToolButton* _toolButtonEtage;
67 
69  QToolButton* _toolButtonSilos;
70 
72  QToolButton* _toolButtonSource;
73 };
74 
75 #endif //__TY_BATIMENT_TOOLBAR__
Barre d'outils Batiment.
QToolButton * _toolButtonEtage
Bouton etage.
void activeButtons(bool active)
Active/Desactive chaque boutons.
QToolButton * _toolButtonSilos
Bouton silos.
TYBatimentToolbar(QButtonGroup *pBtnGroup, QMainWindow *parent=0, QString title="")
Constructeur par defaut.
QToolButton * _toolButtonSource
Bouton source ponctuelle.
virtual ~TYBatimentToolbar()
Destructeur.