VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
backEndSelectionList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtBackEndSelectionList.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrvCoreQt/DtToolbar.h>
18 
21 
22 #include <QtGui/QWidget>
23 
24 class QComboBox;
25 class QTreeWidget;
26 class QVBoxLayout;
27 class QHBoxLayout;
28 class QLabel;
29 
30 namespace makVrv
31 {
32  class DtDe;
33 }
34 
35 namespace makVrf
36 {
37  class DtBackEndSelectionListLogic;
38 
43  {
44  public:
45 
48 
51 
53  virtual QToolBar* createToolbar(makVrv::DtDe&, QWidget* parent);
54 
55  };
56 
59  : public QWidget
61  {
62  Q_OBJECT
63 
64  public:
66  DtBackEndSelectionList( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
67 
69  virtual ~DtBackEndSelectionList();
70 
71  protected:
73  void setupUi(QWidget* p);
74 
75  protected:
76  virtual void addBackend(const std::string& backend, const DtBackend&);
77  virtual void removeBackend(const std::string& backend);
78 
79  virtual std::string statusFor(const std::string& backend);
80  virtual void setStatusFor(const std::string& backend, const std::string& status);
81 
82  protected slots:
83  virtual void onItemSelectionChanged();
84 
85  protected:
88 
89  public:
90  QVBoxLayout* myMainLayout;
92  };
93 
96  : public QWidget
98  {
99  Q_OBJECT
100 
101  public:
103  DtBackEndSelectionCombo( makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
104 
106  virtual ~DtBackEndSelectionCombo();
107 
108  virtual DtSimulationAddress simulationAddress() const;
109  virtual void setSimulationAddress(const DtSimulationAddress&);
110 
111  protected:
113  void setupUi(QWidget* p);
114 
115  protected:
116  virtual void addBackend(const std::string& backend, const DtBackend&);
117  virtual void removeBackend(const std::string& backend);
118 
119  virtual std::string statusFor(const std::string& backend);
120  virtual void setStatusFor(const std::string& backend, const std::string& status);
121 
122  protected slots:
123  virtual void onItemSelectionChanged();
124 
125  protected:
128 
129  public:
130  QHBoxLayout* myMainLayout;
133  };
134 
136  {
137 
138  public:
139 
141 
143 
144  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
145  };
146 }
147 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)