Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 765:4cd066048203
prev755:ab873907b00e
next770:429ff505c450
author nkeynes
date Wed Jul 23 11:11:30 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Cocoa preferences panel work-in-progress
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoaui.h Mon Jul 21 00:08:34 2008 +0000
1.2 +++ b/src/cocoaui/cocoaui.h Wed Jul 23 11:11:30 2008 +0000
1.3 @@ -29,9 +29,15 @@
1.4
1.5 #define NS_(x) [NSString stringWithUTF8String: _(x)]
1.6
1.7 +/* Standard sizing */
1.8 +#define TEXT_HEIGHT 22
1.9 +#define LABEL_HEIGHT 17
1.10 +#define TEXT_GAP 10
1.11 +
1.12 NSWindow *cocoa_gui_create_main_window();
1.13 NSMenu *cocoa_gdrom_menu_new();
1.14 NSView *video_osx_create_drawable();
1.15 +void cocoa_gui_show_preferences();
1.16
1.17 @interface LxdreamMainWindow : NSWindow
1.18 {
1.19 @@ -46,12 +52,41 @@
1.20 - (void)setIsGrabbed:(BOOL)grab;
1.21 @end
1.22
1.23 +@interface LxdreamPrefsPane : NSView
1.24 +{
1.25 + int headerHeight;
1.26 +}
1.27 +- (id)initWithFrame: (NSRect)frameRect title:(NSString *)title;
1.28 +/**
1.29 + * Create a text label and add it to the pane
1.30 + */
1.31 +- (NSTextField *)addLabel: (NSString *)text withFrame: (NSRect)frame;
1.32 +- (int)contentHeight;
1.33 +@end
1.34 +
1.35 @interface LxdreamPrefsPanel : NSPanel
1.36 {
1.37 + NSArray *toolbar_ids;
1.38 + NSArray *toolbar_defaults;
1.39 + NSDictionary *toolbar_items;
1.40 + NSView *path_pane, *ctrl_pane;
1.41 }
1.42 - (id)initWithContentRect:(NSRect)contentRect;
1.43 @end
1.44
1.45 +@interface LxdreamPrefsPathPane: LxdreamPrefsPane
1.46 +{
1.47 +}
1.48 ++ (LxdreamPrefsPathPane *)new;
1.49 +@end
1.50 +
1.51 +@interface LxdreamPrefsControllerPane: LxdreamPrefsPane
1.52 +{
1.53 + struct maple_device *save_controller[4];
1.54 +}
1.55 ++ (LxdreamPrefsControllerPane *)new;
1.56 +@end
1.57 +
1.58 #ifdef __cplusplus
1.59 }
1.60 #endif
.