SHAPER  9.12.0
ModuleBase_ActionInfo Struct Reference

Public Member Functions

 ModuleBase_ActionInfo ()
 Default constructor,. More...
 
 ModuleBase_ActionInfo (const QString &text)
 Initializes structure with default values, except text. More...
 
 ModuleBase_ActionInfo (const QIcon &icon, const QString &text)
 Initializes structure with default values, except icon and text. More...
 
void initFrom (QAction *theAction)
 Fills itself with info from given. More...
 
void initFrom (std::shared_ptr< Config_FeatureMessage > theFeatureMessage)
 Fills itself with info from given. More...
 

Data Fields

QString id
 action's (command) id More...
 
bool checkable
 action's checkable state More...
 
bool checked
 action's checked state More...
 
bool enabled
 action's enabled state More...
 
bool visible
 action's visibility state More...
 
bool modal
 = true if the acton is a modal dialog box else property panel (==false by default) More...
 
QIcon icon
 action's icon More...
 
QString text
 action's text More...
 
QString iconText
 action's descriptive icon text More...
 
QString iconFile
 path to icon's file. Can not be initialized from QAction More...
 
QString toolTip
 action's tooltip More...
 
QString toolBar
 A name of toolbar. By default = group of features name. More...
 
QKeySequence shortcut
 action's primary shortcut key More...
 
QFont font
 action's text font More...
 

Protected Member Functions

void initDefault ()
 Initializes structure with default values, like QAction() More...
 

Detailed Description

Structure to pass info about QActions, AppElements_Commands, etc.

Constructor & Destructor Documentation

◆ ModuleBase_ActionInfo() [1/3]

ModuleBase_ActionInfo::ModuleBase_ActionInfo ( )

Default constructor,.

See also
initDefault

◆ ModuleBase_ActionInfo() [2/3]

ModuleBase_ActionInfo::ModuleBase_ActionInfo ( const QString &  text)

Initializes structure with default values, except text.

◆ ModuleBase_ActionInfo() [3/3]

ModuleBase_ActionInfo::ModuleBase_ActionInfo ( const QIcon &  icon,
const QString &  text 
)

Initializes structure with default values, except icon and text.

Member Function Documentation

◆ initFrom() [1/2]

void ModuleBase_ActionInfo::initFrom ( QAction *  theAction)

Fills itself with info from given.

Parameters
theAction

◆ initFrom() [2/2]

void ModuleBase_ActionInfo::initFrom ( std::shared_ptr< Config_FeatureMessage theFeatureMessage)

Fills itself with info from given.

Parameters
theFeatureMessage

◆ initDefault()

void ModuleBase_ActionInfo::initDefault ( )
protected

Initializes structure with default values, like QAction()

Field Documentation

◆ id

QString ModuleBase_ActionInfo::id

action's (command) id

◆ checkable

bool ModuleBase_ActionInfo::checkable

action's checkable state

◆ checked

bool ModuleBase_ActionInfo::checked

action's checked state

◆ enabled

bool ModuleBase_ActionInfo::enabled

action's enabled state

◆ visible

bool ModuleBase_ActionInfo::visible

action's visibility state

◆ modal

bool ModuleBase_ActionInfo::modal

= true if the acton is a modal dialog box else property panel (==false by default)

◆ icon

QIcon ModuleBase_ActionInfo::icon

action's icon

◆ text

QString ModuleBase_ActionInfo::text

action's text

◆ iconText

QString ModuleBase_ActionInfo::iconText

action's descriptive icon text

◆ iconFile

QString ModuleBase_ActionInfo::iconFile

path to icon's file. Can not be initialized from QAction

◆ toolTip

QString ModuleBase_ActionInfo::toolTip

action's tooltip

◆ toolBar

QString ModuleBase_ActionInfo::toolBar

A name of toolbar. By default = group of features name.

◆ shortcut

QKeySequence ModuleBase_ActionInfo::shortcut

action's primary shortcut key

◆ font

QFont ModuleBase_ActionInfo::font

action's text font