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