Moka Ihm Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
options-extrusion.qt.hh
Go to the documentation of this file.
1 /*
2  * Moka : Un modeleur de 3-G-cartes.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of Moka
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef OPTIONSEXTRUSION_QT_HH
25 #define OPTIONSEXTRUSION_QT_HH
26 
27 //--------- Include autres classes developees ----------
28 #include "controler-gmap.hh"
29 #include "floatSpinBox.qt.hh"
30 
31 //--------------------- Include QT --------------------
32 #include <QtGui/QCheckBox>
33 #include <QtGui/QComboBox>
34 #include <QtGui/QLabel>
35 #include <QtGui/QTabWidget>
36 #include <QtGui/QGroupBox>
37 
38 
39 
40 class Window ;
41 
45 class OptionsExtrusion : public QWidget
46 {
47  Q_OBJECT
48 
49 public:
50 
57  OptionsExtrusion ( Window * parent , QTabWidget * parentTab ) ;
58 
63  ~OptionsExtrusion ( ) ;
64 
68  void update ( ) ;
69 
70  // Accesseurs en ecriture
71  void setAdjacentSews(bool);
72  void setInitialPosition(int);
73  void setInitialDirection(int);
74  void setDirection(bool);
75  void setScale(bool);
76  void setPonderation(bool);
77  void setRevolutionNbEdges(int);
78  void setRevolutionAngle(TCoordinate);
79  void setExtrusionCoef(TCoordinate);
80 
81 
82 public slots :
83 
86 
87  void callbackAdjacentSews();
88 
89  void callbackDirectCells();
90  void callbackScaleCells();
92 
95  void callbackExtrusionCoef();
96 
97 private:
98 
99  // Pointeur sur la fenetre principale
100  Window * FParent ;
101  bool FUpdate ;
102 
103  QCheckBox * FCoudre, * FOrienter , * FRedimensionner , * FPonderer ;
104  QLabel * FAffCoef , * FAffOrientation , * FAffPlacement , * FNbSubdivisions , * FAffAngle ;
105  FloatSpinBox * FSaisieCoef , * FSaisieAngle ;
106  QSpinBox * FSaisieNbSubdivisions ;
107  QComboBox * FChoixOrientation , * FChoixPlacement ;
108  QGroupBox * FAffRevolutionChemin , * FAffVecteur , * FAffChemin , * FAffRevolution ;
109 
110 } ;
111 
112 #endif