VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dateTimeEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
15 class QDateTimeEdit;
16 class QLabel;
17 class QSpinBox;
18 class QHBoxLayout;
19 
20 namespace makVrf
21 {
25  {
26  Q_OBJECT
27 
28  public:
29  DtDateTimeEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0, const CreationFlags& cflags = NormalMode);
30 
31  //DTOR
32  virtual ~DtDateTimeEntryWidget();
33 
35  virtual void setLabel(const QString&);
36  virtual QString label() const;
37 
39  virtual void setRange(double bottom, double top);
40 
42  virtual void setDefaultValue(const std::string&);
43 
45  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
46 
48  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
49 
52  virtual void setDateTimeInSeconds(time_t);
53  virtual time_t dateTimeInSeconds() const;
54 
56  virtual void resetToCurrentDateTime();
57 
58  static makVrv::DtUnicode codeVariableType()
59  {
60  return makVrv::DtUnicode::tr("Integer Unit: seconds");
61  }
62 
63  static std::string designerGroup()
64  {
65  return tr("VR-Forces Data Entry").toUtf8().constData();
66  }
67 
68  static std::string headerFile()
69  {
70  return tr("<vrfGuiCoreQt/dateTimeEntryWidget.h>").toUtf8().constData();
71  }
72 
73  static std::string variableName()
74  {
75  return tr("dateTime").toUtf8().constData();
76  }
77 
79  boost::signal<void ()> signal_changed;
80 
81  protected:
82  virtual void timezoneChanged(const std::string&, const std::string&);
83  virtual void dateTimeFormatChanged(const std::string&);
84 
85  protected slots:
86  virtual void onDateTimeChanged();
87 
88  public:
90  QDateTimeEdit* myDateTime;
91  QHBoxLayout* myContentLayout;
92  };
93 
95 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)