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

Contents of /gnustep/usr-apps/gworkspace/Viewers/BrowserViewer/BrowserViewer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 27 10:13:53 2003 UTC (20 years, 8 months ago) by esersale
Branch: MAIN
Changes since 1.1: +19 -18 lines
File MIME type: text/plain
*** empty log message ***

1 /* BrowserViewer.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 BROWSER_VIEWER_H
27 #define BROWSER_VIEWER_H
28
29 #include <AppKit/NSView.h>
30 #ifdef GNUSTEP
31 #include "ViewersProtocol.h"
32 #else
33 #include <GWorkspace/ViewersProtocol.h>
34 #endif
35
36 @class NSString;
37 @class NSMutableArray;
38 @class NSFileManager;
39 @class NSDictionary;
40 @class NSNotification;
41 @class Browser2;
42 @class BrowserViewerPref;
43
44 @interface BrowserViewer : NSView <ViewersProtocol, NSCopying>
45 {
46 Browser2 *browser;
47 int resizeIncrement;
48 int columns;
49 float columnsWidth;
50 BOOL usesShelf;
51 BOOL cellsIcons;
52 NSString *rootPath;
53 NSString *lastPath;
54 NSArray *selectedPaths;
55 BOOL autoSynchronize;
56 BOOL viewsapps;
57 NSMutableArray *watchedPaths;
58 BrowserViewerPref *prefs;
59 id delegate;
60 id gworkspace;
61 NSFileManager *fm;
62 }
63
64 - (void)checkUsesShelf;
65
66 - (void)checkUsesCellsIcons;
67
68 - (void)renewAll;
69
70 - (void)validateRootPathAfterOperation:(NSDictionary *)opdict;
71
72 - (void)fileSystemWillChange:(NSNotification *)notification;
73
74 - (void)fileSystemDidChange:(NSNotification *)notification;
75
76 - (void)sortTypeDidChange:(NSNotification *)notification;
77
78 - (void)watcherNotification:(NSNotification *)notification;
79
80 - (void)setWatchers;
81
82 - (void)setWatcherForPath:(NSString *)path;
83
84 - (void)unsetWatcherForPath:(NSString *)path;
85
86 - (void)unsetWatchersFromPath:(NSString *)path;
87
88 - (void)reSetWatchersFromPath:(NSString *)path;
89
90 - (void)closeNicely;
91
92 - (void)close:(id)sender;
93
94 @end
95
96 //
97 // Methods Implemented by the Delegate
98 //
99 @interface NSObject (ViewerDelegateMethods)
100
101 - (void)setTheSelectedPaths:(id)paths;
102
103 - (NSArray *)selectedPaths;
104
105 - (void)setTitleAndPath:(id)apath selectedPaths:(id)paths;
106
107 - (void)addPathToHistory:(NSArray *)paths;
108
109 - (void)updateTheInfoString;
110
111 - (int)browserColumnsWidth;
112
113 - (int)iconCellsWidth;
114
115 - (int)getWindowFrameWidth;
116
117 - (int)getWindowFrameHeight;
118
119 - (void)startIndicatorForOperation:(NSString *)operation;
120
121 - (void)stopIndicatorForOperation:(NSString *)operation;
122
123 @end
124
125 @interface BrowserViewer (Browser2DelegateMethods)
126
127 - (void)currentSelectedPaths:(NSArray *)paths;
128
129 - (void)openSelectedPaths:(NSArray *)paths newViewer:(BOOL)isnew;
130
131 @end
132
133 #endif // BROWSER_VIEWER_H
134

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