diff options
author | stuconnolly <stuart02@gmail.com> | 2011-05-07 23:51:13 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-05-07 23:51:13 +0000 |
commit | 96bc6d783f72032d5b04b4748f915239c56b9bd3 (patch) | |
tree | f9dc95e385d035c8a0f4be05b0783576985eb743 /Source | |
parent | 2d68227fd525a377796b6e825bf78bbda7f611b2 (diff) | |
download | sequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.tar.gz sequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.tar.bz2 sequelpro-96bc6d783f72032d5b04b4748f915239c56b9bd3.zip |
Re-add the ability the show the full process list in the server processes panel. Fixes issue #1036.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConstants.h | 1 | ||||
-rw-r--r-- | Source/SPConstants.m | 1 | ||||
-rw-r--r-- | Source/SPProcessListController.h | 1 | ||||
-rw-r--r-- | Source/SPProcessListController.m | 16 |
4 files changed, 17 insertions, 2 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h index df66951a..ef1fc0c4 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -349,6 +349,7 @@ extern NSString *SPTableInformationPanelCollapsed; extern NSString *SPTableColumnWidths; extern NSString *SPProcessListTableColumnWidths; extern NSString *SPProcessListShowProcessID; +extern NSString *SPProcessListShowFullProcessList; extern NSString *SPProcessListEnableAutoRefresh; extern NSString *SPProcessListAutoRrefreshInterval; extern NSString *SPFavoritesSortedBy; diff --git a/Source/SPConstants.m b/Source/SPConstants.m index abb27c1c..ef263d98 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -155,6 +155,7 @@ NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollap NSString *SPTableColumnWidths = @"tableColumnWidths"; NSString *SPProcessListTableColumnWidths = @"ProcessListTableColumnWidths"; NSString *SPProcessListShowProcessID = @"ProcessListShowProcessID"; +NSString *SPProcessListShowFullProcessList = @"ProcessListShowFullProcessList"; NSString *SPProcessListEnableAutoRefresh = @"ProcessListEnableAutoRefresh"; NSString *SPProcessListAutoRrefreshInterval = @"ProcessListAutoRrefreshInterval"; NSString *SPFavoritesSortedBy = @"FavoritesSortedBy"; diff --git a/Source/SPProcessListController.h b/Source/SPProcessListController.h index 3fc66c78..df5f48a6 100644 --- a/Source/SPProcessListController.h +++ b/Source/SPProcessListController.h @@ -58,6 +58,7 @@ - (IBAction)killProcessQuery:(id)sender; - (IBAction)killProcessConnection:(id)sender; - (IBAction)toggleShowProcessID:(id)sender; +- (IBAction)toggeleShowFullProcessList:(id)sender; - (IBAction)toggleProcessListAutoRefresh:(id)sender; - (IBAction)setAutoRefreshInterval:(id)sender; - (IBAction)setCustomAutoRefreshInterval:(id)sender; diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index 8062fd93..4caa6a59 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -62,6 +62,8 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; autoRefreshTimer = nil; processListThreadRunning = NO; + showFullProcessList = [prefs boolForKey:SPProcessListShowFullProcessList]; + processes = [[NSMutableArray alloc] init]; prefs = [NSUserDefaults standardUserDefaults]; @@ -288,6 +290,16 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; } /** + * Toggles the display of the FULL process list. + */ +- (IBAction)toggeleShowFullProcessList:(id)sender +{ + showFullProcessList = (!showFullProcessList); + + [self refreshProcessList:self]; +} + +/** * Toggles whether or not auto refresh is enabled. */ - (IBAction)toggleProcessListAutoRefresh:(id)sender @@ -309,7 +321,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; } /** - * + * Displays the set custom auto-refresh interval sheet. */ - (IBAction)setCustomAutoRefreshInterval:(id)sender { @@ -675,7 +687,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id"; // Get processes if ([connection isConnected]) { - MCPResult *processList = [connection listProcesses]; + MCPResult *processList = (showFullProcessList) ? [connection queryString:@"SHOW FULL PROCESSLIST"] : [connection listProcesses]; [processList setReturnDataAsStrings:YES]; |