forked from lksoft/MailCommon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MCCOptionalViewController.h
54 lines (39 loc) · 1.85 KB
/
MCCOptionalViewController.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
//
// MCCOptionalViewController.h
// Tealeaves
//
// Created by Scott Little on 25/6/13.
// Copyright (c) 2013 Little Known Software. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "MCCCommonHeader.h"
typedef NS_ENUM(NSInteger, MCC_PREFIXED_NAME(OptionalViewPosition)) {
MCC_PREFIXED_NAME(OptionalViewPositionHiddenAcctShown),
MCC_PREFIXED_NAME(OptionalViewPositionHiddenAcctHidden),
MCC_PREFIXED_NAME(OptionalViewPositionHiddenAllHidden),
MCC_PREFIXED_NAME(OptionalViewPositionShownAcctShown),
MCC_PREFIXED_NAME(OptionalViewPositionShownAcctHidden),
MCC_PREFIXED_NAME(OptionalViewPositionShownAllHidden)
};
@class DocumentEditor;
@class ComposeBackEnd;
@class ComposeHeaderView;
@interface MCC_PREFIXED_NAME(OptionalViewController) : NSObject
@property (nonatomic, strong) IBOutlet OptionalView *optionalView;
@property (nonatomic, strong) IBOutlet NSButton *visibleCheckbox;
@property (nonatomic, strong) IBOutlet NSButton *switchView;
@property (nonatomic, assign) BOOL visible;
@property (nonatomic, assign) BOOL doingHeaderCustomization;
@property (nonatomic, assign) BOOL savedIsVisible;
@property (nonatomic, assign) MCC_PREFIXED_NAME(OptionalViewPosition) savedPosition;
#pragma mark - Helper Class Methods
+ (NSString *)optionalViewNibName;
+ (NSNib *)optionalViewNib;
+ (MCC_PREFIXED_NAME(OptionalViewController) *)controllerWithID:(id)keyObject;
+ (MCC_PREFIXED_NAME(OptionalViewController) *)controllerWithBackEnd:(ComposeBackEnd *)keyObject;
+ (MCC_PREFIXED_NAME(OptionalViewController) *)controllerWithHeaderView:(ComposeHeaderView *)keyObject;
+ (void)updateControllerWithEditor:(DocumentEditor *)editor;
+ (void)removeControllerWithEditor:(DocumentEditor *)keyObject;
+ (DocumentEditor *)editorWithBackEnd:(ComposeBackEnd *)backEnd;
+ (DocumentEditor *)editorWithHeaderView:(ComposeHeaderView *)headerView;
@end