Skip to content

Commit

Permalink
FIXED display of refresh button in preview for briefs built-into the …
Browse files Browse the repository at this point in the history
…application. Since it only caused errors, it made sense to remove. (@Clarko)
  • Loading branch information
capttaco committed May 6, 2010
1 parent 0c6ea8a commit 2017043
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
16 changes: 9 additions & 7 deletions Classes/BFBriefInfoView.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
IBOutlet UILabel *infoLabel;
IBOutlet UILabel *dateLabel;
IBOutlet UILabel *timeLabel;
IBOutlet UIButton *refreshButton;
}

@property (retain) IBOutlet UILabel *titleLabel;
@property (retain) IBOutlet UILabel *authorLabel;
@property (retain) IBOutlet UILabel *fromLabel;
@property (retain) IBOutlet UILabel *numberOfScenesLabel;
@property (retain) IBOutlet UILabel *infoLabel;
@property (retain) IBOutlet UILabel *dateLabel;
@property (retain) IBOutlet UILabel *timeLabel;
@property (retain) IBOutlet UILabel *titleLabel;
@property (retain) IBOutlet UILabel *authorLabel;
@property (retain) IBOutlet UILabel *fromLabel;
@property (retain) IBOutlet UILabel *numberOfScenesLabel;
@property (retain) IBOutlet UILabel *infoLabel;
@property (retain) IBOutlet UILabel *dateLabel;
@property (retain) IBOutlet UILabel *timeLabel;
@property (retain) IBOutlet UIButton *refreshButton;



Expand Down
3 changes: 1 addition & 2 deletions Classes/BFBriefInfoView.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


@implementation BFBriefInfoView
@synthesize titleLabel, authorLabel, fromLabel, numberOfScenesLabel, infoLabel, dateLabel, timeLabel;
@synthesize titleLabel, authorLabel, fromLabel, numberOfScenesLabel, infoLabel, dateLabel, timeLabel, refreshButton;

- (IBAction)returnToPreview
{
Expand All @@ -27,5 +27,4 @@ - (IBAction)refreshTheBrief
}



@end
1 change: 1 addition & 0 deletions Classes/BFPreviewBriefViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ - (void)prepareInfoView:(BriefRef *)ref
// check if locally stored
if ([[ref fromURL] isEqual:kBFLocallyStoredBriefURLString]) {
infoView.fromLabel.text = @"Built-in";
[infoView.refreshButton setEnabled:NO];
}
else infoView.fromLabel.text = [[NSURL URLWithString:[ref fromURL]] host];

Expand Down
26 changes: 21 additions & 5 deletions Classes/BFPreviewBriefViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
<string key="NSResourceName">preview-play-bg.png</string>
</object>
</object>
<object class="IBUIButton" id="138168178">
<object class="IBUIButton" id="856063129">
<reference key="NSNextResponder" ref="333069867"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{8, 257}, {193, 35}}</string>
Expand Down Expand Up @@ -445,6 +445,10 @@
<bytes key="NSRGB">MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="142740661"/>
<object class="NSCustomResource" key="IBUIDisabledImage">
<string key="NSClassName">NSImage</string>
<string type="base64-UTF8" key="NSResourceName">IA</string>
</object>
<object class="NSCustomResource" key="IBUINormalImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">refresh.png</string>
Expand Down Expand Up @@ -878,12 +882,20 @@
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">shouldShowBriefInfo</string>
<reference key="source" ref="138168178"/>
<reference key="source" ref="856063129"/>
<reference key="destination" ref="333069867"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">62</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">refreshButton</string>
<reference key="source" ref="511513923"/>
<reference key="destination" ref="980034570"/>
</object>
<int key="connectionID">63</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
Expand Down Expand Up @@ -921,7 +933,7 @@
<reference ref="181431480"/>
<reference ref="681916656"/>
<reference ref="463660376"/>
<reference ref="138168178"/>
<reference ref="856063129"/>
</object>
<reference key="parent" ref="0"/>
</object>
Expand Down Expand Up @@ -1107,7 +1119,7 @@
</object>
<object class="IBObjectRecord">
<int key="objectID">60</int>
<reference key="object" ref="138168178"/>
<reference key="object" ref="856063129"/>
<reference key="parent" ref="333069867"/>
</object>
</object>
Expand Down Expand Up @@ -1254,7 +1266,7 @@
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">62</int>
<int key="maxID">63</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand Down Expand Up @@ -1287,6 +1299,7 @@
<string>fromLabel</string>
<string>infoLabel</string>
<string>numberOfScenesLabel</string>
<string>refreshButton</string>
<string>timeLabel</string>
<string>titleLabel</string>
</object>
Expand All @@ -1298,6 +1311,7 @@
<string>UILabel</string>
<string>UILabel</string>
<string>UILabel</string>
<string>UIButton</string>
<string>UILabel</string>
<string>UILabel</string>
</object>
Expand Down Expand Up @@ -1618,6 +1632,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string type="base64-UTF8">IA</string>
<string>preview-bg.png</string>
<string>preview-play-bg.png</string>
<string>preview-title-bg.png</string>
Expand All @@ -1627,6 +1642,7 @@
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>{16, 16}</string>
<string>{210, 306}</string>
<string>{43, 42}</string>
<string>{194, 33}</string>
Expand Down

0 comments on commit 2017043

Please sign in to comment.