5#include <cgv/gui/window.h>
12 extern CGV_API
void message(
const std::string& _message);
14 extern CGV_API
int question(
const std::string&
question,
const std::vector<std::string>& answers = {},
int default_answer = -1);
16 extern CGV_API
int question(
const std::string&
question,
const std::string& answers,
int default_answer = -1);
19 extern CGV_API
bool query(
const std::string&
question, std::string& text,
bool password =
false);
30 dialog(
const std::string& title,
const std::string& group_type =
"align_group");
32 dialog(
int w,
int h,
const std::string& title,
const std::string& group_type =
"align_group");
36 void add_std_buttons(
const std::string& ok_label =
"ok",
const std::string& cancel_label =
"");
44#include <cgv/config/lib_end.h>
use this class to construct and execute a modal dialog.
gui independent window class
void message(const std::string &_message)
tell the user something with a message box
int question(const std::string &_question, const std::vector< std::string > &answers, int default_answer)
ask the user with question to select one of the answers, where default_answer specifies index of defa...
bool query(const std::string &question, std::string &text, bool password)
query the user for a text, where the second parameter is the default text as well as the returned tex...