/[gnustep]/gnustep/usr-apps/gworkspace/GWLib/BColumn.h
ViewVC logotype

Contents of /gnustep/usr-apps/gworkspace/GWLib/BColumn.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Sep 29 13:20:28 2003 UTC (20 years, 6 months ago) by esersale
Branch: MAIN
Changes since 1.2: +2 -7 lines
File MIME type: text/plain
*** empty log message ***

1 /* BColumn.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 #ifndef BCOLUMN_H_
26 #define BCOLUMN_H_
27
28 #include <AppKit/NSView.h>
29
30 @class NSMatrix;
31 @class NSScrollView;
32 @class NSTextField;
33 @class BMatrix;
34 @class BIcon;
35 @class BCell;
36 @class Browser2;
37
38 @interface BColumn : NSView
39 {
40 NSScrollView *scroll;
41 BMatrix *matrix;
42 BCell *cellPrototype;
43 NSView *iconView;
44 BIcon *icon;
45
46 unsigned int styleMask;
47 int cellsHeight;
48
49 NSString *path;
50 NSString *oldpath;
51 int index;
52 BOOL isLoaded;
53 BOOL isLeaf;
54
55 Browser2 *browser;
56
57 id gworkspace;
58 id fm;
59 id ws;
60 }
61
62 - (id)initInBrowser:(Browser2 *)aBrowser
63 atIndex:(int)ind
64 cellPrototype:(BCell *)cell
65 styleMask:(int)mask;
66
67 - (void)setCurrentPaths:(NSArray *)cpaths;
68
69 - (void)createRowsInMatrix;
70
71 - (void)addMatrixCellsWithNames:(NSArray *)names;
72
73 - (void)addDimmedMatrixCellsWithNames:(NSArray *)names;
74
75 - (void)removeMatrixCellsWithNames:(NSArray *)names;
76
77 - (BOOL)selectMatrixCellsWithNames:(NSArray *)names sendAction:(BOOL)act;
78
79 - (void)selectMatrixCells:(NSArray *)cells sendAction:(BOOL)act;
80
81 - (BOOL)selectFirstCell;
82
83 - (BOOL)selectCellWithPrefix:(NSString *)prefix;
84
85 - (void)selectIcon;
86
87 - (void)selectAll;
88
89 - (NSArray *)selection;
90
91 - (void)lockCellsWithNames:(NSArray *)names;
92
93 - (void)unLockCellsWithNames:(NSArray *)names;
94
95 - (void)lock;
96
97 - (void)unLock;
98
99 - (void)adjustMatrix;
100
101 - (void)updateIcon;
102
103 - (id)cellWithName:(NSString *)name;
104
105 - (void)setLeaf:(BOOL)value;
106
107 - (Browser2 *)browser;
108
109 - (NSMatrix *)cmatrix;
110
111 - (NSView *)iconView;
112
113 - (BIcon *)myIcon;
114
115 - (NSTextField *)iconLabel;
116
117 - (NSString *)currentPath;
118
119 - (int)index;
120
121 - (BOOL)isLoaded;
122
123 - (BOOL)isSelected;
124
125 - (BOOL)isLeaf;
126
127 - (void)doClick:(id)sender;
128
129 - (void)doDoubleClick:(id)sender;
130
131 - (unsigned int)draggingEntered:(id <NSDraggingInfo>)sender
132 inMatrixCell:(id)aCell;
133
134 - (void)concludeDragOperation:(id <NSDraggingInfo>)sender
135 inMatrixCell:(id)aCell;
136
137 @end
138
139 @interface BColumn (BIconDelegateMethods)
140
141 - (void)icon:(BIcon *)sender setFrameOfLabel:(NSTextField *)label;
142
143 - (void)unselectOtherIcons:(BIcon *)selicon;
144
145 - (void)unselectNameEditor;
146
147 - (void)restoreSelectionAfterDndOfIcon:(BIcon *)dndicon;
148
149 - (void)clickOnIcon:(BIcon *)clicked;
150
151 - (void)doubleClickOnIcon:(BIcon *)clicked newViewer:(BOOL)isnew;
152
153 @end
154
155 #endif // BCOLUMN_H_

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