aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-13 12:05:30 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-13 12:05:30 +0000
commit53b268eece1c040b71a58bb7652e360263f4d3f0 (patch)
treec4cab737ae6fa9fc585295dbe9262db74d1a3c7a /Source/TableDocument.h
parentde3b515a6988354a36fe6e6c62e050f9fa0d2444 (diff)
downloadsequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.tar.gz
sequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.tar.bz2
sequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.zip
In an aid to split up the functionality of the TableDocument class as well as reducing the overall size of DBView, split out the server variables sheet into it's own controller and XIB in the same way as the new server processes sheet is implemented.
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r--Source/TableDocument.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h
index ab36ffb3..a577a6c4 100644
--- a/Source/TableDocument.h
+++ b/Source/TableDocument.h
@@ -29,7 +29,7 @@
#import <MCPKit/MCPKit.h>
#import <WebKit/WebKit.h>
-@class SPConnectionController, SPProcessListController, SPUserManager;
+@class SPConnectionController, SPProcessListController, SPServerVariablesController, SPUserManager;
enum sp_current_query_mode
{
@@ -55,8 +55,9 @@ enum sp_current_query_mode
IBOutlet id databaseDataInstance;
IBOutlet id spHistoryControllerInstance;
IBOutlet id exportControllerInstance;
+
IBOutlet SPUserManager *userManagerInstance;
-
+
IBOutlet NSSearchField *listFilterField;
IBOutlet id tableWindow;
@@ -66,7 +67,6 @@ enum sp_current_query_mode
IBOutlet id titleStringView;
IBOutlet id databaseSheet;
- IBOutlet id variablesSheet;
IBOutlet id queryProgressBar;
IBOutlet NSBox *taskProgressLayer;
@@ -81,11 +81,7 @@ enum sp_current_query_mode
IBOutlet id addDatabaseButton;
IBOutlet id chooseDatabaseButton;
IBOutlet id historyControl;
- IBOutlet id variablesTableView;
IBOutlet NSTabView *tableTabView;
- IBOutlet NSButton *saveVariablesButton;
- IBOutlet NSSearchField *variablesSearchField;
- IBOutlet NSTextField *variablesCountTextField;
IBOutlet NSTableView *tableInfoTable;
IBOutlet NSButton *tableInfoCollapseButton;
@@ -118,9 +114,11 @@ enum sp_current_query_mode
IBOutlet id inputTextWindowMessage;
IBOutlet id inputTextWindowSecureTextField;
int passwordSheetReturnCode;
-
+
+ // Controllers
SPConnectionController *connectionController;
SPProcessListController *processListController;
+ SPServerVariablesController *serverVariablesController;
MCPConnection *mySQLConnection;
@@ -183,8 +181,8 @@ enum sp_current_query_mode
- (IBAction)addDatabase:(id)sender;
- (IBAction)removeDatabase:(id)sender;
- (IBAction)showMySQLHelp:(id)sender;
-- (IBAction)saveServerVariables:(id)sender;
-- (IBAction)showDatabaseProcessList:(id)sender;
+- (IBAction)showServerVariables:(id)sender;
+- (IBAction)showServerProcesses:(id)sender;
- (IBAction)openCurrentConnectionInNewWindow:(id)sender;
- (NSArray *)allDatabaseNames;
@@ -230,7 +228,6 @@ enum sp_current_query_mode
- (void)doPerformQueryService:(NSString *)query;
- (void)doPerformLoadQueryService:(NSString *)query;
- (void)flushPrivileges:(id)sender;
-- (void)showVariables:(id)sender;
- (void)closeConnection;
- (NSWindow *)getCreateTableSyntaxWindow;
- (void)refreshCurrentDatabase;
@@ -239,9 +236,6 @@ enum sp_current_query_mode
- (BOOL)saveDocumentWithFilePath:(NSString *)fileName inBackground:(BOOL)saveInBackground onlyPreferences:(BOOL)saveOnlyPreferences;
- (IBAction)closePasswordSheet:(id)sender;
- (IBAction)backForwardInHistory:(id)sender;
-- (IBAction)copy:(id)sender;
-- (IBAction)copyServerVariableName:(id)sender;
-- (IBAction)copyServerVariableValue:(id)sender;
- (IBAction)showUserManager:(id)sender;
// Getter methods