VR-Forces 5.0.1 Developer's Guide
 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 #include <QtCore/QObject>
16 
20 
22 {
23  Q_OBJECT
24 
25 public:
26 
27  typedef boost::function<void (makVrv::DtDe&, DtUiPushButtonElement*)> PushButtonSlot;
28 
31 
33  virtual ~DtUiPushButtonElement();
34 
35  virtual void createControls(QWidget*);
36 
38 
39  virtual void setSlot(const QString&);
40  virtual QString slot() const;
41 
42  static void addSlot(const std::string&, PushButtonSlot);
43 
44 protected slots:
45  virtual void buttonPressed();
46 
47 protected:
48  QString mySlot;
49 };
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:48
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
UI Element for specify a push button that will trigger an action specified by the property &quot;slot&quot;...
Definition: uiPushButtonElement.h:21
boost::function< void(makVrv::DtDe &, DtUiPushButtonElement *)> PushButtonSlot
Definition: uiPushButtonElement.h:27
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:70
#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:180

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)