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:
Mark de Wever 2009-07-05 18:08:21 +00:00
parent a44ebce1e9
commit 0e777013ce
2 changed files with 17 additions and 0 deletions

View file

@ -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_);

View file

@ -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;