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
...
}
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define gROOT
Definition TROOT.h:411
R__EXTERN TSystem * gSystem
Definition TSystem.h:572
Graphic dialog to enter passwords.
virtual void DispatchOneEvent(Bool_t pendingOnly=kFALSE)
Dispatch a single event.
Definition TSystem.cxx:431
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.
 
virtual TClass * IsA () const
 
void ReturnPressed ()
 Handle return.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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 58 of file TGPasswdDialog.cxx.

◆ ~TGPasswdDialog()

TGPasswdDialog::~TGPasswdDialog ( )
virtual

Delete log window.

Definition at line 123 of file TGPasswdDialog.cxx.

Member Function Documentation

◆ Class()

static TClass * TGPasswdDialog::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGPasswdDialog::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGPasswdDialog::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 45 of file TGPasswdDialog.h.

◆ CloseWindow()

void TGPasswdDialog::CloseWindow ( )

Called when closed via window manager action.

Definition at line 140 of file TGPasswdDialog.cxx.

◆ DeclFileName()

static const char * TGPasswdDialog::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 45 of file TGPasswdDialog.h.

◆ DoClose()

void TGPasswdDialog::DoClose ( )

Handle close button.

Definition at line 132 of file TGPasswdDialog.cxx.

◆ IsA()

virtual TClass * TGPasswdDialog::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 45 of file TGPasswdDialog.h.

◆ ReturnPressed()

void TGPasswdDialog::ReturnPressed ( )

Handle return.

Definition at line 148 of file TGPasswdDialog.cxx.

◆ Streamer()

virtual void TGPasswdDialog::Streamer ( TBuffer & )
virtual

◆ StreamerNVirtual()

void TGPasswdDialog::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 45 of file TGPasswdDialog.h.

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: