Hi Takuya, Thanks a lot for your suggestion. I looked at the readers.xml file and found an example in vtkExodusIIReader. I copied that to a test reader of mine and it worked like a charm. But, I then put the same code in my custom *filter* and it did not work, the text box and browser widget simply did not appear in the properties panel.
Does anyone have sample code (hopefully just XML spec) for adding a browser button to a filter properties panel, not a reader ? thanks Kate > Hi kate, > > Perhaps you can try adding <FileListDomain name="files"/> to the > string vector property that holds file name. Several examples are in > readers.xml in the source distribution of PV. > > Takuya > > Takuya OSHIMA, Ph.D. > Faculty of Engineering, Niigata University > 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN > > From: [email protected] > Subject: [Paraview] attach filebrowser to box in properties panel and does > RequestData() block dialogs > Date: Mon, 19 Sep 2011 15:38:29 -0400 > >> Hi, >> >> Is there a way to attach a filebrowser to a textbox or dropdown list in >> the properties panel in a custom filter via the XML spec ? >> >> Since I didn't see the way to do that I added a pqFileDialog dialog() >> call >> in my filter RequestData() method. It came up ok but did not respond to >> any mouse/keyboard input. I tried moving the dialog() call to my filter >> constructor, just to see if it worked there, and it worked fine. >> Is mouse/keyboard interaction blocked during execute of RequestData() ? >> For the server/parent parameters to dialog() I used >> pqApplicationCore::instance()->getServerManagerModel()->getItemAtIndex<pqServer*>(0); >> pqCoreUtilities::mainWidget() >> >> >> (I know its gross to try to put a dialog() in RequestData(), but we at >> least >> temporarily need a little junk file from the user, not worth writing a >> reader >> for, would prefer to add filebrowser to properties panel if I can do >> that >> easily). >> >> thanks >> kate > _______________________________________________ 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
