Commit Graph

35 Commits

Author SHA1 Message Date
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
Lars Wrenger 6b124b6f55 Fix memory leak in uiTable setEditable on unix.
GtkTreePath was not freed correctly.
2020-06-07 20:41:31 +02:00
Lars Wrenger 54567bd4f6 Fix memory leak uiTable setEditable on unix.
The tree_model_path was not freed correctly.
2020-06-07 17:13:36 +02:00
Pietro Gagliardi e0ca00e55b Resolved confusion about the terminology of strides in uiImageAppend(). Also prevents overallocation on some platforms. Thanks to @mischnic and @msink for spotting this. Update #402. 2018-08-05 18:39:29 -04:00
Pietro Gagliardi 6812cab625 Implemented uiControlDestroy() for uiTable on GTK+. 2018-07-08 21:50:16 -04:00
Pietro Gagliardi 5d9928028f Wrote the initial version of the indeterminate progressbar in tables code on GTK+. VirtualBox is giving me issues when any indeterminate progressbar (real or table-based) is up; I wonder what's going on. 2018-06-24 18:23:25 -04:00
Pietro Gagliardi acb40964f3 Deduplicated editable logic across platforms. 2018-06-24 11:41:19 -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 72c7c05f04 Fixed up AddColumn parameter and private fields names; made them consistent. 2018-06-24 09:52:01 -04:00
Pietro Gagliardi 4dbf1994a6 Deduplicated the default text column parameters across platforms. 2018-06-24 00:45:54 -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 7a40bdfb3f Amazingly, it worked the first time! Just a quick logic error here. 2018-06-07 22:30:43 -04:00
Pietro Gagliardi 66ca3315cf Fixed compile errors. Now for runtime errors, if any! 2018-06-07 22:25:17 -04:00
Pietro Gagliardi d6ac22a20a Finished rewriting table.c. Now to test. 2018-06-07 21:50:38 -04:00
Pietro Gagliardi b7151388e3 Started rewriting the column constructors. 2018-06-05 22:47:11 -04:00
Pietro Gagliardi 18d8a8fe22 Converted column functions and editable handlers on GTK+. 2018-06-05 22:00:54 -04:00
Pietro Gagliardi 75a5a050cb Split the uiTableModel GTK+ code into its own file, tablemodel.c. 2018-06-04 23:46:30 -04:00
Pietro Gagliardi 94fa10b35e Started rewriting GTK+ uiTable. Did uiTableModel first. 2018-06-04 23:39:52 -04:00
Pietro Gagliardi 0b8e86e4f8 Started applying new uipriv names to table.c. Let's let the compiler tell us what we missed. 2018-05-12 13:59:22 -04:00
Pietro Gagliardi 6507a0d3a1 Updated common uipriv names on Unix. 2018-04-18 10:17:41 -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 6b0028d084 Added uiTable value setting and events on GTK+. 2016-06-28 22:36:56 -04:00
Pietro Gagliardi f484f568f6 Finished up and plugged in cellrendererbutton. 2016-06-28 13:09:44 -04:00
Pietro Gagliardi 8b04f2062a More GTK+ uiTable work. 2016-06-27 19:12:08 -04:00
Pietro Gagliardi cf3182f4d2 Put images on uiTables. We're going to have to swizzle on OS X after all :( 2016-06-27 16:11:15 -04:00
Pietro Gagliardi af0dbd3a0e Fixed a bunch of bugs in GTK+ table.c. 2016-06-27 12:24:14 -04:00
Pietro Gagliardi 40e943eb43 Fixed compile issues. Now to fix other issues. Yay! 2016-06-27 12:01:36 -04:00
Pietro Gagliardi f7e5c7dd25 Finished the initial implemenetation of uiTable on GTK+. 2016-06-27 09:30:22 -04:00
Pietro Gagliardi f354d48bfd Started the GTK+ implementation of uiTable. 2016-06-26 23:17:34 -04:00
Pietro Gagliardi 5e29d07d20 Moved all the table stuff out of the way. I need to decide what I'm going to do with it. 2015-11-16 10:52:19 -05:00
Pietro Gagliardi 5d26b9b059 Finished the uiTable test and fixed errors. 2015-10-19 10:52:36 -04:00
Pietro Gagliardi 056db88de0 More uiTable work. I'm not too happy anymore... 2015-10-18 18:55:06 -04:00
Pietro Gagliardi 4577cb79a1 Started the GTK+ implementation of uiTable and added uiTableSubscriptions. This is a mess already :D 2015-10-18 13:59:38 -04:00