Bug 118773 - top labels alignment
Summary: top labels alignment
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: unspecified Solaris
: HI wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-21 10:01 UTC by Nicolas Brisset
Modified: 2006-03-17 19:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proposed patch (26.80 KB, patch)
2006-03-17 01:40 UTC, Andrew Walker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2005-12-21 10:01:13 UTC
Version:           1.2.0_devel (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.4.3
OS:                SunOS (sun4u) release 5.8

Top labels used to be created (with the data file name) when the corresponding checkbox was set in the datawizard. This no longer works.

Another issue (which is more serious in view of publication-quality plots) is that top labels are aligned to the left and can't be moved. I'd suggest adding an "Alignment" combobox to the right of the toplabel with "Left", "Center", "Right" choices. Other axis labels work well and I don't think they should also have this.
Comment 1 George Staikos 2005-12-22 06:40:17 UTC
r395136 | netterfield | 2005-03-05 16:29:20 -0500 (Sat, 05 Mar 2005) | 4 lines

New rules for default labels for curves:
-get rid of file name in top label - it is generally not useful.
-For 1-3 curves, v->label() in Y axes, otherwise, default to legend box on.



Therefore part 1 is wontfix for now.  Please only post one report per bug.
Comment 2 Nicolas Brisset 2005-12-22 09:35:22 UTC
OK for the wontfix, but in that case the checkbox should be removed from the datawizard.
Comment 3 George Staikos 2005-12-22 15:18:13 UTC
On Thursday 22 December 2005 03:35, Nicolas Brisset wrote:
> 09:35 ------- OK for the wontfix, but in that case the checkbox should be
> removed from the datawizard.


  Not necessarily.  We could in theory generate top labels still.  It's just 
that the default one for VCurves is empty.
Comment 4 Andrew Walker 2006-01-26 19:50:35 UTC
Should be fixed for 1.2.1 release
Comment 5 Andrew Walker 2006-03-17 01:40:24 UTC
Created attachment 15155 [details]
Proposed patch

Also fixes problem with x-axis transformation being enabled
Comment 6 Andrew Walker 2006-03-17 19:49:46 UTC
SVN commit 519643 by arwalker:

BUG:118773 Allow user to set the top label alignment.

 M  +19 -8     kst2dplot.cpp  
 M  +1 -1      kst2dplot.h  
 M  +42 -3     kstplotdialog_i.cpp  
 M  +3 -5      kstplotlabel.cpp  
 M  +141 -142  plotdialog.ui