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 / Finder.h.z / Finder.h
C/C++ Source or Header  |  1996-03-14  |  3KB  |  106 lines

  1. /***********************************************************************
  2.  *
  3.  * Finder Widget
  4.  *
  5.  ***********************************************************************/
  6.  
  7. #ifndef _SGFINDER_H_
  8. #define _SGFINDER_H_
  9.  
  10. #include <Xm/Xm.h>
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. #ifndef SgIsFinder
  17. #define SgIsFinder(w) XtIsSubclass(w, sgFinderWidgetClass)
  18. #endif /* SgIsFinder */
  19.  
  20. /* Definitions of char constants for resources */
  21. #ifndef SgNaddHistoryOnActivate
  22. #define SgNaddHistoryOnActivate "addHistoryOnActivate"
  23. #endif
  24. #ifndef SgCAddHistoryOnActivate
  25. #define SgCAddHistoryOnActivate "AddHistoryOnActivate"
  26. #endif
  27. #ifndef SgNseparator
  28. #define SgNseparator "separator"
  29. #endif
  30. #ifndef SgCSeparator
  31. #define SgCSeparator "Separator"
  32. #endif
  33. #ifndef SgNsetTextSectionFunc
  34. #define SgNsetTextSectionFunc "setTextSectionFunc"
  35. #endif
  36. #ifndef SgCSetTextSectionFunc
  37. #define SgCSetTextSectionFunc "SetTextSectionFunc"
  38. #endif
  39. #ifndef SgNhistoryPixmap
  40. #define SgNhistoryPixmap "historyPixmap"
  41. #endif
  42. #ifndef SgCHistoryPixmap
  43. #define SgCHistoryPixmap "HistoryPixmap"
  44. #endif
  45. #ifndef SgNinsensitiveHistoryPixmap
  46. #define SgNinsensitiveHistoryPixmap "insensitiveHistoryPixmap"
  47. #endif
  48. #ifndef SgCInsensitiveHistoryPixmap
  49. #define SgCInsensitiveHistoryPixmap "InsensitiveHistoryPixmap"
  50. #endif
  51. #ifndef SgNuseDropPocket
  52. #define SgNuseDropPocket "useDropPocket"
  53. #endif
  54. #ifndef SgCUseDropPocket
  55. #define SgCUseDropPocket "UseDropPocket"
  56. #endif
  57. #ifndef SgNuseHistoryMenu
  58. #define SgNuseHistoryMenu "useHistoryMenu"
  59. #endif
  60. #ifndef SgCUseHistoryMenu
  61. #define SgCUseHistoryMenu "UseHistoryMenu"
  62. #endif
  63.  
  64. #define SgFINDER_TEXT 0
  65. #define SgFINDER_ZOOM_BAR 1
  66. #define SgFINDER_DROP_POCKET 2
  67. #define SgFINDER_HISTORY_MENUBAR 3
  68.  
  69. /* Finder Widget */
  70.  
  71. externalref WidgetClass sgFinderWidgetClass;
  72.  
  73. typedef struct _SgFinderClassRec *SgFinderWidgetClass;
  74. typedef struct _SgFinderRec      *SgFinderWidget;
  75.  
  76.  
  77. /********    Public Function Declarations    ********/
  78.  
  79.  
  80. typedef void (*SgSetTextFunc)(Widget ft, int section);
  81.  
  82. extern Widget SgCreateFinder( 
  83.                         Widget parent,
  84.                         char *name,
  85.                         ArgList arglist,
  86.                         Cardinal argcount) ;
  87.  
  88. extern void SgFinderAddHistoryItem(  Widget w, char * str );
  89. extern void SgFinderClearHistory( Widget w );
  90. extern char * SgFinderGetTextString( Widget w );
  91. extern void SgFinderSetTextString( Widget w, char * value );
  92. extern Widget SgFinderGetChild( Widget w, int child );
  93.  
  94. /********    End Public Function Declarations    ********/
  95.  
  96.  
  97. #ifdef __cplusplus
  98. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  99. #endif
  100.  
  101. #endif /* _SGFINDER_H_ */
  102. /* DON'T ADD ANYTHING AFTER THIS #endif */
  103.  
  104.  
  105.  
  106.