home *** CD-ROM | disk | FTP | other *** search
- /*
- WMaskEdit.hpp
-
- NOTE: This file is a generated file.
- Do not modify it by hand!
- */
-
- #ifndef WMaskEdit_hpp_included
- #define WMaskEdit_hpp_included
-
-
- // Declarations added here will be included at the top of the .HPP file
-
- #include "sformat.hpp"
- #include <ctype.h>
-
- #define DEFAULT_PROMPT_CHAR '_'
- #define MASK_DIGIT '#'
- #define MASK_ALPHANUM '?'
- #define MASK_UPPERCASE 'U'
- #define MASK_LOWERCASE 'L'
- #define MASK_DECIMAL_SEP '.'
- #define MASK_THOUSANDS_SEP ','
- #define MASK_TIME_SEP ':'
- #define MASK_DATE_SEP '/'
- #define MASK_WILD '*'
- #define MASK_LITERAL '\\'
-
- class WMaskEdit : public WTextBox
- {
- public:
- public:
- // add your public instance data here
- private:
- // add your private instance data here
- WString _inputMask;
- WString _outputFormat;
- WString _promptStr;
- WString _rawText;
- WString _maskNoLiterals;
- WChar _promptChar;
- WInt _maskLen;
- WBool _useCurDate;
- WBool _restore;
- WDateOrder _dateOrder;
- char *_literalPos;
-
-
- protected:
- // add your protected instance data here
- public:
- WMaskEdit();
- public:
- ~WMaskEdit();
- public:
- WBool CreateEventHandler( WWindow *, WCreateEventData * );
- public:
- WBool LostFocusHandler( WWindow *, WFocusEventData * );
- public:
- WBool GotFocusHandler( WWindow *, WFocusEventData * );
- public:
- WString GetInputMask() const;
- public:
- void SetInputMask( WString mask );
- public:
- WString GetOutputFormat() const;
- public:
- void SetOutputFormat( WString format );
- public:
- WChar GetPromptChar() const;
- public:
- void SetPromptChar( WChar newchar );
- public:
- void SetUseCurrentDate( WBool val );
- public:
- WBool GetUseCurrentDate() const;
- public:
- void SetDateOrder( WDateOrder order );
- public:
- WBool ProcessMessage( const WMessage &msg, WLong &returns );
- private:
- WBool ProcessKeyPress( WInt key );
- private:
- WBool ProcessCharacter( WInt pos, WInt key );
- private:
- void PasteText();
- public:
- WBool ChangeEventHandler( WWindow *, WEventData * );
- };
-
- #endif
-