diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-31 23:00:39 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-31 23:00:39 +0000 |
commit | b2d168940430f6ab55d0aa635d38bcae1b64fcdb (patch) | |
tree | 49f9710ed77113830142d652cc2107f951b6cbc9 /Source/TableDocument.h | |
parent | 934f1d41fa8699b3baba3c4ab7631e136fee14b7 (diff) | |
download | sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.tar.gz sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.tar.bz2 sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.zip |
- Re-enable the fine-grained query logging preferences
- Add defaults for fine-grained logging preferences
- Add a method to TableDocument to allow setting the query mode, and use the query mode to control logging
- Set import/export and custom query to set the appropriate query modes
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r-- | Source/TableDocument.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h index 3c890a40..0ad2638f 100644 --- a/Source/TableDocument.h +++ b/Source/TableDocument.h @@ -32,6 +32,13 @@ @class SPConnectionController, SPUserManager; +enum sp_current_query_mode +{ + SP_QUERYMODE_INTERFACE = 0, + SP_QUERYMODE_CUSTOMQUERY = 1, + SP_QUERYMODE_IMPORTEXPORT = 2 +}; + /** * The TableDocument class controls the primary database view window. */ @@ -124,6 +131,7 @@ BOOL _shouldOpenConnectionAutomatically; BOOL _isConnected; BOOL _mainNibLoaded; + int _queryMode; NSToolbar *mainToolbar; NSToolbarItem *chooseDatabaseToolbarItem; @@ -180,6 +188,7 @@ - (IBAction)checksumTable:(id)sender; // Other methods +- (void) setQueryMode:(int)theQueryMode; - (NSString *)host; - (IBAction)closeSheet:(id)sender; - (IBAction)closeErrorConnectionSheet:(id)sender; |