MultiplotConfig.cpp
Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (C) 2015 by Ralf Kaestner                                        *
00003  * ralf.kaestner@gmail.com                                                    *
00004  *                                                                            *
00005  * This program is free software; you can redistribute it and/or modify       *
00006  * it under the terms of the Lesser GNU General Public License as published by*
00007  * the Free Software Foundation; either version 3 of the License, or          *
00008  * (at your option) any later version.                                        *
00009  *                                                                            *
00010  * This program is distributed in the hope that it will be useful,            *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               *
00013  * Lesser GNU General Public License for more details.                        *
00014  *                                                                            *
00015  * You should have received a copy of the Lesser GNU General Public License   *
00016  * along with this program. If not, see <http://www.gnu.org/licenses/>.       *
00017  ******************************************************************************/
00018 
00019 #include "rqt_multiplot/MultiplotConfig.h"
00020 
00021 namespace rqt_multiplot {
00022 
00023 /*****************************************************************************/
00024 /* Constructors and Destructor                                               */
00025 /*****************************************************************************/
00026 
00027 MultiplotConfig::MultiplotConfig(QObject* parent) :
00028   Config(parent),
00029   tableConfig_(new PlotTableConfig(this)) {
00030   connect(tableConfig_, SIGNAL(changed()), this, SLOT(tableConfigChanged()));
00031 }
00032 
00033 MultiplotConfig::~MultiplotConfig() {
00034 }
00035 
00036 /*****************************************************************************/
00037 /* Accessors                                                                 */
00038 /*****************************************************************************/
00039 
00040 PlotTableConfig* MultiplotConfig::getTableConfig() const {
00041   return tableConfig_;
00042 }
00043 
00044 /*****************************************************************************/
00045 /* Methods                                                                   */
00046 /*****************************************************************************/
00047 
00048 void MultiplotConfig::save(QSettings& settings) const {
00049   settings.beginGroup("table");
00050   tableConfig_->save(settings);
00051   settings.endGroup();
00052 }
00053 
00054 void MultiplotConfig::load(QSettings& settings) {
00055   settings.beginGroup("table");
00056   tableConfig_->load(settings);
00057   settings.endGroup();
00058 }
00059 
00060 void MultiplotConfig::reset() {
00061   tableConfig_->reset();
00062 }
00063 
00064 void MultiplotConfig::write(QDataStream& stream) const {
00065   tableConfig_->write(stream);
00066 }
00067 
00068 void MultiplotConfig::read(QDataStream& stream) {
00069   tableConfig_->read(stream);
00070 }
00071 
00072 /*****************************************************************************/
00073 /* Operators                                                                 */
00074 /*****************************************************************************/
00075 
00076 MultiplotConfig& MultiplotConfig::operator=(const MultiplotConfig& src) {
00077   *tableConfig_ = *src.tableConfig_;
00078   
00079   return *this;
00080 }
00081 
00082 /*****************************************************************************/
00083 /* Slots                                                                     */
00084 /*****************************************************************************/
00085 
00086 void MultiplotConfig::tableConfigChanged() {
00087   emit changed();
00088 }
00089 
00090 }


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Thu Jun 6 2019 21:49:11