MultiplotConfig.cpp
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 
20 
21 namespace rqt_multiplot {
22 
23 /*****************************************************************************/
24 /* Constructors and Destructor */
25 /*****************************************************************************/
26 
28  Config(parent),
29  tableConfig_(new PlotTableConfig(this)) {
30  connect(tableConfig_, SIGNAL(changed()), this, SLOT(tableConfigChanged()));
31 }
32 
34 }
35 
36 /*****************************************************************************/
37 /* Accessors */
38 /*****************************************************************************/
39 
41  return tableConfig_;
42 }
43 
44 /*****************************************************************************/
45 /* Methods */
46 /*****************************************************************************/
47 
48 void MultiplotConfig::save(QSettings& settings) const {
49  settings.beginGroup("table");
50  tableConfig_->save(settings);
51  settings.endGroup();
52 }
53 
54 void MultiplotConfig::load(QSettings& settings) {
55  settings.beginGroup("table");
56  tableConfig_->load(settings);
57  settings.endGroup();
58 }
59 
62 }
63 
64 void MultiplotConfig::write(QDataStream& stream) const {
65  tableConfig_->write(stream);
66 }
67 
68 void MultiplotConfig::read(QDataStream& stream) {
69  tableConfig_->read(stream);
70 }
71 
72 /*****************************************************************************/
73 /* Operators */
74 /*****************************************************************************/
75 
77  *tableConfig_ = *src.tableConfig_;
78 
79  return *this;
80 }
81 
82 /*****************************************************************************/
83 /* Slots */
84 /*****************************************************************************/
85 
87  emit changed();
88 }
89 
90 }
void load(QSettings &settings)
void load(QSettings &settings)
void save(QSettings &settings) const
void save(QSettings &settings) const
void write(QDataStream &stream) const
MultiplotConfig & operator=(const MultiplotConfig &src)
PlotTableConfig * getTableConfig() const
void read(QDataStream &stream)
void write(QDataStream &stream) const
void read(QDataStream &stream)


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