CurveListWidget.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_LIST_WIDGET_H
20 #define RQT_MULTIPLOT_CURVE_LIST_WIDGET_H
21 
22 #include <QListWidget>
23 
26 
27 namespace rqt_multiplot {
29  public QListWidget {
30  Q_OBJECT
31  public:
32  CurveListWidget(QWidget* parent = 0);
33  virtual ~CurveListWidget();
34 
35  size_t getNumCurves() const;
36  CurveItemWidget* getCurveItem(size_t index) const;
37 
39  void removeCurve(size_t index);
40 
41  signals:
42  void curveAdded(size_t index);
43  void curveConfigChanged(size_t index);
44  void curveRemoved(size_t index);
45 
46  protected:
47  void keyPressEvent(QKeyEvent* event);
48  };
49 };
50 
51 #endif
config
CurveListWidget(QWidget *parent=0)
void keyPressEvent(QKeyEvent *event)
void curveAdded(size_t index)
void curveConfigChanged(size_t index)
CurveItemWidget * getCurveItem(size_t index) const
void addCurve(CurveConfig *config)
void curveRemoved(size_t index)


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