File: FChooser.h

package info (click to toggle)
acfax 981011-17
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 672 kB
  • sloc: ansic: 5,502; makefile: 36
file content (90 lines) | stat: -rw-r--r-- 3,059 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 * FChooser.h : Public header file for the FileChooser widget
 *
 * George Ferguson, ferguson@cs.rochester.edu, 21 Jan 1993.
 *
 * This code is derived from the FileSelector widget by Brian Totty,
 * hence the following copyright applies:
 *
 * Copyright 1990,1991,1992 Brian Totty
 * 
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation for any purpose is hereby granted without fee,
 * provided that the above copyright notice appears in all copies and that
 * both that copyright notice and this permission notice appear in
 * supporting documentation, and that the name of Brian Totty or
 * University of Illinois not be used in advertising or publicity
 * pertaining to distribution of the software without specific, written
 * prior permission.  Brian Totty and University of Illinois make no
 * representations about the suitability of this software for any
 * purpose.  It is provided "as is" without express or implied warranty.
 *
 * Brian Totty and University of Illinois disclaim all warranties with
 * regard to this software, including all implied warranties of
 * merchantability and fitness, in no event shall Brian Totty or
 * University of Illinois be liable for any special, indirect or
 * consequential damages or any damages whatsoever resulting from loss of
 * use, data or profits, whether in an action of contract, negligence or
 * other tortious action, arising out of or in connection with the use or
 * performance of this software.
 *
 * Author:
 * 	Brian Totty
 * 	Department of Computer Science
 * 	University Of Illinois at Urbana-Champaign
 *	1304 West Springfield Avenue
 * 	Urbana, IL 61801
 * 
 * 	totty@cs.uiuc.edu
 * 	
 */ 

#ifndef _FCHOOSER_H
#define _FCHOOSER_H

#include <sys/param.h>
#include "DirMgr.h"

extern WidgetClass xfwfFileChooserWidgetClass;

typedef struct _XfwfFileChooserClassRec	*XfwfFileChooserWidgetClass;
typedef struct _XfwfFileChooserRec	*XfwfFileChooserWidget;

#ifndef XtNcurrentDirectory
#define	XtNcurrentDirectory		"currentDirectory"
#endif
#define	XtNcurrentFile			"currentFile"
#define	XtNsortMode			"sortMode"
#define	XtNpattern			"pattern"

#define	XtCPathname			"Pathname"
#define	XtCFilename			"Filename"

typedef struct _XfwfFileChooserReturnStruct
{
	char *directory;
	char *file;
} XfwfFileChooserReturnStruct;

/*---------------------------------------------------------------------------*

                  E X T E R N A L    F U N C T I O N S

 *---------------------------------------------------------------------------*/

#if (!NeedFunctionPrototypes)

void	XfwfFileChooserChangeDirectory();
void	XfwfFileChooserRefresh();
char	*XfwfFileChooserCurrentDirectory();
char	*XfwfFileChooserCurrentFile();

#else

void	XfwfFileChooserChangeDirectory(XfwfFileChooserWidget fcw, char *dir);
void	XfwfFileChooserRefresh(XfwfFileChooserWidget fcw);
char	*XfwfFileChooserCurrentDirectory(XfwfFileChooserWidget fcw);
char	*XfwfFileChooserCurrentFile(XfwfFileChooserWidget fcw);

#endif /* !NeedFunctionPrototypes */
#endif /* !_FCHOOSER_H */