diff options
author | rowanbeentje <rowan@beent.je> | 2013-11-10 23:08:52 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-11-10 23:08:52 +0000 |
commit | 7ae31e80623186465fa94e8e517fe0d56b32477f (patch) | |
tree | 7299be271ea57dd72af5ec4ce3a43e4b0e73219d /Source | |
parent | aad0b2000b15891b855ad69f02e2dc12d660ca86 (diff) | |
download | sequelpro-7ae31e80623186465fa94e8e517fe0d56b32477f.tar.gz sequelpro-7ae31e80623186465fa94e8e517fe0d56b32477f.tar.bz2 sequelpro-7ae31e80623186465fa94e8e517fe0d56b32477f.zip |
Add the XIB support for Multiple Table Content Filters (Issue #63). The required code is not committed yet, but committing the updated DBView.xib now avoids future xib conflicts while the code is completed.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableContent.h | 3 | ||||
-rw-r--r-- | Source/SPTableContent.m | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h index ab62b87f..131b4313 100644 --- a/Source/SPTableContent.h +++ b/Source/SPTableContent.h @@ -112,6 +112,9 @@ IBOutlet NSButton *filterTableSearchAllFields; IBOutlet NSPanel *filterTableSetDefaultOperatorSheet; IBOutlet NSComboBox* filterTableSetDefaultOperatorValue; + + // Temporary to avoid nib conflicts during WIP + IBOutlet SPSplitView *contentSplitView; #endif SPMySQLConnection *mySQLConnection; diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index fa7b9a2c..17efd5ae 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -215,6 +215,11 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper _mainNibLoaded = YES; #ifndef SP_CODA /* ui manipulation */ + // Temporary to avoid nib conflicts during WIP + [contentSplitView setCollapsibleSubviewIndex:0]; + [contentSplitView setCollapsibleSubviewCollapsed:YES animate:NO]; + [contentSplitView setMaxSize:0.f ofSubviewAtIndex:0]; + // Set the table content view's vertical gridlines if required [tableContentView setGridStyleMask:([prefs boolForKey:SPDisplayTableViewVerticalGridlines]) ? NSTableViewSolidVerticalGridLineMask : NSTableViewGridNone]; [filterTableView setGridStyleMask:([prefs boolForKey:SPDisplayTableViewVerticalGridlines]) ? NSTableViewSolidVerticalGridLineMask : NSTableViewGridNone]; |