<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>If the elements you want to display in you combobox are always the same, simply use:</div><div><br></div>
<div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 13px; "> <IntVectorProperty<br> name="ActiveDimension"<br> command="SetActiveDimension"<br>
number_of_elements="1"<br> default_values="0"></span></span></div><div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 13px; "><div>
<EnumerationDomain name="enum"></div><div> <Entry value="1" text="X"/></div><div> <Entry value="2" text="Y"/></div><div> <Entry value="3" text="Z"/></div>
<div> </EnumerationDomain></div> </IntVectorProperty></span></span></div><div><br></div><div>and then rename you combobox to "ActiveDimension" in qt designer.</div><div><br></div><div>That's should be enough to do what you are looking for. </div>
<div><br></div><div>If you want to fill dynamically your combobox depending on some inputs, it's harder than that but can be done.</div><div><br></div><div>for you first question, you can always use immediate_update=1 instead of information_only to make sure that your value is pushed immediately to the server.</div>
<div><br></div><div>Nehme</div><div><br></div><div><br></div><div><br></div></span><div><br><div class="gmail_quote">2009/12/11 Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well,<br>
That helped. At least something is getting set on the server side now. Copy-Paste error. Doh. Alas, the value getting set is not the correct value.<div class="im"><br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<br>
<br></div><div><div></div><div class="h5">
On Dec 11, 2009, at 5:15 PM, Utkarsh Ayachit wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why do you have the "information_only" attribute ? That's used only<br>
for properties whose value are obtained from the server -side and are<br>
never pushed "to" the server. Simply remove that attribute, and it<br>
should work -- I think.<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 5:12 PM, Michael Jackson<br>
<<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, I did not know about that, but adding it still did not help.<br>
<br>
--<br>
Mike Jackson <<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>><br>
<br>
On Dec 11, 2009, at 5:02 PM, Utkarsh Ayachit wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you forgetting a this->proxy()->UpdateVTKObjects() call after you<br>
have changed the value?<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 4:23 PM, Michael Jackson<br>
<<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In my ServerManager XML file I have the following:<br>
<br>
<IntVectorProperty<br>
name="ActiveDimension"<br>
command="SetActiveDimension"<br>
number_of_elements="1"<br>
default_values="0"<br>
information_only="1"><br>
</IntVectorProperty><br>
<br>
And in my Client GUI code (which extends pqLoadedFormObjectPanel) I have<br>
the<br>
following code:<br>
vtkSMProperty* smProperty =<br>
this->proxy()->GetProperty("ActiveDimension");<br>
if (NULL == smProperty)<br>
{<br>
DebugTrace(<< "SMProperty was NULL for 'ActiveDimension'" );<br>
}<br>
vtkSMIntVectorProperty* activeDimProperty =<br>
vtkSMIntVectorProperty::SafeDownCast(smProperty);<br>
activeDimProperty->SetElement(0, index);<br>
<br>
Doing a std::cout on the server side indicates that the Server side<br>
property<br>
(ActiveDimension) is NOT getting set. What exactly am I doing wrong?<br>
<br>
I would also like to have a QComboBox in the Gui that is hooked up to a<br>
server side property. What is the best way to go about that?<br>
<br>
Thanks<br>
_________________________________________________________<br>
Mike Jackson <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer Dayton, Ohio<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
_______________________________________________<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>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>