Emil Segerås
d591064627
Refixed #10 .
...
LINUX isn't defined anymore.
2014-11-01 13:04:31 +01:00
Emil Segerås
6377253c79
Fix #30 . Use -std=gnu++0x instead of -std=c++11.
...
Apparently the new standard is strict about POSIX functions that are
not part of the standard. strdup is used in a few places and need to
be replaced to change back to -std=c++11.
2014-10-29 21:34:09 +01:00
Emil Segerås
ebf9695a4f
Removed dependency strtok_r/s.
2014-10-29 21:30:17 +01:00
Emil Segerås
cb9ea6b615
Renamed STATUS_NO_MEMORY. Fixes #26 .
2014-10-19 13:53:34 +02:00
Emil Segerås
2d25cddadb
Merge pull request #28 from nsf/caret_fix
...
Fix utf8 backward movement bug. Fixes #22 .
2014-10-09 16:24:59 +02:00
Emil Segerås
c18bb90866
Merge pull request #27 from nsf/master
...
Enable -Wall -Wextra -Wno-unused-parameter on gcc and clang. Fixes #23 .
2014-10-09 16:22:48 +02:00
nsf
db0c3d8886
Fix utf8 backward movement bug. Fixes #22 .
...
Utf8 movement functions now only work between [0; i_max]. The fix also
includes a couple of TBCaret fixes, because of these changes.
2014-10-09 14:17:25 +06:00
nsf
bca50bef09
Enable -Wall -Wextra -Wno-unused-parameter on gcc and clang. Fixes #23 .
...
At the moment gcc still generates a bunch of warnings on stb_image.h, but we
can't workaround that easily without modifying the stb_image.h itself, which
is a third party code.
2014-10-09 14:04:46 +06:00
nsf
5156739fe6
Silence unused function warning in glfw portion of the demo app.
...
This function needs to be defined only starting from a certain version of the
GLFW, where it can actually be used. It's the drag'n'drop functionality.
2014-10-01 15:55:55 +06:00
nsf
16b3eb32ee
Disable -Wunused-function for stb_image.h
...
Unfortunately it doesn't work for gcc, the only way to stop these warnings in
gcc is to use attributes. But since stb_image.h is a third party dependency,
modifying its code is discouraged.
2014-10-01 15:53:02 +06:00
Emil Segerås
fe2fafdbf4
Removed some warnings in demo code
2014-09-30 21:35:38 +02:00
Emil Segerås
5fe5408518
Upgraded thirdparty stb_image.h (1.38 -> 1.46)
2014-09-30 21:34:01 +02:00
Emil Segerås
f88e44a6cf
Merge pull request #21 from nsf/master
...
Minor warning fixes and clang support.
2014-09-30 21:10:07 +02:00
nsf
48ee638dda
Support building with clang.
...
Sadly CMAKE_COMPILER_IS_GNUCXX is not true if building with clang. Even though
clang is mostly compatible with gcc.
P.S. A proper way to build stuff using clang under cmake is:
CC=clang CXX=clang++ cmake . <options>
2014-09-30 17:00:05 +06:00
nsf
de88e84cf1
Actually silence warning. A cast to (void) does so, not to (void*).
2014-09-30 16:51:09 +06:00
nsf
2155a338a7
Add virtual destructor to a class with virtual functions.
...
Clang is not happy about it, emits a warning on -Wall. Technically it's not
required if you never call "delete" on a base class pointer. But it's a good
practice to define a virtual destructor at a point where virtual table is
also defined (implicitly by defining virtual functions).
2014-09-30 16:48:34 +06:00
Emil Segerås
030f1a36e2
List of attributes read by default widgets.
...
Work in progress. May be used in ResourceWindow at some point...
2014-09-17 21:23:03 +02:00
Emil Segerås
bda6237f7f
Merge pull request #19 from MichelPaulissen/master
...
Two minor feature completions
2014-09-16 18:40:37 +02:00
Michel Paulissen
18d06ca00b
Handling the keypad enter in port_glfw
...
Support for horizontal mouse scroll in tb_scroll_container
2014-09-16 10:59:14 +02:00
Emil Segerås
59a3a1c85c
Stop invoking EVENT_TYPE_CHANGED when text isn't edited.
2014-09-06 13:01:05 +02:00
Emil Segerås
20e62a9582
Quick workaround for jumpy focus in ResourceEditWindow.
2014-09-02 21:37:18 +02:00
Emil Segerås
856d7646c5
Move popups into view horizontally, and code cleanup.
2014-09-02 21:33:00 +02:00
Emil Segerås
29512809e8
Set id the correct way, using constexpr.
2014-08-31 20:08:27 +02:00
Emil Segerås
e598608fc5
Updated incorrect comment in demo resource.
2014-08-31 20:06:25 +02:00
Emil Segerås
3e3e4fc009
Read attributes into content and root layouts of TBTabContainer.
2014-08-31 13:48:14 +02:00
Emil Segerås
b06ae6fc14
Fix for TBTabContainer preferred size in some situations.
...
Must read its attributes before inflating its tabs.
2014-08-31 13:45:30 +02:00
Emil Segerås
f3338480c2
Silenced assert about TBTabContainer preferred size.
2014-08-31 13:17:00 +02:00
Emil Segerås
8478e97844
Removed trigger happy assert for TBID collisions.
...
Collisions of ids initialized from integers with ids initialized from strings
must not assert. It's pretty common with f.ex TBFontDescription that
combine the name id with additional integers that may be 0.
2014-08-29 21:33:31 +02:00
Emil Segerås
0bfbcf9544
Fixed IsActive constness
2014-08-24 21:40:49 +02:00
Emil Segerås
e4ac2fc4a6
Fix for crash with local node include cycles.
2014-08-24 21:40:04 +02:00
Emil Segerås
9fc99185ff
Simplify include directories for demo.
2014-08-19 21:05:22 +02:00
Emil Segerås
8d8bec91c2
Make Invalidate visible by TBEditField subclass.
...
It was not callable because of the private special version in TBEditField.
2014-08-19 21:04:39 +02:00
Emil Segerås
5f4e5fd002
cmake cleanup
...
Moved glfw include from the top CMakeLists.txt to
the demo project, since it's the "user" project that
specify the dependence and knows where it is.
2014-08-16 14:32:33 +02:00
Emil Segerås
77728226e3
Use inheritance for reading properties during inflate.
...
Read properties in virtual OnInflate instead from special factory block.
Now subclasses may add properties and read super class properties, before
or after reading its additional properties.
The TBTabContainer>tabs node may now also f.ex specify
distribution-position or any other generic property, and that will be
applied to just the tabs layout.
2014-08-16 14:01:53 +02:00
Emil Segerås
39616f761d
Another workaround for problems linking as a library.
...
Apply special hack to force linking of internal tests.
Without this, all tests where discarded silently by the linker.
2014-08-05 13:57:13 +02:00
Emil Segerås
a19d14b12d
Mention cmake in build instructions.
2014-08-04 15:08:44 +02:00
Emil Segerås
cdd14c70c9
Removed special compiler flags for linking all object files.
...
Should not be needed anymore.
2014-08-04 15:04:50 +02:00
Emil Segerås
bf82fe994d
Deprecate TBAddon and made TBImage optional by define.
...
Making features optional by linking is messier than using defines.
Use tb_config.h for all optional core stuff instead.
2014-08-04 15:00:30 +02:00
Emil Segerås
a525566df7
Workaround for problems linking as library.
...
Compilers (especially visual studio) can't be forced to link object
files which content isn't referenced, so continue the ugly tradition
to specify all widget factories in the same place.
2014-08-04 14:20:12 +02:00
Emil Segerås
67d82a43a2
cmake compilefix for macosx
2014-07-28 15:58:00 +02:00
Emil Segerås
902e0ba2ee
Removed old Makefile
...
Rely completely on cmake for linux & macosx
2014-07-28 14:28:00 +02:00
Emil Segerås
7c9ef0cc5b
cmake compilation fixes
2014-07-28 14:26:18 +02:00
Emil Segerås
67119ca815
cmake update: compiler settings for msvc.
2014-07-28 13:45:06 +02:00
Emil Segerås
6d5322f40b
cmake update: Use WinMain on windows.
2014-07-26 13:34:22 +02:00
Emil Segerås
afa14e70cc
Added cmake build files. Work in progress.
2014-07-26 11:18:41 +02:00
Emil Segerås
8cac9c9eb8
Added configuration defines for default platform implementations.
...
Makes it easier to control stuff using a shared build system.
2014-07-25 21:26:11 +02:00
Emil Segerås
1999a37bdf
Always use special ifdef for debug code.
...
_DEBUG is not set by all compilers by default.
Let TB_RUNTIME_DEBUG_INFO depend on NDEBUG instead and is it everywhere.
2014-07-24 14:51:10 +02:00
Emil Segerås
7e86d2a885
Updated readme.md
...
Removed mailing list since it's too cumbersome for people to sign up to mailing lists.
2014-07-23 13:06:26 +02:00
Emil Segerås
61f3c0c2c6
Silenced some gcc warnings.
2014-07-23 12:56:38 +02:00
Emil Segerås
e649453f26
Fix bug in TBValue::SetObject.
2014-07-15 08:24:11 +02:00