VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDriverWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 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 <QtGui/QWidget>
19 #include <vrvCoreQt/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_myConfigureButton_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 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)