Hi Daniel, <br><br>Can we consider the case closed ? <br><br>Could you document the issue on the bugtracker (label: Feature Request) ? <br>See <a href="https://github.com/commontk/CTK/issues">https://github.com/commontk/CTK/issues</a><br>

<br>Thanks<br>Jc<br><br><div class="gmail_quote">On Sat, Jun 4, 2011 at 10:41 PM, Daniel Haehn <span dir="ltr">&lt;<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi Danielle,<br>
<br>
that is absolutely correct!<br>
<br>
Maybe it would be easiest to just fire a<br>
d-&gt;workflow-&gt;currentStepChanged(this) signal when<br>
ctkWorkflowStep::setName or setDescription are called? Then, the<br>
groupbox would be automatically updated.<br>
<br>
Nevertheless, it has no high priority for me since I now set the name<br>
and description of the step in its constructor - before adding it to<br>
the workflow.<br>
<br>
Cheers,<br>
<font color="#888888">Daniel<br>
</font><div><div></div><div class="h5"><br>
On Fri, Jun 3, 2011 at 4:13 PM, Danielle Pace &lt;<a href="mailto:danielle.pace@kitware.com">danielle.pace@kitware.com</a>&gt; wrote:<br>
&gt; Hi Daniel,<br>
&gt; Actually, I think you exposed something important here.<br>
&gt; I&#39;m assuming, from python, that you wrote something similar to:<br>
&gt; - create step 1 (with no name/description)<br>
&gt; - create step 2 (with no name/description)<br>
&gt; - create workflow widget and add steps<br>
&gt; - display workflow widget<br>
&gt; - set name/description for steps 1 and 2<br>
&gt; - expected to see workflow update, and it didn&#39;t<br>
&gt; Is this correct?  I think we are missing some signals on ctkWorkflowStep<br>
&gt; such as NameChanged(QString) and DescriptionChanged(QString) that the<br>
&gt; ctkWorkflowGroupBox should be listening to.<br>
&gt; Perhaps you could still post your snippet of python code that wasn&#39;t<br>
&gt; working, so I can verify that it is an ordering of commands that we should<br>
&gt; support?<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Danielle<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Jun 3, 2011 at 3:57 PM, Daniel Haehn &lt;<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Danielle,<br>
&gt;&gt;<br>
&gt;&gt; thanks to your response I checked it again and you are right: it was<br>
&gt;&gt; my mistake :)<br>
&gt;&gt;<br>
&gt;&gt; If the name and description of the steps are set before the steps are<br>
&gt;&gt; added to the workflow, it all works as expected.<br>
&gt;&gt;<br>
&gt;&gt; I set the stuff after adding it and of course it did not recognize it<br>
&gt;&gt; until the signal was fired.<br>
&gt;&gt;<br>
&gt;&gt; Thanks for the great work!<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Daniel<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jun 3, 2011 at 3:44 PM, Danielle Pace &lt;<a href="mailto:danielle.pace@kitware.com">danielle.pace@kitware.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi Daniel,<br>
&gt;&gt; &gt; You shouldn&#39;t have to call the currenStepChanged signal directly.  Can<br>
&gt;&gt; &gt; you<br>
&gt;&gt; &gt; please post your bit of code that is not working to the CTK developers<br>
&gt;&gt; &gt; mailing list, and I will take a look?<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Danielle<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Jun 3, 2011 at 3:21 PM, Julien Finet &lt;<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ---------- Forwarded message ----------<br>
&gt;&gt; &gt;&gt; From: Daniel Haehn &lt;<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>&gt;<br>
&gt;&gt; &gt;&gt; Date: Fri, Jun 3, 2011 at 3:13 PM<br>
&gt;&gt; &gt;&gt; Subject: Re: [Ctk-developers] Setting name and description of<br>
&gt;&gt; &gt;&gt; ctkWorkflowWidgetStep<br>
&gt;&gt; &gt;&gt; To: <a href="mailto:ctk-developers@commontk.org">ctk-developers@commontk.org</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi guys,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I got it:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; the ctkWorkflowGroupBox listens for the currentStepChanged signal to<br>
&gt;&gt; &gt;&gt; update the title (==name) and subTitle (==description) for the current<br>
&gt;&gt; &gt;&gt; step.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So maybe it makes sense to invoke this signal when the<br>
&gt;&gt; &gt;&gt; ctkWorkflow.start() gets called?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If I do it manually like that, it works:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;      self.workflow.start()<br>
&gt;&gt; &gt;&gt;      self.workflow.currentStepChanged(steps[0])<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Cheers,<br>
&gt;&gt; &gt;&gt; Daniel<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Fri, Jun 3, 2011 at 12:17 PM, Daniel Haehn &lt;<a href="mailto:haehn@bwh.harvard.edu">haehn@bwh.harvard.edu</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt; Hi devels,<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; in C++ I can do<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;  this-&gt;setName(&quot;Title of step&quot;);<br>
&gt;&gt; &gt;&gt; &gt;  this-&gt;setDescription(&quot;Instructions&quot;);<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; in a ctkWorkflowWidgetStep, which then get nicely displayed in the<br>
&gt;&gt; &gt;&gt; &gt; associated ctkWorkflowGroupBox.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; In Python, the same methods can be accessed but the<br>
&gt;&gt; &gt;&gt; &gt; ctkWorkflowGroupBox does not seem to show them.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Do I need to trigger an update on the box or something similar?<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Thank you!<br>
&gt;&gt; &gt;&gt; &gt; Daniel<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Ctk-developers mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Danielle Pace, M.ESc.<br>
&gt;&gt; &gt; Research and Development Engineer<br>
&gt;&gt; &gt; Kitware Inc.,<br>
&gt;&gt; &gt; North Carolina Office<br>
&gt;&gt; &gt; <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt; <a href="tel:919-969-6990%20X%20319" value="+19199696990">919-969-6990 X 319</a><br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Danielle Pace, M.ESc.<br>
&gt; Research and Development Engineer<br>
&gt; Kitware Inc.,<br>
&gt; North Carolina Office<br>
&gt; <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; <a href="tel:919-969-6990%20X%20319" value="+19199696990">919-969-6990 X 319</a><br>
&gt;<br>
_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>