Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TablePro/Views/Results/DataGridRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AppKit
import Combine

@MainActor
final class DataGridRowView: NSTableRowView {
class DataGridRowView: NSTableRowView {
weak var coordinator: TableViewCoordinator?
var rowIndex: Int = 0

Expand Down
14 changes: 9 additions & 5 deletions TablePro/Views/Structure/StructureRowViewWithMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@

import AppKit

/// Row view providing a context menu tailored to the Structure tab
final class StructureRowViewWithMenu: NSTableRowView {
weak var coordinator: TableViewCoordinator?
var rowIndex: Int = 0
/// Row view providing a context menu tailored to the Structure tab.
/// Inherits selection/emphasis propagation, deleted-row tint, and layer-backing
/// from `DataGridRowView` so structure cells repaint on selection like data-tab cells.
final class StructureRowViewWithMenu: DataGridRowView {
var structureTab: StructureTab = .columns
var isStructureEditable: Bool = true
var isRowDeleted: Bool = false
var isRowDeleted: Bool = false {
didSet {
applyVisualState(RowVisualState(isDeleted: isRowDeleted, isInserted: false, modifiedColumns: []))
}
}
var referencedTableName: String?

var onCopyName: ((Set<Int>) -> Void)?
Expand Down
Loading