Moka Ihm Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
options-ponderation.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 OPTIONSPONDERATION_QT_HH
25 #define OPTIONSPONDERATION_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/QPushButton>
33 #include <QtGui/QCheckBox>
34 #include <QtGui/QComboBox>
35 #include <QtGui/QLabel>
36 #include <QtGui/QTabWidget>
37 #include <QtGui/QGroupBox>
38 
39 
40 
41 class Window ;
42 
46 class OptionsPonderation : public QWidget
47 {
48  Q_OBJECT
49 public :
50 
57  OptionsPonderation ( Window * parent , QTabWidget * parentTab ) ;
58 
64 
68  void update ( ) ;
69 
70 // Accesseurs
71  void setDistanceType ( GMap3d :: TPonderationType ) ;
72  void setFunctionType ( TFunctionType ) ;
73  void setCenter ( const CVertex & ) ;
74  void setVector ( const CVertex & ) ;
75  void setEtalonnageDistances ( bool ) ;
76  void setMin1 ( TCoordinate ) ;
77  void setMax1 ( TCoordinate ) ;
78  void setEtalonnageResultats ( bool ) ;
79  void setMin2 ( TCoordinate ) ;
80  void setMax2 ( TCoordinate ) ;
81 
82 
83 public slots:
84  void callbackDistance ( ) ;
85  void callbackFunction ( ) ;
86 
87  void callbackVertexChanged ( ) ;
88  void callbackVectorChanged ( ) ;
89 
90  void callbackTakeCenter ( ) ;
91  void callbackTakeVector ( ) ;
92 
95 
96  void callbackMin1Changed ( ) ;
97  void callbackMax1Changed ( ) ;
98 
99  void callbackMin2Changed ( ) ;
100  void callbackMax2Changed ( ) ;
101 
102 private :
103 
104 // Pointeur sur la fenetre principale
105  Window * FParent ;
106  bool FUpdate ;
107 
108  QComboBox * FSaisieDistance , * FSaisieFonction ;
109 
110  QLabel * FAffSommet , * FAffVecteur , * FAffMinDistance , * FAffMaxDistance ,
111  * FAffMinResultat , * FAffMaxResultat ,
112  * FAffCoefSommet [3] , * FAffCoefVecteur [3] ;
113 
114  QGroupBox * FAffEtalonnageDistance, * FAffDistance , * FAffEtalonnageResultat ;
115 
116 
117  FloatSpinBox * FSaisieMinDistance , * FSaisieMaxDistance ,
118  * FSaisieMinResultat , * FSaisieMaxResultat ,
119  * FSaisieCoefSommet [3] , * FSaisieCoefVecteur [3] ;
120 
121  QPushButton * FRecupSommet, * FRecupVecteur ;
122 
123 } ;
124 
125 #endif