Rosetta
|
#include <argument.h>
Public Types | |
enum class | Kind { file , directory } |
Public Member Functions | |
PathArgument (Kind kind) | |
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... | |
operator QString () const override | |
Encode argument into JSON object. More... | |
![]() | |
bool | init (json const &) |
json | encode () const override |
Encode argument into JSON object. 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_button_clicked (bool) |
Private Member Functions | |
void | update_label_text (QString const &) const |
Private Attributes | |
QPointer< QLabel > | label_ |
Kind | kind_ = Kind::file |
Additional Inherited Members | |
![]() | |
static ArgumentSP | create (json const &) |
![]() | |
Argument () | |
Argument (Argument const &) | |
|
strong |
|
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
Reimplemented from ui::network::StringArgument.
|
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.
Reimplemented from ui::network::StringArgument.
References label_, on_button_clicked(), update_label_text(), ui::network::StringArgument::value(), and w.
bool ui::network::PathArgument::init | ( | json const & | j | ) |
References directory, file, ui::network::StringArgument::init(), create_a3b_hbs::j, and kind_.
|
privateslot |
References file, kind_, tr, update_label_text(), and ui::network::StringArgument::value().
Referenced by create_input_widget().
|
overridevirtual |
Encode argument into JSON object.
Reimplemented from ui::network::StringArgument.
References evaluate_beta_mutants::file, and value.
|
private |
References label_, and kmeans_adaptive_kernel_density_bb_dependent_rotlib::v.
Referenced by create_input_widget(), and on_button_clicked().
|
private |
Referenced by init(), on_button_clicked(), and PathArgument().
|
mutableprivate |
Referenced by create_input_widget(), and update_label_text().