Commit Graph

3575 Commits

Author SHA1 Message Date
Pietro Gagliardi 8a0ca54e93 Fixed constraint issues in tablecolumn.m for text-containing columns. I guess that one constraint function needs to go... 2018-06-04 20:03:05 -04:00
Pietro Gagliardi 2cfbb0144e Fixed segfaults. Now to fix logic errors. (Technically one of the two changes here is a logic error too.) 2018-06-04 18:17:05 -04:00
Pietro Gagliardi 3bb050777b Started converting the test program. First column works fine, second segfaults. 2018-06-03 23:23:48 -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 8ee5c61fe8 And added button columns. Now to start writing the rest of the uiTable glue. 2018-06-03 19:21:01 -04:00
Pietro Gagliardi b74b987fff Added progressbar columns. 2018-06-03 18:34:29 -04:00
Pietro Gagliardi 54ca41afb6 Moved common/table.c out of the way for now; it's not relevant with the proposed colum changes and definite data changes. 2018-06-03 17:57:17 -04:00
Pietro Gagliardi c04f3d3fbe Adjusted tablecolumn.m to use the new data functions. 2018-06-03 17:39:02 -04:00
Pietro Gagliardi 43b1a46669 Wrote the common table data functions. 2018-06-03 17:28:54 -04:00
Pietro Gagliardi 705bf2d9bf Planned a new system for transferring data between tables and models, based on uiAttribute. 2018-06-03 17:18:01 -04:00
Pietro Gagliardi 9c519f1bfa Added checkboxes and consolidated all the columns with or without text. Progressbars and buttons will be separate object types. I do need to redo the data-passing method, and now that there's uiAttribute I can just model a better one off that. 2018-06-03 16:50:35 -04:00
Pietro Gagliardi d1b7d14a82 Added image columns. 2018-06-03 14:13:32 -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 2f83428ebe Trying out a new uiTable API. This will make implementations easier, and figures that very few people need dynamic control over table column layout or contents. 2018-06-03 12:26:23 -04:00
Pietro Gagliardi 7911ed0e81 Merge branch 'master' into table 2018-05-31 08:21:21 -04:00
Pietro Gagliardi cda991b7e2
Merge pull request #376 from mischnic/datetime-unreg
Fix uiDateTimePicker-related crashes in test on OS X: they were not being destroyed properly.
2018-05-31 08:20:16 -04:00
Niklas Mischkulnig 1b4c898a0c Fix datetimepicker crash 2018-05-31 13:03:19 +02:00
Pietro Gagliardi 1cb0e9046f Made the button cell renderer draw and size much more nicely than it did before, fixing a few bugs along the way. 2018-05-30 22:48:46 -04:00
Pietro Gagliardi 0907ea47bd Merge branch 'master' into table 2018-05-30 08:53:40 -04:00
Pietro Gagliardi 2f0e6e974b And updated the README. 2018-05-30 08:52:24 -04:00
Pietro Gagliardi 61dbbdbf96 Merge branch 'master' into table 2018-05-30 08:50:40 -04:00
Pietro Gagliardi 1530192673 Finally got around to merging ANNOUNCE and Changelog into NEWS. 2018-05-30 08:49:24 -04:00
Pietro Gagliardi 32840cd88c Merge branch 'master' into table 2018-05-30 08:07:19 -04:00
Pietro Gagliardi 5bd78c1932 Merge branch 'master' of github.com:andlabs/libui 2018-05-30 08:06:39 -04:00
Pietro Gagliardi 9020b248e2
Merge pull request #372 from zhaozg/patch-1
Add another libui bare bindings for lua
2018-05-30 08:06:11 -04:00
Pietro Gagliardi 0e7f866531 More bindings. 2018-05-30 08:05:16 -04:00
Pietro Gagliardi 374eed7432 Removed the facilities for printing an int as text; this was causing the tester to crash in a weird way on OS X (through NSApplication _crashOnException: without telling me what that exception was) and I didn't intend on this part type to be used in this way anyway... 2018-05-29 20:27:31 -04:00
Pietro Gagliardi a7fe45b8a5 Removed carriage returns. 2018-05-29 20:26:48 -04:00
Pietro Gagliardi 32a83241cb
Merge pull request #361 from bcampbell/table-comctl
Add minimal uiTable implementation for Windows.

🎉
2018-05-29 20:00:22 -04:00
Ben Campbell b3b21196a1 minor windows table tweaks 2018-05-29 18:17:10 +12:00
Pietro Gagliardi cb5b6bf924 Merge branch 'master' into table 2018-05-28 13:39:11 -04:00
Pietro Gagliardi c3be9f221c Fixed a typo that led to CRLF bugs in uiMultilineEntry on Windows. Thanks to @mimecorg for spotting it.
Update #359
2018-05-28 13:38:36 -04:00
Ben Campbell ba13227bed further style consistency tweaks 2018-05-28 20:26:07 +12:00
George Zhao bd79a2fa8f
Update README.md
Add another libui bare bindings for lua
2018-05-27 14:52:21 +08:00
Ben Campbell 4246ae5549 assorted consistancy cleanup 2018-05-22 22:53:25 +12:00
Ben Campbell 7402dec266 remove superfluous #include <vector> 2018-05-22 20:41:49 +12:00
Ben Campbell fc2ea17bb8 Add minimal uiTable implementation for windows
This uses the win32 common controls listview to implement uiTable.
There are limitations:
 - It supports only a single TextPart per column.
 - ImagePart, CheckboxPart and ProgessBarPart are not implemented.
 - There is no support for cell coloring.
 - Cell editing is not implemented.
Some of these will be very hard to support using the standard
common control listview, and probably require an entire custom
listview.
2018-05-22 20:41:49 +12:00
Pietro Gagliardi 0da7b3fceb More bindings. Thanks to anonymous-coward on reddit. 2018-05-21 20:10:46 -04:00
Pietro Gagliardi 6c1a7b2b9b Cleared up exactly where libui stands. I didn't realize people were expecting more out of it than I let out, because I thought I was letting out exactly what I promised, when I didn't. Thanks to Bloodmeow (I think that was what their username was...). 2018-05-21 10:44:10 -04:00
Pietro Gagliardi 483c037d41 Merge branch 'master' of github.com:andlabs/libui 2018-05-21 08:41:24 -04:00
Pietro Gagliardi f55d34636b
Merge pull request #369 from msink/kotlin-libui
Kotlin/Native bindings
2018-05-21 08:40:27 -04:00
Mike Sinkovsky bb3066e3f5 Kotlin/Native bindings 2018-05-21 16:10:12 +05:00
Pietro Gagliardi cc477d58f8 More notes. 2018-05-20 12:55:50 -04:00
Pietro Gagliardi 919ad1f16e More Rust bindings. This list is getting nuttily formatted; need to improve it... 2018-05-20 10:20:19 -04:00
Pietro Gagliardi 422ec83162 Okay, so any future changes will require super complex cmd.exe fuckery combined with yaml's bizarre, complex quoting rules, sooooo nope.avi (I'll try again after spliting all the appveyor stuff into batch files, but at this point I'm tempted to switch to VSTS, which I can pay for). 2018-05-18 09:19:53 -04:00
Pietro Gagliardi cfb51cb1b9 And let's try again for MSVC. 2018-05-18 09:08:14 -04:00