From f7a01ec068e7e7088a685cabd22c3dbbb8f7f0da Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 23 Nov 2009 13:38:57 +0000 Subject: - Tweak pagination to fix click-through of pagination popup, fix next page button mouseover text, display no text when 0 or 1 pages of results for clarity - No longer include the old app icon in the built product (but leave it in the project) --- Interfaces/English.lproj/ContentPaginationView.xib | 27 ++++++++++++++-------- Interfaces/English.lproj/DBView.xib | 7 ++---- Source/TableContent.m | 4 +++- sequel-pro.xcodeproj/project.pbxproj | 2 -- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/Interfaces/English.lproj/ContentPaginationView.xib b/Interfaces/English.lproj/ContentPaginationView.xib index 43977acc..2a311b24 100644 --- a/Interfaces/English.lproj/ContentPaginationView.xib +++ b/Interfaces/English.lproj/ContentPaginationView.xib @@ -12,7 +12,7 @@ YES - + YES @@ -104,7 +104,7 @@ #,##1 - #,##0 + #,##1 @@ -403,6 +403,13 @@ MC45NDc1ODA2NDUyAA + + + 301 + {278, 135} + + NSButton + {278, 135} @@ -410,12 +417,6 @@ NSView - - YES - LimitResults - LimitResultsValue - LoadBlobsAsNeeded - YES @@ -656,6 +657,7 @@ YES + @@ -822,6 +824,11 @@ + + 52 + + + @@ -852,6 +859,7 @@ 3.IBPluginDependency 4.IBPluginDependency 5.IBPluginDependency + 52.IBPluginDependency 6.IBPluginDependency 7.IBPluginDependency 8.IBPluginDependency @@ -887,6 +895,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin @@ -905,7 +914,7 @@ - 51 + 52 diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index bae3ce00..fe22ea72 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -10716,7 +10716,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 NSView - + 4364 YES @@ -10725,7 +10725,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 268 {{20, 1}, {176, 19}} - YES 343014976 @@ -10787,8 +10786,6 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 {217, 20} - - NSView @@ -23932,7 +23929,7 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 ToolTip - View next row of results + View next page of results com.apple.InterfaceBuilder.CocoaPlugin diff --git a/Source/TableContent.m b/Source/TableContent.m index d3988cef..679f8e1c 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1136,7 +1136,9 @@ // Update the pagination button text if ([prefs boolForKey:SPLimitResults]) { - if (isFiltered) { + if (maxPage <= 1) { + [paginationButton setTitle:@""]; + } else if (isFiltered) { [paginationButton setTitle:[NSString stringWithFormat:NSLocalizedString(@"Page %@", @"Filtered pagination button status text"), [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:contentPage]]]]; } else { [paginationButton setTitle:[NSString stringWithFormat:NSLocalizedString(@"Page %@ of %@", @"Pagination button status text"), [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:contentPage]], [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:maxPage]]]]; diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index 75b8063f..7dc7acc4 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -27,7 +27,6 @@ 1792C13710AD75C800ABE758 /* SPServerVariablesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1792C13610AD75C800ABE758 /* SPServerVariablesController.m */; }; 1792C26110AE1A2D00ABE758 /* SPConnectionDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1792C26010AE1A2D00ABE758 /* SPConnectionDelegate.m */; }; 179F15060F7C433C00579954 /* SPEditorTokens.l in Sources */ = {isa = PBXBuildFile; fileRef = 179F15050F7C433C00579954 /* SPEditorTokens.l */; }; - 17A66F6B10B1ED59004C9B12 /* old-appicon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 17A66F6A10B1ED59004C9B12 /* old-appicon.icns */; }; 17B7B578101601C300F057DE /* libmysqlclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B576101601C300F057DE /* libmysqlclient.a */; }; 17B7B5901016028F00F057DE /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B58F1016028F00F057DE /* libcrypto.dylib */; }; 17B7B592101602AE00F057DE /* libssl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 17B7B591101602AE00F057DE /* libssl.dylib */; }; @@ -1719,7 +1718,6 @@ 582A05A9108A5CCF0027D42B /* ProgressIndicatorLayer.xib in Resources */, 174CE11E10AB80B5008F892B /* DatabaseProcessList.xib in Resources */, 1792C13210AD752100ABE758 /* DatabaseServerVariables.xib in Resources */, - 17A66F6B10B1ED59004C9B12 /* old-appicon.icns in Resources */, 17CC97F710B4AC6C0034CD7A /* AboutPanel.xib in Resources */, 17CC993B10B4C9C80034CD7A /* License.rtf in Resources */, 58C3506510B9A56C00D37E14 /* button_left.png in Resources */, -- cgit v1.2.3