home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / share / src / ViewKit / Components / Rolodex / Command.h.z / Command.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  845 b   |  37 lines

  1. //////////////////////////////////////////////////////////
  2. // Command.h: A component that allows the user to issue 
  3. //            commands in the rolodex
  4. //////////////////////////////////////////////////////////
  5. #ifndef Command_H
  6. #define Command_H
  7.  
  8. #include <Vk/VkComponent.h>
  9.  
  10. class Address;
  11. class Database;
  12.  
  13. class Command : public VkComponent {
  14.  
  15.   private:
  16.  
  17.     Address  *_addr;
  18.     Database *_db;
  19.  
  20.     static void clearCallback(Widget,  XtPointer, XtPointer);
  21.     static void addCallback(Widget,    XtPointer, XtPointer);
  22.     static void removeCallback(Widget, XtPointer, XtPointer);
  23.  
  24.     Widget _clearBtn, _addBtn, _removeBtn;
  25.  
  26.     void clear(Widget, XtPointer);
  27.     void add(Widget, XtPointer);
  28.     void remove(Widget, XtPointer);
  29.     
  30.   public:
  31.     
  32.     Command ( Widget, char *, Address *addr, Database * );
  33.    ~Command();
  34. };
  35.  
  36. #endif   
  37.