Added localization stubbs for IconSelectionView

This commit is contained in:
michael starke
2014-11-10 12:45:20 +01:00
parent 32840c7fd8
commit 1f8983c52d
10 changed files with 65 additions and 9 deletions

View File

@@ -72,6 +72,7 @@
<constraint firstItem="57" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="10" id="111"/>
<constraint firstItem="101" firstAttribute="top" secondItem="57" secondAttribute="bottom" constant="8" symbolic="YES" id="112"/>
</constraints>
<point key="canvasLocation" x="370" y="95"/>
</customView>
<collectionViewItem id="61">
<connections>

View File

@@ -15,7 +15,7 @@
<window title="Welcome" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="1">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
<rect key="contentRect" x="196" y="240" width="448" height="255"/>
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1028"/>
<view key="contentView" id="2">
<rect key="frame" x="0.0" y="0.0" width="448" height="255"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>

View File

@@ -15,11 +15,9 @@ FOUNDATION_EXTERN NSInteger const kMPDefaultIcon;
/**
* Is the selected Icon, kMPDefaultIcon if the default icons was selected
*/
@property (nonatomic, assign) NSInteger selectedIcon;
@property (nonatomic, assign) BOOL didCancel;
@property (nonatomic, readonly, assign) NSInteger selectedIcon;
@property (nonatomic, readonly, assign) BOOL didCancel;
@property (weak) IBOutlet NSCollectionView *iconCollectionView;
@property (weak) IBOutlet NSButton *imageButton;
@property (weak) NSPopover *popover;
- (void)reset;

View File

@@ -14,6 +14,14 @@
NSInteger const kMPDefaultIcon = -1;
@interface MPIconSelectViewController ()
@property (nonatomic, assign) NSInteger selectedIcon;
@property (nonatomic, assign) BOOL didCancel;
/* UI properties */
@property (weak) IBOutlet NSCollectionView *iconCollectionView;
@property (weak) IBOutlet NSButton *imageButton;
@end
@implementation MPIconSelectViewController
@@ -26,6 +34,7 @@ NSInteger const kMPDefaultIcon = -1;
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
_didCancel = YES;
_selectedIcon = kMPDefaultIcon;
}
return self;
}

View File

@@ -0,0 +1,6 @@
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
"102.title" = "Standardicon verwenden";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
"1kM-cI-P1o.title" = "Abbrechen";

View File

@@ -0,0 +1,6 @@
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
"102.title" = "Use Default Icon";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
"1kM-cI-P1o.title" = "Cancel";

View File

@@ -0,0 +1,6 @@
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
"102.title" = "Use Default Icon";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
"1kM-cI-P1o.title" = "Cancel";

View File

@@ -0,0 +1,6 @@
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
"102.title" = "Use Default Icon";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
"1kM-cI-P1o.title" = "Cancel";

View File

@@ -0,0 +1,6 @@
/* Class = "NSButtonCell"; title = "Use Default Icon"; ObjectID = "102"; */
"102.title" = "Use Default Icon";
/* Class = "NSButtonCell"; title = "Cancel"; ObjectID = "1kM-cI-P1o"; */
"1kM-cI-P1o.title" = "Cancel";