TOAD
TOAD: Lambda functions and closures are now part of C++0x
Submitted by mark on Mon, 2008-03-31 13:47. See all entries forI just read that Lambda functions and closures are now part of C++0x. Once The GNU C++ Compiler supports these, I will redesign the current CPP+Signal'n Slots based closure syntax.
This means that
TCLOSURE2(
slider,sigChanged,
_this, this,
_slider, slider,
_this->setValue(_slider->getValue());
)
is going to look like
slider->sigChanged->connect([] { this->setValue(slider->getValue()); });
in the future.
TOAD: TModelLayout
Submitted by mark on Thu, 2008-02-07 21:38. See all entries forWhew! After letting TOAD rest for about six months, there are finally some new commits. TModelLayout is now able to restore itself from a file and I've fixed some minor issues with TPen::setFont and vertical scrolling in TTextArea.
TOAD: TModelLayout
Submitted by mark on Wed, 2007-07-25 23:35. See all entries forI began implementing the new dialog editor, TModelLayout in examples/modellayout/. The screen shot below shows the layout editor on the left. On the top are the usual drawing tools. At the bottom are two lists. The first shows the models registered for the dialog, the second shows the widgets which can handle the selected model. The Add Widget button will add the selected widget to the dialog window, where it can be moved and resized with the Select Tool. On the right you see a simple dialog which I created with the layout editor.
(To start the layout editor, the program on the right has to be compiled and run with the option '--layout-editor' as usual.)
![]() |
|
While I wrote the new layout class, I finally decided that the TTable classes needs to be improved as it is really no fun to use them.
I have also incorporated more code for the Cocoa (Mac OS X) port. It is still unusable but the compiles now.
TOAD: floating point screen coordinates
Submitted by mark on Fri, 2007-06-15 13:14. See all entries forThe last commit to the TOAD repository is quite a major one and it might break a lot: I've switched the screen coordinates to floating point because
- it is not 1995 anymore,
- Cairo (X11) and Cocoa (Mac OS X) are also using floating point coordinates and
- a graphic tablet can deliver more than just a single integer per axis for a single point.
The changes (there are more) is also destined towards a potential native Mac OS X port of TOAD. In fact, there is already some Objective-C code in the source.
TOAD: TOAD C++ GUI Library for Cocoa: Halted; Fischland: Running
Submitted by mark on Mon, 2007-01-22 14:55. See all entries forI was stuck with some problems with the Cocoa port of TOAD for sometime, which I started to speed up Fischland, my 2D vector graphics program to draw comics.
Yesterday, being eager to draw something, I installed trial versions of Anime Studio™ and Adobe Illustrator™ to find out if they are an alternative. An alternative of investing money instead of time.


- elektronische medien, find their site at