PlotAxisConfig.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_PLOT_AXIS_CONFIG_H
20 #define RQT_MULTIPLOT_PLOT_AXIS_CONFIG_H
21 
22 #include <rqt_multiplot/Config.h>
23 
24 namespace rqt_multiplot {
26  public Config {
27  Q_OBJECT
28  public:
29  enum TitleType {
32  };
33 
34  PlotAxisConfig(QObject* parent = 0, TitleType titleType = AutoTitle,
35  const QString& customTitle = "Untitled Axis", bool titleVisible = true);
37 
38  void setTitleType(TitleType type);
39  TitleType getTitleType() const;
40  void setCustomTitle(const QString& title);
41  const QString& getCustomTitle() const;
42  void setTitleVisible(bool visible);
43  bool isTitleVisible() const;
44 
45  void save(QSettings& settings) const;
46  void load(QSettings& settings);
47  void reset();
48 
49  void write(QDataStream& stream) const;
50  void read(QDataStream& stream);
51 
53 
54  signals:
55  void titleTypeChanged(int type);
56  void customTitleChanged(const QString& title);
57  void titleVisibleChanged(bool visible);
58 
59  private:
61  QString customTitle_;
63  };
64 };
65 
66 #endif
void customTitleChanged(const QString &title)
PlotAxisConfig & operator=(const PlotAxisConfig &src)
void read(QDataStream &stream)
void titleVisibleChanged(bool visible)
const QString & getCustomTitle() const
void setCustomTitle(const QString &title)
TitleType getTitleType() const
void setTitleType(TitleType type)
PlotAxisConfig(QObject *parent=0, TitleType titleType=AutoTitle, const QString &customTitle="Untitled Axis", bool titleVisible=true)
void setTitleVisible(bool visible)
void write(QDataStream &stream) const
void load(QSettings &settings)
void save(QSettings &settings) const


rqt_multiplot_plugin
Author(s): Ralf Kaestner
autogenerated on Fri Jan 15 2021 03:47:53