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

« back to all changes in this revision

Viewing changes to Controller.h

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2006-09-16 18:13:34 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060916181334-10mrzvpblr2jpvu7
Tags: 1:0.2dfsg1-2
* Rebuild against latest libgnustep-gui-dev.
* Added co-maintainers.
* Updated build-depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2005  Stefan Kleine Stegemann
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 */
 
18
 
 
19
#import <Foundation/Foundation.h>
 
20
#import <AppKit/AppKit.h>
 
21
#import "SinglePageView.h"
 
22
#import "DocumentTools.h"
 
23
#import "MenuState.h"
 
24
 
 
25
/**
 
26
 * Controller for Document windows.
 
27
 */
 
28
@interface Controller : NSWindowController
 
29
{
 
30
   IBOutlet NSScrollView* scrollView;
 
31
 
 
32
   SinglePageView* singlePageView;
 
33
   DocumentTools*  tools;
 
34
   MenuState*      menuState;
 
35
 
 
36
   BOOL windowIsVisible;
 
37
}
 
38
 
 
39
/* Navigation */
 
40
- (IBAction) nextPage: (id)aSender;
 
41
- (IBAction) previousPage: (id)aSender;
 
42
- (IBAction) firstPage: (id)aSender;
 
43
- (IBAction) lastPage: (id)aSender;
 
44
- (IBAction) takePageFrom: (id)aSender;
 
45
- (IBAction) enterPageNumber: (id)aSender;
 
46
 
 
47
/* Zoom */
 
48
- (IBAction) takeZoomFrom: (id)aSender;
 
49
- (IBAction) zoomIn: (id)aSender;
 
50
- (IBAction) zoomOut: (id)aSender;
 
51
- (IBAction) zoomActualSize: (id)aSender;
 
52
- (IBAction) zoomToFit: (id)aSender;
 
53
 
 
54
/* Page Resizing */
 
55
- (IBAction) toggleFitWidth: (id)aSender;
 
56
- (IBAction) toggleFitHeight: (id)aSender;
 
57
- (IBAction) toggleFitPage: (id)aSender;
 
58
 
 
59
/* Scrolling */
 
60
- (IBAction) scrollPageUp: (id)aSender;
 
61
- (IBAction) scrollPageDown: (id)aSender;
 
62
- (IBAction) scrollLineUp: (id)aSender;
 
63
- (IBAction) scrollLineDown: (id)aSender;
 
64
- (IBAction) scrollToTop: (id)aSender;
 
65
- (IBAction) scrollToBottom: (id)aSender;
 
66
- (IBAction) scrollLineLeft: (id)aSender;
 
67
- (IBAction) scrollLineRight: (id)aSender;
 
68
- (IBAction) scrollToLeftEdge: (id)aSender;
 
69
- (IBAction) scrollToRightEdge: (id)aSender;
 
70
 
 
71
/* Content View */
 
72
- (IBAction) goSinglePage: (id)aSender;
 
73
 
 
74
/* Close */
 
75
- (IBAction) close: (id)aSender;
 
76
 
 
77
@end