Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
45dd6002
Commit
45dd6002
authored
6 years ago
by
Yurov, Dmitry
Browse files
Options
Downloads
Patches
Plain Diff
Enabled relative difference plot in FitComparisonWidget1D_New
Redmine: #2106
parent
5b094d75
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
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.cpp
+10
-13
10 additions, 13 deletions
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.cpp
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.h
+3
-5
3 additions, 5 deletions
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.h
with
13 additions
and
18 deletions
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.cpp
+
10
−
13
View file @
45dd6002
...
...
@@ -14,7 +14,7 @@
#include
"FitComparisonWidget1D_New.h"
#include
"DataItem1DView.h"
#include
"FitComparisonController.h"
#include
"FitComparison
View
Controller.h"
#include
"FitFlowWidget.h"
#include
"FitSuiteItem.h"
#include
"IntensityDataPropertyWidget.h"
...
...
@@ -24,9 +24,6 @@
#include
"PlotStatusLabel.h"
#include
"RealDataItem.h"
#include
"SessionModel.h"
#include
"SpecularDataItem.h"
#include
"SpecularPlot.h"
#include
"SpecularPlotCanvas.h"
#include
<QAction>
#include
<QGridLayout>
#include
<QVBoxLayout>
...
...
@@ -34,12 +31,12 @@
FitComparisonWidget1D_New
::
FitComparisonWidget1D_New
(
QWidget
*
parent
)
:
SessionItemWidget
(
parent
)
,
m_data_plot
(
new
Plot1DCanvas
)
//
, m_diff_plot(new
Specular
PlotCanvas)
,
m_diff_plot
(
new
Plot
1D
Canvas
)
,
m_fitFlowWidget
(
new
FitFlowWidget
)
,
m_statusLabel
(
new
PlotStatusLabel
(
nullptr
,
this
))
,
m_propertyWidget
(
new
IntensityDataPropertyWidget
)
,
m_resetViewAction
(
new
QAction
(
this
))
//
, m_comparisonController(new FitComparisonController
1D
(this))
,
m_comparisonController
(
new
FitComparison
1DView
Controller
(
this
))
{
auto
vlayout
=
new
QVBoxLayout
;
vlayout
->
setMargin
(
0
);
...
...
@@ -50,8 +47,8 @@ FitComparisonWidget1D_New::FitComparisonWidget1D_New(QWidget* parent)
gridLayout
->
setSpacing
(
0
);
gridLayout
->
addWidget
(
m_data_plot
,
0
,
0
,
1
,
-
1
);
//
gridLayout->addWidget(m_diff_plot, 1, 0);
gridLayout
->
addWidget
(
m_fitFlowWidget
,
1
,
1
);
gridLayout
->
addWidget
(
m_diff_plot
,
1
,
0
,
1
,
2
);
gridLayout
->
addWidget
(
m_fitFlowWidget
,
1
,
2
,
1
,
1
);
vlayout
->
addLayout
(
gridLayout
);
vlayout
->
addWidget
(
m_statusLabel
);
...
...
@@ -93,15 +90,15 @@ void FitComparisonWidget1D_New::subscribeToItem()
},
this
);
//
m_comparisonController->setItem(jobItem());
m_comparisonController
->
setItem
(
jobItem
());
m_data_plot
->
setItem
(
viewItem
());
//
m_diff_plot->setItem(m_comparisonController->diffItem());
m_diff_plot
->
setItem
(
m_comparisonController
->
diffItem
View
());
m_fitFlowWidget
->
setItem
(
jobItem
()
->
fitSuiteItem
());
m_statusLabel
->
reset
();
m_statusLabel
->
addPlot
(
m_data_plot
->
plot1D
());
//
m_statusLabel->addPlot(m_diff_plot->
specularP
lot());
m_statusLabel
->
addPlot
(
m_diff_plot
->
p
lot
1D
());
m_propertyWidget
->
setItem
(
viewItem
());
}
...
...
@@ -111,13 +108,13 @@ void FitComparisonWidget1D_New::unsubscribeFromItem()
if
(
!
currentItem
())
return
;
//
m_comparisonController->clear();
m_comparisonController
->
clear
();
}
void
FitComparisonWidget1D_New
::
onResetViewAction
()
{
viewItem
()
->
resetView
();
//
m_comparisonController->resetDiff
Item
();
m_comparisonController
->
resetDiff
View
();
}
JobItem
*
FitComparisonWidget1D_New
::
jobItem
()
...
...
This diff is collapsed.
Click to expand it.
GUI/coregui/Views/FitWidgets/FitComparisonWidget1D_New.h
+
3
−
5
View file @
45dd6002
...
...
@@ -18,15 +18,13 @@
#include
"SessionItemWidget.h"
class
DataItem1DView
;
class
FitComparisonController
1D
;
class
FitComparison
1DView
Controller
;
class
FitFlowWidget
;
class
IntensityDataPropertyWidget
;
class
JobItem
;
class
Plot1DCanvas
;
class
PlotStatusLabel
;
class
QAction
;
class
SpecularDataItem
;
class
SpecularPlotCanvas
;
//! The FitComparisonWidget class plots realdata, simulated data and relative difference map
//! during the course of the fit.
...
...
@@ -52,13 +50,13 @@ private:
DataItem1DView
*
viewItem
();
Plot1DCanvas
*
m_data_plot
;
//Specular
PlotCanvas* m_diff_plot;
Plot
1D
Canvas
*
m_diff_plot
;
FitFlowWidget
*
m_fitFlowWidget
;
PlotStatusLabel
*
m_statusLabel
;
IntensityDataPropertyWidget
*
m_propertyWidget
;
QAction
*
m_resetViewAction
;
//
FitComparisonController
1D
* m_comparisonController;
FitComparison
1DView
Controller
*
m_comparisonController
;
};
#endif // FITCOMPARISONWIDGET1D_NEW_H
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