5 // Created by Doug Dickinson on Fri Apr 18 2003.
6 // Copyright (c) 2003 Doug Dickinson (dasher AT DressTheMonkey DOT plus DOT com). All rights reserved.
10 #import <Foundation/Foundation.h>
11 #import <AppKit/AppKit.h>
13 #import "COSXDasherControl.h"
14 #import "DasherViewOpenGL.h"
16 #import "DasherEdit.h"
17 #import "KeyboardHelper.h"
20 @
class DasherTextView
;
22 @interface DasherApp
: NSObject
24 IBOutlet NSWindow
*dasherPanelUI
;
26 COSXDasherControl
*aquaDasherControl
;
27 DasherViewOpenGL
*dasherView
;
29 IBOutlet AppWatcher
*appWatcher
;
30 IBOutlet DasherTextView
*textView
;
33 NSSpeechSynthesizer
*spSyn
;
34 CKeyboardHelper
*_keyboardHelper
;
39 @property BOOL gameModeOn
;
40 @property BOOL directMode
;
41 @
property (readonly
,retain
) NSString
*filename
;
42 @property BOOL modified
;
45 - (void)changeScreen
:(CDasherScreen
*)aScreen
;
46 - (NSDictionary
*)parameterDictionary
;
47 - (NSArray
*)permittedValuesForParameter
:(int)aParameter
;
48 - (id
)getParameterValueForKey
:(NSString
*)aKey
;
49 - (void)setParameterValue
:(id
)aValue forKey
:(NSString
*)aKey
;
51 - (IBAction
)importTrainingText
:(id
)sender
;
52 - (IBAction
)showPreferences
:(id
)sender
;
53 - (void)setPanelAlphaValue
:(float)anAlphaValue
;
55 - (void)windowWillClose
:(NSNotification
*)aNotification
;
56 - (COSXDasherControl
*)aquaDasherControl
;
57 - (void)setAquaDasherControl
:(COSXDasherControl
*)value
;
59 - (void)shutdownTimer
;
61 - (void)timerCallback
:(NSTimer
*)aTimer
;
63 - (bool)supportsSpeech
;
64 - (void)speak
:(NSString
*)sText interrupt
:(bool)bInt
;
65 - (void)copyToClipboard
:(NSString
*)sText
;
66 - (void)handleKeyDown
:(NSEvent
*)e
;
67 - (void)handleKeyUp
:(NSEvent
*)e
;
68 - (IBAction
)newDoc
:(id
)sender
;
69 - (IBAction
)openDoc
:(id
)sender
;
70 - (IBAction
)saveDoc
:(id
)sender
;
71 - (IBAction
)saveDocAs
:(id
)sender
;
72 - (IBAction
)revertToSaved
:(id
)sender
;
74 @
property (assign
) DasherViewOpenGL
*dasherView
;