]> err.no Git - sope/blob - sopex/SOPEX/SOPEXAppController.h
fixed a warning
[sope] / sopex / SOPEX / SOPEXAppController.h
1 /*
2  Copyright (C) 2000-2003 SKYRIX Software AG
3
4  This file is part of OGo
5
6  OGo is free software; you can redistribute it and/or modify it under
7  the terms of the GNU Lesser General Public License as published by the
8  Free Software Foundation; either version 2, or (at your option) any
9  later version.
10
11  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12  WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14  License for more details.
15
16  You should have received a copy of the GNU Lesser General Public
17  License along with OGo; see the file COPYING.  If not, write to the
18  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19  02111-1307, USA.
20  */
21 // $Id: SOPEXAppController.h 1 2004-08-20 11:17:52Z znek $
22 //  Created by znek on Mon Jan 26 2004.
23
24 #ifndef __AppController_H_
25 #define __AppController_H_
26
27 #import <AppKit/AppKit.h>
28 #import "SOPEXDocument.h"
29
30 @class SOPEXBrowserWindow;
31 @class WebView;
32 @class SOPEXToolbarController;
33 @class SOPEXWebConnection;
34 @class SOPEXConsole;
35 @class SOPEXSNSController;
36 @class SOPEXStatisticsController;
37
38
39 @interface SOPEXAppController : NSObject <SOPEXDocumentController>
40 {
41     IBOutlet SOPEXBrowserWindow *mainWindow;
42     IBOutlet NSMenu *mainMenu;
43     IBOutlet NSTabView *tabView;
44
45     IBOutlet NSProgressIndicator *progressIndicator;
46     IBOutlet NSTextField *statusBarTextField;
47
48     IBOutlet WebView  *webView;
49
50     IBOutlet NSTextField *woxNameField;
51     IBOutlet NSTextView *woxSourceView;
52     IBOutlet NSTextField *woComponentNameField;
53     IBOutlet NSTextView *woSourceView;
54     IBOutlet NSTextView *woDefinitionView;
55
56     IBOutlet NSTextView *htmlView;
57     
58     IBOutlet NSTableView *responseHeaderInfoTableView;
59     NSMutableArray *responseHeaderValues;
60
61     IBOutlet NSMenuItem *debugMenuItem;
62     IBOutlet NSMenuItem *viewSeparatorMenuItem;
63
64     IBOutlet NSMenuItem *viewApplicationMenuItem;
65     IBOutlet NSMenuItem *viewSourceMenuItem;
66     IBOutlet NSMenuItem *viewHTMLMenuItem;
67     IBOutlet NSMenuItem *viewHTTPMenuItem;
68
69     IBOutlet NSMenuItem *aboutMenuItem;
70     IBOutlet NSMenuItem *hideMenuItem;
71     IBOutlet NSMenuItem *quitMenuItem;
72
73
74     SOPEXWebConnection *connection;
75     SOPEXToolbarController *toolbarController;
76     SOPEXSNSController *snsd;
77     SOPEXConsole *console;
78     SOPEXStatisticsController *statsController;
79     NSTask *daemonTask;
80
81     SOPEXDocument *document;
82 }
83
84 - (NSTextView *)document:(SOPEXDocument *)document textViewForType:(NSString *)fileType;
85
86 - (BOOL)isInRADMode;
87
88 - (IBAction)restartDaemonTask:(id)sender;
89 - (IBAction)stopDaemonTask:(id)sender;
90
91 /* hook to provide custom launch arguments. remember to call super! */
92 - (void)appendToDaemonLaunchArguments:(NSMutableArray *)_args;
93
94 - (IBAction)reload:(id)sender;
95 - (IBAction)back:(id)sender;
96 - (IBAction)viewApplication:(id)sender;
97 - (IBAction)viewSource:(id)sender;
98 - (IBAction)viewHTML:(id)sender;
99 - (IBAction)viewHTTP:(id)sender;
100
101 - (IBAction)editInXcode:(id)sender;
102
103 - (IBAction)openConsole:(id)sender;
104 - (IBAction)openStatistics:(id)sender;
105 - (IBAction)clear:(id)sender;
106
107 /* debugging */
108 - (IBAction)toggleToolbar:(id)sender;
109
110 @end
111
112 #endif  /* __AppController_H_ */