af_aux.h 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: af_aux.h /main/5 1995/11/01 16:09:45 rswiston $ */
  24. /*****************************************************************************/
  25. /* */
  26. /* af_aux.h */
  27. /* */
  28. /* Header file for af_aux.c */
  29. /* */
  30. /*****************************************************************************/
  31. #ifndef _AF_AUX_H_INCLUDED
  32. #define _AF_AUX_H_INCLUDED
  33. #include "UxXt.h"
  34. #ifndef STORAGECLASS
  35. #ifdef NOEXTERN
  36. #define STORAGECLASS
  37. #else
  38. #define STORAGECLASS extern
  39. #endif
  40. #endif
  41. /*****************************************************************************/
  42. /* */
  43. /* Constants */
  44. /* */
  45. /*****************************************************************************/
  46. /*****************************************************************************/
  47. /* */
  48. /* Swidget Macro Definitions */
  49. /* */
  50. /*****************************************************************************/
  51. #define FILE_CHARACTERISTICS_SWID (FileCharacteristics)
  52. #define FA_TINY_ICON_BUTTON_SWID (AF_TinyIconButton)
  53. #define FA_MED_ICON_BUTTON_SWID (AF_MedIconButton)
  54. /*****************************************************************************/
  55. /* */
  56. /* Widget Macro Definitions */
  57. /* */
  58. /*****************************************************************************/
  59. #define FILE_CHARACTERISTICS (UxGetWidget(FILE_CHARACTERISTICS_SWID))
  60. #define FA_TINY_ICON_BUTTON (UxGetWidget(FA_TINY_ICON_BUTTON_SWID))
  61. #define FA_MED_ICON_BUTTON (UxGetWidget(FA_MED_ICON_BUTTON_SWID))
  62. /*****************************************************************************/
  63. /* */
  64. /* Function Declarations */
  65. /* */
  66. /*****************************************************************************/
  67. void load_filetype_icons (Widget, XtPointer, XmFileSelectionBoxCallbackStruct *);
  68. void clear_filetype_icon (void);
  69. Widget get_selected_filetype_icon (void);
  70. void activateCB_filetype_icon (Widget, XtPointer, DtIconCallbackStruct *);
  71. void readAFFromGUI (FiletypeData *);
  72. void getAF_FiletypeName (FiletypeData *);
  73. void getAF_IDChars (FiletypeData *);
  74. void getAF_HelpText (FiletypeData *);
  75. void getAF_Icons (FiletypeData *);
  76. void getAF_OpenCmd (FiletypeData *);
  77. void getAF_PrintCmd (FiletypeData *);
  78. void init_AddFiletype (FiletypeData *);
  79. void free_Filetypedata(FiletypeData *);
  80. void init_AddFiletype_dialog_fields(FiletypeData *pFtD);
  81. void clear_AddFiletype_dialog_fields(void);
  82. void AddFiletypeToList();
  83. void UpdateFiletypeDataArray();
  84. Boolean AddFiletypeCheckFields(void);
  85. #endif /* _AF_AUX_H_INCLUDED */