diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-30 03:21:23 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-30 03:21:23 -0500 |
| commit | a38d1723bffcd20bc7011c0fe635636b936aa78b (patch) | |
| tree | 55222bd5bafb7492d713351eb08b2aadb8f43f47 /src/categories.h | |
| parent | f463c5494362a0fa75c581e59192e2640ec10f7e (diff) | |
removed redundant categories now that there's a not filter
disabled collapsing for filter, there's already a button to hide it
Diffstat (limited to 'src/categories.h')
| -rw-r--r-- | src/categories.h | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/src/categories.h b/src/categories.h index 2041ce1f..296e7711 100644 --- a/src/categories.h +++ b/src/categories.h @@ -37,25 +37,20 @@ class CategoryFactory { friend class CategoriesDialog;
public:
-
- static const int CATEGORY_NONE = 0;
-
- static const int CATEGORY_SPECIAL_FIRST = 10000;
- static const int CATEGORY_SPECIAL_CHECKED = CATEGORY_SPECIAL_FIRST;
- static const int CATEGORY_SPECIAL_UNCHECKED = 10001;
- static const int CATEGORY_SPECIAL_UPDATEAVAILABLE = 10002;
- static const int CATEGORY_SPECIAL_NOCATEGORY = 10003;
- static const int CATEGORY_SPECIAL_CONFLICT = 10004;
- static const int CATEGORY_SPECIAL_NOTENDORSED = 10005;
- static const int CATEGORY_SPECIAL_BACKUP = 10006;
- static const int CATEGORY_SPECIAL_MANAGED = 10007;
- static const int CATEGORY_SPECIAL_UNMANAGED = 10008;
- static const int CATEGORY_SPECIAL_NOGAMEDATA = 10009;
- static const int CATEGORY_SPECIAL_NONEXUSID = 10010;
-
+ enum SpecialCategories
+ {
+ Checked = 10000,
+ UpdateAvailable,
+ HasNoCategory,
+ Conflict,
+ NotEndorsed,
+ Backup,
+ Managed,
+ NoGameData,
+ NoNexusID
+ };
public:
-
struct Category {
Category(int sortValue, int id, const QString &name, const std::vector<int> &nexusIDs, int parentID)
: m_SortValue(sortValue), m_ID(id), m_Name(name), m_HasChildren(false),
@@ -144,7 +139,7 @@ public: * @return QString name of the category
**/
QString getCategoryName(unsigned int index) const;
- QString getSpecialCategoryName(int type) const;
+ QString getSpecialCategoryName(SpecialCategories type) const;
QString getCategoryNameByID(int id) const;
/**
|
