VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
backEndSelectionList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvCoreQt/DtToolbar.h>
10 
13 
14 #include <QtWidgets/QWidget>
15 
16 class QComboBox;
17 class QTreeWidget;
18 class QVBoxLayout;
19 class QHBoxLayout;
20 class QLabel;
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
27 namespace makVrf
28 {
29  class DtBackEndSelectionListLogic;
30 
35  {
36  public:
37 
40 
43 
45  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
46 
47  };
48 
51  : public QWidget
53  {
54  Q_OBJECT
55 
56  public:
58  DtBackEndSelectionList( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
59 
61  virtual ~DtBackEndSelectionList();
62 
66  virtual void setAllowAutomaticSelection(bool);
67  bool allowAutomaticSelection() const;
68 
69  virtual int backendCount() const;
70 
71  virtual void setSimulationAddress(const DtSimulationAddress& addr);
72  virtual bool hasBackend(const DtSimulationAddress&) const;
73 
75  virtual void setCanChangeSelectedBackend(bool);
76 
77  protected:
79  void setupUi(QWidget* p);
80 
81  protected:
82  virtual void addBackend(const std::string& backend, const DtBackend&);
83  virtual void removeBackend(const std::string& backend);
84 
85  virtual std::string statusFor(const std::string& backend);
86  virtual void setStatusFor(const std::string& backend, const std::string& status);
87 
88  protected slots:
89  virtual void onItemSelectionChanged();
90 
91  protected:
94 
95  public:
96  QVBoxLayout* myMainLayout;
98  };
99 
102  : public QWidget
104  {
105  Q_OBJECT
106 
107  public:
109  DtBackEndSelectionCombo( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
110 
112  virtual ~DtBackEndSelectionCombo();
113 
114  virtual DtSimulationAddress simulationAddress() const;
115  virtual void setSimulationAddress(const DtSimulationAddress&);
116 
120  virtual void setAllowAutomaticSelection(bool);
121  bool allowAutomaticSelection() const;
122 
123  virtual int backendCount() const;
124 
125  virtual bool hasBackend(const DtSimulationAddress&) const;
126 
128  virtual void setCanChangeSelectedBackend(bool);
129 
130  protected:
132  void setupUi(QWidget* p);
133 
134  protected:
135  virtual void addBackend(const std::string& backend, const DtBackend&);
136  virtual void removeBackend(const std::string& backend);
137 
138  virtual std::string statusFor(const std::string& backend);
139  virtual void setStatusFor(const std::string& backend, const std::string& status);
140 
141  protected slots:
142  virtual void onItemSelectionChanged();
143 
144  protected:
147 
148  public:
149  QHBoxLayout* myMainLayout;
152  };
153 
155  {
156  public:
157 
159 
161 
162  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
163  };
164 }
165 
Contains makVrv::DtWidgetBuilder class.
makVrv::DtDe & myDe
Definition: backEndSelectionList.h:145
QTreeWidget * myBackEnds
Definition: backEndSelectionList.h:97
The base class for VR-Vantage toolbars.
Definition: DtToolbar.h:26
DtBackEndSelectionListLogic * myLogic
Definition: backEndSelectionList.h:93
QHBoxLayout * myMainLayout
Definition: backEndSelectionList.h:149
DtBackEndSelectionListLogic * myLogic
Definition: backEndSelectionList.h:146
Instances of DtBackend are created and maintained by a DtVrfBackendListener, and are containers for d...
Definition: backend.h:51
QVBoxLayout * myMainLayout
Definition: backEndSelectionList.h:96
A builder for the backend selection list toolbar.
Definition: backEndSelectionList.h:34
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:50
QComboBox * myBackEnds
Definition: backEndSelectionList.h:151
Abstract interface for the back end slection list widget.
Definition: backEndSelectionListInterface.h:19
Definition: backEndSelectionListLogic.h:22
Contains makVrv::DtToolbar class declaration.
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:22
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:101
QLabel * myLabel
Definition: backEndSelectionList.h:150
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtDe & myDe
Definition: backEndSelectionList.h:92
This class is the generic builder base class for building a widget.
Definition: DtWidgetBuilder.h:22
Definition: backEndSelectionList.h:154

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)