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 
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 
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 
144  protected:
145  virtual void addBackend(const std::string& backend, const DtBackend&);
146  virtual void removeBackend(const std::string& backend);
147 
148  virtual std::string statusFor(const std::string& backend);
149  virtual void setStatusFor(const std::string& backend, const std::string& status);
150 
151  protected slots:
152  virtual void onItemSelectionChanged();
153 
154  protected:
158 
159  public:
160  QHBoxLayout* myMainLayout;
163  };
164 
166  {
167  public:
168 
170 
172 
173  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
174  };
175 }
176 
Contains makVrv::DtWidgetBuilder class.
makVrv::DtDe & myDe
Definition: backEndSelectionList.h:155
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:160
DtBackEndSelectionListLogic * myLogic
Definition: backEndSelectionList.h:156
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:157
A widget class for managing simulation back-ends.
Definition: backEndSelectionList.h:50
QComboBox * myBackEnds
Definition: backEndSelectionList.h:162
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:161
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:72
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:165

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)