#include <ModuleBase_WidgetSelector.h>
#include <ModuleBase_ViewerPrs.h>
+#include <ModelAPI_AttributeTables.h>
#include <QList>
#include <QStringList>
class QTableWidget;
class QStackedWidget;
class QPushButton;
+class QTableWidgetItem;
+class QLineEdit;
/*!
* \ingroup GUI
/// \return a list of shapes
virtual QIntList shapeTypes() const;
+ virtual bool eventFilter(QObject* theObbject, QEvent* theEvent);
+
protected slots:
/// Slot which is called on selection event
void onFieldTypeChanged(int theIdx);
+ void onTableEdited(int theRow, int theCol);
+
+ void onShapeTypeChanged(int theType);
+
private:
void clearData();
void appendStepControls();
void removeStepControls();
+ void updateHeaders(QTableWidget* theDataTbl) const;
+
+ int getSelectionType(const std::string& theStr) const;
+
+ std::string getSelectionType(int theType) const;
+
+ QTableWidgetItem* createDefaultItem() const;
+
+ QTableWidgetItem* createValueItem(ModelAPI_AttributeTables::Value& theVal) const;
+
+ ModelAPI_AttributeTables::Value getValue(QString theStrVal) const;
+
/// Types of shapes selection
QComboBox* myShapeTypeCombo;
QStringList myCompNamesList;
- QList<ModuleBase_ViewerPrsPtr> mySelection;
-
QPushButton* myRemoveBtn;
+
+ QLineEdit* myHeaderEditor;
+ int myEditIndex;
};
#endif
\ No newline at end of file