VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiPushButtonElement.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
19 
21 {
22  Q_OBJECT
23 
24 public:
25 
26  typedef boost::function<void (makVrv::DtDe&, DtUiPushButtonElement*)> PushButtonSlot;
27 
30 
32  virtual ~DtUiPushButtonElement();
33 
34  virtual void createControls(QWidget*);
35 
37 
38  virtual void setSlot(const QString&);
39  virtual QString slot() const;
40 
41  static void addSlot(const std::string&, PushButtonSlot);
42 
43 protected slots:
44  virtual void buttonPressed();
45 
46 protected:
47  QString mySlot;
48 };
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
QString mySlot
Definition: uiPushButtonElement.h:47
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:174
UI Element for specify a push button that will trigger an action specified by the property &quot;slot&quot;...
Definition: uiPushButtonElement.h:20
boost::function< void(makVrv::DtDe &, DtUiPushButtonElement *)> PushButtonSlot
Definition: uiPushButtonElement.h:26
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
#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)