Commit Graph

65 Commits

Author SHA1 Message Date
Emil Segerås
9eac332545 Added context lost & restored listener.
Need to handle context lost & restored in more places than the
skin (in fonts), so the new listener API should be invoked by the
platform instead of just reloading the skin directly.
2012-06-21 16:32:46 +02:00
Emil Segerås
a01137cace New font handling:
-Added TBFontRenderer & TBFontFace etc. with glyph caching using
 TBBitmapFragment.
-Removed hardcoded window title bar height.
-Lots of work to get TBFontFace & TBFontDescription into use in widgets.
-Replaced old TdFont with a new bitmap font system using a TBFontRenderer
 backend. Supports characters in any range, glow and shadow.
2012-06-21 12:06:08 +02:00
Emil Segerås
f5adef3437 Unicode (utf-8) support:
-Added utf-8 conversion functions.
-Switched to utf-8 in clipboard implementation (windows)
-Switched to utf-8 on all resource files.
-Skip BOM character at the beginning of resource files.
-Made old TDFont system unicode aware (not supporting displaying unicode, but able to handle it)
2012-06-10 15:45:32 +02:00
Emil Segerås
9415864fc7 renamed test file 2012-05-28 19:08:56 +02:00
Emil Segerås
1eeb8547a2 Major changes to PStyleEdit and renaming to TBStyleEdit.
The PStyleEdit code was really old and crappy. This an attempt
to clean up, fix bugs and improve the design completly.

Work in progress - There is still issues to fix, especially with undo & linebreaks.
2012-05-27 21:34:54 +02:00
Emil Segerås
4797ac7104 Merge branch 'stb_image_wip' 2012-05-19 15:01:39 +02:00
Emil Segerås
45a3f348e8 Removed TDImage class. 2012-05-19 14:59:46 +02:00
Emil Segerås
0597ea3c68 Replaced lodepng with stb_image. Started removing TdImage. 2012-05-17 13:41:27 +02:00
Emil Segerås
1dd6739575 Disabled annoying MS warnings for release builds too. 2012-05-17 12:53:37 +02:00
Emil Segerås
30c09fa9a2 Moved parser/TBValue.h to tb_value.h 2012-05-16 08:41:55 +02:00
Emil Segerås
d5998d7d6b Added possibility to synchronize widgets values when changed.
Widgets can be connected to TBWidgetValue by the "connection" attribute in
resources (all TBWidgetValue should have unique names). Then the value
can always be set/get from TBWidgetValue instead of various pieces of UI.

Fixes ON_CHANGE event for TBEditField, TBInlineSelect.

Added handy GetText method that returns the string (with no status). Relying on RVO.
2012-05-16 08:41:42 +02:00
Emil Segerås
d0560b30a0 Added unit testing framework and safe linklist iterator. 2012-04-22 15:10:42 +02:00
Emil Segers
16fbfa2bda Added integration guide. 2012-02-28 20:18:25 +01:00
Emil Segers
9f3b6724de Added const expr hash support for compilers that support it.
Create all TBID with a TBIDC macro that turns into a simple uint32 compiletime.
2012-02-28 08:56:31 +01:00
Emil Segers
c63088d3d0 First commit to public rep 2011-12-14 08:42:33 +01:00