Campaign toggle button -> toggle pannel.
This change allows to change to the 'to be added' stacked widget later on, also fixes the issue that the campaign text ended up in the border.
This commit is contained in:
parent
0e1d1fea7e
commit
3a82d40ae4
2 changed files with 46 additions and 7 deletions
|
@ -73,15 +73,50 @@
|
|||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
|
||||
[toggle_button]
|
||||
definition = "listbox_text_with_icon"
|
||||
[toggle_panel]
|
||||
definition = "default"
|
||||
|
||||
return_value_id = "ok"
|
||||
[/toggle_button]
|
||||
[grid]
|
||||
|
||||
[row]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
|
||||
border = "left"
|
||||
border_size = 3
|
||||
|
||||
[image]
|
||||
id = "icon"
|
||||
definition = "default"
|
||||
[/image]
|
||||
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
|
||||
border = "right"
|
||||
border_size = 8
|
||||
|
||||
[label]
|
||||
id = "name"
|
||||
definition = "default"
|
||||
[/label]
|
||||
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
||||
[/grid]
|
||||
|
||||
[/toggle_panel]
|
||||
|
||||
[/column]
|
||||
|
||||
|
||||
[/row]
|
||||
|
||||
[/list_definition]
|
||||
|
|
|
@ -77,11 +77,15 @@ void tcampaign_selection::pre_show(CVideo& /*video*/, twindow& window)
|
|||
|
||||
/*** Add list item ***/
|
||||
string_map list_item;
|
||||
std::map<std::string, string_map> list_item_item;
|
||||
|
||||
list_item.insert(std::make_pair("icon", c["icon"]));
|
||||
list_item.insert(std::make_pair("label", c["name"]));
|
||||
list_item["label"] = c["icon"];
|
||||
list_item_item.insert(std::make_pair("icon", list_item));
|
||||
|
||||
list->add_row(list_item);
|
||||
list_item["label"] = c["name"];
|
||||
list_item_item.insert(std::make_pair("name", list_item));
|
||||
|
||||
list->add_row(list_item_item);
|
||||
|
||||
/*** Add detail item ***/
|
||||
string_map detail_item;
|
||||
|
|
Loading…
Add table
Reference in a new issue