<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 03/17/2012 01:00 PM, Rahul Sharma wrote:
<blockquote
cite="mid:CAC3EFMje2HWCb5hx=5HPJOaKpoBti4s31tkb8QUKF72WKWQ6Wg@mail.gmail.com"
type="cite">So, the work to do is this.<br>
I have to remove close button and set the visibility of Sliders
check box and of the Show Sliders Menu only when the user<br>
enters the any parameter in the function.<br>
Should I go on doing it then?<br>
</blockquote>
This is my opinion, yes. If anyone objects, please speak up!<br>
<br>
Anne-Marie<br>
<blockquote
cite="mid:CAC3EFMje2HWCb5hx=5HPJOaKpoBti4s31tkb8QUKF72WKWQ6Wg@mail.gmail.com"
type="cite">
<br>
<div class="gmail_quote">On Sat, Mar 17, 2012 at 3:22 PM,
Anne-Marie Mahfouf <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:annemarie.mahfouf@free.fr">annemarie.mahfouf@free.fr</a>></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;">
<div class="HOEnZb">
<div class="h5">On 03/17/2012 09:47 AM, todd rme wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
On Sun, Mar 4, 2012 at 7:59 PM, Anne-Marie Mahfouf<br>
<<a moz-do-not-send="true"
href="mailto:annemarie.mahfouf@free.fr"
target="_blank">annemarie.mahfouf@free.fr</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
On 03/04/2012 06:56 PM, todd rme wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">
On Sun, Mar 4, 2012 at 6:38 PM, Anne-Marie Mahfouf<br>
<<a moz-do-not-send="true"
href="mailto:annemarie.mahfouf@free.fr"
target="_blank">annemarie.mahfouf@free.fr</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">
On 03/04/2012 09:02 AM, Rahul Sharma wrote:<br>
<br>
Hi,<br>
I looked into the view.cpp updatesliders()
function, and I have arrived<br>
at<br>
the conclusion that the variable needSliderWindow
does have a use here. I<br>
think that the control if() statement, in which
the bool variable<br>
needSliderWindow is set to true, it checks whether
the Slider checkbox in<br>
the left panel (function tab) is checked or not,
depending on which it<br>
sets<br>
the checkable bool of m_menuSliderAction to true.<br>
<br>
And I think the intention was that when the Slider
checkbox is checked,<br>
the<br>
slider window should pop-up and when it is
unchecked slider window should<br>
hide.<br>
<br>
So the first thing would be to fix this.<br>
Should closing the Sliders window uncheck the
Slider checkbox? What<br>
should<br>
happen when the Sliders window is closed?<br>
Also why is there the possibility to check Slider
when there is no Slider<br>
use? Like in a function witn no parameter.<br>
<br>
Anne-Marie<br>
<br>
<br>
And as you were saying there is no need to have
that as a toggle. That<br>
can<br>
be done in another way and just setting<br>
m_menuSliderAction->setchecked(true)<br>
does not fulfill the aim here.<br>
<br>
And one more thing I wanted to point out here is
about my patch.<br>
Actually,<br>
when I looked into the code of the
ksliderwindow.cpp, I found out that in<br>
order to handle the check of the
m_menuSliderAction there is a slot<br>
called<br>
closeevent which emits a windowclosed signal when
the window is closed,<br>
which is only called when closeevent is called.
But the close button of<br>
the<br>
slider window uses a done() (perhaps inheritted
from QDialog as far as I<br>
remember) to close the window which does not emit
a closeevent and the<br>
the<br>
m_menuSliderAction becomes faulty, so I just fixed
that.<br>
<br>
-Regards<br>
Rahul Sharma<br>
(NUM_1 on <a moz-do-not-send="true"
href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>)<br>
</blockquote>
Slightly off-topic, but why is this is a window and
not a dock panel?<br>
Doc panels can be pulled off and used as separate
windows, but they<br>
can also be integrated into the GUI.<br>
<br>
</blockquote>
We are trying to find out the use of this Sliders
dialog. As I said, it is<br>
not needed in plots without parameters so a dock for
this would take space<br>
without any purpose. Dialogs do not have the same
scope than docks and<br>
probably only a fraction of users make use of the
sliders.<br>
<br>
<br>
Anne-Marie<br>
</blockquote>
Docks are not permanent, they can be opened and closed.
Look at<br>
dolphin, it has 5 docs, only 1 of which is enabled by
default if I<br>
remember correctly. The other can be enabled or
disabled at will from<br>
a menu or toolbar button.<br>
<br>
In this regard it would be little different from the
current system.<br>
Someone clicks the menu item to open it, and it opens in
a dock. Then<br>
if the person clicks the menu item again, or clicks the
close button<br>
on the doc, it disappears and the other docs reshape to
fill the<br>
space.<br>
<br>
Further, the doc could be pulled off to act as a
standalone window if<br>
you want, meaning users can have it behave identically
to how it<br>
currently behaves. So we lose nothing, but we gain
improvements in<br>
window management.<br>
<br>
-Todd<br>
_______________________________________________<br>
kde-edu mailing list<br>
<a moz-do-not-send="true"
href="mailto:kde-edu@mail.kde.org" target="_blank">kde-edu@mail.kde.org</a><br>
<a moz-do-not-send="true"
href="https://mail.kde.org/mailman/listinfo/kde-edu"
target="_blank">https://mail.kde.org/mailman/listinfo/kde-edu</a><br>
</blockquote>
<br>
</div>
</div>
Sliders are only relevant with functions with parameters.<br>
1) Even without a parameter you can currently check Sliders
which makes no sense: in my opinion when there is no parameter
(for example f(x)=sin(x)), the Slider checkbox in the function
tab should be disabled (grayed) and so should be the View
-> Show Sliders option.<br>
2) When there is a parameter (for example f(x,a)= sin(x+a)),
without any slider the parameter value is set to 0. You now
need to set the parameter value with the sliders (you can set
4 values) and you can also move a slider to show the students
the parameter variation on the plot.<br>
So you need the Slider checkbox and the View-> Show Sliders
enabled.<br>
View -> Show Sliders shows the Sliders dialog which allows
to set the sliders values. If you uncheck this through
View->Show Sliders, the dialog hides. The bug is the Close
button which does not uncheck View->Show Sliders (addressed
by patch). Shouldn't the Close button be removed in this
dialog?<br>
<br>
I don't see on my laptop how to fit another dock instead of
this dialog, Todd. And there's no need to have this dock when
you deal with no parameters (people would add this dock and
leave it probably).<br>
<br>
Personally I would disable the Sliders when there's no
parameters and remove the Close button in the dialog, leaving
the View -> Show Sliders as it is.<span class="HOEnZb"><font
color="#888888"><br>
<br>
Anne-Marie</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
kde-edu mailing list<br>
<a moz-do-not-send="true"
href="mailto:kde-edu@mail.kde.org" target="_blank">kde-edu@mail.kde.org</a><br>
<a moz-do-not-send="true"
href="https://mail.kde.org/mailman/listinfo/kde-edu"
target="_blank">https://mail.kde.org/mailman/listinfo/kde-edu</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
kde-edu mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kde-edu@mail.kde.org">kde-edu@mail.kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/kde-edu">https://mail.kde.org/mailman/listinfo/kde-edu</a>
</pre>
</blockquote>
<br>
</body>
</html>