Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelector.h
index 9d71808489b8c119c753dddea333381ba0c3cda5..574ae0e8b5112c96598dd1a39e8ebe0e62415291 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <QStringList>
 
-
 class Config_WidgetAPI;
 class QWidget;
 class QLabel;
@@ -22,12 +21,11 @@ class QLineEdit;
 class QToolButton;
 class ModuleBase_IWorkshop;
 
-class MODULEBASE_EXPORT ModuleBase_WidgetSelector: public ModuleBase_ModelWidget
+class MODULEBASE_EXPORT ModuleBase_WidgetSelector : public ModuleBase_ModelWidget
 {
-  Q_OBJECT
-public:
-  ModuleBase_WidgetSelector(QWidget* theParent, 
-                            ModuleBase_IWorkshop* theWorkshop, 
+Q_OBJECT
+ public:
+  ModuleBase_WidgetSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
                             const Config_WidgetAPI* theData, const std::string& theParentId);
 
   virtual ~ModuleBase_WidgetSelector();
@@ -40,29 +38,41 @@ public:
 
   /// Returns the internal parent wiget control, that can be shown anywhere
   /// \returns the widget
-  QWidget* getControl() const { return myContainer; }
+  QWidget* getControl() const
+  {
+    return myContainer;
+  }
 
   /// Returns list of widget controls
   /// \return a control list
   virtual QList<QWidget*> getControls() const;
 
-  void setActivationOnStart(bool toActivate) { myActivateOnStart = toActivate; }
-  bool activateOnStart() const { return myActivateOnStart; }
+  void setActivationOnStart(bool toActivate)
+  {
+    myActivateOnStart = toActivate;
+  }
+  bool activateOnStart() const
+  {
+    return myActivateOnStart;
+  }
 
-  ObjectPtr selectedFeature() const { return mySelectedObject; }
+  ObjectPtr selectedFeature() const
+  {
+    return mySelectedObject;
+  }
 
-public slots:
+ public slots:
 
   /// Activate or deactivate selection
   void activateSelection(bool toActivate);
 
-protected:
+ protected:
   bool eventFilter(QObject* theObj, QEvent* theEvent);
 
-private slots:
+ private slots:
   void onSelectionChanged();
 
-private:
+ private:
   void enableOthersControls(bool toEnable) const;
   void updateSelectionName();
   void raisePanel() const;
@@ -70,9 +80,9 @@ private:
 
   static TopAbs_ShapeEnum shapeType(const QString& theType);
 
-  QWidget*     myContainer;
-  QLabel*      myLabel;
-  QLineEdit*   myTextLine;
+  QWidget* myContainer;
+  QLabel* myLabel;
+  QLineEdit* myTextLine;
   QToolButton* myActivateBtn;
 
   ModuleBase_IWorkshop* myWorkshop;
@@ -83,4 +93,4 @@ private:
   QStringList myShapeTypes;
 };
 
-#endif
\ No newline at end of file
+#endif