3#include <cgv/gui/dialog.h>
4#include <cgv/gui/provider.h>
11 std::string message =
"";
19 void add_line(
const std::string& line) {
27 void add_bullet_point(
const std::string& line) {
29 add_line(
" -\t" + line);
41 int x = btn->get<
int>(
"x");
42 int y = btn->get<
int>(
"y");
46 if(group->get_nr_children() > 1) {
49 int last_x = last_child->get<
int>(
"x");
50 int last_y = last_child->get<
int>(
"y");
51 int last_w = last_child->get<
int>(
"w");
52 int last_h = last_child->get<
int>(
"h");
54 x = last_x + (last_w > 200 ? last_w - 20 : 180);
65 connect_copy(btn->click, cgv::signal::rebind(
this, &help_message::show));
derive from this class to provide a gui to the current viewer
button_ptr add_button(const std::string &label, const std::string &options="", const std::string &align="\n")
use the current gui driver to append a new button with the given label
data::ref_ptr< base, true > base_ptr
ref counted pointer to base
data::ref_ptr< group, true > group_ptr
ref counted pointer to a node
namespace that holds the abstract gui interface
void message(const std::string &_message)
tell the user something with a message box
data::ref_ptr< button > button_ptr
ref counted pointer to button
this header is dependency free