Quoting Koen Deforche <[EMAIL PROTECTED]>:

> Hey Pau,
>
> 2008/6/18 Pau Garcia i Quiles <[EMAIL PROTECTED]>:
>> Hello,
>>
>> Is it possible to implement statelessly methods which do return a
>> value? AFAIK, WObject::implementStateless only accepts void methods
>
> Also the WSignal classes only accept void returning methods as valid
> slots, so that is an even more general limitation?
>
> I think it is currently a limitation, at least if it is always
> possible to ignore the return value (i.e. can you safely cast an 'int
> foo()' function pointer to a 'void foo()' function pointer?). We need
> to investigate that first before we can remove this limiation.

This is a problem for the WWizard::field(WString name) method (see
http://doc.trolltech.com/4.4/qwizard.html#field for information of  
what it does,
WWizard blatantly copies QWizard :-)

I can't think of a good way of getting the actual value instead of the
default value (i. e. run-time value instead of compilation-time
value). I might come with a solution or workaround when my brain gets
some sleep. In fact, I might be doing something wrong because after  
the wizard finishes, the right text is output to stdout.

I've uploaded a working version of WWizard to gitorious:
http://gitorious.org/projects/wwizard/

It can be cloned with
git clone git://gitorious.org/wwizard/mainline.git

I've tested it with Wt 2.1.3. Currently, it needs Ext but in the
future there will be an Ext and a non-Ext version, both generated
using CMake scripting from the same source.

You can see the problem by using WizardTest or WizardTest2 (the only
difference is in WizardTest2 the code is organized in three separated
methods, like in the Qt License Wizard example).

Features missing: a lot :-), namely:
* non-linear wizards
* disable buttons if mandatory items are not completed
* hide the "back" button in the first page and the "next" button in  
the last page (Wt shows a weird error about undefined properties!)
* code clean-up
* remove friend-ness where possible
* many more

I'd say it works fine as a basic wizard, though.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to