Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Classes/PianoRollView.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 176 - (show annotations) (download) (as text)
Wed Jan 1 07:59:43 2020 UTC (4 years, 3 months ago) by toshinagata1964
File MIME type: text/x-chdr
File size: 2057 byte(s)
During the piano-roll edit, the information at the cursor position is shown as a floating text
1 /* PianoRollView.h */
2 /*
3 Copyright (c) 2000-2016 Toshi Nagata. All rights reserved.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 */
14
15 #import <Cocoa/Cocoa.h>
16 #import "GraphicClientView.h"
17 #import "MDHeaders.h"
18
19 @interface PianoRollView : GraphicClientView
20 {
21 /* Cache the positions of notes whose note-offs are after cacheTick */
22 MDTickType cacheTick;
23 NSMutableArray *cacheArray; /* An array of IntGroupObject; the number of objects is the number of visible tracks, plus 1 for temporary recording track if present */
24 int32_t mouseDownTrack; /* mouseDownTrack/mouseDownPos remembers the position of the note on which the mouse down event was detected */
25 int32_t mouseDownPos;
26 int draggingMode;
27 NSPoint draggingStartPoint;
28 NSPoint draggingPoint;
29 NSImage *draggingImage;
30 NSRect limitRect;
31 NSRect selectionRect;
32 BOOL pencilOn; /* True if drawing with a pencil */
33
34 /* Note on during dragging etc. */
35 short playingNote;
36 short playingVelocity;
37 int32_t playingTrack;
38
39 /* Rubbing: play the note while dragging with option key down */
40 BOOL rubbing;
41 NSMutableArray *rubbingArray; /* An array of IntGroupObject; the number of objects is the number of editable tracks */
42 MDTickType rubbingTick;
43
44 // Used for showing cursor info when draggingMode > 0
45 // (i.e. while dragging the selected event(s))
46 int initialDraggedValue; // The initial strip value of the dragged event
47 int32_t initialDraggedTick; // The initial tick value of the dragged event
48 int deltaDraggedValue;
49 int32_t deltaDraggedTick;
50 }
51 - (void)mouseExited: (NSEvent *)theEvent; // Should stop rubbing
52
53 @end

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