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

Contents of /gnustep/usr-apps/gworkspace/Viewers/IconsViewer/IconsViewer.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, 7 months ago) by esersale
Branch: MAIN
Changes since 1.1: +19 -18 lines
File MIME type: text/plain
*** empty log message ***

1 /* IconsViewer.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 ICONSVIEWER_H
27 #define ICONSVIEWER_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 NSArray;
38 @class NSDictionary;
39 @class NSNotification;
40 @class NSFileManager;
41 @class PathIcon;
42 @class IconsPath;
43 @class IconsPanel;
44 @class NSScrollView;
45 @class GWScrollView;
46 @class IconsViewerPref;
47
48 @interface IconsViewer : NSView <ViewersProtocol, NSCopying>
49 {
50 IconsPanel *panel;
51 IconsPath *iconsPath;
52 GWScrollView *pathsScroll;
53 NSScrollView *panelScroll;
54 BOOL usesShelf;
55 BOOL viewsapps;
56 BOOL autoSynchronize;
57 BOOL firstResize;
58 int resizeIncrement;
59 int columns;
60 float columnsWidth;
61 NSString *rootPath;
62 NSString *lastPath;
63 NSArray *selectedPaths;
64 NSMutableArray *savedSelection;
65 NSMutableArray *watchedPaths;
66 IconsViewerPref *prefs;
67 id delegate;
68 id gworkspace;
69 NSFileManager *fm;
70 }
71
72 - (void)checkUsesShelf;
73
74 - (void)validateRootPathAfterOperation:(NSDictionary *)opdict;
75
76 - (void)fileSystemWillChange:(NSNotification *)notification;
77
78 - (void)fileSystemDidChange:(NSNotification *)notification;
79
80 - (void)sortTypeDidChange:(NSNotification *)notification;
81
82 - (void)watcherNotification:(NSNotification *)notification;
83
84 - (void)setWatchers;
85
86 - (void)setWatcherForPath:(NSString *)path;
87
88 - (void)unsetWatcherForPath:(NSString *)path;
89
90 - (void)unsetWatchersFromPath:(NSString *)path;
91
92 - (void)reSetWatchersFromPath:(NSString *)path;
93
94 - (void)openCurrentSelection:(NSArray *)paths newViewer:(BOOL)newv;
95
96 - (void)clickOnIcon:(PathIcon *)icon;
97
98 - (void)doubleClickOnIcon:(PathIcon *)icon newViewer:(BOOL)isnew;
99
100 - (void)synchronize;
101
102 - (void)closeNicely;
103
104 - (void)close:(id)sender;
105
106 @end
107
108 //
109 // Methods Implemented by the Delegate
110 //
111
112 @interface NSObject (ViewerDelegateMethods)
113
114 - (void)setTheSelectedPaths:(id)paths;
115
116 - (NSArray *)selectedPaths;
117
118 - (void)setTitleAndPath:(id)apath selectedPaths:(id)paths;
119
120 - (void)addPathToHistory:(NSArray *)paths;
121
122 - (void)updateTheInfoString;
123
124 - (int)browserColumnsWidth;
125
126 - (int)iconCellsWidth;
127
128 - (int)getWindowFrameWidth;
129
130 - (int)getWindowFrameHeight;
131
132 - (void)startIndicatorForOperation:(NSString *)operation;
133
134 - (void)stopIndicatorForOperation:(NSString *)operation;
135
136 @end
137
138 //
139 // IconsPanel Delegate Methods
140 //
141
142 @interface IconsViewer (IconsPanelDelegateMethods)
143
144 - (void)setTheSelectedPaths:(id)paths;
145
146 - (void)openTheCurrentSelection:(id)paths newViewer:(BOOL)newv;
147
148 - (int)iconCellsWidth;
149
150 @end
151
152 //
153 // IconsPath Delegate Methods
154 //
155
156 @interface IconsViewer (IconsPathDelegateMethods)
157
158 - (void)clickedIcon:(id)anicon;
159
160 - (void)doubleClickedIcon:(id)anicon newViewer:(BOOL)isnew;
161
162 @end
163
164 #endif // ICONSVIEWER_H
165

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