|
35 | 35 | @class SPMySQLConnection;
|
36 | 36 | @class SPTableView;
|
37 | 37 |
|
38 |
| -@interface SPIndexesController : NSWindowController |
39 |
| -#ifdef SP_CODA |
40 |
| -<NSTableViewDelegate, NSTableViewDataSource> |
41 |
| -#endif |
| 38 | +@interface SPIndexesController : NSWindowController <NSTableViewDelegate, NSTableViewDataSource> |
42 | 39 | {
|
43 | 40 | // Controllers
|
44 | 41 | IBOutlet SPDatabaseDocument *dbDocument;
|
|
62 | 59 | IBOutlet NSButton *addIndexedColumnButton;
|
63 | 60 | IBOutlet NSButton *removeIndexedColumnButton;
|
64 | 61 | IBOutlet NSButton *confirmAddIndexButton;
|
65 |
| -#ifndef SP_CODA |
66 | 62 | IBOutlet NSBox *anchoredButtonBar;
|
67 | 63 |
|
68 | 64 | // Advanced options view
|
|
71 | 67 | IBOutlet NSButton *indexAdvancedOptionsViewLabelButton;
|
72 | 68 | IBOutlet NSPopUpButton *indexStorageTypePopUpButton;
|
73 | 69 | IBOutlet NSTextField *indexKeyBlockSizeTextField;
|
74 |
| -#endif |
75 | 70 |
|
76 |
| - BOOL _mainNibLoaded; |
| 71 | + BOOL mainNibLoaded; |
77 | 72 | BOOL isMyISAMTable;
|
78 | 73 | BOOL isInnoDBTable;
|
79 | 74 | NSString *table;
|
80 | 75 |
|
81 | 76 | NSMutableArray *fields, *indexes, *indexedFields;
|
82 | 77 | NSArray *supportsLength, *requiresLength;
|
83 | 78 |
|
84 |
| -#ifndef SP_CODA /* ivars */ |
85 | 79 | NSUserDefaults *prefs;
|
86 |
| -#endif |
87 | 80 |
|
88 | 81 | SPMySQLConnection *connection;
|
89 |
| - |
90 |
| -#ifndef SP_CODA /* ivars */ |
| 82 | + |
91 | 83 | BOOL showAdvancedView;
|
92 | 84 |
|
93 | 85 | NSInteger heightOffset;
|
94 | 86 | NSUInteger windowMinWidth;
|
95 | 87 | NSUInteger windowMinHeigth;
|
96 |
| -#endif |
97 | 88 | }
|
98 | 89 |
|
99 |
| -#ifdef SP_CODA |
100 |
| -@property (assign) SPTableView* indexesTableView; |
101 |
| -@property (assign) SPTableStructure* tableStructure; |
102 |
| -@property (assign) NSButton* addIndexButton; |
103 |
| -@property (assign) NSButton* removeIndexButton; |
104 |
| - |
105 |
| -- (void)setDatabaseDocument:(SPDatabaseDocument*)db; |
106 |
| -#endif |
107 |
| - |
108 | 90 | /**
|
109 | 91 | * @property table The table currently being viewed
|
110 | 92 | */
|
|
0 commit comments