multi-device: update Ring account creation wizard
This patch implements multi-device support
- The account creation wizzard has now two options "Existing Ring
account" and "New Ring account".
"Existing Ring account": Allows for fetching a Ring account archive
from the DHT. Requires pin and password.
"New Ring account": This is the previously existing wizard. It was
modified to ask for a password which will be used to encrypt the
account archive. This password is then required for exporting the
account on the Ring.
- Creating a new Ring account with the "+" button now triggers the
account creation wizard.
Change-Id: I6840d968e52de014ab0aa9dd6f5bc1ab31f9e9ec
Tuleap: #958
diff --git a/ui/Base.lproj/RingWizardChoose.xib b/ui/Base.lproj/RingWizardChoose.xib
new file mode 100644
index 0000000..074154e
--- /dev/null
+++ b/ui/Base.lproj/RingWizardChoose.xib
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
+ </dependencies>
+ <objects>
+ <customObject id="-2" userLabel="File's Owner" customClass="RingWizardChooseVC">
+ <connections>
+ <outlet property="view" destination="kwg-fS-3aI" id="C8q-qb-geg"/>
+ </connections>
+ </customObject>
+ <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
+ <customObject id="-3" userLabel="Application" customClass="NSObject"/>
+ <customView id="kwg-fS-3aI">
+ <rect key="frame" x="0.0" y="0.0" width="535" height="134"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <subviews>
+ <view translatesAutoresizingMaskIntoConstraints="NO" id="uHQ-s7-X3y">
+ <rect key="frame" x="5" y="5" width="525" height="109"/>
+ <subviews>
+ <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cpk-ql-oGP">
+ <rect key="frame" x="163" y="30" width="198" height="29"/>
+ <buttonCell key="cell" type="bevel" title="Link to existing Ring account" bezelStyle="regularSquare" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Z9K-mD-ucr">
+ <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+ <font key="font" metaFont="system"/>
+ </buttonCell>
+ <connections>
+ <action selector="linkExistingRingAccount:" target="-2" id="q5v-67-9eC"/>
+ </connections>
+ </button>
+ <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="pcF-lX-ex4">
+ <rect key="frame" x="163" y="62" width="198" height="29"/>
+ <buttonCell key="cell" type="bevel" title="New Ring account" bezelStyle="regularSquare" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="k1T-a7-yZD">
+ <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+ <font key="font" metaFont="system"/>
+ </buttonCell>
+ <connections>
+ <action selector="createRingAccount:" target="-2" id="Mij-SG-JWQ"/>
+ </connections>
+ </button>
+ <button translatesAutoresizingMaskIntoConstraints="NO" id="UXp-us-Mbl">
+ <rect key="frame" x="435" y="17" width="72" height="29"/>
+ <constraints>
+ <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="68" id="BJn-n9-or6"/>
+ </constraints>
+ <buttonCell key="cell" type="bevel" title="Cancel" bezelStyle="regularSquare" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="YJ3-7G-cU1">
+ <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+ <font key="font" metaFont="system"/>
+ </buttonCell>
+ <connections>
+ <action selector="onCancel:" target="-2" id="VXk-Vg-8RL"/>
+ <binding destination="-2" name="hidden" keyPath="self.isCancelable" id="BJD-kc-nuB">
+ <dictionary key="options">
+ <string key="NSValueTransformerName">NSNegateBoolean</string>
+ </dictionary>
+ </binding>
+ </connections>
+ </button>
+ </subviews>
+ <constraints>
+ <constraint firstItem="cpk-ql-oGP" firstAttribute="top" secondItem="pcF-lX-ex4" secondAttribute="bottom" constant="8" id="5zS-8W-pRW"/>
+ <constraint firstAttribute="trailing" secondItem="UXp-us-Mbl" secondAttribute="trailing" constant="20" id="A9P-tO-DO2"/>
+ <constraint firstItem="pcF-lX-ex4" firstAttribute="trailing" secondItem="cpk-ql-oGP" secondAttribute="trailing" id="HN8-pn-yp6"/>
+ <constraint firstItem="cpk-ql-oGP" firstAttribute="centerX" secondItem="uHQ-s7-X3y" secondAttribute="centerX" id="KMQ-q8-0Vy"/>
+ <constraint firstAttribute="bottom" secondItem="UXp-us-Mbl" secondAttribute="bottom" constant="20" id="fJH-5w-ca6"/>
+ <constraint firstItem="pcF-lX-ex4" firstAttribute="centerX" secondItem="uHQ-s7-X3y" secondAttribute="centerX" id="iq8-Px-R61"/>
+ <constraint firstItem="pcF-lX-ex4" firstAttribute="leading" secondItem="cpk-ql-oGP" secondAttribute="leading" id="n6m-l1-sty"/>
+ <constraint firstItem="pcF-lX-ex4" firstAttribute="top" secondItem="uHQ-s7-X3y" secondAttribute="top" constant="20" id="vhe-SJ-yfX"/>
+ </constraints>
+ </view>
+ </subviews>
+ <constraints>
+ <constraint firstAttribute="trailing" secondItem="uHQ-s7-X3y" secondAttribute="trailing" constant="5" id="2fY-ll-RLQ"/>
+ <constraint firstAttribute="bottom" secondItem="uHQ-s7-X3y" secondAttribute="bottom" constant="5" id="Sm2-ur-GGt"/>
+ <constraint firstItem="uHQ-s7-X3y" firstAttribute="leading" secondItem="kwg-fS-3aI" secondAttribute="leading" constant="5" id="Uek-aG-LYS"/>
+ <constraint firstItem="uHQ-s7-X3y" firstAttribute="top" secondItem="kwg-fS-3aI" secondAttribute="top" constant="20" id="UvI-iR-x3B"/>
+ </constraints>
+ <point key="canvasLocation" x="485.5" y="-279"/>
+ </customView>
+ <userDefaultsController representsSharedInstance="YES" id="ck0-Ru-0YG"/>
+ </objects>
+</document>