VR-Forces Developer's Guide
 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 
42  virtual ~DtBackEndSelectionListToolbar() override;
43 
45  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent) override;
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() override;
62 
66  virtual void setAllowAutomaticSelection(bool) override;
67  bool allowAutomaticSelection() const;
68 
69  virtual int backendCount() const override;
70 
71  virtual void setSimulationAddress(const DtSimulationAddress& addr) override;
72  virtual bool hasBackend(const DtSimulationAddress&) const override;
73  virtual void addBackend(const std::string& backend, const DtBackend&) override;
74  virtual void removeBackend(const std::string& backend) override;
75 
77  virtual void setCanChangeSelectedBackend(bool) override;
78 
79  protected:
81  void setupUi(QWidget* p);
82 
83  protected:
84 
85  virtual std::string statusFor(const std::string& backend) override;
86  virtual void setStatusFor(const std::string& backend, const std::string& status) override;
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() override;
113 
114  virtual DtSimulationAddress simulationAddress() const;
115  virtual void setSimulationAddress(const DtSimulationAddress&) override;
116 
120  virtual void setAllowAutomaticSelection(bool) override;
121  bool allowAutomaticSelection() const;
122 
124  virtual void setAsComboOnly(bool);
125 
126  virtual int backendCount() const override;
127 
128  virtual bool hasBackend(const DtSimulationAddress&) const override;
129 
131  virtual void setCanChangeSelectedBackend(bool) override;
132 
134  virtual void setSelectionModeOnly(bool);
135  bool selectionModeOnly() const
136  {
137  return mySelectionModeOnly;
138  }
139 
140  virtual void setShowMainLabel(bool b);
141  virtual void setLabelText(const QString& s);
142  virtual void addBackend(const std::string& backend, const DtSimulationAddress&);
143  virtual void addBackend(const std::string& backend, const DtBackend&) override;
144  virtual void removeBackend(const std::string& backend) override;
145  virtual void selectBackend(const std::string&);
146 
148  {
149  return myBackEnds;
150  }
151 
152  protected:
154  void setupUi(QWidget* p);
155  virtual void updateBackendList();
156  virtual bool eventFilter(QObject* o, QEvent* e) override;
157 
158  protected:
159  virtual std::string statusFor(const std::string& backend) override;
160  virtual void setStatusFor(const std::string& backend, const std::string& status) override;
161 
162  protected slots:
163  virtual void onItemSelectionChanged();
164 
165  protected:
169 
170  public:
171  QHBoxLayout* myMainLayout;
174  };
175 
177  {
178  public:
179 
181 
182  virtual ~DtBackEndSelectionListBuilder() override;
183 
184  virtual QWidget* create(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags) override;
185  };
186 }
187 
QComboBox * backends() const
Definition: backEndSelectionList.h:147
Contains makVrv::DtWidgetBuilder class.
makVrv::DtDe & myDe
Definition: backEndSelectionList.h:166
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:171
DtBackEndSelectionListLogic * myLogic
Definition: backEndSelectionList.h:167
Instances of DtBackend are created and maintained by a DtVrfBackendListener, and are containers for d...
Definition: backend.h:52
QVBoxLayout * myMainLayout
Definition: backEndSelectionList.h:96
bool selectionModeOnly() const
Definition: backEndSelectionList.h:135
A builder for the backend selection list toolbar. The menu string is &quot;DtBackendSelectionListToolbar&quot;...
Definition: backEndSelectionList.h:34
bool mySelectionModeOnly
Definition: backEndSelectionList.h:168
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:50
QComboBox * myBackEnds
Definition: backEndSelectionList.h:173
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:20
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:101
QLabel * myLabel
Definition: backEndSelectionList.h:172
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:76
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:176

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)