![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Organizes all basic alerting functions into one namespace. More...
Enumerations | |
| enum | Response { CancelButtonChosen = 1 , NoButtonChosen = 2 , YesButtonChosen = 3 } |
| Describes the choice the user made when dismissing an alert. More... | |
Functions | |
| bool | setState (const bool enabled_) |
| Allows alerts to be (temporarily) disabled. | |
| void | message (const std::string &message_) |
| Shows a simple platform message dialog, with just an "OK" button and a message/warning icon. | |
| void | error (const std::string &error_) |
| Shows a simple platform error dialog, with just an "OK" button and an error icon. | |
| Response | confirm (const std::string &question_) |
| Shows a confirmation dialog with default affirmative and negative buttons ("Yes" and "No") | |
| Response | confirm (const std::string &question_, const std::string &yesBtnStr_, const std::string &noBtnStr_) |
| Shows a confirmation dialog with affirmative and negative buttons with custom titles. | |
| Response | confirm (const std::string &question_, const Callback &yesCb_, const Callback &noCb_) |
| Shows a confirmation dialog with default affirmative and negative buttons ("Yes" and "No") | |
| Response | confirm (const std::string &question_, const std::string &yesBtnStr_, const Callback &yesCb_, const std::string &noBtnStr_, const Callback &noCb_) |
| Shows a confirmation dialog with affirmative and negative buttons with custom titles. | |
| Response | question (const std::string &question_) |
| Shows a question dialog with default affirmative, negative, and dismissal buttons ("Yes", "No", and "Cancel") | |
| Response | question (const std::string &question_, const std::string &yesBtnStr_, const std::string &noBtnStr_, const std::string &cancelBtnStr_) |
| Shows a question dialog with affirmative, negative, and dismissal buttons with custom titles. | |
| Response | question (const std::string &question_, const Callback &yesCb_, const Callback &noCb_, const Callback &cancelCb_) |
| Shows a question dialog with default affirmative, negative, and dismissal buttons ("Yes", "No", and "Cancel") | |
| Response | question (const std::string &question_, const std::string &yesBtnStr_, const Callback &yesCb_, const std::string &noBtnStr_, const Callback &noCb_, const std::string &cancelBtnStr_, const Callback &cancelCb_) |
| Shows a question dialog with affirmative, negative, and dismissal buttons with custom titles. | |
| void | beep () |
| Causes a platform beep to occur. | |
Organizes all basic alerting functions into one namespace.
Describes the choice the user made when dismissing an alert.
| void hdi::core::alerts::beep | ( | ) |
Causes a platform beep to occur.
| Response hdi::core::alerts::confirm | ( | const std::string & | question_ | ) |
Shows a confirmation dialog with default affirmative and negative buttons ("Yes" and "No")
| question_ | Question to pose to the user, as UTF-8 |
| Response hdi::core::alerts::confirm | ( | const std::string & | question_, |
| const Callback & | yesCb_, | ||
| const Callback & | noCb_ | ||
| ) |
Shows a confirmation dialog with default affirmative and negative buttons ("Yes" and "No")
| question_ | Question to pose to the user, as UTF-8 |
| yesCb_ | Action to perform on the user having chosen "Yes" |
| noCb_ | Action to perform on the user having chosen "No" |
| Response hdi::core::alerts::confirm | ( | const std::string & | question_, |
| const std::string & | yesBtnStr_, | ||
| const Callback & | yesCb_, | ||
| const std::string & | noBtnStr_, | ||
| const Callback & | noCb_ | ||
| ) |
Shows a confirmation dialog with affirmative and negative buttons with custom titles.
| question_ | Question to pose to the user, as UTF-8 |
| yesBtnStr_ | Title for the affirmative button, as UTF-8 |
| yesCb_ | Action to perform on the user having chosen "Yes" |
| noBtnStr_ | Title for the negative button, as UTF-8 |
| noCb_ | Action to perform on the user having chosen "No" |
| Response hdi::core::alerts::confirm | ( | const std::string & | question_, |
| const std::string & | yesBtnStr_, | ||
| const std::string & | noBtnStr_ | ||
| ) |
Shows a confirmation dialog with affirmative and negative buttons with custom titles.
| question_ | Question to pose to the user, as UTF-8 |
| yesBtnStr_ | Title for the affirmative button, as UTF-8 |
| noBtnStr_ | Title for the negative button, as UTF-8 |
| void hdi::core::alerts::error | ( | const std::string & | error_ | ) |
Shows a simple platform error dialog, with just an "OK" button and an error icon.
| error_ | Error string to show to the user in the dialog, as UTF-8 |
| void hdi::core::alerts::message | ( | const std::string & | message_ | ) |
Shows a simple platform message dialog, with just an "OK" button and a message/warning icon.
| message_ | Message string to show to the user in the dialog, as UTF-8 |
| Response hdi::core::alerts::question | ( | const std::string & | question_ | ) |
Shows a question dialog with default affirmative, negative, and dismissal buttons ("Yes", "No", and "Cancel")
| question_ | Question to pose to the user, as UTF-8 |
| Response hdi::core::alerts::question | ( | const std::string & | question_, |
| const Callback & | yesCb_, | ||
| const Callback & | noCb_, | ||
| const Callback & | cancelCb_ | ||
| ) |
Shows a question dialog with default affirmative, negative, and dismissal buttons ("Yes", "No", and "Cancel")
| question_ | Question to pose to the user, as UTF-8 |
| yesCb_ | Action to perform on the user having chosen "Yes" |
| noCb_ | Action to perform on the user having chosen "No" |
| cancelCb_ | Action to perform on the user having chosen "Cancel" |
| Response hdi::core::alerts::question | ( | const std::string & | question_, |
| const std::string & | yesBtnStr_, | ||
| const Callback & | yesCb_, | ||
| const std::string & | noBtnStr_, | ||
| const Callback & | noCb_, | ||
| const std::string & | cancelBtnStr_, | ||
| const Callback & | cancelCb_ | ||
| ) |
Shows a question dialog with affirmative, negative, and dismissal buttons with custom titles.
| question_ | Question to pose to the user, as UTF-8 |
| yesBtnStr_ | Title for the affirmative button, as UTF-8 |
| yesCb_ | Action to perform on the user having chosen "Yes" |
| noBtnStr_ | Title for the negative button, as UTF-8 |
| noCb_ | Action to perform on the user having chosen "No" |
| cancelBtnStr_ | Title for the dismissal button, as UTF-8 |
| cancelCb_ | Action to perform on the user having chosen "Cancel" |
| Response hdi::core::alerts::question | ( | const std::string & | question_, |
| const std::string & | yesBtnStr_, | ||
| const std::string & | noBtnStr_, | ||
| const std::string & | cancelBtnStr_ | ||
| ) |
Shows a question dialog with affirmative, negative, and dismissal buttons with custom titles.
| question_ | Question to pose to the user, as UTF-8 |
| yesBtnStr_ | Title for the affirmative button, as UTF-8 |
| noBtnStr_ | Title for the negative button, as UTF-8 |
| cancelBtnStr_ | Title for the dismissal button, as UTF-8 |
| bool hdi::core::alerts::setState | ( | const bool | enabled_ | ) |
Allows alerts to be (temporarily) disabled.
| enabled_ | true to enable alerts, false to disable |