class TGPasswdDialog


TGPasswdDialog

Graphic dialog to enter passwords

Usage:

{
 Buffer for the passwd
char pwdbuf[128]

Open the dialog box
TGPasswdDialog dialog("My prompt", pwdbuf, 128);

 Wait until the user is done
while (gROOT->IsInterrupted())
gSystem->DispatchOneEvent(kFALSE);

 Password is now in pwdbuf


}



Function Members (Methods)

public:
TGPasswdDialog(const TGPasswdDialog&)
TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400)
virtual~TGPasswdDialog()
static TClass*Class()
voidCloseWindow()
voidDoClose()
virtual TClass*IsA() const
TGPasswdDialog&operator=(const TGPasswdDialog&)
voidReturnPressed()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
TGTransientFrame*fDialogmain frame of this widget
TGTextButton*fOkOk button
TGTextEntry*fPasswdPassword TextEntry
TGTextBuffer*fPasswdTextPasswd Buffer
char*fPwdBufbuffer where to store the passwd
Int_tfPwdLenMaxpasswd buffer length

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400)
 Create an editor in a dialog.
~TGPasswdDialog()
 Delete log window.
void DoClose()
 Handle close button.
void CloseWindow()
 Called when closed via window manager action.
void ReturnPressed()
 Handle return
TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400)

Author: G. Ganis 10/10/2005
Last change: root/gui:$Id: TGPasswdDialog.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:42
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.