Revision c393c256
Added by david.sorber 8 months ago
| src/Catalog.h | ||
|---|---|---|
|
{
|
||
|
public:
|
||
|
|
||
|
static inline CatalogItem INVALID_ITEM{"INVALID", "INVALID"};
|
||
|
|
||
|
Catalog();
|
||
|
|
||
|
~Catalog();
|
||
| ... | ... | |
|
return m_catalog.end();
|
||
|
}
|
||
|
|
||
|
inline CatalogItem& getItemById(int id)
|
||
|
{
|
||
|
for (auto& iter : m_catalog)
|
||
|
{
|
||
|
if (iter.getId() == id)
|
||
|
{
|
||
|
return iter;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return INVALID_ITEM;
|
||
|
}
|
||
|
|
||
|
void setAllVisible();
|
||
|
|
||
|
void filter(const std::string& criteria);
|
||
Revamp display widgets. Use a listbox on the left panel and a multiline
text box in the main right panel. Bump version to 0.2.0.