ConfigEditDialog Class Reference

Dialog to edit a config value. More...

#include <config_edit_dialog.h>

List of all members.

Public Member Functions

 ConfigEditDialog (Gtk::Entry *ent_value, Gtk::ComboBox *cob_bool_value, Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default)
 Constructor.
virtual ~ConfigEditDialog ()
 Destructor.
void init (const Glib::ustring &path, const Glib::ustring &type, const Glib::ustring &value)
 Initialize the dialog.
Glib::ustring get_value () const
 Get the value of the entry widget.
bool get_is_default () const
 Get the default flag of the new entry.

Protected Attributes

bool is_bool
 A flag to store wether the config value is boolean.
Gtk::Entry * m_ent_value
 An entry field to edit the config value.
Gtk::ComboBox * m_cob_bool_value
 A combo box to select TRUE or FALSE.
Gtk::Notebook * m_type_pages
 A Gtk::Notebook element to switch between boolean values and the rest.
Gtk::CheckButton * m_chb_is_default
 The Gtk::CheckButton to set the default flag.

Detailed Description

Dialog to edit a config value.

Author:
Daniel Beck

Definition at line 31 of file config_edit_dialog.h.


Constructor & Destructor Documentation

ConfigEditDialog::ConfigEditDialog ( Gtk::Entry *  ent_value,
Gtk::ComboBox *  cob_bool_value,
Gtk::Notebook *  type_pages,
Gtk::CheckButton *  chb_is_default 
)

Constructor.

Parameters:
ent_value entry field for value
cob_bool_value combo box for bool value
type_pages pages for types
chb_is_default checkbutton to mark default values

Definition at line 57 of file config_edit_dialog.cpp.

References m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.

ConfigEditDialog::~ConfigEditDialog (  )  [virtual]

Destructor.

Definition at line 101 of file config_edit_dialog.cpp.


Member Function Documentation

bool ConfigEditDialog::get_is_default (  )  const

Get the default flag of the new entry.

Returns:
if true edit the default config database

Definition at line 128 of file config_edit_dialog.cpp.

References m_chb_is_default.

Glib::ustring ConfigEditDialog::get_value (  )  const

Get the value of the entry widget.

Returns:
the text in the entry widget

Definition at line 109 of file config_edit_dialog.cpp.

References is_bool, m_cob_bool_value, and m_ent_value.

void ConfigEditDialog::init ( const Glib::ustring &  path,
const Glib::ustring &  type,
const Glib::ustring &  value 
)

Initialize the dialog.

Parameters:
path config path
type type of config entry
value value of the config entry

Definition at line 89 of file config_edit_dialog.cpp.

References is_bool, m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.


Member Data Documentation

A flag to store wether the config value is boolean.

Definition at line 48 of file config_edit_dialog.h.

Referenced by get_value(), and init().

The Gtk::CheckButton to set the default flag.

Definition at line 52 of file config_edit_dialog.h.

Referenced by ConfigEditDialog(), get_is_default(), and init().

A combo box to select TRUE or FALSE.

Definition at line 50 of file config_edit_dialog.h.

Referenced by ConfigEditDialog(), get_value(), and init().

An entry field to edit the config value.

Definition at line 49 of file config_edit_dialog.h.

Referenced by ConfigEditDialog(), get_value(), and init().

A Gtk::Notebook element to switch between boolean values and the rest.

Definition at line 51 of file config_edit_dialog.h.

Referenced by ConfigEditDialog(), and init().


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1