15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_AXESITEMS_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_AXESITEMS_H
35 static constexpr
auto M_TYPE{
"BasicAxis"};
57 QString
title()
const;
64 virtual std::unique_ptr<IAxis>
createAxis(
double scale)
const;
81 static constexpr
auto M_TYPE{
"AmplitudeAxis"};
Defines class DoubleDescriptor.
Defines class SessionItem.
static bool isLogScalePropertyName(const QString &name)
static constexpr auto M_TYPE
static constexpr auto P_LOCK_MIN_MAX
static constexpr auto P_IS_LOGSCALE
void serialize(Streamer &s) override
SessionItem * logScaleItem() const
void setLogScale(bool value)
void setLocked(bool locked)
SessionItem * maxItem() const
bool isTitleVisible() const
SessionItem * binsItem() const
void setVisibilityValue(bool b)
DoubleDescriptor min(const QString &unit=QString()) const
static bool isVisibilityPropertyName(const QString &name)
static constexpr auto P_NBINS
static bool isBoundsPropertiesName(const QString &name)
either lower bound or upper bound property name
SessionItem * visibilityItem() const
bool visibilityValue() const
SessionItem * minItem() const
void setBinCount(size_t value)
virtual void serialize(Streamer &s)
~BasicAxisItem() override
static constexpr auto P_IS_VISIBLE
static constexpr auto P_TITLE
SessionItem * titleItem() const
static constexpr auto P_MAX_DEG
void setLowerBound(double value)
static constexpr auto P_TITLE_IS_VISIBLE
void setUpperBound(double value)
static bool isTitlePropertyName(const QString &name)
static constexpr auto P_MIN_DEG
static constexpr auto M_TYPE
virtual std::unique_ptr< IAxis > createAxis(double scale) const
DoubleDescriptor max(const QString &unit=QString()) const
static bool isTitleVisiblePropertyName(const QString &name)
void setTitle(const QString &title)
Describes properties of a double value which are necessary to allow GUI representation,...
Base class for a GUI data item.
QVariant value() const
Get value.
Supports serialization to or deserialization from QXmlStream.
QString const & name(EShape k)