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 / Dialogs / DialogDemo / DialogPosterUI.h.z / DialogPosterUI.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  1.9 KB  |  67 lines

  1. //////////////////////////////////////////////////////////////
  2. //
  3. // Header file for DialogPosterUI
  4. //
  5. //////////////////////////////////////////////////////////////
  6. #ifndef _DialogPosterUI_H
  7. #define _DialogPosterUI_H
  8. #include <Vk/VkComponent.h>
  9.  
  10.  
  11. class DialogPosterUI : public VkComponent
  12.  
  13.   private: 
  14.  
  15.     // Array that describes interactions with Xt resource manager
  16.  
  17.     static String      _defaultDialogPosterUIResources[];
  18.  
  19.     // Callbacks to interface with Motif
  20.  
  21.     static void changeModalCallback (Widget, XtPointer, XtPointer);
  22.     static void changeToErrorCallback (Widget, XtPointer, XtPointer);
  23.     static void changeToQuestionCallback (Widget, XtPointer, XtPointer);
  24.     static void changeToWarningCallback (Widget, XtPointer, XtPointer);
  25.     static void postCallback (Widget, XtPointer, XtPointer);
  26.     static void unpostAllCallback (Widget, XtPointer, XtPointer);
  27.     static void unpostLastCallback (Widget, XtPointer, XtPointer);
  28.  
  29.   protected: 
  30.  
  31.     // Widgets created by this class
  32.  
  33.     Widget  _error;
  34.     Widget  _grid;
  35.     Widget  _modal;
  36.     Widget  _post;
  37.     Widget  _question;
  38.     Widget  _radioBox;
  39.     Widget  _radioBox1;
  40.     Widget  _rowColumn;
  41.     Widget  _separator;
  42.     Widget  _separator1;
  43.     Widget  _unpostall;
  44.     Widget  _unpostlast;
  45.     Widget  _warning;
  46.  
  47.     // These virtual functions are called from the private callbacks (above)
  48.     // Intended to be overriden in derived classes to define actions
  49.  
  50.     virtual void changeModal ( Widget, XtPointer );
  51.     virtual void changeToError ( Widget, XtPointer );
  52.     virtual void changeToQuestion ( Widget, XtPointer );
  53.     virtual void changeToWarning ( Widget, XtPointer );
  54.     virtual void post ( Widget, XtPointer );
  55.     virtual void unpostAll ( Widget, XtPointer );
  56.     virtual void unpostLast ( Widget, XtPointer );
  57.  
  58.   public:
  59.  
  60.     DialogPosterUI(const char *, Widget);
  61.     ~DialogPosterUI();
  62.     const char* className();
  63. };
  64. #endif
  65.  
  66.