Commit Graph
631 Commits
Author SHA1 Message Date
David Richardson d2c365ef21 AppKit: Divide CPTableView into core file and category files
- Move class, instance variables, initialization and display attributes to CPTableViewCore.j

- Move columns, selection, layout, views, drawing, tracking, dragging, responder and editing methods to categories, one file each

- Move existing data source, delegate, bindings and coding categories to files of their own

- Move _CPTableRowView and CPTableCellView to files of their own

- Import all files from CPTableView.j

- Make data source and delegate flag constants global for use across files
2026-11-16 10:14:00 -06:00
David Richardson b4070c19e0 AppKit: Stop theme state overriding table background; set source-list background
- Remove CPTableView theme-state overrides of background colour

- Take default background from theme background-color in current state, else controlBackgroundColor

- Apply default background in layout; treat nil colour as default background

- Archive only table view's own background colour through CPView -_archivedBackgroundColor

- Set _sourceListBackgroundColor with source-list highlight style, as in AppKit

- Give Aristo3 table view background A3CPColorTableRow in place of white

- Add tests for own, theme, default, source-list and decoded backgrounds
2026-11-12 13:51:42 -06:00
David Richardson e62c66f26c AppKit: Fix missing declarations and DOM guards in CPTableView and CPOutlineView
* CPTableView.j: Add forward @class declaration for CPTableView preceding _CPTableRowView.

* CPOutlineView.j:
  - Import CPCompatibility.j and declare the global document reference.
  - Replace partial DOM guards in -[CPDisclosureButton drawRect:] with an early return.
2026-11-02 15:57:00 -06:00
David Richardson 49f37fec94 Merge main-testing into aristo3-staging
Regression tests and their supporting framework fixes are incorporated.
Remaining test failures identify Aristo3 defects.

Conflict resolutions:

* CPButtonBar: Retain Aristo3 decoding and observe the hidden state of decoded buttons.
* CPPopUpButton: Retain the Aristo3 bezel style and clear the inherited button value.
2026-11-02 09:26:11 -06:00
David Richardson 9944659776 AppKit: Protect behaviour of decoded views and add regression tests
Ensure decoded views are correct by verifying they retain their connections and
respond as before archiving.

A decoded table no longer raises, and decoded button bars, tab views, text
fields and outlines retain their observers, selection, delegates and data source
methods.

* CPButtonBar: Observe the hidden state of decoded buttons.

* CPOutlineView: Decode the data source and delegate through their setters.

* CPTableView: Set the data source and delegate after _init during decoding.

* CPTabView: Select the archived tab view item during decoding, before the
  delegate is set.

* CPTextField: Archive the delegate.

* CPViewDecodedBehaviorTest: Verifies connections, the view hierarchy, and the
  behaviour of objects each class creates or observes after decoding.
2026-10-31 22:02:28 -06:00
daboe01 09c855daca fixed: preproc. leftovers 2026-10-25 17:41:02 +01:00
David Richardson adec5f6c04 AppKit: convert instance-state macros to private methods
- CPScrollView _shouldShowCornerView, CPSplitView
  _maybePostWillResizeNotification/_maybePostDidResizeNotification/
  _didSuppressResizeNotifications/_setResizeNotificationsSuppressed:,
  CPTableView _numberOfColumns/_updateColumnRangesIfNecessary/
  _fullRowHeight/_rowBottomOfHeightInfo:/_hasVariableRowHeights,
  CPMenuItem _decodeValueForKey:defaultValue:coder:/
  _encodeValue:forKey:ifNotEqualTo:coder:, CALayer
  _adjustContentsZIndexForLayer: and DOM: macros that referenced
  ivars, self or the enclosing method's coder become private instance
  methods; call sites rewritten from macro form to message form
2026-10-06 17:42:56 -06:00
daboe01 1878967da1 fixed: CPOutlineView and CPTableView corner cases 2026-08-11 19:11:36 +02:00
daboe01 69c8c3d0a2 Merge remote-tracking branch 'upstream/main' into Aristo3 2026-07-25 19:26:39 +02:00
David Richardson 1a9a42ff54 Replace #pragma mark with // MARK:
Replace objc directive with native Javascript version // MARK: to facilitate elimination of preproccsing pass.
2026-07-21 15:15:53 -06:00
daboe01 f06bdbb14f Merge remote-tracking branch 'upstream/main' into Aristo3 2026-05-19 18:53:15 +02:00
daboe01 18b2a668c5 Merge pull request #3213 from daboe01/double-action-tableview
new: doubleClickTarget and doubleClickArgument for CPTableView
2026-04-09 22:32:00 +02:00
daboe01 078ab40d99 Merge remote-tracking branch 'upstream/main' into Aristo3 2026-04-08 15:26:43 +02:00
daboe01 57987b6f67 Fixed: CPTableView bug where removing a column breaks internal state 2026-04-06 17:26:38 +02:00
daboe01 480917eeab new: doubleClickTarget and doubleClickArgument for CPTableView 2026-04-06 13:15:55 +02:00
daboe01 f34cbbdf29 New: toolTips for CPTableView and CPOutlineView 2026-04-04 15:00:53 +02:00
daboe01 e779198a80 Merge remote-tracking branch 'upstream/main' into Aristo3 2026-03-15 09:01:42 +01:00
daboe01 b77a374f48 formatting 2026-03-15 08:57:06 +01:00
daboe01 6671d371e9 fixed: treeview binding issues 2026-03-15 08:51:03 +01:00
daboe01 915047b996 fixed: scrollview white border view in HUD 2026-03-07 11:22:41 +01:00
daboe01 7eb042d985 fixed: missing dom protection 2026-02-09 19:53:01 +01:00
daboe01 dc4aa545f0 fixed: dom error 2026-02-09 19:48:46 +01:00
daboe01 b70abb730d fixed: unfocussed selection color in column 2026-02-09 19:36:44 +01:00
daboe01 36a2cc9a62 scroll out / -in fr fix 2026-02-09 18:27:20 +01:00
daboe01 113be1254e hud fix 2026-02-09 08:26:40 +01:00
daboe01 674a03dc23 fixed: table column dragging when selected 2026-02-08 22:36:22 +01:00
daboe01 9656985dbd fixed: animation header glitch 2026-02-08 20:46:07 +01:00
daboe01 847a9c2b98 new: column-selection 2026-02-08 19:30:06 +01:00
daboe01 ce78d098ec group row fix 2026-02-08 19:03:09 +01:00
daboe01 18c1866db7 fixed: zebra fill 2026-02-08 17:11:17 +01:00
daboe01 383fb9d704 fixed: missing dom protection 2026-02-08 14:26:58 +01:00
daboe01 7f281d0442 restored: group row support 2026-02-08 12:20:48 +01:00
daboe01 2d76a03b01 new: dom based tableview background 2026-02-08 09:29:29 +01:00
daboe01 433e6606b6 new: CPBox in A3 test app 2026-01-21 07:36:00 +01:00
daboe01 bc88af047e fixed: hud for tableviews 2026-01-20 22:49:43 +01:00
Didier Korthoudt 8c08803fd0 030-CPTableView 2020-08-30 09:47:21 +02:00
Martin Carlberg 7dc77ed609 Fixed: Make sure we handle undefined when testing for nil values (#2862) 2020-01-31 13:43:58 +01:00
Didier Korthoudt eb27d24923 Fixed: CPTableView-visual-problem(#2755) 2018-08-21 09:08:16 +02:00
Didier Korthoudt 3d15844f7c CPTableView-bad-selection-color (#2756) 2018-08-20 12:55:35 +02:00
Didier Korthoudt 62ed21b316 Fixed: Before this PR, when dragging a partially masked column, the dragged view was truncated (#2754) 2018-08-20 12:54:17 +02:00
Didier Korthoudt e4f87bd805 CPTableView-viewWillMoveToWindow-fix 2018-08-08 22:06:42 +02:00
Didier Korthoudt 27883c5beb FIXED: This fixes problems with default theme attributes values in CPTableView (#2732) 2018-06-21 16:47:21 +02:00
Didier Korthoudt bbb5aea77d FIXED: CPTableView was using hard coded values instead of theme attributes (#2698) 2018-05-07 19:54:46 +02:00
daniel e61aebb55d Formatting: minor formatting changes for CPTableView.j
Added missing semi-colon on line 3763.
Removed the redundant `var` keyword on line 4910
Removed the second redundant variable `CPTableViewHeaderViewKey` which
was declared with the same name and value twice in the same variable
block.
2018-04-04 15:06:00 -07:00
cacaodev f5eb1158db Fix issue 2549: table rows where invisible when dragging. 2017-07-28 21:35:24 +02:00
cacaodev 34769da9cc FIXED: tableview:didDragTableColumn: was never sent
With manual test.
2017-02-02 09:36:48 +01:00
Alexander Ljungberg ef1d6c78ac Merge branch 'master' of github.com:cappuccino/cappuccino 2016-10-30 21:06:25 +00:00
Alexander Ljungberg f36406af08 Text tweak. 2016-10-30 21:05:54 +00:00
daboe01 bb2a9fe180 formatting 2016-07-24 17:45:26 +02:00
daboe01 e9c7c7ee4c fixed: editing state was deleted after committing a non-text-control 2016-07-24 17:43:45 +02:00