blob: b390146cff6bf3095fdffdda36521537e13cfcd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "modinfodialogtab.h"
class CategoryFactory;
class CategoriesTab : public ModInfoDialogTab
{
public:
CategoriesTab(ModInfoDialogTabContext cx);
void clear() override;
void update() override;
bool canHandleSeparators() const override;
bool usesOriginFiles() const override;
private:
void add(const CategoryFactory* factory, const std::set<int>& enabledCategories,
QTreeWidgetItem* root, int rootLevel);
void updatePrimary();
void addChecked(QTreeWidgetItem* tree);
void save(QTreeWidgetItem* currentNode);
void onCategoryChanged(QTreeWidgetItem* item, int col);
void onPrimaryChanged(int index);
};
|