Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_MenuGroupPanel.h
index 58fd7a7975550847c69a2e14110e38ca98a49c73..b43ef75c6e7175e3561c7294da3ee111c6791841 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef XGUI_MenuGroupPanel_H
 #define XGUI_MenuGroupPanel_H
 
+#include "XGUI.h"
 #include <QWidget>
 #include <QMap>
 
@@ -11,7 +12,7 @@ class QGridLayout;
  * \ingroup GUI
  * \brief Represents a one group in a page of main menu (workbench)
  */
-class XGUI_MenuGroupPanel: public QWidget
+class XGUI_EXPORT XGUI_MenuGroupPanel: public QWidget
 {
 Q_OBJECT
 public:
@@ -19,7 +20,14 @@ public:
 
   //! Adding a new feature (Command) in the group
   XGUI_Command* addFeature(const QString& theId, const QString& theTitle, const QString& theTip,
-                           const QIcon& theIcon, const QKeySequence& theKeys = QKeySequence());
+                           const QIcon& theIcon, const QKeySequence& theKeys = QKeySequence(),
+                           bool isCheckable = false);
+
+  //! Returns already created command by its ID
+  XGUI_Command* feature(const QString& theId) const;
+
+  //! Returns list of created commands
+  QList<XGUI_Command*> features() const { return myActions; }
 
 protected:
   virtual void resizeEvent(QResizeEvent *theEvent);