blob: c0644c7fc138b531a3fd499d6f17d21e81f3628c (
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
29
|
#include "modinfodialogtab.h"
class CategoryFactory;
class CategoriesTab : public ModInfoDialogTab
{
public:
CategoriesTab(QWidget* parent, Ui::ModInfoDialog* ui);
void clear() override;
void setMod(ModInfo::Ptr mod, MOShared::FilesOrigin* origin) override;
void update() override;
private:
Ui::ModInfoDialog* ui;
ModInfo::Ptr m_mod;
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);
};
|