27 Commits

Author SHA1 Message Date
Michael Tesch 00933a86e9 Hb cmake cleanup (#10)
* cleanup build system, modernize cmake

* build glfw and sdl2, w/ or w/o freetype

* fix android demo build

* win32 with CPack has PACKAGE target now

* added GLEW for windows

* bump to SDL2.0.10. fixes for building as subdir

* constexpr is always available these days.

* cleanup getwd() warning. add rpm to ubuntu packages

* dont use add_compile_definitions() for cmake, too new

* add rpm package to travis

* gh release packages

* build demo target on windows

* see if defines not working on winsodw
2019-11-12 15:45:00 +01:00
Emil Segerås 26af4e9aca Added group-id support for TBButton. 2015-06-25 19:48:06 +02:00
Emil Segerås e598608fc5 Updated incorrect comment in demo resource. 2014-08-31 20:06:25 +02:00
Emil Segerås c5c7670a23 Added testing of constantly busy message handler. 2014-03-02 21:45:54 +01:00
Emil Segerås 71a6880c1b Minor layout change in demo menu.
Let the debug window button stick to bottom if not pushed out by other content.
2014-02-21 21:19:22 +01:00
Emil Segerås bb06e7996c Added styled text to TBButton example.
Removed old comment. New way of doing things is to build like lego.
With widgets as building blocks, build whatever you want. Instead
of implementing everything :)
2014-02-12 20:38:29 +01:00
Emil Segerås 559b05b108 Cleanup of old layout test. 2014-02-09 20:44:51 +01:00
Emil Segerås d9f260fc92 Mention touch input emulation in demo. 2014-02-04 21:50:30 +01:00
Emil Segerås c711425946 Renamed project in resources & documentation. 2014-01-16 21:03:10 +01:00
Emil Segerås b0e83a9673 Support for node references and conditions. Fixes #1.
Also fixed compact parsing of colors without quotes.
2013-12-27 13:27:33 +01:00
Emil Segerås 603851f6ca Constraints part from layout improvements branch.
This change optionally pass constraints down through hierarchy
when measuring. Axis specific dependency information is bubbled
back up (so future multi-pass layout may take further action).

This enables f.ex wrapping textfields to adapt to content a bit
better, but all layout is still done in a single pass (Still WIP
on the layout branch)
2013-11-16 20:31:32 +01:00
Emil Segerås 897c61c723 Relayout TBScrollContainer if adapt properties change.
Also added adapt setting in ResourceEditWindow.
2013-09-21 20:12:05 +02:00
Emil Segerås 9291b072fc Cleaned up & changed layout a bit on demo resources. 2013-09-14 20:07:26 +02:00
Emil Segerås c8480297ac Moved event debugging to runtime debug window.
Listens to all events globally.
2013-09-04 07:42:26 +02:00
Emil Segerås 8c25e04e39 Major improvements to pointer/touch input:
List of changes:
-Refactorized virtual scroll methods and introduced virtual GetScrollInfo.
-Added TBScroller to do slow down scroll after panning.
-Added TBScrollerSnapListener for snapped smooth scrolling.
-Added keyboard scroll support in TBScrollContainer and TBSelectList.
-Added possibility to cancel EVENT_TYPE_CLICK for current touch (stopping scroll should not cause click)
-Added flag to TBWidgetEvent to distinguish cursor base pointer events from touch events (Fixes issue #2).
 --Pan TBEditField on touch pointer events instead of doing selection scroll.
 --Touch events should not result in setting the hover state automatically.
2013-07-10 21:03:44 +02:00
Emil Segerås aa3001cc9b Runtime debug settings:
-Moved config defines and debug defines to dedicated files.
-Made debug settings slightly more handy (change stuff runtime instead of toggling defines and recompile everything).
2013-06-15 21:16:41 +02:00
Emil Segerås 93b5b89dc3 Added test of button with multiline text. 2013-04-16 22:05:25 +02:00
Emil Segerås c8267eff72 Updated customized item source test:
-Added test where TBSelectDropDown is using the custom item source.
-Fixed typo.
-Test custom filter.
-New layout & Inflate the item widget from resource.
-Sort list (shows a bug when deleting items)
2013-04-16 21:59:22 +02:00
Emil Segerås a0903b12d1 Updated some demo layouts a bit. 2013-03-29 14:30:59 +01:00
Emil Segerås b5a9d47227 Renamed some resource attributes to be more consistent. 2013-03-22 21:42:42 +01:00
Emil Segerås eef2d81a70 Added tests in demo for inflating widgets into non-layouting widgets. 2013-01-23 21:59:36 +01:00
Emil Segerås 5608f2c699 Fix for inflating widgets into non-layouting widgets.
Now the children gets positioned & resized correctly on inflate.
This also optimizes inflate into layouting widgets since they can skip doing resize twice.
2013-01-23 21:45:53 +01:00
Emil Segerås 547d4594b9 Changed the type system implementation.
- Moved the type code our from TBWidget to new TBTypedObject.
- Work with template generated unique class id, instead of using strcmp on class names.
- Use template functions similar to dynamic_cast.
- Added unit tests.
2013-01-19 21:33:29 +01:00
Emil Segerås 18dd588552 Made it possible to set font from resource.
Also added unit tests for TBPx and TBColor.
2012-12-30 16:11:46 +01:00
Emil Segerås 9f2c1c3ce3 Repositioned demo windows a bit. 2012-11-14 22:40:51 +01:00
Emil Segerås a958a811f5 Don't enforce "gravity: all" on TBTabContainer. 2012-11-13 18:48:16 +01:00
Emil Segerås 9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00