10 #include <QtGui/QValidator>
51 virtual void onCurrentAmountChanged();
52 virtual void onFullAmountChanged();
53 virtual void resetResources();
54 virtual void onItemSelectionChanged();
55 virtual void onRemoveResource();
56 virtual void onAddResource();
57 virtual void revertButtonClicked();
58 virtual void binChanged();
59 virtual void revertResourceItem();
62 virtual void setFromParameters(
const std::vector<DtReaderWriter*>& parentRw)
override;
63 virtual void setFromParameters(
const std::vector<DtComponentSystemDefinition*>& rws)
override;
81 bool myIgnoreChanges =
false;
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
QIntValidator myIntValidator
Definition: uiResourceEditor.h:79
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:244
QTreeWidget * myResources
Definition: uiResourceEditor.h:75
The DtSimResourceManager is responsible for managing all of the resources for a given entity...
Definition: simResourceManager.h:18
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:198
QVBoxLayout * myMainLayout
Definition: uiResourceEditor.h:70
virtual void decorateElement()
Sets element decoration depending on the isModified state of the element. This version changes myLabe...
QDoubleValidator myDoubleValidator
Definition: uiResourceEditor.h:80
Reader/Writer class which specifies the contents of a DtComponentSystem. This lists the sensors...
Definition: componentSystemDefinition.h:31
QWidget * myWidget
Definition: uiResourceEditor.h:69
QToolButton * myRevertToParentButton
Definition: uiResourceEditor.h:76
QToolButton * myRemoveButton
Definition: uiResourceEditor.h:74
QHBoxLayout * myTitleLayout
Definition: uiResourceEditor.h:71
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
DtSimResource is a class which will define a SISO Enumeration to use as a resource and the quantity o...
Definition: simResource.h:32
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
QToolButton * myAddButton
Definition: uiResourceEditor.h:73
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:76
Element for managing entity resources.
Definition: uiResourceEditor.h:24
#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:193
QLabel * myTitle
Definition: uiResourceEditor.h:72