VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtThreeDigitSpinBox.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
15 
16 #include <QtWidgets/QSpinBox>
17 
18 #include <QtCore/QString>
19 
20 namespace makVrv
21 {
22 
26  {
27  Q_OBJECT
28 
30 
31  public:
32 
33  DtThreeDigitSpinBox(QWidget * parent = 0);
34 
41  virtual QString textFromValue(int value) const;
42 
43  protected:
44 
50  void virtual keyReleaseEvent(QKeyEvent* event);
51  };
52 
56  : public DtVirtualBaseClass
57  {
58  public:
59  static DtThreeDigitSpinBoxCreator& instance(DtDe& de);
60  static void registerInstance(DtDe& de, DtThreeDigitSpinBoxCreator* creator);
61  virtual DtThreeDigitSpinBox* create(DtDe& de, QWidget* parent) const;
62  };
63 
64 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
Creator for the DtThreeDigitSpinBox.
Definition: DtThreeDigitSpinBox.h:55
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
A Spin Box widget that left-pads its integer value with zeros to ensure the value is displayed with a...
Definition: DtThreeDigitSpinBox.h:25

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)