DebugDrawerConfigWidget.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotAPI::ArmarXObjects::DebugDrawerConfigWidget
17 * @author Adrian Knobloch ( adrian dot knobloch at student dot kit dot edu )
18 * @date 2019
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25#include <QSettings>
26#include <QWidget>
27
29#include <RobotAPI/libraries/DebugDrawerConfigWidget/ui_DebugDrawerConfigWidget.h>
30
31namespace armarx
32{
33 /**
34 * @defgroup Library-DebugDrawerConfigWidget DebugDrawerConfigWidget
35 * @ingroup RobotAPI
36 * A description of the library DebugDrawerConfigWidget.
37 *
38 * @class DebugDrawerConfigWidget
39 * @ingroup Library-DebugDrawerConfigWidget
40 * @brief Brief description of class DebugDrawerConfigWidget.
41 *
42 * Detailed description of class DebugDrawerConfigWidget.
43 */
44 class DebugDrawerConfigWidget : public QWidget
45 {
46 public:
48 QWidget* parent = nullptr);
49
50 void loadSettings(QSettings* settings);
51 void saveSettings(QSettings* settings);
52
55
56 public slots:
57 void refresh();
58
59 void onVisibilityChanged(QListWidgetItem* item);
60
61 void onDefaultLayerVisibilityChanged(int checkState);
62 void onDefaultLayerVisibilityPerLayerChanged(QListWidgetItem* item);
63
66
67 protected:
69 Ui::DebugDrawerConfigWidget ui;
70 };
71
72} // namespace armarx
DebugDrawerConfigWidget(const DebugDrawerComponentPtr &debugDrawer, QWidget *parent=nullptr)
void onDefaultLayerVisibilityPerLayerChanged(QListWidgetItem *item)
void onVisibilityChanged(QListWidgetItem *item)
DebugDrawerComponentPtr getDebugDrawer() const
void setDebugDrawer(const DebugDrawerComponentPtr &debugDrawer)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< DebugDrawerComponent > DebugDrawerComponentPtr