home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KVALCURR.HPP < prev    next >
C/C++ Source or Header  |  1994-04-18  |  910b  |  43 lines

  1. #ifndef _KVALCURR_
  2. #define _KVALCURR_
  3.  
  4. #ifndef _KVALID_
  5.    #include <kvalid.hpp>
  6. #endif
  7.  
  8. #ifndef _ISTRING_
  9.    #include <istring.hpp>
  10. #endif
  11.  
  12. /*----------------------------------------------------------------------
  13.  * Class: KCurrencyValidator
  14.  *
  15.  * Implementation File: kvalid.cpp
  16.  *
  17.  * Base Class: Derived from KValidator
  18.  *
  19.  * Purpose: Allows the user to enter currency values in an entry field.
  20.  *
  21.  * Notes:
  22.  *--------------------------------------------------------------------*/
  23. class _Export KCurrencyValidator : public KValidator
  24. {
  25.    public:
  26.       KCurrencyValidator();
  27.  
  28.    private:
  29.       struct Settings
  30.       {
  31.          Settings();
  32.          unsigned currencyFormat;
  33.          IString  currencySign;
  34.          IString  thousandsSeparator;
  35.          IString  decimalSeparator;
  36.          unsigned decimalDigits;
  37.       };
  38.       static Settings settings;
  39. };
  40.  
  41.  
  42. #endif
  43.