Rosetta
Public Member Functions | Private Slots | Private Attributes | List of all members
ui::network::BooleanArgument Class Reference

#include <argument.h>

Inheritance diagram for ui::network::BooleanArgument:
Inheritance graph
[legend]

Public Member Functions

bool init (json const &)
 
ArgumentSP clone () const override
 clone Argument. Note that underlying QObject is not clonned so you will need to re-connect any signal/slots on a new instance manually More...
 
QWidgetcreate_input_widget (QWidget *parent=nullptr) const override
 Create widget that could be used to edit Argument value. Created widget will be connection to this instance so this->value could be updated transperently. More...
 
json encode () const override
 Encode argument into JSON object. More...
 
 operator QString () const override
 qDebug helper More...
 
- Public Member Functions inherited from ui::network::Argument
 ~Argument () override
 
std::string description () const
 
void init (json const &)
 

Private Slots

void on_toggled (bool checked)
 

Private Attributes

bool default_ = false
 
bool value_ = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ui::network::Argument
static ArgumentSP create (json const &)
 
- Protected Member Functions inherited from ui::network::Argument
 Argument ()
 
 Argument (Argument const &)
 

Member Function Documentation

◆ clone()

ArgumentSP ui::network::BooleanArgument::clone ( ) const
overridevirtual

clone Argument. Note that underlying QObject is not clonned so you will need to re-connect any signal/slots on a new instance manually

Implements ui::network::Argument.

◆ create_input_widget()

QWidget * ui::network::BooleanArgument::create_input_widget ( QWidget parent = nullptr) const
overridevirtual

Create widget that could be used to edit Argument value. Created widget will be connection to this instance so this->value could be updated transperently.

Implements ui::network::Argument.

References on_toggled(), value_, and w.

◆ encode()

json ui::network::BooleanArgument::encode ( ) const
overridevirtual

Encode argument into JSON object.

Implements ui::network::Argument.

References basic::options::OptionKeys::ddg::json, and value_.

◆ init()

bool ui::network::BooleanArgument::init ( json const &  j)

BooleanArgument

References default_, ui::network::Argument::init(), create_a3b_hbs::j, and value_.

◆ on_toggled

void ui::network::BooleanArgument::on_toggled ( bool  checked)
privateslot

References value_.

Referenced by create_input_widget().

◆ operator QString()

ui::network::BooleanArgument::operator QString ( ) const
overridevirtual

qDebug helper

Implements ui::network::Argument.

References create_a3b_hbs::r.

Member Data Documentation

◆ default_

bool ui::network::BooleanArgument::default_ = false
private

Referenced by init().

◆ value_

bool ui::network::BooleanArgument::value_ = false
private

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