00001 /* 00002 * Moka : Un modeleur de 3-G-cartes. 00003 * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC 00004 * http://www.sic.sp2mi.univ-poitiers.fr/ 00005 * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS, 00006 * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/ 00007 * 00008 * This file is part of Moka 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 00024 #ifndef CHAMPSOPERATIONS_QT_HH 00025 #define CHAMPSOPERATIONS_QT_HH 00026 00027 //--------- Include autres classes developees ---------- 00028 #include "floatSpinBox.qt.hh" 00029 #include "controler-gmap.hh" 00030 #include "dialog-types.qt.hh" 00031 00032 //--------------------- Include QT -------------------- 00033 #include <QtGui/QCheckBox> 00034 #include <QtGui/QPushButton> 00035 #include <QtGui/QLabel> 00036 #include <QtGui/QToolBar> 00037 #include <QtGui/QBoxLayout> 00038 00039 00040 /*******************************************************************/ 00041 /* CLASSE champsOperations */ 00042 /*******************************************************************/ 00043 00047 class champsOperations : public QWidget 00048 { 00049 Q_OBJECT 00050 00051 public: 00052 00059 champsOperations ( QToolBar * parent , QBoxLayout * Layout = NULL) ; 00060 00064 ~champsOperations ( ) ; 00065 00066 00067 // Accesseurs en lecture 00068 00075 virtual QPushButton * getButtonRecuperer ( ) ; 00076 00080 virtual FloatSpinBox * getSaisieX ( ) ; 00081 00085 virtual FloatSpinBox * getSaisieY ( ) ; 00086 00090 virtual FloatSpinBox * getSaisieZ ( ) ; 00091 00092 00096 virtual QLabel * getLabelX ( ) ; 00097 00101 virtual QLabel * getLabelY ( ) ; 00102 00106 virtual QLabel * getLabelZ ( ) ; 00107 00111 virtual float getValueX ( ) const ; 00112 00116 virtual float getValueY ( ) const ; 00117 00121 virtual float getValueZ ( ) const ; 00122 00123 00124 // Accesseurs en ecriture 00128 virtual void setValueX ( float X ) ; 00129 00133 virtual void setValueY ( float Y ) ; 00134 00138 virtual void setValueZ ( float Z ) ; 00139 00140 private: 00141 00142 // Bouton 00143 QPushButton * FRecuperer ; 00144 // Champs de saisies 00145 FloatSpinBox * FSaisieX , * FSaisieY , * FSaisieZ ; 00146 QLabel * FAffX , * FAffY , * FAffZ ; 00147 00148 // Pointeur sur le widget parent 00149 QToolBar * FParent ; 00150 00151 } ; 00152 #endif 00153 00154 /*******************************************************************/ 00155 /* CLASSE dialogOperations */ 00156 /*******************************************************************/ 00157 00158 #ifndef DIALOG_OPERATIONS_QT_HH 00159 #define DIALOG_OPERATIONS_QT_HH 00160 00161 class Window ; 00162 00167 class dialogOperations : public QToolBar 00168 { 00169 Q_OBJECT 00170 00171 public: 00172 00179 dialogOperations ( Window * parent , QString * nom , 00180 GMap3d :: CControlerGMap * controler , 00181 Qt :: ToolBarArea dir ) ; 00182 00183 00187 ~dialogOperations ( ) ; 00188 00189 00194 GMap3d :: CControlerGMap * getControler ( ) const ; 00195 00199 virtual void repaint ( ) ; 00200 00201 00205 virtual void update ( ) ; 00206 00207 00208 public slots: 00209 00213 virtual void callbackClose ( ) ; 00214 00215 protected: 00216 00217 // Champs de saisie 00218 champsOperations * FSaisie ; 00219 00220 // Bouton fermer 00221 QPushButton * FClose ; 00222 00223 // Pointeur sur le controleur 00224 GMap3d :: CControlerGMap * FControler ; 00225 00226 // Pointeur sur la fenetre principale 00227 Window * FParent ; 00228 00229 // Booleen indiquant si le update vient de la souris ou du clavier 00230 bool FUpdate ; 00231 00232 } ; 00233 00234 #endif