From 207386000afff61ec1b661a17fa9747bf7fb4407 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 8 Sep 2013 20:37:21 +0000 Subject: Allow opened SQL files to be saved back to the original file, addressing Issue #1805: - Add new menu item for "Save Query", making the existing item "Save Query As" as an alternate - Track the opened SQL file and used encoding to be able to easily save the same file again - Standardise encoding detection to use the UniversalDetector framework and use that for opened SQL files where the encoding menu is not used --- Source/SPDatabaseDocument.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/SPDatabaseDocument.h') diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index d0a58dbb..c2a9124f 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -249,6 +249,8 @@ NSString *queryEditorInitString; #ifndef SP_CODA /* ivars */ + NSURL *sqlFileURL; + NSStringEncoding sqlFileEncoding; NSURL *spfFileURL; NSDictionary *spfSession; NSMutableDictionary *spfPreferences; @@ -305,6 +307,8 @@ #endif #ifndef SP_CODA /* ivars */ +@property (readwrite, retain) NSURL *sqlFileURL; +@property (readwrite, assign) NSStringEncoding sqlFileEncoding; @property (readwrite, assign) SPWindowController *parentWindowController; @property (readwrite, assign) NSTabViewItem *parentTabViewItem; #endif -- cgit v1.2.3