The panel should be listening to changes in the server manager properties to update the panels. This will also help in the case where a property is updated from the python shell.
Utkarsh On Wed, Feb 17, 2010 at 6:34 AM, Paul Edwards <[email protected]> wrote: > I am only updating in the accept() and I am having the same problem as the > calculator - undo/redo is actually working, just not updating the GUI. What > will you be doing to fix this for the calculator as I need to do the same > for my plugin? (or could the paraview framework be updated to call reset() > after the server properties are updated? - this would fix both the > calculator and my plugin.....) > Thanks, > Paul > > On 16 February 2010 15:04, Utkarsh Ayachit <[email protected]> > wrote: >> >> 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
