[RkWard-devel] plug-in min="" max="", and other things

Stefan Rödiger stefan_roediger at gmx.de
Sun Feb 19 18:18:22 UTC 2006


Hi there,

a new question about the plug-in stuff.

I attempted to  write a simple  plug-in. Here is the xml interface part:

<!DOCTYPE rkplugin>
<!--This is the "Normal quantile" plugin-->
<document>
  <code file="code.php" />
  <dialog label="Normal quantile" >
    <tabbook>
    <tab label="Normal quantile" >
        <frame label="Minimum and Maximum are [-10000000, 10000000]"> 
</frame>
        <frame>
        <spinbox max_precision="2" default_precision="2" type="real" 
min="-10000000" id="n" initial="25" max="10000000" depend="probs" 
label="number of observations" />
        <spinbox max_precision="2" default_precision="2" type="real" 
min="-10000000" id="mean" initial="0" max="10000000" depend="probs" 
label="mu (mean)" />
        <spinbox max_precision="2" default_precision="2" type="real" 
min="-10000000" id="sd" initial="1" max="10000000" depend="probs" 
label="sigma (standard deviation" />
        </frame>
      </tab>
    </tabbook>
  </dialog>
</document>

and the corresponding php code:


<?
    function preprocess () {
    }
   
    function calculate () {
?>rk.temp = qnorm (p = <? getRK ("n"); ?>, mean = <? getRK ("mean"); ?>, 
sd = <? getRK ("sd"); ?>))
rk.temp.date = date()
<?
    }
   
    function printout () {

        //produce the output
?>

...
My question is do I have to define the min and the max ? When I don't 
assign values (e.g. min="" instead min="-10000000", This value is 
defined by me and has no real sence.) the spinbox will not work. But I 
don't want to limit these values since for some purposes larger values 
are needed.
And can I simply write Text in a <frame></frame> with some formatting 
(and is formatting (italic, bold, ...) in the interface possible in 
general)?
Moreover I need something like a textbox where the user can add a little 
comment for his own documentation which will be later shown in the HTML 
output. At the moment I have just the possibility to enter the date of 
creation. Can I find this in a XML documentation?
Furthermore I'm interested if there is working code snipped for 
charting. Unfortunately is the scatter-plot not working. I guess it will 
be easier with r2html (as described by you some posts before).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stefan_roediger.vcf
Type: text/x-vcard
Size: 209 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20060219/8ebfa894/attachment.vcf>


More information about the Rkward-devel mailing list