Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
e7d6cb1f
Commit
e7d6cb1f
authored
Jun 08, 2022
by
Mikhail Svechnikov
Browse files
add signals to IntensityDataItem
parent
0713bfb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
GUI/Model/Data/IntensityDataItem.cpp
View file @
e7d6cb1f
...
...
@@ -160,6 +160,7 @@ ComboProperty IntensityDataItem::getGradient() const
void
IntensityDataItem
::
setGradient
(
const
ComboProperty
&
gradient
)
{
setItemValue
(
P_GRADIENT
,
gradient
.
variant
());
emit
gradientChanged
(
gradient
);
}
SelectionDescriptor
<
QString
>
IntensityDataItem
::
gradient
()
const
...
...
@@ -195,16 +196,19 @@ bool IntensityDataItem::isZAxisLocked() const
void
IntensityDataItem
::
setZAxisLocked
(
bool
state
)
{
item
<
AmplitudeAxisItem
>
(
P_ZAXIS
)
->
setLocked
(
state
);
emit
zAxisLockChanged
(
state
);
}
void
IntensityDataItem
::
setXaxisTitle
(
const
QString
&
title
)
{
xAxisItem
()
->
setTitle
(
title
);
emit
xAxisTitleChanged
(
title
);
}
void
IntensityDataItem
::
setYaxisTitle
(
const
QString
&
title
)
{
yAxisItem
()
->
setTitle
(
title
);
emit
yAxisTitleChanged
(
title
);
}
//! set zoom range of x,y axes to axes of input data
...
...
@@ -273,21 +277,25 @@ bool IntensityDataItem::isZaxisPropertyName(const QString& name)
void
IntensityDataItem
::
setLowerX
(
double
value
)
{
xAxisItem
()
->
setLowerBound
(
value
);
emit
xAxisLowerChanged
(
value
);
}
void
IntensityDataItem
::
setUpperX
(
double
value
)
{
xAxisItem
()
->
setUpperBound
(
value
);
emit
xAxisUpperChanged
(
value
);
}
void
IntensityDataItem
::
setLowerY
(
double
value
)
{
yAxisItem
()
->
setLowerBound
(
value
);
emit
yAxisLowerChanged
(
value
);
}
void
IntensityDataItem
::
setUpperY
(
double
value
)
{
yAxisItem
()
->
setUpperBound
(
value
);
emit
yAxisUpperChanged
(
value
);
}
void
IntensityDataItem
::
setLowerAndUpperZ
(
double
zmin
,
double
zmax
)
...
...
@@ -302,21 +310,25 @@ void IntensityDataItem::setLowerAndUpperZ(double zmin, double zmax)
void
IntensityDataItem
::
setLowerZ
(
double
zmin
)
{
zAxisItem
()
->
setLowerBound
(
zmin
);
emit
zAxisLowerChanged
(
zmin
);
}
void
IntensityDataItem
::
setUpperZ
(
double
zmax
)
{
zAxisItem
()
->
setUpperBound
(
zmax
);
emit
zAxisUpperChanged
(
zmax
);
}
void
IntensityDataItem
::
setLogz
(
bool
logz
)
{
zAxisItem
()
->
setLogScale
(
logz
);
emit
zLogChanged
(
logz
);
}
void
IntensityDataItem
::
setInterpolated
(
bool
interp
)
{
setItemValue
(
P_IS_INTERPOLATED
,
interp
);
emit
interpolationChanged
(
interp
);
}
//! Sets zoom range of X,Y axes, if it was not yet defined.
...
...
GUI/Model/Data/IntensityDataItem.h
View file @
e7d6cb1f
...
...
@@ -24,6 +24,7 @@ class MaskContainerItem;
class
ProjectionContainerItem
;
class
BA_CORE_API_
IntensityDataItem
:
public
DataItem
{
Q_OBJECT
private:
static
constexpr
auto
P_PROJECTIONS
{
"Projections"
};
static
constexpr
auto
P_TITLE
{
"Title"
};
...
...
@@ -120,6 +121,21 @@ public:
static
bool
isYaxisPropertyName
(
const
QString
&
name
);
static
bool
isZaxisPropertyName
(
const
QString
&
name
);
signals:
void
gradientChanged
(
const
ComboProperty
&
gradient
);
void
zAxisLockChanged
(
bool
isLocked
);
void
xAxisTitleChanged
(
const
QString
&
title
);
void
yAxisTitleChanged
(
const
QString
&
title
);
void
xAxisLowerChanged
(
double
value
);
void
xAxisUpperChanged
(
double
value
);
void
yAxisLowerChanged
(
double
value
);
void
yAxisUpperChanged
(
double
value
);
void
zAxisLowerChanged
(
double
value
);
void
zAxisUpperChanged
(
double
value
);
void
zLogChanged
(
bool
isLog
);
void
interpolationChanged
(
bool
isInterpolated
);
public
slots
:
void
setLowerX
(
double
value
);
void
setUpperX
(
double
value
);
...
...
GUI/View/Fit/FitSessionManager.cpp
View file @
e7d6cb1f
...
...
@@ -49,7 +49,6 @@ FitSessionController* FitSessionManager::sessionController(JobItem* jobItem)
FitSessionController
*
FitSessionManager
::
createController
(
JobItem
*
jobItem
)
{
// job destruction
connect
(
jobItem
,
&
JobItem
::
destroyed
,
this
,
[
=
]()
{
removeController
(
jobItem
);
});
auto
*
result
=
new
FitSessionController
(
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment