Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGPasswdDialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: G. Ganis  10/10/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGPasswdDialog
0013 #define ROOT_TGPasswdDialog
0014 
0015 
0016 #include "Rtypes.h"
0017 
0018 class TGTransientFrame;
0019 class TGTextButton;
0020 class TGTextEntry;
0021 class TGTextBuffer;
0022 
0023 
0024 class TGPasswdDialog {
0025 
0026 private:
0027    char             *fPwdBuf;     ///< buffer where to store the passwd
0028    Int_t             fPwdLenMax;  ///< passwd buffer length
0029    TGTransientFrame *fDialog;     ///< main frame of this widget
0030    TGTextButton     *fOk;         ///< Ok button
0031    TGTextEntry      *fPasswd;     ///< Password TextEntry
0032    TGTextBuffer     *fPasswdText; ///< Passwd Buffer
0033 
0034 public:
0035    TGPasswdDialog(const char *prompt, char *pwdbuf, Int_t pwdlenmax,
0036                   UInt_t w = 400, UInt_t h = 400);
0037    virtual ~TGPasswdDialog();
0038 
0039    void   ReturnPressed();
0040 
0041    // slots
0042    void   CloseWindow();
0043    void   DoClose();
0044 
0045    ClassDef(TGPasswdDialog,0)  // Dialog for entering passwords
0046 };
0047 
0048 #endif