Add dummy remove row function for the listbox.
No time to implement the function yet, but when I have time I'd like the function to be used already.
This commit is contained in:
parent
a44ebce1e9
commit
0e777013ce
2 changed files with 17 additions and 0 deletions
|
@ -93,6 +93,15 @@ void tlistbox::add_row(
|
|||
add_linked_size_widgets(*window, grid.begin(), grid.end());
|
||||
}
|
||||
|
||||
void tlistbox::remove_row(const unsigned row)
|
||||
{
|
||||
if(row >= get_item_count()) {
|
||||
return;
|
||||
}
|
||||
|
||||
/** @todo implement. */
|
||||
}
|
||||
|
||||
unsigned tlistbox::get_item_count() const
|
||||
{
|
||||
assert(generator_);
|
||||
|
|
|
@ -72,6 +72,14 @@ public:
|
|||
void add_row(const std::map<std::string /* widget id */,
|
||||
string_map>& data);
|
||||
|
||||
/**
|
||||
* Removes a row in the listbox.
|
||||
*
|
||||
* @param row The row to remove, when not in
|
||||
* range the function is ignored.
|
||||
*/
|
||||
void remove_row(const unsigned row);
|
||||
|
||||
/** Returns the number of items in the listbox. */
|
||||
unsigned get_item_count() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue