2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
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
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.
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
21 // $Id: SOPEXAppController.h 1 2004-08-20 11:17:52Z znek $
22 // Created by znek on Mon Jan 26 2004.
24 #ifndef __AppController_H_
25 #define __AppController_H_
27 #import <AppKit/AppKit.h>
28 #import "SOPEXDocument.h"
30 @class SOPEXBrowserWindow;
32 @class SOPEXToolbarController;
33 @class SOPEXWebConnection;
35 @class SOPEXSNSController;
36 @class SOPEXStatisticsController;
39 @interface SOPEXAppController : NSObject <SOPEXDocumentController>
41 IBOutlet SOPEXBrowserWindow *mainWindow;
42 IBOutlet NSMenu *mainMenu;
43 IBOutlet NSTabView *tabView;
45 IBOutlet NSProgressIndicator *progressIndicator;
46 IBOutlet NSTextField *statusBarTextField;
48 IBOutlet WebView *webView;
50 IBOutlet NSTextField *woxNameField;
51 IBOutlet NSTextView *woxSourceView;
52 IBOutlet NSTextField *woComponentNameField;
53 IBOutlet NSTextView *woSourceView;
54 IBOutlet NSTextView *woDefinitionView;
56 IBOutlet NSTextView *htmlView;
58 IBOutlet NSTableView *responseHeaderInfoTableView;
59 NSMutableArray *responseHeaderValues;
61 IBOutlet NSMenuItem *debugMenuItem;
62 IBOutlet NSMenuItem *viewSeparatorMenuItem;
64 IBOutlet NSMenuItem *viewApplicationMenuItem;
65 IBOutlet NSMenuItem *viewSourceMenuItem;
66 IBOutlet NSMenuItem *viewHTMLMenuItem;
67 IBOutlet NSMenuItem *viewHTTPMenuItem;
69 IBOutlet NSMenuItem *aboutMenuItem;
70 IBOutlet NSMenuItem *hideMenuItem;
71 IBOutlet NSMenuItem *quitMenuItem;
74 SOPEXWebConnection *connection;
75 SOPEXToolbarController *toolbarController;
76 SOPEXSNSController *snsd;
77 SOPEXConsole *console;
78 SOPEXStatisticsController *statsController;
81 SOPEXDocument *document;
84 - (NSTextView *)document:(SOPEXDocument *)document textViewForType:(NSString *)fileType;
88 - (IBAction)restartDaemonTask:(id)sender;
89 - (IBAction)stopDaemonTask:(id)sender;
91 /* hook to provide custom launch arguments. remember to call super! */
92 - (void)appendToDaemonLaunchArguments:(NSMutableArray *)_args;
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;
101 - (IBAction)editInXcode:(id)sender;
103 - (IBAction)openConsole:(id)sender;
104 - (IBAction)openStatistics:(id)sender;
105 - (IBAction)clear:(id)sender;
108 - (IBAction)toggleToolbar:(id)sender;
112 #endif /* __AppController_H_ */