VR-Forces 5.0.3 Developer's Guide
 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) 2021 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 
41  virtual DtQIconConfigurations qIconConfigurations() const;
42 
44  virtual QString title();
45 
47  virtual const std::string& pageClassName() const;
48 
49  virtual void addDriver(const std::string& driverName);
50  virtual void removeDriver(const std::string& driverName);
51  virtual void changeDriverState(const std::string& driverName,bool running);
52 
53  virtual std::string queryUserForNewDriver(const std::list<std::string>& driverNames);
54 
55  protected slots:
56 
57  virtual void on_myNewButton_clicked();
58  virtual void on_myDeleteButton_clicked();
59  virtual void on_myStartButton_clicked();
60  virtual void on_myStopButton_clicked();
61  virtual void on_mySelectAllButton_clicked();
62  virtual void on_myDriverTreeWidget_itemSelectionChanged();
63 
64  protected:
65 
67  friend class DtDriverWidgetCreator;
68 
70  DtDriverWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
71 
73  virtual void activate();
74 
76  virtual void deactivate();
77 
78  protected:
79  std::string myClassName;
81  };
82 
86  {
87  public:
88 
91 
93  virtual ~DtDriverWidgetCreator();
94 
98  virtual std::string pageClassName() const;
99 
101  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
102  };
103 
104 }
Logic for makVrv::DtDriverWidget.
Definition: DtDriverWidgetLogic.h:24
Contains makVrv::DtPage class.
DtDriverWidgetLogic * myLogic
Definition: DtDriverWidget.h:80
The page creator. This class should be extended by all page classes.
Definition: DtPage.h:121
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:85
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. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Interface for the makVrv::DtDriverWidget.
Definition: DtDriverWidgetInterface.h:20
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:75
std::string myClassName
Definition: DtDriverWidget.h:79

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)