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

Contents of /gnustep/usr-apps/gworkspace/Viewers/IconsViewer/PathIcon.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 /* PathIcon.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 PATHICON_H
27 #define PATHICON_H
28
29 #include <AppKit/NSView.h>
30
31 @class NSString;
32 @class NSArray;
33 @class NSPasteboard;
34 @class NSEvent;
35 @class NSImage;
36 @class NSFileManager;
37 @class NSWorkspace;
38 @class PathIconLabel;
39 @class NSTextField;
40
41 @interface PathIcon : NSView
42 {
43 NSArray *paths;
44 NSString *fullpath;
45 NSString *name;
46 NSString *hostname;
47
48 BOOL isRootIcon;
49 BOOL isPakage;
50 BOOL singlepath;
51 NSString *type;
52 BOOL isbranch;
53 BOOL locked;
54
55 NSImage *icon, *highlight, *arrow;
56 PathIconLabel *namelabel;
57
58 id delegate;
59
60 BOOL isSelect;
61
62 int dragdelay;
63 BOOL isDragTarget;
64
65 BOOL contestualMenu;
66
67 NSFileManager *fm;
68 NSWorkspace *ws;
69 }
70
71 - (id)initWithDelegate:(id)aDelegate;
72
73 - (void)setPaths:(NSArray *)p;
74
75 - (void)select;
76
77 - (void)unselect;
78
79 - (void)renewIcon;
80
81 - (void)openWithApp:(id)sender;
82
83 - (void)openWith:(id)sender;
84
85 - (NSTextField *)label;
86
87 - (void)clickOnLabel;
88
89 - (NSString *)type;
90
91 - (BOOL)isSinglePath;
92
93 - (BOOL)isSelect;
94
95 - (void)setPaths:(NSArray *)paths;
96
97 - (void)setBranch:(BOOL)value;
98
99 - (BOOL)isBranch;
100
101 - (void)setLocked:(BOOL)value;
102
103 - (BOOL)isLocked;
104
105 - (BOOL)isRootIcon;
106
107 - (BOOL)isPakage;
108
109 - (NSArray *)paths;
110
111 - (NSString *)name;
112
113 - (NSString *)hostname;
114
115 - (NSImage *)icon;
116
117 - (NSSize)iconShift;
118
119 - (BOOL)isSinglePath;
120
121 - (id)delegate;
122
123 - (void)setDelegate:(id)aDelegate;
124
125 @end
126
127
128 @interface PathIcon (DraggingSource)
129
130 - (void)startExternalDragOnEvent:(NSEvent *)event;
131
132 - (void)declareAndSetShapeOnPasteboard:(NSPasteboard *)pb;
133
134 - (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)flag;
135
136 @end
137
138 @interface PathIcon (DraggingDestination)
139
140 - (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender;
141
142 - (unsigned int)draggingUpdated:(id <NSDraggingInfo>)sender;
143
144 - (void)draggingExited:(id <NSDraggingInfo>)sender;
145
146 - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender;
147
148 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
149
150 - (void)concludeDragOperation:(id <NSDraggingInfo>)sender;
151
152 @end
153
154 //
155 // Methods Implemented by the Delegate
156 //
157
158 @interface NSObject (PathIconDelegateMethods)
159
160 - (void)setLabelFrameOfIcon:(id)anicon;
161
162 - (void)unselectIconsDifferentFrom:(id)anicon;
163
164 - (void)clickedIcon:(id)anicon;
165
166 - (void)doubleClickedIcon:(id)anicon newViewer:(BOOL)isnew;
167
168 - (void)unselectNameEditor;
169
170 - (void)restoreSelectionAfterDndOfIcon:(id)dndicon;
171
172 @end
173
174 #endif // PATHICON_H

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