X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetMultiSelector.h;h=d54f557d57b4939180f51b2f1c0a186c332124ef;hb=814a346c0ef4b2625779c5ef96be5ff87980acbb;hp=651526ea8d1de2809881d1a00bda405386a784fe;hpb=3db5cdff1249e4f7186d8779ff191d511fc1e3b9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h index 651526ea8..d54f557d5 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h @@ -37,7 +37,8 @@ class QWidget; class QCheckBox; -//class QComboBox; +class QPushButton; +class QVBoxLayout; class ModuleBase_ListView; class ModuleBase_IWorkshop; class ModuleBase_ChoiceCtrl; @@ -50,12 +51,12 @@ class ModuleBase_FilterStarter; * \code * +* shape_types="Vertices Edges Faces Solids" /> * \endcode * It uses following parameters: * - id - is a name of corresponded attribute * - tooltip - a tooltip for the widget -* - type_choice - list of expected shape types. +* - shape_types - list of expected shape types. */ class MODULEBASE_EXPORT ModuleBase_WidgetMultiSelector : public ModuleBase_WidgetSelector { @@ -115,6 +116,11 @@ class MODULEBASE_EXPORT ModuleBase_WidgetMultiSelector : public ModuleBase_Widge /// The slot is called when user press Ok or OkPlus buttons in the parent property panel virtual void onFeatureAccepted(); + /// Returns True if data of its feature was modified during operation + virtual bool isModified() const; + + virtual void setReadOnly(bool isReadOnly); + public slots: /// Slot is called on selection type changed void onSelectionTypeChanged(); @@ -135,7 +141,7 @@ protected slots: void onSameTopology(bool theOn); - void onShowOnly(); + void onShowOnly(bool); protected: /// Returns true if the event is processed. The default implementation is empty, returns false. @@ -253,8 +259,15 @@ protected: bool myIsFirst; std::string myDefMode; + QVBoxLayout* myMainLayout; QCheckBox* myGeomCheck; ModuleBase_FilterStarter* myFiltersWgt; + QPushButton* myShowOnlyBtn; + + QObjectPtrList myVisibleObjects; + QStringList myAllowedObjects; + QStringList myTmpAllowed; + std::string myUseFilters; }; #endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */