|
Rosetta
|
#include <argument.h>

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... | |
| QWidget * | create_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_value_changed (int value) |
Private Attributes | |
| int | default_ = 0 |
| int | value_ = 0 |
| int | min_ = 0 |
| int | max_ = 0 |
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 &) | |
|
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.
|
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 max_, min_, on_value_changed(), value_, and w.
|
overridevirtual |
Encode argument into JSON object.
Implements ui::network::Argument.
References basic::options::OptionKeys::ddg::json, and value_.
| bool ui::network::IntegerArgument::init | ( | json const & | j | ) |
References default_, ui::network::Argument::init(), create_a3b_hbs::j, max(), max_, min(), min_, and value_.
|
privateslot |
Referenced by create_input_widget().
|
overridevirtual |
|
private |
Referenced by init().
|
private |
Referenced by create_input_widget(), and init().
|
private |
Referenced by create_input_widget(), and init().
|
private |
Referenced by create_input_widget(), encode(), init(), and on_value_changed().