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
Pietro Gagliardi
ca1079f344
Cleaned up from the previous merge and added it to the README.
2018-05-13 12:05:09 -04:00
cody271
edd4127f8e
uiDateTimePicker Fix style consistency
2018-05-12 21:35:07 -07:00
cody271
0b436a8c74
uiDateTimePicker Use proper Windows backend conventions
2018-05-12 21:35:07 -07:00
cody271
0ac4ffdc87
Implement uiDateTimePickerTime() for Windows
2018-05-12 21:35:07 -07:00
cody271
0baf2d2eb6
uiDateTimePicker Keep libui constructors at the end of the file
2018-05-12 21:35:07 -07:00
cody271
bc14042935
Add uiDateTimePickerTime() APIs
2018-05-12 21:35:07 -07:00
Pietro Gagliardi
2768fef3ce
Cleaned up old static-library stuff from CMakeLists.txt.
2018-05-12 23:59:43 -04:00
Pietro Gagliardi
7ee7de1b92
And removed the rc file copying stuff from CMakeLists.txt. I wonder if this fixes the msbuild generators in cmake, so let's find out...
2018-05-02 23:04:43 -04:00
Pietro Gagliardi
4432e39a44
And the color dialog. All done! Now we just need to clean up and remove the kludge.
2018-05-02 21:13:35 -04:00
Pietro Gagliardi
e3e88c7a6a
And migrated the font dialog.
2018-05-02 20:57:50 -04:00
Pietro Gagliardi
3522ec02b3
Fixed out.
2018-05-02 20:24:30 -04:00
Pietro Gagliardi
a4cb17820c
Forgot a fix (thanks to two people on Telegram)
2018-05-02 20:21:51 -04:00
Pietro Gagliardi
b975cfb83e
Fixes and TODOs in rc2bin. Going to manually adjust out instead of regenerating it, though.
2018-05-02 20:20:06 -04:00
Pietro Gagliardi
c6979fa738
Removed rcTabPageDIalog from the resources. Also removed CRs from the out file. Need to fix that generator...
2018-05-02 20:17:08 -04:00
Pietro Gagliardi
e11196304f
Since out32 and out64 are identical, deduplicate them. Now we can move its contents elsewhere.
2018-05-02 10:00:44 -04:00
Pietro Gagliardi
88882592ac
Fixed compiler errors and generated the output.
2018-05-02 09:59:29 -04:00
Pietro Gagliardi
10de22f9ac
Added a program to dump resources to C structs.
2018-05-02 09:56:06 -04:00
Pietro Gagliardi
17ec9562ea
Cleanup of previous merge, including TODOs and massive infodumps.
2018-04-30 21:55:54 -04:00
Ben Campbell
2be8fd3eb3
Fixes to compile on windows with msys2
...
msys2 seems to be unsure of it's IDWriteTypography definition and
disables it by default. This overrides the disabling (The
IDWriteTypography definition looks OK to me, and seems to work
fine).
This commit also adds in a canary to detect compilers that have a non-16bit
wchar_t on windows (eg a gcc focused on porting unix code rather
than compiling windows code).
2018-05-01 12:59:26 +12:00
Pietro Gagliardi
5cc85c2609
More ifxes.
2018-04-19 20:33:20 -04:00
Andrea Parodi
e61f7fb0cb
Fix uiprivTimer::f: it should return an int
2018-04-19 21:03:49 +02:00
Pietro Gagliardi
83b04cda47
And added documentation nits and TODOs to the uiTimer() code.
2018-04-18 21:09:24 -04:00
Pietro Gagliardi
cac4cd9e81
Cleaned up stylistic nits and common branch naming issues on the new uiTimer() code. Also switched the Windows code to use a simple struct instead of the class (and with a uipriv name).
2018-04-18 21:04:12 -04:00
Pietro Gagliardi
85a4c6d35d
Merge pull request #277 from cody271/timer
...
Adds a function uiTimer() that runs code on the main loop at certain intervals.
Original comment: Add Timer API
2018-04-18 20:52:59 -04:00
Pietro Gagliardi
52dc39a553
Decided to keep attrstr.h for now; removed extern "C" hack from attrstr.hpp on Windows and moved it into attrstr.h. Let's merge back.
2018-04-18 00:54:24 -04:00
cody271
d99549ec18
uiTimer() Use TimerHandler pointers directly as Windows timer IDs
2018-04-16 17:28:13 -07:00
cody271
c9d11a85cc
uiTimer() Refactor TimerHandler for Windows timer IDs
2018-04-16 17:28:13 -07:00
cody271
4e6adca08c
uiTimer() Ensure Windows timer IDs are unique
2018-04-16 17:28:13 -07:00
cody271
b1210165a0
Implement uiTimer() for Windows
2018-04-16 17:28:13 -07:00
cody271
27b8ce1db3
Add uiTimer() API and example
2018-04-16 17:28:12 -07:00
Pietro Gagliardi
fcc26ab9a9
Fixed a serious bug in windows/utf16.cpp that went unnoticed for this long: we wanted utf16UTF8Count(), not utf16RuneCount(), in toUTF8(); any non-ASCII text had the wrong number of bytes, and thus random heap corruption. The string "鎿嶄綔鎴愬姛瀹屾垚銆" (taken from the completely unrelated #337 ) and the Set Button Text button was enough to trigger this.
2018-04-15 23:10:11 -04:00
Pietro Gagliardi
c3992cc647
uipriv-ized utf.c.
2018-04-15 23:08:57 -04:00
Pietro Gagliardi
8e2004cf67
struct graphemes -> uiprivGraphemes. Also deleted OLD_uipriv.h now that that one is settled.
2018-04-15 22:43:14 -04:00
Pietro Gagliardi
01d6422664
Added uipriv prefixes to the matrix functions.
2018-04-15 22:39:34 -04:00
Pietro Gagliardi
24a4b0997c
fromScancode() -> uiprivFromScancode().
2018-04-15 22:31:17 -04:00
Pietro Gagliardi
0dddf4a490
clickCounter -> uiprivClickCounter.
2018-04-15 22:26:51 -04:00
Pietro Gagliardi
f5be05f143
shouldQuit() -> uiprivShouldQuit().
2018-04-15 21:54:46 -04:00
Pietro Gagliardi
f93973d3cb
Migrated implbug() and userbug() to uipriv forms.
2018-04-15 21:46:08 -04:00
Pietro Gagliardi
c6bb463692
uiAlloc() et al -> uiprivAlloc() et al, Windows code.
2018-04-15 18:12:58 -04:00
Pietro Gagliardi
4a57b15d09
Renamed the common options variable to uiprivOptions.
2018-04-15 15:49:45 -04:00
Pietro Gagliardi
93f0eea140
Likewise codified uiprivStricmp(). Honestly this will probably do for the Windows code for now...
2018-03-17 23:22:17 -04:00
Pietro Gagliardi
8709838a8f
Added a uiFreeFontButtonFont() function to free resources allocated by uiFontButtonFont(), implemented it on Windows, and integrated it into the drawtext example. I'm going to continue chipping away at the Windows code for a bit longer, so I'll add this to the other platforms later.
2018-03-17 23:07:40 -04:00
Pietro Gagliardi
78e0684435
Cleaned up memory management in windows attrstr.cpp; also got rid of the logHRESULT(HELP) I was using in case DirectWrite doesn't return NULL+S_OK on a nonexistent drawing effect (thankfully it does).
2018-03-17 21:26:34 -04:00
Pietro Gagliardi
fa293717af
Removed the NumLines and LineByteRange functions for now; I'll count them under extents.
2018-03-17 21:05:05 -04:00
Pietro Gagliardi
d358e87583
Moved the old metrics attrstr code out of the way.
2018-03-17 21:00:11 -04:00
Pietro Gagliardi
45d11962b1
Turns out there was only one real runtime bug (a bad castee). It works! Now to clean up.
2018-03-17 16:10:11 -04:00
Pietro Gagliardi
a5bbc83359
Fixed build errors. Now to test.
2018-03-17 15:49:00 -04:00
Pietro Gagliardi
2f02836181
Fixed attrstr.cpp. Wow, that unordered_map custom hash and equal_to actually compiles!
2018-03-17 15:29:06 -04:00
Pietro Gagliardi
51952b4599
And fixed the CMakeLists.txt. Now to build.
2018-03-17 14:50:10 -04:00