CMsgBox: rework result values

Makes it possible to use bit operators. Current available
compare operations still should be compatible.
In case not please report to fix!


Origin commit data
------------------
Branch: ni/coolstream
Commit: 36e1a98a1d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-08 (Thu, 08 Dec 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-12-08 12:00:54 +01:00
committed by Jacek Jendrzej
parent 4d4cafe600
commit 904d9f40dd

View File

@@ -56,14 +56,14 @@ class CMsgBox : public CHintBox
/* enum definition */ /* enum definition */
enum msg_result_t enum msg_result_t
{ {
mbrYes = 0, mbrYes = 0x01,
mbrNo = 1, mbrNo = 0x02,
mbrCancel = 2, mbrCancel = 0x04,
mbrBack = 3, mbrBack = 0x08,
mbrOk = 4, mbrOk = 0x10,
mbrTimeout = 5, mbrTimeout = 0x20,
mbrNone = -1 mbrNone = 0x00
}; };
enum button_define_t enum button_define_t
{ {
@@ -171,7 +171,7 @@ class CMsgBox : public CHintBox
const int& Width = MSGBOX_MIN_WIDTH, const int& Width = MSGBOX_MIN_WIDTH,
const int& Height = MSGBOX_MIN_HEIGHT, const int& Height = MSGBOX_MIN_HEIGHT,
const int& ShowButtons = mbCancel, const int& ShowButtons = mbCancel,
const msg_result_t& Default_result = mbrCancel, const msg_result_t& Default_result = mbrNone,
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE); const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE);
/**CMsgBox Constructor /**CMsgBox Constructor
@@ -225,7 +225,7 @@ class CMsgBox : public CHintBox
const int& Width = MSGBOX_MIN_WIDTH, const int& Width = MSGBOX_MIN_WIDTH,
const int& Height = MSGBOX_MIN_HEIGHT, const int& Height = MSGBOX_MIN_HEIGHT,
const int& ShowButtons = mbCancel, const int& ShowButtons = mbCancel,
const msg_result_t& Default_result = mbrCancel, const msg_result_t& Default_result = mbrNone,
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE); const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE);
// ~CMsgBox(); //inherited // ~CMsgBox(); //inherited