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

one text two checkable boxes More...

#include <DoubleCheckBox.h>

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

Signals

void box1_toggled (bool checked)
 Signal: box1 has had its state changed. More...
 
void box2_toggled (bool checked)
 Signal: box2 has had its state changed. More...
 

Public Member Functions

 DoubleCheckBox (QWidget *parent=nullptr)
 create a new empty Double Checkbox More...
 
 DoubleCheckBox (const QString &text, QWidget *parent=nullptr)
 create a new empty Double Checkbox More...
 
 ~DoubleCheckBox ()=default
 
void setText (const QString &text)
 set the text displayed More...
 
void setChecked (int box, bool checked)
 set if a box is checked More...
 
bool isChecked (int box)
 check if a box has been checked . More...
 
void setBoxToolTip (int box, const QString &text)
 Set the tooltip for a checkbox. More...
 
void setToolTip (const QString &text)
 Set the tooltip for the widget. More...
 

Detailed Description

one text two checkable boxes

Constructor & Destructor Documentation

◆ DoubleCheckBox() [1/2]

DoubleCheckBox::DoubleCheckBox ( QWidget *  parent = nullptr)
explicit

create a new empty Double Checkbox

Parameters
parentparent of this widget

◆ DoubleCheckBox() [2/2]

DoubleCheckBox::DoubleCheckBox ( const QString &  text,
QWidget *  parent = nullptr 
)
explicit

create a new empty Double Checkbox

Parameters
textText for this checkbox
parentparent of this widget

◆ ~DoubleCheckBox()

DoubleCheckBox::~DoubleCheckBox ( )
default

Member Function Documentation

◆ box1_toggled

void DoubleCheckBox::box1_toggled ( bool  checked)
signal

Signal: box1 has had its state changed.

Parameters
checkedchecked state

◆ box2_toggled

void DoubleCheckBox::box2_toggled ( bool  checked)
signal

Signal: box2 has had its state changed.

Parameters
checkedchecked state

◆ isChecked()

bool DoubleCheckBox::isChecked ( int  box)

check if a box has been checked .

Parameters
boxcheckbox (1-2) 1 is closest to text
Returns
checkbox checked ?

◆ setBoxToolTip()

void DoubleCheckBox::setBoxToolTip ( int  box,
const QString &  text 
)

Set the tooltip for a checkbox.

Parameters
boxcheckbox (1-2) 1 is closest to text
texttooltip text

◆ setChecked()

void DoubleCheckBox::setChecked ( int  box,
bool  checked 
)

set if a box is checked

Parameters
boxcheckbox (1-2) 1 is closest to text
checkedis this box checked?

◆ setText()

void DoubleCheckBox::setText ( const QString &  text)

set the text displayed

Parameters
textText for this checkbox

◆ setToolTip()

void DoubleCheckBox::setToolTip ( const QString &  text)

Set the tooltip for the widget.

Parameters
texttooltip text

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