20 #ifndef CollectionPlugin_WidgetField_H
21 #define CollectionPlugin_WidgetField_H
24 #include "CollectionPlugin.h"
26 #include <ModuleBase_WidgetSelector.h>
27 #include <ModuleBase_ViewerPrs.h>
28 #include <ModelAPI_AttributeTables.h>
31 #include <QStringList>
32 #include <QStyledItemDelegate>
43 class QTableWidgetItem;
54 const QStyleOptionViewItem & theOption,
55 const QModelIndex& theIndex)
const;
62 void onEditItem(
const QString& theText);
103 virtual bool setSelection(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& theValues,
104 const bool theToValidate);
133 void onNbCompChanged(
int theVal);
143 void onStepMove(
int theStep);
147 void onFieldTypeChanged(
int theIdx);
152 void onTableEdited(
int theRow,
int theCol);
156 void onShapeTypeChanged(
int theType);
166 void onRangeChanged(
int theMin,
int theMax);
168 void onColumnResize(
int theIndex,
int theOld,
int theNew);
175 void appendStepControls();
178 void removeStepControls();
182 void updateHeaders(QTableWidget* theDataTbl)
const;
186 int getSelectionType(
const std::string& theStr)
const;
190 std::string getSelectionType(
int theType)
const;
193 QTableWidgetItem* createDefaultItem()
const;
206 QComboBox* myShapeTypeCombo;
209 QComboBox* myFieldTypeCombo;
218 QSlider* myStepSlider;
221 QList<QSpinBox*> myStampSpnList;
224 QList<QTableWidget*> myDataTblList;
230 QStackedWidget* myStepWgt;
233 QStringList myCompNamesList;
236 QPushButton* myRemoveBtn;
Definition: CollectionPlugin_WidgetField.h:48
ValueType
Type of the value in the table.
Definition: ModelAPI_AttributeTables.h:42
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Definition: ModelAPI_AttributeTables.h:49