ca_aux.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: ca_aux.h /main/5 1995/11/01 16:10:18 rswiston $ */
  24. /***************************************************************************/
  25. /* */
  26. /* Header file for ca_aux.c */
  27. /* */
  28. /***************************************************************************/
  29. #ifndef _CA_AUX_H_INCLUDED
  30. #define _CA_AUX_H_INCLUDED
  31. #include "UxXt.h"
  32. #if !defined(_DIRENT_H)
  33. #include <dirent.h>
  34. #endif
  35. #if !defined(_DtIcon_h_)
  36. #include <Dt/Icon.h>
  37. #endif
  38. /***************************************************************************/
  39. /* */
  40. /* Constants */
  41. /* */
  42. /***************************************************************************/
  43. #define EQUAL 0
  44. #define NOT_EQUAL 1
  45. /***************************************************************************/
  46. /* */
  47. /* Macros */
  48. /* */
  49. /***************************************************************************/
  50. /***************************************************************************/
  51. /* */
  52. /* Function Declarations */
  53. /* */
  54. /***************************************************************************/
  55. void initAD( ActionData *pAD );
  56. void readCAFromGUI (struct _ActionData *ca_struct);
  57. void getCAactionName (struct _ActionData *ca_struct);
  58. void getCAdblClkCmd (struct _ActionData *ca_struct);
  59. void getCAactionHelpText (struct _ActionData *ca_struct);
  60. void getCAactionOpensText (struct _ActionData *ca_struct);
  61. void getCAwindowType (struct _ActionData *ca_struct);
  62. void writeCAToGUI (struct _ActionData *ca_struct);
  63. void putCAactionName (struct _ActionData *ca_struct);
  64. void putCAdblClkCmd (struct _ActionData *ca_struct);
  65. void putCAfileTypes (struct _ActionData *ca_struct);
  66. void putCAactionOpensText (struct _ActionData *ca_struct);
  67. void putCAwindowType (struct _ActionData *ca_struct);
  68. void putCAactionHelpText (struct _ActionData *ca_struct);
  69. void putCAactionIcons (struct _ActionData *ca_struct);
  70. void putCAdropFiletypes (ActionData *pAD);
  71. void set_ca_dialog_height (void);
  72. Widget get_selected_action_icon (void);
  73. Boolean CreateActionAppShellCheckFields(void);
  74. void FreeAndClearAD(ActionData *pAD);
  75. void clear_CreateActionAppShell_fields(void);
  76. Boolean compareAD(ActionData *pAD1, ActionData *pAD2);
  77. ActionData *copyAD(ActionData *pAD);
  78. void FreeResources (void);
  79. /***************************************************************************/
  80. /* */
  81. /* Callbacks for Create Action 'File' menu */
  82. /* */
  83. /***************************************************************************/
  84. void activateCB_FileNew (Widget wid, XtPointer cdata,
  85. XtPointer cbstruct);
  86. void activateCB_FileOpen (Widget wid, XtPointer cdata,
  87. XtPointer cbstruct);
  88. void activateCB_FileQuit (Widget wid, XtPointer cdata,
  89. XtPointer cbstruct);
  90. /***************************************************************************/
  91. /* */
  92. /* Callbacks for Create Action 'Options' menu */
  93. /* */
  94. /***************************************************************************/
  95. void activateCB_ExpertOption (Widget wid, XtPointer client_data, XtPointer *cbs);
  96. void valueChangedCB_ColorMonoOption (Widget, XtPointer,
  97. XmToggleButtonCallbackStruct *);
  98. void createCB_ColorMonoOption (Widget);
  99. /***************************************************************************/
  100. /* */
  101. /* Callbacks for Create Action Panel Buttons */
  102. /* */
  103. /***************************************************************************/
  104. void activateCB_action_icon (Widget wid, XtPointer client_data,
  105. DtIconCallbackStruct *cbs);
  106. void activateCB_add_filetype (Widget wid, XtPointer client_data,
  107. XmPushButtonCallbackStruct *cbs);
  108. void activateCB_edit_filetype (Widget wid, XtPointer client_data,
  109. XmPushButtonCallbackStruct *cbs);
  110. #endif /* _CA_AUX_H_INCLUDED */