Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A widget to browse/edit a configuration variant registry. More...
#include <bayeux/datatools/configuration/ui/variant_registry_viewer.h>
Public Slots | |
void | slot_update_read_only_cb (bool read_only_) |
Slot: set the checkbox state from the model read-only flag. More... | |
void | slot_update_model_read_only_from_check_state (int check_state_) |
Slot: set the model read-only flag from the checkbox state. More... | |
void | slot_dump_registry () |
Slot: dump the registry. More... | |
void | slot_dump_model () |
Slot: dump the registry model. More... | |
void | slot_update_logging (const QString &) |
Slot: set the logging priority. More... | |
void | slot_update_logging_combo (datatools::logger::priority) |
Slot: update the logging priority. More... | |
void | slot_expand_all () |
Slot: adapt the view. More... | |
void | slot_expand_only_active () |
Slot: adapt the view. More... | |
void | slot_compute_expand (const QModelIndex &index_) |
Slot: adapt the view. More... | |
void | slot_compute_expand2 (const QModelIndex &top_left_index_, const QModelIndex &bottom_right_index_) |
Slot: adapt the view. More... | |
void | slot_collapse_all () |
Slot: adapt the view. More... | |
void | slot_update_leds () |
Slot: adapt the view. More... | |
void | slot_snapshot () |
Slot: store the current status to a buffer. More... | |
void | slot_restore () |
Slot: load the current status from a buffer. More... | |
void | slot_load_from_file () |
Slot: load the registry from a file. More... | |
void | slot_store_to_file () const |
Slot: store the registry in a file. More... | |
Signals | |
void | sig_model_changed () |
Signal: emitted when the model has changed. More... | |
void | sig_logging_changed (datatools::logger::priority) |
Signal: emitted when the logging has changed. More... | |
void | sig_read_only_changed (bool) |
Signal: emitted when the read-only state has changed. More... | |
Public Member Functions | |
variant_registry_viewer (QWidget *parent_=0) | |
Default constructor. More... | |
virtual | ~variant_registry_viewer () |
Destructor. More... | |
void | set_registry_tree_model (variant_registry_tree_model &, bool devel_mode_=false) |
Set the registry tree model. More... | |
bool | has_registry_tree_model () const |
Check if a registry tree model is handled. More... | |
variant_registry_tree_model & | grab_registry_tree_model () |
Return a reference to the mutable registry tree model. More... | |
const variant_registry_tree_model & | get_registry_tree_model () const |
Return a reference to the non mutable registry tree model. More... | |
const datatools::configuration::variant_registry & | get_registry () const |
Return a reference to the non mutable registry. More... | |
void | set_logging (datatools::logger::priority p_) |
Set the logging priority. More... | |
Protected Member Functions | |
void | _construct () |
Construct the viewer. More... | |
void | _construct_devel () |
Construct the development part of the GUI. More... | |
A widget to browse/edit a configuration variant registry.
datatools::configuration::ui::variant_registry_viewer::variant_registry_viewer | ( | QWidget * | parent_ = 0 | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
Construct the viewer.
|
protected |
Construct the development part of the GUI.
const datatools::configuration::variant_registry& datatools::configuration::ui::variant_registry_viewer::get_registry | ( | ) | const |
Return a reference to the non mutable registry.
const variant_registry_tree_model& datatools::configuration::ui::variant_registry_viewer::get_registry_tree_model | ( | ) | const |
Return a reference to the non mutable registry tree model.
variant_registry_tree_model& datatools::configuration::ui::variant_registry_viewer::grab_registry_tree_model | ( | ) |
Return a reference to the mutable registry tree model.
bool datatools::configuration::ui::variant_registry_viewer::has_registry_tree_model | ( | ) | const |
Check if a registry tree model is handled.
void datatools::configuration::ui::variant_registry_viewer::set_logging | ( | datatools::logger::priority | p_ | ) |
Set the logging priority.
void datatools::configuration::ui::variant_registry_viewer::set_registry_tree_model | ( | variant_registry_tree_model & | , |
bool | devel_mode_ = false |
||
) |
Set the registry tree model.
|
signal |
Signal: emitted when the logging has changed.
|
signal |
Signal: emitted when the model has changed.
|
signal |
Signal: emitted when the read-only state has changed.
|
slot |
Slot: adapt the view.
|
slot |
Slot: adapt the view.
|
slot |
Slot: adapt the view.
|
slot |
Slot: dump the registry model.
|
slot |
Slot: dump the registry.
|
slot |
Slot: adapt the view.
|
slot |
Slot: adapt the view.
|
slot |
Slot: load the registry from a file.
|
slot |
Slot: load the current status from a buffer.
|
slot |
Slot: store the current status to a buffer.
|
slot |
Slot: store the registry in a file.
|
slot |
Slot: adapt the view.
|
slot |
Slot: set the logging priority.
|
slot |
Slot: update the logging priority.
|
slot |
Slot: set the model read-only flag from the checkbox state.
|
slot |
Slot: set the checkbox state from the model read-only flag.