HaikuDepot: Make categories also accessible as List in Model
This commit is contained in:
@@ -38,6 +38,13 @@ Model::Model()
|
|||||||
BitmapRef(),
|
BitmapRef(),
|
||||||
B_TRANSLATE("Command line"), "command-line"), true)
|
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
|
const CategoryRef& CategoryCommandLine() const
|
||||||
{ return fCategoryCommandLine; }
|
{ return fCategoryCommandLine; }
|
||||||
|
|
||||||
|
const CategoryList& Categories() const
|
||||||
|
{ return fCategories; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BString fSearchTerms;
|
BString fSearchTerms;
|
||||||
|
|
||||||
@@ -44,6 +47,8 @@ private:
|
|||||||
CategoryRef fCategoryDevelopment;
|
CategoryRef fCategoryDevelopment;
|
||||||
CategoryRef fCategoryCommandLine;
|
CategoryRef fCategoryCommandLine;
|
||||||
// TODO: More categories
|
// TODO: More categories
|
||||||
|
|
||||||
|
CategoryList fCategories;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user