mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-25 12:05:59 +01:00
standardized view controller and property names a bit for extension.
This commit is contained in:
parent
3a82653ae5
commit
066e48a721
40
src/iOS.Extension/ActionViewController.designer.cs
generated
40
src/iOS.Extension/ActionViewController.designer.cs
generated
@ -1,40 +0,0 @@
|
|||||||
// WARNING
|
|
||||||
//
|
|
||||||
// This file has been generated automatically by Xamarin Studio from the outlets and
|
|
||||||
// actions declared in your storyboard file.
|
|
||||||
// Manual changes to this file will not be maintained.
|
|
||||||
//
|
|
||||||
using Foundation;
|
|
||||||
using System;
|
|
||||||
using System.CodeDom.Compiler;
|
|
||||||
using UIKit;
|
|
||||||
|
|
||||||
namespace Bit.iOS.Extension
|
|
||||||
{
|
|
||||||
[Register ("ActionViewController")]
|
|
||||||
partial class ActionViewController
|
|
||||||
{
|
|
||||||
[Outlet]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
UITableView tableView { get; set; }
|
|
||||||
|
|
||||||
[Action ("DoneClicked:")]
|
|
||||||
partial void DoneClicked (Foundation.NSObject sender);
|
|
||||||
|
|
||||||
[Action ("CancelClicked:")]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
partial void CancelClicked (UIBarButtonItem sender);
|
|
||||||
|
|
||||||
[Action ("UIBarButtonItem2293_Activated:")]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
partial void UIBarButtonItem2293_Activated (UIBarButtonItem sender);
|
|
||||||
|
|
||||||
void ReleaseDesignerOutlets ()
|
|
||||||
{
|
|
||||||
if (tableView != null) {
|
|
||||||
tableView.Dispose ();
|
|
||||||
tableView = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
37
src/iOS.Extension/AddSiteViewController.designer.cs
generated
37
src/iOS.Extension/AddSiteViewController.designer.cs
generated
@ -1,37 +0,0 @@
|
|||||||
// WARNING
|
|
||||||
//
|
|
||||||
// This file has been generated automatically by Xamarin Studio from the outlets and
|
|
||||||
// actions declared in your storyboard file.
|
|
||||||
// Manual changes to this file will not be maintained.
|
|
||||||
//
|
|
||||||
using Foundation;
|
|
||||||
using System;
|
|
||||||
using System.CodeDom.Compiler;
|
|
||||||
using UIKit;
|
|
||||||
|
|
||||||
namespace Bit.iOS.Extension
|
|
||||||
{
|
|
||||||
[Register ("AddSiteViewController")]
|
|
||||||
partial class AddSiteViewController
|
|
||||||
{
|
|
||||||
[Outlet]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
UITableView tableView { get; set; }
|
|
||||||
|
|
||||||
[Action ("UIBarButtonItem2289_Activated:")]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
partial void UIBarButtonItem2289_Activated (UIBarButtonItem sender);
|
|
||||||
|
|
||||||
[Action ("UIBarButtonItem2290_Activated:")]
|
|
||||||
[GeneratedCode ("iOS Designer", "1.0")]
|
|
||||||
partial void UIBarButtonItem2290_Activated (UIBarButtonItem sender);
|
|
||||||
|
|
||||||
void ReleaseDesignerOutlets ()
|
|
||||||
{
|
|
||||||
if (tableView != null) {
|
|
||||||
tableView.Dispose ();
|
|
||||||
tableView = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -73,7 +73,7 @@ namespace Bit.iOS.Extension
|
|||||||
var navController = segue.DestinationViewController as UINavigationController;
|
var navController = segue.DestinationViewController as UINavigationController;
|
||||||
if(navController != null)
|
if(navController != null)
|
||||||
{
|
{
|
||||||
var actionController = navController.TopViewController as ActionViewController;
|
var actionController = navController.TopViewController as SiteListViewController;
|
||||||
if(actionController != null)
|
if(actionController != null)
|
||||||
{
|
{
|
||||||
actionController.Context = _context;
|
actionController.Context = _context;
|
||||||
|
@ -5,103 +5,6 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
<scenes>
|
<scenes>
|
||||||
<!--Logins-->
|
<!--Logins-->
|
||||||
<scene sceneID="7MM-of-jgj">
|
|
||||||
<objects>
|
|
||||||
<viewController id="ObA-dk-sSI" customClass="ActionViewController" sceneMemberID="viewController">
|
|
||||||
<layoutGuides>
|
|
||||||
<viewControllerLayoutGuide type="top" id="qkL-Od-lgU"/>
|
|
||||||
<viewControllerLayoutGuide type="bottom" id="n38-gi-rB5"/>
|
|
||||||
</layoutGuides>
|
|
||||||
<view key="view" contentMode="scaleToFill" id="zMn-AG-sqS">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<color key="backgroundColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
|
||||||
<subviews>
|
|
||||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="1823" translatesAutoresizingMaskIntoConstraints="NO">
|
|
||||||
<rect key="frame" x="0.0" y="64" width="600" height="536"/>
|
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
|
||||||
<prototypes>
|
|
||||||
<tableViewCell contentMode="scaleToFill" selectionStyle="gray" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="1824" rowHeight="44" style="IBUITableViewCellStyleSubtitle" textLabel="1834" detailTextLabel="1835">
|
|
||||||
<rect key="frame" x="0.0" y="22" width="600" height="44"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="1825" tableViewCell="1824">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
|
||||||
<subviews>
|
|
||||||
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="1834">
|
|
||||||
<rect key="frame" x="15" y="4" width="35.5" height="21.5"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="18"/>
|
|
||||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
|
||||||
<nil key="highlightedColor"/>
|
|
||||||
</label>
|
|
||||||
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Subtitle" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="1835">
|
|
||||||
<rect key="frame" x="15" y="25.5" width="44" height="14.5"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
|
||||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
|
||||||
<nil key="highlightedColor"/>
|
|
||||||
</label>
|
|
||||||
</subviews>
|
|
||||||
</view>
|
|
||||||
</tableViewCell>
|
|
||||||
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="1826" rowHeight="44">
|
|
||||||
<rect key="frame" x="0.0" y="66" width="600" height="44"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="1827" tableViewCell="1826">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
|
||||||
</view>
|
|
||||||
</tableViewCell>
|
|
||||||
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="1828" rowHeight="44">
|
|
||||||
<rect key="frame" x="0.0" y="110" width="600" height="44"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="1829" tableViewCell="1828">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
|
||||||
</view>
|
|
||||||
</tableViewCell>
|
|
||||||
</prototypes>
|
|
||||||
</tableView>
|
|
||||||
</subviews>
|
|
||||||
<constraints>
|
|
||||||
<constraint id="1830" firstItem="1823" firstAttribute="top" secondItem="qkL-Od-lgU" secondAttribute="bottom"/>
|
|
||||||
<constraint id="1831" firstItem="zMn-AG-sqS" firstAttribute="bottom" secondItem="1823" secondAttribute="bottom"/>
|
|
||||||
<constraint id="1832" firstItem="1823" firstAttribute="leading" secondItem="zMn-AG-sqS" secondAttribute="leading"/>
|
|
||||||
<constraint id="1833" firstItem="zMn-AG-sqS" firstAttribute="trailing" secondItem="1823" secondAttribute="trailing"/>
|
|
||||||
</constraints>
|
|
||||||
</view>
|
|
||||||
<navigationItem key="navigationItem" id="yHH-Ee-etX" title="Sites">
|
|
||||||
<barButtonItem title="Cancel" id="1714" translatesAutoresizingMaskIntoConstraints="NO" key="leftBarButtonItem">
|
|
||||||
<connections>
|
|
||||||
<action selector="CancelClicked:" destination="ObA-dk-sSI" id="1729"/>
|
|
||||||
</connections>
|
|
||||||
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
|
||||||
</barButtonItem>
|
|
||||||
<barButtonItem title="Add" id="2293" translatesAutoresizingMaskIntoConstraints="NO" key="rightBarButtonItem">
|
|
||||||
<accessibilityConfiguration key="accessibilityConfiguration" label="Add Site">
|
|
||||||
<traits key="traits" button="YES"/>
|
|
||||||
<isElement key="isElement" value="YES"/>
|
|
||||||
</accessibilityConfiguration>
|
|
||||||
<userDefinedRuntimeAttribute key="userDefinedRuntimeAttribute"/>
|
|
||||||
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
|
||||||
<connections>
|
|
||||||
<action selector="UIBarButtonItem2293_Activated:" destination="ObA-dk-sSI" id="2294"/>
|
|
||||||
</connections>
|
|
||||||
</barButtonItem>
|
|
||||||
</navigationItem>
|
|
||||||
<connections>
|
|
||||||
<outlet property="tableView" destination="1823" id="name-outlet-1823"/>
|
|
||||||
<segue id="2084" destination="1845" kind="presentation" modalPresentationStyle="fullScreen" modalTransitionStyle="coverVertical" identifier="addSiteSegue"/>
|
|
||||||
</connections>
|
|
||||||
</viewController>
|
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="X47-rx-isc" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="1114" y="556"/>
|
|
||||||
</scene>
|
|
||||||
<!--Splash View Controller-->
|
<!--Splash View Controller-->
|
||||||
<scene sceneID="42">
|
<scene sceneID="42">
|
||||||
<objects>
|
<objects>
|
||||||
@ -163,7 +66,7 @@
|
|||||||
</navigationBar>
|
</navigationBar>
|
||||||
<nil name="viewControllers"/>
|
<nil name="viewControllers"/>
|
||||||
<connections>
|
<connections>
|
||||||
<segue destination="ObA-dk-sSI" kind="relationship" relationship="rootViewController" id="B4Z-aR-cOD"/>
|
<segue id="4562" destination="2304" kind="relationship" relationship="rootViewController"/>
|
||||||
</connections>
|
</connections>
|
||||||
</navigationController>
|
</navigationController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="Kkn-u3-rq1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="Kkn-u3-rq1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
@ -191,7 +94,7 @@
|
|||||||
</scene>
|
</scene>
|
||||||
<scene sceneID="2086">
|
<scene sceneID="2086">
|
||||||
<objects>
|
<objects>
|
||||||
<tableViewController id="2087" sceneMemberID="viewController" customClass="AddSiteViewController">
|
<tableViewController id="2087" sceneMemberID="viewController" customClass="SiteAddViewController">
|
||||||
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" rowHeight="50" sectionHeaderHeight="22" sectionFooterHeight="22" id="2088" opaque="NO" allowsSelection="NO">
|
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" rowHeight="50" sectionHeaderHeight="22" sectionFooterHeight="22" id="2088" opaque="NO" allowsSelection="NO">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
@ -204,27 +107,95 @@
|
|||||||
<color key="sectionIndexBackgroundColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
<color key="sectionIndexBackgroundColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||||
</tableView>
|
</tableView>
|
||||||
<navigationItem title="Add Site" id="2252" key="navigationItem">
|
<navigationItem title="Add Site" id="2252" key="navigationItem">
|
||||||
<barButtonItem title="Cancel" id="2289" translatesAutoresizingMaskIntoConstraints="NO" key="leftBarButtonItem">
|
<barButtonItem title="Cancel" id="3747" translatesAutoresizingMaskIntoConstraints="NO" key="leftBarButtonItem">
|
||||||
<connections>
|
|
||||||
<action selector="UIBarButtonItem2289_Activated:" destination="2087" id="2291"/>
|
|
||||||
</connections>
|
|
||||||
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="CancelBarButton_Activated:" destination="2087" id="3751"/>
|
||||||
|
</connections>
|
||||||
</barButtonItem>
|
</barButtonItem>
|
||||||
<barButtonItem title="Save" id="2290" translatesAutoresizingMaskIntoConstraints="NO" key="rightBarButtonItem">
|
<barButtonItem title="Save" id="3748" translatesAutoresizingMaskIntoConstraints="NO" key="rightBarButtonItem">
|
||||||
<connections>
|
|
||||||
<action selector="UIBarButtonItem2290_Activated:" destination="2087" id="2292"/>
|
|
||||||
</connections>
|
|
||||||
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="SaveBarButton_Activated:" destination="2087" id="3752"/>
|
||||||
|
</connections>
|
||||||
</barButtonItem>
|
</barButtonItem>
|
||||||
</navigationItem>
|
</navigationItem>
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="tableView" destination="2088" id="name-outlet-2088"/>
|
<outlet property="TableView" destination="2088" id="name-outlet-2088"/>
|
||||||
|
<outlet property="SaveBarButton" destination="3748" id="name-outlet-3748"/>
|
||||||
|
<outlet property="CancelBarButton" destination="3747" id="name-outlet-3747"/>
|
||||||
</connections>
|
</connections>
|
||||||
</tableViewController>
|
</tableViewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="2093" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="2093" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
<point key="canvasLocation" x="2644" y="570"/>
|
<point key="canvasLocation" x="2644" y="570"/>
|
||||||
</scene>
|
</scene>
|
||||||
|
<scene sceneID="2303">
|
||||||
|
<objects>
|
||||||
|
<tableViewController id="2304" sceneMemberID="viewController" customClass="SiteListViewController">
|
||||||
|
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="2305">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
|
<prototypes>
|
||||||
|
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="3761" rowHeight="44" style="IBUITableViewCellStyleSubtitle" textLabel="3763" detailTextLabel="3764">
|
||||||
|
<rect key="frame" x="0.0" y="22" width="600" height="44"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="3761" id="3762">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="3763">
|
||||||
|
<rect key="frame" x="20" y="4" width="35.5" height="21.5"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="18"/>
|
||||||
|
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Subtitle" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="3764">
|
||||||
|
<rect key="frame" x="20" y="25.5" width="44" height="14.5"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||||
|
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
</subviews>
|
||||||
|
</tableViewCellContentView>
|
||||||
|
</tableViewCell>
|
||||||
|
</prototypes>
|
||||||
|
<connections>
|
||||||
|
<outlet property="dataSource" destination="2304" id="2306"/>
|
||||||
|
<outlet property="delegate" destination="2304" id="2307"/>
|
||||||
|
</connections>
|
||||||
|
</tableView>
|
||||||
|
<connections>
|
||||||
|
<segue id="3731" destination="1845" kind="presentation" identifier="siteAddSegue" modalPresentationStyle="fullScreen" modalTransitionStyle="coverVertical"/>
|
||||||
|
<outlet property="TableView" destination="2305" id="name-outlet-2305"/>
|
||||||
|
<outlet property="AddBarButton" destination="3736" id="name-outlet-3736"/>
|
||||||
|
<outlet property="CancelBarButton" destination="3735" id="name-outlet-3735"/>
|
||||||
|
<outlet property="NavItem" destination="3734" id="name-outlet-3734"/>
|
||||||
|
</connections>
|
||||||
|
<toolbarItems/>
|
||||||
|
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
|
||||||
|
<navigationItem title="Sites" id="3734" translatesAutoresizingMaskIntoConstraints="NO" key="navigationItem">
|
||||||
|
<barButtonItem title="Cancel" id="3735" translatesAutoresizingMaskIntoConstraints="NO" key="leftBarButtonItem">
|
||||||
|
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="CancelBarButton_Activated:" destination="2304" id="3750"/>
|
||||||
|
</connections>
|
||||||
|
</barButtonItem>
|
||||||
|
<barButtonItem id="3736" translatesAutoresizingMaskIntoConstraints="NO" key="rightBarButtonItem" systemItem="add">
|
||||||
|
<color key="tintColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="AddBarButton_Activated:" destination="2304" id="3749"/>
|
||||||
|
</connections>
|
||||||
|
</barButtonItem>
|
||||||
|
</navigationItem>
|
||||||
|
</tableViewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="2310" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="1157" y="566"/>
|
||||||
|
</scene>
|
||||||
</scenes>
|
</scenes>
|
||||||
<resources>
|
<resources>
|
||||||
<image name="logo.png" width="282" height="44"/>
|
<image name="logo.png" width="282" height="44"/>
|
||||||
|
@ -12,9 +12,9 @@ using UIKit;
|
|||||||
|
|
||||||
namespace Bit.iOS.Extension
|
namespace Bit.iOS.Extension
|
||||||
{
|
{
|
||||||
public partial class AddSiteViewController : UITableViewController
|
public partial class SiteAddViewController : UITableViewController
|
||||||
{
|
{
|
||||||
public AddSiteViewController(IntPtr handle) : base(handle)
|
public SiteAddViewController(IntPtr handle) : base(handle)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public Context Context { get; set; }
|
public Context Context { get; set; }
|
||||||
@ -76,28 +76,28 @@ namespace Bit.iOS.Extension
|
|||||||
GeneratePasswordCell.TextLabel.Text = "Generate Password";
|
GeneratePasswordCell.TextLabel.Text = "Generate Password";
|
||||||
GeneratePasswordCell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
|
GeneratePasswordCell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
|
||||||
|
|
||||||
tableView.RowHeight = UITableView.AutomaticDimension;
|
TableView.RowHeight = UITableView.AutomaticDimension;
|
||||||
tableView.EstimatedRowHeight = 70;
|
TableView.EstimatedRowHeight = 70;
|
||||||
tableView.Source = new TableSource(this);
|
TableView.Source = new TableSource(this);
|
||||||
|
|
||||||
base.ViewDidLoad();
|
base.ViewDidLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void UIBarButtonItem2289_Activated(UIBarButtonItem sender)
|
partial void CancelBarButton_Activated(UIBarButtonItem sender)
|
||||||
{
|
{
|
||||||
DismissViewController(true, null);
|
DismissViewController(true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void UIBarButtonItem2290_Activated(UIBarButtonItem sender)
|
partial void SaveBarButton_Activated(UIBarButtonItem sender)
|
||||||
{
|
{
|
||||||
DismissViewController(true, null);
|
DismissViewController(true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TableSource : UITableViewSource
|
public class TableSource : UITableViewSource
|
||||||
{
|
{
|
||||||
private AddSiteViewController _controller;
|
private SiteAddViewController _controller;
|
||||||
|
|
||||||
public TableSource(AddSiteViewController controller)
|
public TableSource(SiteAddViewController controller)
|
||||||
{
|
{
|
||||||
_controller = controller;
|
_controller = controller;
|
||||||
}
|
}
|
53
src/iOS.Extension/SiteAddViewController.designer.cs
generated
Normal file
53
src/iOS.Extension/SiteAddViewController.designer.cs
generated
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
// WARNING
|
||||||
|
//
|
||||||
|
// This file has been generated automatically by Xamarin Studio from the outlets and
|
||||||
|
// actions declared in your storyboard file.
|
||||||
|
// Manual changes to this file will not be maintained.
|
||||||
|
//
|
||||||
|
using Foundation;
|
||||||
|
using System;
|
||||||
|
using System.CodeDom.Compiler;
|
||||||
|
using UIKit;
|
||||||
|
|
||||||
|
namespace Bit.iOS.Extension
|
||||||
|
{
|
||||||
|
[Register ("SiteAddViewController")]
|
||||||
|
partial class SiteAddViewController
|
||||||
|
{
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UIBarButtonItem CancelBarButton { get; set; }
|
||||||
|
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UIBarButtonItem SaveBarButton { get; set; }
|
||||||
|
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UITableView TableView { get; set; }
|
||||||
|
|
||||||
|
[Action ("CancelBarButton_Activated:")]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
partial void CancelBarButton_Activated (UIBarButtonItem sender);
|
||||||
|
|
||||||
|
[Action ("SaveBarButton_Activated:")]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
partial void SaveBarButton_Activated (UIBarButtonItem sender);
|
||||||
|
|
||||||
|
void ReleaseDesignerOutlets ()
|
||||||
|
{
|
||||||
|
if (CancelBarButton != null) {
|
||||||
|
CancelBarButton.Dispose ();
|
||||||
|
CancelBarButton = null;
|
||||||
|
}
|
||||||
|
if (SaveBarButton != null) {
|
||||||
|
SaveBarButton.Dispose ();
|
||||||
|
SaveBarButton = null;
|
||||||
|
}
|
||||||
|
if (TableView != null) {
|
||||||
|
TableView.Dispose ();
|
||||||
|
TableView = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -14,9 +14,9 @@ using XLabs.Ioc;
|
|||||||
|
|
||||||
namespace Bit.iOS.Extension
|
namespace Bit.iOS.Extension
|
||||||
{
|
{
|
||||||
public partial class ActionViewController : UIViewController
|
public partial class SiteListViewController : UITableViewController
|
||||||
{
|
{
|
||||||
public ActionViewController(IntPtr handle) : base(handle)
|
public SiteListViewController(IntPtr handle) : base(handle)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
public Context Context { get; set; }
|
public Context Context { get; set; }
|
||||||
@ -25,7 +25,6 @@ namespace Bit.iOS.Extension
|
|||||||
{
|
{
|
||||||
UINavigationBar.Appearance.ShadowImage = new UIImage();
|
UINavigationBar.Appearance.ShadowImage = new UIImage();
|
||||||
UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
|
UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
|
||||||
|
|
||||||
base.ViewWillAppear(animated);
|
base.ViewWillAppear(animated);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,13 +41,12 @@ namespace Bit.iOS.Extension
|
|||||||
filteredSiteModels = siteModels.Where(s => s.Domain != null && s.Domain.BaseDomain == Context.DomainName.BaseDomain);
|
filteredSiteModels = siteModels.Where(s => s.Domain != null && s.Domain.BaseDomain == Context.DomainName.BaseDomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
tableView.RowHeight = UITableView.AutomaticDimension;
|
TableView.RowHeight = UITableView.AutomaticDimension;
|
||||||
tableView.EstimatedRowHeight = 44;
|
TableView.EstimatedRowHeight = 44;
|
||||||
tableView.Source = new TableSource(filteredSiteModels, this);
|
TableView.Source = new TableSource(filteredSiteModels, this);
|
||||||
AutomaticallyAdjustsScrollViewInsets = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void CancelClicked(UIBarButtonItem sender)
|
partial void CancelBarButton_Activated(UIBarButtonItem sender)
|
||||||
{
|
{
|
||||||
CompleteRequest(null);
|
CompleteRequest(null);
|
||||||
}
|
}
|
||||||
@ -62,9 +60,9 @@ namespace Bit.iOS.Extension
|
|||||||
Context.ExtContext.CompleteRequest(returningItems, null);
|
Context.ExtContext.CompleteRequest(returningItems, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void UIBarButtonItem2293_Activated(UIBarButtonItem sender)
|
partial void AddBarButton_Activated(UIBarButtonItem sender)
|
||||||
{
|
{
|
||||||
PerformSegue("addSiteSegue", this);
|
PerformSegue("siteAddSegue", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
|
public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
|
||||||
@ -72,7 +70,7 @@ namespace Bit.iOS.Extension
|
|||||||
var navController = segue.DestinationViewController as UINavigationController;
|
var navController = segue.DestinationViewController as UINavigationController;
|
||||||
if(navController != null)
|
if(navController != null)
|
||||||
{
|
{
|
||||||
var addSiteController = navController.TopViewController as AddSiteViewController;
|
var addSiteController = navController.TopViewController as SiteAddViewController;
|
||||||
if(addSiteController != null)
|
if(addSiteController != null)
|
||||||
{
|
{
|
||||||
addSiteController.Context = Context;
|
addSiteController.Context = Context;
|
||||||
@ -86,9 +84,9 @@ namespace Bit.iOS.Extension
|
|||||||
|
|
||||||
private IEnumerable<SiteViewModel> _tableItems;
|
private IEnumerable<SiteViewModel> _tableItems;
|
||||||
private Context _context;
|
private Context _context;
|
||||||
private ActionViewController _controller;
|
private SiteListViewController _controller;
|
||||||
|
|
||||||
public TableSource(IEnumerable<SiteViewModel> items, ActionViewController controller)
|
public TableSource(IEnumerable<SiteViewModel> items, SiteListViewController controller)
|
||||||
{
|
{
|
||||||
_tableItems = items;
|
_tableItems = items;
|
||||||
_context = controller.Context;
|
_context = controller.Context;
|
61
src/iOS.Extension/SiteListViewController.designer.cs
generated
Normal file
61
src/iOS.Extension/SiteListViewController.designer.cs
generated
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
// WARNING
|
||||||
|
//
|
||||||
|
// This file has been generated automatically by Xamarin Studio from the outlets and
|
||||||
|
// actions declared in your storyboard file.
|
||||||
|
// Manual changes to this file will not be maintained.
|
||||||
|
//
|
||||||
|
using Foundation;
|
||||||
|
using System;
|
||||||
|
using System.CodeDom.Compiler;
|
||||||
|
using UIKit;
|
||||||
|
|
||||||
|
namespace Bit.iOS.Extension
|
||||||
|
{
|
||||||
|
[Register ("SiteListViewController")]
|
||||||
|
partial class SiteListViewController
|
||||||
|
{
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UIBarButtonItem AddBarButton { get; set; }
|
||||||
|
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UIBarButtonItem CancelBarButton { get; set; }
|
||||||
|
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UINavigationItem NavItem { get; set; }
|
||||||
|
|
||||||
|
[Outlet]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
UITableView TableView { get; set; }
|
||||||
|
|
||||||
|
[Action ("AddBarButton_Activated:")]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
partial void AddBarButton_Activated (UIBarButtonItem sender);
|
||||||
|
|
||||||
|
[Action ("CancelBarButton_Activated:")]
|
||||||
|
[GeneratedCode ("iOS Designer", "1.0")]
|
||||||
|
partial void CancelBarButton_Activated (UIBarButtonItem sender);
|
||||||
|
|
||||||
|
void ReleaseDesignerOutlets ()
|
||||||
|
{
|
||||||
|
if (AddBarButton != null) {
|
||||||
|
AddBarButton.Dispose ();
|
||||||
|
AddBarButton = null;
|
||||||
|
}
|
||||||
|
if (CancelBarButton != null) {
|
||||||
|
CancelBarButton.Dispose ();
|
||||||
|
CancelBarButton = null;
|
||||||
|
}
|
||||||
|
if (NavItem != null) {
|
||||||
|
NavItem.Dispose ();
|
||||||
|
NavItem = null;
|
||||||
|
}
|
||||||
|
if (TableView != null) {
|
||||||
|
TableView.Dispose ();
|
||||||
|
TableView = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -95,13 +95,13 @@
|
|||||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AddSiteViewController.cs" />
|
<Compile Include="SiteAddViewController.cs" />
|
||||||
<Compile Include="AddSiteViewController.designer.cs">
|
<Compile Include="SiteAddViewController.designer.cs">
|
||||||
<DependentUpon>AddSiteViewController.cs</DependentUpon>
|
<DependentUpon>SiteAddViewController.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="ActionViewController.cs" />
|
<Compile Include="SiteListViewController.cs" />
|
||||||
<Compile Include="ActionViewController.designer.cs">
|
<Compile Include="SiteListViewController.designer.cs">
|
||||||
<DependentUpon>ActionViewController.cs</DependentUpon>
|
<DependentUpon>SiteListViewController.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Main.cs" />
|
<Compile Include="Main.cs" />
|
||||||
<Compile Include="AppDelegate.cs" />
|
<Compile Include="AppDelegate.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user