VR-Forces 4.8 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 /******************************************************************************
6 ** $RCSfile: DtDriverWidget.h,v $ $Revision: 1.16 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <vrvCoreQt/DtPage.h>
17 #include <QtWidgets/QWidget>
19 #include "DtDriverWidgetUI.hpp"
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtDriverWidgetLogic;
25 
29  public DtPage,
31  public Ui::DtDriverWidgetUI
32  {
33  Q_OBJECT;
34 
35  public:
36 
37  virtual ~DtDriverWidget();
38 
40  virtual QIcon icon();
41 
43  virtual QString title();
44 
46  virtual const std::string& pageClassName() const;
47 
48  virtual void addDriver(const std::string& driverName);
49  virtual void removeDriver(const std::string& driverName);
50  virtual void changeDriverState(const std::string& driverName,bool running);
51 
52  virtual std::string queryUserForNewDriver(const std::list<std::string>& driverNames);
53 
54  protected slots:
55 
56  virtual void on_myNewButton_clicked();
57  virtual void on_myDeleteButton_clicked();
58  virtual void on_myStartButton_clicked();
59  virtual void on_myStopButton_clicked();
60  virtual void on_mySelectAllButton_clicked();
61  virtual void on_myDriverTreeWidget_itemSelectionChanged();
62 
63  protected:
64 
66  friend class DtDriverWidgetCreator;
67 
69  DtDriverWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
70 
72  virtual void activate();
73 
75  virtual void deactivate();
76 
77  protected:
78  std::string myClassName;
80  };
81 
85  {
86  public:
87 
90 
92  virtual ~DtDriverWidgetCreator();
93 
97  virtual std::string pageClassName() const;
98 
100  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
101  };
102 
103 }
Logic for makVrv::DtDriverWidget.
Definition: DtDriverWidgetLogic.h:27
Contains makVrv::DtPage class.
DtDriverWidgetLogic * myLogic
Definition: DtDriverWidget.h:79
The page creator.
Definition: DtPage.h:117
Contains makVrv::DtDriverWidgetInterface class.
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Widget for controlling drivers.
Definition: DtDriverWidget.h:28
The creator class needed to be used to create a DtDriverWidget.
Definition: DtDriverWidget.h:84
The page is a single widget component which is viewed in a page collection.
Definition: DtPage.h:30
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Interface for the makVrv::DtDriverWidget.
Definition: DtDriverWidgetInterface.h:23
std::string myClassName
Definition: DtDriverWidget.h:78

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)