[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Mar 3 17:55:42 CET 2005
CVS commit by arwalker:
Sort the legend alignment in the more logical left, center, right order.
M +2 -16 kstplotdialog_i.cpp 1.120
--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp #1.119:1.120
@@ -66,23 +66,10 @@ const MajorTickSpacing MajorTickSpacings
const LegendAlignment LegendAlignments[] = {
- { I18N_NOOP("Right"), AlignmentRight },
+ { I18N_NOOP("Left"), AlignmentLeft },
{ I18N_NOOP("Center"), AlignmentCentre },
- { I18N_NOOP("Left"), AlignmentLeft }
+ { I18N_NOOP("Right"), AlignmentRight }
};
-// const LegendLayout LegendLayouts[] = {
-// { I18N_NOOP("Top left"), LeftTop },
-// { I18N_NOOP("Top center"), CentreTop },
-// { I18N_NOOP("Top right"), RightTop },
-// { I18N_NOOP("Middle left"), LeftCentre },
-// { I18N_NOOP("Middle center"), CentreCentre },
-// { I18N_NOOP("Middle right"), RightCentre },
-// { I18N_NOOP("Bottom left"), LeftBottom },
-// { I18N_NOOP("Bottom center"), CentreBottom },
-// { I18N_NOOP("Bottom right"), RightBottom }
-// };
-
const unsigned int numMajorTickSpacings = sizeof( MajorTickSpacings ) / sizeof( MajorTickSpacing );
-//const unsigned int numLegendLayouts = sizeof( LegendLayouts ) / sizeof( LegendLayout );
const unsigned int numLegendAlignments = sizeof( LegendAlignments ) / sizeof( LegendAlignment );
@@ -532,5 +519,4 @@ void KstPlotDialogI::applyAppearance(Kst
}
- //layout = LegendLayouts[LegendPosition->currentItem()].type;
alignment = LegendAlignments[LegendAlignment->currentItem()].type;
More information about the Kst
mailing list