VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiVectorElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 #include <matrix/vlVector.h>
14 
15 class QLayout;
16 class QLineEdit;
17 class QGridLayout;
18 class QDoubleValidator;
19 class QFrame;
20 
24 {
25 public:
26 
29 
31  virtual ~DtUiVectorElement();
32 
34 
35  virtual void setSingleRowLabel(const QString&);
36  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
37 
38  virtual void setEnabled(bool);
39 
40  virtual void setValue(const DtVector&);
41 
42 protected:
43  virtual void createControls(QWidget*);
44  virtual void updateLabelTitle();
45  virtual bool allXValuesTheSame() const;
46  virtual bool allYValuesTheSame() const;
47  virtual bool allZValuesTheSame() const;
48 
49 protected:
50  virtual void decorateElement();
51  virtual void elementChanged();
52  virtual void setModified(QWidget* l, bool modified);
53 
54  virtual bool inGridLayout() const;
55  virtual QLayout* gridLayout() const;
56  virtual int gridRowPosition() const;
57  virtual QString labelTitle() const;
58 
59  virtual void setBlockSignals(bool block);
60 
61 public:
62  QLayout* myLayout;
63  QGridLayout* myMultiLineDataLayout;
64 
65  QWidget* myContainer;
66 
69 
72 
75 
76  QFrame* myLine;
77 
78 protected:
82  QDoubleValidator* myValidator;
84 };
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
bool myInParentGridLayout
Definition: uiVectorElement.h:80
QLineEdit * myX
Definition: uiVectorElement.h:68
QWidget * myContainer
Definition: uiVectorElement.h:65
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:174
virtual void elementChanged()
QLineEdit * myY
Definition: uiVectorElement.h:71
QGridLayout * myMultiLineDataLayout
Definition: uiVectorElement.h:63
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element.
QLineEdit * myZ
Definition: uiVectorElement.h:74
QLayout * myLayout
Definition: uiVectorElement.h:62
QFrame * myLine
Definition: uiVectorElement.h:76
bool mySingleRow
Definition: uiVectorElement.h:83
QDoubleValidator * myValidator
Definition: uiVectorElement.h:82
QString myOriginalSingleLabelTitle
Definition: uiVectorElement.h:79
int myGridRowPosition
Definition: uiVectorElement.h:81
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
QLabel * myLocationLabelY
Definition: uiVectorElement.h:70
Allows the editing of a vector element.
Definition: uiVectorElement.h:23
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
QLabel * myLocationLabelX
Definition: uiVectorElement.h:67
virtual QString labelTitle() const
Returns the unmodified label title.
QLabel * myLocationLabelZ
Definition: uiVectorElement.h:73
virtual void updateLabelTitle()
Updates label title based on valid units.
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:32
Base class of the ui element class chain.
Definition: uiElement.h:169

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)