Bug 153659 - Easy way to make extra legend objects
Summary: Easy way to make extra legend objects
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-08 00:24 UTC by D. V. Wiebe
Modified: 2007-12-11 20:30 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 D. V. Wiebe 2007-12-08 00:24:28 UTC
Version:           1.5.0 (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

It is occasionally handy to be able to have more than one legend object drawn on a plot.  Typically, I use this when trying to shoe-horn large legends around curves by breaking the large legend up into smaller pieces.  Currently the only way to create a legend object is to 

It would be convenient to be able to create new, empty legend objects in the same manner that other empty objects (labels, plots, &c.) can be created.  Ie. with an entry in the "Graphics Mode" sub-menu.  

I can get around the current restriction by doing the following:

1. Create the first legend object for the plot using the Edit Plot dialogue.
2. In Layout Mode, drag the first legend object off the plot.
3. Create the second legend object for the plot using the Edit Plot dialogue, again (dragging the legend off the plot rightly causes the "Show Legend" checkbox to be unchecked).
4. Drag the first legend back onto the plot.

This works fine (ie. I end up with two legend objects drawn as sub-objects to the plot object), but it feels decidedly kludgey.
Comment 1 D. V. Wiebe 2007-12-08 00:30:47 UTC
(you may pretend that the sentence fragment in the first paragraph ends in "use the Edit Plot dialogue." if you wish)
Comment 2 Andrew Walker 2007-12-11 20:30:38 UTC
SVN commit 747354 by arwalker:

BUG:153659 allow user to add legend objects easily

 M  +1 -0      kst/kstui.rc  
 M  +1 -1      kst/pics/Makefile.am  
 AM            kst/pics/kst_gfx_legend.png  
 M  +1 -0      libkstapp/Makefile.am  
 M  +14 -1     libkstapp/kst.cpp  
 M  +1 -0      libkstapp/kst.h  
 A             libkstapp/kstgfxlegendmousehandler.cpp   [License: GPL (v2+)]
 A             libkstapp/kstgfxlegendmousehandler.h   [License: GPL (v2+)]
 M  +2 -3      libkstapp/kstviewlegend.cpp  


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