Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_MESSAGE_HPP
9 #define BOOST_UI_MESSAGE_HPP
12 #define BOOST_UI_USE_FILESYSTEM
17 #ifdef BOOST_HAS_PRAGMA_ONCE
24 #ifdef BOOST_UI_USE_FILESYSTEM
25 #include <boost/filesystem.hpp>
35 const uistring& title =
ascii(
"Information"));
41 const uistring& title =
ascii(
"Warning"));
47 const uistring& title =
ascii(
"Error"));
54 const uistring& title =
ascii(
"Information"));
60 const uistring& title =
ascii(
"Warning"));
66 const uistring& title =
ascii(
"Error"));
72 bool confirm(
const uistring& message,
73 const uistring& title =
ascii(
"Confirmation"));
78 bool question(
const uistring& message,
79 const uistring& title =
ascii(
"Question"));
85 bool prompt(
const uistring& message,
const uistring& title, std::wstring& value);
87 bool prompt(
const uistring& message,
const uistring& title, uistring& value);
93 bool prompt_password(
const uistring& message,
const uistring& title, std::wstring& value);
95 bool prompt_password(
const uistring& message,
const uistring& title, uistring& value);
105 #ifdef BOOST_UI_USE_FILESYSTEM
125 #ifdef BOOST_UI_USE_FILESYSTEM
147 #endif // BOOST_UI_MESSAGE_HPP
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
BOOST_UI_DECL bool prompt_password(const uistring &message, const uistring &title, std::wstring &value)
Request user password using application-modal dialog.
BOOST_UI_DECL void warning_dialog(const uistring &message, const uistring &title=ascii("Warning"))
Display warning in application-modal dialog.
BOOST_UI_DECL void info_notify(const uistring &message, const uistring &title=ascii("Information"))
Display information as an non intrusive notification.
Boost C++ libraries namespace.
Definition: window.hpp:19
BOOST_UI_DECL bool prompt_filename(const uistring &title, std::wstring &value)
Request user filename using application-modal dialog.
BOOST_UI_DECL void info_dialog(const uistring &message, const uistring &title=ascii("Information"))
Display information in application-modal dialog.
String class and operations.
BOOST_UI_DECL void error_notify(const uistring &message, const uistring &title=ascii("Error"))
Display error as an non intrusive notification.
BOOST_UI_DECL bool confirm(const uistring &message, const uistring &title=ascii("Confirmation"))
Request user confirmation using application-modal dialog.
uistring ascii(const char *str)
Constructs uistring from 7-bit ASCII encoded string.
Definition: string.hpp:402
BOOST_UI_DECL bool prompt_directory(const uistring &title, std::wstring &value)
Request user directory using application-modal dialog.
BOOST_UI_DECL bool prompt_color(const uistring &title, color &value)
Request color using application-modal dialog.
BOOST_UI_DECL bool prompt(const uistring &message, const uistring &title, std::wstring &value)
Request user value using application-modal dialog.
std::wstring wstring() const
Returns Unicode wide std::wstring.
BOOST_UI_DECL void warning_notify(const uistring &message, const uistring &title=ascii("Warning"))
Display warning as an non intrusive notification.
BOOST_UI_DECL bool question(const uistring &message, const uistring &title=ascii("Question"))
Request user answer using application-modal dialog.
BOOST_UI_DECL void error_dialog(const uistring &message, const uistring &title=ascii("Error"))
Display error in application-modal dialog.