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

Contents of /gnustep/usr-apps/gworkspace/Viewers/IconsViewer/IconsViewerIcon.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 /* IconsViewerIcon.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 ICONVIEWSICON_H
27 #define ICONVIEWSICON_H
28
29 #include <AppKit/NSView.h>
30
31 @class NSString;
32 @class NSArray;
33 @class NSMutableArray;
34 @class NSNotification;
35 @class NSEvent;
36 @class NSPasteboard;
37 @class NSTextField;
38 @class NSImage;
39 @class NSFileManager;
40
41 @interface IconsViewerIcon : NSView
42 {
43 NSString *path;
44 NSString *name;
45 NSString *type;
46 BOOL isPakage;
47 BOOL isSelect;
48 BOOL locked;
49
50 NSImage *icon, *highlight;
51 NSTextField *namelabel;
52 int labelWidth;
53
54 id delegate;
55 id gworkspace;
56 int dragdelay;
57 BOOL isDragTarget;
58 BOOL onSelf;
59
60 NSFileManager *fm;
61 }
62
63 - (id)initForPath:(NSString *)apath delegate:(id)adelegate;
64
65 - (void)setPath:(NSString *)apath;
66
67 - (void)select;
68
69 - (void)unselect;
70
71 - (void)renewIcon;
72
73 - (void)setLabelWidth;
74
75 - (NSTextField *)myLabel;
76
77 - (NSString *)type;
78
79 - (NSString *)path;
80
81 - (NSString *)myName;
82
83 - (NSSize)iconShift;
84
85 - (BOOL)isSelect;
86
87 - (void)setLocked:(BOOL)value;
88
89 - (BOOL)isLocked;
90
91 - (id)delegate;
92
93 - (void)setDelegate:(id)aDelegate;
94
95 @end
96
97 @interface IconsViewerIcon (DraggingSource)
98
99 - (void)startExternalDragOnEvent:(NSEvent *)event;
100
101 - (void)declareAndSetShapeOnPasteboard:(NSPasteboard *)pb;
102
103 - (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)flag;
104
105 @end
106
107 @interface IconsViewerIcon (DraggingDestination)
108
109 - (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender;
110
111 - (unsigned int)draggingUpdated:(id <NSDraggingInfo>)sender;
112
113 - (void)draggingExited:(id <NSDraggingInfo>)sender;
114
115 - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender;
116
117 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
118
119 - (void)concludeDragOperation:(id <NSDraggingInfo>)sender;
120
121 @end
122
123 //
124 // Methods Implemented by the Delegate
125 //
126
127 @interface NSObject (IconsViewerIconDelegateMethods)
128
129 - (int)getCellsWidth;
130
131 - (void)setLabelFrameOfIcon:(id)aicon;
132
133 - (void)unselectIconsDifferentFrom:(id)aicon;
134
135 - (void)setShiftClickValue:(BOOL)value;
136
137 - (void)setTheCurrentSelection:(id)paths;
138
139 - (NSArray *)getTheCurrentSelection;
140
141 - (void)openTheCurrentSelection:(id)paths newViewer:(BOOL)newv;
142
143 - (id)menuForRightMouseEvent:(NSEvent *)theEvent;
144
145 @end
146
147 #endif // ICONVIEWSICON_H
148

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