|
Vesna
|
#include <MenuCommand.h>
Classes | |
| class | DataClass |
Public Types | |
| enum | OperatorType { OperatorTypeDriver = 0, OperatorTypeDispatcher = 1 } |
| using | MenuCommandAction = std::function< void(StateMenu *)> |
Public Member Functions | |
| MenuCommand (const MenuCommandDefines::MenuCommandID commandID, const QString &commandText, const QString &commandDescription, const QString &commandButtonText, MenuCommandAction action) | |
| MenuCommand (const MenuCommandDefines::MenuCommandID commandID, MenuCommandAction action) | |
| MenuCommand (const MenuCommand &otherMenuCommand) | |
| MenuCommand (const MenuCommand *otherMenuCommand) | |
| ~MenuCommand () | |
| void | SetCommandText (const QString &text) |
| QString | GetCommandText () const |
| void | SetCommandDescription (const QString &description) |
| QString | GetCommandDescription () const |
| void | SetCommandActionText (const QString &commandButtonText) |
| QString | GetCommandActionText () const |
| void | SetAllCommandTexts (const QString &text, const QString &description, const QString &commandButtonText) |
| void | SetTabIndex (int tabIndex) |
| int | GetTabIndex () const |
| MenuCommandDefines::MenuCommandID | GetCommandID () const |
| void | ExecuteCommand (StateMenu *state) |
| void | SetVisibleOnlyForDispatcher (const bool dispatcherOnly) |
| SetVisibleOnlyForDispatcher - method can limit menu command usage to only dispatcher. More... | |
| bool | IsVisibleOnlyForDispatcher () const |
| bool | IsAllowedForCurrentOperator (const OperatorType currentOperator) const |
| using MenuCommand::MenuCommandAction = std::function<void(StateMenu*)> |
| MenuCommand::MenuCommand | ( | const MenuCommandDefines::MenuCommandID | commandID, |
| const QString & | commandText, | ||
| const QString & | commandDescription, | ||
| const QString & | commandButtonText, | ||
| MenuCommandAction | action | ||
| ) |
| MenuCommand::MenuCommand | ( | const MenuCommandDefines::MenuCommandID | commandID, |
| MenuCommandAction | action | ||
| ) |
| MenuCommand::MenuCommand | ( | const MenuCommand & | otherMenuCommand | ) |
| MenuCommand::MenuCommand | ( | const MenuCommand * | otherMenuCommand | ) |
| MenuCommand::~MenuCommand | ( | ) |
| void MenuCommand::ExecuteCommand | ( | StateMenu * | state | ) |


| QString MenuCommand::GetCommandActionText | ( | ) | const |

| QString MenuCommand::GetCommandDescription | ( | ) | const |

| MenuCommandDefines::MenuCommandID MenuCommand::GetCommandID | ( | ) | const |

| QString MenuCommand::GetCommandText | ( | ) | const |

| int MenuCommand::GetTabIndex | ( | ) | const |

| bool MenuCommand::IsAllowedForCurrentOperator | ( | const OperatorType | currentOperator | ) | const |


| bool MenuCommand::IsVisibleOnlyForDispatcher | ( | ) | const |

| void MenuCommand::SetAllCommandTexts | ( | const QString & | text, |
| const QString & | description, | ||
| const QString & | commandButtonText | ||
| ) |

| void MenuCommand::SetCommandActionText | ( | const QString & | commandButtonText | ) |
| void MenuCommand::SetCommandDescription | ( | const QString & | description | ) |
| void MenuCommand::SetCommandText | ( | const QString & | text | ) |
| void MenuCommand::SetTabIndex | ( | int | tabIndex | ) |

| void MenuCommand::SetVisibleOnlyForDispatcher | ( | const bool | dispatcherOnly | ) |
SetVisibleOnlyForDispatcher - method can limit menu command usage to only dispatcher.
| dispatcherOnly | - if true, menu command is displayed for dispatcher only, driver can't execute it
|

1.8.8