5 // Created by Axel Balley on 26/10/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
9 #import <UIKit/UIKit.h>
10 #import <MediaPlayer/MediaPlayer.h>
11 #import "FileBrowserViewController.h"
12 #import "LiveCodingViewController.h"
13 #import "iPhoneSCNSWindow.h"
15 @interface iSCLangController
: NSObject
{
17 NSTimer
*appClockTimer
;
18 NSTimer
*deferredTaskTimer
;
19 NSMutableArray
*deferredOperations
;
21 MPMoviePlayerController
*recordingPlayer
;
23 IBOutlet UITabBarController
*tabBarController
;
24 IBOutlet UITextView
*logView
;
25 IBOutlet FileBrowserViewController
*browserViewController
;
26 IBOutlet LiveCodingViewController
*liveViewController
;
27 IBOutlet UIBarButtonItem
*speakersButton
;
30 @property UInt32 routeOverride
;
32 + (iSCLangController
*) sharedInstance
;
33 - (void) start
:(id
)arg
;
34 - (void) selectFile
:(NSString
*)string
;
35 - (void) selectPatch
:(NSString
*)string
;
36 - (void) selectRecording
:(NSString
*)string
;
37 - (void) interpret
:(NSString
*)string
;
38 - (void) doClockTask
:(NSTimer
*) timer
;
39 - (IBAction
) triggerStop
:(id
)sender
;
40 - (UITextView
*) logView
;
41 - (UIBarButtonItem
*) speakersButton
;
42 - (IBAction
) toggleSpeakers
:(id
)sender
;
44 - (void) insertWindow
:(SCNSWindow
*)window
;
45 - (void) makeWindowFront
:(SCNSWindow
*)window
;
46 - (void) closeWindow
:(SCNSWindow
*)window
;
47 - (void)defer
: (NSInvocation
*) action
;
48 - (void)performDeferredOperations
;
49 - (void)removeDeferredOperationsFor
:(id
) object
;