*/
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
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()