aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-01 12:12:48 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-01 12:12:48 +0000
commit9f7b5dccfae711371970031b3e79f671213441d6 (patch)
tree206bad35d400a2ddf2717f5fd81f1b5d58f16f9e /Source/TableDocument.h
parent67d16c468fe2a7e182e19e1cea24961a735ec05e (diff)
downloadsequelpro-9f7b5dccfae711371970031b3e79f671213441d6.tar.gz
sequelpro-9f7b5dccfae711371970031b3e79f671213441d6.tar.bz2
sequelpro-9f7b5dccfae711371970031b3e79f671213441d6.zip
- Replace the create syntax transparent HUD panel with a standard sheet, which displays the create syntax in the same non-editable version of the custom query editor. Addresses issue #411.
- Add the ability to save the displayed create syntax to a file on disk. - Change the 'Show Create Syntax' shortcut from shift+cmd+S (its already in use) to alt+cmd+S. - Make both the create syntax and server variables sheets not run application modally and thus prevent them from blocking the main thread. Part of issue #351.
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r--Source/TableDocument.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h
index 57cbeb4f..89603085 100644
--- a/Source/TableDocument.h
+++ b/Source/TableDocument.h
@@ -93,8 +93,8 @@ enum sp_current_query_mode
IBOutlet NSTableView *dbTablesTableView;
- IBOutlet id syntaxView;
- IBOutlet id syntaxViewContent;
+ IBOutlet NSTextField *createTableSyntaxTextField;
+ IBOutlet NSTextView *createTableSyntaxTextView;
IBOutlet NSWindow *createTableSyntaxWindow;
IBOutlet NSWindow *connectionErrorDialog;
@@ -144,7 +144,6 @@ enum sp_current_query_mode
NSDictionary *spfSession;
NSMutableDictionary *spfPreferences;
NSMutableDictionary *spfDocData;
-
}
- (NSString *)getHTMLforPrint;
@@ -188,12 +187,14 @@ enum sp_current_query_mode
- (IBAction)repairTable:(id)sender;
- (IBAction)flushTable:(id)sender;
- (IBAction)checksumTable:(id)sender;
+- (IBAction)saveCreateSyntax:(id)sender;
// Other methods
- (void) setQueryMode:(int)theQueryMode;
- (NSString *)host;
- (IBAction)closeSheet:(id)sender;
- (IBAction)closeErrorConnectionSheet:(id)sender;
+- (IBAction)closePanelSheet:(id)sender;
- (void)doPerformQueryService:(NSString *)query;
- (void)doPerformLoadQueryService:(NSString *)query;
- (void)flushPrivileges:(id)sender;