[OpenWalnut-Dev] Momentarily blocking the GUI interface?

Sebastian Eichelbaum eichelbaum at informatik.uni-leipzig.de
Mon Feb 6 14:17:04 CET 2012


Hi David

In OpenWalnut's concept of the data flow graph intentionally does not allow blocking modules/properties. The ideal solution in our concept to your issue is to ensure that your module aborts its calculations when new property values are set and starts a new calculation with your new properties. This is not always feasible. In these cases, the best and simpelst solution is to query all properties at the beginning of your operation into some temporary varianbles and using them during the operation. This ensures consistency of all the values during your calculation:

void myoperation( ... )
{
    double something = m_somethingProperty->get( true );
    int something2 = m_something2Property->get( true );

    // do something with  something and something2;
    ...
}

Hope this helped? If not, do not hesitate to ask.

Bye
Sebastian

On Mon, 06 Feb 2012, David Moreno-Dominguez wrote:

> Hello,
> I am developing a module for walnut, but I am not very versed in high end programming.
> I would like to ask if there is any easy command or way, in order to "freeze" the gui while a heavy computation is made (that might take several seconds) in order to prevent the user from changing controls or triggering any action during this time.
> After reading through the template and all i find is the trigger-triggered and trigger-ready, which freeze the trigger that was just used, but not anything else.
> It is not a vital issue so there's no big problem if there is no way to do this, but I had though it might be a good idea to prevent user errors.
> 
> Regards,
> 
> David Moreno-Dominguez
> PhD Student
> Methods & Development Unit: Cortical Networks and Cognitive Functions
> Max Planck Institute for Human Cognitive and Brain Sciences
> Stephanstraße 1A, 04103 Leipzig, Germany
> Phone: +49 341 9940-2418
> Email: moreno at cbs.mpg.de
> http://www.cbs.mpg.de/~moreno
> 
> _______________________________________________
> OpenWalnut-Dev mailing list
> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
> 

-- 
Dipl.-Inf. Sebastian Eichelbaum
Universität Leipzig
Institut für Informatik
Abteilung Bild- und Signalverarbeitung
PF 100920
D-04009 Leipzig


More information about the OpenWalnut-Dev mailing list