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

Contents of /gnustep/usr-apps/gworkspace/Viewers/IconsViewer/IconsPanel.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Sep 30 15:38:06 2003 UTC (20 years, 7 months ago) by esersale
Branch: MAIN
Changes since 1.2: +0 -1 lines
File MIME type: text/plain
*** empty log message ***

1 /* IconsPanel.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 ICONSPANEL_H
27 #define ICONSPANEL_H
28
29 #include <AppKit/NSView.h>
30
31 @class NSString;
32 @class NSMutableString;
33 @class NSArray;
34 @class NSMutableArray;
35 @class NSNotification;
36 @class NSFileManager;
37 @class IconsViewerIcon;
38 @class BNameEditor;
39 @class NSImage;
40
41 @interface IconsPanel : NSView
42 {
43 id delegate;
44 NSString *currentPath;
45
46 NSMutableArray *icons;
47 NSImage *verticalImage;
48 NSImage *horizontalImage;
49
50 BOOL isDragTarget;
51 BOOL isShiftClick;
52 BOOL selectInProgress;
53 int iconsperrow;
54 int cellsWidth;
55
56 BNameEditor *nameEditor;
57 IconsViewerIcon *edIcon;
58 NSFont *editorFont;
59 BOOL editingIcnName;
60
61 BOOL contestualMenu;
62
63 NSString *charBuffer;
64 NSTimeInterval lastKeyPressed;
65
66 NSFileManager *fm;
67 }
68
69 - (id)initAtPath:(NSString *)path
70 delegate:(id)adelegate;
71
72 - (void)setPath:(NSString *)path;
73 - (void)setCurrentSelection:(NSArray *)paths;
74 - (void)reloadFromPath:(NSString *)path;
75 - (NSArray *)checkHiddenFiles:(NSArray *)files atPath:(NSString *)path;
76 - (void)makeFileIcons;
77 - (void)sortIcons;
78
79 - (void)tile;
80 - (void)scrollFirstIconToVisible;
81 - (void)scrollToVisibleIconsWithPaths:(NSArray *)paths;
82
83 - (NSString *)currentPath;
84 - (BOOL)isOnBasePath:(NSString *)bpath withFiles:(NSArray *)files;
85 - (NSArray *)currentSelection;
86 - (IconsViewerIcon *)iconWithPath:(NSString *)path;
87 - (NSArray *)iconsWithPaths:(NSArray *)paths;
88
89 - (void)selectIconWithPath:(NSString *)path;
90 - (void)selectIconsWithPaths:(NSArray *)paths;
91 - (NSString *)selectIconWithPrefix:(NSString *)prefix;
92 - (void)selectIconInPrevLine;
93 - (void)selectIconInNextLine;
94 - (void)selectPrevIcon;
95 - (void)selectNextIcon;
96 - (void)selectAllIcons;
97 - (void)unselectOtherIcons:(id)anIcon;
98 - (void)extendSelectionWithDimmedFiles:(NSArray *)files
99 startingAtPath:(NSString *)bpath;
100 - (void)openSelectionWithApp:(id)sender;
101 - (void)openSelectionWith:(id)sender;
102
103 - (void)addIconWithPath:(NSString *)iconpath dimmed:(BOOL)isdimmed;
104 - (void)addIconsWithNames:(NSArray *)names dimmed:(BOOL)isdimmed;
105 - (void)removeIcon:(id)anIcon;
106 - (void)removeIconsWithNames:(NSArray *)names;
107
108 - (void)lockIconsWithNames:(NSArray *)names;
109 - (void)unLockIconsWithNames:(NSArray *)names;
110 - (void)lockAllIcons;
111 - (void)unLockAllIcons;
112
113 - (void)setLabelRectOfIcon:(id)anIcon;
114 - (int)cellsWidth;
115 - (void)cellsWidthChanged:(NSNotification *)notification;
116
117 - (void)setShiftClick:(BOOL)value;
118
119 - (void)openCurrentSelection:(NSArray *)paths newViewer:(BOOL)newv;
120
121 - (void)updateNameEditor;
122
123 - (void)editorAction:(id)sender;
124
125 - (void)setDelegate:(id)anObject;
126
127 - (id)delegate;
128
129 @end
130
131 @interface IconsPanel (DraggingDestination)
132
133 - (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender;
134
135 - (unsigned int)draggingUpdated:(id <NSDraggingInfo>)sender;
136
137 - (void)draggingExited:(id <NSDraggingInfo>)sender;
138
139 - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender;
140
141 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
142
143 - (void)concludeDragOperation:(id <NSDraggingInfo>)sender;
144
145 @end
146
147 //
148 // Methods Implemented by the Delegate
149 //
150
151 @interface NSObject (IconsPanelDelegateMethods)
152
153 - (void)setTheSelectedPaths:(id)paths;
154
155 - (void)openTheCurrentSelection:(id)paths newViewer:(BOOL)newv;
156
157 - (int)iconCellsWidth;
158
159 @end
160
161 //
162 // IconsViewerIcon Delegate Methods
163 //
164
165 @interface IconsPanel (IconsViewerIconDelegateMethods)
166
167 - (int)getCellsWidth;
168
169 - (void)setLabelFrameOfIcon:(id)aicon;
170
171 - (void)unselectIconsDifferentFrom:(id)aicon;
172
173 - (void)setShiftClickValue:(BOOL)value;
174
175 - (void)setTheCurrentSelection:(id)paths;
176
177 - (NSArray *)getTheCurrentSelection;
178
179 - (void)openTheCurrentSelection:(id)paths newViewer:(BOOL)newv;
180
181 - (id)menuForRightMouseEvent:(NSEvent *)theEvent;
182
183 @end
184
185 #endif // ICONSPANEL_H
186

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