Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYModelerToolbar.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_MODELER_TOOLBAR__
28 #define __TY_MODELER_TOOLBAR__
29 
30 #include "TYAppDefines.h"
31 #include <qtoolbar.h>
32 
33 class QMainWindow;
34 class QToolButton;
35 class QButtonGroup;
36 
41 class TYModelerToolbar : public QToolBar
42 {
43  Q_OBJECT
44 
45 public:
49  TYModelerToolbar(QButtonGroup* pBtnGroup = 0, QMainWindow* parent = 0, QString title = "");
53  virtual ~TYModelerToolbar();
57  void activeCameraButtons(int view);
58 
59 public slots:
63  void activeButtons(bool active);
64 
68  void activeModif(bool active);
69 
73  void addToButtonGroup(QButtonGroup* pBtnGroup);
77  void removeFromButtonGroup(QButtonGroup* pBtnGroup);
81  void viewTypeChanged(int view);
82 
83 protected:
85  QToolButton* _toolButtonCamera;
87  QToolButton* _toolButtonFlyCamera;
89  QToolButton* _toolButtonCameraZone;
91  QToolButton* _toolButtonDistance;
93  QToolButton* _toolButtonMoving;
95  QToolButton* _toolButtonRotation;
97  QToolButton* _toolButtonEdition;
98 };
99 
100 #endif //__TY_MODELER_TOOLBAR__
Barre d'outils generale pour les modelers.
void viewTypeChanged(int view)
void activeCameraButtons(int view)
void addToButtonGroup(QButtonGroup *pBtnGroup)
QToolButton * _toolButtonFlyCamera
Bouton fly navigation (flyCamera).
virtual ~TYModelerToolbar()
QToolButton * _toolButtonCameraZone
Bouton navigation par zones.
QToolButton * _toolButtonDistance
Bouton mesure de distance.
QToolButton * _toolButtonEdition
Bouton edition d'objets.
void removeFromButtonGroup(QButtonGroup *pBtnGroup)
QToolButton * _toolButtonMoving
Bouton deplacement d'objets.
void activeButtons(bool active)
QToolButton * _toolButtonRotation
Bouton rotation d'objets.
void activeModif(bool active)
QToolButton * _toolButtonCamera
Bouton navigation (camera).
TYModelerToolbar(QButtonGroup *pBtnGroup=0, QMainWindow *parent=0, QString title="")