Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Classes/PlayingViewController.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 146 - (show annotations) (download) (as text)
Sun Dec 17 04:05:28 2017 UTC (6 years, 3 months ago) by toshinagata1964
File MIME type: text/x-chdr
File size: 3154 byte(s)
Xcode project is updated so that ppc/i386 universal binary can be built (as before)
1 //
2 // PlayingViewCotroller.h
3 //
4 // Created by Toshi Nagata.
5 /*
6 Copyright (c) 2000-2011 Toshi Nagata. All rights reserved.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 */
17
18 #import <Cocoa/Cocoa.h>
19 #import "MDHeaders.h"
20
21 @class MyDocument;
22
23 @interface PlayingViewController : NSObject
24 {
25 IBOutlet id recordButton;
26 IBOutlet id stopButton;
27 IBOutlet id playButton;
28 IBOutlet id pauseButton;
29 IBOutlet id ffButton;
30 IBOutlet id rewindButton;
31 IBOutlet id countField;
32 IBOutlet id markerPopup;
33 IBOutlet id positionSlider;
34 IBOutlet id timeField;
35 // IBOutlet id tunePopup;
36 IBOutlet id progressIndicator;
37 IBOutlet id parentController;
38
39 // int activeIndex; /* The active document (the selected item of tunePopup) */
40 // int status; /* The player status (kMDPlayer_ready, kMDPlayer_playing, kMDPlayer_suspended) */
41 // NSMutableArray *docArray; /* The array of MyMIDIDocuments */
42 MyDocument *myDocument; /* Initialized in windowDidLoad (called by parentController) */
43 NSMutableArray *tickArray; /* Marker ticks (the marker names are stored in markerPopup) */
44 MDCalibrator *calibrator; /* For time<->tick conversion */
45 MDTimeType currentTime; /* Current time (in microseconds, tune top = 0) */
46 MDTimeType totalTime; /* Total playing time (in microseconds) */
47 NSTimer *timer; /* Refresh the display periodically during playing */
48 BOOL isRecording; /* True if the record button is pressed */
49 BOOL shouldContinuePlay; /* Flag to continue playing after FF/Rewind/Slider actions */
50 BOOL isAudioRecording; /* True if next recording activity is for audio */
51 int callbackCount; /* Increment by every call to timerCallback */
52 // NSTimer *resumeTimer; /* Timer to resume playing after FF/Rew/Slider actions */
53 }
54
55 //+ (PlayingPanelController *)sharedPlayingPanelController;
56
57 - (IBAction)moveSlider:(id)sender;
58 - (IBAction)pressFFButton:(id)sender;
59 - (IBAction)pressPauseButton:(id)sender;
60 - (IBAction)pressPlayButton:(id)sender;
61 - (IBAction)pressRewindButton:(id)sender;
62 - (IBAction)pressStopButton:(id)sender;
63 - (IBAction)pressRecordButton:(id)sender;
64 - (void)recordButtonPressed: (id)sender audioFlag: (BOOL)audioFlag;
65
66 - (IBAction)selectMarker:(id)sender;
67 - (IBAction)tickTextEdited: (id)sender;
68 - (IBAction)timeTextEdited: (id)sender;
69
70 //- (IBAction)selectTune:(id)sender;
71 //- (void)selectTuneAtIndex:(int)index;
72 //- (int)refreshMIDIDocument: (MyDocument *)document;
73 //- (void)removeMIDIDocument: (MyDocument *)document;
74 - (void)timerCallback: (NSTimer *)timer;
75 - (void)refreshTimeDisplay;
76 - (void)updateMarkerList;
77
78 - (void)setCurrentTime: (MDTimeType)newTime;
79 - (void)setCurrentTick: (MDTickType)newTick;
80
81 // Called from the parent windowController
82 - (void)windowDidLoad;
83
84 @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26