Bug 145435 - KstdataObject style plugins do not support default scalar values
Summary: KstdataObject style plugins do not support default scalar values
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.4.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 21:46 UTC by Andrew Walker
Modified: 2007-09-26 23:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2007-05-14 21:46:58 UTC
Version:           1.4.0 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

The default value for the bin plugin's 'Bins:' value is 0, although this is not a valid value.

STEPS TO REPRODUCE:

Start Kst
Create at least one vector
Select Data... New Plugin...
Select the Bin plugin

RESULTS:

The default value given for 'Bins:' is zero

EXPECTED RESULTS:

The default value given for 'Bins:' is one or greater
Comment 1 Andrew Walker 2007-05-14 22:14:04 UTC
Could someone attach a note on how to define default values with the new style plugins.
Comment 2 Andrew Walker 2007-05-20 19:27:16 UTC
Or to put it another way, can default values be defined for the new style plugins?
Comment 3 Andrew Walker 2007-09-26 23:57:51 UTC
SVN commit 717448 by arwalker:

BUG:145435 added mechanism to specify default values for input scalars. Added a default value to the bin plugin as an example

 M  +9 -8      libkstapp/kstbasicdialog_i.cpp  
 M  +1 -1      libkstapp/kstbasicdialog_i.h  
 M  +49 -25    libkstmath/kstbasicplugin.cpp  
 M  +4 -0      libkstmath/kstbasicplugin.h  
 M  +11 -11    plugins/bin/bin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=717448