/// Slot is called on selection type changed
void onSelectionTypeChanged();
+ /// Slot which is called on selection event. Redefined to process XML state about
+ /// clear selection in neutral point
+ virtual void onSelectionChanged();
+
protected slots:
/// Slot for copy command in a list pop-up menu
void onCopyItem();
/// Retunrs a list of possible shape types
/// \return a list of shapes
- virtual QIntList getShapeTypes() const;
+ virtual QIntList shapeTypes() const;
/// Set current shape type for selection
- void setCurrentShapeType(const TopAbs_ShapeEnum theShapeType);
+ void setCurrentShapeType(const int theShapeType);
/// Return the attribute values wrapped in a list of viewer presentations
/// \return a list of viewer presentations, which contains an attribute result and
/// Provides correspondance between Result object and its shape
typedef QPair<ResultPtr, GeomShapePtr> GeomSelection;
- /// An action for pop-up menu in a list control
+ /// A copy action for pop-up menu in a list control
QAction* myCopyAction;
+
+ /// A delete action for pop-up menu in a list control
QAction* myDeleteAction;
/// A flag to store use_choice parameter state
bool myIsUseChoice;
+
+ /// A flag to clear selection by click in empty place in the viewer
+ bool myIsNeutralPointClear;
};
#endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */