1 |
/* GWProtocol.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 |
#ifndef GWPROTOCOL_H |
26 |
#define GWPROTOCOL_H |
27 |
|
28 |
@class GWorkspace; |
29 |
@class ViewersWindow; |
30 |
|
31 |
@protocol GWProtocol |
32 |
|
33 |
+ (GWorkspace *)gworkspace; |
34 |
|
35 |
- (BOOL)performFileOperation:(NSString *)operation |
36 |
source:(NSString *)source |
37 |
destination:(NSString *)destination |
38 |
files:(NSArray *)files |
39 |
tag:(int *)tag; |
40 |
|
41 |
- (void)performFileOperationWithDictionary:(id)opdict; |
42 |
|
43 |
- (BOOL)application:(NSApplication *)theApplication |
44 |
openFile:(NSString *)filename; |
45 |
|
46 |
- (BOOL)openFile:(NSString *)fullPath; |
47 |
|
48 |
- (BOOL)openFile:(NSString *)fullPath |
49 |
fromImage:(NSImage *)anImage |
50 |
at:(NSPoint)point |
51 |
inView:(NSView *)aView; |
52 |
|
53 |
- (BOOL)selectFile:(NSString *)fullPath |
54 |
inFileViewerRootedAtPath:(NSString *)rootFullpath; |
55 |
|
56 |
- (void)rootViewerSelectFiles:(NSArray *)paths; |
57 |
|
58 |
- (void)slideImage:(NSImage *)image |
59 |
from:(NSPoint)fromPoint |
60 |
to:(NSPoint)toPoint; |
61 |
|
62 |
- (void)openSelectedPaths:(NSArray *)paths newViewer:(BOOL)newv; |
63 |
|
64 |
- (void)openSelectedPathsWith; |
65 |
|
66 |
- (ViewersWindow *)newViewerAtPath:(NSString *)path canViewApps:(BOOL)viewapps; |
67 |
|
68 |
- (NSArray *)getSelectedPaths; |
69 |
|
70 |
- (NSString *)trashPath; |
71 |
|
72 |
- (NSArray *)viewersSearchPaths; |
73 |
|
74 |
- (BOOL)animateChdir; |
75 |
|
76 |
- (BOOL)animateLaunck; |
77 |
|
78 |
- (BOOL)animateSlideBack; |
79 |
|
80 |
- (BOOL)usesContestualMenu; |
81 |
|
82 |
@end |
83 |
|
84 |
#endif // GWPROTOCOL_H |
85 |
|