Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ConfigRemoveDialog Class Reference

Dialog to remove a config entry. More...

#include "config_remove_dialog.h"

Public Member Functions

 ConfigRemoveDialog (Gtk::Label *lbl_path, Gtk::CheckButton *chb_is_default)
 Constructor.
 ConfigRemoveDialog (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder)
 Constructor.
virtual ~ConfigRemoveDialog ()
 Destructor.
void init (const Glib::ustring &path, bool is_default)
 Initialize the dialog.
bool get_remove_default () const
 Get the remove default flag of the entry to be deleted.

Protected Attributes

Gtk::Label * m_lbl_path
 A Gtk::Label that presents the path to be deleted.
Gtk::CheckButton * m_chb_is_default
 The Gtk::CheckButton to set the remove default flag.

Detailed Description

Dialog to remove a config entry.

Author
Daniel Beck

Definition at line 28 of file config_remove_dialog.h.

Constructor & Destructor Documentation

ConfigRemoveDialog::ConfigRemoveDialog ( Gtk::Label *  lbl_path,
Gtk::CheckButton *  chb_is_default 
)

Constructor.

Parameters
lbl_pathlabel of path to delete
chb_is_defaultcheckbutton for default value deletion

Definition at line 43 of file config_remove_dialog.cpp.

References m_chb_is_default, and m_lbl_path.

ConfigRemoveDialog::ConfigRemoveDialog ( BaseObjectType *  cobject,
const Glib::RefPtr< Gtk::Builder > &  builder 
)

Constructor.

Parameters
cobjectpointer to base object type
builderGtk builder

Definition at line 53 of file config_remove_dialog.cpp.

References m_chb_is_default, and m_lbl_path.

ConfigRemoveDialog::~ConfigRemoveDialog ( )
virtual

Destructor.

Definition at line 62 of file config_remove_dialog.cpp.

Member Function Documentation

bool ConfigRemoveDialog::get_remove_default ( ) const

Get the remove default flag of the entry to be deleted.

Returns
if true delete also the default config value

Definition at line 83 of file config_remove_dialog.cpp.

References m_chb_is_default.

void ConfigRemoveDialog::init ( const Glib::ustring &  path,
bool  is_default 
)

Initialize the dialog.

Parameters
paththe config path that was selected for deletion.
is_defaulttrue if only the default config value is set

Definition at line 71 of file config_remove_dialog.cpp.

References m_chb_is_default, and m_lbl_path.

Member Data Documentation

ConfigRemoveDialog::m_chb_is_default
protected

The Gtk::CheckButton to set the remove default flag.

Definition at line 41 of file config_remove_dialog.h.

Referenced by ConfigRemoveDialog(), get_remove_default(), and init().

ConfigRemoveDialog::m_lbl_path
protected

A Gtk::Label that presents the path to be deleted.

Definition at line 40 of file config_remove_dialog.h.

Referenced by ConfigRemoveDialog(), and init().


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