Bug #152182: A Little Progress

Rahul Sharma rahulveera2009 at gmail.com
Thu Mar 22 09:16:51 UTC 2012


Hi Anne,
Find attached five .diff files.
Here is the description how the patches work:
Initially, when you open kmplot, the View->Show Slider menu is disabled
(grayed).
Now, when you enter a function with parameter, and check the Slider
checkbox ( I have
not yet implemented the part that, only when you enter a parameter in the
function, the
checkbox is enabled to be checked, I am working on it), the Slider window
pops-up
and View->Show Slider menu is enabled now, to be clicked. Now, to close the
Slider
window, you can check the Slider checkbox again, or you can click the
View->Show Slider
menu.The View->Show Slider menu closes and opens the Slider window, as you
click it
(like toggling), but there isn't any tick mark there.

Now, the problem is that, I don't know, from which part of the code, is the
View->Show
Slider menu is being activated. I tried various methods of View.cpp.
Initially, I thought
that View->updateSliders() function is responsible for that ( but I was
wrong ). And, this
is causing trouble, since I wanted that when you delete all the functions,
the View->Show
Slider menu should be disabled again ( as obvious it is ). But this is not
happening. I wanted
to encounter this problem first. And later, I could do the Slider checkbox
part so that it is
ready to be checked only when user enters parameter.

You may find some things which you may not like, such as, I have not
removed the
View::sliderWindowClosed() and View::slidersWindowClosed functions. Yes,
the code is
not clean. I would make it clean as soon as the problem is resolved ( in
the final patch).

-Regards
 Rahul Sharma
 (NUM_1 on irc.freenode.net)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parameterswidget_cpp.diff
Type: text/x-patch
Size: 1957 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parameterswidget_h.diff
Type: text/x-patch
Size: 484 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view_cpp.diff
Type: text/x-patch
Size: 2126 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view_h.diff
Type: text/x-patch
Size: 1006 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment-0003.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maindlg_cpp.diff
Type: text/x-patch
Size: 836 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120322/353dbc41/attachment-0004.diff>


More information about the kde-edu mailing list