Moka Ihm Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
dialog-operations.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 CHAMPSOPERATIONS_QT_HH
25 #define CHAMPSOPERATIONS_QT_HH
26 
27 //--------- Include autres classes developees ----------
28 #include "floatSpinBox.qt.hh"
29 #include "controler-gmap.hh"
30 #include "dialog-types.qt.hh"
31 
32 //--------------------- Include QT --------------------
33 #include <QtGui/QCheckBox>
34 #include <QtGui/QPushButton>
35 #include <QtGui/QLabel>
36 #include <QtGui/QToolBar>
37 #include <QtGui/QBoxLayout>
38 
39 
40 /*******************************************************************/
41 /* CLASSE champsOperations */
42 /*******************************************************************/
43 
47 class champsOperations : public QWidget
48 {
49  Q_OBJECT
50 
51 public:
52 
59  champsOperations ( QToolBar * parent , QBoxLayout * Layout = NULL,
60  bool WithRecuperer = true) ;
61 
65  ~champsOperations ( ) ;
66 
67 
68  // Accesseurs en lecture
69 
76  virtual QPushButton * getButtonRecuperer ( ) ;
77 
81  virtual FloatSpinBox * getSaisieX ( ) ;
82 
86  virtual FloatSpinBox * getSaisieY ( ) ;
87 
91  virtual FloatSpinBox * getSaisieZ ( ) ;
92 
93 
97  virtual QLabel * getLabelX ( ) ;
98 
102  virtual QLabel * getLabelY ( ) ;
103 
107  virtual QLabel * getLabelZ ( ) ;
108 
112  virtual float getValueX ( ) const ;
113 
117  virtual float getValueY ( ) const ;
118 
122  virtual float getValueZ ( ) const ;
123 
124 
125  // Accesseurs en ecriture
129  virtual void setValueX ( float X ) ;
130 
134  virtual void setValueY ( float Y ) ;
135 
139  virtual void setValueZ ( float Z ) ;
140 
141 private:
142 
143  // Bouton
144  QPushButton * FRecuperer ;
145  // Champs de saisies
146  FloatSpinBox * FSaisieX , * FSaisieY , * FSaisieZ ;
147  QLabel * FAffX , * FAffY , * FAffZ ;
148 
149  // Pointeur sur le widget parent
150  QToolBar * FParent ;
151 
152 } ;
153 #endif
154 
155 /*******************************************************************/
156 /* CLASSE dialogOperations */
157 /*******************************************************************/
158 
159 #ifndef DIALOG_OPERATIONS_QT_HH
160 #define DIALOG_OPERATIONS_QT_HH
161 
162 class Window ;
163 
168 class dialogOperations : public QToolBar
169 {
170  Q_OBJECT
171 
172 public:
173 
180  dialogOperations ( Window * parent , QString * nom ,
181  GMap3d :: CControlerGMap * controler ,
182  Qt :: ToolBarArea dir ) ;
183 
184 
188  ~dialogOperations ( ) ;
189 
190 
195  GMap3d :: CControlerGMap * getControler ( ) const ;
196 
200  virtual void repaint ( ) ;
201 
202 
206  virtual void update ( ) ;
207 
208 
209 public slots:
210 
214 virtual void callbackClose ( ) ;
215 
216 protected:
217 
218  // Champs de saisie
220 
221  // Bouton fermer
222  QPushButton * FClose ;
223 
224  // Pointeur sur le controleur
225  GMap3d :: CControlerGMap * FControler ;
226 
227  // Pointeur sur la fenetre principale
229 
230  // Booleen indiquant si le update vient de la souris ou du clavier
231  bool FUpdate ;
232 
233 } ;
234 
235 #endif