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

Contents of /gnustep/usr-apps/gworkspace/Viewers/IconsViewer/IconsViewerPref.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 /* IconsViewerPref.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 ICONS_VIEWER_PREF_H
27 #define ICONS_VIEWER_PREF_H
28
29 #include <AppKit/NSView.h>
30
31 #include <Foundation/NSObject.h>
32 #ifdef GNUSTEP
33 #include "PreferencesProtocol.h"
34 #else
35 #include <GWorkspace/PreferencesProtocol.h>
36 #endif
37
38 typedef enum {
39 leftarrow,
40 rightarrow
41 } ResizerPosition;
42
43 @class NSEvent;
44 @class NSNotification;
45 @class NSWorkspace;
46
47 @interface LabelResizer : NSView
48 {
49 NSImage *arrow;
50 ResizerPosition position;
51 id controller;
52 }
53
54 - (id)initForController:(id)acontroller
55 withPosition:(ResizerPosition)pos;
56
57 - (ResizerPosition)position;
58
59 @end
60
61 @interface IconsViewerPref : NSObject <PreferencesProtocol>
62 {
63 IBOutlet id win;
64 IBOutlet id prefbox;
65 IBOutlet id iconbox;
66 IBOutlet id imView;
67 IBOutlet id leftResBox;
68 IBOutlet id rightResBox;
69 IBOutlet id nameField;
70 IBOutlet id setButt;
71
72 LabelResizer *leftResizer;
73 LabelResizer *rightResizer;
74 NSString *fname;
75 int cellsWidth;
76 NSWorkspace *ws;
77 }
78
79 - (void)tile;
80
81 - (void)selectionChanged:(NSNotification *)n;
82
83 - (void)startMouseEvent:(NSEvent *)event
84 onResizer:(LabelResizer *)resizer;
85
86 - (void)setNewWidth:(int)w;
87
88 - (IBAction)setDefaultWidth:(id)sender;
89
90 @end
91
92 #endif // ICONS_VIEWER_PREF_H

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