23#ifndef ff7tkwidgets_export_h
24 #include <ff7tkwidgets_export.h>
42 void setMateria(quint8 materia_id = 0, qint32 materia_ap = 0);
43 void setAP(qint32 current_ap = 0);
44 void setStarsSize(
int);
48 bool isEditable(
void);
49 void setEditable(
bool);
52 void changeEvent(QEvent *e);
54 void setEditableMateriaCombo(
bool enabled);
58 QHBoxLayout *makeNameLayout();
59 QWidget *makeStarWidget();
60 QWidget *makeSkillWidget();
61 QWidget *makeStatWidget();
67 void updateESkillList();
69 QLabel *lbl_max_ap =
nullptr;
70 QHBoxLayout *Final =
nullptr;
71 QComboBox *combo_type =
nullptr;
72 QComboBox *combo_materia =
nullptr;
73 QPushButton *btn_paste_materia =
nullptr;
74 QPushButton *btn_rm_materia =
nullptr;
75 QPushButton *btn_copy_materia =
nullptr;
76 QPushButton *btn_eskill_master =
nullptr;
77 QPushButton *btn_eskill_clear =
nullptr;
78 QSpinBox *sb_ap =
nullptr;
79 QFrame *frm_ap =
nullptr;
80 QFrame *frm_skill_status =
nullptr;
81 QList<QPushButton *> btn_stars = {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr};
82 QFrame *box_stars =
nullptr;
83 QGroupBox *box_skills =
nullptr;
84 QWidget *eskill_group =
nullptr;
85 QListWidget *eskill_list =
nullptr;
86 QWidget *eskillButtons =
nullptr;
87 QListWidget *list_skills =
nullptr;
88 QGroupBox *box_stats =
nullptr;
89 QGroupBox *box_status_effects =
nullptr;
90 QLabel *lbl_stats =
nullptr;
91 QListWidget *list_status =
nullptr;
93 QSpacerItem *v_spacer =
nullptr;
94 QFrame *frm_ap_stars =
nullptr;
95 QLabel *lbl_materiaIcon =
nullptr;
96 QLabel *lbl_materiaName =
nullptr;
103 QString _highlightColor;
106 inline static const auto _buttonStyle = QStringLiteral(
"QPushButton:enabled{background-color: rgba(0,0,0,0);border:0px solid;} QPushButton:hover{background-color:rgba(%1);}");
107 inline static const auto _itemStyle = QStringLiteral(
"::item { padding-left: 0px; padding-top: 1px; padding-bottom: 1px;}"
108 "::indicator { width: %2px; height: %2px; }"
109 "::indicator:unchecked {image: url(:/materia/command_star_empty);}"
110 "::indicator:checked{image: url(:/materia/command_star_full);}"
111 "::item:hover { background-color: rgba(%1); }"
113 "::item:!focus { border: 1px solid transparent;}"
114 "::item:focus { background-color: rgba(%1); }");
117 void typeChanged(
int new_type);
118 void materia_changed(
const QString &new_name);
120 QPushButton *newStyledButton(
const QIcon &icon = QIcon(), QKeySequence shortcut = QKeySequence(),
const QString &toolip = QString(), QWidget *parent =
nullptr);
Definition: FF7Materia.h:26
@ MaxMateriaAp
Definition: FF7Materia.h:47
@ EmptyId
Definition: FF7Materia.h:46
Definition: MateriaEditor.h:38