Commit Graph

80 Commits

Author SHA1 Message Date
Emil Segerås
1f14a27d61 Renamed port_glut.cpp -> port_glfw.cpp 2012-11-03 17:25:42 +01:00
Emil Segerås
9198c7bcb3 Fixed makefile and compilation for mac. 2012-11-01 21:08:43 +01:00
Emil Segerås
70321ae449 Moved clipboard implementations to dedicated files. Also turned hardcoded value into system getter. 2012-10-17 20:42:10 +02:00
Emil Segerås
729c0534a3 Dummy msg loop stuff and makefile changes to get glfw running on linux. 2012-10-17 20:29:24 +02:00
Emil Segerås
7f363571ad Move some classes from tb_select.h/cpp to new files. 2012-09-08 19:03:13 +02:00
Emil Segerås
aa12df5758 Work on model/view API's for TBSelectList:
Now the viewers can be updated when the model (item source) is changed.
Moved demo ListWindow code to separate files and fixed some related stuff.
2012-09-08 18:38:23 +02:00
mrgnu
802ff67018 fixup! added libGL to LIBS in Makefile
add -lGL to the right section
2012-09-03 22:39:43 +02:00
mrgnu
585ab266eb added libGL to LIBS in Makefile 2012-09-03 20:43:42 +02:00
Emil Segerås
3c21fba7c8 Added TBToggleContainer & TBSection etc.
Automates some really tedious UI tasks.
2012-08-12 12:45:09 +02:00
Emil Segerås
11b391520d Added parser unit tests, and support multiline syntax for text. 2012-07-28 10:54:02 +02:00
Emil Segerås
dfd6063e16 Made string concatenation with TBTempBuffer a little more convenient. 2012-07-26 21:28:54 +02:00
Emil Segerås
0a027e3b6a Added condition support to skin, and positioning support for skin type image. 2012-07-26 17:39:53 +02:00
Emil Segerås
cd175fcea4 Added TBAddon system, and TBImage, TBImageManager, TBImageWidget:
-Makes it easy to extend tinkerbell with new systems & widgets.

-TBImageWidget loads & shows images dynamically (so it's easy to show
  images that are rarely showed and should not be part of the skin).
2012-07-08 21:10:12 +02:00
Emil Segerås
e37e0f328f More work on fonts:
-TBBitmapFragments can be removed individually. Free space is maintained by new TBSpaceAllocator class.
-The glyph cache is now a real cache (forgets least recently used glyph)
-Changes to batcher to handle flushing properly when removing fragments.
-Changes to batcher to wait with validating fragments bitmap until drawing, to avoid flush after each character when the glyph cache is full.
2012-07-06 15:26:42 +02:00
Emil Segerås
86cd162b69 Added forgotten file to Makefile 2012-06-30 09:54:38 +02:00
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
0749123aee Make file fixes.
-Removed wrong file.
-mac use ancient gcc which doesn't like --std=c++0x
2012-05-19 18:04:45 +02:00
Emil Segerås
45a3f348e8 Removed TDImage class. 2012-05-19 14:59:46 +02:00
Emil Segerås
59333fbaf0 Updated makefile. 2012-05-17 14:05:06 +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 Segerås
af20ec0847 Define _DEBUG for debug builds and fixed gcc compilation error. 2012-03-01 19:56:00 +01:00
Emil Segerås
3a9bfeac6d Moved data types out to a new file to fix gcc compilation.
disabled constexpr for experimental gcc since it doesn't actually work (yet).
It just ignore it and compiles a normal function.
2012-02-28 19:26:31 +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