<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to work out how to create custom panels using the panel_widget entry in PropertyGroups. I have created a simple<o:p></o:p></p>
<p class="MsoNormal">panel using QT designer and an associated class (subclassing pqPropertyGroupWidget). I use addPropertyLink to link the ui to<o:p></o:p></p>
<p class="MsoNormal">the paraview filter and then set up the servermanager xml.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This mostly seems to work, the initial values in the ui and the filter are as set in the xml and correctly update when I change them in
<o:p></o:p></p>
<p class="MsoNormal">the ui. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, one of the widget in the panel is a combo-box which I specify the entries of in the xml, this remains blank.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is a shortened example of the servermanager xml I am using and the addPropertyLink code I have used. Any hints as to where
<o:p></o:p></p>
<p class="MsoNormal">I am going wrong, or what I might have missed out would be gratefully received.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">IntVectorProperty</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">command</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">SetMode</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">SetMode</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">number_of_elements</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">1</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">default_values</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">1</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  <EnumerationDomain name=”enum”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">    <Entry text=”First entry” value=”1”/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">    <Entry text=”Second entry” value=”2”/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  </EnumerationDomain></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white"></</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">IntVectorProperty</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">PropertyGroup</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">label</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">""</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white">panel_widget</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">MyPanel</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  <Property name=”SetMode” function=”LinkSetMode”/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue"></PropertyGroup><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">smproperty =
</span><span style="font-size:9.5pt;font-family:Consolas;color:gray;background:white;mso-highlight:white">smgroup</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">->GetProperty(</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">LinkSetMode</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">if</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> (smproperty !=
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">nullptr</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">){</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"> 
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">this</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">->addPropertyLink(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">this</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">->Internals->ComboMode,
</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white">"currentIndex"</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,
</span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white">SIGNAL</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">(activated(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">int</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">)),
 smproperty);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black">}</span><o:p></o:p></p>
</div>

<p>**********************************************************************</p><p>

Please consider the environment. Only print this email if absolutely necessary.</p><p>This email contains information that is private and confidential and is intended only for the addressee.<br />If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br />Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br />system management and security reasons.<br />Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br />Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</p><p>**********************************************************************</p>

</body>
</html>