Revision: 6338
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6338&view=rev
Author:   hofman
Date:     2010-03-18 12:27:21 +0000 (Thu, 18 Mar 2010)

Log Message:
-----------
set popup item titles for note icon in xib

Modified Paths:
--------------
    trunk/Dutch.lproj/Localizable.strings
    trunk/Dutch.lproj/NoteWindow.strings
    trunk/English.lproj/Localizable.strings
    trunk/English.lproj/NoteWindow.strings
    trunk/French.lproj/Localizable.strings
    trunk/French.lproj/NoteWindow.strings
    trunk/German.lproj/Localizable.strings
    trunk/German.lproj/NoteWindow.strings
    trunk/Italian.lproj/Localizable.strings
    trunk/Italian.lproj/NoteWindow.strings
    trunk/NoteWindow.xib
    trunk/SKNoteWindowController.m
    trunk/Spanish.lproj/Localizable.strings
    trunk/Spanish.lproj/NoteWindow.strings
    trunk/ru.lproj/Localizable.strings
    trunk/ru.lproj/NoteWindow.strings
    trunk/zh_TW.lproj/Localizable.strings
    trunk/zh_TW.lproj/NoteWindow.strings

Modified: trunk/Dutch.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/Dutch.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/English.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/English.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/French.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/French.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/German.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/German.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/Italian.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/Italian.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/NoteWindow.xib
===================================================================
--- trunk/NoteWindow.xib        2010-03-18 11:06:09 UTC (rev 6337)
+++ trunk/NoteWindow.xib        2010-03-18 12:27:21 UTC (rev 6338)
@@ -352,7 +352,7 @@
                                                                                
<int key="NSPeriodicInterval">75</int>
                                                                                
<object class="NSMenuItem" key="NSMenuItem" id="489394259">
                                                                                
        <reference key="NSMenu" ref="312376913"/>
-                                                                               
        <string key="NSTitle"/>
+                                                                               
        <string key="NSTitle">Comment</string>
                                                                                
        <string key="NSKeyEquiv"/>
                                                                                
        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
        <int key="NSMnemonicLoc">2147483647</int>
@@ -376,7 +376,7 @@
                                                                                
                <reference ref="489394259"/>
                                                                                
                <object class="NSMenuItem" id="794714255">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">Key</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -388,7 +388,7 @@
                                                                                
                </object>
                                                                                
                <object class="NSMenuItem" id="707932413">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">Note</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -400,7 +400,7 @@
                                                                                
                </object>
                                                                                
                <object class="NSMenuItem" id="280178157">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">Help</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -412,7 +412,7 @@
                                                                                
                </object>
                                                                                
                <object class="NSMenuItem" id="35784910">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">New Paragraph</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -424,7 +424,7 @@
                                                                                
                </object>
                                                                                
                <object class="NSMenuItem" id="957973871">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">Paragraph</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -436,7 +436,7 @@
                                                                                
                </object>
                                                                                
                <object class="NSMenuItem" id="577793603">
                                                                                
                        <reference key="NSMenu" ref="312376913"/>
-                                                                               
                        <string key="NSTitle"/>
+                                                                               
                        <string key="NSTitle">Insert</string>
                                                                                
                        <string key="NSKeyEquiv"/>
                                                                                
                        <int key="NSKeyEquivModMask">1048576</int>
                                                                                
                        <int key="NSMnemonicLoc">2147483647</int>
@@ -1288,6 +1288,13 @@
                                        <string 
key="className">NSObject</string>
                                        <object 
class="IBClassDescriptionSource" key="sourceIdentifier">
                                                <string 
key="majorKey">IBProjectSource</string>
+                                               <string 
key="minorKey">SKLocalization.h</string>
+                                       </object>
+                               </object>
+                               <object class="IBPartialClassDescription">
+                                       <string 
key="className">NSObject</string>
+                                       <object 
class="IBClassDescriptionSource" key="sourceIdentifier">
+                                               <string 
key="majorKey">IBProjectSource</string>
                                                <string 
key="minorKey">SKPDFDocument.h</string>
                                        </object>
                                </object>
@@ -1485,7 +1492,7 @@
                                </object>
                                <object class="IBPartialClassDescription">
                                        <string 
key="className">SKNoteWindowController</string>
-                                       <string 
key="superclassName">NSWindowController</string>
+                                       <string 
key="superclassName">SKWindowController</string>
                                        <object class="NSMutableDictionary" 
key="actions">
                                                <string 
key="NS.key.0">statusBarClicked:</string>
                                                <string 
key="NS.object.0">id</string>
@@ -1520,7 +1527,7 @@
                                </object>
                                <object class="IBPartialClassDescription">
                                        <string 
key="className">SKNoteWindowController</string>
-                                       <string 
key="superclassName">NSWindowController</string>
+                                       <string 
key="superclassName">SKWindowController</string>
                                        <object 
class="IBClassDescriptionSource" key="sourceIdentifier">
                                                <string 
key="majorKey">IBUserSource</string>
                                                <string key="minorKey"/>
@@ -1570,6 +1577,14 @@
                                                <string key="minorKey"/>
                                        </object>
                                </object>
+                               <object class="IBPartialClassDescription">
+                                       <string 
key="className">SKWindowController</string>
+                                       <string 
key="superclassName">NSWindowController</string>
+                                       <object 
class="IBClassDescriptionSource" key="sourceIdentifier">
+                                               <string 
key="majorKey">IBProjectSource</string>
+                                               <string 
key="minorKey">SKWindowController.h</string>
+                                       </object>
+                               </object>
                        </object>
                        <object class="NSMutableArray" 
key="referencedPartialClassDescriptionsV3.2+">
                                <bool key="EncodedWithXMLCoder">YES</bool>

Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m      2010-03-18 11:06:09 UTC (rev 6337)
+++ trunk/SKNoteWindowController.m      2010-03-18 12:27:21 UTC (rev 6338)
@@ -135,19 +135,6 @@
     [statusBar setLeftStringValue:[NSString 
stringWithFormat:NSLocalizedString(@"Page %@ at (%ld, %ld)", @"Status 
message"), [[note page] displayLabel], (long)NSMidX(bounds), 
(long)NSMidY(bounds)]];
 }
 
-static NSString *iconTypeName(PDFTextAnnotationIconType type) {
-    switch (type) {
-        case kPDFTextAnnotationIconComment:      return 
NSLocalizedString(@"Comment", @"Icon type name");
-        case kPDFTextAnnotationIconKey:          return 
NSLocalizedString(@"Key", @"Icon type name");
-        case kPDFTextAnnotationIconNote:         return 
NSLocalizedString(@"Note", @"Icon type name");
-        case kPDFTextAnnotationIconHelp:         return 
NSLocalizedString(@"Help", @"Icon type name");
-        case kPDFTextAnnotationIconNewParagraph: return 
NSLocalizedString(@"New Paragraph", @"Icon type name");
-        case kPDFTextAnnotationIconParagraph:    return 
NSLocalizedString(@"Paragraph", @"Icon type name");
-        case kPDFTextAnnotationIconInsert:       return 
NSLocalizedString(@"Insert", @"Icon type name");
-        default:                                 return 
NSLocalizedString(@"Note", @"Icon type name");
-    }
-}
-
 - (void)windowDidLoad {
     [[self window] setLevel:keepOnTop || forceOnTop ? NSFloatingWindowLevel : 
NSNormalWindowLevel];
     [[self window] setHidesOnDeactivate:keepOnTop || forceOnTop];
@@ -173,13 +160,8 @@
                 [textView setFont:font];
         }
         
-        NSUInteger i, count = [iconTypePopUpButton numberOfItems];
-        for (i = 0; i < count; i++) {
-            NSMenuItem *item = [iconTypePopUpButton itemAtIndex:i];
-            [item setTag:i];
-            [item setTitle:iconTypeName(i)];
-            [item setImage:noteIcons[i]];
-        }
+        for (NSMenuItem *item in [iconTypePopUpButton itemArray])
+            [item setImage:noteIcons[[item tag]]];
         
         SKAutoSizeLabelFields([NSArray arrayWithObjects:iconLabelField, nil], 
[NSArray arrayWithObjects:iconTypePopUpButton, nil], YES);
         

Modified: trunk/Spanish.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/Spanish.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/ru.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/ru.lproj/NoteWindow.strings
===================================================================
(Binary files differ)

Modified: trunk/zh_TW.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/zh_TW.lproj/NoteWindow.strings
===================================================================
(Binary files differ)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to