Browse Subversion Repository
Contents of /trunk/Classes/PasteWarningPanelController.h
Parent Directory
| Revision Log
Revision 190 -
( show annotations)
( download)
( as text)
Sat Mar 14 14:32:34 2020 UTC
(4 years, 2 months ago)
by toshinagata1964
File MIME type: text/x-chdr
File size: 1293 byte(s)
Copy & paste for multiple tracks are reworked
| 1 |
// |
| 2 |
// PasteWarningPanelController.h |
| 3 |
// Alchemusica |
| 4 |
// |
| 5 |
// Created by Toshi Nagata on 2020/03/14. |
| 6 |
// Copyright 2020 Toshi Nagata. All rights reserved. |
| 7 |
// |
| 8 |
/* |
| 9 |
This program is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation version 2 of the License. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
*/ |
| 18 |
|
| 19 |
#import <Cocoa/Cocoa.h> |
| 20 |
|
| 21 |
enum { |
| 22 |
kPasteWarningTypeTooManyTargets = 1, |
| 23 |
kPasteWarningTypeTooFewTargets, |
| 24 |
kPasteWarningTypeConductorShouldBeEditable, |
| 25 |
kPasteWarningTypeConductorShouldNotBeEditable |
| 26 |
}; |
| 27 |
|
| 28 |
@interface PasteWarningPanelController : NSWindowController { |
| 29 |
IBOutlet NSTextField *mainMessage; |
| 30 |
IBOutlet NSButton *radio1; |
| 31 |
IBOutlet NSButton *radio2; |
| 32 |
int returnCode; |
| 33 |
int type; |
| 34 |
} |
| 35 |
+ (id)createPasteWarningPanelControllerOfType:(int)aType; |
| 36 |
- (void)setMainMessageWithInteger:(int)n1 and:(int)n2; |
| 37 |
- (int)runSheetModalWithWindow:(NSWindow *)window; |
| 38 |
- (IBAction)radioSelected:(id)sender; |
| 39 |
- (IBAction)cancelPressed:(id)sender; |
| 40 |
- (IBAction)pastePressed:(id)sender; |
| 41 |
|
| 42 |
@end |
|