aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-02 13:57:22 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-02 13:57:22 +0000
commit511b8720c8964de9c6d8d3d2780e271d18bd9c7c (patch)
tree39f0f42492e31ed31e1db8480531a5ed2de87d95 /Source/TableDocument.h
parent2f6b8c6ae98afc27202135d6d676a9a3282df966 (diff)
downloadsequelpro-511b8720c8964de9c6d8d3d2780e271d18bd9c7c.tar.gz
sequelpro-511b8720c8964de9c6d8d3d2780e271d18bd9c7c.tar.bz2
sequelpro-511b8720c8964de9c6d8d3d2780e271d18bd9c7c.zip
• simplified and unified the issue to set the title of a tableWindow
- everything will be configured in [TableDocument displayName] - to update the title call [TableDocument setTitle:[TableDocument displayName]] - this removes dozens of lines • first steps to support more the document-based approach ( a document is nothing else than a connection with view properties and preferences ) - renamed/added/changed in Main Menu items into "New", "Open", "Save", and "Save As" - if user opened a spf file -> fileURL will be set - "Save" will save the current connection/view data according to the "Save As" setting - ie if one saved a doc with do not "Remember window state" - "Save" won't save the window state; to enable this hit "Save As" [this works for encrypted file data as well] - if the current doc was opened from file and the user closes it or quits the entire app all connection/document-based preferences (up to now query favs and history) will be updated silently [not yet implemented fully in CustomQuery] [works for encrypted file as well] • delete saveSPFAccessory view from DBView since it was outsourced • fixed some issues for the NSSecureTextField in the Save accessory panel (but still a warning appears)
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r--Source/TableDocument.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h
index 0ad2638f..fc99bf23 100644
--- a/Source/TableDocument.h
+++ b/Source/TableDocument.h
@@ -143,6 +143,8 @@ enum sp_current_query_mode
NSString *queryEditorInitString;
NSDictionary *spfSession;
+ NSMutableDictionary *spfDocData;
+
}
- (NSString *)getHTMLforPrint;
@@ -200,8 +202,8 @@ enum sp_current_query_mode
- (NSWindow *)getCreateTableSyntaxWindow;
- (void)refreshCurrentDatabase;
- (void)saveConnectionPanelDidEnd:(NSSavePanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo;
-- (IBAction)saveConnectionAccessoryPasswordButton:(id)sender;
-- (void)saveSPFtoFile:(NSString *)fileName;
+- (IBAction)validateSaveConnectionAccessory:(id)sender;
+- (void)saveSPFtoFile:(NSString *)fileName saveInBackground:(BOOL)saveInBackground saveOnlyPreferences:(BOOL)saveOnlyPreferences;
- (IBAction)closePasswordSheet:(id)sender;
// Getter methods