Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
datatools::configuration::ui::variant_registry_viewer Class Reference

A widget to browse/edit a configuration variant registry. More...

#include <bayeux/datatools/configuration/ui/variant_registry_viewer.h>

Inheritance diagram for datatools::configuration::ui::variant_registry_viewer:

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_modelgrab_registry_tree_model ()
 Return a reference to the mutable registry tree model. More...
 
const variant_registry_tree_modelget_registry_tree_model () const
 Return a reference to the non mutable registry tree model. More...
 
const datatools::configuration::variant_registryget_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...
 

Detailed Description

A widget to browse/edit a configuration variant registry.

Constructor & Destructor Documentation

◆ variant_registry_viewer()

datatools::configuration::ui::variant_registry_viewer::variant_registry_viewer ( QWidget *  parent_ = 0)

Default constructor.

◆ ~variant_registry_viewer()

virtual datatools::configuration::ui::variant_registry_viewer::~variant_registry_viewer ( )
virtual

Destructor.

Member Function Documentation

◆ _construct()

void datatools::configuration::ui::variant_registry_viewer::_construct ( )
protected

Construct the viewer.

◆ _construct_devel()

void datatools::configuration::ui::variant_registry_viewer::_construct_devel ( )
protected

Construct the development part of the GUI.

◆ get_registry()

const datatools::configuration::variant_registry& datatools::configuration::ui::variant_registry_viewer::get_registry ( ) const

Return a reference to the non mutable registry.

◆ get_registry_tree_model()

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.

◆ grab_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.

◆ has_registry_tree_model()

bool datatools::configuration::ui::variant_registry_viewer::has_registry_tree_model ( ) const

Check if a registry tree model is handled.

◆ set_logging()

void datatools::configuration::ui::variant_registry_viewer::set_logging ( datatools::logger::priority  p_)

Set the logging priority.

◆ set_registry_tree_model()

void datatools::configuration::ui::variant_registry_viewer::set_registry_tree_model ( variant_registry_tree_model ,
bool  devel_mode_ = false 
)

Set the registry tree model.

◆ sig_logging_changed

void datatools::configuration::ui::variant_registry_viewer::sig_logging_changed ( datatools::logger::priority  )
signal

Signal: emitted when the logging has changed.

◆ sig_model_changed

void datatools::configuration::ui::variant_registry_viewer::sig_model_changed ( )
signal

Signal: emitted when the model has changed.

◆ sig_read_only_changed

void datatools::configuration::ui::variant_registry_viewer::sig_read_only_changed ( bool  )
signal

Signal: emitted when the read-only state has changed.

◆ slot_collapse_all

void datatools::configuration::ui::variant_registry_viewer::slot_collapse_all ( )
slot

Slot: adapt the view.

◆ slot_compute_expand

void datatools::configuration::ui::variant_registry_viewer::slot_compute_expand ( const QModelIndex &  index_)
slot

Slot: adapt the view.

◆ slot_compute_expand2

void datatools::configuration::ui::variant_registry_viewer::slot_compute_expand2 ( const QModelIndex &  top_left_index_,
const QModelIndex &  bottom_right_index_ 
)
slot

Slot: adapt the view.

◆ slot_dump_model

void datatools::configuration::ui::variant_registry_viewer::slot_dump_model ( )
slot

Slot: dump the registry model.

◆ slot_dump_registry

void datatools::configuration::ui::variant_registry_viewer::slot_dump_registry ( )
slot

Slot: dump the registry.

◆ slot_expand_all

void datatools::configuration::ui::variant_registry_viewer::slot_expand_all ( )
slot

Slot: adapt the view.

◆ slot_expand_only_active

void datatools::configuration::ui::variant_registry_viewer::slot_expand_only_active ( )
slot

Slot: adapt the view.

◆ slot_load_from_file

void datatools::configuration::ui::variant_registry_viewer::slot_load_from_file ( )
slot

Slot: load the registry from a file.

◆ slot_restore

void datatools::configuration::ui::variant_registry_viewer::slot_restore ( )
slot

Slot: load the current status from a buffer.

◆ slot_snapshot

void datatools::configuration::ui::variant_registry_viewer::slot_snapshot ( )
slot

Slot: store the current status to a buffer.

◆ slot_store_to_file

void datatools::configuration::ui::variant_registry_viewer::slot_store_to_file ( ) const
slot

Slot: store the registry in a file.

◆ slot_update_leds

void datatools::configuration::ui::variant_registry_viewer::slot_update_leds ( )
slot

Slot: adapt the view.

◆ slot_update_logging

void datatools::configuration::ui::variant_registry_viewer::slot_update_logging ( const QString &  )
slot

Slot: set the logging priority.

◆ slot_update_logging_combo

void datatools::configuration::ui::variant_registry_viewer::slot_update_logging_combo ( datatools::logger::priority  )
slot

Slot: update the logging priority.

◆ slot_update_model_read_only_from_check_state

void datatools::configuration::ui::variant_registry_viewer::slot_update_model_read_only_from_check_state ( int  check_state_)
slot

Slot: set the model read-only flag from the checkbox state.

◆ slot_update_read_only_cb

void datatools::configuration::ui::variant_registry_viewer::slot_update_read_only_cb ( bool  read_only_)
slot

Slot: set the checkbox state from the model read-only flag.


The documentation for this class was generated from the following file: