PlotAxesConfigWidget.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 
19 #include <ui_PlotAxesConfigWidget.h>
20 
22 
23 namespace rqt_multiplot {
24 
25 /*****************************************************************************/
26 /* Constructors and Destructor */
27 /*****************************************************************************/
28 
30  QWidget(parent),
31  ui_(new Ui::PlotAxesConfigWidget()),
32  config_(0) {
33  ui_->setupUi(this);
34 }
35 
37  delete ui_;
38 }
39 
40 /*****************************************************************************/
41 /* Accessors */
42 /*****************************************************************************/
43 
45  if (config != config_) {
46  config_ = config;
47 
48  if (config) {
49  ui_->plotAxisConfigWidgetX->setConfig(config_->
50  getAxisConfig(PlotAxesConfig::X));
51  ui_->plotAxisConfigWidgetY->setConfig(config_->
52  getAxisConfig(PlotAxesConfig::Y));
53  }
54  else {
55  ui_->plotAxisConfigWidgetX->setConfig(0);
56  ui_->plotAxisConfigWidgetY->setConfig(0);
57  }
58  }
59 }
60 
62  return config_;
63 }
64 
65 }
void setConfig(PlotAxesConfig *range)


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