diff options
author | avenjamin <avenjamin@gmail.com> | 2009-06-23 14:26:26 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-06-23 14:26:26 +0000 |
commit | e3dd3a976de60bb6dfcaf7643c376e574a6a3906 (patch) | |
tree | 5d7b2d9045288726ec4da1b25c49b128c5b59a23 /Source/TableDocument.m | |
parent | 819434c9cda0189662128862399baaa68a2537d2 (diff) | |
download | sequelpro-e3dd3a976de60bb6dfcaf7643c376e574a6a3906.tar.gz sequelpro-e3dd3a976de60bb6dfcaf7643c376e574a6a3906.tar.bz2 sequelpro-e3dd3a976de60bb6dfcaf7643c376e574a6a3906.zip |
- Add BWToolkit Framework to allow for better control over some UI elements
- Add TABLE INFORMATION toggle button - shows/hides pane
- Used new UI elements in Copy Table Syntax HUD window
- Misc other changes
- NOTE: more splitview changes to be made
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index efb2aee7..0bf9613e 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -2437,59 +2437,59 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum /** * defines max position of splitView */ -- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset -{ - if (sender == contentViewSplitter) { - return 300; - } else { - // - return proposedMax;//([tableInfoTable rowHeight] * [tableInfoTable numberOfRows] + 25); - } -} +//- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset +//{ +// if (sender == contentViewSplitter) { +// return 300; +// } else { +// // +// return proposedMax;//([tableInfoTable rowHeight] * [tableInfoTable numberOfRows] + 25); +// } +//} /** * defines min position of splitView */ -- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset -{ - if (sender == tableListSplitter) { - return [sender frame].size.height - [sender dividerThickness] - 145; - //return [sender frame].size.height - [sender dividerThickness] - ([tableInfoTable rowHeight] * [tableInfoTable numberOfRows] + 25); - } else { - return 160; - } -} - --(void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize -{ - [sender adjustSubviews]; - - if (sender == tableListSplitter && - ![tableListSplitter isSubviewCollapsed:[[sender subviews] objectAtIndex:1]]) { - - CGFloat dividerThickness = [sender dividerThickness]; - NSRect topRect = [[[sender subviews] objectAtIndex:0] frame]; - NSRect bottomRect = [[[sender subviews] objectAtIndex:1] frame]; - NSRect newFrame = [sender frame]; - - topRect.size.height = newFrame.size.height - 145 - dividerThickness; - topRect.size.width = newFrame.size.width; - topRect.origin = NSMakePoint(0, 0); - - bottomRect.size.height = newFrame.size.height - topRect.size.height - dividerThickness; - bottomRect.size.width = newFrame.size.width; - bottomRect.origin.y = topRect.size.height + dividerThickness; - - [[[sender subviews] objectAtIndex:0] setFrame:topRect]; - [[[sender subviews] objectAtIndex:1] setFrame:bottomRect]; - } -} - - -- (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex -{ - return NO;//splitView == tableListSplitter; -} +//- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset +//{ +// if (sender == tableListSplitter) { +// return [sender frame].size.height - [sender dividerThickness] - 145; +// //return [sender frame].size.height - [sender dividerThickness] - ([tableInfoTable rowHeight] * [tableInfoTable numberOfRows] + 25); +// } else { +// return 160; +// } +//} + +//-(void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize +//{ +// [sender adjustSubviews]; +// +// if (sender == tableListSplitter && +// ![tableListSplitter isSubviewCollapsed:[[sender subviews] objectAtIndex:1]]) { +// +// CGFloat dividerThickness = [sender dividerThickness]; +// NSRect topRect = [[[sender subviews] objectAtIndex:0] frame]; +// NSRect bottomRect = [[[sender subviews] objectAtIndex:1] frame]; +// NSRect newFrame = [sender frame]; +// +// topRect.size.height = newFrame.size.height - 145 - dividerThickness; +// topRect.size.width = newFrame.size.width; +// topRect.origin = NSMakePoint(0, 0); +// +// bottomRect.size.height = newFrame.size.height - topRect.size.height - dividerThickness; +// bottomRect.size.width = newFrame.size.width; +// bottomRect.origin.y = topRect.size.height + dividerThickness; +// +// [[[sender subviews] objectAtIndex:0] setFrame:topRect]; +// [[[sender subviews] objectAtIndex:1] setFrame:bottomRect]; +// } +//} + + +//- (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex +//{ +// return splitView == tableListSplitter; +//} - (void)splitViewDidResizeSubviews:(NSNotification *)notification { |