1 /********************************************************************
2 This file is part of the abs 0.907 distribution.  abs is a spreadsheet
3 with graphical user interface.
4 
5 Copyright (C) 1998-2001  Andr� Bertin (Andre.Bertin@ping.be)
6 
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version if in the same spirit as version 2.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 Concact: abs@pi.be
22          http://home.pi.be/bertin/abs.shtml
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 #ifndef FILESELECTOR_H
52 #define FILESELECTOR_H
53 Boolean IsDirectory (char *root, char *path);
54 int MakePrompt (Widget centerw, char *prompt, void (*func) (), char *def);
55 void remake_list ();
56 void freelist ();
57 void change_dir (Widget w, XtPointer closure, XtPointer call_data);
58 void MakeFullPath (char *root, char *filename, char *pathname);
59 void set_filename (Widget w, XtPointer closure, XtPointer call_data);
60 Widget gettop ();
61 
62 void cb_Accept (Widget w, XtPointer client_data, XtPointer call_data);
63 void AcceptAction (Widget widget, XEvent * event, String * params, Cardinal * num_params);
64 
65 void cb_Cancel (Widget w, XtPointer client_data, XtPointer call_data);
66 void CancelAction (Widget widget, XEvent * event, String * params, Cardinal * num_params);
67 
68 void cb_Rescan (Widget w, XtPointer client_data, XtPointer call_data);
69 void RescanAction (Widget widget, XEvent * event, String * params, Cardinal * num_params);
70 
71 #endif
72