#include "MessageDialogCfg.h"
|
enum | BasicButton {
NoButtons = 0 << 0
, Ok = 1 << 0
, Save = 1 << 1
, SaveAll = 1 << 2
,
Open = 1 << 3
, Yes = 1 << 4
, YesToAll = 1 << 5
, No = 1 << 6
,
NoToAll = 1 << 7
, Abort = 1 << 8
, Retry = 1 << 9
, Ignore = 1 << 10
,
Close = 1 << 11
, Cancel = 1 << 12
, Discard = 1 << 13
, Help = 1 << 14
,
Apply = 1 << 15
, Reset = 1 << 16
, RestoreDefaults = 1 << 17
} |
|
enum | BasicIcon {
NoIcon
, Information
, Question
, Warning
,
Critical
} |
|
typedef Flags< BasicButton > | BasicButtons |
|
enum | DialogFlag { NoFlags = 0x00
, CancelOnNoChange = 0x01
, MoveGrabAnywhere = 0x02
, RecenterOnF11 = 0x04
} |
|
typedef Flags< DialogFlag > | DialogFlags |
|
◆ BasicButtons
◆ BasicButton
Enumerator |
---|
NoButtons | |
Ok | |
Save | |
SaveAll | |
Open | |
Yes | |
YesToAll | |
No | |
NoToAll | |
Abort | |
Retry | |
Ignore | |
Close | |
Cancel | |
Discard | |
Help | |
Apply | |
Reset | |
RestoreDefaults | |
◆ BasicIcon
Enumerator |
---|
NoIcon | |
Information | |
Question | |
Warning | |
Critical | |
◆ MessageDialogCfg()
ot::MessageDialogCfg::MessageDialogCfg |
( |
| ) |
|
◆ ~MessageDialogCfg()
ot::MessageDialogCfg::~MessageDialogCfg |
( |
| ) |
|
|
virtual |
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_object | Json object reference |
_allocator | Allocator |
Reimplemented from ot::DialogCfg.
◆ getButtons()
const BasicButtons & ot::MessageDialogCfg::getButtons |
( |
void | | ) |
const |
|
inline |
◆ getIcon()
BasicIcon ot::MessageDialogCfg::getIcon |
( |
void | | ) |
const |
|
inline |
◆ getText()
const std::string & ot::MessageDialogCfg::getText |
( |
void | | ) |
const |
|
inline |
◆ iconToString()
std::string ot::MessageDialogCfg::iconToString |
( |
BasicIcon | _icon | ) |
|
|
static |
◆ setButton()
void ot::MessageDialogCfg::setButton |
( |
BasicButton | _button, |
|
|
bool | _active = true ) |
|
inline |
◆ setButtons()
void ot::MessageDialogCfg::setButtons |
( |
BasicButtons | _buttons | ) |
|
|
inline |
◆ setFromJsonObject()
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Reimplemented from ot::DialogCfg.
◆ setIcon()
void ot::MessageDialogCfg::setIcon |
( |
BasicIcon | _icon | ) |
|
|
inline |
◆ setText()
void ot::MessageDialogCfg::setText |
( |
const std::string & | _text | ) |
|
|
inline |
◆ stringListToButtons()
◆ stringToButton()
◆ stringToIcon()
◆ toString()
std::string ot::MessageDialogCfg::toString |
( |
BasicButton | _button | ) |
|
|
static |
◆ toStringList()
std::list< std::string > ot::MessageDialogCfg::toStringList |
( |
const BasicButtons & | _buttons | ) |
|
|
static |
The documentation for this class was generated from the following files: