-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskilldialog.h
50 lines (35 loc) · 1.03 KB
/
skilldialog.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef SKILLDIALOG_H
#define SKILLDIALOG_H
#include "shared.h"
#include "skilltalentorperk.h"
#include <QDialog>
#include <QPushButton>
namespace Ui {
class SkillDialog;
}
class SkillDialog : public QDialog
{
Q_OBJECT
public:
explicit SkillDialog(QWidget *parent = nullptr);
~SkillDialog();
shared_ptr<SkillTalentOrPerk> skilltalentorperk() { return _skilltalentorperk; }
SkillDialog& skilltalentorperk(shared_ptr<SkillTalentOrPerk> s);
private:
Ui::SkillDialog *ui;
static const bool WordWrap = true;
QLabel* _description;
QLabel* _points;
QPushButton* _ok;
bool _skipUpdate = false;
shared_ptr<SkillTalentOrPerk> _skilltalentorperk = nullptr;
QLabel* createLabel(QVBoxLayout* parent, QString text, bool wordWrap);
void updateForm();
public slots:
void currentIndexChanged(int) { updateForm(); }
void pickOne(int);
void pickType(int);
void stateChanged(int state);
void textChanged(QString);
};
#endif // SKILLDIALOG_H