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

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

1 /* IconsPath.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 ICONSPATH_H
27 #define ICONSPATH_H
28
29 #include <AppKit/NSView.h>
30
31 @class NSString;
32 @class NSArray;
33 @class NSMutableArray;
34 @class NSFileManager;
35 @class PathIcon;
36 @class BNameEditor;
37
38 @interface IconsPath : NSView
39 {
40 NSString *root;
41 NSString *currentPath;
42 NSMutableArray *icons;
43 BNameEditor *nameEditor;
44 PathIcon *edIcon;
45 NSFont *editorFont;
46 float columnsWidth;
47 id delegate;
48 }
49
50 - (id)initWithRootAtPath:(NSString *)rpath
51 columnsWidth:(float)cwidth
52 delegate:(id)adelegate;
53
54 - (void)setIconsForSelection:(NSArray *)selection;
55
56 - (void)setColumnWidth:(float)width;
57
58 - (void)renewIcons:(int)n;
59
60 - (void)addIcon;
61
62 - (void)removeIcon:(PathIcon *)icon;
63
64 - (void)removeIconAtIndex:(int)index;
65
66 - (void)lockIconsFromPath:(NSString *)path;
67
68 - (void)unlockIconsFromPath:(NSString *)path;
69
70 - (void)setIconsPositions;
71
72 - (void)setLabelRectOfIcon:(PathIcon *)icon;
73
74 - (void)unselectOtherIcons:(PathIcon *)icon;
75
76 - (void)selectIconAtIndex:(int)index;
77
78 - (void)startEditing;
79
80 - (NSArray *)icons;
81
82 - (PathIcon *)iconAtIndex:(int)index;
83
84 - (int)indexOfIcon:(PathIcon *)icon;
85
86 - (int)indexOfIconWithPath:(NSString *)path;
87
88 - (PathIcon *)iconWithPath:(NSString *)path;
89
90 - (PathIcon *)lastIcon;
91
92 - (NSPoint)positionOfLastIcon;
93
94 - (NSPoint)positionForSlidedImage;
95
96 - (int)numberOfIcons;
97
98 - (void)updateNameEditor;
99
100 - (void)editorAction:(id)sender;
101
102 - (id)delegate;
103
104 - (void)setDelegate:(id)anObject;
105
106 @end
107
108 //
109 // Methods Implemented by the Delegate
110 //
111
112 @interface NSObject (IconsPathDelegateMethods)
113
114 - (void)clickedIcon:(id)anicon;
115
116 - (void)doubleClickedIcon:(id)anicon newViewer:(BOOL)isnew;
117
118 @end
119
120 //
121 // PathIcon Delegate Methods
122 //
123
124 @interface IconsPath (PathIconDelegateMethods)
125
126 - (void)setLabelFrameOfIcon:(id)anicon;
127
128 - (void)unselectIconsDifferentFrom:(id)anicon;
129
130 - (void)clickedIcon:(id)anicon;
131
132 - (void)doubleClickedIcon:(id)anicon newViewer:(BOOL)isnew;
133
134 - (void)unselectNameEditor;
135
136 - (void)restoreSelectionAfterDndOfIcon:(id)dndicon;
137
138 @end
139
140 #endif // ICONSPATH_H
141

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