CurveAxisConfig.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2015 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
19 #ifndef RQT_MULTIPLOT_CURVE_AXIS_CONFIG_H
20 #define RQT_MULTIPLOT_CURVE_AXIS_CONFIG_H
21 
22 #include <QString>
23 
24 #include <rqt_multiplot/Config.h>
26 
27 namespace rqt_multiplot {
29  public Config {
30  Q_OBJECT
31  public:
32  enum FieldType {
35  };
36 
37  CurveAxisConfig(QObject* parent = 0, const QString& topic = QString(),
38  const QString& type = QString(), FieldType fieldType = MessageData,
39  const QString& field = QString());
41 
42  void setTopic(const QString& topic);
43  const QString& getTopic() const;
44  void setType(const QString& type);
45  const QString& getType() const;
46  void setFieldType(FieldType fieldType);
47  FieldType getFieldType() const;
48  void setField(const QString& field);
49  const QString& getField() const;
51 
52  void save(QSettings& settings) const;
53  void load(QSettings& settings);
54  void reset();
55 
56  void write(QDataStream& stream) const;
57  void read(QDataStream& stream);
58 
60 
61  signals:
62  void topicChanged(const QString& topic);
63  void typeChanged(const QString& type);
64  void fieldTypeChanged(int fieldType);
65  void fieldChanged(const QString& field);
66 
67  private:
68  QString topic_;
69  QString type_;
71  QString field_;
72 
74 
75  private slots:
76  void scaleChanged();
77  };
78 };
79 
80 #endif
const QString & getTopic() const
void topicChanged(const QString &topic)
void load(QSettings &settings)
CurveAxisScaleConfig * getScaleConfig() const
const QString & getType() const
void typeChanged(const QString &type)
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_
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 setFieldType(FieldType fieldType)
void fieldChanged(const QString &field)


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44