ff7tk 0.80.25
Work with Final Fantasy 7 game data
Public Slots | Signals | Public Member Functions | List of all members
ChocoboLabel Class Reference

A Label to display a single chocobo's brief data. More...

#include <ChocoboLabel.h>

Inheritance diagram for ChocoboLabel:
Inheritance graph
[legend]
Collaboration diagram for ChocoboLabel:
Collaboration graph
[legend]

Public Slots

void setSelected (bool selected)
 Change if the label looks selected. More...
 
void setType (int type)
 Set the type of chocobo shown on the label. More...
 
void setName (QString decodedName)
 Set string to be shown as chocobo's name. More...
 
void setRank (int wins)
 Show the racing rank of the chocobo. More...
 
void setSex (bool Male)
 Set the sex of the chocobo. More...
 
void setSex (int sex)
 Set the sex of the chocobo. More...
 
void setOccupied (bool occupied)
 Set if the stall is occupied. More...
 
void setTitle (QString title)
 The occupied checkbox has been toggled. More...
 
void setFontSize (int fontSize)
 Set the size of the labels font. More...
 
void clearLabel (void)
 Clear the labels data. More...
 
void setHoverColorStyle (QString backgroundColor)
 Set the style for when you hover. More...
 
bool isOccupied (void)
 occupied state More...
 

Signals

void clicked ()
 Emit Signal: the widget has been clicked. More...
 
void copy ()
 Emit Signal: the copy button pressed. More...
 
void paste ()
 Emit Signal: the paste button pressed. More...
 
void remove ()
 Emit Signal: the remove button pressed. More...
 
void occupiedToggled (bool occupied)
 the occupied checkbox has been toggled More...
 

Public Member Functions

 ChocoboLabel (const QString &titleText=nullptr, bool occupied=false, QWidget *parent=nullptr)
 Create a new Chocobo label. More...
 
 ~ChocoboLabel ()=default
 

Detailed Description

A Label to display a single chocobo's brief data.

Constructor & Destructor Documentation

◆ ChocoboLabel()

ChocoboLabel::ChocoboLabel ( const QString &  titleText = nullptr,
bool  occupied = false,
QWidget *  parent = nullptr 
)
explicit

Create a new Chocobo label.

This Widget is designed to be part of a more complex chocobo manager (chocoboManager) it is useful on its own but will need to be

Parameters
parentParent of this widget
titleTextName for the box something like "Stable 1 "
occupiedIs there a chocobo here? else set a blank label

◆ ~ChocoboLabel()

ChocoboLabel::~ChocoboLabel ( )
default

Member Function Documentation

◆ clearLabel

void ChocoboLabel::clearLabel ( void  )
slot

Clear the labels data.

◆ clicked

void ChocoboLabel::clicked ( )
signal

Emit Signal: the widget has been clicked.

◆ copy

void ChocoboLabel::copy ( )
signal

Emit Signal: the copy button pressed.

◆ isOccupied

bool ChocoboLabel::isOccupied ( void  )
slot

occupied state

Returns
true if occupied

◆ occupiedToggled

void ChocoboLabel::occupiedToggled ( bool  occupied)
signal

the occupied checkbox has been toggled

Parameters
occupiedis this stable occupied?

◆ paste

void ChocoboLabel::paste ( )
signal

Emit Signal: the paste button pressed.

◆ remove

void ChocoboLabel::remove ( )
signal

Emit Signal: the remove button pressed.

◆ setFontSize

void ChocoboLabel::setFontSize ( int  fontSize)
slot

Set the size of the labels font.

Parameters
fontSizepointSize of the font for this label

◆ setHoverColorStyle

void ChocoboLabel::setHoverColorStyle ( QString  backgroundColor)
slot

Set the style for when you hover.

Parameters
backgroundColorA valid color for a style sheet either a predefined color or rgb(r,g,b) style string

◆ setName

void ChocoboLabel::setName ( QString  decodedName)
slot

Set string to be shown as chocobo's name.

Parameters
decodedNameString to be displayed as name. will not be decoded from ff7text format

◆ setOccupied

void ChocoboLabel::setOccupied ( bool  occupied)
slot

Set if the stall is occupied.

Parameters
occupiedis this stable occupied?

◆ setRank

void ChocoboLabel::setRank ( int  wins)
slot

Show the racing rank of the chocobo.

Parameters
winsnumber of race wins chocobo has.

◆ setSelected

void ChocoboLabel::setSelected ( bool  selected)
slot

Change if the label looks selected.

Parameters
selectedis this label selected?

◆ setSex [1/2]

void ChocoboLabel::setSex ( bool  Male)
slot

Set the sex of the chocobo.

Parameters
Maleis this chocobo a male?
See also
setSex(int)

◆ setSex [2/2]

void ChocoboLabel::setSex ( int  sex)
slot

Set the sex of the chocobo.

Parameters
sex0:male 1:female
See also
setSex(bool)

◆ setTitle

void ChocoboLabel::setTitle ( QString  title)
slot

The occupied checkbox has been toggled.

Parameters
titleString that will be shown as labels title

◆ setType

void ChocoboLabel::setType ( int  type)
slot

Set the type of chocobo shown on the label.

Parameters
typethe type of chocobo 0:yellow 1:green 2:blue 3:black 4:gold.

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