19 #ifdef GUI2_EXPERIMENTAL_LISTBOX
59 tlistbox& list = find_widget<tlistbox>(&window,
"addons_list",
false);
60 window.keyboard_capture(&list);
62 this->selections_.
clear();
64 for(
const auto & entry : titles_map_)
69 this->ids_.push_back(
id);
70 this->selections_[
id] =
false;
72 std::map<std::string, string_map>
data;
75 column[
"label"] = title;
76 data.insert(std::make_pair(
"name", column));
83 const tlistbox& list = find_widget<tlistbox>(&window,
"addons_list",
false);
92 for(
unsigned k = 0; k < rows; ++k) {
95 = find_widget<const ttoggle_button>(
g,
"checkbox",
false);
102 std::vector<std::string> retv;
107 retv.push_back(entry.first);
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
REGISTER_DIALOG(label_settings)
std::vector< std::string > ids_
void post_show(twindow &window)
Inherited from tdialog.
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
Dialog is closed with ok button.
unsigned get_item_count() const
Returns the number of items in the listbox.
void add_row(const string_map &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
bool get_value_bool() const
static size_t id
Ids for the timers.
std::map< std::string, t_string > string_map
GLenum GLenum GLvoid GLvoid * column
std::map< std::string, bool > selections_
GLsizei const GLcharARB ** string
void clear()
Removes all the rows in the listbox, clearing it.
const tgrid * get_row_grid(const unsigned row) const
Returns the grid of the wanted row.
std::vector< std::string > selected_addons() const
std::map< std::string, std::string > titles_map_