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... | |
![]() | |
~Argument () override | |
std::string | description () const |
void | init (json const &) |
Private Slots | |
void | on_value_changed (double value) |
Private Attributes | |
double | default_ = 0.0 |
double | value_ = 0.0 |
double | min_ = 0.0 |
double | max_ = 0.0 |
Additional Inherited Members | |
![]() | |
static ArgumentSP | create (json const &) |
![]() | |
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::FloatArgument::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 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().