A Label to display a single chocobo's brief data.  
 More...
#include <ChocoboLabel.h>
A Label to display a single chocobo's brief data. 
 
◆ 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
 - 
  
    | parent | Parent of this widget  | 
    | titleText | Name for the box something like "Stable 1 "  | 
    | occupied | Is there a chocobo here? else set a blank label  | 
  
   
 
 
◆ ~ChocoboLabel()
  
  
      
        
          | ChocoboLabel::~ChocoboLabel  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ clearLabel
  
  
      
        
          | void ChocoboLabel::clearLabel  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ 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
 - 
  
    | occupied | is 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
 - 
  
    | fontSize | pointSize of the font for this label  | 
  
   
 
 
◆ setHoverColorStyle
  
  
      
        
          | void ChocoboLabel::setHoverColorStyle  | 
          ( | 
          QString  | 
          backgroundColor | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Set the style for when you hover. 
- Parameters
 - 
  
    | backgroundColor | A 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
 - 
  
    | decodedName | String 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
 - 
  
    | occupied | is this stable occupied?  | 
  
   
 
 
◆ setRank
  
  
      
        
          | void ChocoboLabel::setRank  | 
          ( | 
          int  | 
          wins | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Show the racing rank of the chocobo. 
- Parameters
 - 
  
    | wins | number of race wins chocobo has.  | 
  
   
 
 
◆ setSelected
  
  
      
        
          | void ChocoboLabel::setSelected  | 
          ( | 
          bool  | 
          selected | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Change if the label looks selected. 
- Parameters
 - 
  
    | selected | is this label selected?  | 
  
   
 
 
◆ setSex [1/2]
  
  
      
        
          | void ChocoboLabel::setSex  | 
          ( | 
          bool  | 
          Male | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Set the sex of the chocobo. 
- Parameters
 - 
  
    | Male | is this chocobo a male?  | 
  
   
- See also
 - setSex(int) 
 
 
 
◆ setSex [2/2]
  
  
      
        
          | void ChocoboLabel::setSex  | 
          ( | 
          int  | 
          sex | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ setTitle
  
  
      
        
          | void ChocoboLabel::setTitle  | 
          ( | 
          QString  | 
          title | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
The occupied checkbox has been toggled. 
- Parameters
 - 
  
    | title | String that will be shown as labels title  | 
  
   
 
 
◆ setType
  
  
      
        
          | void ChocoboLabel::setType  | 
          ( | 
          int  | 
          type | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Set the type of chocobo shown on the label. 
- Parameters
 - 
  
    | type | the type of chocobo 0:yellow 1:green 2:blue 3:black 4:gold.  | 
  
   
 
 
The documentation for this class was generated from the following files: