Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
25498bdf
Commit
25498bdf
authored
8 years ago
by
Lottie Greenwood
Browse files
Options
Downloads
Patches
Plain Diff
Refs #16326 removed multiPeak functions
parent
37f37721
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MantidPlot/src/ApplicationWindow.cpp
+1
-64
1 addition, 64 deletions
MantidPlot/src/ApplicationWindow.cpp
MantidPlot/src/ApplicationWindow.h
+4
-4
4 additions, 4 deletions
MantidPlot/src/ApplicationWindow.h
with
5 additions
and
68 deletions
MantidPlot/src/ApplicationWindow.cpp
+
1
−
64
View file @
25498bdf
...
@@ -1231,9 +1231,6 @@ void ApplicationWindow::initMainMenu() {
...
@@ -1231,9 +1231,6 @@ void ApplicationWindow::initMainMenu() {
decayMenu = new QMenu(this);
decayMenu = new QMenu(this);
decayMenu->setObjectName("decayMenu");
decayMenu->setObjectName("decayMenu");
multiPeakMenu = new QMenu(this);
multiPeakMenu->setObjectName("multiPeakMenu");
analysisMenu = new QMenu(this);
analysisMenu = new QMenu(this);
analysisMenu->setObjectName("analysisMenu");
analysisMenu->setObjectName("analysisMenu");
connect(analysisMenu, SIGNAL(aboutToShow()), this,
connect(analysisMenu, SIGNAL(aboutToShow()), this,
...
@@ -8187,7 +8184,7 @@ void ApplicationWindow::showCursor() {
...
@@ -8187,7 +8184,7 @@ void ApplicationWindow::showCursor() {
/** Switch on the multi-peak selecting tool for fitting
/** Switch on the multi-peak selecting tool for fitting
* with the Fit algorithm of multiple peaks on a single background
* with the Fit algorithm of multiple peaks on a single background
*/
*/
void ApplicationWindow::selectMultiPeak(bool showFitPropertyBrowser) {
void ApplicationWindow::selectMultiPeak(bool showFitPropertyBrowser) {
MultiLayer *plot = dynamic_cast<MultiLayer *>(activeWindow(MultiLayerWindow));
MultiLayer *plot = dynamic_cast<MultiLayer *>(activeWindow(MultiLayerWindow));
if (!plot)
if (!plot)
...
@@ -9283,12 +9280,6 @@ void ApplicationWindow::analysisMenuAboutToShow() {
...
@@ -9283,12 +9280,6 @@ void ApplicationWindow::analysisMenuAboutToShow() {
analysisMenu->addAction(actionFitGauss);
analysisMenu->addAction(actionFitGauss);
analysisMenu->addAction(actionFitLorentz);
analysisMenu->addAction(actionFitLorentz);
// The tool doesn't work yet (DataPickerTool)
// multiPeakMenu->clear();
// multiPeakMenu = analysisMenu->addMenu (tr("Fit &Multi-peak"));
// multiPeakMenu->addAction(actionMultiPeakGauss);
// multiPeakMenu->addAction(actionMultiPeakLorentz);
analysisMenu->addSeparator();
analysisMenu->addSeparator();
analysisMenu->addAction(actionShowFitDialog);
analysisMenu->addAction(actionShowFitDialog);
} else if (isOfType(w, "Matrix")) {
} else if (isOfType(w, "Matrix")) {
...
@@ -12894,14 +12885,6 @@ void ApplicationWindow::createActions() {
...
@@ -12894,14 +12885,6 @@ void ApplicationWindow::createActions() {
new QAction(QIcon(getQPixmap("boxPlot_xpm")), tr("&Box Plot"), this);
new QAction(QIcon(getQPixmap("boxPlot_xpm")), tr("&Box Plot"), this);
connect(actionBoxPlot, SIGNAL(activated()), this, SLOT(plotBoxDiagram()));
connect(actionBoxPlot, SIGNAL(activated()), this, SLOT(plotBoxDiagram()));
actionMultiPeakGauss = new QAction(tr("&Gaussian..."), this);
connect(actionMultiPeakGauss, SIGNAL(activated()), this,
SLOT(fitMultiPeakGauss()));
actionMultiPeakLorentz = new QAction(tr("&Lorentzian..."), this);
connect(actionMultiPeakLorentz, SIGNAL(activated()), this,
SLOT(fitMultiPeakLorentz()));
actionHomePage = new QAction(tr("&Mantid Homepage"), this); // Mantid change
actionHomePage = new QAction(tr("&Mantid Homepage"), this); // Mantid change
connect(actionHomePage, SIGNAL(activated()), this, SLOT(showHomePage()));
connect(actionHomePage, SIGNAL(activated()), this, SLOT(showHomePage()));
...
@@ -13453,8 +13436,6 @@ void ApplicationWindow::translateActionsStrings() {
...
@@ -13453,8 +13436,6 @@ void ApplicationWindow::translateActionsStrings() {
actionBoxPlot->setText(tr("&Box Plot"));
actionBoxPlot->setText(tr("&Box Plot"));
actionBoxPlot->setToolTip(tr("Box and whiskers plot"));
actionBoxPlot->setToolTip(tr("Box and whiskers plot"));
actionMultiPeakGauss->setMenuText(tr("&Gaussian..."));
actionMultiPeakLorentz->setMenuText(tr("&Lorentzian..."));
actionHomePage->setMenuText(tr("&Mantid Homepage")); // Mantid change
actionHomePage->setMenuText(tr("&Mantid Homepage")); // Mantid change
actionHelpBugReports->setText(tr("Report a &Bug"));
actionHelpBugReports->setText(tr("Report a &Bug"));
actionAskHelp->setText(tr("Ask for Help"));
actionAskHelp->setText(tr("Ask for Help"));
...
@@ -14049,50 +14030,6 @@ void ApplicationWindow::disregardCol() {
...
@@ -14049,50 +14030,6 @@ void ApplicationWindow::disregardCol() {
t->setPlotDesignation(Table::None);
t->setPlotDesignation(Table::None);
}
}
void ApplicationWindow::fitMultiPeakGauss() {
fitMultiPeak((int)MultiPeakFit::Gauss);
}
void ApplicationWindow::fitMultiPeakLorentz() {
fitMultiPeak((int)MultiPeakFit::Lorentz);
}
void ApplicationWindow::fitMultiPeak(int profile) {
MultiLayer *plot = dynamic_cast<MultiLayer *>(activeWindow(MultiLayerWindow));
if (!plot)
return;
if (plot->isEmpty()) {
QMessageBox::warning(
this, tr("MantidPlot - Warning"), // Mantid
tr("<h4>There are no plot layers available in this window.</h4>"
"<p><h4>Please add a layer and try again!</h4>"));
btnPointer->setChecked(true);
return;
}
Graph *g = dynamic_cast<Graph *>(plot->activeGraph());
if (!g || !g->validCurvesDataSize())
return;
if (g->isPiePlot()) {
QMessageBox::warning(
this, tr("MantidPlot - Warning"), // Mantid
tr("This functionality is not available for pie plots!"));
return;
} else {
bool ok;
int peaks = QInputDialog::getInteger(this,
tr("MantidPlot - Enter the number of peaks"), // Mantid
tr("Peaks"), 2, 2, 1000000, 1, &ok);
if (ok && peaks) {
g->setActiveTool(
new MultiPeakFitTool(g, this, (MultiPeakFit::PeakProfile)profile,
peaks, info, SLOT(setText(const QString &))));
displayBar->show();
}
}
}
void ApplicationWindow::showHomePage() {
void ApplicationWindow::showHomePage() {
QDesktopServices::openUrl(QUrl("http://www.mantidproject.org"));
QDesktopServices::openUrl(QUrl("http://www.mantidproject.org"));
}
}
...
...
This diff is collapsed.
Click to expand it.
MantidPlot/src/ApplicationWindow.h
+
4
−
4
View file @
25498bdf
...
@@ -652,9 +652,9 @@ public slots:
...
@@ -652,9 +652,9 @@ public slots:
void
fitSigmoidal
();
void
fitSigmoidal
();
void
fitGauss
();
void
fitGauss
();
void
fitLorentz
();
void
fitLorentz
();
void
fitMultiPeak
(
int
profile
);
//
void fitMultiPeak(int profile);
void
fitMultiPeakGauss
();
//
void fitMultiPeakGauss();
void
fitMultiPeakLorentz
();
//
void fitMultiPeakLorentz();
//@}
//@}
//! \name Calculus
//! \name Calculus
...
@@ -1403,7 +1403,7 @@ private:
...
@@ -1403,7 +1403,7 @@ private:
QAction
*
actionNormalizeTable
,
*
actionConvolute
,
*
actionDeconvolute
,
*
actionCorrelate
,
*
actionAutoCorrelate
;
QAction
*
actionNormalizeTable
,
*
actionConvolute
,
*
actionDeconvolute
,
*
actionCorrelate
,
*
actionAutoCorrelate
;
QAction
*
actionSetAscValues
,
*
actionSetRandomValues
;
QAction
*
actionSetAscValues
,
*
actionSetRandomValues
;
QAction
*
actionSetXCol
,
*
actionSetYCol
,
*
actionSetZCol
,
*
actionSetLabelCol
,
*
actionDisregardCol
,
*
actionSetXErrCol
,
*
actionSetYErrCol
;
QAction
*
actionSetXCol
,
*
actionSetYCol
,
*
actionSetZCol
,
*
actionSetLabelCol
,
*
actionDisregardCol
,
*
actionSetXErrCol
,
*
actionSetYErrCol
;
QAction
*
actionBoxPlot
,
*
actionMultiPeakGauss
,
*
actionMultiPeakLorentz
,
*
actionCheckUpdates
;
QAction
*
actionBoxPlot
,
/*
*actionMultiPeakGauss, *actionMultiPeakLorentz,
*/
*
actionCheckUpdates
;
QAction
*
actionDonate
,
*
actionHomePage
,
*
actionDownloadManual
,
*
actionTechnicalSupport
,
*
actionTranslations
;
QAction
*
actionDonate
,
*
actionHomePage
,
*
actionDownloadManual
,
*
actionTechnicalSupport
,
*
actionTranslations
;
QAction
*
actionHelpForums
,
*
actionHelpBugReports
,
*
actionAskHelp
;
QAction
*
actionHelpForums
,
*
actionHelpBugReports
,
*
actionAskHelp
;
QAction
*
actionShowPlotDialog
,
*
actionShowScaleDialog
;
QAction
*
actionShowPlotDialog
,
*
actionShowScaleDialog
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment