Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYModelerToolbar.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
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="")