library: libGui
#include "TGPasswdDialog.h"

TGPasswdDialog


class description - header file - source file - inheritance tree (.pdf)

class TGPasswdDialog

Inheritance Chart:
TGPasswdDialog

    public:
TGPasswdDialog(const char* prompt, char* pwdbuf, Int_t pwdlenmax, UInt_t w = 400, UInt_t h = 400) TGPasswdDialog(const TGPasswdDialog&) virtual ~TGPasswdDialog() static TClass* Class() void CloseWindow() void DoClose() virtual TClass* IsA() const TGPasswdDialog& operator=(const TGPasswdDialog&) void ReturnPressed() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

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

Class Description

                                                                      
 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                                       
   ...                                                                
                                                                      
 }                                                                    
                                                                      
                                                                      

TGPasswdDialog(const char *prompt, char *pwdbuf, Int_t pwdlenmax, UInt_t w, UInt_t h)
 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 update: root/gui:$Name: $:$Id: TGPasswdDialog.cxx,v 1.2 2005/11/24 17:08:35 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.