ff7tk  0.02
Toolkit for making FF7 Tools
MateriaEditor Class Reference

#include <MateriaEditor.h>

Inheritance diagram for MateriaEditor:

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
 
FF7Materiadata
 
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
 

Detailed Description

Definition at line 29 of file MateriaEditor.h.

Constructor & Destructor Documentation

MateriaEditor::MateriaEditor ( qreal  Scale = 1,
QWidget *  parent = 0 
)
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().

Member Function Documentation

qint32 MateriaEditor::ap ( void  )

Definition at line 517 of file MateriaEditor.cpp.

References _current_ap.

Referenced by setAP().

void MateriaEditor::ap_changed ( qint32  )
signal

Referenced by eskill_list_clicked(), and setAP().

void MateriaEditor::btn_clear_eskill_clicked ( )
privateslot

Definition at line 540 of file MateriaEditor.cpp.

References _current_ap, and setAP().

Referenced by init_connections().

void MateriaEditor::btn_master_eskill_clicked ( )
privateslot

Definition at line 541 of file MateriaEditor.cpp.

References _current_ap, FF7Materia::MaxMateriaAp, and setAP().

Referenced by init_connections().

void MateriaEditor::btn_star1_clicked ( )
privateslot

Definition at line 490 of file MateriaEditor.cpp.

References _id, FF7Materia::ap(), data, setAP(), and setLevel().

Referenced by init_connections().

void MateriaEditor::btn_star2_clicked ( )
privateslot

Definition at line 491 of file MateriaEditor.cpp.

References _id, FF7Materia::ap(), data, setAP(), and setLevel().

Referenced by init_connections().

void MateriaEditor::btn_star3_clicked ( )
privateslot

Definition at line 492 of file MateriaEditor.cpp.

References _id, FF7Materia::ap(), data, setAP(), and setLevel().

Referenced by init_connections().

void MateriaEditor::btn_star4_clicked ( )
privateslot

Definition at line 493 of file MateriaEditor.cpp.

References _id, FF7Materia::ap(), data, setAP(), and setLevel().

Referenced by init_connections().

void MateriaEditor::btn_star5_clicked ( )
privateslot

Definition at line 494 of file MateriaEditor.cpp.

References FF7Materia::MaxMateriaAp, setAP(), and setLevel().

Referenced by init_connections().

void MateriaEditor::copy_materia ( void  )
privateslot

Definition at line 538 of file MateriaEditor.cpp.

References _current_ap, _id, buffer_ap, and buffer_id.

Referenced by init_connections().

void MateriaEditor::eskill_list_clicked ( QModelIndex  index)
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.

void MateriaEditor::id_changed ( qint8  )
signal

Referenced by setMateria().

void MateriaEditor::init_compact_mode ( void  )
private
void MateriaEditor::init_normal_mode ( void  )
private
bool MateriaEditor::isEditable ( void  )

Definition at line 581 of file MateriaEditor.cpp.

References editable.

void MateriaEditor::materia_changed ( QString  new_name)
privateslot

Definition at line 496 of file MateriaEditor.cpp.

References _current_ap, _id, data, FF7Materia::name(), and setMateria().

Referenced by init_connections().

void MateriaEditor::paste_materia ( void  )
privateslot

Definition at line 539 of file MateriaEditor.cpp.

References buffer_ap, buffer_id, and setMateria().

Referenced by init_connections().

void MateriaEditor::remove_materia ( void  )
privateslot

Definition at line 537 of file MateriaEditor.cpp.

References FF7Materia::EmptyId, FF7Materia::MaxMateriaAp, and setMateria().

Referenced by init_connections().

void MateriaEditor::sb_ap_changed ( int  )
privateslot

Definition at line 519 of file MateriaEditor.cpp.

References setAP().

Referenced by init_connections().

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().

void MateriaEditor::setEditableMateriaCombo ( bool  enabled)
slot
void MateriaEditor::setHoverStyle ( QString  hoverColor)
void MateriaEditor::setMateria ( quint8  materia_id = 0,
qint32  materia_ap = 0 
)
void MateriaEditor::setName ( void  )
private
void MateriaEditor::setSkills ( void  )
private
void MateriaEditor::setStats ( void  )
private
void MateriaEditor::type_changed ( int  new_type)
privateslot

Member Data Documentation

qint32 MateriaEditor::_current_ap
private
qint8 MateriaEditor::_level
private

Definition at line 96 of file MateriaEditor.h.

Referenced by setLevel(), setSkills(), and setStars().

QGridLayout* MateriaEditor::ap_stars_layout
private

Definition at line 91 of file MateriaEditor.h.

Referenced by init_display(), and setStarsSize().

QGroupBox* MateriaEditor::box_skills
private

Definition at line 78 of file MateriaEditor.h.

Referenced by init_display(), setSkills(), and setStats().

QFrame* MateriaEditor::box_stars
private

Definition at line 77 of file MateriaEditor.h.

Referenced by init_display(), setStars(), and setStarsSize().

QGroupBox* MateriaEditor::box_stats
private

Definition at line 84 of file MateriaEditor.h.

Referenced by init_display(), setMateria(), and setStats().

QGroupBox* MateriaEditor::box_status_effects
private

Definition at line 85 of file MateriaEditor.h.

Referenced by init_display(), setMateria(), and setStats().

QPushButton* MateriaEditor::btn_clear_eskills
private

Definition at line 81 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), and init_display().

QPushButton* MateriaEditor::btn_copy_materia
private

Definition at line 66 of file MateriaEditor.h.

Referenced by init_connections(), init_display(), and setHoverStyle().

QPushButton* MateriaEditor::btn_master_eskills
private

Definition at line 82 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), and init_display().

QPushButton* MateriaEditor::btn_paste_materia
private

Definition at line 67 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), init_display(), and setHoverStyle().

QPushButton* MateriaEditor::btn_rm_materia
private

Definition at line 65 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), init_display(), and setHoverStyle().

QPushButton* MateriaEditor::btn_star1
private
QPushButton* MateriaEditor::btn_star2
private
QPushButton* MateriaEditor::btn_star3
private
QPushButton* MateriaEditor::btn_star4
private
QPushButton* MateriaEditor::btn_star5
private
qint32 MateriaEditor::buffer_ap
private

Definition at line 95 of file MateriaEditor.h.

Referenced by copy_materia(), init_data(), and paste_materia().

qint8 MateriaEditor::buffer_id
private

Definition at line 94 of file MateriaEditor.h.

Referenced by copy_materia(), init_data(), and paste_materia().

QComboBox* MateriaEditor::combo_materia
private
QComboBox* MateriaEditor::combo_type
private

Definition at line 63 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), init_data(), init_display(), and setName().

bool MateriaEditor::editable
private

Definition at line 100 of file MateriaEditor.h.

Referenced by editMode(), init_data(), isEditable(), and setEditable().

QGroupBox* MateriaEditor::eskill_group
private

Definition at line 79 of file MateriaEditor.h.

Referenced by init_display(), and setSkills().

QListWidget* MateriaEditor::eskill_list
private
QHBoxLayout* MateriaEditor::Final
private

Definition at line 62 of file MateriaEditor.h.

Referenced by init_display().

QFrame* MateriaEditor::frm_ap
private

Definition at line 70 of file MateriaEditor.h.

Referenced by init_display(), and setStarsSize().

QFrame* MateriaEditor::frm_ap_stars
private

Definition at line 90 of file MateriaEditor.h.

Referenced by init_display(), setAP(), and setStarsSize().

QFrame* MateriaEditor::frm_name_type
private

Definition at line 69 of file MateriaEditor.h.

Referenced by init_display().

QFrame* MateriaEditor::frm_skill_status
private

Definition at line 71 of file MateriaEditor.h.

Referenced by init_display(), and setSkills().

QLabel* MateriaEditor::lbl_materiaIcon
private

Definition at line 98 of file MateriaEditor.h.

Referenced by editMode(), init_data(), init_display(), and setName().

QLabel* MateriaEditor::lbl_materiaName
private

Definition at line 99 of file MateriaEditor.h.

Referenced by editMode(), init_data(), init_display(), and setName().

QLabel* MateriaEditor::lbl_max_ap
private

Definition at line 60 of file MateriaEditor.h.

Referenced by init_display(), and setAP().

QLabel* MateriaEditor::lbl_slash
private

Definition at line 61 of file MateriaEditor.h.

Referenced by init_display().

QLabel* MateriaEditor::lbl_stats
private

Definition at line 86 of file MateriaEditor.h.

Referenced by init_display(), and setStats().

QListWidget* MateriaEditor::list_skills
private

Definition at line 83 of file MateriaEditor.h.

Referenced by init_display(), and setSkills().

QListWidget* MateriaEditor::list_status
private

Definition at line 87 of file MateriaEditor.h.

Referenced by init_display(), and setStats().

QSpinBox* MateriaEditor::sb_ap
private

Definition at line 68 of file MateriaEditor.h.

Referenced by editMode(), init_connections(), init_display(), setAP(), and setMateria().

qreal MateriaEditor::scale
private

Definition at line 101 of file MateriaEditor.h.

Referenced by init_data(), init_display(), MateriaEditor(), and setStarsSize().

QSpacerItem* MateriaEditor::v_spacer
private

Definition at line 89 of file MateriaEditor.h.

Referenced by init_display(), and setSkills().


The documentation for this class was generated from the following files: