-
Notifications
You must be signed in to change notification settings - Fork 1
/
MediaContentController.h
107 lines (73 loc) · 2.67 KB
/
MediaContentController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
//
// MediaContentController.h
// SproutedInterface
//
// Created by Philip Dow on 6/11/06.
// Copyright Sprouted. All rights reserved.
// Inquiries should be directed to [email protected]
//
#import <Cocoa/Cocoa.h>
#import <CoreData/CoreData.h>
#define PDMediabarItemShowInFinder @"PDMediabarItemShowInFinder"
#define PDMediabarItemOpenWithFinder @"PDMediabarItemOpenWithFinder"
#define PDMediaBarItemGetInfo @"PDMediaBarItemGetInfo"
@class PDMediaBar;
@class PDMediabarItem;
@class JournlerGradientView;
@interface MediaContentController : NSObject {
IBOutlet NSView *contentView;
IBOutlet PDMediaBar *bar;
id delegate;
NSURL *URL;
id representedObject;
NSString *searchString;
NSDictionary *fileError;
NSManagedObjectContext *managedObjectContext;
}
- (id) initWithOwner:(id)anObject managedObjectContext:(NSManagedObjectContext*)moc;
- (NSView*) contentView;
- (NSUndoManager*) undoManager;
- (id) delegate;
- (void) setDelegate:(id)anObject;
- (NSManagedObjectContext*) managedObjectContext;
- (void) setManagedObjectContext:(NSManagedObjectContext*)moc;
- (id) representedObject;
- (void) setRepresentedObject:(id)anObject;
- (NSURL*) URL;
- (void) setURL:(NSURL*)aURL;
- (NSString*) searchString;
- (void) setSearchString:(NSString*)aString;
- (BOOL) loadURL:(NSURL*)aURL;
- (BOOL) highlightString:(NSString*)aString;
- (IBAction) printSelection:(id)sender;
- (IBAction) exportSelection:(id)sender;
- (IBAction) getInfo:(id)sender;
- (IBAction) showInFinder:(id)sender;
- (IBAction) openInFinder:(id)sender;
- (void) prepareTitleBar;
- (void) setWindowTitleFromURL:(NSURL*)aURL;
- (NSResponder*) preferredResponder;
- (void) appropriateFirstResponder:(NSWindow*)window;
- (void) appropriateAlternateResponder:(NSWindow*)aWindow;
- (void) establishKeyViews:(NSView*)previous nextKeyView:(NSView*)next;
- (BOOL) commitEditing;
- (void) ownerWillClose:(NSNotification*)aNotification;
- (void) updateContent;
- (void) stopContent;
- (BOOL) handlesFindCommand;
- (void) performCustomFindPanelAction:(id)sender;
- (BOOL) handlesTextSizeCommand;
- (void) performCustomTextSizeAction:(id)sender;
- (BOOL) canAnnotateDocumentSelection;
- (IBAction) annotateDocumentSelection:(id)sender;
- (BOOL) canHighlightDocumentSelection;
- (IBAction) highlightDocumentSelection:(id)sender;
- (BOOL)validateMenuItem:(NSMenuItem*)menuItem;
@end
@interface NSObject (MediaContentDelegate)
- (void) contentController:(MediaContentController*)controller changedTitle:(NSString*)title;
- (void) contentController:(MediaContentController*)aController showLexiconSelection:(id)anObject term:(NSString*)aTerm;
@end
@interface NSView (MediaContentAdditions)
- (void) setImage:(NSImage*)anImage;
@end