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... | |
void | value (std::string const &v) |
std::string | value () const |
std::string | get_default () const |
![]() | |
~Argument () override | |
std::string | description () const |
void | init (json const &) |
Private Slots | |
void | on_text_changed (QString const &) |
Private Attributes | |
std::string | value_ |
std::string | default_ |
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.
Reimplemented in ui::network::PathArgument.
|
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.
Reimplemented in ui::network::PathArgument.
References on_text_changed(), value_, and w.
|
overridevirtual |
Encode argument into JSON object.
Implements ui::network::Argument.
References basic::options::OptionKeys::ddg::json, and value_.
|
inline |
References default_.
bool ui::network::StringArgument::init | ( | json const & | j | ) |
References default_, ui::network::Argument::init(), create_a3b_hbs::j, and value_.
Referenced by ui::network::PathArgument::init().
|
privateslot |
References utility::options::OptionKeys::options::table::text, and value_.
Referenced by create_input_widget().
|
overridevirtual |
|
inline |
References value_.
Referenced by ui::network::PathArgument::create_input_widget(), and ui::network::PathArgument::on_button_clicked().
|
inline |
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::v, and value_.
|
private |
Referenced by get_default(), and init().
|
private |
Referenced by create_input_widget(), encode(), init(), on_text_changed(), and value().