Salome HOME
Split circle. Remain coincidence with newly created arc (issue #1725)
[modules/shaper.git] / src / ModuleBase / ModuleBase_ActionInfo.h
index 766a16b8c552aac12cc3741fbc0525e3be0c061e..1f21c7ca19be64ae95bf6f23d3141e992c554521 100644 (file)
  */
 struct MODULEBASE_EXPORT ModuleBase_ActionInfo
 {
-  QString id;
-
+  QString id; //!< action's (command) id
   bool checkable; //!< action's checkable state
   bool checked; //!< action's checked state
   bool enabled; //!< action's enabled state
   bool visible; //!< action's visibility state
+  bool modal;   //!< = true if the acton is a modal dialog box else property panel (==false by default)
   QIcon icon; //!< action's icon
   QString text; //!< action's text
   QString iconText; //!< action's descriptive icon text
@@ -52,9 +52,6 @@ struct MODULEBASE_EXPORT ModuleBase_ActionInfo
   void initFrom(QAction* theAction);
   //! Fills itself with info from given \param theFeatureMessage
   void initFrom(std::shared_ptr<Config_FeatureMessage> theFeatureMessage);
-  //! Creates new QAction with given parent and data initialized from this structure
-  //! \param theParent - parent of created action
-  QAction* makeAction(QObject* theParent = 0);
 
  protected:
   //! Initializes structure with default values, like QAction()