Commit Graph

  • 7336dce8c8 Clarify uiTableModelRowDeleted API documentation. Angelo Haller 2020-09-20 18:21:31 -0500
  • 3f42463bf4 Clarify uiTableModelRowInserted API documentation. Angelo Haller 2020-09-20 18:00:08 -0500
  • 30a5533c34 Add new API functions to get/set table column widths. Angelo Haller 2020-09-18 09:52:16 -0500
  • 5577159fe1 Add table column IDs matching the column add order/index. Angelo Haller 2020-08-09 13:13:38 -0500
  • 844da8d312 Add new API for sort related operations. Angelo Haller 2019-07-08 16:53:50 -0500
  • b673b26f58 Add new type uiSort for sorting related operations. Angelo Haller 2020-09-17 20:47:48 -0500
  • 9dc7e0871c Add table column IDs matching the column add order/index. Angelo Haller 2020-08-09 13:13:38 -0500
  • 79bb0057c8 Add new API functions to get and set the visibility of table headers. Angelo Haller 2020-09-13 21:02:03 -0500
  • 5e13c95fa5
    Update README.md Giorgi Kavrelishvili 2020-09-12 15:05:57 +0400
  • 4b47cb2c5f darwin: Fix uiTable checkbox value not calling SetCellValue(). Angelo Haller 2020-08-27 17:22:06 -0500
  • e3c5a6cb1b Add advanced uiTable test to page17. Angelo Haller 2020-08-27 09:36:25 -0500
  • 772bfad79f Remove early abort for NULL values in uiprivTableModelSetCellValue. Angelo Haller 2020-08-27 14:02:56 -0500
  • b504629cc0 Fix table editing redraw code on all platforms. Angelo Haller 2020-08-25 10:57:04 -0500
  • 5d79460d4a Fix uiTableModel_iter_nth_child. Angelo Haller 2020-08-19 13:17:03 -0500
  • c081c4776f Implement proper iter stamp checks for uiTableModel. Angelo Haller 2020-08-19 13:08:29 -0500
  • afb53d88c8 Merge branch 'master' into remodel Pietro Gagliardi 2020-06-07 21:09:34 -0400
  • 34d1d0ac48
    Merge pull request #500 from L4r0x/table-mem-leak Pietro Gagliardi 2020-06-07 21:09:04 -0400
  • 5ca4ccb30b Merge branch 'master' into remodel Pietro Gagliardi 2020-06-07 21:06:50 -0400
  • 4ee9c47ddc Looks like meson now requires a newer ninja than what ships with whatever version of whatever Debian-derived distribution Azure Pipelines uses. Use ninja from pip instead (it's a special distribution maintained by the SciPy guys, apparently). Pietro Gagliardi 2020-06-07 21:05:16 -0400
  • 6f4610f82a Oops Pietro Gagliardi 2020-06-07 20:58:11 -0400
  • 6b124b6f55 Fix memory leak in uiTable setEditable on unix. Lars Wrenger 2020-06-07 20:41:31 +0200
  • 1c7718ec58 And updated the tests on Windows. It works! Pietro Gagliardi 2020-06-07 14:36:56 -0400
  • 7cdd6ee38c Finished all the necessary bits to implement what little of uiWindow we have now on Windows. Now to fill in the tests. Pietro Gagliardi 2020-06-07 14:10:16 -0400
  • 54567bd4f6 Fix memory leak uiTable setEditable on unix. Lars Wrenger 2020-06-07 10:53:10 +0200
  • 188d9f736f Reintegrated UTF-16 stuff we need immediately and prepared the test suite for it. Pietro Gagliardi 2020-06-06 22:29:06 -0400
  • 3f392d04ce Started migrating uiWindow on Windows. Oh boy it's UTF-16 time! Pietro Gagliardi 2020-06-06 19:27:05 -0400
  • d5c06108d6 Added the missing noinitwrongthread Unix tests. Pietro Gagliardi 2020-06-02 22:52:56 -0400
  • 1dd0372593 Set up a new system for designated static const struct initializers on C++. Also added the missing noinitwrongthread tests on Haiku. Pietro Gagliardi 2020-06-02 22:40:54 -0400
  • c07a7861d4 More TODOs. Pietro Gagliardi 2020-05-31 19:49:59 -0400
  • 860eb0fae3 And implemented uiWindow stuff on Haiku. Pietro Gagliardi 2020-05-31 19:00:03 -0400
  • 218439c215 Did all the uiWindow stuff on GTK+. Pietro Gagliardi 2020-05-31 13:37:56 -0400
  • eb1862afe1 Deduplicated noinitwrongthread.c and its OS-specific files. Pietro Gagliardi 2020-05-30 21:24:58 -0400
  • 80ddb4df8f Rounded out uiWindow and uiDarwinControl error conditions and error condition documentation. Pietro Gagliardi 2020-05-30 21:17:17 -0400
  • d423688def And added (in a somewhat dirty for now way) the noinitwrongthread.c case for uiDarwinControlHandle(). Pietro Gagliardi 2020-05-25 22:42:44 -0400
  • de3598df80 Added tests for the uiWindow methods being called after init/on the right thread. To actually implement those, wrote OS-independent wrappers for the uiWindow functions. This will likely become a pattern throughout libui... Pietro Gagliardi 2020-05-25 22:35:25 -0400
  • 0dd4bec2af Added uiDarwinControlHandle(), and added it to uiWindow, and added uiWindow handle tests (including underlying string tests) to the test suite. Oof. Also I just remembered we're missing tests of these new functions in noinitwrongthread.c. Pietro Gagliardi 2020-05-25 22:13:48 -0400
  • 16d2380adc Added the UTF-8 tests to the uiWindow test. Pietro Gagliardi 2020-05-25 19:48:59 -0400
  • 9bc2cccb2d More work on test/utf8.c. Now to integrate this into test/window.c. Pietro Gagliardi 2020-05-25 15:43:28 -0400
  • aa954e952a Unicode language lawyering. Pietro Gagliardi 2020-05-25 14:19:37 -0400
  • 4c5434d76e More TODOs. Pietro Gagliardi 2020-05-25 02:00:16 -0400
  • c71fbe29c2 Wrote some code for helping with UTF-8 test cases. Pietro Gagliardi 2020-05-25 01:47:19 -0400
  • 2f9aaeeb62 Started writing tests for uiWindow. Pietro Gagliardi 2020-05-24 18:08:48 -0400
  • 0be1273dab Finished our initial implementation of uiWindow on macOS to our previous spec. Now to write tests. Pietro Gagliardi 2020-05-24 17:23:52 -0400
  • ba6f2865df Started reintegrating uiWindow on macOS. I didn't think the implData variable naming through... Also made uiWindow a mere typedef to uiControl; I'll need to copy the handle logic from Windows to make this robust, or something to that effect... Pietro Gagliardi 2020-05-22 22:43:33 -0400
  • a65bbfa057 Started re-adding uiWindow; this just lays down the bare minimum API we're re-adding. Pietro Gagliardi 2020-05-22 18:46:48 -0400
  • 8db1d5474b Included testhooks.h from uipriv.h and test.h, to make things easier to write (we won't have to keep remembering to include it in every file) and to clean up (ditto, but for removal). Pietro Gagliardi 2020-05-22 16:32:04 -0400
  • 6fe7c1ef66 Added a UTF-8 sanitization routine. This will be needed for titles on uiWindow. Reintroduced our copy of the utf library. This should really be part of utf; I'll have to decide whether to test this or not. Made that a TODO for now. I'll be testing bad UTF-8 inputs on each function that takes UTF-8 strings anyway, just to be safe. Now we can finally add uiWindow! Pietro Gagliardi 2020-05-17 22:18:47 -0400
  • 7aeb937b93 Added methods to uiControl to catch and handle parent changing from the perspective of the individual controls. This will be used to implement the transition from not being backed by an OS handle to being backed by one and back on Windows, and should be all we need to start re-adding controls after uiWindow. Pietro Gagliardi 2020-05-13 12:38:44 -0400
  • e01c732760 More documentation notes. Pietro Gagliardi 2020-05-12 17:00:40 -0400
  • 309c1862d5 Set column title on OS X 10.9. Mansour Moufid 2020-05-12 12:25:30 -0400
  • 150fa7eaa6 Renamed testparent to testrunner. (Whatever this became wasn't going to be testparent anyway; that was me thinking ahead to XCTest for macOS testing, which we're almost to the point of...) Pietro Gagliardi 2020-05-12 02:05:30 -0400
  • de35499976 And removed zNEW_test now that everything's integrated back in. Pietro Gagliardi 2020-05-12 01:47:14 -0400
  • 1cf87d5c5e And Haiku. Pietro Gagliardi 2020-05-12 01:46:36 -0400
  • de5205d594 And with Unix. Pietro Gagliardi 2020-05-11 22:37:02 -0400
  • e73c3363ec Reintegrated the Windows control tests. We may be close to getting rid of zNEW_test! Pietro Gagliardi 2020-05-11 22:30:30 -0400
  • 22bcf088e9 And reintegrated the macOS tests. Now for the other platforms. Pietro Gagliardi 2020-05-11 22:19:07 -0400
  • 76eef19a2b Clarified something in test/errors.c. Pietro Gagliardi 2020-05-11 21:03:31 -0400
  • 19a776e446 And integrated the cycle-checking code. Woo it's got tests! Now we need to worry about the OS-side test code, assuming I don't have any more pesky TODOs to fix immediately... Pietro Gagliardi 2020-05-11 21:02:04 -0400
  • b1d733e9a2 Reworked programmer error tests to limit what they catch. The cycle checking tests now correctly crash and burn because the programmer errors they throw are elsewhere. Now to actually hook up the cycle checking! Also added some notes to test/errors.c to explain what we're doing and also fixed the build. Pietro Gagliardi 2020-05-11 20:54:20 -0400
  • fdf9a1245d Wrote the code to check for parent cycles. I'm not going to actually hook it up yet; I want to resolve the one TODO about limiting the scope of the checkProgrammerError() calls first. Pietro Gagliardi 2020-05-11 19:48:02 -0400
  • 1cf4a3df21 Filled in the missing uiControl tests and demoted the non-uiControl requirements to TODOs as I'm not sure how sensible those requirements are. I'll probably bring them back shortly =P Now to implement cycle checking. Pietro Gagliardi 2020-05-11 10:32:17 -0400
  • dfd045b3cc Resolved all the TODOs in test/controls.c I care to right now. I still need to write tests for the other failure conditions that aren't tested yet. Pietro Gagliardi 2020-05-11 00:52:22 -0400
  • 9b1be0c77a More TODO resolution. Pietro Gagliardi 2020-05-10 23:59:09 -0400
  • e71c717b31 Made the test for an invalid control type slightly more robust by not using either 0 or 5 for the fake object (but rather some other value that isn't the constant and that's also conveniently ASCII) and deduplicating the redundant tests. Pietro Gagliardi 2020-05-10 22:00:49 -0400
  • c52656f2c2 Explicitly specified 0 as the invalid control type and stopped using 5 as an invalid control type. Pietro Gagliardi 2020-05-10 21:54:37 -0400
  • 3689d3c96a More TODOs. Pietro Gagliardi 2020-05-10 21:45:33 -0400
  • b710ef6228 Fixed building these tests. Pietro Gagliardi 2020-05-10 21:39:44 -0400
  • 436cb567dc Integrated the contents of the old controls_errors.cpp directly into controls.c. We need to rework some test control stuff to get this to compile, and we'll also need to add more test cases for things in the docs that are not in this file. Pietro Gagliardi 2020-05-10 21:29:03 -0400
  • d584842628 Started reintegrating control tests. Pietro Gagliardi 2020-05-10 17:58:48 -0400
  • e7917500c1 Clarified doc/controls.md a bit, and introduced more requirements. Now to re-introduce its tests. Pietro Gagliardi 2020-05-10 16:24:43 -0400
  • 5d17ee6e70 Finished reintegrating test/noinitwrongthread.c. That was easy! Pietro Gagliardi 2020-05-10 14:57:03 -0400
  • 21a0550076 Reintegrated test/noinitwrongthread.c into the fold. Now to test. Pietro Gagliardi 2020-05-10 14:49:11 -0400
  • f79a0892f2 More TODOs. Pietro Gagliardi 2020-05-10 13:09:00 -0400
  • 1daac120af Switched haiku status_t printing to use a constant; also gave the constant a self-descriptive name for readability. Pietro Gagliardi 2020-05-10 12:55:47 -0400
  • ecb5558d3d And changed the other OSs to define uiprivSysMain/Quit(). Pietro Gagliardi 2020-05-10 12:29:58 -0400
  • 32512c7a5e More TODOs in re previous commit. Okay let's keep going. Pietro Gagliardi 2020-05-10 12:15:21 -0400
  • dca16e82b0 Kicking this can down the road because I need to move on (though I may add more TODOs about it) Pietro Gagliardi 2020-05-10 11:58:17 -0400
  • 3a31401190 Okay, started writing the interleaving tests. I'm starting to feel like this thread-based model of testing isn't the right approach... Pietro Gagliardi 2020-05-10 11:50:05 -0400
  • 4163facc11 Settled most of the remaining non-timer TODOs in test/initmain.c. Just one more (duplicated on two different tests) to go! Pietro Gagliardi 2020-05-09 23:10:58 -0400
  • 87e042a309 Wrote in the remaining programmer error tests in test/initmain.c. Pietro Gagliardi 2020-05-09 22:34:42 -0400
  • c9339e568c Finished converting the rest of the existing tests. Now we just need to flesh out the remaining tests for this file, as well as adding the error tests for uiMain() and uiQuit(). Pietro Gagliardi 2020-05-09 22:14:03 -0400
  • 7a83baefe8 Started reworking all the uiQueueMain() tests to be more robust. Pietro Gagliardi 2020-05-09 21:54:26 -0400
  • bbae57ea29 Refined the init tests slightly, started a new model for the QueueMain tests, and allowed tests to run for now. Pietro Gagliardi 2020-05-09 20:03:51 -0400
  • 73afdaaeb2 Improved the main QueueMain test. Pietro Gagliardi 2020-05-09 16:54:18 -0400
  • c39bd66d38 Cleaned up the init tests. Pietro Gagliardi 2020-05-09 16:35:01 -0400
  • a2f0d5c2cd Implemented the rest of the uiInit() tests. A bit repetitive, but it works. Pietro Gagliardi 2020-05-09 02:38:07 -0400
  • 9fcc4d500c Adapted test/errors.c to test for the lack of a programmer error. Pietro Gagliardi 2020-05-09 02:33:18 -0400
  • 41e62cdce1 Added basic testing for init failing. Now to add support for testing for the lack of a programmer error. Pietro Gagliardi 2020-05-09 02:04:51 -0400
  • 761d3a434a Started to fix init/main tests. Pietro Gagliardi 2020-05-09 01:45:09 -0400
  • 514037ba6c Modified common and the macOS port to exhibit the new init/main behavior. Now to adjust the tests. Pietro Gagliardi 2020-05-09 01:24:40 -0400
  • faaccd0413 Made uiInit() programmer errors actual programmer errors and not normal error returns. This makes the error handling, the documentation, and even the tests much easier, and also makes programmer error handling more consistent. Also defined programmer error cases for uiMain() and uiQuit(). We'll implement all of these next. Pietro Gagliardi 2020-05-09 01:01:40 -0400
  • c0e73c67f4 Okay, I won't even bother with the overview until I figure out how events will work in the final API, because I legitimately cannot decide how to write this. Pietro Gagliardi 2020-05-09 00:35:38 -0400
  • dea7b52605 Revert "Made thread names consistent." Pietro Gagliardi 2020-05-09 00:34:51 -0400
  • 456fb594c0 Made thread names consistent. Pietro Gagliardi 2020-05-09 00:18:06 -0400
  • 7c4d1ae478 More TODOs in doc/init-main.md. I'll decide these later. I want to rewrite this to not use the term 'event' to avoid confusion with libui's own event system, since these are talking about all the events that can happen, not just the ones libui allows you to handle... Pietro Gagliardi 2020-05-08 00:37:56 -0400
  • 69bf71aaa1 Decided to hold off on events for now. I'm still not sure about this design and it's holding me back. Pietro Gagliardi 2020-05-08 00:16:14 -0400
  • 74651b347c More notes. Pietro Gagliardi 2020-05-05 10:46:56 -0400
  • 63bda503dc More notes. Pietro Gagliardi 2020-04-09 20:39:18 -0400
  • 7920e79e18
    entry: uiWindowsSetlectWindowText to use passed arguments. hardcoded values are selecting all text Rustam Gamidov 2020-04-09 14:30:02 +0300
  • 0726450661
    Merge pull request #4 from RustamGamidov/set-focus Rustam 2020-04-09 11:14:04 +0300