-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTumblrController.h
115 lines (93 loc) · 3.27 KB
/
TumblrController.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
108
109
110
111
112
113
114
115
//
// TumblrController.h
// Tumblor
//
// Created by orta on 19/07/2008.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TextController.h"
#import "ImageController.h"
#import "VideoController.h"
#import "QuoteController.h"
#import "ConversationController.h"
#import "AudioController.h"
#import "LinkController.h"
#import "WelcomeController.h"
#import "ConnectionController.h"
#import "ORViews.h"
#import <iMediaBrowser/iMediaBrowser.h>
@interface TumblrController : NSViewController {
IBOutlet NSView *mainWindowContentView;
IBOutlet NSWindow *mainWindow;
IBOutlet NSToolbarItem *textItem;
IBOutlet NSToolbarItem *imageItem;
IBOutlet NSToolbarItem *videoItem;
IBOutlet NSToolbarItem *quoteItem;
IBOutlet NSToolbarItem *conversationItem;
IBOutlet NSToolbarItem *linkItem;
IBOutlet NSToolbarItem *audioItem;
IBOutlet NSToolbarItem *welcomeItem;
IBOutlet NSToolbar *toolBar;
IBOutlet NSView *textView;
IBOutlet NSView *imageView;
IBOutlet NSView *videoView;
IBOutlet NSView *quoteView;
IBOutlet NSView *conversationView;
IBOutlet NSView *linkView;
IBOutlet NSView *audioView;
IBOutlet NSView *welcomeView;
IBOutlet TextController *textController;
IBOutlet ImageController *imageController;
IBOutlet VideoController *videoController;
IBOutlet QuoteController *quoteController;
IBOutlet ConversationController *conversationController;
IBOutlet AudioController *audioController;
IBOutlet LinkController *linkController;
IBOutlet WelcomeController *welcomeController;
IBOutlet ConnectionController *connectionController;
IBOutlet ORExtrasGradientView * moreOptionsView;
IBOutlet NSButton* moreOptionsButton;
IBOutlet ORBlackBackgroundView * prefsView;
NSArray * toolbarItems;
NSArray * viewsForContentTypes;
NSArray * viewControllers;
NSView * currentView;
NSView * oldView;
NSNumber * currentViewIndex;
NSNumber * oldViewIndex;
int magicFooterNumber;
int magicToolbarSizeNumber;
bool superfluousVisualEffects;
bool _inverseDirectionOnce;
bool loggedIn;
bool showingPrefs;
bool showingExtraInfo;
}
- (IBAction)toolbarClicked:(id)sender;
- (IBAction)nextTab:(id)sender;
- (IBAction)previousTab:(id)sender;
- (IBAction)toggleExtraPostInfo:(id)sender;
- (IBAction)togglePrefs:(id)sender;
- (IBAction)advancedUsage:(id)sender;
- (IBAction)newTextPost:(id)sender;
- (IBAction)appHelp:(id)sender;
+ (int) fileTypeForFilePath: (NSString *) filename;
- (void) importTextContentWithBody:(NSString *)aBody
title:(NSString *) aTitle
summary:(NSString *)aSummary
link:(NSString *)aLink
source:(NSString *) aSource
asType:(int)type;
- (void) importFileContentWithPath:(NSString *)path
andDescription:(NSString*) description;
- (void) setCurrentViewIndex:(int)newIndex;
- (int) currentViewIndex;
- (id) currentViewController;
- (void) removeOldView;
- (void) setLoggedIn:(bool) newBool;
- (bool) loggedIn;
- (void) networkDown;
- (void) doubleClickInPhotosBrowser:(NSNotification *)notification;
- (void)iMediaConfiguration:(iMediaConfiguration *)configuration doubleClickedSelectedObjects:(NSArray*)selection;
@end