Commit Graph

697 Commits

Author SHA1 Message Date
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 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 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
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
Pietro Gagliardi ef9e08d4ad Started assembling the input file to this hresult utility. 2018-05-26 19:40:55 -04:00
Pietro Gagliardi 8f5eba45bd Added more support for writing hresultwrap itself. There is probably a more C++-y way to write all this :| If only I could use Go... 2018-05-26 17:42:26 -04:00
Pietro Gagliardi a07727515f Updated hresultwrap to use lib.cpp, fixing errors along the way. 2018-05-26 16:56:53 -04:00
Pietro Gagliardi a6634f775b Minor style fretting 2018-05-25 21:17:29 -04:00
Pietro Gagliardi 472476392c Started expanding what were scanner.cpp and scanner.hpp into a more flexible library for tool writing. Also decided to go with separate POSIX and Windows implementations. 2018-05-25 21:07:45 -04:00
Pietro Gagliardi 43c2f26de3 Split Scanner into its own files. 2018-05-25 00:33:56 -04:00
Pietro Gagliardi 8b35ab973d Simplification through adversity, or, POSIX is not as portable as it would like :D It still works, though! 2018-05-24 16:11:58 -04:00
Pietro Gagliardi a5e07be2f5 Fixed EOF behavior. 2018-05-22 21:23:38 -04:00
Pietro Gagliardi c38564a8f7 And integrated Scanner into the mix. C's EOF behavior is gonna make things harder... 2018-05-22 21:19:54 -04:00
Pietro Gagliardi b769b37189 Attempted to simplify hresultwrap.cpp through a Scanner class, similar to Go's bufio.Scanner. There are a few snags right now... 2018-05-22 21:03:54 -04:00
Pietro Gagliardi d09be0d5fc Fixed bugs in hresultwrap.cpp. 2018-05-21 23:05:39 -04:00
Pietro Gagliardi fb745e80e3 Started the tool to convert Windows API functions into HRESULT wrappers. 2018-05-21 22:42:19 -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