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 
75  virtual void setCanChangeSelectedBackend(bool) override;
76 
77  protected:
79  void setupUi(QWidget* p);
80 
81  protected:
82  virtual void addBackend(const std::string& backend, const DtBackend&) override;
83  virtual void removeBackend(const std::string& backend) override;
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 
123  virtual int backendCount() const override;
124 
125  virtual bool hasBackend(const DtSimulationAddress&) const override;
126 
128  virtual void setCanChangeSelectedBackend(bool) override;
129 
131  virtual void setSelectionModeOnly(bool);
132  bool selectionModeOnly() const
133  {
134  return mySelectionModeOnly;
135  }
136 
137  virtual void setShowMainLabel(bool b);
138  virtual void setLabelText(const QString& s);
139 
140  protected:
142  void setupUi(QWidget* p);
143  virtual void updateBackendList();
144  virtual bool eventFilter(QObject* o, QEvent* e) override;
145 
146  protected:
147  virtual void addBackend(const std::string& backend, const DtBackend&) override;
148  virtual void removeBackend(const std::string& backend) override;
149 
150  virtual std::string statusFor(const std::string& backend) override;
151  virtual void setStatusFor(const std::string& backend, const std::string& status) override;
152 
153  protected slots:
154  virtual void onItemSelectionChanged();
155 
156  protected:
160 
161  public:
162  QHBoxLayout* myMainLayout;
165  };
166 
168  {
169  public:
170 
172 
173  virtual ~DtBackEndSelectionListBuilder() override;
174 
175  virtual QWidget* create(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags) override;
176  };
177 }
178 
Contains makVrv::DtWidgetBuilder class.
makVrv::DtDe & myDe
Definition: backEndSelectionList.h:157
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:162
DtBackEndSelectionListLogic * myLogic
Definition: backEndSelectionList.h:158
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
bool selectionModeOnly() const
Definition: backEndSelectionList.h:132
A builder for the backend selection list toolbar. The menu string is &quot;DtBackendSelectionListToolbar&quot;...
Definition: backEndSelectionList.h:34
bool mySelectionModeOnly
Definition: backEndSelectionList.h:159
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:50
QComboBox * myBackEnds
Definition: backEndSelectionList.h:164
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:163
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:167

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)