blob: 76426a5d2dec6b342d028e12b966674e51b548f4 (
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
27
|
#include "modinfodialogtab.h"
class CategoryFactory;
class CategoriesTab : public ModInfoDialogTab
{
public:
CategoriesTab(
OrganizerCore& oc, PluginContainer& plugin,
QWidget* parent, Ui::ModInfoDialog* ui);
void clear() override;
void update() 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);
};
|