00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 // File : VisuGUI_ShrinkFactorDlg.h 00021 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com) 00022 // 00023 #ifndef VISUGUI_SHRINKFACTORDLG_H 00024 #define VISUGUI_SHRINKFACTORDLG_H 00025 00026 // QT Includes 00027 #include <QDialog> 00028 00029 class QLabel; 00030 class QPushButton; 00031 class SalomeApp_IntSpinBox; 00032 class QGroupBox; 00033 class LightApp_SelectionMgr; 00034 class SalomeApp_Module; 00035 class SVTK_Selector; 00036 class SVTK_ViewWindow; 00037 class VisuGUI; 00038 00039 //================================================================================= 00040 // class : VisuGUI_ShrinkFactorDlg 00041 // purpose : 00042 //================================================================================= 00043 class VisuGUI_ShrinkFactorDlg : public QDialog 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 VisuGUI_ShrinkFactorDlg( VisuGUI* = 0, 00049 bool modal = false ); 00050 00051 ~VisuGUI_ShrinkFactorDlg(); 00052 00053 private: 00054 void keyPressEvent( QKeyEvent* ); 00055 00056 private : 00057 LightApp_SelectionMgr* mySelectionMgr; 00058 SVTK_ViewWindow* myViewWindow; 00059 const SalomeApp_Module* myModule; 00060 00061 QGroupBox* GroupC1; 00062 QPushButton* buttonOk; 00063 QPushButton* buttonHelp; 00064 QLabel* ValueLab; 00065 SalomeApp_IntSpinBox* ValueSpin; 00066 00067 public slots: 00068 void help(); 00069 void setShrinkFactor(); 00070 void onSelectionChanged(); 00071 }; 00072 00073 #endif // VISUGUI_SHRINKFACTORDLG_H