HaikuDepot: Make categories also accessible as List in Model
This commit is contained in:
parent
f75ec10dc6
commit
633ed4c48e
@ -38,6 +38,13 @@ Model::Model()
|
||||
BitmapRef(),
|
||||
B_TRANSLATE("Command line"), "command-line"), true)
|
||||
{
|
||||
// Don't forget to add new categories to this list:
|
||||
fCategories.Add(fCategoryAudio);
|
||||
fCategories.Add(fCategoryVideo);
|
||||
fCategories.Add(fCategoryGraphics);
|
||||
fCategories.Add(fCategoryProductivity);
|
||||
fCategories.Add(fCategoryDevelopment);
|
||||
fCategories.Add(fCategoryCommandLine);
|
||||
}
|
||||
|
||||
|
||||
|
@ -32,6 +32,9 @@ public:
|
||||
const CategoryRef& CategoryCommandLine() const
|
||||
{ return fCategoryCommandLine; }
|
||||
|
||||
const CategoryList& Categories() const
|
||||
{ return fCategories; }
|
||||
|
||||
private:
|
||||
BString fSearchTerms;
|
||||
|
||||
@ -44,6 +47,8 @@ private:
|
||||
CategoryRef fCategoryDevelopment;
|
||||
CategoryRef fCategoryCommandLine;
|
||||
// TODO: More categories
|
||||
|
||||
CategoryList fCategories;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user