28 const QString& type,
FieldType fieldType,
const QString& field) :
32 fieldType_(fieldType),
106 settings.setValue(
"topic",
topic_);
107 settings.setValue(
"type",
type_);
109 settings.setValue(
"field",
field_);
111 settings.beginGroup(
"scale");
117 setTopic(settings.value(
"topic").toString());
118 setType(settings.value(
"type").toString());
119 setFieldType(static_cast<FieldType>(settings.value(
"field_type").toInt()));
120 setField(settings.value(
"field").toString());
122 settings.beginGroup(
"scale");
146 QString topic, type, field;
void read(QDataStream &stream)
const QString & getTopic() const
void topicChanged(const QString &topic)
void write(QDataStream &stream) const
void load(QSettings &settings)
CurveAxisScaleConfig * getScaleConfig() const
const QString & getType() const
void typeChanged(const QString &type)
void save(QSettings &settings) const
void setField(const QString &field)
CurveAxisConfig(QObject *parent=0, const QString &topic=QString(), const QString &type=QString(), FieldType fieldType=MessageData, const QString &field=QString())
void read(QDataStream &stream)
CurveAxisScaleConfig * scaleConfig_
FieldType getFieldType() const
void fieldTypeChanged(int fieldType)
void setTopic(const QString &topic)
const QString & getField() const
void setType(const QString &type)
void write(QDataStream &stream) const
CurveAxisConfig & operator=(const CurveAxisConfig &src)
void save(QSettings &settings) const
void load(QSettings &settings)
void setFieldType(FieldType fieldType)
void fieldChanged(const QString &field)