|
Carlos Lopez |
a09598 |
/* X11Controller.h -- connect the IB ui
|
|
Carlos Lopez |
a09598 |
$Id: X11Controller.h,v 1.21 2003/07/24 17:52:29 jharper Exp $
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Permission is hereby granted, free of charge, to any person
|
|
Carlos Lopez |
a09598 |
obtaining a copy of this software and associated documentation files
|
|
Carlos Lopez |
a09598 |
(the "Software"), to deal in the Software without restriction,
|
|
Carlos Lopez |
a09598 |
including without limitation the rights to use, copy, modify, merge,
|
|
Carlos Lopez |
a09598 |
publish, distribute, sublicense, and/or sell copies of the Software,
|
|
Carlos Lopez |
a09598 |
and to permit persons to whom the Software is furnished to do so,
|
|
Carlos Lopez |
a09598 |
subject to the following conditions:
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
The above copyright notice and this permission notice shall be
|
|
Carlos Lopez |
a09598 |
included in all copies or substantial portions of the Software.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
Carlos Lopez |
a09598 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Carlos Lopez |
a09598 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
Carlos Lopez |
a09598 |
NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
|
|
Carlos Lopez |
a09598 |
HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
Carlos Lopez |
a09598 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
Carlos Lopez |
a09598 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
Carlos Lopez |
a09598 |
DEALINGS IN THE SOFTWARE.
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
Except as contained in this notice, the name(s) of the above
|
|
Carlos Lopez |
a09598 |
copyright holders shall not be used in advertising or otherwise to
|
|
Carlos Lopez |
a09598 |
promote the sale, use or other dealings in this Software without
|
|
Carlos Lopez |
a09598 |
prior written authorization. */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#ifndef X11CONTROLLER_H
|
|
Carlos Lopez |
a09598 |
#define X11CONTROLLER_H 1
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#if __OBJC__
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#import <cocoa cocoa.h=""></cocoa>
|
|
Carlos Lopez |
a09598 |
#include "x-list.h"
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
@interface X11Controller : NSObject
|
|
Carlos Lopez |
a09598 |
{
|
|
Carlos Lopez |
a09598 |
NSPanel *prefs_panel;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
NSButton *fake_buttons;
|
|
Carlos Lopez |
a09598 |
NSButton *enable_fullscreen;
|
|
Carlos Lopez |
a09598 |
NSButton *use_sysbeep;
|
|
Carlos Lopez |
a09598 |
NSButton *enable_keyequivs;
|
|
Carlos Lopez |
a09598 |
NSButton *sync_keymap;
|
|
Carlos Lopez |
a09598 |
NSButton *enable_auth;
|
|
Carlos Lopez |
a09598 |
NSButton *enable_tcp;
|
|
Carlos Lopez |
a09598 |
NSPopUpButton *depth;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
NSMenuItem *x11_about_item;
|
|
Carlos Lopez |
a09598 |
NSMenuItem *window_separator;
|
|
Carlos Lopez |
a09598 |
NSMenuItem *dock_window_separator;
|
|
Carlos Lopez |
a09598 |
NSMenuItem *apps_separator;
|
|
Carlos Lopez |
a09598 |
NSMenuItem *toggle_fullscreen_item;
|
|
Carlos Lopez |
a09598 |
NSMenu *dock_apps_menu;
|
|
Carlos Lopez |
a09598 |
NSTableView *apps_table;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
NSArray *apps;
|
|
Carlos Lopez |
a09598 |
NSMutableArray *table_apps;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
NSMenu *dock_menu;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
int checked_window_item;
|
|
Carlos Lopez |
a09598 |
x_list *pending_apps;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
BOOL finished_launching;
|
|
Carlos Lopez |
a09598 |
BOOL can_quit;
|
|
Carlos Lopez |
a09598 |
}
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
- (void) set_window_menu:(NSArray *)list;
|
|
Carlos Lopez |
a09598 |
- (void) set_window_menu_check:(NSNumber *)n;
|
|
Carlos Lopez |
a09598 |
- (void) set_apps_menu:(NSArray *)list;
|
|
Carlos Lopez |
a09598 |
- (void) set_can_quit:(BOOL)state;
|
|
Carlos Lopez |
a09598 |
- (void) server_ready;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
@end
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#endif /* __OBJC__ */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
extern void X11ControllerMain (int argc, const char *argv[],
|
|
Carlos Lopez |
a09598 |
void (*server_thread) (void *),
|
|
Carlos Lopez |
a09598 |
void *server_arg);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#endif /* X11CONTROLLER_H */
|