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 MYDIALOG_H 52 #define MYDIALOG_H 53 #include <X11/Intrinsic.h> 54 #include <X11/StringDefs.h> 55 #include <X11/Xaw/AsciiText.h> 56 #include <X11/Core.h> 57 #include <X11/Xaw/Command.h> 58 #include <X11/Xaw/Form.h> 59 #include <X11/Xaw/Label.h> 60 #include <X11/Xaw/Paned.h> 61 #include <X11/Xaw/Panner.h> 62 #include <X11/Xaw/Porthole.h> 63 #include <X11/Xaw/Viewport.h> 64 #include <X11/Xaw/Box.h> 65 #include <X11/Xaw/Dialog.h> 66 #include <X11/Xaw/AsciiText.h> 67 #include <X11/Shell.h> 68 #include <X11/Xaw/MenuButton.h> 69 #include <X11/Xaw/SimpleMenu.h> 70 #include <X11/Xaw/Box.h> 71 #include <X11/Xaw/SmeBSB.h> 72 #include <X11/Xaw/List.h> 73 #include <X11/RectObj.h> 74 #include <stdio.h> 75 #include <sys/stat.h> 76 #include <dirent.h> 77 #include "param.h" 78 79 typedef struct 80 { 81 int activeprompt; 82 Widget pane_btn[20]; 83 Widget pane_child[20][21]; 84 int npane_child[20]; 85 int active_pane; 86 int npane; 87 int touched_pane[20]; 88 Widget promptDialog; 89 Widget promptShell; 90 void (*promptfunction) (); 91 void (*popupcb) (); 92 Widget parent; 93 } 94 ThumbDialog; 95 96 97 98 extern int 99 addpanechild (ThumbDialog * td, int i, Widget w); 100 101 extern ThumbDialog * 102 CreateThumbDialog (Widget parent, int npane, char **panename, void (*func) (), void (*cbfunc) ()); 103 104 105 106 extern void 107 paneselect (Widget widget, XtPointer pointer, XtPointer junk); 108 109 extern int 110 activepane (ThumbDialog * td, int a); 111 112 extern void 113 PromptCancelAction (Widget widget, XtPointer pointer, XtPointer junk); 114 115 extern void 116 PromptAcceptAction (Widget widget, XtPointer pointer, XtPointer junk); 117 118 extern void 119 display_prompt (ThumbDialog * td, Widget centerw); 120 121 extern void 122 childtouched (Widget widget, XtPointer pointer, XtPointer junk); 123 124 extern int * 125 get_touched_pane (ThumbDialog * td); 126 127 extern Widget 128 get_base (ThumbDialog * td); 129 #endif 130