1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: CollectionPlugin_WidgetField.h
4 // Created: 16 Nov 2016
5 // Author: Vitaly SMETANNIKOV
8 #ifndef CollectionPlugin_WidgetField_H
9 #define CollectionPlugin_WidgetField_H
12 #include "CollectionPlugin.h"
14 #include <ModuleBase_ModelWidget.h>
25 * Represent a content of the property panel to show/modify parameters of a Field feature.
27 class CollectionPlugin_WidgetField : public ModuleBase_ModelWidget
31 CollectionPlugin_WidgetField(QWidget* theParent, const Config_WidgetAPI* theData);
33 virtual ~CollectionPlugin_WidgetField() {}
35 /// Returns list of widget controls
36 /// \return a control list
37 virtual QList<QWidget*> getControls() const;
40 /// Saves the internal parameters to the given feature
41 /// \return True in success
42 virtual bool storeValueCustom();
44 /// Restore value from attribute data to the widget's control
45 virtual bool restoreValueCustom();
48 void onNbCompChanged(int theVal);
54 void onStepMove(int theStep);
59 /// Types of shapes selection
60 QComboBox* myShapeTypeCombo;
62 /// Types of field data
63 QComboBox* myFieldTypeCombo;
65 /// Number of components
66 QSpinBox* myNbComponentsSpn;
68 /// Label of current step
71 /// Slider for steps management
72 QSlider* myStepSlider;
77 QTableWidget* myDataTbl;