8 #include <ff7tkwidgets_export.h>
29 void setMateria(quint8 materia_id = 0, qint32 materia_ap = 0);
30 void setAP(qint32 current_ap = 0);
31 void setStarsSize(
int);
35 bool isEditable(
void);
36 void setEditable(
bool);
42 void setShowPlaceHolderMateria(
bool showPlaceHolders);
44 void changeEvent(QEvent *e);
46 void setEditableMateriaCombo(
bool enabled);
50 QHBoxLayout *makeNameLayout();
51 QWidget *makeStarWidget();
52 QWidget *makeSkillWidget();
53 QWidget *makeStatWidget();
59 void updateESkillList();
62 QLabel *lbl_max_ap =
nullptr;
63 QHBoxLayout *Final =
nullptr;
64 QComboBox *combo_type =
nullptr;
65 QComboBox *combo_materia =
nullptr;
66 QPushButton *btn_paste_materia =
nullptr;
67 QPushButton *btn_rm_materia =
nullptr;
68 QPushButton *btn_copy_materia =
nullptr;
69 QPushButton *btn_eskill_master =
nullptr;
70 QPushButton *btn_eskill_clear =
nullptr;
71 QSpinBox *sb_ap =
nullptr;
72 QFrame *frm_ap =
nullptr;
73 QFrame *frm_skill_status =
nullptr;
74 QList<QPushButton *> btn_stars = {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr};
75 QFrame *box_stars =
nullptr;
76 QGroupBox *box_skills =
nullptr;
77 QWidget *eskill_group =
nullptr;
78 QListWidget *eskill_list =
nullptr;
79 QWidget *eskillButtons =
nullptr;
80 QListWidget *list_skills =
nullptr;
81 QGroupBox *box_stats =
nullptr;
82 QGroupBox *box_status_effects =
nullptr;
83 QLabel *lbl_stats =
nullptr;
84 QListWidget *list_status =
nullptr;
85 QFrame *frm_ap_stars =
nullptr;
86 QLabel *lbl_materiaIcon =
nullptr;
87 QLabel *lbl_materiaName =
nullptr;
95 bool _showPlaceHolders;
97 inline static const auto _comboStyle = QStringLiteral(
"QComboBox { combobox-popup: 0;}");
98 inline static const auto _buttonStyle = QStringLiteral(
"QPushButton:enabled{background-color: rgba(0,0,0,0);border:0px solid;} QPushButton:hover{background-color: palette(highlight);}");
99 inline static const auto _buttonHighlightStyle_addition = QStringLiteral(
" QPushButton:hover{background-color: palette(highlight);}");
100 inline static const auto _itemStyle = QStringLiteral(
"::indicator:unchecked {image: url(:/materia/command_star_empty);}"
101 "::indicator:checked{image: url(:/materia/command_star_full);}"
102 "::item{border: 1px solid transparent;}"
106 void typeChanged(
int new_type);
107 void materia_changed(
const QString &new_name);
109 QPushButton *newStyledButton(
const QIcon &icon = QIcon(), QKeySequence shortcut = QKeySequence(),
const QString &toolip = QString(), QWidget *parent =
nullptr);
111 void apChanged(qint32);
112 void idChanged(qint8);