VR-Forces 4.6.1 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 }

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)