DataFieldPropertiesWidget.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 ArmarX::Gui
17
* @author Kai Welke (welke@kit.edu)
18
* @copyright 2012 Humanoids Group, IAIM, IFA
19
* @license http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
#pragma once
24
25
// Qt
26
#include <QWidget>
27
#include <string>
28
#include <map>
29
30
// ArmarX
31
#include <
ArmarXCore/core/IceManager.h
>
32
#include <
ArmarXCore/observers/variant/Variant.h
>
33
#include <
ArmarXCore/observers/variant/DataFieldIdentifier.h
>
34
#include "../VariantWidget.h"
35
#include "
PropertiesWidget.h
"
36
#include <
ArmarXCore/observers/variant/DatafieldRef.h
>
37
#include<
ArmarXCore/core/services/tasks/PeriodicTask.h
>
38
namespace
armarx
39
{
40
class
PlotterController;
41
class
DataFieldPropertiesWidget
:
public
PropertiesWidget
42
{
43
Q_OBJECT
44
public
:
45
DataFieldPropertiesWidget
(std::string description,
DatafieldRefPtr
dataFieldIdentifier,
VariantPtr
variant,
IceManagerPtr
iceManager, QWidget* parent = 0, Qt::WindowFlags f = 0);
46
~DataFieldPropertiesWidget
()
override
;
47
void
setEnableEdit
(
bool
enableEdit);
48
bool
getEnableEdit
();
49
DataFieldIdentifierPtr
getDatafieldIdentifier
()
const
;
50
VariantPtr
getVariant
();
51
public
slots:
52
void
toggleAutoRefresh
(
bool
);
53
void
copyValueToClipboard
();
54
private
:
55
void
createUi()
override
;
56
57
DatafieldRefPtr
dataFieldIdentifier;
58
VariantPtr
variant;
59
std::string description;
60
61
VariantWidget
* variantWidget;
62
PlotterController
* plotter;
63
PeriodicTask<DataFieldPropertiesWidget>::pointer_type
updateTask;
64
65
protected
:
66
void
updateValue
();
67
};
68
}
69
armarx::PlotterController
Definition:
PlotterController.h:75
armarx::DataFieldPropertiesWidget::DataFieldPropertiesWidget
DataFieldPropertiesWidget(std::string description, DatafieldRefPtr dataFieldIdentifier, VariantPtr variant, IceManagerPtr iceManager, QWidget *parent=0, Qt::WindowFlags f=0)
Definition:
DataFieldPropertiesWidget.cpp:35
armarx::DataFieldPropertiesWidget::getVariant
VariantPtr getVariant()
Definition:
DataFieldPropertiesWidget.cpp:74
PeriodicTask.h
armarx::DataFieldPropertiesWidget::updateValue
void updateValue()
Definition:
DataFieldPropertiesWidget.cpp:148
DataFieldIdentifier.h
armarx::DataFieldPropertiesWidget::copyValueToClipboard
void copyValueToClipboard()
Definition:
DataFieldPropertiesWidget.cpp:92
armarx::DataFieldPropertiesWidget::setEnableEdit
void setEnableEdit(bool enableEdit)
Definition:
DataFieldPropertiesWidget.cpp:58
IceInternal::Handle< DatafieldRef >
DatafieldRef.h
armarx::DataFieldPropertiesWidget::toggleAutoRefresh
void toggleAutoRefresh(bool)
Definition:
DataFieldPropertiesWidget.cpp:79
armarx::DataFieldPropertiesWidget::getDatafieldIdentifier
DataFieldIdentifierPtr getDatafieldIdentifier() const
Definition:
DataFieldPropertiesWidget.cpp:69
IceManager.h
armarx::DataFieldPropertiesWidget::~DataFieldPropertiesWidget
~DataFieldPropertiesWidget() override
Definition:
DataFieldPropertiesWidget.cpp:52
PropertiesWidget.h
IceUtil::Handle< IceManager >
armarx::DataFieldPropertiesWidget::getEnableEdit
bool getEnableEdit()
Definition:
DataFieldPropertiesWidget.cpp:64
armarx::DataFieldPropertiesWidget
Definition:
DataFieldPropertiesWidget.h:41
Variant.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx::VariantWidget
Definition:
VariantWidget.h:38
armarx::PropertiesWidget
Definition:
PropertiesWidget.h:37
ArmarXGui
gui-plugins
ObserverPropertiesPlugin
widgets
properties
DataFieldPropertiesWidget.h
Generated on Sat Sep 7 2024 09:13:47 for armarx_documentation by
1.8.17