OpenFile.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: OpenFile.h /main/4 1995/11/01 16:08:37 rswiston $ */
  24. /******************************************************************************
  25. OpenFile.h
  26. This header file is included by OpenFile.c
  27. ******************************************************************************/
  28. #ifndef _OPENFILE_H_INCLUDED
  29. #define _OPENFILE_H_INCLUDED
  30. #include <stdio.h>
  31. #include <Xm/Xm.h>
  32. #include <Xm/MwmUtil.h>
  33. #include <Xm/DialogS.h>
  34. #include <Xm/MenuShell.h>
  35. #include "UxXt.h"
  36. #include <Xm/FileSB.h>
  37. /******************************************************************************
  38. The definition of the context structure:
  39. If you create multiple copies of your interface, the context
  40. structure ensures that your callbacks use the variables for the
  41. correct copy.
  42. For each swidget in the interface, each argument to the Interface
  43. function, and each variable in the Interface Specific section of the
  44. Declarations Editor, there is an entry in the context structure.
  45. and a #define. The #define makes the variable name refer to the
  46. corresponding entry in the context structure.
  47. ******************************************************************************/
  48. typedef struct
  49. {
  50. Widget UxOpenFile;
  51. } _UxCOpenFile;
  52. #ifdef CONTEXT_MACRO_ACCESS
  53. static _UxCOpenFile *UxOpenFileContext;
  54. #define OpenFile UxOpenFileContext->UxOpenFile
  55. #endif /* CONTEXT_MACRO_ACCESS */
  56. /*******************************************************************************
  57. Declarations of global functions.
  58. *******************************************************************************/
  59. Widget create_OpenFile(void);
  60. #endif /* _OPENFILE_H_INCLUDED */