Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreAlerts.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_ALERTS__
8#define __HDI_CORE_ALERTS__
9
10#include "hdicoreTypes.h"
11
12namespace hdi
13{
14 namespace core
15 {
16 class Callback;
17
21 namespace alerts
22 {
31 {
32 CancelButtonChosen = 1,
33 NoButtonChosen = 2,
34 YesButtonChosen = 3
35 };
36
49 bool setState(const bool enabled_);
50
60 void message(const std::string& message_);
61
71 void error(const std::string& error_);
72
84 Response confirm(const std::string& question_);
85
100 const std::string& question_,
101 const std::string& yesBtnStr_,
102 const std::string& noBtnStr_
103 );
104
118 Response confirm(const std::string& question_, const Callback& yesCb_, const Callback& noCb_);
119
136 const std::string& question_,
137 const std::string& yesBtnStr_,
138 const Callback& yesCb_,
139 const std::string& noBtnStr_,
140 const Callback& noCb_
141 );
142
155 Response question(const std::string& question_);
156
172 const std::string& question_,
173 const std::string& yesBtnStr_,
174 const std::string& noBtnStr_,
175 const std::string& cancelBtnStr_
176 );
177
194 const std::string& question_,
195 const Callback& yesCb_,
196 const Callback& noCb_,
197 const Callback& cancelCb_
198 );
199
218 const std::string& question_,
219 const std::string& yesBtnStr_,
220 const Callback& yesCb_,
221 const std::string& noBtnStr_,
222 const Callback& noCb_,
223 const std::string& cancelBtnStr_,
224 const Callback& cancelCb_
225 );
226
232 void beep();
233 }
234 }
235}
236
237#endif
238// __HDI_CORE_ALERTS__
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
void message(const std::string &message_)
Shows a simple platform message dialog, with just an "OK" button and a message/warning icon.
Response question(const std::string &question_)
Shows a question dialog with default affirmative, negative, and dismissal buttons ("Yes",...
Response
Describes the choice the user made when dismissing an alert.
Definition: hdicoreAlerts.h:31
void error(const std::string &error_)
Shows a simple platform error dialog, with just an "OK" button and an error icon.
bool setState(const bool enabled_)
Allows alerts to be (temporarily) disabled.
void beep()
Causes a platform beep to occur.
Response confirm(const std::string &question_)
Shows a confirmation dialog with default affirmative and negative buttons ("Yes" and "No")