Commit Graph

3901 Commits

Author SHA1 Message Date
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
Niklas Mischkulnig 3e5f4b3674 Fix area setSize macOS 2018-06-01 15:45:55 +02:00
Niklas Mischkulnig 773856fa90 Fix uiAttributedStringDelete 2018-05-31 17:49:44 +02:00
Pietro Gagliardi c4ce1072c7 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-31 08:21:40 -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 246abee8a4 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-30 08:50:58 -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 bba2d30362 Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-30 08:07:40 -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 039a9db2e5 Wrapped the processing in a class and collapsed consecutive blank lines. 2018-05-28 22:57:52 -04:00
Pietro Gagliardi d4517fab84 And changed hresultwrap to only write to the output file in main(). 2018-05-28 22:50:00 -04:00
Pietro Gagliardi b590482ccb Expanded the tool input slightly and (finally) changed hresultwrap.cpp to use WriteCloser. 2018-05-28 22:46:30 -04:00
Pietro Gagliardi 7e2c505b1d Merge branch 'master' into windows-namespace-and-hresult-cleanup 2018-05-28 13:39:36 -04: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
Pietro Gagliardi ea5bd79b89 Made WINAPI (stdcall) the default calling convention. Hopefully this will opt us into some compiler optimizations... hopefully. 2018-05-27 20:44:34 -04:00
Pietro Gagliardi eef179c1e5 And added function bodies to hresultwrap. 2018-05-27 20:38:10 -04:00
Pietro Gagliardi a1a20837cd And cleaned up the item class, turning it into a Function class. 2018-05-27 20:17:35 -04:00
Pietro Gagliardi 620b03f442 And fixed the remaining errors, including runtime erorrs. It works! 2018-05-27 19:48:39 -04:00
Pietro Gagliardi cf945367a3 Rewrote hresultwrap.cpp with the new changes, fixing some build errors too. Now to fix the remaining build errors. 2018-05-27 16:32:33 -04:00
Pietro Gagliardi 4a7e7ed983 Rewrote the library to use ByteSlice. 2018-05-27 15:50:00 -04:00
Pietro Gagliardi 8231bd337f Built a new ByteSlice interface in lib.cpp that will keep shuffling the bytes around much nicer. I'll change everything to use it next. 2018-05-27 15:36:16 -04:00
George Zhao bd79a2fa8f
Update README.md
Add another libui bare bindings for lua
2018-05-27 14:52:21 +08:00
Pietro Gagliardi 481e1e30bb And updated hresultwrap to produce signatures. Man this is so un-C++-y it actually feels like I'm doing it wrong... 2018-05-26 20:09:16 -04:00