52 #ifndef __PCL_MessageBox_h
53 #define __PCL_MessageBox_h
62 #ifndef __PCL_MSGBOX_DONT_REMOVE_PREVIOUS_DECLARATION
104 NumberOfStandardIcons
142 NumberOfStandardButtons
148 class MessageBoxPrivate;
168 using std_icon = StdIcon::value_type;
173 using std_button = StdButton::value_type;
207 std_icon icon = StdIcon::NoIcon,
208 std_button button0 = StdButton::Ok,
209 std_button button1 = StdButton::NoButton,
210 std_button button2 = StdButton::NoButton,
211 int defaultButtonIdx = 0,
212 int escapeButtonIdx = -1 );
High-level interface to a PixInsight MessageBox object.
int EscapeButtonIndex() const
void SetEscapeButtonIndex(int index)
std_button FirstButton() const
void SetText(const String &text)
MessageBox(const String &text=String(), const String &caption=String(), std_icon icon=StdIcon::NoIcon, std_button button0=StdButton::Ok, std_button button1=StdButton::NoButton, std_button button2=StdButton::NoButton, int defaultButtonIdx=0, int escapeButtonIdx=-1)
void SetSecondButton(std_button button)
std_button Result() const
void SetIcon(std_icon icon)
void SetThirdButton(std_button button)
void SetFirstButton(std_button button)
int DefaultButtonIndex() const
void SetCaption(const String &text)
std_button ThirdButton() const
void SetDefaultButtonIndex(int index)
std_button SecondButton() const