-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
WindowArrangements.h
48 lines (33 loc) · 1.23 KB
/
WindowArrangements.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
//
// ArrangementsDataSource.h
// iTerm
//
// Created by George Nachman on 8/6/11.
// Copyright 2011 Georgetech. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "ArrangementPreviewView.h"
@interface WindowArrangements : NSObject {
IBOutlet NSTableColumn *defaultColumn_;
IBOutlet NSTableColumn *titleColumn_;
IBOutlet NSTableView *tableView_;
IBOutlet ArrangementPreviewView *previewView_;
IBOutlet NSButton *deleteButton_;
IBOutlet NSButton *defaultButton_;
}
+ (WindowArrangements *)sharedInstance;
+ (int)count;
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
+ (void)setArrangement:(NSArray *)arrangement withName:(NSString *)name;
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;
+ (BOOL)hasWindowArrangement:(NSString *)name;
+ (NSArray *)arrangementWithName:(NSString *)name;
+ (NSString *)defaultArrangementName;
- (NSArray *)defaultArrangement;
+ (void)makeDefaultArrangement:(NSString *)name;
+ (NSArray *)allNames;
- (IBAction)setDefault:(id)sender;
- (IBAction)deleteSelectedArrangement:(id)sender;
#pragma mark Delegate methods
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
@end