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 MENUBAR_QT_HH 00025 #define MENUBAR_QT_HH 00026 00027 //------ Include autres classes developees -------- 00028 class Window ; 00029 00030 //------------------ Include QT ------------------- 00031 00032 #include <QtGui/QMenuBar> 00033 #include <QtGui/QMenu> 00034 #include <QtGui/QAction> 00035 00036 00037 00038 class MenuBar : public QMenuBar 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00048 MenuBar ( Window * parent ) ; 00049 00053 ~MenuBar ( ) ; 00054 00055 private: 00056 00057 // Pointeur sur la fenetre mere 00058 Window * FParent ; 00059 00060 00061 // Les differents sous-menus. 00062 00063 QMenu * fichier; 00064 QMenu * edition; 00065 QMenu * options; 00066 QMenu * creations; 00067 QMenu * operations; 00068 QMenu * geologie; 00069 QMenu * materialiser; 00070 QMenu * selection; 00071 QMenu * vues; 00072 QMenu * architecture; 00073 00074 // Les actions associees a chaque sous-menu. 00075 00076 QAction * fichier_act; 00077 QAction * edition_act; 00078 QAction * options_act; 00079 QAction * creations_act; 00080 QAction * operations_act; 00081 QAction * geologie_act; 00082 QAction * materialiser_act; 00083 QAction * selection_act; 00084 QAction * vues_act; 00085 QAction * architecture_act; 00086 00087 // Les actions dynamiques du menu. 00088 00089 QAction * charger_act; 00090 QAction * ajouter_act; 00091 QAction * sauver_act; 00092 QAction * importer_act; 00093 QAction * exporter_act; 00094 00095 QAction * supprimer1_act; 00096 QAction * supprimer2_act; 00097 00098 00099 #ifdef MODULE_ARCHITECTURE 00100 00101 QAction * ajout_etage_act; 00102 QAction * ajout_plan2D_act; 00103 00104 public : 00105 00106 void switchModeArchi(bool active); 00107 00108 00109 #endif 00110 00111 } ; 00112 00113 #endif