<div dir="ltr"><div><div><div><div>Hi Utkarsh,<br></div>I am revisiting this section now. I was wondering if you or anybody else in your team ever considered to give some code snippets in the wiki page? For example, when I browse the wiki section you have mentioned, it would have been really helpful if once could browse the code snippet for the corresponding screenshot (or the pointer to the code snippets from the PV code base).<br></div>Just a suggestions.<br><br></div>Thanks,<br></div>Chiranjib<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 5, 2015 at 12:31 AM, Chiranjib Sur <span dir="ltr"><<a href="mailto:sur.chiranjib@gmail.com" target="_blank">sur.chiranjib@gmail.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">Utkarsh,<div>Thank you so much for the pointers. Let me try these, and I will keep you posted if I face any difficulties.</div><div><br></div><div>Thanks,</div><div>Chiranjib</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 4, 2015 at 7:15 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"><div>Chiranjib</div><br><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>1. Enable a checkbox and a corresponding passive button become active, e.g. (fig from left to fig at right)</div><div><br></div><div><img src="cid:ii_14f917cc6a1ae317" alt="Inline image 1" height="67" width="544"><br></div><div><br></div></div></blockquote><div><br></div></span><div>In this particular case, we do this by implementing a custom pqPropertyWidget subclass that handles this. The class of interest is pqCubeAxesPropertyWidget.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div>2. How to select enable a drop down menu active, e.g.</div><div><br></div><div><img src="cid:ii_14f917d5419462db" alt="Inline image 2" height="95" width="544"><br></div></div></blockquote><div><br></div></span><div>In this particular case, this too is managed by a custom widget (pqPointSpriteControls). However, one can use PropertyWidgetDecorators (described here <a href="http://www.paraview.org/Wiki/ParaView/Properties_Panel#pqPropertyWidgetDecorator_.28base-class:_QObject.29" target="_blank">http://www.paraview.org/Wiki/ParaView/Properties_Panel#pqPropertyWidgetDecorator_.28base-class:_QObject.29</a>) for similar effect. Just search for Decorator in the filters.xml and you'll see several examples of using decorator to enable/disable widgets based on values of other properties. You can also define new decorators through plugins.</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>3. How to bring a new button after selecting some menu options (checkbox, drop down etc.)</div><div><br></div><div><img src="cid:ii_14f917df9289df62" alt="Inline image 3" height="77" width="544"><br></div><div><br></div><div><br></div></div></blockquote><div><br></div></span><div>Custom widget here too. You can write a pqPropertyWidget subclass that handles such customizations. A pqPropertyWidget can correspond to a single property or a group of properties.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Finally, is it possible to add two checkbox menu side by side. Currently, when I code it I get them in successive lines.</div></div></blockquote><div><br></div></span><div>You know it...custom widget for two properties. But those in a property group and create a new widget for that group.</div><div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>