VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDriverWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvCoreQt/DtPage.h>
14 #include <QtWidgets/QWidget>
16 #include "DtDriverWidgetUI.hpp"
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtDriverWidgetLogic;
22 
26  public DtPage,
28  public Ui::DtDriverWidgetUI
29  {
30  Q_OBJECT;
31 
32  public:
33 
34  virtual ~DtDriverWidget();
35 
37  virtual QIcon icon();
38 
40  virtual QString title();
41 
43  virtual const std::string& pageClassName() const;
44 
45  virtual void addDriver(const std::string& driverName);
46  virtual void removeDriver(const std::string& driverName);
47  virtual void changeDriverState(const std::string& driverName,bool running);
48 
49  virtual std::string queryUserForNewDriver(const std::list<std::string>& driverNames);
50 
51  protected slots:
52 
53  virtual void on_myNewButton_clicked();
54  virtual void on_myDeleteButton_clicked();
55  virtual void on_myStartButton_clicked();
56  virtual void on_myStopButton_clicked();
57  virtual void on_mySelectAllButton_clicked();
58  virtual void on_myDriverTreeWidget_itemSelectionChanged();
59 
60  protected:
61 
63  friend class DtDriverWidgetCreator;
64 
66  DtDriverWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
67 
69  virtual void activate();
70 
72  virtual void deactivate();
73 
74  protected:
75  std::string myClassName;
77  };
78 
82  {
83  public:
84 
87 
89  virtual ~DtDriverWidgetCreator();
90 
94  virtual std::string pageClassName() const;
95 
97  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
98  };
99 
100 }
Logic for makVrv::DtDriverWidget.
Definition: DtDriverWidgetLogic.h:24
Contains makVrv::DtPage class.
DtDriverWidgetLogic * myLogic
Definition: DtDriverWidget.h:76
The page creator.
Definition: DtPage.h:114
Contains makVrv::DtDriverWidgetInterface class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Widget for controlling drivers.
Definition: DtDriverWidget.h:25
The creator class needed to be used to create a DtDriverWidget.
Definition: DtDriverWidget.h:81
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:27
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Interface for the makVrv::DtDriverWidget.
Definition: DtDriverWidgetInterface.h:20
std::string myClassName
Definition: DtDriverWidget.h:75

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)