2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: AttachCmds.h /main/3 1995/11/06 16:04:23 rswiston $ */
25 #include "UIComponent.h"
27 #include "AttachArea.h"
28 #include "DialogManager.h"
30 #ifndef ATTACHADDCMD_H
31 #define ATTACHADDCMD_H
33 typedef enum { OK, ERR, CONFIRM } SaveFileState;
35 class AttachAddCmd : public Cmd {
41 void cancel( XtPointer ); // Called when the Cancel button is pressed
42 void ok( Widget, XtPointer );// Called when the OK button is pressed
43 void add_file(char *);
44 AttachArea *_attachArea;
46 static void okCallback( Widget, XtPointer, XtPointer );
47 static void cancelCallback( Widget, XtPointer, XtPointer );
52 virtual void undoit();
56 AttachAddCmd ( AttachArea *, Widget, Widget, char *, int );
58 virtual const char *const className () { return "AttachAddCmd"; }
62 #ifndef ATTACHFETCHCMD_H
63 #define ATTACHFETCHCMD_H
65 class AttachFetchCmd : public Cmd {
70 AttachArea *_attachArea;
75 virtual void undoit();
79 AttachFetchCmd ( AttachArea *, char *, int );
81 virtual const char *const className () { return "AttachFetchCmd"; }
86 #ifndef ATTACHDELETECMD_H
87 #define ATTACHDELETECMD_H
89 class AttachDeleteCmd : public Cmd {
93 AttachArea *_attachArea;
98 virtual void undoit();
102 AttachDeleteCmd ( AttachArea *, char *, int );
104 virtual const char *const className () { return "AttachDeleteCmd"; }
109 #ifndef ATTACHOPENCMD_H
110 #define ATTACHOPENCMD_H
112 class AttachOpenCmd : public Cmd {
117 void cancel( XtPointer ); // Called when the Cancel button is pressed
118 void ok( XtPointer ); // Called when the OK button is pressed
120 static void okCallback( Widget, XtPointer, XtPointer );
121 static void cancelCallback( Widget, XtPointer, XtPointer );
122 AttachArea *_attachArea;
127 virtual void undoit();
131 AttachOpenCmd ( AttachArea *, char *, int );
133 virtual const char *const className () { return "AttachOpenCmd"; }
138 #ifndef ATTACHRENAMECMD_H
139 #define ATTACHRENAMECMD_H
141 class AttachRenameCmd : public Cmd {
145 AttachArea *_attachArea;
146 void cancel( XtPointer ); // Called when the Cancel button is pressed
147 static void cancelCallback( Widget, XtPointer, XtPointer );
148 void ok( XtPointer ); // Called when the OK button is pressed
149 static void okCallback( Widget, XtPointer, XtPointer );
154 virtual void undoit();
158 AttachRenameCmd ( AttachArea *, Widget, char *, int );
160 virtual const char *const className () { return "AttachRenameCmd"; }
164 #ifndef ATTACHDESCRIPTIONCMD_H
165 #define ATTACHDESCRIPTIONCMD_H
167 class AttachDescriptionCmd : public Cmd {
171 AttachArea *_attachArea;
172 void cancel( XtPointer ); // Called when the Cancel button is pressed
173 static void cancelCallback( Widget, XtPointer, XtPointer );
174 void ok( XtPointer ); // Called when the OK button is pressed
175 static void okCallback( Widget, XtPointer, XtPointer );
180 virtual void undoit();
184 AttachDescriptionCmd ( AttachArea *, Widget, char *, int );
186 virtual const char *const className () { return "AttachDescriptionCmd"; }
191 #ifndef ATTACHSAVEASCMD_H
192 #define ATTACHSAVEASCMD_H
194 class AttachSaveAsCmd : public Cmd {
200 void cancel( XtPointer ); // Called when the Cancel button is pressed
201 void ok( XtPointer ); // Called when the OK button is pressed
202 AttachArea *_attachArea;
204 static void okCallback( Widget, XtPointer, XtPointer );
205 static void cancelCallback( Widget, XtPointer, XtPointer );
210 virtual void undoit();
214 AttachSaveAsCmd ( AttachArea *, Widget, Widget, char *, int );
216 virtual const char *const className () { return "AttachSaveAsCmd"; }
221 #ifndef ATTACHSELECTALLCMD_H
222 #define ATTACHSELECTALLCMD_H
224 class AttachSelectAllCmd : public Cmd {
228 AttachArea *_attachArea;
233 virtual void undoit();
237 AttachSelectAllCmd ( AttachArea *, char *, int );
239 virtual const char *const className () { return "AttachSelectAllCmd"; }
244 #ifndef ATTACHUNDELETECMD_H
245 #define ATTACHUNDELETECMD_H
247 class AttachUndeleteCmd : public Cmd {
251 AttachArea *_attachArea;
256 virtual void undoit();
260 AttachUndeleteCmd ( AttachArea *, char *, int );
262 virtual const char *const className () { return "AttachUndeleteCmd"; }
267 #ifndef ATTACHUNSELECTALLCMD_H
268 #define ATTACHUNSELECTALLCMD_H
270 class AttachUnselectAllCmd : public Cmd {
274 AttachArea *_attachArea;
279 virtual void undoit();
283 AttachUnselectAllCmd ( AttachArea *, char *, int );
285 virtual const char *const className () { return "AttachUnselectAllCmd"; }
289 #ifndef ATTACHINFOCMD_H
290 #define ATTACHINFOCMD_H
292 class AttachInfoCmd : public Cmd {
296 AttachArea *_attachArea;
298 DialogManager *_attachInfoDialogManager;
303 virtual void undoit();
307 AttachInfoCmd ( AttachArea *, char *, int );
310 virtual const char *const className () { return "AttachInfoCmd"; }