Remove ancient trunk folder from svn repository
[synfig.git] / synfig-osx / launcher / X11Controller.h
1 /* X11Controller.h -- connect the IB ui
2    $Id: X11Controller.h,v 1.21 2003/07/24 17:52:29 jharper Exp $
3
4    Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
5
6    Permission is hereby granted, free of charge, to any person
7    obtaining a copy of this software and associated documentation files
8    (the "Software"), to deal in the Software without restriction,
9    including without limitation the rights to use, copy, modify, merge,
10    publish, distribute, sublicense, and/or sell copies of the Software,
11    and to permit persons to whom the Software is furnished to do so,
12    subject to the following conditions:
13
14    The above copyright notice and this permission notice shall be
15    included in all copies or substantial portions of the Software.
16
17    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20    NONINFRINGEMENT.  IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
21    HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24    DEALINGS IN THE SOFTWARE.
25
26    Except as contained in this notice, the name(s) of the above
27    copyright holders shall not be used in advertising or otherwise to
28    promote the sale, use or other dealings in this Software without
29    prior written authorization. */
30
31 #ifndef X11CONTROLLER_H
32 #define X11CONTROLLER_H 1
33
34 #if __OBJC__
35
36 #import <Cocoa/Cocoa.h>
37 #include "x-list.h"
38
39 @interface X11Controller : NSObject
40 {
41     NSPanel *prefs_panel;
42
43     NSButton *fake_buttons;
44     NSButton *enable_fullscreen;
45     NSButton *use_sysbeep;
46     NSButton *enable_keyequivs;
47     NSButton *sync_keymap;
48     NSButton *enable_auth;
49     NSButton *enable_tcp;
50     NSPopUpButton *depth;
51
52     NSMenuItem *x11_about_item;
53     NSMenuItem *window_separator;
54     NSMenuItem *dock_window_separator;
55     NSMenuItem *apps_separator;
56     NSMenuItem *toggle_fullscreen_item;
57     NSMenu *dock_apps_menu;
58     NSTableView *apps_table;
59
60     NSArray *apps;
61     NSMutableArray *table_apps;
62
63     NSMenu *dock_menu;
64
65     int checked_window_item;
66     x_list *pending_apps;
67
68     BOOL finished_launching;
69     BOOL can_quit;
70 }
71
72 - (void) set_window_menu:(NSArray *)list;
73 - (void) set_window_menu_check:(NSNumber *)n;
74 - (void) set_apps_menu:(NSArray *)list;
75 - (void) set_can_quit:(BOOL)state;
76 - (void) server_ready;
77
78 @end
79
80 #endif /* __OBJC__ */
81
82 extern void X11ControllerMain (int argc, const char *argv[],
83                                void (*server_thread) (void *),
84                                void *server_arg);
85
86 #endif /* X11CONTROLLER_H */