ff7tk
0.02
Toolkit for making FF7 Tools
|
#include <MateriaEditor.h>
Public Slots | |
void | setEditableMateriaCombo (bool enabled) |
Signals | |
void | ap_changed (qint32) |
void | id_changed (qint8) |
Public Member Functions | |
MateriaEditor (qreal Scale=1, QWidget *parent=0) | |
MateriaEditor (quint8 materia_id=0, qint32 ap=0, qreal Scale=1, QWidget *parent=0) | |
void | setMateria (quint8 materia_id=0, qint32 materia_ap=0) |
void | setAP (qint32 current_ap=0) |
void | setStarsSize (int) |
qint32 | ap (void) |
qint32 | MaxAP (void) |
qint8 | id (void) |
bool | isEditable (void) |
void | setEditable (bool) |
void | setHoverStyle (QString hoverColor) |
Private Slots | |
void | btn_star1_clicked () |
void | btn_star2_clicked () |
void | btn_star3_clicked () |
void | btn_star4_clicked () |
void | btn_star5_clicked () |
void | type_changed (int new_type) |
void | materia_changed (QString new_name) |
void | remove_materia (void) |
void | copy_materia (void) |
void | paste_materia (void) |
void | sb_ap_changed (int) |
void | eskill_list_clicked (QModelIndex) |
void | btn_master_eskill_clicked () |
void | btn_clear_eskill_clicked () |
void | editMode (void) |
Private Member Functions | |
void | init_display (void) |
void | init_normal_mode (void) |
void | init_compact_mode (void) |
void | init_data (void) |
void | init_connections (void) |
void | setStars (void) |
void | setName (void) |
void | setStats (void) |
void | setSkills (void) |
void | setLevel (void) |
Private Attributes | |
QLabel * | lbl_max_ap |
QLabel * | lbl_slash |
QHBoxLayout * | Final |
QComboBox * | combo_type |
QComboBox * | combo_materia |
QPushButton * | btn_rm_materia |
QPushButton * | btn_copy_materia |
QPushButton * | btn_paste_materia |
QSpinBox * | sb_ap |
QFrame * | frm_name_type |
QFrame * | frm_ap |
QFrame * | frm_skill_status |
QPushButton * | btn_star1 |
QPushButton * | btn_star2 |
QPushButton * | btn_star3 |
QPushButton * | btn_star4 |
QPushButton * | btn_star5 |
QFrame * | box_stars |
QGroupBox * | box_skills |
QGroupBox * | eskill_group |
QListWidget * | eskill_list |
QPushButton * | btn_clear_eskills |
QPushButton * | btn_master_eskills |
QListWidget * | list_skills |
QGroupBox * | box_stats |
QGroupBox * | box_status_effects |
QLabel * | lbl_stats |
QListWidget * | list_status |
FF7Materia * | data |
QSpacerItem * | v_spacer |
QFrame * | frm_ap_stars |
QGridLayout * | ap_stars_layout |
quint8 | _id |
qint8 | buffer_id |
qint32 | buffer_ap |
qint8 | _level |
qint32 | _current_ap |
QLabel * | lbl_materiaIcon |
QLabel * | lbl_materiaName |
bool | editable |
qreal | scale |
Definition at line 29 of file MateriaEditor.h.
MateriaEditor::MateriaEditor | ( | qreal | Scale = 1 , |
QWidget * | parent = 0 |
||
) |
Definition at line 18 of file MateriaEditor.cpp.
References FF7Materia::EmptyId, init_connections(), init_data(), init_display(), FF7Materia::MaxMateriaAp, scale, and setMateria().
MateriaEditor::MateriaEditor | ( | quint8 | materia_id = 0 , |
qint32 | ap = 0 , |
||
qreal | Scale = 1 , |
||
QWidget * | parent = 0 |
||
) |
Definition at line 26 of file MateriaEditor.cpp.
References init_connections(), init_data(), init_display(), scale, and setMateria().
qint32 MateriaEditor::ap | ( | void | ) |
|
signal |
Referenced by eskill_list_clicked(), and setAP().
|
privateslot |
Definition at line 540 of file MateriaEditor.cpp.
References _current_ap, and setAP().
Referenced by init_connections().
|
privateslot |
Definition at line 541 of file MateriaEditor.cpp.
References _current_ap, FF7Materia::MaxMateriaAp, and setAP().
Referenced by init_connections().
|
privateslot |
Definition at line 490 of file MateriaEditor.cpp.
References _id, FF7Materia::ap(), data, setAP(), and setLevel().
Referenced by init_connections().
|
privateslot |
Definition at line 491 of file MateriaEditor.cpp.
References _id, FF7Materia::ap(), data, setAP(), and setLevel().
Referenced by init_connections().
|
privateslot |
Definition at line 492 of file MateriaEditor.cpp.
References _id, FF7Materia::ap(), data, setAP(), and setLevel().
Referenced by init_connections().
|
privateslot |
Definition at line 493 of file MateriaEditor.cpp.
References _id, FF7Materia::ap(), data, setAP(), and setLevel().
Referenced by init_connections().
|
privateslot |
Definition at line 494 of file MateriaEditor.cpp.
References FF7Materia::MaxMateriaAp, setAP(), and setLevel().
Referenced by init_connections().
|
privateslot |
Definition at line 538 of file MateriaEditor.cpp.
References _current_ap, _id, buffer_ap, and buffer_id.
Referenced by init_connections().
|
privateslot |
Definition at line 587 of file MateriaEditor.cpp.
References _id, btn_clear_eskills, btn_master_eskills, btn_paste_materia, btn_rm_materia, btn_star1, btn_star2, btn_star3, btn_star4, btn_star5, combo_materia, combo_type, editable, FF7Materia::EmptyId, eskill_list, lbl_materiaIcon, lbl_materiaName, and sb_ap.
Referenced by setEditable().
|
privateslot |
Definition at line 521 of file MateriaEditor.cpp.
References _current_ap, ap_changed(), and eskill_list.
Referenced by init_connections().
qint8 MateriaEditor::id | ( | void | ) |
Definition at line 518 of file MateriaEditor.cpp.
References _id.
|
signal |
Referenced by setMateria().
|
private |
|
private |
Definition at line 234 of file MateriaEditor.cpp.
References btn_clear_eskill_clicked(), btn_clear_eskills, btn_copy_materia, btn_master_eskill_clicked(), btn_master_eskills, btn_paste_materia, btn_rm_materia, btn_star1, btn_star1_clicked(), btn_star2, btn_star2_clicked(), btn_star3, btn_star3_clicked(), btn_star4, btn_star4_clicked(), btn_star5, btn_star5_clicked(), combo_materia, combo_type, copy_materia(), eskill_list, eskill_list_clicked(), materia_changed(), paste_materia(), remove_materia(), sb_ap, sb_ap_changed(), and type_changed().
Referenced by MateriaEditor().
|
private |
Definition at line 251 of file MateriaEditor.cpp.
References _current_ap, _id, buffer_ap, buffer_id, combo_materia, combo_type, data, editable, FF7Materia::enemySkill(), eskill_list, FF7Materia::icon(), FF7Materia::iconAllMateria(), lbl_materiaIcon, lbl_materiaName, FF7Materia::MasterCommand, FF7Materia::MasterMagic, FF7Materia::MasterSummon, FF7Materia::name(), scale, FF7Materia::StealAsWell, and FF7Materia::Underwater.
Referenced by MateriaEditor().
|
private |
Definition at line 34 of file MateriaEditor.cpp.
References ap_stars_layout, box_skills, box_stars, box_stats, box_status_effects, btn_clear_eskills, btn_copy_materia, btn_master_eskills, btn_paste_materia, btn_rm_materia, btn_star1, btn_star2, btn_star3, btn_star4, btn_star5, combo_materia, combo_type, eskill_group, eskill_list, Final, frm_ap, frm_ap_stars, frm_name_type, frm_skill_status, lbl_materiaIcon, lbl_materiaName, lbl_max_ap, lbl_slash, lbl_stats, list_skills, list_status, sb_ap, scale, and v_spacer.
Referenced by MateriaEditor().
|
private |
bool MateriaEditor::isEditable | ( | void | ) |
Definition at line 581 of file MateriaEditor.cpp.
References editable.
|
privateslot |
Definition at line 496 of file MateriaEditor.cpp.
References _current_ap, _id, data, FF7Materia::name(), and setMateria().
Referenced by init_connections().
qint32 MateriaEditor::MaxAP | ( | void | ) |
Definition at line 528 of file MateriaEditor.cpp.
References _id, FF7Materia::ap(), data, FF7Materia::EnemySkill, FF7Materia::levels(), FF7Materia::MasterCommand, FF7Materia::MasterMagic, FF7Materia::MasterSummon, FF7Materia::MaxMateriaAp, and FF7Materia::Underwater.
Referenced by setAP().
|
privateslot |
Definition at line 539 of file MateriaEditor.cpp.
References buffer_ap, buffer_id, and setMateria().
Referenced by init_connections().
|
privateslot |
Definition at line 537 of file MateriaEditor.cpp.
References FF7Materia::EmptyId, FF7Materia::MaxMateriaAp, and setMateria().
Referenced by init_connections().
|
privateslot |
Definition at line 519 of file MateriaEditor.cpp.
References setAP().
Referenced by init_connections().
void MateriaEditor::setAP | ( | qint32 | current_ap = 0 | ) |
Definition at line 317 of file MateriaEditor.cpp.
References _current_ap, _id, ap(), FF7Materia::ap(), ap_changed(), data, FF7Materia::EmptyId, FF7Materia::EnemySkill, eskill_list, frm_ap_stars, lbl_max_ap, FF7Materia::levels(), FF7Materia::MasterCommand, FF7Materia::MasterMagic, FF7Materia::MasterSummon, MaxAP(), FF7Materia::MaxMateriaAp, sb_ap, setLevel(), and FF7Materia::Underwater.
Referenced by btn_clear_eskill_clicked(), btn_master_eskill_clicked(), btn_star1_clicked(), btn_star2_clicked(), btn_star3_clicked(), btn_star4_clicked(), btn_star5_clicked(), sb_ap_changed(), and setMateria().
void MateriaEditor::setEditable | ( | bool | edit | ) |
Definition at line 582 of file MateriaEditor.cpp.
References editable, and editMode().
Referenced by MainWindow::on_cb_materia_editor_setEditable_toggled().
|
slot |
Definition at line 634 of file MateriaEditor.cpp.
References combo_materia.
Referenced by MainWindow::on_cbEditableMateriaCombos_clicked(), and CharEditor::setEditableComboBoxes().
void MateriaEditor::setHoverStyle | ( | QString | hoverColor | ) |
Definition at line 622 of file MateriaEditor.cpp.
References btn_copy_materia, btn_paste_materia, btn_rm_materia, btn_star1, btn_star2, btn_star3, btn_star4, and btn_star5.
Referenced by CharEditor::setMateriaHoverStyle().
|
private |
Definition at line 401 of file MateriaEditor.cpp.
References _current_ap, _id, _level, FF7Materia::ap(), data, FF7Materia::EmptyId, FF7Materia::EnemySkill, FF7Materia::levels(), FF7Materia::MasterCommand, FF7Materia::MasterMagic, FF7Materia::MasterSummon, setSkills(), setStars(), and FF7Materia::Underwater.
Referenced by btn_star1_clicked(), btn_star2_clicked(), btn_star3_clicked(), btn_star4_clicked(), btn_star5_clicked(), and setAP().
void MateriaEditor::setMateria | ( | quint8 | materia_id = 0 , |
qint32 | materia_ap = 0 |
||
) |
Definition at line 290 of file MateriaEditor.cpp.
References _current_ap, _id, box_stats, box_status_effects, FF7Materia::EmptyId, id_changed(), FF7Materia::MaxMateriaAp, sb_ap, setAP(), setName(), and setStats().
Referenced by materia_changed(), MateriaEditor(), CharEditor::mButtonPress(), paste_materia(), and remove_materia().
|
private |
Definition at line 358 of file MateriaEditor.cpp.
References _id, combo_materia, combo_type, data, FF7Materia::EmptyId, FF7Materia::image(), lbl_materiaIcon, lbl_materiaName, FF7Materia::name(), FF7Materia::type(), and FF7Materia::Unknown.
Referenced by setMateria().
|
private |
Definition at line 450 of file MateriaEditor.cpp.
References _id, _level, box_skills, data, FF7Materia::EmptyId, FF7Materia::EnemySkill, eskill_group, frm_skill_status, list_skills, FF7Materia::skills(), and v_spacer.
Referenced by setLevel().
|
private |
Definition at line 411 of file MateriaEditor.cpp.
References _id, _level, box_stars, btn_star1, btn_star2, btn_star3, btn_star4, btn_star5, data, FF7Materia::EmptyId, FF7Materia::EnemySkill, FF7Materia::imageEmptyStar(), FF7Materia::imageFullStar(), FF7Materia::levels(), FF7Materia::MasterCommand, FF7Materia::MasterMagic, FF7Materia::MasterSummon, FF7Materia::type(), and FF7Materia::Underwater.
Referenced by setLevel(), and setStarsSize().
void MateriaEditor::setStarsSize | ( | int | size | ) |
Definition at line 543 of file MateriaEditor.cpp.
References ap_stars_layout, box_stars, btn_star1, btn_star2, btn_star3, btn_star4, btn_star5, frm_ap, frm_ap_stars, scale, and setStars().
Referenced by CharEditor::init_display(), and MainWindow::on_sb_materia_editor_setStarSize_valueChanged().
|
private |
Definition at line 373 of file MateriaEditor.cpp.
References _id, box_skills, box_stats, box_status_effects, data, FF7Materia::element(), FF7Materia::EmptyId, lbl_stats, list_status, FF7Materia::statString(), and FF7Materia::status().
Referenced by setMateria().
|
privateslot |
Definition at line 504 of file MateriaEditor.cpp.
References _id, combo_materia, data, FF7Materia::EmptyId, FF7Materia::icon(), FF7Materia::name(), and FF7Materia::type().
Referenced by init_connections().
|
private |
Definition at line 97 of file MateriaEditor.h.
Referenced by ap(), btn_clear_eskill_clicked(), btn_master_eskill_clicked(), copy_materia(), eskill_list_clicked(), init_data(), materia_changed(), setAP(), setLevel(), and setMateria().
|
private |
Definition at line 93 of file MateriaEditor.h.
Referenced by btn_star1_clicked(), btn_star2_clicked(), btn_star3_clicked(), btn_star4_clicked(), copy_materia(), editMode(), id(), init_data(), materia_changed(), MaxAP(), setAP(), setLevel(), setMateria(), setName(), setSkills(), setStars(), setStats(), and type_changed().
|
private |
Definition at line 96 of file MateriaEditor.h.
Referenced by setLevel(), setSkills(), and setStars().
|
private |
Definition at line 91 of file MateriaEditor.h.
Referenced by init_display(), and setStarsSize().
|
private |
Definition at line 78 of file MateriaEditor.h.
Referenced by init_display(), setSkills(), and setStats().
|
private |
Definition at line 77 of file MateriaEditor.h.
Referenced by init_display(), setStars(), and setStarsSize().
|
private |
Definition at line 84 of file MateriaEditor.h.
Referenced by init_display(), setMateria(), and setStats().
|
private |
Definition at line 85 of file MateriaEditor.h.
Referenced by init_display(), setMateria(), and setStats().
|
private |
Definition at line 81 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), and init_display().
|
private |
Definition at line 66 of file MateriaEditor.h.
Referenced by init_connections(), init_display(), and setHoverStyle().
|
private |
Definition at line 82 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), and init_display().
|
private |
Definition at line 67 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), and setHoverStyle().
|
private |
Definition at line 65 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), and setHoverStyle().
|
private |
Definition at line 72 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setHoverStyle(), setStars(), and setStarsSize().
|
private |
Definition at line 73 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setHoverStyle(), setStars(), and setStarsSize().
|
private |
Definition at line 74 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setHoverStyle(), setStars(), and setStarsSize().
|
private |
Definition at line 75 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setHoverStyle(), setStars(), and setStarsSize().
|
private |
Definition at line 76 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setHoverStyle(), setStars(), and setStarsSize().
|
private |
Definition at line 95 of file MateriaEditor.h.
Referenced by copy_materia(), init_data(), and paste_materia().
|
private |
Definition at line 94 of file MateriaEditor.h.
Referenced by copy_materia(), init_data(), and paste_materia().
|
private |
Definition at line 64 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_data(), init_display(), setEditableMateriaCombo(), setName(), and type_changed().
|
private |
Definition at line 63 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_data(), init_display(), and setName().
|
private |
Definition at line 88 of file MateriaEditor.h.
Referenced by btn_star1_clicked(), btn_star2_clicked(), btn_star3_clicked(), btn_star4_clicked(), init_data(), materia_changed(), MaxAP(), setAP(), setLevel(), setName(), setSkills(), setStars(), setStats(), and type_changed().
|
private |
Definition at line 100 of file MateriaEditor.h.
Referenced by editMode(), init_data(), isEditable(), and setEditable().
|
private |
Definition at line 79 of file MateriaEditor.h.
Referenced by init_display(), and setSkills().
|
private |
Definition at line 80 of file MateriaEditor.h.
Referenced by editMode(), eskill_list_clicked(), init_connections(), init_data(), init_display(), and setAP().
|
private |
Definition at line 62 of file MateriaEditor.h.
Referenced by init_display().
|
private |
Definition at line 70 of file MateriaEditor.h.
Referenced by init_display(), and setStarsSize().
|
private |
Definition at line 90 of file MateriaEditor.h.
Referenced by init_display(), setAP(), and setStarsSize().
|
private |
Definition at line 69 of file MateriaEditor.h.
Referenced by init_display().
|
private |
Definition at line 71 of file MateriaEditor.h.
Referenced by init_display(), and setSkills().
|
private |
Definition at line 98 of file MateriaEditor.h.
Referenced by editMode(), init_data(), init_display(), and setName().
|
private |
Definition at line 99 of file MateriaEditor.h.
Referenced by editMode(), init_data(), init_display(), and setName().
|
private |
Definition at line 60 of file MateriaEditor.h.
Referenced by init_display(), and setAP().
|
private |
Definition at line 61 of file MateriaEditor.h.
Referenced by init_display().
|
private |
Definition at line 86 of file MateriaEditor.h.
Referenced by init_display(), and setStats().
|
private |
Definition at line 83 of file MateriaEditor.h.
Referenced by init_display(), and setSkills().
|
private |
Definition at line 87 of file MateriaEditor.h.
Referenced by init_display(), and setStats().
|
private |
Definition at line 68 of file MateriaEditor.h.
Referenced by editMode(), init_connections(), init_display(), setAP(), and setMateria().
|
private |
Definition at line 101 of file MateriaEditor.h.
Referenced by init_data(), init_display(), MateriaEditor(), and setStarsSize().
|
private |
Definition at line 89 of file MateriaEditor.h.
Referenced by init_display(), and setSkills().