Back to index

salome-geom  6.5.0
GEOMToolsGUI_MarkerDlg.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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   : GEOMToolsGUI_MarkerDlg.h
00021 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
00022 //
00023 #ifndef GEOMTOOLSGUI_MARKERDLG_H
00024 #define GEOMTOOLSGUI_MARKERDLG_H
00025 
00026 #include "GEOM_ToolsGUI.hxx"
00027 
00028 #include <QDialog>
00029 
00030 #include <SALOMEconfig.h>
00031 #include CORBA_CLIENT_HEADER(GEOM_Gen)
00032 
00033 class QButtonGroup;
00034 class QStackedWidget;
00035 class QtxComboBox;
00036 class SalomeApp_Study;
00037 
00038 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_MarkerDlg : public QDialog
00039 {
00040   Q_OBJECT
00041 
00042 public:
00043   GEOMToolsGUI_MarkerDlg( QWidget* = 0 );
00044   ~GEOMToolsGUI_MarkerDlg();
00045 
00046   void                             setStandardMarker( GEOM::marker_type, GEOM::marker_size );
00047   void                             setCustomMarker( int );
00048   GEOM::marker_type                getMarkerType() const;
00049   GEOM::marker_size                getStandardMarkerScale() const;
00050   int                              getCustomMarkerID() const;
00051 
00052   void                             accept();
00053 
00054 protected:
00055   void                             keyPressEvent( QKeyEvent* );
00056 
00057 private:
00058   void                             init();
00059   void                             addTexture( int, bool = false ) const;
00060   SalomeApp_Study*                 getStudy() const;
00061 
00062 private slots:
00063   void                             browse();
00064   void                             help();
00065 
00066 private:
00067   GEOM::GEOM_IInsertOperations_var myOperation;
00068   QButtonGroup*                    myTypeGroup;
00069   QStackedWidget*                  myWGStack;
00070   QtxComboBox*                     myStdTypeCombo;
00071   QtxComboBox*                     myStdScaleCombo;
00072   QtxComboBox*                     myCustomTypeCombo;
00073 };
00074 
00075 #endif // GEOMTOOLSGUI_MARKERDLG_H