UI improvements. Added a spinner to shows the loading of an mp4.

This commit is contained in:
Damiano Galassi committed 2014-03-20 20:13:15 +01:00
1 parent 718c8b1138
commit 0efb5cbc23
4 files changed
+22 -8

No files matched your search

+2
View File
@@ -20,6 +20,8 @@
NSTextField *_actionsLabel;
NSProgressIndicator *_spinner;
id _delegate;
}
+5
View File
@@ -21,6 +21,8 @@
@property (assign) IBOutlet NSTextField *actionsLabel;
@property (assign) IBOutlet NSProgressIndicator *spinner;
@end
@implementation SBItemViewController
@@ -34,6 +36,8 @@
@synthesize actionsLabel = _actionsLabel;
@synthesize spinner = _spinner;
- (instancetype)initWithItem:(SBQueueItem *)item {
self = [self init];
if (self) {
@@ -72,6 +76,7 @@
- (IBAction)edit:(id)sender {
[sender setEnabled:NO];
[self.spinner startAnimation:sender];
if ([self.delegate respondsToSelector:@selector(editItem:)]) {
[self.delegate performSelector:@selector(editItem:) withObject:self.item];
+8 -6
View File
@@ -52,7 +52,7 @@
</imageCell>
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
</tableColumn>
<tableColumn identifier="nameColumn" editable="NO" width="329" minWidth="40" maxWidth="3000" id="8">
<tableColumn identifier="nameColumn" editable="NO" width="321" minWidth="40" maxWidth="3000" id="8">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="nameColumn">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
@@ -65,15 +65,15 @@
</textFieldCell>
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
</tableColumn>
<tableColumn identifier="actionColumn" width="16" minWidth="16" maxWidth="16" id="AOY-6b-kkZ">
<tableColumn identifier="actionColumn" width="24" minWidth="24" maxWidth="24" id="AOY-6b-kkZ">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="actionColumn">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
<buttonCell key="dataCell" type="inline" bezelStyle="inline" image="NSActionTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="charWrapping" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="N2p-Ol-NaN">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystemBold"/>
<buttonCell key="dataCell" type="recessed" bezelStyle="recessed" image="info" imagePosition="left" alignment="left" alternateImage="info-over" lineBreakMode="charWrapping" imageScaling="proportionallyUpOrDown" inset="2" id="N2p-Ol-NaN">
<behavior key="behavior" lightByContents="YES"/>
<font key="font" metaFont="systemBold" size="12"/>
<connections>
<action selector="toggleItemsOptions:" target="-2" id="Ab6-c1-OBN"/>
</connections>
@@ -109,7 +109,7 @@
</textFieldCell>
</textField>
<progressIndicator maxValue="100" indeterminate="YES" style="bar" id="91">
<rect key="frame" x="199" y="13" width="169" height="20"/>
<rect key="frame" x="199" y="13" width="168.99999973655406" height="20"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
</progressIndicator>
</subviews>
@@ -224,5 +224,7 @@
<image name="NSAddTemplate" width="8" height="8"/>
<image name="NSFollowLinkFreestandingTemplate" width="10" height="10"/>
<image name="NSGoRightTemplate" width="9" height="9"/>
<image name="info" width="16" height="16"/>
<image name="info-over" width="16" height="16"/>
</resources>
</document>
+7 -2
View File
@@ -11,6 +11,7 @@
<outlet property="destinationLabel" destination="eTa-uz-sjk" id="ivS-cY-3Jt"/>
<outlet property="nameLabel" destination="ITP-pW-XrQ" id="o3b-Gi-Mey"/>
<outlet property="sourceLabel" destination="aBh-Is-f6Q" id="xCJ-Zl-gZ6"/>
<outlet property="spinner" destination="fCV-gk-gLV" id="1Vf-98-EBX"/>
<outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/>
</connections>
</customObject>
@@ -84,9 +85,9 @@
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" id="J0r-57-7ab">
<rect key="frame" x="20" y="9" width="35" height="17"/>
<rect key="frame" x="20" y="9" width="46" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<buttonCell key="cell" type="roundRect" title="Edit" bezelStyle="roundedRect" alignment="center" controlSize="small" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="cEO-ol-OLW">
<buttonCell key="cell" type="roundRect" title="Edit…" bezelStyle="roundedRect" alignment="center" controlSize="small" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="cEO-ol-OLW">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
</buttonCell>
@@ -94,6 +95,10 @@
<action selector="edit:" target="-2" id="ZCT-Of-7Vv"/>
</connections>
</button>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="fCV-gk-gLV">
<rect key="frame" x="75" y="10" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</progressIndicator>
</subviews>
</customView>
</objects>