X11Controller.h revision 4642e01f
1/* X11Controller.h -- connect the IB ui
2
3   Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
4
5   Permission is hereby granted, free of charge, to any person
6   obtaining a copy of this software and associated documentation files
7   (the "Software"), to deal in the Software without restriction,
8   including without limitation the rights to use, copy, modify, merge,
9   publish, distribute, sublicense, and/or sell copies of the Software,
10   and to permit persons to whom the Software is furnished to do so,
11   subject to the following conditions:
12
13   The above copyright notice and this permission notice shall be
14   included in all copies or substantial portions of the Software.
15
16   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19   NONINFRINGEMENT.  IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
20   HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23   DEALINGS IN THE SOFTWARE.
24
25   Except as contained in this notice, the name(s) of the above
26   copyright holders shall not be used in advertising or otherwise to
27   promote the sale, use or other dealings in this Software without
28   prior written authorization. */
29
30#ifndef X11CONTROLLER_H
31#define X11CONTROLLER_H 1
32
33#if __OBJC__
34
35#include "sanitizedCocoa.h"
36#include "xpr/x-list.h"
37
38@interface X11Controller : NSObject
39{
40    IBOutlet NSPanel *prefs_panel;
41
42    IBOutlet NSButton *fake_buttons;
43    IBOutlet NSButton *enable_fullscreen;
44    IBOutlet NSButton *enable_fullscreen_menu;
45    IBOutlet NSButton *use_sysbeep;
46    IBOutlet NSButton *enable_keyequivs;
47    IBOutlet NSButton *sync_keymap;
48    IBOutlet NSButton *click_through;
49    IBOutlet NSButton *focus_follows_mouse;
50    IBOutlet NSButton *focus_on_new_window;
51    IBOutlet NSButton *enable_auth;
52    IBOutlet NSButton *enable_tcp;
53    IBOutlet NSButton *sync_pasteboard;
54    IBOutlet NSButton *sync_pasteboard_to_clipboard;
55    IBOutlet NSButton *sync_pasteboard_to_primary;
56    IBOutlet NSButton *sync_clipboard_to_pasteboard;
57    IBOutlet NSButton *sync_primary_immediately;
58    IBOutlet NSTextField *sync_text1;
59    IBOutlet NSTextField *sync_text2;
60    IBOutlet NSPopUpButton *depth;
61
62    IBOutlet NSMenuItem *x11_about_item;
63    IBOutlet NSMenuItem *window_separator;
64    IBOutlet NSMenuItem *dock_window_separator;
65    IBOutlet NSMenuItem *apps_separator;
66    IBOutlet NSMenuItem *toggle_fullscreen_item;
67    IBOutlet NSMenuItem *copy_menu_item;
68    IBOutlet NSMenu *dock_apps_menu;
69    IBOutlet NSTableView *apps_table;
70
71    NSArray *apps;
72    NSMutableArray *table_apps;
73
74    IBOutlet NSMenu *dock_menu;
75
76    int checked_window_item;
77    x_list *pending_apps;
78
79    OSX_BOOL finished_launching;
80    OSX_BOOL can_quit;
81}
82
83- (void) set_window_menu:(NSArray *)list;
84- (void) set_window_menu_check:(NSNumber *)n;
85- (void) set_apps_menu:(NSArray *)list;
86- (void) set_can_quit:(OSX_BOOL)state;
87- (void) server_ready;
88
89- (IBAction) apps_table_show:(id)sender;
90- (IBAction) apps_table_done:(id)sender;
91- (IBAction) apps_table_new:(id)sender;
92- (IBAction) apps_table_duplicate:(id)sender;
93- (IBAction) apps_table_delete:(id)sender;
94- (IBAction) bring_to_front:(id)sender;
95- (IBAction) close_window:(id)sender;
96- (IBAction) minimize_window:(id)sender;
97- (IBAction) zoom_window:(id)sender;
98- (IBAction) next_window:(id)sender;
99- (IBAction) previous_window:(id)sender;
100- (IBAction) enable_fullscreen_changed:(id)sender;
101- (IBAction) toggle_fullscreen:(id)sender;
102- (IBAction) prefs_changed:(id)sender;
103- (IBAction) prefs_show:(id)sender;
104- (IBAction) quit:(id)sender;
105- (IBAction) x11_help:(id)sender;
106
107@end
108
109#endif /* __OBJC__ */
110
111void X11ControllerMain(int argc, char **argv, char **envp);
112
113#endif /* X11CONTROLLER_H */
114