Pietro Gagliardi
69dbafe6f2
Oops forgot to commit this before midnight: started work on uiWindow children.
2022-07-26 00:18:37 -04:00
Pietro Gagliardi
8b3e2665ed
Good night, friend.
...
I meant to do this a year ago, but didn't, because the pandemic rotted my brain. I'm sorry.
This project is probably not big enough for something like this, but not doing this would be irresponsible, given the circumstances.
2022-07-21 20:42:13 -04:00
Pietro Gagliardi
4057d3e0d3
More notes.
2021-06-16 09:25:04 -04:00
Pietro Gagliardi
f6525082a9
More notes.
2021-05-27 20:26:58 -04:00
Pietro Gagliardi
320c92b8eb
More notes. I need to work on this again.
2021-05-26 12:27:21 -04:00
Pietro Gagliardi
8f8171550d
More notes.
2021-05-22 09:22:19 -04:00
Pietro Gagliardi
7c7da65231
More notes.
2021-02-02 12:02:12 -05:00
Pietro Gagliardi
fda1446114
More notes. Yeah, I didn't get to finish remodel by the end of the year; sorry.
2020-12-31 22:59:28 -05:00
Pietro Gagliardi
3005c00376
More notes.
2020-11-23 11:50:25 -05:00
Pietro Gagliardi
76879e7c82
More notes.
2020-11-18 01:04:30 -05:00
Pietro Gagliardi
81fb4ea7f2
More notes.
2020-10-05 23:33:24 -04:00
Pietro Gagliardi
47f2bffd8a
Merge branch 'master' into remodel
...
Conflicts:
windows/winapi.hpp
(manually resolved by elaborating comment)
2020-10-02 10:30:58 -04:00
Pietro Gagliardi
f3982618e7
Merge pull request #517 from timgates42/bugfix_typo_platform
...
docs: Fix simple typo, plaform -> platform
2020-10-02 10:29:32 -04:00
Tim Gates
ce8c2dc22c
docs: Fix simple typo, plaform -> platform
...
There is a small typo in windows/_rc2bin/winapi.hpp, windows/winapi.hpp.
Should read `platform` rather than `plaform`.
2020-09-30 07:05:44 +10:00
Pietro Gagliardi
afb53d88c8
Merge branch 'master' into remodel
2020-06-07 21:09:34 -04:00
Pietro Gagliardi
34d1d0ac48
Merge pull request #500 from L4r0x/table-mem-leak
...
Fix memory leak in uiTable setEditable on unix.
2020-06-07 21:09:04 -04:00
Pietro Gagliardi
5ca4ccb30b
Merge branch 'master' into remodel
2020-06-07 21:06:50 -04:00
Pietro Gagliardi
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).
2020-06-07 21:05:16 -04:00
Pietro Gagliardi
6f4610f82a
Oops
2020-06-07 20:58:11 -04: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
Pietro Gagliardi
1c7718ec58
And updated the tests on Windows. It works!
2020-06-07 14:36:56 -04:00
Pietro Gagliardi
7cdd6ee38c
Finished all the necessary bits to implement what little of uiWindow we have now on Windows. Now to fill in the tests.
2020-06-07 14:10:16 -04: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
188d9f736f
Reintegrated UTF-16 stuff we need immediately and prepared the test suite for it.
2020-06-06 22:30:50 -04:00
Pietro Gagliardi
3f392d04ce
Started migrating uiWindow on Windows. Oh boy it's UTF-16 time!
2020-06-06 19:27:05 -04:00
Pietro Gagliardi
d5c06108d6
Added the missing noinitwrongthread Unix tests.
2020-06-02 22:52:56 -04:00
Pietro Gagliardi
1dd0372593
Set up a new system for designated static const struct initializers on C++. Also added the missing noinitwrongthread tests on Haiku.
2020-06-02 22:40:54 -04:00
Pietro Gagliardi
c07a7861d4
More TODOs.
2020-05-31 19:49:59 -04:00
Pietro Gagliardi
860eb0fae3
And implemented uiWindow stuff on Haiku.
2020-05-31 19:00:03 -04:00
Pietro Gagliardi
218439c215
Did all the uiWindow stuff on GTK+.
2020-05-31 13:37:56 -04:00
Pietro Gagliardi
eb1862afe1
Deduplicated noinitwrongthread.c and its OS-specific files.
2020-05-30 21:24:58 -04:00
Pietro Gagliardi
80ddb4df8f
Rounded out uiWindow and uiDarwinControl error conditions and error condition documentation.
2020-05-30 21:17:17 -04:00
Pietro Gagliardi
d423688def
And added (in a somewhat dirty for now way) the noinitwrongthread.c case for uiDarwinControlHandle().
2020-05-25 22:42:44 -04:00
Pietro Gagliardi
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...
2020-05-25 22:35:25 -04:00
Pietro Gagliardi
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.
2020-05-25 22:13:48 -04:00
Pietro Gagliardi
16d2380adc
Added the UTF-8 tests to the uiWindow test.
2020-05-25 19:48:59 -04:00
Pietro Gagliardi
9bc2cccb2d
More work on test/utf8.c. Now to integrate this into test/window.c.
2020-05-25 15:43:28 -04:00
Pietro Gagliardi
aa954e952a
Unicode language lawyering.
2020-05-25 14:19:37 -04:00
Pietro Gagliardi
4c5434d76e
More TODOs.
2020-05-25 02:00:16 -04:00
Pietro Gagliardi
c71fbe29c2
Wrote some code for helping with UTF-8 test cases.
2020-05-25 01:47:19 -04:00
Pietro Gagliardi
2f9aaeeb62
Started writing tests for uiWindow.
2020-05-24 18:08:48 -04:00
Pietro Gagliardi
0be1273dab
Finished our initial implementation of uiWindow on macOS to our previous spec. Now to write tests.
2020-05-24 17:23:52 -04:00
Pietro Gagliardi
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...
2020-05-22 22:43:33 -04:00
Pietro Gagliardi
a65bbfa057
Started re-adding uiWindow; this just lays down the bare minimum API we're re-adding.
2020-05-22 18:46:48 -04:00
Pietro Gagliardi
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).
2020-05-22 16:32:04 -04:00
Pietro Gagliardi
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!
2020-05-17 22:18:47 -04:00
Pietro Gagliardi
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.
2020-05-13 12:43:40 -04:00
Pietro Gagliardi
e01c732760
More documentation notes.
2020-05-12 17:00:40 -04:00
Pietro Gagliardi
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...)
2020-05-12 02:05:30 -04:00
Pietro Gagliardi
de35499976
And removed zNEW_test now that everything's integrated back in.
2020-05-12 01:47:14 -04:00