#include <ModuleBase.h>
#include <ModuleBase_ModelWidget.h>
+#include <GeomAPI_Shape.h>
+#include <ModelAPI_Result.h>
+
#include <NCollection_List.hxx>
#include <TopoDS_Shape.hxx>
#include <QList>
#include <QString>
#include <QStringList>
+#include <QPair>
class QWidget;
-class QTextEdit;
+class QListWidget;
class QComboBox;
class ModuleBase_IWorkshop;
protected:
void filterShapes(const NCollection_List<TopoDS_Shape>& theShapesToFilter,
NCollection_List<TopoDS_Shape>& theResult);
+ void setCurrentShapeType(const TopAbs_ShapeEnum theShapeType);
private:
- QTextEdit* myListControl;
+ void updateSelectionList();
+
+ QListWidget* myListControl;
QComboBox* myTypeCombo;
QWidget* myMainWidget;
ModuleBase_IWorkshop* myWorkshop;
/// If true then local selector has to be activated in context
- QStringList myShapeTypes;
bool myUseSubShapes;
bool myIsActive;
+
+ typedef QPair<ResultPtr, GeomShapePtr> GeomSelection;
+ QList<GeomSelection> mySelection;
};
#endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */