Git commit 722dd770512492a6d0c3108098f9bf91a27a1106 by Stefan Gerlach.
Committed on 16/07/2016 at 08:26.
Pushed by sgerlach into branch 'frameworks'.

Merge branch 'master' into frameworks

Conflicts:
        src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
        src/commonfrontend/worksheet/WorksheetView.cpp

M  +4    -3    doc/index.docbook
M  +9    -4    src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
M  +19   -9    src/commonfrontend/worksheet/WorksheetView.cpp
M  +1    -0    src/kdefrontend/dockwidgets/XYFourierFilterCurveDock.cpp

http://commits.kde.org/labplot/722dd770512492a6d0c3108098f9bf91a27a1106

diff --cc src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
index 067691b,fc1c191..25e46c8
--- a/src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
+++ b/src/backend/worksheet/plots/cartesian/CartesianPlot.cpp
@@@ -347,17 -346,23 +347,22 @@@ void CartesianPlot::initDefault(Type ty
  
  void CartesianPlot::initActions() {
        //"add new" actions
 -      addCurveAction = new KAction(KIcon("labplot-xy-curve"), 
i18n("xy-curve"), this);
 -      addEquationCurveAction = new 
KAction(KIcon("labplot-xy-equation-curve"), i18n("xy-curve from a mathematical 
equation"), this);
 +      addCurveAction = new QAction(QIcon::fromTheme("labplot-xy-curve"), 
i18n("xy-curve"), this);
 +      addEquationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-equation-curve"), i18n("xy-curve from a 
mathematical equation"), this);
+ // no icons yet
 -      addInterpolationCurveAction = new KAction(i18n("xy-curve from an 
interpolation"), this);
 -      addSmoothCurveAction = new KAction(i18n("xy-curve from a smooth"), 
this);
 -      addFitCurveAction = new KAction(KIcon("labplot-xy-fit-curve"), 
i18n("xy-curve from a fit to data"), this);
 -      addFourierFilterCurveAction = new KAction(i18n("xy-curve from a Fourier 
filter"), this);
 -      addFourierTransformCurveAction = new KAction(i18n("xy-curve from a 
Fourier transform"), this);
 -//    addInterpolationCurveAction = new 
KAction(KIcon("labplot-xy-interpolation-curve"), i18n("xy-curve from an 
interpolation"), this);
 -//    addSmoothCurveAction = new KAction(KIcon("labplot-xy-smooth-curve"), 
i18n("xy-curve from a smooth"), this);
 -//    addFourierFilterCurveAction = new 
KAction(KIcon("labplot-xy-fourier_filter-curve"), i18n("xy-curve from a Fourier 
filter"), this);
 -//    addFourierTransformCurveAction = new 
KAction(KIcon("labplot-xy-fourier_transform-curve"), i18n("xy-curve from a 
Fourier transform"), this);
 -
 -      addLegendAction = new KAction(KIcon("text-field"), i18n("legend"), 
this);
 -      addHorizontalAxisAction = new KAction(KIcon("labplot-axis-horizontal"), 
i18n("horizontal axis"), this);
 -      addVerticalAxisAction = new KAction(KIcon("labplot-axis-vertical"), 
i18n("vertical axis"), this);
 -      addCustomPointAction = new KAction(KIcon("draw-cross"), i18n("custom 
point"), this);
++      addInterpolationCurveAction = new QAction(i18n("xy-curve from an 
interpolation"), this);
++      addSmoothCurveAction = new QAction(i18n("xy-curve from a smooth"), 
this);
 +      addFitCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fit-curve"), i18n("xy-curve from a fit to 
data"), this);
-       addFourierFilterCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("xy-curve 
from a Fourier filter"), this);
-       addFourierTransformCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("xy-curve 
from a Fourier transform"), this);
-       addInterpolationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), i18n("xy-curve from 
an interpolation"), this);
-       addSmoothCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("xy-curve from a 
smooth"), this);
++      addFourierFilterCurveAction = new QAction(i18n("xy-curve from a Fourier 
filter"), this);
++      addFourierTransformCurveAction = new QAction(i18n("xy-curve from a 
Fourier transform"), this);
++//    addInterpolationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), i18n("xy-curve from 
an interpolation"), this);
++//    addSmoothCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("xy-curve from a 
smooth"), this);
++//    addFourierFilterCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("xy-curve 
from a Fourier filter"), this);
++//    addFourierTransformCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("xy-curve 
from a Fourier transform"), this);
 +      addLegendAction = new QAction(QIcon::fromTheme("text-field"), 
i18n("legend"), this);
 +      addHorizontalAxisAction = new 
QAction(QIcon::fromTheme("labplot-axis-horizontal"), i18n("horizontal axis"), 
this);
 +      addVerticalAxisAction = new 
QAction(QIcon::fromTheme("labplot-axis-vertical"), i18n("vertical axis"), this);
 +      addCustomPointAction = new QAction(QIcon::fromTheme("draw-cross"), 
i18n("custom point"), this);
  
        connect(addCurveAction, SIGNAL(triggered()), SLOT(addCurve()));
        connect(addEquationCurveAction, SIGNAL(triggered()), 
SLOT(addEquationCurve()));
diff --cc src/commonfrontend/worksheet/WorksheetView.cpp
index 737efb6,4e508e1..9dbcc8c
--- a/src/commonfrontend/worksheet/WorksheetView.cpp
+++ b/src/commonfrontend/worksheet/WorksheetView.cpp
@@@ -272,52 -272,62 +272,62 @@@ void WorksheetView::initActions() 
        connect(cartesianPlotMouseModeActionGroup, SIGNAL(triggered(QAction*)), 
SLOT(cartesianPlotMouseModeChanged(QAction*)));
  
        QActionGroup* cartesianPlotAddNewActionGroup = new QActionGroup(this);
 -      addCurveAction = new KAction(KIcon("labplot-xy-curve"), 
i18n("xy-curve"), cartesianPlotAddNewActionGroup);
 -      addEquationCurveAction = new 
KAction(KIcon("labplot-xy-equation-curve"), i18n("xy-curve from a mathematical 
equation"), cartesianPlotAddNewActionGroup);
 +      addCurveAction = new QAction(QIcon::fromTheme("labplot-xy-curve"), 
i18n("xy-curve"), cartesianPlotAddNewActionGroup);
 +      addEquationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-equation-curve"), i18n("xy-curve from a 
mathematical equation"), cartesianPlotAddNewActionGroup);
-       addInterpolationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), i18n("xy-curve from 
an interpolation"), cartesianPlotAddNewActionGroup);
-       addSmoothCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("xy-curve from a 
smooth"), cartesianPlotAddNewActionGroup);
+ // no icons yet
 -      addInterpolationCurveAction = new KAction(i18n("xy-curve from an 
interpolation"), cartesianPlotAddNewActionGroup);
 -      addSmoothCurveAction = new KAction(i18n("xy-curve from a smooth"), 
cartesianPlotAddNewActionGroup);
 -      addFourierFilterCurveAction = new KAction(i18n("xy-curve from a Fourier 
filter"), cartesianPlotAddNewActionGroup);
 -      addFourierTransformCurveAction = new KAction(i18n("xy-curve from a 
Fourier transform"), cartesianPlotAddNewActionGroup);
 -//    addInterpolationCurveAction = new 
KAction(KIcon("labplot-xy-interpolation-curve"), i18n("xy-curve from an 
interpolation"), cartesianPlotAddNewActionGroup);
 -//    addSmoothCurveAction = new KAction(KIcon("labplot-xy-smooth-curve"), 
i18n("xy-curve from a smooth"), cartesianPlotAddNewActionGroup);
 -      addFitCurveAction = new KAction(KIcon("labplot-xy-fit-curve"), 
i18n("xy-curve from a fit to data"), cartesianPlotAddNewActionGroup);
 -//    addFourierFilterCurveAction = new 
KAction(KIcon("labplot-xy-fourier_filter-curve"), i18n("xy-curve from a Fourier 
filter"), cartesianPlotAddNewActionGroup);
 -//    addFourierTransformCurveAction = new 
KAction(KIcon("labplot-xy-fourier_transform-curve"), i18n("xy-curve from a 
Fourier transform"), cartesianPlotAddNewActionGroup);
 -      addLegendAction = new KAction(KIcon("text-field"), i18n("legend"), 
cartesianPlotAddNewActionGroup);
 -      addHorizontalAxisAction = new KAction(KIcon("labplot-axis-horizontal"), 
i18n("horizontal axis"), cartesianPlotAddNewActionGroup);
 -      addVerticalAxisAction = new KAction(KIcon("labplot-axis-vertical"), 
i18n("vertical axis"), cartesianPlotAddNewActionGroup);
 -      addCustomPointAction = new KAction(KIcon("draw-cross"), i18n("custom 
point"), cartesianPlotAddNewActionGroup);
++      addInterpolationCurveAction = new QAction(i18n("xy-curve from an 
interpolation"), cartesianPlotAddNewActionGroup);
++      addSmoothCurveAction = new QAction(i18n("xy-curve from a smooth"), 
cartesianPlotAddNewActionGroup);
 +      addFitCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fit-curve"), i18n("xy-curve from a fit to 
data"), cartesianPlotAddNewActionGroup);
-       addFourierFilterCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("xy-curve 
from a Fourier filter"), cartesianPlotAddNewActionGroup);
-       addFourierTransformCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("xy-curve 
from a Fourier transform"), cartesianPlotAddNewActionGroup);
++      addFourierFilterCurveAction = new QAction(i18n("xy-curve from a Fourier 
filter"), cartesianPlotAddNewActionGroup);
++      addFourierTransformCurveAction = new QAction(i18n("xy-curve from a 
Fourier transform"), cartesianPlotAddNewActionGroup);
++//    addInterpolationCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), i18n("xy-curve from 
an interpolation"), cartesianPlotAddNewActionGroup);
++//    addSmoothCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("xy-curve from a 
smooth"), cartesianPlotAddNewActionGroup);
++//    addFourierFilterCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("xy-curve 
from a Fourier filter"), cartesianPlotAddNewActionGroup);
++//    addFourierTransformCurveAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("xy-curve 
from a Fourier transform"), cartesianPlotAddNewActionGroup);
 +      addLegendAction = new QAction(QIcon::fromTheme("text-field"), 
i18n("legend"), cartesianPlotAddNewActionGroup);
 +      addHorizontalAxisAction = new 
QAction(QIcon::fromTheme("labplot-axis-horizontal"), i18n("horizontal axis"), 
cartesianPlotAddNewActionGroup);
 +      addVerticalAxisAction = new 
QAction(QIcon::fromTheme("labplot-axis-vertical"), i18n("vertical axis"), 
cartesianPlotAddNewActionGroup);
 +      addCustomPointAction = new QAction(QIcon::fromTheme("draw-cross"), 
i18n("custom point"), cartesianPlotAddNewActionGroup);
        connect(cartesianPlotAddNewActionGroup, SIGNAL(triggered(QAction*)), 
SLOT(cartesianPlotAddNew(QAction*)));
  
        // Analysis menu
-       addInterpolationAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), 
i18n("Interpolation"), cartesianPlotAddNewActionGroup);
-       addSmoothAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("Smooth"), 
cartesianPlotAddNewActionGroup);
+ // no icons yet
 -      addInterpolationAction = new KAction(i18n("Interpolation"), 
cartesianPlotAddNewActionGroup);
 -      addSmoothAction = new KAction(i18n("Smooth"), 
cartesianPlotAddNewActionGroup);
 -      addFitAction = new KAction(KIcon("labplot-xy-fit-curve"), i18n("Data 
fitting"), cartesianPlotAddNewActionGroup);
 -      addFourierFilterAction = new KAction(i18n("Fourier filter"), 
cartesianPlotAddNewActionGroup);
 -      addFourierTransformAction = new KAction(i18n("Fourier transform"), 
cartesianPlotAddNewActionGroup);
 -//    addInterpolationAction = new 
KAction(KIcon("labplot-xy-interpolation-curve"), i18n("Interpolation"), 
cartesianPlotAddNewActionGroup);
 -//    addSmoothAction = new KAction(KIcon("labplot-xy-smooth-curve"), 
i18n("Smooth"), cartesianPlotAddNewActionGroup);
 -//    addFourierFilterAction = new 
KAction(KIcon("labplot-xy-fourier_filter-curve"), i18n("Fourier filter"), 
cartesianPlotAddNewActionGroup);
 -//    addFourierTransformAction = new 
KAction(KIcon("labplot-xy-fourier_transform-curve"), i18n("Fourier transform"), 
cartesianPlotAddNewActionGroup);
++      addInterpolationAction = new QAction(i18n("Interpolation"), 
cartesianPlotAddNewActionGroup);
++      addSmoothAction = new QAction(i18n("Smooth"), 
cartesianPlotAddNewActionGroup);
 +      addFitAction = new QAction(QIcon::fromTheme("labplot-xy-fit-curve"), 
i18n("Data fitting"), cartesianPlotAddNewActionGroup);
-       addFourierFilterAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("Fourier 
filter"), cartesianPlotAddNewActionGroup);
-       addFourierTransformAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("Fourier 
transform"), cartesianPlotAddNewActionGroup);
++      addFourierFilterAction = new QAction(i18n("Fourier filter"), 
cartesianPlotAddNewActionGroup);
++      addFourierTransformAction = new QAction(i18n("Fourier transform"), 
cartesianPlotAddNewActionGroup);
++//    addInterpolationAction = new 
QAction(QIcon::fromTheme("labplot-xy-interpolation-curve"), 
i18n("Interpolation"), cartesianPlotAddNewActionGroup);
++//    addSmoothAction = new 
QAction(QIcon::fromTheme("labplot-xy-smooth-curve"), i18n("Smooth"), 
cartesianPlotAddNewActionGroup);
++//    addFourierFilterAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_filter-curve"), i18n("Fourier 
filter"), cartesianPlotAddNewActionGroup);
++//    addFourierTransformAction = new 
QAction(QIcon::fromTheme("labplot-xy-fourier_transform-curve"), i18n("Fourier 
transform"), cartesianPlotAddNewActionGroup);
  
        QActionGroup* cartesianPlotNavigationGroup = new QActionGroup(this);
 -      scaleAutoAction = new KAction(KIcon("labplot-auto-scale-all"), 
i18n("auto scale"), cartesianPlotNavigationGroup);
 +      scaleAutoAction = new 
QAction(QIcon::fromTheme("labplot-auto-scale-all"), i18n("auto scale"), 
cartesianPlotNavigationGroup);
        scaleAutoAction->setData(CartesianPlot::ScaleAuto);
 -      scaleAutoXAction = new KAction(KIcon("labplot-auto-scale-x"), 
i18n("auto scale X"), cartesianPlotNavigationGroup);
 +      scaleAutoXAction = new 
QAction(QIcon::fromTheme("labplot-auto-scale-x"), i18n("auto scale X"), 
cartesianPlotNavigationGroup);
        scaleAutoXAction->setData(CartesianPlot::ScaleAutoX);
 -      scaleAutoYAction = new KAction(KIcon("labplot-auto-scale-y"), 
i18n("auto scale Y"), cartesianPlotNavigationGroup);
 +      scaleAutoYAction = new 
QAction(QIcon::fromTheme("labplot-auto-scale-y"), i18n("auto scale Y"), 
cartesianPlotNavigationGroup);
        scaleAutoYAction->setData(CartesianPlot::ScaleAutoY);
 -      zoomInAction = new KAction(KIcon("zoom-in"), i18n("zoom in"), 
cartesianPlotNavigationGroup);
 +      zoomInAction = new QAction(QIcon::fromTheme("zoom-in"), i18n("zoom 
in"), cartesianPlotNavigationGroup);
        zoomInAction->setData(CartesianPlot::ZoomIn);
 -      zoomOutAction = new KAction(KIcon("zoom-out"), i18n("zoom out"), 
cartesianPlotNavigationGroup);
 +      zoomOutAction = new QAction(QIcon::fromTheme("zoom-out"), i18n("zoom 
out"), cartesianPlotNavigationGroup);
        zoomOutAction->setData(CartesianPlot::ZoomOut);
 -      zoomInXAction = new KAction(KIcon("labplot-zoom-in-x"), i18n("zoom in 
X"), cartesianPlotNavigationGroup);
 +      zoomInXAction = new QAction(QIcon::fromTheme("labplot-zoom-in-x"), 
i18n("zoom in X"), cartesianPlotNavigationGroup);
        zoomInXAction->setData(CartesianPlot::ZoomInX);
 -      zoomOutXAction = new KAction(KIcon("labplot-zoom-out-x"), i18n("zoom 
out X"), cartesianPlotNavigationGroup);
 +      zoomOutXAction = new QAction(QIcon::fromTheme("labplot-zoom-out-x"), 
i18n("zoom out X"), cartesianPlotNavigationGroup);
        zoomOutXAction->setData(CartesianPlot::ZoomOutX);
 -      zoomInYAction = new KAction(KIcon("labplot-zoom-in-y"), i18n("zoom in 
Y"), cartesianPlotNavigationGroup);
 +      zoomInYAction = new QAction(QIcon::fromTheme("labplot-zoom-in-y"), 
i18n("zoom in Y"), cartesianPlotNavigationGroup);
        zoomInYAction->setData(CartesianPlot::ZoomInY);
 -      zoomOutYAction = new KAction(KIcon("labplot-zoom-out-y"), i18n("zoom 
out Y"), cartesianPlotNavigationGroup);
 +      zoomOutYAction = new QAction(QIcon::fromTheme("labplot-zoom-out-y"), 
i18n("zoom out Y"), cartesianPlotNavigationGroup);
        zoomOutYAction->setData(CartesianPlot::ZoomOutY);
 -      shiftLeftXAction = new KAction(KIcon("labplot-shift-left-x"), 
i18n("shift left X"), cartesianPlotNavigationGroup);
 +      shiftLeftXAction = new 
QAction(QIcon::fromTheme("labplot-shift-left-x"), i18n("shift left X"), 
cartesianPlotNavigationGroup);
        shiftLeftXAction->setData(CartesianPlot::ShiftLeftX);
 -      shiftRightXAction = new KAction(KIcon("labplot-shift-right-x"), 
i18n("shift right X"), cartesianPlotNavigationGroup);
 +      shiftRightXAction = new 
QAction(QIcon::fromTheme("labplot-shift-right-x"), i18n("shift right X"), 
cartesianPlotNavigationGroup);
        shiftRightXAction->setData(CartesianPlot::ShiftRightX);
 -      shiftUpYAction = new KAction(KIcon("labplot-shift-up-y"), i18n("shift 
up Y"), cartesianPlotNavigationGroup);
 +      shiftUpYAction = new QAction(QIcon::fromTheme("labplot-shift-up-y"), 
i18n("shift up Y"), cartesianPlotNavigationGroup);
        shiftUpYAction->setData(CartesianPlot::ShiftUpY);
 -      shiftDownYAction = new KAction(KIcon("labplot-shift-down-y"), 
i18n("shift down Y"), cartesianPlotNavigationGroup);
 +      shiftDownYAction = new 
QAction(QIcon::fromTheme("labplot-shift-down-y"), i18n("shift down Y"), 
cartesianPlotNavigationGroup);
        shiftDownYAction->setData(CartesianPlot::ShiftDownY);
  
        connect(cartesianPlotNavigationGroup, SIGNAL(triggered(QAction*)), 
SLOT(cartesianPlotNavigationChanged(QAction*)));
_______________________________________________
kde-doc-english mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-doc-english

Reply via email to