Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Callback;
17 
18  namespace alerts
19  {
27  enum Response
28  {
29  CancelButtonChosen = 1,
30  NoButtonChosen = 2,
31  YesButtonChosen = 3
32  };
33 
46  bool setState(const bool enabled_);
47 
57  void message(const std::string& message_);
58 
68  void error(const std::string& error_);
69 
81  Response confirm(const std::string& question_);
82 
96  Response confirm(
97  const std::string& question_,
98  const std::string& yesBtnStr_,
99  const std::string& noBtnStr_
100  );
101 
115  Response confirm(const std::string& question_, const Callback& yesCb_, const Callback& noCb_);
116 
132  Response confirm(
133  const std::string& question_,
134  const std::string& yesBtnStr_,
135  const Callback& yesCb_,
136  const std::string& noBtnStr_,
137  const Callback& noCb_
138  );
139 
152  Response question(const std::string& question_);
153 
168  Response question(
169  const std::string& question_,
170  const std::string& yesBtnStr_,
171  const std::string& noBtnStr_,
172  const std::string& cancelBtnStr_
173  );
174 
190  Response question(
191  const std::string& question_,
192  const Callback& yesCb_,
193  const Callback& noCb_,
194  const Callback& cancelCb_
195  );
196 
214  Response question(
215  const std::string& question_,
216  const std::string& yesBtnStr_,
217  const Callback& yesCb_,
218  const std::string& noBtnStr_,
219  const Callback& noCb_,
220  const std::string& cancelBtnStr_,
221  const Callback& cancelCb_
222  );
223 
229  void beep();
230  }
231  }
232 }
233 
234 #endif
235 // __HDI_CORE_ALERTS__
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreaiArray.h:12