Improve ocr prefs ui.
This commit is contained in:
3 files changed
+18
-14
No files matched your search
@@ -46,7 +46,7 @@
|
|||||||
<action selector="setPrefView:" target="-2" id="Wer-vH-QP9"/>
|
<action selector="setPrefView:" target="-2" id="Wer-vH-QP9"/>
|
||||||
</connections>
|
</connections>
|
||||||
</toolbarItem>
|
</toolbarItem>
|
||||||
<toolbarItem implicitItemIdentifier="E563B234-18F6-4A09-9F56-4BB6C8F6A93E" explicitItemIdentifier="TOOLBAR_OCR" label="OCR" paletteLabel="OCR" tag="-1" image="NSEveryone" selectable="YES" id="btg-Uy-o7I">
|
<toolbarItem implicitItemIdentifier="E563B234-18F6-4A09-9F56-4BB6C8F6A93E" explicitItemIdentifier="TOOLBAR_OCR" label="OCR" paletteLabel="OCR" tag="-1" image="NSFontPanel" selectable="YES" id="btg-Uy-o7I">
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="setPrefView:" target="-2" id="rii-FH-ihc"/>
|
<action selector="setPrefView:" target="-2" id="rii-FH-ihc"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -75,8 +75,8 @@
|
|||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
<image name="NSAdvanced" width="32" height="32"/>
|
<image name="NSAdvanced" width="32" height="32"/>
|
||||||
<image name="NSEveryone" width="32" height="32"/>
|
|
||||||
<image name="NSFolderSmart" width="32" height="32"/>
|
<image name="NSFolderSmart" width="32" height="32"/>
|
||||||
|
<image name="NSFontPanel" width="32" height="32"/>
|
||||||
<image name="NSPreferencesGeneral" width="32" height="32"/>
|
<image name="NSPreferencesGeneral" width="32" height="32"/>
|
||||||
<image name="NSUserAccounts" width="32" height="32"/>
|
<image name="NSUserAccounts" width="32" height="32"/>
|
||||||
<image name="mp4-file" width="32" height="32"/>
|
<image name="mp4-file" width="32" height="32"/>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class OCRTableCellView : NSTableCellView {
|
|||||||
case .available:
|
case .available:
|
||||||
actionButton.title = NSLocalizedString("Get", comment: "")
|
actionButton.title = NSLocalizedString("Get", comment: "")
|
||||||
case .downloading:
|
case .downloading:
|
||||||
actionButton.title = NSLocalizedString("Cancel", comment: "")
|
actionButton.title = NSLocalizedString("Cancel Download", comment: "")
|
||||||
case .downloaded:
|
case .downloaded:
|
||||||
actionButton.title = NSLocalizedString("Remove", comment: "")
|
actionButton.title = NSLocalizedString("Remove", comment: "")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,21 +18,21 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="480" height="314"/>
|
<rect key="frame" x="0.0" y="0.0" width="480" height="314"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="20" horizontalPageScroll="10" verticalLineScroll="20" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QYE-NI-76o">
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="21" horizontalPageScroll="10" verticalLineScroll="21" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QYE-NI-76o">
|
||||||
<rect key="frame" x="20" y="62" width="440" height="232"/>
|
<rect key="frame" x="20" y="62" width="440" height="232"/>
|
||||||
<clipView key="contentView" id="OFf-eT-AOX">
|
<clipView key="contentView" id="OFf-eT-AOX">
|
||||||
<rect key="frame" x="1" y="1" width="438" height="230"/>
|
<rect key="frame" x="1" y="0.0" width="438" height="231"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="18" rowSizeStyle="automatic" viewBased="YES" id="eSu-XV-7Vu">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="19" rowSizeStyle="automatic" headerView="7KU-Cc-YiM" viewBased="YES" id="eSu-XV-7Vu">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="438" height="230"/>
|
<rect key="frame" x="0.0" y="0.0" width="440" height="206"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||||
<tableColumns>
|
<tableColumns>
|
||||||
<tableColumn width="435" minWidth="40" maxWidth="1000" id="7YG-8f-1AH">
|
<tableColumn width="437" minWidth="40" maxWidth="1000" id="7YG-8f-1AH">
|
||||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Trained languages">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Language data files">
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -45,11 +45,11 @@
|
|||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
<prototypeCellViews>
|
<prototypeCellViews>
|
||||||
<tableCellView identifier="languageItem" id="lSD-av-rXp" customClass="OCRTableCellView" customModule="Subler" customModuleProvider="target">
|
<tableCellView identifier="languageItem" id="lSD-av-rXp" customClass="OCRTableCellView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="1" y="1" width="435" height="18"/>
|
<rect key="frame" x="1" y="1" width="437" height="19"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
|
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
|
||||||
<rect key="frame" x="87" y="1" width="348" height="17"/>
|
<rect key="frame" x="87" y="2" width="350" height="17"/>
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Zhz-YB-L6R">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Zhz-YB-L6R">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
|
||||||
<rect key="frame" x="-2" y="-6" width="90" height="27"/>
|
<rect key="frame" x="-2" y="-5" width="90" height="27"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="Fec-S0-J1M" firstAttribute="top" secondItem="lSD-av-rXp" secondAttribute="top" id="9uf-fA-xpv"/>
|
<constraint firstItem="Fec-S0-J1M" firstAttribute="top" secondItem="lSD-av-rXp" secondAttribute="top" id="9uf-fA-xpv"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="Fec-S0-J1M" secondAttribute="bottom" constant="1" id="QLG-Ww-AZo"/>
|
<constraint firstAttribute="bottom" secondItem="Fec-S0-J1M" secondAttribute="bottom" constant="2" id="QLG-Ww-AZo"/>
|
||||||
<constraint firstItem="Fec-S0-J1M" firstAttribute="leading" secondItem="Lhm-Hc-3on" secondAttribute="trailing" constant="6" id="UsK-RG-vQJ"/>
|
<constraint firstItem="Fec-S0-J1M" firstAttribute="leading" secondItem="Lhm-Hc-3on" secondAttribute="trailing" constant="6" id="UsK-RG-vQJ"/>
|
||||||
<constraint firstItem="Lhm-Hc-3on" firstAttribute="leading" secondItem="lSD-av-rXp" secondAttribute="leading" constant="3" id="cOX-ia-Azj"/>
|
<constraint firstItem="Lhm-Hc-3on" firstAttribute="leading" secondItem="lSD-av-rXp" secondAttribute="leading" constant="3" id="cOX-ia-Azj"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="Fec-S0-J1M" secondAttribute="trailing" constant="2" id="duf-r8-sa5"/>
|
<constraint firstAttribute="trailing" secondItem="Fec-S0-J1M" secondAttribute="trailing" constant="2" id="duf-r8-sa5"/>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="232" id="B0d-iH-QVk"/>
|
<constraint firstAttribute="height" constant="232" id="B0d-iH-QVk"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="C8S-5f-eDe">
|
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="C8S-5f-eDe">
|
||||||
<rect key="frame" x="1" y="215" width="438" height="16"/>
|
<rect key="frame" x="1" y="215" width="438" height="16"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
@@ -104,6 +104,10 @@
|
|||||||
<rect key="frame" x="224" y="17" width="15" height="102"/>
|
<rect key="frame" x="224" y="17" width="15" height="102"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
</scroller>
|
</scroller>
|
||||||
|
<tableHeaderView key="headerView" id="7KU-Cc-YiM">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="440" height="25"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
</tableHeaderView>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="86L-qx-fhB">
|
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="86L-qx-fhB">
|
||||||
<rect key="frame" x="18" y="20" width="444" height="34"/>
|
<rect key="frame" x="18" y="20" width="444" height="34"/>
|
||||||
|
|||||||
Reference in new issue
Block a user