Revision: 27344
          http://sourceforge.net/p/bibdesk/svn/27344
Author:   hofman
Date:     2022-04-02 17:30:21 +0000 (Sat, 02 Apr 2022)
Log Message:
-----------
rename identifier for cell view using an image view

Modified Paths:
--------------
    trunk/bibdesk/BDSKMainTableView.h
    trunk/bibdesk/BDSKMainTableView.m
    trunk/bibdesk/Base.lproj/BibDocument.xib

Modified: trunk/bibdesk/BDSKMainTableView.h
===================================================================
--- trunk/bibdesk/BDSKMainTableView.h   2022-04-02 17:14:01 UTC (rev 27343)
+++ trunk/bibdesk/BDSKMainTableView.h   2022-04-02 17:30:21 UTC (rev 27344)
@@ -94,7 +94,7 @@
 
 typedef NS_ENUM(NSInteger, BDSKColumnType) {
     BDSKColumnTypeText,
-    BDSKColumnTypeURL,
+    BDSKColumnTypeImage,
     BDSKColumnTypeLinkedFile,
     BDSKColumnTypeRating,
     BDSKColumnTypeBoolean,

Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m   2022-04-02 17:14:01 UTC (rev 27343)
+++ trunk/bibdesk/BDSKMainTableView.m   2022-04-02 17:30:21 UTC (rev 27344)
@@ -195,7 +195,7 @@
 - (BDSKColumnType)columnTypeForField:(NSString *)colName {
     BDSKColumnType type = 0;
     if([colName isURLField] || [self cellImageForField:colName])
-        type = BDSKColumnTypeURL;
+        type = BDSKColumnTypeImage;
     else if([colName isEqualToString:BDSKLocalFileString] || [colName 
isEqualToString:BDSKRemoteURLString])
         type = BDSKColumnTypeLinkedFile;
     else if([colName isRatingField])
@@ -221,7 +221,7 @@
     // these correspond to the identifiers of the table cell views in the NIB
     static NSString *columnTypeIdentifiers[] = {
         @"text",
-        @"url",
+        @"image",
         @"linkedFile",
         @"rating",
         @"boolean",
@@ -252,7 +252,7 @@
     else
         [headerCell setStringValue:[self headerTitleForField:identifier]];
     
-    if (columnType == BDSKColumnTypeURL) {
+    if (columnType == BDSKColumnTypeImage) {
         [tc setWidth:fmax(16.0, fmax([self rowHeight], ceil([headerCell 
cellSize].width)))];
     } else if (columnType == BDSKColumnTypeText || columnType == 
BDSKColumnTypeRelevance) {
         [tc setWidth:fmax(100.0, ceil([headerCell cellSize].width))];

Modified: trunk/bibdesk/Base.lproj/BibDocument.xib
===================================================================
--- trunk/bibdesk/Base.lproj/BibDocument.xib    2022-04-02 17:14:01 UTC (rev 
27343)
+++ trunk/bibdesk/Base.lproj/BibDocument.xib    2022-04-02 17:30:21 UTC (rev 
27344)
@@ -89,7 +89,7 @@
                                             <outlet property="textField" 
destination="eQ6-je-G23" id="fDX-Gb-olX"/>
                                         </connections>
                                     </tableCellView>
-                                    <tableCellView identifier="url" 
id="zWR-x8-0Qs">
+                                    <tableCellView identifier="image" 
id="zWR-x8-0Qs">
                                         <rect key="frame" x="11" y="20" 
width="97" height="17"/>
                                         <autoresizingMask 
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                         <subviews>

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to