home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / PrintCardForm.h < prev    next >
C/C++ Source or Header  |  2000-06-06  |  1KB  |  59 lines

  1. //
  2. //  $Id: PrintCardForm.h,v 1.3 2000/06/06 09:30:46 sergey Exp $
  3. //
  4.  
  5. #ifndef _PrintCardForm_h_
  6. #define _PrintCardForm_h_
  7.  
  8. #include "UI/Form.h"
  9. #include "UI/List.h"
  10. #include "UI/PopupList.h"
  11. #include "PrintStatusForm.h"
  12. #include "PrintCardModel.h"
  13.  
  14.  
  15. class PrintCardForm: public UI::Form
  16. {
  17. public:
  18.     PrintCardForm();
  19.  
  20. // operations
  21.  
  22.     virtual void create();
  23.  
  24. // event handlers
  25.  
  26.     virtual bool eventHandler(EventType* event);
  27.  
  28. protected:
  29.     virtual bool handleOpenFormEvent(Word formID);
  30.     virtual bool handleUpdateFormEvent(Word formID);
  31.     virtual bool handleCtlSelectEvent(Word controlID, bool on);
  32.     virtual bool handleMenuEvent(Word itemID);
  33.     virtual bool handleKeyDownEvent(char asciiChar, Word keyCode, Word modifiers);
  34.  
  35. // implememntation
  36. private:
  37.     void initNamesList();
  38.     void initCardsList();
  39.  
  40.     void namesListSelected(int index);
  41.     void cardsListSelected(int index);
  42.  
  43.     void drawPreviewImage();
  44.     void drawPreviewImage(BitmapPtr image);
  45.  
  46.     void showDefaultPreviewImage();
  47.     void hideDefaultPreviewImage();
  48.     void getPreviewImagePosition(short& x, short& y) const;
  49.  
  50. // data members
  51. private:
  52.     UI::PopupList   _names;
  53.     UI::List        _cards;
  54.  
  55.     PrintCardModel  _model;
  56. };
  57.  
  58. #endif  // _PrintCardForm_h_
  59.