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)noteFileSystemChanged; |
63 |
|
64 |
- (void)noteFileSystemChanged:(NSString *)path; |
65 |
|
66 |
- (BOOL)existsAndIsDirectoryFileAtPath:(NSString *)path; |
67 |
|
68 |
- (NSString *)typeOfFileAt:(NSString *)path; |
69 |
|
70 |
- (BOOL)isWritableFileAtPath:(NSString *)path; |
71 |
|
72 |
- (BOOL)isPakageAtPath:(NSString *)path; |
73 |
|
74 |
- (NSArray *)sortedDirectoryContentsAtPath:(NSString *)path; |
75 |
|
76 |
- (NSArray *)checkHiddenFiles:(NSArray *)files atPath:(NSString *)path; |
77 |
|
78 |
- (int)sortTypeForDirectoryAtPath:(NSString *)aPath; |
79 |
|
80 |
- (void)setSortType:(int)type forDirectoryAtPath:(NSString *)aPath; |
81 |
|
82 |
- (void)openSelectedPaths:(NSArray *)paths newViewer:(BOOL)newv; |
83 |
|
84 |
- (void)openSelectedPathsWith; |
85 |
|
86 |
- (ViewersWindow *)newViewerAtPath:(NSString *)path canViewApps:(BOOL)viewapps; |
87 |
|
88 |
- (NSImage *)iconForFile:(NSString *)fullPath ofType:(NSString *)type; |
89 |
|
90 |
- (NSImage *)smallIconForFile:(NSString*)aPath; |
91 |
|
92 |
- (NSImage *)smallIconForFiles:(NSArray*)pathArray; |
93 |
|
94 |
- (NSImage *)smallHighlightIcon; |
95 |
|
96 |
- (NSArray *)getSelectedPaths; |
97 |
|
98 |
- (NSString *)trashPath; |
99 |
|
100 |
- (NSArray *)viewersSearchPaths; |
101 |
|
102 |
- (NSArray *)imageExtensions; |
103 |
|
104 |
- (void)lockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path; |
105 |
|
106 |
- (void)unLockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path; |
107 |
|
108 |
- (BOOL)isLockedPath:(NSString *)path; |
109 |
|
110 |
- (void)addWatcherForPath:(NSString *)path; |
111 |
|
112 |
- (void)removeWatcherForPath:(NSString *)path; |
113 |
|
114 |
- (BOOL)hideSysFiles; |
115 |
|
116 |
- (BOOL)animateChdir; |
117 |
|
118 |
- (BOOL)animateLaunck; |
119 |
|
120 |
- (BOOL)animateSlideBack; |
121 |
|
122 |
- (BOOL)usesContestualMenu; |
123 |
|
124 |
@end |
125 |
|
126 |
#endif // GWPROTOCOL_H |
127 |
|