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 
41 namespace armarx
42 {
43  class PlotterController;
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);
55  ~DataFieldPropertiesWidget() override;
56  void setEnableEdit(bool enableEdit);
57  bool getEnableEdit();
60  public slots:
61  void toggleAutoRefresh(bool);
62  void copyValueToClipboard();
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
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:39
armarx::DataFieldPropertiesWidget::getVariant
VariantPtr getVariant()
Definition: DataFieldPropertiesWidget.cpp:86
PeriodicTask.h
armarx::DataFieldPropertiesWidget::updateValue
void updateValue()
Definition: DataFieldPropertiesWidget.cpp:171
DataFieldIdentifier.h
armarx::DataFieldPropertiesWidget::copyValueToClipboard
void copyValueToClipboard()
Definition: DataFieldPropertiesWidget.cpp:106
armarx::DataFieldPropertiesWidget::setEnableEdit
void setEnableEdit(bool enableEdit)
Definition: DataFieldPropertiesWidget.cpp:68
IceInternal::Handle< DatafieldRef >
DatafieldRef.h
armarx::DataFieldPropertiesWidget::toggleAutoRefresh
void toggleAutoRefresh(bool)
Definition: DataFieldPropertiesWidget.cpp:92
armarx::DataFieldPropertiesWidget::getDatafieldIdentifier
DataFieldIdentifierPtr getDatafieldIdentifier() const
Definition: DataFieldPropertiesWidget.cpp:80
IceManager.h
armarx::DataFieldPropertiesWidget::~DataFieldPropertiesWidget
~DataFieldPropertiesWidget() override
Definition: DataFieldPropertiesWidget.cpp:61
PropertiesWidget.h
IceUtil::Handle< IceManager >
armarx::DataFieldPropertiesWidget::getEnableEdit
bool getEnableEdit()
Definition: DataFieldPropertiesWidget.cpp:74
armarx::DataFieldPropertiesWidget
Definition: DataFieldPropertiesWidget.h:45
Variant.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::VariantWidget
Definition: VariantWidget.h:40
armarx::PropertiesWidget
Definition: PropertiesWidget.h:37