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

  1. //
  2. //  $Id: FormObject.h,v 1.1.1.1 2000/06/02 22:23:00 sergey Exp $
  3. //
  4.  
  5. #ifndef _FormObject_h_
  6. #define _FormObject_h_
  7.  
  8.  
  9. namespace UI
  10. {
  11.     class Form;
  12.  
  13.  
  14.     //
  15.     //  Base class for all form objects
  16.     //
  17.     class FormObject
  18.     {
  19.     protected:
  20.         FormObject(Form& parent, Word objectID);
  21.         ~FormObject() {}
  22.  
  23.     private:
  24.         FormObject(const FormObject&);
  25.         FormObject& operator =(const FormObject&);
  26.  
  27.     // operations
  28.     public:
  29.         void setFocus();
  30.         bool hasFocus() const;
  31.  
  32.     // attributes
  33.  
  34.         Form& parent() const { return *_parent; }
  35.         Word objectID() const { return _objectID; }
  36.  
  37.     // data members
  38.     private:
  39.         Form*   _parent;
  40.         Word    _objectID;
  41.     };
  42. }
  43. // namespace UI
  44.  
  45. #endif // _FormObject_h_
  46.