home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / PrintCardPreferencesForm.h < prev    next >
C/C++ Source or Header  |  2000-06-10  |  947b  |  46 lines

  1. //
  2. //  $Id: PrintCardPreferencesForm.h,v 1.1 2000/06/10 00:19:50 sergey Exp $
  3. //
  4.  
  5. #ifndef _PrintCardPreferencesForm_h_
  6. #define _PrintCardPreferencesForm_h_
  7.  
  8. #include "UI/Form.h"
  9.  
  10.  
  11. class PrintCardPreferences;
  12.  
  13. //
  14. // PrintCard preferneces dialog
  15. //
  16. //
  17. class PrintCardPreferencesForm: public UI::Form
  18. {
  19. public:
  20.     PrintCardPreferencesForm(Word formID, PrintCardPreferences& preferences);
  21.  
  22. // operations
  23.  
  24.     virtual void create();
  25.  
  26. // event handlers
  27. protected:
  28.     bool handleCtlSelectEvent(Word controlID, bool on);
  29.  
  30. // implementation
  31. private:
  32.     void loadPreferences();
  33.     void savePreferences();
  34.  
  35.     int fieldIntValue(Word fieldID) const;
  36.     void setFieldIntValue(Word fieldID, int value);
  37.     int controlValue(Word controlID) const;
  38.     void setControlValue(Word controlID, int value);
  39.  
  40. // data members
  41. private:
  42.     PrintCardPreferences& _preferences;
  43. };
  44.  
  45. #endif  // _PrintCardPreferencesForm_h_
  46.