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.
Fischland: the flood fill algorithm is getting better
Submitted by mark on Sat, 2007-06-30 13:22. See all entries for![]() |
Wow! Using PDF output to generate a debug log was a great idea. Now that I can actually see what the algorithm is doing I have already solved three issues in a tenth of the usual time.
Now the only remaining issues are... the known ones! Which ain't few. |




- elektronische medien, find their site at