Revision: 14651
http://sourceforge.net/p/skim-app/code/14651
Author: hofman
Date: 2024-11-06 17:27:25 +0000 (Wed, 06 Nov 2024)
Log Message:
-----------
use accessor for all table views
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-11-06 16:26:06 UTC (rev 14650)
+++ trunk/SKMainWindowController.m 2024-11-06 17:27:25 UTC (rev 14651)
@@ -732,16 +732,16 @@
tableColumn = [tv tableColumnWithIdentifier:PAGE_COLUMNID];
cell = [tableColumn dataCell];
labelWidth = 0.0;
+ if (firstLabel) {
+ [cell setStringValue:firstLabel];
+ labelWidth = fmin(ceil([cell cellSize].width),
MAX_PAGE_COLUMN_WIDTH_1);
+ }
if (label) {
[cell setStringValue:label];
- labelWidth = fmin(ceil([cell cellSize].width),
MAX_PAGE_COLUMN_WIDTH);
+ labelWidth = fmax(labelWidth, fmin(ceil([cell cellSize].width),
MAX_PAGE_COLUMN_WIDTH));
}
if ([tv headerView])
labelWidth = fmax(labelWidth, fmin(ceil([[tableColumn headerCell]
cellSize].width), MAX_PAGE_COLUMN_WIDTH));
- if (firstLabel) {
- [cell setStringValue:firstLabel];
- labelWidth = fmax(labelWidth, fmin(ceil([cell cellSize].width),
MAX_PAGE_COLUMN_WIDTH_1));
- }
[tableColumn setMinWidth:labelWidth];
[tableColumn setMaxWidth:labelWidth];
[tableColumn setWidth:labelWidth];
@@ -818,7 +818,7 @@
[rightSideController.noteOutlineView reloadData];
[leftSideController.thumbnailTableView reloadTypeSelectStrings];
- [self
updatePageColumnWidthForTableViews:@[leftSideController.thumbnailTableView,
rightSideController.snapshotTableView, leftSideController.tocOutlineView,
rightSideController.noteOutlineView, leftSideController.findTableView,
leftSideController.groupedFindTableView]];
+ [self updatePageColumnWidthForTableViews:[[leftSideController tableViews]
arrayByAddingObjectsFromArray:[rightSideController tableViews]]];
PDFOutline *outlineRoot = [[pdfView document] outlineRoot];
@@ -875,7 +875,7 @@
[[self snapshots] makeObjectsPerformSelector:@selector(updatePageLabel)];
- [self updatePageColumnWidthForTableViews:[NSArray
arrayWithObjects:leftSideController.thumbnailTableView,
rightSideController.snapshotTableView, leftSideController.tocOutlineView,
rightSideController.noteOutlineView, leftSideController.findTableView,
leftSideController.groupedFindTableView, nil]];
+ [self updatePageColumnWidthForTableViews:[[leftSideController tableViews]
arrayByAddingObjectsFromArray:[rightSideController tableViews]]];
}
#pragma mark Notes and Widgets
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit