Commit graph

17 commits

Author SHA1 Message Date
Tim Eves
9a991f9abc More tidy ups 2018-12-18 10:16:04 +07:00
Tim Eves
29a5fa6d2e Add more convert function use, psuh_persist actions and various tidy-ups 2018-12-17 23:40:44 +07:00
Tim Eves
18ce72e7c8 Refactor keyboard processor initialisation code.
Turn the keyboard class backing the km_kbp_keyboard and km_kbp_keyboard_attr objects into just keyboard_attributes.
Move the abstract_processor and sublcasses as the objects that back km_kbp_keyboard and make keyboard_attrs a member of the asbtract_processor.
Move kmx_processor and mock_processor declarations into their own headers.
Make all vector<km_kbp_option_item> into vector<option> to handle memory management, moving and copying correctly.
Update test cases accordingly
2018-12-17 06:02:22 +07:00
Tim Eves
7c304f678c Turn all kbp::path types into km::kbp::path to keep MSVC happy. 2018-12-14 01:22:04 +07:00
Tim Eves
4694a7a70b #include <alogrithm> for std::min on Windows
Add json << operator for path objects
2018-12-14 01:02:34 +07:00
Tim Eves
08bab354bd Add a path handling class since std::filesystem is not reliably available
It's not there on Xcode yet and different platforms and compiler put it 
into different library files.
2018-12-14 00:50:04 +07:00
Tim Eves
559824a1b7 Replace utf16_to_utf8 with generic utfcodec based string conversion func
Templated convert for going between any combination of UTF codecs with 
an identity function specialisation for when src & target forms match.
Includes implmentations of json and basic_ostream << operators for 
u16string & u32string.
2018-12-14 00:46:54 +07:00
Marc Durdin
48f6c9d411 [Common] Tweak comment - to trigger agents 2018-12-05 14:22:50 +11:00
Marc Durdin
5a4d50ab8a [Common] Update VS version checks to 19.16 for latest release of VS2017 (bug in VS workaround) 2018-12-05 14:09:44 +11:00
Marc Durdin
09620cb311 [common] Basic options functionality (rework to match api model) 2018-11-20 10:00:29 +11:00
Marc Durdin
646c322b4c [Common] First kmx test case (currently fails, as it should) and KMX integration started 2018-11-16 11:12:56 +11:00
Marc Durdin
ac4448f350 [Common] Refactor KPAPI to support multiple processors (kmx, mock, ldml?) 2018-11-14 11:58:44 +11:00
Marc Durdin
1ab04f681a [Common] Code Review updates, some minor changes to API, mostly comments and tests; one bug fix 2018-11-12 19:12:59 +11:00
Tim Eves
fe4beb0197 Make sure to convert path to utf8 for json output of folder name. 2018-11-07 05:04:22 +07:00
Tim Eves
61f90b172e Fix path handling so it's wchar_t const * on windows and char const * on linux 2018-11-07 04:49:56 +07:00
Tim Eves
d70fe629e8 Fix state API implmentation to use new options, keyboard and context objects. 2018-11-07 04:25:28 +07:00
Tim Eves
b27fc67259 Rework keyboard API and add more robust checking. 2018-11-07 03:04:45 +07:00