30 #include <sigc++/signal.h> 42 Item() : m_checked(true), m_id(-1) {}
44 Item(
const Item& i) : m_id(i.m_id), m_desc(i.m_desc), m_checked(i.m_checked) {}
49 virtual void set_checked(
bool checked) { m_checked = checked; }
87 virtual bool operator()(
Item& item) = 0;
bool m_checked
Whether checked/ticked or not.
ItemContainer::iterator ItemIter
Item(const Item &i)
Creates a copy of this item based on the passed item.
Comparator used for comparing Items by id.
std::vector< Item * > ItemContainer
virtual void set_checked(bool checked)
int operator()(Item *i1, Item *i2)
Comparator used for sorting Items by name.
std::string m_desc
The item's description.
sigc::slot< bool, Item & > SlotForeachItem
friend std::ostream & operator<<(std::ostream &os, const Item &i)
std::string get_description()
int operator()(Item *i1, Item *i2)
void set_description(const std::string description)
Functor for processing items.
ItemList::iterator ItemListIter
std::list< Item > ItemList