From 452e5fb8e8fd1f22be98b26ece0010af09fb3d7d Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 24 Apr 2010 17:10:55 +0000 Subject: Bunch of improvements to the serve processes panel, including: - MCPKit's listProcesses (mysql_list_processes) method is now used, instead of running the query ourselves. - The ability to set whether or not the list is auto refreshed. - The ability to set the autorefresh interval, either via the presets or by entering a custom value (the interface for this might need updating). - Get the process list is now performed on a background thread. This completes the implementation of issue #607. --- Source/SPProcessListController.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Source/SPProcessListController.h') diff --git a/Source/SPProcessListController.h b/Source/SPProcessListController.h index 5283c417..be095d40 100644 --- a/Source/SPProcessListController.h +++ b/Source/SPProcessListController.h @@ -32,26 +32,36 @@ BOOL showFullProcessList; + NSTimer *autoRefreshTimer; + NSUserDefaults *prefs; NSMutableArray *processes, *processesFiltered; + IBOutlet NSWindow *customIntervalWindow; + IBOutlet NSTextField *customIntervalTextField; + IBOutlet NSButton *customIntervalButton; IBOutlet NSTableView *processListTableView; IBOutlet NSTextField *processesCountTextField; IBOutlet NSSearchField *filterProcessesSearchField; IBOutlet NSProgressIndicator *refreshProgressIndicator; IBOutlet NSButton *saveProcessesButton; IBOutlet NSButton *refreshProcessesButton; + IBOutlet NSButton *autoRefreshButton; + IBOutlet NSMenuItem *autoRefreshIntervalMenuItem; } @property (readwrite, assign) MCPConnection *connection; - (IBAction)copy:(id)sender; +- (IBAction)closeSheet:(id)sender; - (IBAction)refreshProcessList:(id)sender; - (IBAction)saveServerProcesses:(id)sender; - (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; - (void)displayProcessListWindow; -- cgit v1.2.3