1 /*
2  * TileScrollView.h
3  *
4  * Copyright (C) 1996-2013 by vhf interservice GmbH
5  * Author: Georg Fleischmann
6  *
7  * Created:  1993
8  * Modified: 2013-06-29 (-scaleTo: new - scale to saved scaleFactor)
9  *           2012-08-13 (scaleFactor is VFloat now)
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the vhf Public License as
13  * published by vhf interservice GmbH. Among other things, the
14  * License requires that the copyright notices and this notice
15  * be preserved on all copies.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20  * See the vhf Public License for more details.
21  *
22  * You should have received a copy of the vhf Public License along
23  * with this program; see the file LICENSE. If not, write to vhf.
24  *
25  * vhf interservice GmbH, Im Marxle 3, 72119 Altingen, Germany
26  * eMail: info@vhf.de
27  * http://www.vhf.de
28  */
29 
30 #ifndef VHF_H_TILESCROLLVIEW
31 #define VHF_H_TILESCROLLVIEW
32 
33 #include <AppKit/AppKit.h>
34 #include <VHFShared/types.h>
35 
36 @interface TileScrollView:NSScrollView
37 {
38     id		box;
39     id		resPopupListButton;
40     id		document;
41     VFloat	oldScaleFactor;
42 }
43 
44 /* instance methods */
45 - initWithFrame:(NSRect)theFrame;
46 - (void)setDocument:docu;
47 - (void)zoomIn:sender;
48 - (void)zoomOut:sender;
49 - (void)magnify:sender;
50 - (void)magnifyRegion:(NSRect)region;
51 - (void)changeScale:sender;
52 - (void)scaleTo:(float)scaleFactor;
53 - (float)scaleFactor;
54 - (void)tile;
55 - (void)setDocumentView:(NSView *)aView;
56 
57 @end
58 
59 @interface possibleDocument:NSObject
60 - (void)scale:(float)x :(float)y withCenter:(NSPoint)center;
61 - (void)setMagnify:(BOOL)flag;
62 @end
63 
64 #endif // VHF_H_TILESCROLLVIEW
65