Main Page
Namespaces
Classes
Files
File List
include
rqt_multiplot
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
24
#include <
rqt_multiplot/CurveConfig.h
>
25
#include <
rqt_multiplot/CurveItemWidget.h
>
26
27
namespace
rqt_multiplot
{
28
class
CurveListWidget
:
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
38
void
addCurve
(
CurveConfig
*
config
);
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
config
rqt_multiplot::CurveConfig
Definition:
CurveConfig.h:32
rqt_multiplot::CurveListWidget::CurveListWidget
CurveListWidget(QWidget *parent=0)
Definition:
CurveListWidget.cpp:29
CurveItemWidget.h
rqt_multiplot::CurveListWidget::getNumCurves
size_t getNumCurves() const
Definition:
CurveListWidget.cpp:40
rqt_multiplot::CurveListWidget::~CurveListWidget
virtual ~CurveListWidget()
Definition:
CurveListWidget.cpp:33
rqt_multiplot::CurveListWidget
Definition:
CurveListWidget.h:28
rqt_multiplot::CurveListWidget::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition:
CurveListWidget.cpp:80
rqt_multiplot::CurveListWidget::curveAdded
void curveAdded(size_t index)
rqt_multiplot::CurveListWidget::curveConfigChanged
void curveConfigChanged(size_t index)
rqt_multiplot::CurveItemWidget
Definition:
CurveItemWidget.h:31
CurveConfig.h
rqt_multiplot::CurveListWidget::getCurveItem
CurveItemWidget * getCurveItem(size_t index) const
Definition:
CurveListWidget.cpp:44
rqt_multiplot
Definition:
BagQuery.h:33
rqt_multiplot::CurveListWidget::removeCurve
void removeCurve(size_t index)
Definition:
CurveListWidget.cpp:70
rqt_multiplot::CurveListWidget::addCurve
void addCurve(CurveConfig *config)
Definition:
CurveListWidget.cpp:57
rqt_multiplot::CurveListWidget::curveRemoved
void curveRemoved(size_t index)
rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44