XGP::LoginDialog Class Reference

Dialog to enter the information to perform a login (userid and password). More...

Inherits XGP::XDialog.

List of all members.

Public Member Functions

 LoginDialog (const Glib::ustring &title)
virtual ~LoginDialog ()
void setUser (const Glib::ustring &user)
void setCurrentUser ()
void setPassword (const Glib::ustring &pwd)

Static Public Member Functions

static LoginDialogcreate (const Glib::ustring &title)

Public Attributes

sigc::signal< bool, const
Glib::ustring &, const
Glib::ustring & > 
sigLogin

Protected Types

enum  { LOGIN }

Protected Member Functions

virtual void command (int id)

Protected Attributes

Gtk::Table * pClient
Gtk::Entry txtUser
Gtk::Entry txtPassword


Detailed Description

Dialog to enter the information to perform a login (userid and password).

The password is not displayed openly.


Constructor & Destructor Documentation

XGP::LoginDialog::LoginDialog ( const Glib::ustring &  title  ) 

Constructor.

Parameters:
title Title to display for dialog

XGP::LoginDialog::~LoginDialog (  )  [virtual]

Destructor.


Member Function Documentation

void XGP::LoginDialog::command ( int  id  )  [protected, virtual]

Callback after clicking on a button in the dialog.

Parameters:
id ID of clicked button

Reimplemented from XGP::XDialog.

static LoginDialog* XGP::LoginDialog::create ( const Glib::ustring &  title  )  [inline, static]

Creates the dialog (and set it as child of the parent).

Parameters:
title Title of the dialog
Remarks:
Cares also about freeing the dialog

void XGP::LoginDialog::setCurrentUser (  ) 

Sets the current passed user in the dialog.

void XGP::LoginDialog::setPassword ( const Glib::ustring &  pwd  )  [inline]

Sets the passed password in the dialog.

Parameters:
pwd Password to set

void XGP::LoginDialog::setUser ( const Glib::ustring &  user  )  [inline]

Sets the passed user in the dialog.

Parameters:
user User to set


Member Data Documentation

Gtk::Table* XGP::LoginDialog::pClient [protected]

Pointer to the client information area.

sigc::signal<bool, const Glib::ustring&, const Glib::ustring&> XGP::LoginDialog::sigLogin

Signal emitted, when Login is selected.

Gtk::Entry XGP::LoginDialog::txtPassword [protected]

Textfield, where user enters the password.

Gtk::Entry XGP::LoginDialog::txtUser [protected]

Textfield, where user enters the ID.


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

XGP Version 0.9.31 - Generated on Wed Nov 18 11:25:29 2009 by doxygen 1.5.8