Finale PDK Framework 0.77
Power Up Your Finale Music Software
Loading...
Searching...
No Matches
finaleframework_cocoa.h
1//
2// finaleframework_cocoa.h
3// cocoatest
4//
5// Created by Jari Williamsson on 2013-07-05.
6// Copyright (c) 2013 Jari Williamsson. All rights reserved.
7//
8//
9// Interface declarations for the Cocoa UI code in the PDK Framework.
10
11#ifdef __OBJC__
12
13#import <Cocoa/Cocoa.h>
14#import "ff_cocoa_cppinterface.h"
15
16// tracks Absolute enigma font style
17const NSAttributedStringKey FCEnigmaStringAbsoluteAttributeName = @"FCEnigmaStringAbsoluteAttributeName";
18const BOOL FCEnigmaStringAbsoluteStyle = YES;
19// tracks Hidden enigma font style
20const NSAttributedStringKey FCEnigmaStringHiddenAttributeName = @"FCEnigmaStringHiddenAttributeName";
21const BOOL FCEnigmaStringHiddenStyle = YES;
22// tracks Superscript enigma text style (which has a baseline offset, as opposed to NSSuperscriptAttributeName, which does not)
23// this value gets added to the NSBaselineOffsetAttributeName value, so it must be subtracted out to get the Enigma baseline offset
24const NSAttributedStringKey FCEnigmaStringSuperscriptAttributeName = @"FCEnigmaStringSuperscriptAttributeName"; // CGFloat
25
26
27#ifdef PDK_FRAMEWORK_DIALOGS
28
29#include "ff_plugin_classnames.h"
30
31/* NSWindow delegate. Class name is unique for plug-in. */
32
33@interface __FC_WINDOWDELEGATE_CLASS : NSObject<NSWindowDelegate>
34
35@end
36
37/* NSWindow controller. Class name is unique for plug-in. */
38
39@interface __FC_WINDOWCONTROLLER_CLASS : NSWindowController
40{
41 _FCWindowController_cocoa* _pOwner;
42}
43
44@property (strong, nonatomic) __FC_WINDOWDELEGATE_CLASS *windowDelegate;
45
46- (void) windowDidLoad;
47
48- (void) setCocoaOwner:(_FCWindowController_cocoa*) pOwner;
49- (_FCWindowController_cocoa*) cocoaOwner;
50
51- (NSInteger) getControlID:(id) sender;
52- (id) findControlByTagIn:(NSView *)view value:(int)tagno;
53- (id) findControlByTag:(int) tagno;
54
55
56- (IBAction)okButtonPressed:(id)sender;
57- (IBAction)cancelButtonPressed:(id)sender;
58- (IBAction)buttonPressed:(id)sender;
59
60- (void) timerEvent:(id)sender;
61
62- (void) setupFCControlTargetOf:(NSView *)view;
63- (void) setupFCWindowTargets;
64
65@end
66
67@interface __FC_TEXTVIEW_CLASS : NSTextView
68@end
69
70@interface __FC_TABLEVIEW_CLASS : NSTableView
71@property (nonatomic, assign) NSInteger lastSelectedRow;
72@end
73
74@interface __FC_SLIDER_CLASS : NSSlider
75@end
76
77#endif /* PDK_FRAMEWORK_DIALOGS */
78
79#endif