cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlQtWidgetFramerate.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Balazs P. Vagvolgyi
7  Created on: 2011-06-15
8 
9  (C) Copyright 2011 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _svlQtWidgetFramerate_h
23 #define _svlQtWidgetFramerate_h
24 
27 
28 #include <QObject>
29 #include <QString>
30 
31 // Always include last!
33 
34 // Forward declarations
35 class svlQtDialog;
36 class Ui_WidgetFramerate;
37 
38 
39 class CISST_EXPORT svlQtWidgetFramerate: public QObject, public cmnGenericObject
40 {
41  Q_OBJECT
43 
44 public:
48 
49  static svlQtWidgetFramerate* New(bool create = true);
50  void Delete();
51 
52  bool WaitForClose();
53 
54  bool Create();
55  double GetFramerate();
56  bool Destroy();
57 
58 protected:
60  Ui_WidgetFramerate *UIWidget;
61 
62 protected slots:
63  void QSlotCustomToggled(bool checked);
64  void QSlotCustomTextEdited(const QString & text);
65 
66  void QSlotCreate();
67  void QSlotGetFramerate();
68  void QSlotDestroy();
69 
70 private:
71  QString CustomText;
72  double Framerate;
73  bool retSuccess;
74 };
75 
77 
78 #endif // _svlQtWidgetFramerate_h
79 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Typedef for dynamic vectors.
Base class for high level objects.
Definition: cmnGenericObject.h:51
Definition: svlQtDialog.h:32
Macros to export the symbols of cisstStereoVisionQt (in a Dll).
Definition: svlQtWidgetFramerate.h:39
svlQtDialog * Dialog
Definition: svlQtWidgetFramerate.h:59
Defines cmnGenericObject.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Ui_WidgetFramerate * UIWidget
Definition: svlQtWidgetFramerate.h:60
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76