diff --git a/iphone/Maps/Classes/GuideViewController.xib b/iphone/Maps/Classes/GuideView.xib similarity index 100% rename from iphone/Maps/Classes/GuideViewController.xib rename to iphone/Maps/Classes/GuideView.xib diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 1695869bbc..8748eb98ba 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -40,8 +40,11 @@ { if (!m_guideViewController) { - m_guideViewController = [[GuideViewController alloc] - initWithNibName:@"GuideViewController" bundle:nil]; + m_guideViewController = [GuideViewController alloc]; + if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) + m_guideViewController = [m_guideViewController initWithNibName:@"GuideView-iPad" bundle:nil]; + else + m_guideViewController = [m_guideViewController initWithNibName:@"GuideView" bundle:nil]; } return m_guideViewController; } diff --git a/iphone/Maps/GuideView-iPad.xib b/iphone/Maps/GuideView-iPad.xib new file mode 100644 index 0000000000..25732c7b98 --- /dev/null +++ b/iphone/Maps/GuideView-iPad.xib @@ -0,0 +1,392 @@ + + + + 1056 + 10J869 + 1306 + 1038.35 + 461.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 301 + + + YES + IBProxyObject + IBUIBarButtonItem + IBUIToolbar + IBUISearchBar + IBUISegmentedControl + IBUITableView + IBUIView + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + + + YES + + IBFilesOwner + IBIPadFramework + + + IBFirstResponder + IBIPadFramework + + + + 274 + + YES + + + 274 + {{20, 44}, {768, 916}} + + + + + 3 + MQA + + YES + IBIPadFramework + YES + 1 + 0 + YES + 44 + 22 + 22 + + + + 266 + + YES + + + 292 + {{7, 8}, {207, 30}} + + + + NO + IBIPadFramework + 2 + 2 + 1 + + YES + Map + Guide + + + YES + + + + + YES + + + + + YES + {0, 0} + {0, 0} + + + YES + + + + + + {{0, 960}, {768, 44}} + + + + NO + NO + IBIPadFramework + + YES + + IBIPadFramework + + + + + IBIPadFramework + + 5 + + + + + + 290 + {768, 44} + + + + 3 + IBIPadFramework + + IBCocoaTouchFramework + + + + {{0, 20}, {768, 1004}} + + + + + 3 + MQA + + 2 + + + + 2 + + IBIPadFramework + + + + + YES + + + searchBar + + + + 10 + + + + resultsView + + + + 12 + + + + OnMapClicked: + + + 13 + + 13 + + + + view + + + + 14 + + + + + YES + + 0 + + + + + + 1 + + + YES + + + + + + + + -1 + + + File's Owner + + + -2 + + + + + 3 + + + YES + + + + + + + 4 + + + + + 6 + + + YES + + + + + + 8 + + + + + 9 + + + + + 11 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 11.IBPluginDependency + 3.IBPluginDependency + 4.IBPluginDependency + 8.IBPluginDependency + 8.IUISegmentedControlInspectorSelectedSegmentMetadataKey + 9.IBPluginDependency + + + YES + GuideViewController + UIResponder + {{514, 109}, {768, 1024}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + + + + YES + + + + + 14 + + + + YES + + GuideViewController + SearchVC + + OnMapClicked: + id + + + OnMapClicked: + + OnMapClicked: + id + + + + IBProjectSource + ./Classes/GuideViewController.h + + + + SearchVC + UIViewController + + YES + + YES + resultsView + searchBar + + + YES + UITableView + UISearchBar + + + + YES + + YES + resultsView + searchBar + + + YES + + resultsView + UITableView + + + searchBar + UISearchBar + + + + + IBProjectSource + ./Classes/SearchVC.h + + + + + 0 + IBIPadFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + 3 + 301 + + diff --git a/iphone/Maps/Maps.xcodeproj/project.pbxproj b/iphone/Maps/Maps.xcodeproj/project.pbxproj index 71b0868376..0b16dff49e 100644 --- a/iphone/Maps/Maps.xcodeproj/project.pbxproj +++ b/iphone/Maps/Maps.xcodeproj/project.pbxproj @@ -25,10 +25,11 @@ 4938BB5C1343745400E0815A /* forw.png in Resources */ = {isa = PBXBuildFile; fileRef = 4938BB5A1343745400E0815A /* forw.png */; }; 4945D21C1334187D0082387C /* settings.png in Resources */ = {isa = PBXBuildFile; fileRef = 4945D21A1334187D0082387C /* settings.png */; }; 4945D21D1334187D0082387C /* settings@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4945D21B1334187D0082387C /* settings@2x.png */; }; + 4983AE11134631F600C82DB7 /* GuideView-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4983AE10134631F600C82DB7 /* GuideView-iPad.xib */; }; 49B3FB8D132FA43E00057053 /* location.png in Resources */ = {isa = PBXBuildFile; fileRef = 49B3FB8B132FA43E00057053 /* location.png */; }; 49B3FB8E132FA43E00057053 /* location@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 49B3FB8C132FA43E00057053 /* location@2x.png */; }; 49DD2B51132FA8880031D82E /* GuideViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 49DD2B4F132FA8880031D82E /* GuideViewController.mm */; }; - 49DD2B52132FA8880031D82E /* GuideViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 49DD2B50132FA8880031D82E /* GuideViewController.xib */; }; + 49DD2B52132FA8880031D82E /* GuideView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 49DD2B50132FA8880031D82E /* GuideView.xib */; }; 49DE1C9613437BE700A93417 /* (null) in Frameworks */ = {isa = PBXBuildFile; }; 49DE1C9913437C2600A93417 /* (null) in Frameworks */ = {isa = PBXBuildFile; }; 49DE1CA413437D7A00A93417 /* libbzip2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 49DE1CA213437D7A00A93417 /* libbzip2.a */; }; @@ -130,11 +131,12 @@ 4938BB5A1343745400E0815A /* forw.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = forw.png; path = ../Sloynik/Images/forw.png; sourceTree = ""; }; 4945D21A1334187D0082387C /* settings.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = settings.png; sourceTree = ""; }; 4945D21B1334187D0082387C /* settings@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "settings@2x.png"; sourceTree = ""; }; + 4983AE10134631F600C82DB7 /* GuideView-iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = "GuideView-iPad.xib"; sourceTree = ""; }; 49B3FB8B132FA43E00057053 /* location.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = location.png; sourceTree = ""; }; 49B3FB8C132FA43E00057053 /* location@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "location@2x.png"; sourceTree = ""; }; 49DD2B4E132FA8880031D82E /* GuideViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GuideViewController.h; sourceTree = ""; }; 49DD2B4F132FA8880031D82E /* GuideViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GuideViewController.mm; sourceTree = ""; }; - 49DD2B50132FA8880031D82E /* GuideViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = GuideViewController.xib; path = Classes/GuideViewController.xib; sourceTree = ""; }; + 49DD2B50132FA8880031D82E /* GuideView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = GuideView.xib; path = Classes/GuideView.xib; sourceTree = ""; }; 49DE1CA213437D7A00A93417 /* libbzip2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libbzip2.a; sourceTree = SOURCE_ROOT; }; 49DE1CA313437D7A00A93417 /* libwords.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libwords.a; sourceTree = SOURCE_ROOT; }; 8D1107310486CEB800E47090 /* MapsWithMe-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "MapsWithMe-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; @@ -317,7 +319,7 @@ children = ( 4945D21A1334187D0082387C /* settings.png */, 4945D21B1334187D0082387C /* settings@2x.png */, - 49DD2B50132FA8880031D82E /* GuideViewController.xib */, + 49DD2B50132FA8880031D82E /* GuideView.xib */, 49B3FB8B132FA43E00057053 /* location.png */, 49B3FB8C132FA43E00057053 /* location@2x.png */, FA065FFD1286167A00FEA989 /* Default@2x.png */, @@ -425,6 +427,7 @@ FA0660011286168700FEA989 /* Default-Portrait.png */, FA0660021286168700FEA989 /* Default-Landscape.png */, FA065FEC128614C400FEA989 /* MainWindow-iPad.xib */, + 4983AE10134631F600C82DB7 /* GuideView-iPad.xib */, ); name = "Resources-iPad"; sourceTree = ""; @@ -583,13 +586,14 @@ EEFE7C5E12F8CC2D006AF8C3 /* 23_lohit_te.ttf in Resources */, 49B3FB8D132FA43E00057053 /* location.png in Resources */, 49B3FB8E132FA43E00057053 /* location@2x.png in Resources */, - 49DD2B52132FA8880031D82E /* GuideViewController.xib in Resources */, + 49DD2B52132FA8880031D82E /* GuideView.xib in Resources */, 4945D21C1334187D0082387C /* settings.png in Resources */, 4945D21D1334187D0082387C /* settings@2x.png in Resources */, FAFCB63813367AD1001A5C59 /* about-travelguide-iphone.html in Resources */, 4938BB1D1343652600E0815A /* dictionary.slf in Resources */, 4938BB5B1343745400E0815A /* back.png in Resources */, 4938BB5C1343745400E0815A /* forw.png in Resources */, + 4983AE11134631F600C82DB7 /* GuideView-iPad.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/iphone/Maps/Resources-iPad/MainWindow-iPad.xib b/iphone/Maps/Resources-iPad/MainWindow-iPad.xib index c5a6ed8944..e07f13c82f 100644 --- a/iphone/Maps/Resources-iPad/MainWindow-iPad.xib +++ b/iphone/Maps/Resources-iPad/MainWindow-iPad.xib @@ -46,12 +46,10 @@ IBIPadFramework - + 1316 {768, 1024} - - 1 MSAxIDEAA @@ -81,8 +79,6 @@ 292 {{7, 8}, {207, 30}} - - NO IBIPadFramework 2 @@ -117,7 +113,6 @@ {{0, 980}, {768, 44}} - NO NO @@ -159,7 +154,6 @@ {768, 1024} - 3 @@ -222,6 +216,15 @@ 170 + + + OnGuideClicked: + + + 13 + + 177 + @@ -379,19 +382,11 @@ - 176 + 177 YES - - EAGLView - UIView - - IBProjectSource - ./Classes/EAGLView.h - - FirstResponder @@ -438,93 +433,6 @@ - - MapViewController - UIViewController - - YES - - YES - OnGuideClicked: - OnMyPositionClicked: - OnSettingsClicked: - - - YES - id - id - id - - - - YES - - YES - OnGuideClicked: - OnMyPositionClicked: - OnSettingsClicked: - - - YES - - OnGuideClicked: - id - - - OnMyPositionClicked: - id - - - OnSettingsClicked: - id - - - - - IBProjectSource - ./Classes/MapViewController.h - - - - MapsAppDelegate - NSObject - - YES - - YES - mapViewController - window - - - YES - MapViewController - UIWindow - - - - YES - - YES - mapViewController - window - - - YES - - mapViewController - MapViewController - - - window - UIWindow - - - - - IBProjectSource - ./Classes/MapsAppDelegate.h - - 0