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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Sep 30 15:38:04 2003 UTC (20 years, 6 months ago) by esersale
Branch: MAIN
Changes since 1.5: +5 -25 lines
File MIME type: text/plain
*** empty log message ***

1 /* GWLib.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 GWLIB_H
26 #define GWLIB_H
27
28 #include <Foundation/Foundation.h>
29
30 @interface GWLib : NSObject
31 {
32 NSMutableDictionary *cachedContents;
33 int cachedMax;
34 int defSortType;
35 BOOL hideSysFiles;
36
37 NSMutableArray *watchers;
38 NSMutableArray *watchTimers;
39 NSMutableArray *watchedPaths;
40
41 NSMutableArray *lockedPaths;
42
43 NSMutableDictionary *tumbsCache;
44 NSString *thumbnailDir;
45 BOOL usesThumbnails;
46
47 NSFileManager *fm;
48 NSWorkspace *ws;
49 NSNotificationCenter *nc;
50
51 id workspaceApp;
52 }
53
54 + (NSArray *)sortedDirectoryContentsAtPath:(NSString *)path;
55
56 + (NSArray *)checkHiddenFiles:(NSArray *)files atPath:(NSString *)path;
57
58 + (void)setCachedMax:(int)cmax;
59
60 + (void)addWatcherForPath:(NSString *)path;
61
62 + (void)removeWatcherForPath:(NSString *)path;
63
64 + (void)lockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path;
65
66 + (void)unLockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path;
67
68 + (BOOL)isLockedPath:(NSString *)path;
69
70 + (BOOL)existsAndIsDirectoryFileAtPath:(NSString *)path;
71
72 + (NSString *)typeOfFileAt:(NSString *)path;
73
74 + (BOOL)isPakageAtPath:(NSString *)path;
75
76 + (int)sortTypeForDirectoryAtPath:(NSString *)path;
77
78 + (void)setSortType:(int)type forDirectoryAtPath:(NSString *)path;
79
80 + (void)setDefSortType:(int)type;
81
82 + (int)defSortType;
83
84 + (void)setHideSysFiles:(BOOL)value;
85
86 + (BOOL)hideSysFiles;
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 + (void)setUseThumbnails:(BOOL)value;
97
98 + (NSArray *)imageExtensions;
99
100 + (id)workspaceApp;
101
102 @end
103
104 #endif // GWLIB_H
105

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