Discussion:
[Kst] [Bug 293230] New: Legend entries can no longer be set manually
Nicolas Brisset
2012-02-03 17:59:43 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=293230

Summary: Legend entries can no longer be set manually
Product: kst
Version: 2.0.4
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: ***@kde.org
ReportedBy: ***@eurocopter.com


Version: 2.0.4
OS: Linux

In Kst 1.x it was possible to set legend entries used for the curves manually
and independently from the curve name, so that it was possible to tune legends
regardless of the sometimes weird names in vectors - or for some advanced
usage. This is no longer possible with Kst 2.x and should be restored.
Example situation where this can be useful: see below.

Reproducible: Always

Steps to Reproduce:
- load CStk and PStk vs time from TWIN1xxx in sample_data/
- duplicate with the change data file tool to show from TWIN2 as well
- assign color per file: e.g. red for TWIN1 and blue for TWIN2
- try to show one global legend which explains that red = TWIN1 and blue=TWIN2
(I activate the legend for one plot and move it to the bottom of the window)

Actual Results:
The only way to achieve the expected result is to change the curve names in the
plot so that the legend contents are as wished. But then the curve names are
only the file names, which makes it hard to handle when you have many curves
and want to locate one in the data manager.

Expected Results:
It should be possible to set the text used for the legend entry of a curve
independently from the curve's name.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Nicolas Brisset
2012-02-03 18:02:41 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=293230





--- Comment #1 from Nicolas Brisset <nicolas brisset eurocopter com> 2012-02-03 18:02:41 ---
I'd add a property to the curve class (bool _manualLegend) and 2 entries in the
edit curve dialog, for instance below the curve name: a checkbox "Manual
legend" and when set it'd activate a QLineEdit to set the legend text.
When drawing the legend, we'd just check if we should use the manual entry or
the curve name.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Nicolas Brisset
2012-02-03 18:07:54 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=293230





--- Comment #2 from Nicolas Brisset <nicolas brisset eurocopter com> 2012-02-03 18:07:54 ---
Hum, apparently there is already a _manualDescriptiveName property which is
used when set. But... where can it be set???
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
b***@kde.org
2018-10-11 01:42:20 UTC
Permalink
https://bugs.kde.org/show_bug.cgi?id=293230

***@astro.utoronto.ca changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Latest Commit| |https://commits.kde.org/kst
| |-plot/eeddc65e4fac824a66825
| |349b49c66c11429e267
Status|CONFIRMED |RESOLVED

--- Comment #3 from ***@astro.utoronto.ca ---
Git commit eeddc65e4fac824a66825349b49c66c11429e267 by Barth Netterfield.
Committed on 05/10/2018 at 15:28.
Pushed by netterfield into branch 'master'.

Curve Dialog gets a manual Legend Name entry.

This overrides all automatic naming.

M +31 -2 src/libkstapp/curvedialog.cpp
M +6 -0 src/libkstapp/curvedialog.h
M +60 -1 src/libkstapp/curvetab.ui
M +13 -4 src/libkstapp/datadialog.cpp
M +1 -0 src/libkstapp/datadialog.h
M +22 -42 src/libkstapp/legenditem.cpp
M +47 -1 src/libkstmath/relation.cpp
M +8 -1 src/libkstmath/relation.h

https://commits.kde.org/kst-plot/eeddc65e4fac824a66825349b49c66c11429e267
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...