Emil Segerås
f36ac59d55
Don't create 2 undo events for InsertBreak on first line.
2012-05-29 21:25:08 +02:00
Emil Segerås
609510a566
Minor optimization in RemoveContent.
2012-05-29 21:22:24 +02:00
Emil Segerås
58d8433176
Cleanup and made line break style controllable runtime.
...
Makes unit tests platform independant.
2012-05-28 19:53:00 +02:00
Emil Segerås
9415864fc7
renamed test file
2012-05-28 19:08:56 +02:00
Emil Segerås
22a7297795
Added SetText that takes length of string.
2012-05-28 19:08:43 +02:00
Emil Segerås
f620ae05c7
Changed embedded widget content vertical alignment.
...
Center around line instead of standing on it. Aligns better with widgets containing a vertically centered line of text.
2012-05-28 19:00:11 +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
3eddf2f035
Changed recommended order of InvokeProcessStates and InvokeProcess!
...
Makes much more sense to update states that might affect layout before
the layout. Otherwise changes appear a frame too late.
Might be good with better naming on theese (OnProcess -> OnLayout etc.)
2012-05-20 16:23:26 +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
aa0402e562
Added debug printout for how many bitmaps the skin use.
2012-05-19 15:11:26 +02:00
Emil Segerås
56e2868be8
Removed virtual destructor from TBLink.
...
It shouldn't need one. We only need the Delete/DeleteAll methods in the linklist that knows the type being deleted.
2012-05-19 15:09:07 +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
59333fbaf0
Updated makefile.
2012-05-17 14:05:06 +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
def8da1ed1
Perform gfx load performance test in demo, on "Reload skin bitmaps".
2012-05-17 13:40:46 +02:00
Emil Segerås
a6fe0bafd5
Some ifdeffing for unwanted image formats.
...
Note: Doesn't remove everything! It relies on the compiler to remove unused code.
2012-05-17 13:37:03 +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
18fe783ac9
Added stbi-1.33
2012-05-17 12:32:38 +02:00
Emil Segerås
51f2ec0061
TBMessage cleanup:
...
-Got rid of nasty offsetof use by inheriting link twice with different types.
-Use safe iterator instead of global hack (now it should be reendtrant)
2012-05-17 10:00:28 +02:00
Emil Segerås
8a54044d5f
Some demo cleanup.
2012-05-16 08:42:07 +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
d33bbbdfa9
Added possibility to set initial type of TBValue on construction.
...
Also did some cleanup and reduced memory usage.
2012-05-16 08:40:32 +02:00
Emil Segerås
ab4c51290f
Call OnChange when setting text on textfield.
...
Also scroll (to 0, 0) when emptied.
2012-05-16 08:40:18 +02:00
Emil Segerås
3328a9d28f
Added Init & Shutdown and other selftest features.
2012-05-13 16:19:40 +02:00
Emil Segerås
5cca54d2cc
Fixed 64bit bug, and another gcc compilation issue.
2012-05-11 19:36:52 +02:00
Emil Segerås
7d0edca2b0
Removed some gcc warnings.
2012-05-11 19:35:20 +02:00
Emil Segerås
91410e08dd
Compilefixes for macosx.
2012-05-11 18:37:55 +02:00
Emil Segers
0d96545676
compilefix for gcc
2012-05-10 21:49:52 +02:00
Emil Segerås
169d6bb224
Many animation updates:
...
-Added ANIMATION_CURVE_SPEED_UP
-Use linklist and safe iteration
-Solved ambigious casts when there's multiple inheritance from TBLink.
-Added OnDie so widgets can live extendedly during fade out animations.
-Fade out message windows on close.
2012-05-04 20:06:22 +02:00
Emil Segers
e826cb0ddc
Added autodelete linklist test.
2012-04-22 19:25:52 +02:00
Emil Segerås
d0560b30a0
Added unit testing framework and safe linklist iterator.
2012-04-22 15:10:42 +02:00
Emil Segers
c8d3b1ecbd
Added content offset for skin and use it for pressed buttons.
2012-04-15 20:11:15 +02:00
Emil Segers
00491ca9ea
Refined textfield password API & minor cleanup.
2012-04-15 19:42:12 +02:00
Emil Segers
1b7b7a8fa0
TBSlider fixes & cleanup:
...
-Swapped value direction of vertical slider.
-Added debug output field to demo app.
-Misc cleanup.
2012-04-15 19:22:13 +02:00
Emil Segerås
6586ca671b
Sort name list in demo
2012-04-14 20:17:25 +02:00
Emil Segerås
80eea3c443
Added TBSlider
2012-04-14 20:13:59 +02:00
Emil Segerås
c07f9b3833
Added sort functionality to TBSelectList.
2012-03-04 18:37:04 +01: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
b32eb7f0a0
Enabled constexpr for gcc again.
...
It was a typo that made it not work.
2012-03-01 19:55:28 +01:00
Emil Segers
8d1a1221e6
Fixed typo.
2012-02-28 20:20:11 +01:00
Emil Segers
16fbfa2bda
Added integration guide.
2012-02-28 20:18:25 +01:00
Emil Segers
604fc2d463
Use three dots instead of char 133 for ellipsis since it's wrong.
2012-02-28 19:37:39 +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
985e958690
Added text color to skin and widgets:
...
Added Widget::PaintProps that inherit text-color to child widgets that hasn't specified text-color in the skin or has no skin element.
Added default text-color property in skin, that will apply to all specified skin elements.
Added color in the renderer DrawString method.
2012-02-24 19:27:25 +01:00
Emil Segers
f4437201b7
Begun PStyleEdit cleanup.
...
Introduced TBColor and TBFontDescription.
Made renderer DrawRect and DrawRectFill mandatory and use TBColor in it.
2012-02-21 19:57:30 +01:00
Emil Segerås
4e82910afc
Show focus only when navigating by keyboard. Also introduced tweak for showing it always on editfields.
2012-02-21 18:47:07 +01:00
Emil Segers
4be5aa9f72
Fixed some /analyze warnings.
2012-02-20 19:34:23 +01:00