diff options
author | rowanbeentje <rowan@beent.je> | 2009-07-26 12:40:34 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-07-26 12:40:34 +0000 |
commit | 84fdbe2ab1489786031973997f8413cd2f137375 (patch) | |
tree | 6c2582eb2eb4dea292c53f621867498f0a8fbba6 /Source/TablesList.h | |
parent | b9519867ed83d228e16937ae77c1adbba1676c79 (diff) | |
download | sequelpro-84fdbe2ab1489786031973997f8413cd2f137375.tar.gz sequelpro-84fdbe2ab1489786031973997f8413cd2f137375.tar.bz2 sequelpro-84fdbe2ab1489786031973997f8413cd2f137375.zip |
- Tweak table information panel to show scrollbars if it's resized to a position that would hide content
- Store collapse state of table information panel in preferences
- Apply a double fix for BWSplitView/NSSplitView+BWAnchoredButtonBar not informing delegates of resizes - correctly inform original BWSplitView delegates of resizes, and allow BWAnchoredButtonBar registered delegates to recieve the original split view resize notifications. This fixes database menu resizing in synch with splitview resizing for improved/consistent look and feel.
Diffstat (limited to 'Source/TablesList.h')
-rw-r--r-- | Source/TablesList.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/TablesList.h b/Source/TablesList.h index bd1e36e9..6210f9e7 100644 --- a/Source/TablesList.h +++ b/Source/TablesList.h @@ -37,6 +37,12 @@ enum sp_table_types @class CMMCResult, MCPConnection; +@interface NSObject (NSSplitView) +- (NSView *)collapsibleSubview; +- (IBAction)toggleCollapse:(id)sender; +- (void)setCollapsibleSubviewCollapsed:(BOOL)flag; +@end + @interface TablesList : NSObject { IBOutlet id tableDocumentInstance; @@ -67,6 +73,8 @@ enum sp_table_types IBOutlet id renameTableButton; IBOutlet id truncateTableButton; IBOutlet id truncateTableContextButton; + IBOutlet NSSplitView *tableListSplitView; + IBOutlet NSButton *tableInfoCollapseButton; IBOutlet NSMenuItem *removeTableMenuItem; IBOutlet NSMenuItem *duplicateTableMenuItem; @@ -94,6 +102,7 @@ enum sp_table_types - (IBAction)copyTable:(id)sender; - (IBAction)renameTable:(id)sender; - (IBAction)truncateTable:(id)sender; +- (IBAction)togglePaneCollapse:(id)sender; // copyTableSheet methods - (IBAction)closeCopyTableSheet:(id)sender; |