UI improvements. Added a spinner to shows the loading of an mp4.
This commit is contained in:
1 parent
718c8b1138
commit
0efb5cbc23
4 files changed
+22
-8
No files matched your search
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
NSTextField *_actionsLabel;
|
NSTextField *_actionsLabel;
|
||||||
|
|
||||||
|
NSProgressIndicator *_spinner;
|
||||||
|
|
||||||
id _delegate;
|
id _delegate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
@property (assign) IBOutlet NSTextField *actionsLabel;
|
@property (assign) IBOutlet NSTextField *actionsLabel;
|
||||||
|
|
||||||
|
@property (assign) IBOutlet NSProgressIndicator *spinner;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation SBItemViewController
|
@implementation SBItemViewController
|
||||||
@@ -34,6 +36,8 @@
|
|||||||
|
|
||||||
@synthesize actionsLabel = _actionsLabel;
|
@synthesize actionsLabel = _actionsLabel;
|
||||||
|
|
||||||
|
@synthesize spinner = _spinner;
|
||||||
|
|
||||||
- (instancetype)initWithItem:(SBQueueItem *)item {
|
- (instancetype)initWithItem:(SBQueueItem *)item {
|
||||||
self = [self init];
|
self = [self init];
|
||||||
if (self) {
|
if (self) {
|
||||||
@@ -72,6 +76,7 @@
|
|||||||
|
|
||||||
- (IBAction)edit:(id)sender {
|
- (IBAction)edit:(id)sender {
|
||||||
[sender setEnabled:NO];
|
[sender setEnabled:NO];
|
||||||
|
[self.spinner startAnimation:sender];
|
||||||
|
|
||||||
if ([self.delegate respondsToSelector:@selector(editItem:)]) {
|
if ([self.delegate respondsToSelector:@selector(editItem:)]) {
|
||||||
[self.delegate performSelector:@selector(editItem:) withObject:self.item];
|
[self.delegate performSelector:@selector(editItem:) withObject:self.item];
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
</imageCell>
|
</imageCell>
|
||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||||
</tableColumn>
|
</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">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="nameColumn">
|
||||||
<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"/>
|
||||||
@@ -65,15 +65,15 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
|
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
|
||||||
</tableColumn>
|
</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">
|
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="actionColumn">
|
||||||
<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"/>
|
||||||
</tableHeaderCell>
|
</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">
|
<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" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" lightByContents="YES"/>
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="systemBold" size="12"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="toggleItemsOptions:" target="-2" id="Ab6-c1-OBN"/>
|
<action selector="toggleItemsOptions:" target="-2" id="Ab6-c1-OBN"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<progressIndicator maxValue="100" indeterminate="YES" style="bar" id="91">
|
<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"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||||
</progressIndicator>
|
</progressIndicator>
|
||||||
</subviews>
|
</subviews>
|
||||||
@@ -224,5 +224,7 @@
|
|||||||
<image name="NSAddTemplate" width="8" height="8"/>
|
<image name="NSAddTemplate" width="8" height="8"/>
|
||||||
<image name="NSFollowLinkFreestandingTemplate" width="10" height="10"/>
|
<image name="NSFollowLinkFreestandingTemplate" width="10" height="10"/>
|
||||||
<image name="NSGoRightTemplate" width="9" height="9"/>
|
<image name="NSGoRightTemplate" width="9" height="9"/>
|
||||||
|
<image name="info" width="16" height="16"/>
|
||||||
|
<image name="info-over" width="16" height="16"/>
|
||||||
</resources>
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
<outlet property="destinationLabel" destination="eTa-uz-sjk" id="ivS-cY-3Jt"/>
|
<outlet property="destinationLabel" destination="eTa-uz-sjk" id="ivS-cY-3Jt"/>
|
||||||
<outlet property="nameLabel" destination="ITP-pW-XrQ" id="o3b-Gi-Mey"/>
|
<outlet property="nameLabel" destination="ITP-pW-XrQ" id="o3b-Gi-Mey"/>
|
||||||
<outlet property="sourceLabel" destination="aBh-Is-f6Q" id="xCJ-Zl-gZ6"/>
|
<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"/>
|
<outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
@@ -84,9 +85,9 @@
|
|||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" id="J0r-57-7ab">
|
<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"/>
|
<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"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="smallSystem"/>
|
<font key="font" metaFont="smallSystem"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
@@ -94,6 +95,10 @@
|
|||||||
<action selector="edit:" target="-2" id="ZCT-Of-7Vv"/>
|
<action selector="edit:" target="-2" id="ZCT-Of-7Vv"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</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>
|
</subviews>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
|
|||||||
Reference in new issue
Block a user