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

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

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

Inheritance diagram for datatools::configuration::ui::variant_repository_viewer:

Public Types

typedef std::map< std::string, registry_model_wrappermodel_dict_type
 Dictionary of registry UI models. More...
 

Public Slots

void slot_update_read_only_from_check_state (int check_state_)
 Slot: update the Read-only flag from the check box state. More...
 
void slot_update_read_only_cb (bool read_only_)
 Slot: update the Read-only check box state. More...
 
void slot_at_registry_changed (std::string changed_registry_)
 Slot: action at registry changed. More...
 
void slot_at_registry_data_changed (std::string changed_registry_, std::string changed_data_path_)
 Slot: action at registry data changed. More...
 
void slot_update_tabs ()
 Slot: update registry tabs. More...
 
void slot_at_set_read_only (bool)
 Slot: set read-only flag. More...
 
void slot_update_leds ()
 Slot: update LEDs. More...
 
void slot_update ()
 Slot: general update. More...
 
void slot_dump () const
 Slot: dump. More...
 
void slot_update_logging (const QString &)
 Slot: set the logging priority. More...
 
void slot_restore (std::string *buffer_=0)
 Slot: store the current status to a buffer. More...
 
void slot_snapshot (std::string *buffer_=0)
 Slot: load the current status from a buffer. More...
 
void slot_load_from_file ()
 Slot: load the repository from a file. More...
 
void slot_store_to_file ()
 Slot: store the repository in a file. More...
 

Signals

void sig_read_only_changed (bool)
 
void sig_repository_changed ()
 

Public Member Functions

 variant_repository_viewer (QWidget *parent_=0)
 Default constructor. More...
 
virtual ~variant_repository_viewer ()
 Destructor. More...
 
void set_logging (datatools::logger::priority p_)
 Set the logging priority. More...
 
bool has_repository () const
 Check if the viewer has a repository. More...
 
void set_repository (variant_repository &var_rep_)
 Set the variant repository. More...
 
variant_repositorygrab_repository ()
 Return the mutable reference to the repository. More...
 
const variant_repositoryget_repository () const
 Return the non mutable reference to the repository. More...
 
bool is_read_only () const
 Check if the read-only flag. More...
 
void set_read_only (bool)
 Set the read-only flag. More...
 
bool has_restore_buffer () const
 Check if a restore buffer is available. More...
 
void reset_restore_buffer ()
 Reset the restore buffer is available. More...
 

Protected Member Functions

void _construct ()
 Construct the viewer. More...
 
void _construct_devel ()
 Construct the development part of the GUI. More...
 
void _compute_active_registries ()
 Compute the registries activation. More...
 

Detailed Description

A widget to browse/edit a configuration variant registry.

Member Typedef Documentation

◆ model_dict_type

Dictionary of registry UI models.

Constructor & Destructor Documentation

◆ variant_repository_viewer()

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

Default constructor.

◆ ~variant_repository_viewer()

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

Destructor.

Member Function Documentation

◆ _compute_active_registries()

void datatools::configuration::ui::variant_repository_viewer::_compute_active_registries ( )
protected

Compute the registries activation.

◆ _construct()

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

Construct the viewer.

◆ _construct_devel()

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

Construct the development part of the GUI.

◆ get_repository()

const variant_repository& datatools::configuration::ui::variant_repository_viewer::get_repository ( ) const

Return the non mutable reference to the repository.

◆ grab_repository()

variant_repository& datatools::configuration::ui::variant_repository_viewer::grab_repository ( )

Return the mutable reference to the repository.

◆ has_repository()

bool datatools::configuration::ui::variant_repository_viewer::has_repository ( ) const

Check if the viewer has a repository.

◆ has_restore_buffer()

bool datatools::configuration::ui::variant_repository_viewer::has_restore_buffer ( ) const

Check if a restore buffer is available.

◆ is_read_only()

bool datatools::configuration::ui::variant_repository_viewer::is_read_only ( ) const

Check if the read-only flag.

◆ reset_restore_buffer()

void datatools::configuration::ui::variant_repository_viewer::reset_restore_buffer ( )

Reset the restore buffer is available.

◆ set_logging()

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

Set the logging priority.

◆ set_read_only()

void datatools::configuration::ui::variant_repository_viewer::set_read_only ( bool  )

Set the read-only flag.

◆ set_repository()

void datatools::configuration::ui::variant_repository_viewer::set_repository ( variant_repository var_rep_)

Set the variant repository.

◆ sig_read_only_changed

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

◆ sig_repository_changed

void datatools::configuration::ui::variant_repository_viewer::sig_repository_changed ( )
signal

◆ slot_at_registry_changed

void datatools::configuration::ui::variant_repository_viewer::slot_at_registry_changed ( std::string  changed_registry_)
slot

Slot: action at registry changed.

◆ slot_at_registry_data_changed

void datatools::configuration::ui::variant_repository_viewer::slot_at_registry_data_changed ( std::string  changed_registry_,
std::string  changed_data_path_ 
)
slot

Slot: action at registry data changed.

◆ slot_at_set_read_only

void datatools::configuration::ui::variant_repository_viewer::slot_at_set_read_only ( bool  )
slot

Slot: set read-only flag.

◆ slot_dump

void datatools::configuration::ui::variant_repository_viewer::slot_dump ( ) const
slot

Slot: dump.

◆ slot_load_from_file

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

Slot: load the repository from a file.

◆ slot_restore

void datatools::configuration::ui::variant_repository_viewer::slot_restore ( std::string *  buffer_ = 0)
slot

Slot: store the current status to a buffer.

◆ slot_snapshot

void datatools::configuration::ui::variant_repository_viewer::slot_snapshot ( std::string *  buffer_ = 0)
slot

Slot: load the current status from a buffer.

◆ slot_store_to_file

void datatools::configuration::ui::variant_repository_viewer::slot_store_to_file ( )
slot

Slot: store the repository in a file.

◆ slot_update

void datatools::configuration::ui::variant_repository_viewer::slot_update ( )
slot

Slot: general update.

◆ slot_update_leds

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

Slot: update LEDs.

◆ slot_update_logging

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

Slot: set the logging priority.

◆ slot_update_read_only_cb

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

Slot: update the Read-only check box state.

◆ slot_update_read_only_from_check_state

void datatools::configuration::ui::variant_repository_viewer::slot_update_read_only_from_check_state ( int  check_state_)
slot

Slot: update the Read-only flag from the check box state.

◆ slot_update_tabs

void datatools::configuration::ui::variant_repository_viewer::slot_update_tabs ( )
slot

Slot: update registry tabs.


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