Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGPasswdDialog Class Reference

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())
// Password is now in pwdbuf
...
}
const Bool_t kFALSE
Definition RtypesCore.h:101
#define gROOT
Definition TROOT.h:404
R__EXTERN TSystem * gSystem
Definition TSystem.h:559
Graphic dialog to enter passwords.
virtual void DispatchOneEvent(Bool_t pendingOnly=kFALSE)
Dispatch a single event.
Definition TSystem.cxx:432
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition fillpatterns.C:1

Definition at line 24 of file TGPasswdDialog.h.

Public Member Functions

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

Private Attributes

TGTransientFrame * fDialog
 main frame of this widget
 
TGTextButton * fOk
 Ok button.
 
TGTextEntry * fPasswd
 Password TextEntry.
 
TGTextBuffer * fPasswdText
 Passwd Buffer.
 
char * fPwdBuf
 buffer where to store the passwd
 
Int_t fPwdLenMax
 passwd buffer length
 

#include <TGPasswdDialog.h>

Constructor & Destructor Documentation

◆ TGPasswdDialog()

TGPasswdDialog::TGPasswdDialog ( const char *  prompt,
char *  pwdbuf,
Int_t  pwdlenmax,
UInt_t  w = 400,
UInt_t  h = 400 
)

Create an editor in a dialog.

Definition at line 59 of file TGPasswdDialog.cxx.

◆ ~TGPasswdDialog()

TGPasswdDialog::~TGPasswdDialog ( )
virtual

Delete log window.

Definition at line 124 of file TGPasswdDialog.cxx.

Member Function Documentation

◆ CloseWindow()

void TGPasswdDialog::CloseWindow ( )

Called when closed via window manager action.

Definition at line 141 of file TGPasswdDialog.cxx.

◆ DoClose()

void TGPasswdDialog::DoClose ( )

Handle close button.

Definition at line 133 of file TGPasswdDialog.cxx.

◆ ReturnPressed()

void TGPasswdDialog::ReturnPressed ( )

Handle return.

Definition at line 149 of file TGPasswdDialog.cxx.

Member Data Documentation

◆ fDialog

TGTransientFrame* TGPasswdDialog::fDialog
private

main frame of this widget

Definition at line 29 of file TGPasswdDialog.h.

◆ fOk

TGTextButton* TGPasswdDialog::fOk
private

Ok button.

Definition at line 30 of file TGPasswdDialog.h.

◆ fPasswd

TGTextEntry* TGPasswdDialog::fPasswd
private

Password TextEntry.

Definition at line 31 of file TGPasswdDialog.h.

◆ fPasswdText

TGTextBuffer* TGPasswdDialog::fPasswdText
private

Passwd Buffer.

Definition at line 32 of file TGPasswdDialog.h.

◆ fPwdBuf

char* TGPasswdDialog::fPwdBuf
private

buffer where to store the passwd

Definition at line 27 of file TGPasswdDialog.h.

◆ fPwdLenMax

Int_t TGPasswdDialog::fPwdLenMax
private

passwd buffer length

Definition at line 28 of file TGPasswdDialog.h.

Libraries for TGPasswdDialog:

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