1 /* GormViewWithSubviewsEditor.h
2  *
3  * Copyright (C) 2002 Free Software Foundation, Inc.
4  *
5  * Author:	Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
6  * Date:	2002
7  *
8  * This file is part of GNUstep.
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 3 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
23  */
24 #ifndef	INCLUDED_GormViewWithSubviewsEditor_h
25 #define	INCLUDED_GormViewWithSubviewsEditor_h
26 
27 #include <GormCore/GormViewEditor.h>
28 
29 @interface GormViewWithSubviewsEditor : GormViewEditor <IBSelectionOwners>
30 {
31   BOOL _displaySelection;
32   GormViewWithSubviewsEditor *openedSubeditor;
33   NSMutableArray *selection;
34   BOOL opened;
35   BOOL _followGuideLine;
36 }
37 
38 /*
39  * Handle mouse click on knob.
40  */
41 - (void) handleMouseOnKnob: (IBKnobPosition) knob
42 		    ofView: (GormViewEditor *) view
43 		 withEvent: (NSEvent *) theEvent;
44 
45 /*
46  * Handle mouse click on view.
47  */
48 - (void) handleMouseOnView: (GormViewEditor *) view
49 		 withEvent: (NSEvent *) theEvent;
50 
51 - (void) setOpenedSubeditor: (GormViewWithSubviewsEditor *) newEditor;
52 - (void) openParentEditor;
53 - (void) makeSubeditorResign;
54 - (void) silentlyResetSelection;
55 - (void) selectObjects: (NSArray *) objects;
56 - (void) copySelection;
57 
58 /*
59  * Close subeditors of this editor.
60  */
61 - (void) closeSubeditors;
62 - (void) deactivateSubeditors;
63 - (void) changeFont: (id)sender;
64 @end
65 
66 #endif
67