VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiAppearanceElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 #pragma once
8 
11 
12 class QLabel;
13 class QLineEdit;
14 class QToolButton;
15 class QHBoxLayout;
16 
20 
22 {
23  Q_OBJECT
24 
25 public:
26 
29 
31  virtual ~DtUiAppearanceElement();
32 
34 
35  virtual void setAppearance(const DtEntityType&, int appearance);
36  virtual int appearance() const;
37 
38 protected:
39  virtual void createControls(QWidget*) override;
40  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw) override;
41  virtual void updateAppearanceText();
42  virtual void elementChanged() override;
43  virtual void sendUpdatedValues();
44  virtual void processUiEvent(const DtUiElementEvent& e);
45 
46 protected slots:
47  virtual void selectAppearance();
48  virtual void clearAppearance();
49 
50 public:
51  QHBoxLayout* myAppearanceLayout;
56  QWidget* myWidget;
57 
58 protected:
59  DtEntityType myEntityType;
60 };
QToolButton * mySelectAppearance
Definition: uiAppearanceElement.h:54
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.
QHBoxLayout * myAppearanceLayout
Definition: uiAppearanceElement.h:51
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:234
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:188
Element for managing an Articulated Part number variable. It hooks to the DtArtPartManager to auto-as...
Definition: uiAppearanceElement.h:21
virtual void elementChanged()
QLineEdit * myAppearance
Definition: uiAppearanceElement.h:53
DtEntityType myEntityType
Definition: uiAppearanceElement.h:59
QWidget * myWidget
Definition: uiAppearanceElement.h:56
QLabel * myAppearanceLabel
Definition: uiAppearanceElement.h:52
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
QToolButton * myClearAppearance
Definition: uiAppearanceElement.h:55
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:183

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)