<div dir="ltr">HI Utkarsh,<div>Great, Let me try it. <div>Currently, I have declared it like </div><div><br></div><div><pre class="" style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:13px;padding:10px;margin-top:0px;margin-bottom:0px;word-break:break-all;word-wrap:normal;color:rgb(51,51,51);border-left-width:1px;border-style:none none none solid;border-left-color:rgb(187,187,187);border-radius:0px;line-height:1.5!important"><code style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:inherit;padding:0px;color:inherit;border-radius:0px;word-wrap:normal;background-color:transparent"><span id="LC2650" class="" style="display:inline"><span class="" style="color:navy"><StringVectorProperty</span> <span class="" style="color:teal">animateable=</span><span class="" style="color:rgb(221,17,68)">"0"</span></span>
<span id="LC2651" class="" style="display:inline">                            <span class="" style="color:teal">command=</span><span class="" style="color:rgb(221,17,68)">"SetFileName"</span></span>
<span id="LC2652" class="" style="display:inline">                            <span class="" style="color:teal">name=</span><span class="" style="color:rgb(221,17,68)">"FileName"</span></span>
<span id="LC2653" class="" style="display:inline">                            <span class="" style="color:teal">number_of_elements=</span><span class="" style="color:rgb(221,17,68)">"1"</span></span>
<span id="LC2654" class="" style="display:inline">                            <span class="" style="color:teal">panel_visibility=</span><span class="" style="color:rgb(221,17,68)">"never"</span><span class="" style="color:navy">></span></span>
<span id="LC2655" class="" style="display:inline">        <span class="" style="color:navy"><FileListDomain</span> <span class="" style="color:teal">name=</span><span class="" style="color:rgb(221,17,68)">"files"</span> <span class="" style="color:navy">/></span></span></code></pre><pre class="" style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:13px;padding:10px;margin-top:0px;margin-bottom:0px;word-break:break-all;word-wrap:normal;color:rgb(51,51,51);border-left-width:1px;border-style:none none none solid;border-left-color:rgb(187,187,187);border-radius:0px;line-height:1.5!important"><code style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:inherit;padding:0px;color:inherit;border-radius:0px;word-wrap:normal;background-color:transparent"><span class="" style="display:inline"><span class="" style="color:navy">.... </span></span></code></pre>so that I can extract the "FileName" as a string. However, with this, I don't have an option to select the files using pop-up.</div><div><br></div><div>If I understood it correctly, I need to use the following part along with the one I already have ?</div><div><br></div><div><pre class="" style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:13px;padding:10px;margin-top:0px;margin-bottom:0px;word-break:break-all;word-wrap:normal;color:rgb(51,51,51);border-left-width:1px;border-style:none none none solid;border-left-color:rgb(187,187,187);border-radius:0px;line-height:1.5!important"><code style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:inherit;padding:0px;color:inherit;border-radius:0px;word-wrap:normal;background-color:transparent"><span id="LC2659" class="" style="display:inline;background-color:rgb(248,248,248)"><span class="" style="color:navy"><StringVectorProperty</span> <span class="" style="color:teal">animateable=</span><span class="" style="color:rgb(221,17,68)">"0"</span></span>
<span id="LC2660" class="" style="display:inline;background-color:rgb(248,248,248)">                            <span class="" style="color:teal">command=</span><span class="" style="color:rgb(221,17,68)">"SetQFileName"</span></span>
<span id="LC2661" class="" style="display:inline;background-color:rgb(248,248,248)">                            <span class="" style="color:teal">name=</span><span class="" style="color:rgb(221,17,68)">"QFileName"</span></span>
<span id="LC2662" class="" style="display:inline;background-color:rgb(248,248,248)">                            <span class="" style="color:teal">number_of_elements=</span><span class="" style="color:rgb(221,17,68)">"1"</span></span>
<span id="LC2663" class="" style="display:inline;background-color:rgb(248,248,248)">                            <span class="" style="color:teal">panel_visibility=</span><span class="" style="color:rgb(221,17,68)">"default"</span><span class="" style="color:navy">> .....</span></span></code></pre><pre class="" style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:13px;padding:10px;margin-top:0px;margin-bottom:0px;word-break:break-all;word-wrap:normal;color:rgb(51,51,51);border-left-width:1px;border-style:none none none solid;border-left-color:rgb(187,187,187);border-radius:0px;line-height:1.5!important"><code style="font-family:Menlo,'Liberation Mono',Consolas,'DejaVu Sans Mono','Ubuntu Mono','Courier New','andale mono','lucida console',monospace;font-size:inherit;padding:0px;color:inherit;border-radius:0px;word-wrap:normal;background-color:transparent"><span class="" style="display:inline;background-color:rgb(248,248,248)"><span class="" style="color:navy"><br></span></span></code></pre>Is it what you mean by adding FileListDomain ?</div><div><br></div><div>Thanks,</div><div>Chiranjib</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 6:56 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Simply add the "FileListDomain" to the property as done for the QFileName property here: <a href="https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml#L2659-2667" target="_blank">https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml#L2659-2667</a><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Apr 27, 2015 at 6:27 AM, Chiranjib Sur <span dir="ltr"><<a href="mailto:sur.chiranjib@gmail.com" target="_blank">sur.chiranjib@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div>I am trying to write my own filter (C++) and want to deal with reading an existing file. I intend implement  a functionality where file selection will results into popping up a window like when one does, File->Open action.</div><div><br></div><div>In the following screen capture, I want to implement that functionality so that when one clicks mouse inside the text box, File->Open windows will popup and the user can select the file he/she wants. (The alternative is to provide the file name by typing which is error prone and I want to avoid that) </div><div><br></div><div><img src="cid:ii_14cfa6435b54dfcf" alt="Inline image 1" width="369" height="29"><br></div><div><br></div><div>After reading various posts from the previous mailing threads and the other documentation, I narrowed down my idea to use the class pqFileDialog. Is this the right choice or are there some alternatives? Are there any place where, I can read and learn about usage of this class ?</div><div><br></div><div>Google search points me towards solutions in pure Qt which looks like :</div><div><br></div><div><a href="http://stackoverflow.com/questions/14372012/qt-standard-dialogs-example-open-file" target="_blank">http://stackoverflow.com/questions/14372012/qt-standard-dialogs-example-open-file</a><br></div><div><br></div><div><br></div><div>Any suggestions from the experts?</div><div><br></div><div>Thanks,</div><div>Chiranjib</div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>