-
Notifications
You must be signed in to change notification settings - Fork 0
/
DrawerManager.h
executable file
·96 lines (89 loc) · 3.34 KB
/
DrawerManager.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
// ##############################################################
// DrawerManager.h
// Magic Number Machine
//
// Created by Matt Gallagher on Sun Apr 20 2003.
// Copyright (c) 2003 Matt Gallagher. All rights reserved.
// ##############################################################
#import <Cocoa/Cocoa.h>
@class HistoryCell;
@class DataManager;
@class BigCFloat;
@class DataFunctions;
//
// About the DrawerManager
//
// The DrawerManager is an odd collection of both data, behaviour and input
// management for all of the drawers attached to the edge of the window. There
// is only one instance of the DrawerManager in the application.
//
// All the data which statically populates some tables in the drawers is statically
// defined in the constructor (ugly). This includes all the constants and the
// Data functions.
//
// The actual data kept in the "Data" drawers is owned by the DataManager class.
//
@interface DrawerManager : NSObject
{
IBOutlet id arrayDataDrawer;
IBOutlet NSTableView *arrayDataFunctionsTableView;
IBOutlet NSTableView *arrayDataTableView;
IBOutlet id constantsDrawer;
IBOutlet NSTableView *constantsTableView;
IBOutlet id data2DDrawer;
IBOutlet NSTableView *data2DFunctionsTableView;
IBOutlet NSTableView *data2DTableView;
IBOutlet id dataDrawer;
IBOutlet NSTableView *dataFunctionsTableView;
IBOutlet DataManager *dataManager;
IBOutlet DataFunctions *dataFunctions;
IBOutlet NSTableView *dataTableView;
IBOutlet id historyDrawer;
IBOutlet NSTableView *historyTableView;
IBOutlet id inputManager;
IBOutlet id radixDrawer;
IBOutlet NSTableView *radixTableView;
__weak IBOutlet NSToolbar *toolbarData2D;
__weak IBOutlet NSToolbar *toolbarDataArray;
__weak IBOutlet NSToolbar *toolbarConstants;
__weak IBOutlet NSToolbar *toolbarRadix;
__weak IBOutlet NSToolbar *toolbarHistory;
__weak IBOutlet NSToolbar *toolbarData;
__weak IBOutlet NSTabView *drawerTabView;
__weak IBOutlet NSButton *addDataButton;
// NSDrawer *activeDrawer;
NSArray *radixDataRows;
NSArray *arrayDataFunctionRows;
NSArray *dataFunctionRows;
NSArray *data2DFunctionRows;
HistoryCell *historyCell;
int numArrayColumns;
}
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (void)addArrayData:(BigCFloat*)value;
- (void)addData:(BigCFloat*)value;
- (void)addData2D:(BigCFloat*)value;
- (IBAction)arrayColumnsChanged:(id)sender;
- (IBAction)applyArrayDataFunction:(id)sender;
- (IBAction)applyData2DFunction:(id)sender;
- (IBAction)applyDataFunction:(id)sender;
- (IBAction)changeRadix:(id)sender;
- (IBAction)clearAllArrayDataValues:(id)sender;
- (IBAction)clearAllData2DValues:(id)sender;
- (IBAction)clearAllDataValues:(id)sender;
- (IBAction)clearArrayValue:(id)sender;
- (IBAction)clearData2DValue:(id)sender;
- (IBAction)clearDataValue:(id)sender;
- (IBAction)constantSelected:(id)sender;
- (IBAction)copyDataValueToDisplay:(id)sender;
- (IBAction)historySelected:(id)sender;
@property (NS_NONATOMIC_IOSONLY, readonly) int numberOfArrayColumns;
- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
- (void)setStartupState;
- (id)tableView:(NSTableView*)aTableView objectValueForTableColumn:(NSTableColumn*)aTableColumn row:(int)rowIndex;
- (IBAction)toggleDrawer:(id)sender;
- (void)updateArrayDataArray;
- (void)updateData2DArray;
- (void)updateDataArray;
- (void)updateHistory;
@end