Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGPasswdDialog.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: G. Ganis 10/10/2005
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGPasswdDialog
13#define ROOT_TGPasswdDialog
14
15
16#include "Rtypes.h"
17
19class TGTextButton;
20class TGTextEntry;
21class TGTextBuffer;
22
23
25
26private:
27 char *fPwdBuf; ///< buffer where to store the passwd
28 Int_t fPwdLenMax; ///< passwd buffer length
29 TGTransientFrame *fDialog; ///< main frame of this widget
30 TGTextButton *fOk; ///< Ok button
31 TGTextEntry *fPasswd; ///< Password TextEntry
32 TGTextBuffer *fPasswdText; ///< Passwd Buffer
33
34public:
35 TGPasswdDialog(const char *prompt, char *pwdbuf, Int_t pwdlenmax,
36 UInt_t w = 400, UInt_t h = 400);
37 virtual ~TGPasswdDialog();
38
39 void ReturnPressed();
40
41 // slots
42 void CloseWindow();
43 void DoClose();
44
45 ClassDef(TGPasswdDialog,0) // Dialog for entering passwords
46};
47
48#endif
#define h(i)
Definition RSha256.hxx:106
#define ClassDef(name, id)
Definition Rtypes.h:337
Graphic dialog to enter passwords.
TGTextButton * fOk
Ok button.
void ReturnPressed()
Handle return.
TGTransientFrame * fDialog
main frame of this widget
char * fPwdBuf
buffer where to store the passwd
void DoClose()
Handle close button.
TGTextEntry * fPasswd
Password TextEntry.
TGTextBuffer * fPasswdText
Passwd Buffer.
virtual ~TGPasswdDialog()
Delete log window.
void CloseWindow()
Called when closed via window manager action.
Int_t fPwdLenMax
passwd buffer length
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:498