So long as object inspector panels, don't change any server manager
properties anywhere except in the accept(), you don't need to worry
about undo-redo.
The calculator has a bug (which is being fixed currently) though the
undo-redo work correctly, the panel never updates to reflect the
current underlying property value and hence never updates.

Utkarsh

On Tue, Feb 16, 2010 at 6:12 AM, Paul Edwards <[email protected]> wrote:
> Hi,
> I have a custom object panel but I do not know how to make this update with
> the undo/redo framework.  The current operation is that all the widgets are
> linked to the setModified signal, the "Accept" method will gather the
> information from the widgets and update the server, and the "Reset" method
> will get the data from the server and update the GUI.  The buttons are
> working as expected except for the undo where the GUI is not updated to
> reflect the changes - is there a method I need to implement to do this?  I
> look at pqCalculatorPanel in ParaView and noticed that it doesn't update
> with undo either (is this a bug?)....
> Thanks in advance for any help,
> Paul
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to