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>
cgv::gui::gui_group_ptr group()
return the gui group to which new elements are to be add
void add_std_buttons(const std::string &ok_label="ok", const std::string &cancel_label="")
add buttons for ok and or cancel
dialog(const std::string &title, const std::string &group_type="align_group")
create from title and adjust size according to content
bool exec()
execute modal dialog and freeze all other windows
gui independent window class
namespace that holds the abstract gui interface
data::ref_ptr< window > window_ptr
ref counted pointer to &window
data::ref_ptr< gui_group, true > gui_group_ptr
ref counted pointer to a gui group
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...
this header is dependency free