diff --git a/src/plugins/widget/GraphPanelWidget/i18n/GraphPanelWidget_fr.ts b/src/plugins/widget/GraphPanelWidget/i18n/GraphPanelWidget_fr.ts index 1f4d58a11d..f6d4a88931 100644 --- a/src/plugins/widget/GraphPanelWidget/i18n/GraphPanelWidget_fr.ts +++ b/src/plugins/widget/GraphPanelWidget/i18n/GraphPanelWidget_fr.ts @@ -50,6 +50,22 @@ Specify custom axes for the graph panel Spécifier des axes personnalisés pour le panneau graphique + + Graph Panel Settings... + Paramètres Panneau Graphique... + + + Customise the graph panel + Paramètrer le panneau graphique + + + Graphs Settings... + Paramètres Graphes... + + + Customise the graphs + Paramètrer les graphes + Logarithmic X Axis Logarithmique Axe des X diff --git a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp index a99d24994b..bedc256149 100644 --- a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp +++ b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp @@ -727,6 +727,8 @@ GraphPanelPlotWidget::GraphPanelPlotWidget(const GraphPanelPlotWidgets &pNeighbo mExportToAction = Core::newAction(this); mCopyToClipboardAction = Core::newAction(this); mCustomAxesAction = Core::newAction(this); + mGraphPanelSettingsAction = Core::newAction(this); + mGraphsSettingsAction = Core::newAction(this); mLogarithmicXAxisAction = Core::newAction(true, this); mLogarithmicYAxisAction = Core::newAction(true, this); mZoomInAction = Core::newAction(this); @@ -739,6 +741,10 @@ GraphPanelPlotWidget::GraphPanelPlotWidget(const GraphPanelPlotWidgets &pNeighbo this, SLOT(copyToClipboard())); connect(mCustomAxesAction, SIGNAL(triggered(bool)), this, SLOT(customAxes())); + connect(mGraphPanelSettingsAction, SIGNAL(triggered(bool)), + this, SLOT(graphPanelSettings())); + connect(mGraphsSettingsAction, SIGNAL(triggered(bool)), + this, SLOT(graphsSettings())); connect(mLogarithmicXAxisAction, SIGNAL(triggered(bool)), this, SLOT(toggleLogAxisX())); connect(mLogarithmicYAxisAction, SIGNAL(triggered(bool)), @@ -760,6 +766,9 @@ GraphPanelPlotWidget::GraphPanelPlotWidget(const GraphPanelPlotWidgets &pNeighbo mContextMenu->addAction(pSynchronizeYAxisAction); } + mContextMenu->addSeparator(); + mContextMenu->addAction(mGraphPanelSettingsAction); + mContextMenu->addAction(mGraphsSettingsAction); mContextMenu->addSeparator(); mContextMenu->addAction(mLogarithmicXAxisAction); mContextMenu->addAction(mLogarithmicYAxisAction); @@ -807,6 +816,10 @@ void GraphPanelPlotWidget::retranslateUi() tr("Copy the contents of the graph panel to the clipboard")); I18nInterface::retranslateAction(mCustomAxesAction, tr("Custom Axes..."), tr("Specify custom axes for the graph panel")); + I18nInterface::retranslateAction(mGraphPanelSettingsAction, tr("Graph Panel Settings..."), + tr("Customise the graph panel")); + I18nInterface::retranslateAction(mGraphsSettingsAction, tr("Graphs Settings..."), + tr("Customise the graphs")); I18nInterface::retranslateAction(mLogarithmicXAxisAction, tr("Logarithmic X Axis"), tr("Enable/disable logarithmic scaling on the X axis")); I18nInterface::retranslateAction(mLogarithmicYAxisAction, tr("Logarithmic Y Axis"), @@ -1937,6 +1950,22 @@ void GraphPanelPlotWidget::customAxes() //============================================================================== +void GraphPanelPlotWidget::graphPanelSettings() +{ +//---ISSUE1426--- TO BE DONE... +qDebug(">>> GraphPanelPlotWidget::graphPanelSettings()..."); +} + +//============================================================================== + +void GraphPanelPlotWidget::graphsSettings() +{ +//---ISSUE1426--- TO BE DONE... +qDebug(">>> GraphPanelPlotWidget::graphsSettings()..."); +} + +//============================================================================== + void GraphPanelPlotWidget::toggleLogAxisX() { // Enable/disable logarithmic scaling on the X axis diff --git a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.h b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.h index 3ae7a5ae0c..b8030fc603 100644 --- a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.h +++ b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.h @@ -311,6 +311,8 @@ class GRAPHPANELWIDGET_EXPORT GraphPanelPlotWidget : public QwtPlot, QAction *mCopyToClipboardAction; QAction *mSynchronizeXAxisAction; QAction *mSynchronizeYAxisAction; + QAction *mGraphPanelSettingsAction; + QAction *mGraphsSettingsAction; QAction *mLogarithmicXAxisAction; QAction *mLogarithmicYAxisAction; QAction *mCustomAxesAction; @@ -370,6 +372,8 @@ private slots: void exportTo(); void copyToClipboard(); void customAxes(); + void graphPanelSettings(); + void graphsSettings(); void toggleLogAxisX(); void toggleLogAxisY(); void zoomIn();