4 * password edit text box control.
6 * Portable Windows Library
8 * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25 * All Rights Reserved.
27 * Contributor(s): ______________________________________.
30 * Revision 1.12 2001/05/22 12:49:33 robertj
31 * Did some seriously wierd rewrite of platform headers to eliminate the
32 * stupid GNU compiler warning about braces not matching.
34 * Revision 1.11 1999/03/10 03:49:53 robertj
35 * More documentation adjustments.
37 * Revision 1.10 1999/03/09 08:01:49 robertj
38 * Changed comments for doc++ support (more to come).
40 * Revision 1.9 1999/02/16 08:08:46 robertj
41 * MSVC 6.0 compatibility changes.
43 * Revision 1.8 1998/09/23 06:28:29 robertj
44 * Added open source copyright license.
46 * Revision 1.7 1995/06/04 12:35:21 robertj
47 * Added common constructor - Unix implementation requirement.
48 * Removed redundent destructor.
50 * Revision 1.6 1995/03/14 12:42:19 robertj
51 * Updated documentation to use HTML codes.
53 * Revision 1.5 1995/01/14 06:19:23 robertj
56 * Revision 1.4 1994/10/30 11:46:57 robertj
57 * Changed mechanism for doing notification callback functions.
59 * Revision 1.3 1994/08/23 11:32:52 robertj
62 * Revision 1.2 1994/08/22 00:46:48 robertj
63 * Added pragma fro GNU C++ compiler.
65 * Revision 1.1 1994/04/11 14:15:05 robertj
70 #define _PPASSWORDEDITBOX
76 /**This class is a text editing box that does not display characters entered.
77 It is typically used for entering password in secure systems. Other than
78 the display of a simgle character for all real characters entered it is
79 identical to the ancestor \Ref{PEditBox}.
81 class PPasswordEditBox
: public PEditBox
83 PCLASSINFO(PPasswordEditBox
, PEditBox
);
86 /** Create a password edit box control. */
88 PInteractor
* parent
/// Interactor into which the control is placed.
91 /** Create control from interactor layout with the specified control ID. */
93 PInteractorLayout
* parent
, /// Interactor into which the box is placed.
94 PRESOURCE_ID ctlID
, /// Identifier for the control in the layout.
95 const PNotifier
& notify
, /// Function to call when changes state.
96 PString
* valuePtr
/// Variable to change to the editor value.
100 /**@name New functions for class */
101 /**Set the character displayed instead of entered characters. This gives
102 the user feedback on how many characters were entered but not what
105 void SetPasswordCharacter(
106 char c
/// New character to display.
109 /**Get the character displayed instead of entered characters. This gives
110 the user feedback on how many characters were entered but not what
114 character to display.
116 char GetPasswordCharacter();
121 // Common construction code.
124 // Include platform dependent part of class
125 #include <pwlib/pwedbox.h>
129 // End Of File ///////////////////////////////////////////////////////////////