ROOT logo
ROOT » GUI » GUI » TGPasswdDialog

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)