/[gnustep]/gnustep/usr-apps/gworkspace/GWorkspace/GWorkspace.h
ViewVC logotype

Contents of /gnustep/usr-apps/gworkspace/GWorkspace/GWorkspace.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Oct 4 14:45:18 2003 UTC (20 years, 6 months ago) by esersale
Branch: MAIN
Changes since 1.7: +2 -2 lines
File MIME type: text/plain

2003-10-03 Enrico Sersale  <enrico@imago.ro>

  * GWorkspace/FileOperations/FileOperation.m
    -calculateNumFiles doesn't block anymore.
    the stop button now works.

  * Viewers/SmallIconsViewer/SmallIconsPanel.m
    in -selectIconWithPath: now the view scroll to show the icon.
-

1 /* GWorkspace.h
2 *
3 * Copyright (C) 2003 Free Software Foundation, Inc.
4 *
5 * Author: Enrico Sersale <enrico@imago.ro>
6 * Date: August 2001
7 *
8 * This file is part of the GNUstep GWorkspace application
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 */
24
25
26 #ifndef GWORKSPACE_H
27 #define GWORKSPACE_H
28
29 #include <AppKit/NSApplication.h>
30 #ifdef GNUSTEP
31 #include "GWProtocol.h"
32 #else
33 #include <GWorkspace/GWProtocol.h>
34 #endif
35
36 #define NOEDIT 0
37 #define NOXTERM 1
38
39 @class NSString;
40 @class NSArray;
41 @class NSMutableArray;
42 @class NSMutableDictionary;
43 @class NSNotification;
44 @class NSTimer;
45 @class NSFileManager;
46 @class NSWorkspace;
47 @class ViewersWindow;
48 @class InspectorsController;
49 @class PrefController;
50 @class FinderController;
51 @class AppsViewer;
52 @class Fiend;
53 @class Recycler;
54 @class History;
55 @class DesktopWindow;
56 @class DesktopView;
57 @class TShelfWin;
58 @class FileOperation;
59 @class OpenWithController;
60 @class RunExternalController;
61
62 @interface GWorkspace : NSObject <GWProtocol>
63 {
64 NSString *defEditor, *defXterm, *defXtermArgs;
65
66 NSMutableArray *operations;
67 int oprefnum;
68 BOOL showFileOpStatus;
69
70 InspectorsController *inspController;
71 NSArray *selectedPaths;
72
73 AppsViewer *appsViewer;
74 FinderController *finder;
75 PrefController *prefController;
76 Fiend *fiend;
77 History *history;
78
79 ViewersWindow *rootViewer, *currentViewer;
80 NSMutableArray *viewers;
81 NSMutableArray *viewersSearchPaths;
82 NSMutableArray *viewersTemplates;
83
84 BOOL animateChdir;
85 BOOL animateLaunck;
86 BOOL animateSlideBack;
87
88 BOOL contestualMenu;
89
90 DesktopWindow *desktopWindow;
91
92 TShelfWin *tshelfWin;
93 NSImage *tshelfBackground;
94
95 Recycler *recycler;
96 NSString *trashPath;
97
98 OpenWithController *openWithController;
99 RunExternalController *runExtController;
100
101 BOOL usesThumbnails;
102
103 int shelfCellsWidth;
104
105 NSFileManager *fm;
106 NSWorkspace *ws;
107
108 BOOL starting;
109 }
110
111 + (void)registerForServices;
112
113 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
114
115 - (BOOL)applicationShouldTerminate:(NSApplication *)app;
116
117 - (NSString *)defEditor;
118
119 - (NSString *)defXterm;
120
121 - (NSString *)defXtermArgs;
122
123 - (History *)historyWindow;
124
125 - (id)desktopView;
126
127 - (void)showHideDesktop:(BOOL)active;
128
129 - (NSImage *)tshelfBackground;
130
131 - (void)makeTshelfBackground;
132
133 - (NSColor *)tshelfBackColor;
134
135 - (id)rootViewer;
136
137 - (ViewersWindow *)viewerRootedAtPath:(NSString *)vpath;
138
139 - (void)changeDefaultEditor:(NSString *)editor;
140
141 - (void)changeDefaultXTerm:(NSString *)xterm arguments:(NSString *)args;
142
143 - (void)updateDefaults;
144
145 - (void)startXTermOnDirectory:(NSString *)dirPath;
146
147 - (int)defaultSortType;
148
149 - (void)setDefaultSortType:(int)type;
150
151 - (int)shelfCellsWidth;
152
153 - (int)defaultShelfCellsWidth;
154
155 - (void)setShelfCellsWidth:(int)w;
156
157 - (void)createRecycler;
158
159 - (void)makeViewersTemplates;
160
161 - (void)addViewer:(id)vwr withBundlePath:(NSString *)bpath;
162
163 - (void)removeViewerWithBundlePath:(NSString *)bpath;
164
165 - (NSMutableArray *)bundlesWithExtension:(NSString *)extension
166 inDirectory:(NSString *)dirpath;
167
168 - (NSArray *)viewersPaths;
169
170 - (void)viewerHasClosed:(id)sender;
171
172 - (void)setCurrentViewer:(ViewersWindow *)viewer;
173
174 - (void)iconAnimationChanged:(NSNotification *)notif;
175
176 - (BOOL)showFileOpStatus;
177
178 - (void)setShowFileOpStatus:(BOOL)value;
179
180 - (void)fileSystemWillChange:(NSNotification *)notif;
181
182 - (void)fileSystemDidChange:(NSNotification *)notif;
183
184 - (void)watcherNotification:(NSNotification *)notification;
185
186 - (void)setSelectedPaths:(NSArray *)paths;
187
188 - (void)setSelectedPaths:(NSArray *)paths fromDesktopView:(DesktopView *)view;
189
190 - (void)setSelectedPaths:(NSArray *)paths
191 fromDesktopView:(DesktopView *)view
192 animateImage:(NSImage *)image
193 startingAtPoint:(NSPoint)startp;
194
195 - (NSArray *)selectedPaths;
196
197 - (void)closeInspectors;
198
199 - (void)newObjectAtPath:(NSString *)basePath isDirectory:(BOOL)directory;
200
201 - (void)duplicateFiles;
202
203 - (void)deleteFiles;
204
205 - (BOOL)verifyFileAtPath:(NSString *)path;
206
207 - (void)setUsesThumbnails:(BOOL)value;
208
209 - (void)thumbnailsDidChange:(NSNotification *)notif;
210
211 - (id)connectApplication:(NSString *)appName;
212
213 - (id)validRequestorForSendType:(NSString *)sendType
214 returnType:(NSString *)returnType;
215
216 //
217 // Menu Operations
218 //
219 - (void)closeMainWin:(id)sender;
220
221 - (void)showInfo:(id)sender;
222
223 - (void)showPreferences:(id)sender;
224
225 - (void)showViewer:(id)sender;
226
227 - (void)showHistory:(id)sender;
228
229 - (void)showInspector:(id)sender;
230
231 - (void)showAttributesInspector:(id)sender;
232
233 - (void)showContentsInspector:(id)sender;
234
235 - (void)showToolsInspector:(id)sender;
236
237 - (void)showPermissionsInspector:(id)sender;
238
239 - (void)showApps:(id)sender;
240
241 - (void)showFileOps:(id)sender;
242
243 - (void)showFinder:(id)sender;
244
245 - (void)showFiend:(id)sender;
246
247 - (void)hideFiend:(id)sender;
248
249 - (void)addFiendLayer:(id)sender;
250
251 - (void)removeFiendLayer:(id)sender;
252
253 - (void)renameFiendLayer:(id)sender;
254
255 - (void)showTShelf:(id)sender;
256
257 - (void)hideTShelf:(id)sender;
258
259 - (void)addTShelfTab:(id)sender;
260
261 - (void)removeTShelfTab:(id)sender;
262
263 - (void)renameTShelfTab:(id)sender;
264
265 - (void)openWith:(id)sender;
266
267 - (void)runCommand:(id)sender;
268
269 - (void)startXTerm:(id)sender;
270
271 - (void)emptyRecycler:(id)sender;
272
273 - (void)putAway:(id)sender;
274
275 @end
276
277 @interface GWorkspace (FileOperations)
278
279 - (int)fileOperationRef;
280
281 - (FileOperation *)fileOpWithRef:(int)ref;
282
283 - (void)endOfFileOperation:(FileOperation *)op;
284
285 @end
286
287 #endif // GWORKSPACE_H

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26