Version: 6.3.1

src/VISUGUI/VisuGUI_TransparencyDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VisuGUI : GUI for VISU component
00024 //  File   : VisuGUI_TransparencyDlg.h
00025 //  Author : Nicolas REJNERI
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/VISUGUI/VisuGUI_TransparencyDlg.h,v 1.6.2.1.6.1.8.1 2011-06-02 06:00:23 vsr Exp $
00028 //
00029 #ifndef VISUGUI_TRANSPARENCYDLG_H
00030 #define VISUGUI_TRANSPARENCYDLG_H
00031 
00032 // QT Includes
00033 #include <QDialog>
00034 
00035 class QLabel;
00036 class QPushButton;
00037 class QSlider;
00038 class LightApp_SelectionMgr;
00039 class SalomeApp_Module;
00040 class SVTK_Selector;
00041 class SVTK_ViewWindow;
00042 class VisuGUI;
00043 
00044 //=================================================================================
00045 // class    : VisuGUI_TransparencyDlg
00046 // purpose  :
00047 //=================================================================================
00048 class VisuGUI_TransparencyDlg : public QDialog
00049 { 
00050   Q_OBJECT
00051 
00052 public:
00053   VisuGUI_TransparencyDlg( VisuGUI* = 0, 
00054                            bool modal = false );
00055 
00056   ~VisuGUI_TransparencyDlg();
00057 
00058 private:
00059   void                    keyPressEvent( QKeyEvent* e );
00060 
00061 private :
00062   LightApp_SelectionMgr*  mySelectionMgr;
00063   SVTK_ViewWindow*        myViewWindow;
00064   const SalomeApp_Module* myModule;
00065 
00066   QPushButton*            buttonOk;
00067   QPushButton*            buttonHelp;
00068   QLabel*                 TextLabelOpaque;
00069   QLabel*                 ValueLab;
00070   QLabel*                 TextLabelTransparent;
00071   QSlider*                Slider1;
00072 
00073 public slots:
00074   void ClickOnOk();
00075   void ClickOnHelp(); 
00076   void ValueHasChanged();
00077   void SetTransparency();
00078   void onSelectionChanged();
00079 };
00080 
00081 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS