VR-Forces 4.2 Class Documentation
DtBackEndSelectionList.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>
17 #include <vrvCoreQt/DtWidgetBuilder.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 
42  class DT_DLL_VRFGUICOREQT DtBackEndSelectionListToolbar : public makVrv::DtToolbar
43  {
44  public:
45 
47  DtBackEndSelectionListToolbar(makVrv::DtDe&);
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:
86  makVrv::DtDe& myDe;
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  protected:
110  void setupUi(QWidget* p);
111 
112  protected:
113  virtual void addBackend(const std::string& backend, const DtBackend&);
114  virtual void removeBackend(const std::string& backend);
115 
116  virtual std::string statusFor(const std::string& backend);
117  virtual void setStatusFor(const std::string& backend, const std::string& status);
118 
119  protected slots:
120  virtual void onItemSelectionChanged();
121 
122  protected:
123  makVrv::DtDe& myDe;
125 
126  public:
127  QHBoxLayout* myMainLayout;
128  QLabel* myLabel;
130  };
131 
132  class DT_DLL_VRFGUICOREQT DtBackEndSelectionListBuilder : public makVrv::DtWidgetBuilder
133  {
134 
135  public:
136 
138 
140 
141  virtual QWidget* create( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
142  };
143 }
144 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)