You can manually connect the checkbox's state-change signal to pqObjectPanel::setModified() slot, this will make the Apply button green when the user click on the checkbox. Then override pqObjectPanel::accept() and pqObjectPanel::reset() to update/reset the checkbox's state and set it on the corresponding property yourself.
Utkarsh On Fri, Jul 10, 2009 at 1:19 PM, Rafael March<[email protected]> wrote: > Hi, > > I have a filter which implements a custom object panel, through extension of > the pqNamedObjectPanel class. Generally, I don't match the widget names with > the Server Manager Properties names, but I am able to change the properties > by calling vtkSMProxy::UpdateProperty("PropertyName",1). So, I have to hit > ParaView's APPLY button only when the filter is instantiated. When I set the > SM properties due to some GUI changes, ParaView never requires the APPLY > button to be hit. > > Now I've added a checkbox to the GUI, and when its state changes, I want > that some IntVectorProperty be changed JUST when the user press APPLY. I > mean, I want that APPLY be activated and waiting to be pressed when I change > the state of the checkbox, and when this is done, the Server state should be > changed. How can I achieve this ? > > Regards, > Rafael. > > > _______________________________________________ > 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
