Salome HOME
Copyright update 2020
[plugins/hexoticplugin.git] / src / GUI / HexoticPluginGUI_Dlg.h
1 // Copyright (C) 2007-2020  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // File   : DlgRef.h
21 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
22
23 #ifndef HEXOTICPLUGINGUI_H
24 #define HEXOTICPLUGINGUI_H
25
26 class QPixmap;
27
28 enum {
29   SD_MODE_1,
30   SD_MODE_2,
31   SD_MODE_3,
32   SD_MODE_4
33 };
34
35 enum {
36   OPTION_ID_COLUMN = 0,
37   OPTION_TYPE_COLUMN,
38   OPTION_NAME_COLUMN = 0,
39   OPTION_VALUE_COLUMN,
40   NB_COLUMNS,
41 };
42
43 //////////////////////////////////////////
44 // HexoticPluginGUI_StdWidget
45 //////////////////////////////////////////
46
47 #include "ui_HexoticPluginGUI_StdWidget_QTD.h"
48 #include "ui_HexoticPluginGUI_AdvWidget_QTD.h"
49 #include "ui_HexoticPluginGUI_SizeMapsWidget_QTD.h"
50 #include "ui_HexoticPluginGUI_ViscousLayersWidget_QTD.h"
51 #include "HexoticPluginGUI.h"
52
53 #include <StdMeshersGUI_SubShapeSelectorWdg.h>
54
55 class HEXOTICPLUGIN_GUI_EXPORT HexoticPluginGUI_StdWidget : public QWidget,
56                                             public Ui::HexoticPluginGUI_StdWidget_QTD
57 {
58   Q_OBJECT
59
60 public:
61   HexoticPluginGUI_StdWidget( QWidget* = 0, Qt::WindowFlags = 0 );
62   ~HexoticPluginGUI_StdWidget();
63
64 public slots:
65   void onSdModeSelected(int sdMode);
66   void onSizeTypeChange(int);
67
68 public:
69   QPixmap imageSdMode;
70 };
71
72 class HEXOTICPLUGIN_GUI_EXPORT HexoticPluginGUI_AdvWidget : public QWidget,
73                                             public Ui::HexoticPluginGUI_AdvWidget_QTD
74 {
75   Q_OBJECT
76
77 public:
78   HexoticPluginGUI_AdvWidget( QWidget* = 0, Qt::WindowFlags = 0 );
79   ~HexoticPluginGUI_AdvWidget();
80
81   void AddOption( const char* name_value_type, bool isCustom = false );
82   void GetOptionAndValue( QTreeWidgetItem * tblRow, QString& option, QString& value, bool& dflt );
83
84 public slots:
85
86   void onDirBtnClicked();
87   void itemChanged(QTreeWidgetItem * tblRow, int column);
88
89 };
90
91 class HEXOTICPLUGIN_GUI_EXPORT HexoticPluginGUI_SizeMapsWidget : public QWidget,
92                                             public Ui::HexoticPluginGUI_SizeMapsWidget_QTD
93 {
94   Q_OBJECT
95
96 public:
97   HexoticPluginGUI_SizeMapsWidget( QWidget* = 0, Qt::WindowFlags = 0 );
98   ~HexoticPluginGUI_SizeMapsWidget();
99 };
100
101 class HEXOTICPLUGIN_GUI_EXPORT HexoticPluginGUI_ViscousLayersWidget : public QWidget,
102                                             public Ui::HexoticPluginGUI_ViscousLayersWidget_QTD
103 {
104   Q_OBJECT
105
106 public:
107   HexoticPluginGUI_ViscousLayersWidget( QWidget* = 0, Qt::WindowFlags = 0 );
108   ~HexoticPluginGUI_ViscousLayersWidget();
109
110 public slots:
111   void onSelectionChanged();
112
113 public:
114   StdMeshersGUI_SubShapeSelectorWdg* myFacesWithLayers;
115   StdMeshersGUI_SubShapeSelectorWdg* myImprintedFaces;
116 };
117
118 #endif