home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Sgm / FinderP.h.z / FinderP.h
C/C++ Source or Header  |  1996-03-14  |  2KB  |  97 lines

  1. #ifndef _SGFINDERP_H_
  2. #define _SGFINDERP_H_
  3.  
  4. #include "Finder.h"
  5. #include <Xm/ManagerP.h>
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11.  
  12. #define MAXDIVS 255
  13.  
  14. #define MIN_TEXT_WIDTH 40
  15. #define DESIRED_SEPARATOR 2
  16.  
  17. /* Finder class structure */
  18.  
  19. typedef struct _SgFinderClassPart
  20. {
  21.    int foo;
  22. #ifdef __sgi
  23. /* Allow future extensions without breaking shared library compatibility */
  24.    caddr_t _SG_vendorExtension;
  25. #endif /* __sgi */
  26. } SgFinderClassPart;
  27.  
  28.  
  29. /* Full class record declaration for Finder class */
  30.  
  31. typedef struct _SgFinderClassRec {
  32.     CoreClassPart       core_class;
  33.     CompositeClassPart  composite_class;
  34.     ConstraintClassPart constraint_class;
  35.     XmManagerClassPart  manager_class;
  36.     SgFinderClassPart    finder_class;
  37. } SgFinderClassRec;
  38.  
  39.  
  40. externalref SgFinderClassRec sgFinderClassRec;
  41.  
  42. /* Finder instance record */
  43.  
  44. typedef struct _SgFinderPart
  45. {
  46.  
  47.   Widget dropPocket;
  48.   Widget zbText;
  49.   Widget zoomBar;
  50.   Widget text;
  51.   Widget historyBar;
  52.  
  53.   Dimension divisions[MAXDIVS];
  54.   XFontStruct * fontStruct;
  55.  
  56.   int divisionCount;
  57.   XmTextPosition oldFirstPos, oldLastPos;
  58.   unsigned char separator;
  59.  
  60.   Boolean addHistoryOnActivate;
  61.   Boolean useDropPocket;
  62.   Boolean useHistoryMenu;
  63.   Pixmap historyPixmap;
  64.   Pixmap insensitiveHistoryPixmap;
  65.  
  66.   XtCallbackList activate_callback;
  67.   XtCallbackList value_changed_callback;
  68.  
  69.   SgSetTextFunc setTextSectionFunc;
  70.  
  71. #ifdef __sgi
  72. /* Allow future extensions without breaking shared library compatibility */
  73.    caddr_t _SG_vendorExtension;
  74. #endif /* __sgi */
  75. } SgFinderPart;
  76.  
  77.  
  78. /* Full instance record declaration */
  79.  
  80. typedef struct _SgFinderRec {
  81.    CorePart      core;
  82.    CompositePart  composite;
  83.    ConstraintPart constraint;
  84.    XmManagerPart  manager;
  85.    SgFinderPart    finder;
  86. } SgFinderRec;
  87.  
  88.  
  89. #ifdef __cplusplus
  90. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  91. #endif
  92.  
  93. #endif /* _XmPButtonP_h */
  94. /* DON'T ADD ANYTHING AFTER THIS #endif */
  95.  
  96.  
  97.