Angelo Haller
79bb0057c8
Add new API functions to get and set the visibility of table headers.
...
Added API functions:
uiTableHeaderVisible() to determine whether the table header is visible.
uiTableHeaderSetVisible() to set the visibility of the table header.
Implementation provided for unix, darwin, and windows.
Notes: as darwin does not provide an API for hiding or recreating the
table header I opted for saving a reference and restoring that when the
visibility is set back to true. Setting the header to nil to hide it is
the suggested method for hiding the header according to the docs.
2020-09-15 08:41:44 -05:00
Pietro Gagliardi
a37fdadbd7
Implemented uiControlDestroy() for uiTable on OS X.
2018-07-08 21:22:55 -04:00
Pietro Gagliardi
1700c0ccea
Reworded a TODO.
2018-07-08 21:13:19 -04:00
Pietro Gagliardi
bd685f24f9
Removed a stale TODO; added more TODOs.
2018-06-24 14:48:09 -04:00
Pietro Gagliardi
f3882d6124
Cleaned up color access across platforms.
2018-06-24 14:22:05 -04:00
Pietro Gagliardi
fb67c429d8
Made background color columns only settable at creation time; added a uiTableParams struct for the purpose. This should end edits to uitable.h for now (until we're ready to document it). Now to just clean up all the implementations.
2018-06-24 10:28:41 -04:00
Pietro Gagliardi
74ec21f4c7
Turned the direct method calls on uiTableModel into functions to make the call sites look a bit cleaner. More stuff will go into common/tablemodel.c...
2018-06-23 23:35:42 -04:00
Pietro Gagliardi
9a79eed2ac
Final cleanup, first part: renamed uiTableData to uiTableValue.
2018-06-23 20:19:30 -04:00
Pietro Gagliardi
0a6a781be7
And implemented row background colors and button clicks. OS X implementation done for now!
2018-06-04 22:14:05 -04:00
Pietro Gagliardi
3fa15d5277
Fixed graphical glitches in the OS X Table. Finally. SOMEHOW.
2018-06-04 20:17:15 -04:00
Pietro Gagliardi
2b428d50f6
And fixed build errors. Now I just need to rewrite the tester and try this out...
2018-06-03 23:06:44 -04:00
Pietro Gagliardi
8fc4a9aaf5
Filled in the rest of tablecolumn.m: wrote the NSTableColumn subclasses and implemented the public functions. Let's build and see what breaks!
2018-06-03 22:37:36 -04:00
Pietro Gagliardi
6457e1668f
Rewrote uiTableModelRowChanged() to properly update rows. We can do this now that we have the setup for row updates and reuse, but this is better than calling reloadData anyway (and reloadData doesn't update the row view, but we (almost) do, so...)...
2018-06-03 21:39:49 -04:00
Pietro Gagliardi
247d63be60
Added a table.h and simplified uiprivTableColumn into an abstract interface.
2018-06-03 20:55:08 -04:00
Pietro Gagliardi
da2a4c1e36
Started building back the uiTable implementation.
2018-06-03 19:59:05 -04:00
Pietro Gagliardi
5d57666764
Started writing the new table column code on OS X. This new code will take full advantage of NSTableView features like the reuse cache. Right now we just have the boilerplate for text-only columns.
2018-06-03 13:28:42 -04:00
Pietro Gagliardi
5ac579df35
Fixed table.m to line up with the changes on master that have since been merged in.
2018-05-06 22:13:03 -04:00
Pietro Gagliardi
d441455112
Updated common uipriv names on OS X.
2018-04-18 10:06:43 -04:00
Pietro Gagliardi
ba2e9154f7
Some notes and failed bugfixes on NSProgressIndicators in tables.
2017-06-03 17:59:50 -04:00
Pietro Gagliardi
52d88d3f36
Re-added the table code. Need to patch together everything else, but.
2016-11-27 17:36:11 -05:00
Pietro Gagliardi
e3dec183aa
Started the process of splitting the table code into a separate branch.
2016-11-27 17:34:40 -05:00
Pietro Gagliardi
621e301d5f
Fixed backwards compatibility issues.
2016-06-29 08:53:49 -04:00
Pietro Gagliardi
6804f263d4
And implemented (mostly) the progressbar table parts. I think that'll do for uiTable features now.
2016-06-26 18:19:34 -04:00
Pietro Gagliardi
d7caa150b8
Added checkbox table cells. Now just to add progressbar cells and we'll be good.
2016-06-26 15:36:46 -04:00
Pietro Gagliardi
44a723b314
Added uiTable buttons. Not fully working on OS X.
2016-06-26 13:06:33 -04:00
Pietro Gagliardi
15eca1372e
Fixed cell editing in table on OS X.
2016-06-26 00:44:21 -04:00
Pietro Gagliardi
2f9a38b5fe
Quick bugfix.
2016-06-25 23:06:13 -04:00
Pietro Gagliardi
e0230d73a6
Started editable uiTable elements.
2016-06-25 23:04:49 -04:00
Pietro Gagliardi
49ab4a886f
Added image table cell parts; implemented on OS X
2016-06-25 19:18:25 -04:00
Pietro Gagliardi
4914d0c64c
Added a way to set the text color of a part.
2016-06-23 22:16:25 -04:00
Pietro Gagliardi
9d22d741c6
More TODOs.
2016-06-23 15:06:07 -04:00
Pietro Gagliardi
67e8db9efd
Added row background colors.
2016-06-23 11:29:43 -04:00
Pietro Gagliardi
f02fbd2ecf
Some more API cleanup. Don't separate table cell parts from columns.
2016-06-23 09:56:24 -04:00
Pietro Gagliardi
a57bef13e5
TODO updates.
2016-06-22 23:08:39 -04:00
Pietro Gagliardi
ddd0e82c90
Removed auto layout from scrollviews. Need to do the same to text views too.
2016-06-22 22:58:51 -04:00
Pietro Gagliardi
0ef01e1685
Added some debugging code to help figure out tables.
2016-06-22 13:28:12 -04:00
Pietro Gagliardi
a82835fff3
Fixed uiTable selection colors on OS X.
2016-06-22 01:06:47 -04:00
Pietro Gagliardi
93923bbcb3
More TODOs.
2016-06-22 00:59:04 -04:00
Pietro Gagliardi
1c70edaef1
Fixed initial OS X uiTable. It works!
2016-06-22 00:58:10 -04:00
Pietro Gagliardi
c26f438d3b
Finished the initial implementation of OS X uiTable. Now to test.
2016-06-22 00:40:30 -04:00
Pietro Gagliardi
2f08ec683a
Started the OS X uiTable implementation.
2016-06-21 23:58:17 -04:00