16 #ifndef CHOCOBOLABEL_H 17 #define CHOCOBOLABEL_H 20 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 40 explicit ChocoboLabel(qreal Scale=1,QString titleText=
"",
bool occupied=
false,QWidget *parent = 0);
52 void setName(QString decodedName);
69 bool event(QEvent *ev);
84 #endif // ChocoboLABEL_H void copyPushed(void)
copy has been pressed
void setName(QString decodedName)
Set string to be shown as chocobo's name.
QLabel * lblType
isEnabled hold if enabled
ChocoboLabel(qreal Scale=1, QString titleText="", bool occupied=false, QWidget *parent=0)
Create a new Chocobo label.
A Label to display a single chocobo's brief data.
QFrame * outerFrame
outer frame of widget contains the label checkbox, copy,paste,remove buttons
void pastePushed(void)
paste has been pressed
void setSelected(bool selected)
Change if the label looks selected.
QFrame * innerFrame
inner frame of widget contains all the chocobo into
void enable(bool enabled)
enable/disable inner part of the form when needed
void setTitle(QString title)
The occupied checkbox has been toggled.
void setType(int type)
Set the type of chocobo shown on the label.
bool isOccupied(void)
occupied state
void setRank(int wins)
Show the racing rank of the chocobo.
QString SelectedBkStyle
style for background when selected
void clicked()
Emit Signal: the widget has been clicked.
void paste()
Emit Signal: the paste button pressed.
QPushButton * btnRemove
remove button
void copy()
Emit Signal: the copy button pressed.
void removePushed(void)
remove has been pressed
QLabel * lblRank
label to show rank
void setOccupied(bool occupied)
Set if the stall is occupied.
bool isEnabled
isEnabled hold if enabled
void occupiedToggled(bool occupied)
the occupied checkbox has been toggled
QCheckBox * chkOccupied
checkbox to show if occupied
QLabel * lblName
label to show name
void setFontSize(int fontSize)
Set the size of the labels font.
void chkOccupiedToggled(bool occupied)
occupied clicked
void setCheckBoxStyle(QString styleSheet)
style the checkboxes of this widget easily.
QLabel * lblSex
label to show sex
void setSex(bool Male)
Set the sex of the chocobo.
QPushButton * btnPaste
paste button
void setHoverColorStyle(QString backgroundColor)
Set the style for when you hover.
QPushButton * btnCopy
copy button
void clearLabel(void)
Clear the labels data.