~ubuntu-branches/ubuntu/jaunty/preview.app/jaunty

« back to all changes in this revision

Viewing changes to Document.h

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2004-12-16 20:54:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041216205430-fi6koglk015a641u
Tags: upstream-0.7.5
Import upstream version 0.7.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** Document.h
 
3
**
 
4
** Document header : This file is part of Preview 
 
5
** 
 
6
** Copyright (c) 2003,2004 Fabien VALLON 
 
7
** Additional copyrights here
 
8
** 
 
9
** Authors : Fabien VALLON <fabien.vallon@fr.alcove.com>
 
10
** Date:        10 Oct 2003
 
11
** 
 
12
** This program is free software; you can redistribute it and/or
 
13
** modify it under the terms of the GNU General Public License as
 
14
** published by the Free Software Foundation; either version 2 of
 
15
** the License, or (at your option) any later version.
 
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
** 
 
21
** See the GNU General Public License for more details.
 
22
** 
 
23
** You should have received a copy of the GNU General Public
 
24
** License along with this program; if not, write to:
 
25
** 
 
26
** Free Software Foundation, Inc.
 
27
** 59 Temple Place - Suite 330
 
28
** Boston, MA  02111-1307, USA
 
29
*/
 
30
 
 
31
#ifndef _IMAGESAPPS_PREVIEW_DOCUMENT_H
 
32
#define _IMAGESAPPS_PREVIEW_DOCUMENT_H
 
33
 
 
34
#include <Foundation/NSGeometry.h>
 
35
#include <AppKit/NSDocument.h>
 
36
 
 
37
@class NSImage;
 
38
@class NSImageView;
 
39
@class NSNotification;
 
40
@class NSMatrix;
 
41
@class NSScrollView;
 
42
@class NSWindow;
 
43
 
 
44
 
 
45
/*!
 
46
  @class Document
 
47
  @abstract Preview NSDocument subclass
 
48
  @discussion Preview NSDocument subclass. 
 
49
  It is also the Preview.gorm controller
 
50
  and the window delegate
 
51
*/
 
52
@interface Document: NSDocument
 
53
{
 
54
  NSScrollView *scrollView;
 
55
  NSImageView *imageView; 
 
56
  NSWindow *window;
 
57
  NSPopUpButton *popUp;
 
58
  NSMatrix *matrix;
 
59
@private 
 
60
  NSImage *_image;
 
61
  double _scaleFactor;
 
62
  NSSize _originalSize;
 
63
  unsigned _tag;
 
64
}
 
65
 
 
66
//Action methods
 
67
-(void) zoomImage: (id) sender;  //from menuItems
 
68
-(void) resize: (id) sender;     //from menuItems/popUp/matrix
 
69
 
 
70
//window delegate
 
71
- (void)windowDidResize:(NSNotification *)aNotification; 
 
72
- (void)windowDidMiniaturize:(NSNotification *)aNotification; 
 
73
 
 
74
@end
 
75
 
 
76
#endif /* _IMAGESAPPS_PREVIEW_DOCUMENT_H */