diff options
author | rowanbeentje <rowan@beent.je> | 2010-11-23 01:47:52 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-11-23 01:47:52 +0000 |
commit | fe9a592ca3be829570f5bd88efd5b427120556e5 (patch) | |
tree | 7ccaa095207ae6f2d85b54f6954589f6c3650801 /Source/SPDatabaseDocument.h | |
parent | 6b023e9b57269c4cbdd53f8fc6ca58a6ac563c7f (diff) | |
download | sequelpro-fe9a592ca3be829570f5bd88efd5b427120556e5.tar.gz sequelpro-fe9a592ca3be829570f5bd88efd5b427120556e5.tar.bz2 sequelpro-fe9a592ca3be829570f5bd88efd5b427120556e5.zip |
- Abstract SPDatabaseDocument's Connection/.spf saving/loading functionality into state setting and getting functions, and refactor old commands to use them
- Fix restoring of content sort column order and selected indexes
- Add menu items for duplicating current tab (as an alternate), opening selected table in a new tab, or opening selected database in a new tab
- Clean up file menu by making Connection/Session "Save as..." menu items alternates
- Update localisable strings
Diffstat (limited to 'Source/SPDatabaseDocument.h')
-rw-r--r-- | Source/SPDatabaseDocument.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.h b/Source/SPDatabaseDocument.h index 9563fd58..e4d12346 100644 --- a/Source/SPDatabaseDocument.h +++ b/Source/SPDatabaseDocument.h @@ -215,7 +215,6 @@ - (BOOL)couldCommitCurrentViewActions; - (void)initQueryEditorWithString:(NSString *)query; -- (void)initWithConnectionFile:(NSString *)path; // Connection callback and methods - (void)setConnection:(MCPConnection *)theConnection; @@ -322,6 +321,7 @@ // Menu methods - (BOOL)validateMenuItem:(NSMenuItem *)menuItem; +- (IBAction)openDatabaseInNewTab:(id)sender; - (IBAction)saveConnectionSheet:(id)sender; - (IBAction)import:(id)sender; - (IBAction)importFromClipboard:(id)sender; @@ -357,4 +357,9 @@ - (void)handleSchemeCommand:(NSDictionary*)commandDict; - (NSDictionary*)shellVariables; +// State saving and setting +- (NSDictionary *) stateIncludingDetails:(NSDictionary *)detailsToReturn; +- (BOOL)setState:(NSDictionary *)stateDetails; +- (void)setStateFromConnectionFile:(NSString *)path; + @end |