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 <map>
27#include <string>
28
29#include <QWidget>
30
31// ArmarX
37
38#include "../VariantWidget.h"
39#include "PropertiesWidget.h"
40
41namespace armarx
42{
44
46 {
47 Q_OBJECT
48 public:
49 DataFieldPropertiesWidget(std::string description,
50 DatafieldRefPtr dataFieldIdentifier,
51 VariantPtr variant,
52 IceManagerPtr iceManager,
53 QWidget* parent = 0,
54 Qt::WindowFlags f = 0);
56 void setEnableEdit(bool enableEdit);
57 bool getEnableEdit();
60 public slots:
61 void toggleAutoRefresh(bool);
63
64 private:
65 void createUi() override;
66
67 DatafieldRefPtr dataFieldIdentifier;
68 VariantPtr variant;
69 std::string description;
70
71 VariantWidget* variantWidget;
72 PlotterController* plotter;
74
75 protected:
76 void updateValue();
77 };
78} // namespace armarx
DataFieldIdentifierPtr getDatafieldIdentifier() const
DataFieldPropertiesWidget(std::string description, DatafieldRefPtr dataFieldIdentifier, VariantPtr variant, IceManagerPtr iceManager, QWidget *parent=0, Qt::WindowFlags f=0)
IceUtil::Handle< PeriodicTask< T > > pointer_type
Shared pointer type for convenience.
PropertiesWidget(QWidget *parent=0, Qt::WindowFlags f=0)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< Variant > VariantPtr
Definition Variant.h:41
IceInternal::Handle< DatafieldRef > DatafieldRefPtr
Definition Observer.h:43
IceUtil::Handle< IceManager > IceManagerPtr
IceManager smart pointer.
Definition ArmarXFwd.h:39
IceInternal::Handle< DataFieldIdentifier > DataFieldIdentifierPtr
Typedef of DataFieldIdentifierPtr as IceInternal::Handle<DataFieldIdentifier> for convenience.