diff options
author | rowanbeentje <rowan@beent.je> | 2012-07-26 00:01:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-07-26 00:01:10 +0000 |
commit | 4cd351c7f3302207103ddfa4374da15cab6840a2 (patch) | |
tree | 1203a5ebff162395286402be8031bb757565f359 /Source/SPCustomQuery.h | |
parent | 6deec9586fa0057e286f250b86d2e88c409c3181 (diff) | |
download | sequelpro-4cd351c7f3302207103ddfa4374da15cab6840a2.tar.gz sequelpro-4cd351c7f3302207103ddfa4374da15cab6840a2.tar.bz2 sequelpro-4cd351c7f3302207103ddfa4374da15cab6840a2.zip |
- Replace the collapsible BWSplitView on the Query pane with a SPSplitView configured from code
- Replace the other NSSplitView on the Query pane with an equivalent SPSplitView to allow easier constraint management
- Fix SPSplitView collapsible subview resizing to only amend the collapsible subview's autoresizing mask along the axis of the split view, leaving the other axis untouched to avoid problems with subviews not correctly picking up window resize changes when they were collapsed
Diffstat (limited to 'Source/SPCustomQuery.h')
-rw-r--r-- | Source/SPCustomQuery.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/Source/SPCustomQuery.h b/Source/SPCustomQuery.h index f643b795..8c25cf60 100644 --- a/Source/SPCustomQuery.h +++ b/Source/SPCustomQuery.h @@ -49,23 +49,14 @@ #define SP_HISTORY_SAVE_MENUITEM_TAG 300001 #define SP_HISTORY_CLEAR_MENUITEM_TAG 300002 -#ifndef SP_REFACTOR @class SPCopyTable; @class SPQueryFavoriteManager; @class SPDataStorage; -@class BWSplitView; +@class SPSplitView; @class SPFieldEditorController; @class SPMySQLConnection; @class SPMySQLFastStreamingResult; @class SPTextView; -#else -@class SPCopyTable; -@class SPQueryFavoriteManager; -@class SPDataStorage; -@class SPFieldEditorController; -@class SPMySQLConnection -@class SPMySQLFastStreamingResult; -#endif @interface SPCustomQuery : NSObject #ifdef SP_REFACTOR @@ -106,7 +97,6 @@ IBOutlet id valueTextField; IBOutlet id runSelectionButton; IBOutlet id runAllButton; - IBOutlet id multipleLineEditingButton; IBOutlet NSMenuItem *runSelectionMenuItem; IBOutlet NSMenuItem *runAllMenuItem; @@ -133,11 +123,8 @@ #endif IBOutlet NSButton *queryInfoButton; -#ifndef SP_REFACTOR - IBOutlet BWSplitView *queryInfoPaneSplitView; -#else - IBOutlet NSSplitView *queryInfoPaneSplitView; -#endif + IBOutlet SPSplitView *queryInfoPaneSplitView; + IBOutlet SPSplitView *queryEditorSplitView; SPFieldEditorController *fieldEditor; @@ -234,7 +221,6 @@ - (IBAction)copyQueryHistory:(id)sender; - (IBAction)clearQueryHistory:(id)sender; - (IBAction)showCompletionList:(id)sender; -- (IBAction)toggleQueryInfoPaneCollapse:(NSButton *)sender; // Query actions - (void)performQueries:(NSArray *)queries withCallback:(SEL)customQueryCallbackMethod; |