forked from KOed/welly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WLMainFrameController.h
123 lines (95 loc) · 3 KB
/
WLMainFrameController.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
116
117
118
119
120
121
122
123
//
// YLController.h
// MacBlueTelnet
//
// Created by Yung-Luen Lan on 9/11/07.
// Copyright 2007 yllan.org. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "WLSitesPanelController.h"
#define scrollTimerInterval 0.12
@class WLTabView;
@class WLFeedGenerator;
@class WLTabBarControl;
@class WLPresentationController;
@class RemoteControl;
@class MultiClickRemoteBehavior;
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
@protocol NSTabViewDelegate
@end
#endif
@interface WLMainFrameController : NSObject <NSTabViewDelegate, WLSitesObserver> {
/* composeWindow */
IBOutlet NSTextView *_composeText;
IBOutlet NSPanel *_composeWindow;
IBOutlet NSWindow *_mainWindow;
IBOutlet NSPanel *_messageWindow;
IBOutlet id _addressBar;
IBOutlet id _detectDoubleByteButton;
IBOutlet id _autoReplyButton;
IBOutlet id _mouseButton;
IBOutlet WLTabView *_tabView;
IBOutlet WLTabBarControl *_tabBarControl;
/* Menus */
IBOutlet NSMenuItem *_detectDoubleByteMenuItem;
IBOutlet NSMenuItem *_closeWindowMenuItem;
IBOutlet NSMenuItem *_closeTabMenuItem;
IBOutlet NSMenuItem *_autoReplyMenuItem;
IBOutlet NSMenuItem *_showHiddenTextMenuItem;
IBOutlet NSMenuItem *_encodingMenuItem;
IBOutlet NSMenuItem *_presentationModeMenuItem;
IBOutlet NSMenuItem *_sitesMenu;
/* Message */
IBOutlet NSTextView *_unreadMessageTextView;
// Remote Control
RemoteControl *_remoteControl;
MultiClickRemoteBehavior *_remoteControlBehavior;
NSTimer* _scrollTimer;
// Full Screen
WLPresentationController *_presentationModeController;
// RSS feed
NSThread *_rssThread;
// 10.7 Full Screen
@private
NSRect _originalFrame;
CGFloat _screenRatio;
NSColor *_originalWindowBackgroundColor;
NSDictionary *_originalSizeParameters;
}
@property (readonly) WLTabView *tabView;
+ (WLMainFrameController *)sharedInstance;
- (IBAction)toggleAutoReply:(id)sender;
- (IBAction)toggleMouseAction:(id)sender;
- (IBAction)connectLocation:(id)sender;
- (IBAction)openLocation:(id)sender;
- (IBAction)reconnect:(id)sender;
- (IBAction)openPreferencesWindow:(id)sender;
- (void)newConnectionWithSite:(WLSite *)site;
- (IBAction)openSitePanel:(id)sender;
- (IBAction)addCurrentSite:(id)sender;
- (IBAction)openEmoticonsPanel:(id)sender;
- (IBAction)openComposePanel:(id)sender;
- (IBAction)downloadPost:(id)sender;
// Message
- (IBAction)closeMessageWindow:(id)sender;
#pragma mark -
#pragma mark Menu:View
- (IBAction)toggleShowsHiddenText:(id)sender;
- (IBAction)toggleDetectDoubleByte:(id)sender;
- (IBAction)increaseFontSize:(id)sender;
- (IBAction)decreaseFontSize:(id)sender;
- (IBAction)togglePresentationMode:(id)sender;
- (IBAction)setEncoding:(id)sender;
/*
// for portal
- (IBAction)browseImage:(id)sender;
- (IBAction)removeSiteImage:(id)sender;
- (void)openPanelDidEnd:(NSOpenPanel *)sheet
returnCode:(int)returnCode
contextInfo:(void *)contextInfo;
*/
// for resotre
- (IBAction)restoreSettings:(id)sender;
// for RSS feed
- (IBAction)openRSS:(id)sender;
@end