MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propertyEditorWidget.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <rtiMsConfig.h>
13 #include <QWidget>
14 #include <QtCore/QVariant>
15 #include <QSpinBox>
16 #include <QLineEdit>
17 #include <QComboBox>
18 #include <QtCore/QDir>
19 
20 class QLineEdit;
21 class QLabel;
22 class QPushButton;
23 class QFileDialog;
24 class QToolButton;
25 class QHBoxLayout;
26 class DtCollectionEditor;
27 class DtFileEdit;
28 
29 class DtColorPicker : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  DtColorPicker( QWidget* parent = 0, Qt::WindowFlags fl = 0 );
35 
36 protected:
37  QFrame* myFrame;
39  QToolButton* myBtnSelect;
40  QHBoxLayout* controlLayout;
41  QHBoxLayout* myFrameLayout;
42 
43 signals:
44  virtual void colorSelected(const QColor& color);
45 
46  protected slots:
47  virtual void languageChange();
48  virtual void pickColor();
49 };
50 
51 
52 // \brief Base class for a wrapper around one or more QWidget objects to edit DtProperty types
54 {
55  Q_OBJECT
56 
57 public:
58  DtPropertyEditorWidget(QWidget* parent = 0);
59  virtual ~DtPropertyEditorWidget();
60 
61  virtual const QWidget* editor() const;
62  virtual QWidget* wrapper();
63 
64  virtual void setText(const QString&)=0;
65  virtual QString text() = 0;
66 
67  virtual QVariant value() = 0;
68 
69  virtual void hide();
70  virtual void show();
71 
72 signals:
73  void edited();
74 
75 protected:
76  QVariant myValue;
78 };
79 
81 {
82  Q_OBJECT
83 
84 public:
86 
87  virtual void setText(const QString&);
88  virtual QString text();
89  virtual QVariant value();
90 
91 };
92 
94 {
95  Q_OBJECT
96 
97 public:
99 
100  virtual void setText(const QString&);
101  virtual QString text();
102  virtual QVariant value();
103 
104 };
105 
107 {
108  Q_OBJECT
109 
110 public:
112 
113  virtual void setText(const QString&);
114  virtual QString text();
115  virtual QVariant value();
116 };
117 
119 {
120  Q_OBJECT
121 
122 public:
123  DtPropertyStringListEditorWidget(QStringList, bool, QWidget* parent = 0);
124 
126  virtual void setText(const QString&);
127 
129  virtual void setStringList(const QStringList&);
130 
131  virtual QString text();
132  virtual QVariant value();
133 };
134 
136 {
137  Q_OBJECT
138 
139 public:
140  DtPropertyCollectionEditorWidget(QStringList* lst, QWidget* parent = 0,
141  DtCollectionEditor* editor=0);
143 
144  virtual void setText(const QString&);
145  virtual QString text();
146  virtual QVariant value();
147  virtual void setStringList(const QStringList&);
148  virtual DtCollectionEditor* collectionEditor();
149 
150  public slots:
151  virtual void showEditor();
152 
153 
154 protected:
156  QPushButton* myBrowseButton;
158 };
159 
161 {
162  Q_OBJECT
163 
164 public:
166 
167  virtual void setText(const QString&);
168  virtual QString text();
169  virtual QVariant value() { return myColor;}
170 
171  public slots:
172  virtual void setColor(const QColor& c);
173 
174 
175 protected:
176  QColor myColor;
177 };
178 
180 {
181  Q_OBJECT
182 
183 public:
185 
186  virtual void setText(const QString&);
187  virtual QString text();
188  virtual QVariant value();
189 };
QColor myColor
Definition: propertyEditorWidget.h:176
virtual QVariant value()
Definition: propertyEditorWidget.h:169
Definition: propertyEditorWidget.h:160
QFrame * myFrame
Definition: propertyEditorWidget.h:37
Definition: propertyEditorWidget.h:53
QWidget * myEditor
Definition: propertyEditorWidget.h:77
QHBoxLayout * controlLayout
Definition: propertyEditorWidget.h:40
virtual void setText(const QString &)=0
Definition: propertyEditorWidget.h:179
virtual void languageChange()
QPushButton * myBrowseButton
Definition: propertyEditorWidget.h:156
Definition: propertyEditorWidget.h:29
Definition: propertyEditorWidget.h:80
Definition: propertyEditorWidget.h:118
Definition: propertyEditorWidget.h:93
QLabel * myLabel
Definition: propertyEditorWidget.h:155
QVariant myValue
Definition: propertyEditorWidget.h:76
virtual void colorSelected(const QColor &color)
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:122
virtual void pickColor()
QLabel * myColorArea
Definition: propertyEditorWidget.h:38
Definition: propertyEditorWidget.h:135
virtual QVariant value()=0
Definition: collectionEditor.h:28
virtual QString text()=0
DtColorPicker(QWidget *parent=0, Qt::WindowFlags fl=0)
DtCollectionEditor * myCollectionEditor
Definition: propertyEditorWidget.h:157
QHBoxLayout * myFrameLayout
Definition: propertyEditorWidget.h:41
Definition: propertyEditorWidget.h:106
QToolButton * myBtnSelect
Definition: propertyEditorWidget.h:39

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)