From 86085ceb7de7772dd3f85fb61f397e240b4a0e66 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 26 Aug 2009 02:21:53 +0000 Subject: Completely redesigned query favorite manager, including: - The ability to name query favorites - The ability to edit query favorites using the same editor in the cutom query view - The ability to save your query favorites to a file Note that any already saved query favorites will be upgraded to accommodate the new format, that is including a name associated with the query. The default name is the first 32 chars of the query with '...' appended. Also, added menu item validation to the 'Save Query to Favorites' menu item. --- sequel-pro.xcodeproj/project.pbxproj | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'sequel-pro.xcodeproj') diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index fe7b98b5..ac8cdfe0 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -9,6 +9,9 @@ /* Begin PBXBuildFile section */ 170088CE0F5870E200DD6B51 /* SPQueryConsole.m in Sources */ = {isa = PBXBuildFile; fileRef = 170088CD0F5870E200DD6B51 /* SPQueryConsole.m */; }; 172A65110F7BED7A001E861A /* SPConsoleMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 172A65100F7BED7A001E861A /* SPConsoleMessage.m */; }; + 173C4362104455CA001F3A30 /* QueryFavoriteManager.xib in Resources */ = {isa = PBXBuildFile; fileRef = 173C4360104455CA001F3A30 /* QueryFavoriteManager.xib */; }; + 173C4366104455E0001F3A30 /* SPQueryFavoriteManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 173C4365104455E0001F3A30 /* SPQueryFavoriteManager.m */; }; + 173C44D81044A6B0001F3A30 /* SPOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 173C44D71044A6B0001F3A30 /* SPOutlineView.m */; }; 1740FABB0FC4372F00CF3699 /* SPDatabaseData.m in Sources */ = {isa = PBXBuildFile; fileRef = 1740FABA0FC4372F00CF3699 /* SPDatabaseData.m */; }; 1761FD480EF03A6F00331368 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1761FD460EF03A6F00331368 /* MainMenu.xib */; }; 177E792E0FCB54EC00E9E122 /* database-small.png in Resources */ = {isa = PBXBuildFile; fileRef = 177E792B0FCB54EC00E9E122 /* database-small.png */; }; @@ -126,7 +129,6 @@ 4D90B79E101E0CF200D116A1 /* SPUserManager.xcdatamodel in Sources */ = {isa = PBXBuildFile; fileRef = 4D90B79B101E0CF200D116A1 /* SPUserManager.xcdatamodel */; }; 4D90B79F101E0CF200D116A1 /* SPUserMO.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D90B79D101E0CF200D116A1 /* SPUserMO.m */; }; 4D90B7A2101E0D1500D116A1 /* UserManagerView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4D90B7A0101E0D1500D116A1 /* UserManagerView.xib */; }; - 4DDF652E104480C5007DA229 /* SPOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DDF652D104480C5007DA229 /* SPOutlineView.m */; }; 4DECC3350EC2A170008D359E /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DECC3320EC2A170008D359E /* Sparkle.framework */; }; 4DECC3370EC2A170008D359E /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DECC3340EC2A170008D359E /* Growl.framework */; }; 4DECC48F0EC2B436008D359E /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 4DECC3320EC2A170008D359E /* Sparkle.framework */; }; @@ -328,6 +330,11 @@ 17128B8A0FE6E0210035DD75 /* QLPreviewPanel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QLPreviewPanel.h; sourceTree = ""; }; 172A650F0F7BED7A001E861A /* SPConsoleMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPConsoleMessage.h; sourceTree = ""; }; 172A65100F7BED7A001E861A /* SPConsoleMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPConsoleMessage.m; sourceTree = ""; }; + 173C4361104455CA001F3A30 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/QueryFavoriteManager.xib; sourceTree = ""; }; + 173C4364104455E0001F3A30 /* SPQueryFavoriteManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPQueryFavoriteManager.h; sourceTree = ""; }; + 173C4365104455E0001F3A30 /* SPQueryFavoriteManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPQueryFavoriteManager.m; sourceTree = ""; }; + 173C44D61044A6AF001F3A30 /* SPOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPOutlineView.h; sourceTree = ""; }; + 173C44D71044A6B0001F3A30 /* SPOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPOutlineView.m; sourceTree = ""; }; 1740FAB90FC4372F00CF3699 /* SPDatabaseData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPDatabaseData.h; sourceTree = ""; }; 1740FABA0FC4372F00CF3699 /* SPDatabaseData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPDatabaseData.m; sourceTree = ""; }; 1761FD470EF03A6F00331368 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; @@ -492,8 +499,6 @@ 4D90B79C101E0CF200D116A1 /* SPUserMO.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUserMO.h; sourceTree = ""; }; 4D90B79D101E0CF200D116A1 /* SPUserMO.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUserMO.m; sourceTree = ""; }; 4D90B7A1101E0D1500D116A1 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/UserManagerView.xib; sourceTree = ""; }; - 4DDF652C104480C5007DA229 /* SPOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPOutlineView.h; sourceTree = ""; }; - 4DDF652D104480C5007DA229 /* SPOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPOutlineView.m; sourceTree = ""; }; 4DECC3320EC2A170008D359E /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = Frameworks/Sparkle.framework; sourceTree = ""; }; 4DECC3340EC2A170008D359E /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Growl.framework; path = Frameworks/Growl.framework; sourceTree = ""; }; 581068B51015411B0068C6E2 /* link-arrow-highlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "link-arrow-highlighted.png"; sourceTree = ""; }; @@ -924,6 +929,8 @@ 29A1B7E40FD1293A000B88E8 /* SPPrintAccessory.m */, 170088CC0F5870E200DD6B51 /* SPQueryConsole.h */, 170088CD0F5870E200DD6B51 /* SPQueryConsole.m */, + 173C4364104455E0001F3A30 /* SPQueryFavoriteManager.h */, + 173C4365104455E0001F3A30 /* SPQueryFavoriteManager.m */, 58FEF57C0F3B4E9700518E8E /* SPTableData.h */, 58FEF57D0F3B4E9700518E8E /* SPTableData.m */, 387BBBA60FBCB6CB00B31746 /* SPTableRelations.h */, @@ -973,12 +980,12 @@ 17E641690EF01F37001BC333 /* ImageAndTextCell.m */, B57747DA0F7A89D0003B34F9 /* SPFavoriteTextFieldCell.h */, B57747DB0F7A89D0003B34F9 /* SPFavoriteTextFieldCell.m */, + 173C44D61044A6AF001F3A30 /* SPOutlineView.h */, + 173C44D71044A6B0001F3A30 /* SPOutlineView.m */, BC8C8530100E0A8000D7A129 /* SPTableView.h */, BC8C8531100E0A8000D7A129 /* SPTableView.m */, 17E6416A0EF01F37001BC333 /* TableDocumentSplitView.h */, 17E6416B0EF01F37001BC333 /* TableDocumentSplitView.m */, - 4DDF652C104480C5007DA229 /* SPOutlineView.h */, - 4DDF652D104480C5007DA229 /* SPOutlineView.m */, ); name = Views; sourceTree = ""; @@ -1132,6 +1139,7 @@ B5E92F170F75B2D100012500 /* ExportDialog.xib */, B58DA73B0FF8BBA500FDDACD /* PrintAccessory.xib */, B58DA7390FF8BB9E00FDDACD /* SSHQuestionDialog.xib */, + 173C4360104455CA001F3A30 /* QueryFavoriteManager.xib */, ); path = Interfaces; sourceTree = ""; @@ -1521,6 +1529,7 @@ 4D90B7A2101E0D1500D116A1 /* UserManagerView.xib in Resources */, BC8B0DAF104004F900FC02EC /* EncodingPopupView.xib in Resources */, BCCBD7FC104408B000D4C50A /* SaveSPFAccessory.xib in Resources */, + 173C4362104455CA001F3A30 /* QueryFavoriteManager.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1662,7 +1671,8 @@ BCA6271C1031B9D40047E5D5 /* SPTooltip.m in Sources */, 58DA8863103E15B5000B98DF /* SPLogger.m in Sources */, BC01BCCF104024BE006BDEE7 /* SPEncodingPopupAccessory.m in Sources */, - 4DDF652E104480C5007DA229 /* SPOutlineView.m in Sources */, + 173C4366104455E0001F3A30 /* SPQueryFavoriteManager.m in Sources */, + 173C44D81044A6B0001F3A30 /* SPOutlineView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1697,6 +1707,14 @@ /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ + 173C4360104455CA001F3A30 /* QueryFavoriteManager.xib */ = { + isa = PBXVariantGroup; + children = ( + 173C4361104455CA001F3A30 /* English */, + ); + name = QueryFavoriteManager.xib; + sourceTree = ""; + }; 1761FD460EF03A6F00331368 /* MainMenu.xib */ = { isa = PBXVariantGroup; children = ( -- cgit v1.2.3