[RkWard-devel] plugin input field

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Mon Feb 27 19:54:20 UTC 2006


> To sum it up. A "simple" field to enter some text is not easy. Using a
> varslot would be the way to go if I want to use more than one value.
> This are bad news. @Thomas. To explain what I want just start Rcmdr and
> try the distributions (probabilities) and you will see what I mean. My
> way allows only one value (done by spinboxes).

Ok, I see. However, I'm not quite sure, how to approach this best (any ideas 
are welcome!). To list some of what this field should do:

1) Allow user to enter one or more numeric values directly, separated by 
spaces or commas
2) Allow user to mix in named objects
3) Allow user to select such named object?
4) Allow user to use R syntax?

3 and 4 are not supported in Rcmdr, and probably in this use case you would 
not really need them anyway. The reason I'm listing them, is that I'm not 
sure whether there might be some different use cases, where you'd want more 
flexibility.
Anyway. A clone of what Rcmdr seems to be doing could be achieved by doing 
this:
- Use an <input>-element
- in the PHP code do the following:

<?
$r_string = "c (" . preg_replace ("/[, ]+/", ", ", getRK_val ("probs")) . ")";

echo ("myfunc (" . $r_string . ")");
?>

Of course, if similar functionality is needed in more places besides the 
distributions, it would make sense to add easier support for this in rkward. 
Do you think there are other such places?

> About the package issue do I need to fill it in wish-list or will you
> keep it in mind?

Most likely I will remember. If not, feel free to remind me. Filing a wishlist 
request is just one of several possibilities, but certainly one that makes 
sure the wish will be remembered one day or another automatically.

> I'll will sent the plug-ins within the next one and a half week to you.
> Since my work is still for from professional I need some time to fix.
> The plotting of the distributions is not yet implemented and as
> mentioned only one value is given as output (unfortunately). Moreover
> all is still simple in comparison to the existing plug-ins. Using if
> then else constructions is still "to advanced" for me (I make to many
> mistakes).
> And I need to test them before I sent them away. Some of the "code" was
> done by real dirty copy and paste from a similar plug-in. I added some
> further screens hots to show how simple all is.

Ok, of course I don't want to push you. But just to be clear: There's 
absolutely no need to get everything perfect and complete on the first 
attempt.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20060227/a6476bd8/attachment.sig>


More information about the Rkward-devel mailing list