diff options
author | stuconnolly <stuart02@gmail.com> | 2010-04-24 17:10:55 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-04-24 17:10:55 +0000 |
commit | 452e5fb8e8fd1f22be98b26ece0010af09fb3d7d (patch) | |
tree | 019ae19dd3395ea09e09e450393824a7204871b6 /Source/SPProcessListController.h | |
parent | f8bfc9ff86a6b36de1f1223cf69cc82573f75bce (diff) | |
download | sequelpro-452e5fb8e8fd1f22be98b26ece0010af09fb3d7d.tar.gz sequelpro-452e5fb8e8fd1f22be98b26ece0010af09fb3d7d.tar.bz2 sequelpro-452e5fb8e8fd1f22be98b26ece0010af09fb3d7d.zip |
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.
Diffstat (limited to 'Source/SPProcessListController.h')
-rw-r--r-- | Source/SPProcessListController.h | 12 |
1 files changed, 11 insertions, 1 deletions
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; |