A++ » INCLUDE » 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:
virtual~TGPasswdDialog()
static TClass*Class()
voidCloseWindow()
voidDoClose()
virtual TClass*IsA() const
TGPasswdDialog&operator=(const TGPasswdDialog&)
voidReturnPressed()
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGPasswdDialog(const TGPasswdDialog&)
TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400)

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 Chart:
TGPasswdDialog

Function documentation

TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400)
void ReturnPressed()
void CloseWindow()
 slots
void DoClose()