VR-Forces 4.1 Class Documentation
DtObserverViewsWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtObserverViewsWidget.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <vrvCoreQt/DtPage.h>
17 #include <vrvCore/DtObserver.h>
18 
19 class QTreeWidget;
20 class QVBoxLayout;
21 class QHBoxLayout;
22 class QPushButton;
23 
24 namespace makVrv
25 {
26  class DtObserverViewsWidgetLogic;
27 
32  : public DtPage
34  {
35  Q_OBJECT
36 
37  public:
38 
40  virtual ~DtObserverViewsWidget();
41 
43  virtual QIcon icon();
44 
46  virtual QString title();
47 
49  virtual const std::string& pageClassName() const;
50 
52  virtual std::string currentObserverView() const;
53 
54  protected:
57 
59  DtObserverViewsWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
60 
62  virtual void activate();
63 
65  virtual void deactivate();
66 
68  void setupUi(QWidget* p);
69 
72  virtual void setViewStatesEnabled(bool);
73 
75  virtual void addObserverView(const std::string&);
76 
78  virtual void clearObserverViews();
79 
81  virtual void deleteView(const std::string&);
82 
84  virtual void renameObserverRecord(const std::string& newName,
85  const std::string& oldName);
86 
87  protected slots:
88 
90  virtual void onAddObserverView();
91 
94  virtual void onSetObserverView();
95 
97  virtual void onClearObserverViews();
98 
101  virtual void onSaveViews();
102 
105  virtual void onSaveSelectedView();
106 
108  virtual void onDeleteSelectedView();
109 
112  virtual void onLoadViews();
113 
118  virtual void onLoadViewsAndMakeCurrent();
119 
123  virtual void observerViewNameChanged();
124 
125  protected:
126 
127  std::string myClassName;
129 
130  public:
131  QVBoxLayout* myMainLayout;
132  QHBoxLayout* myButtonLayout;
141 
142  };
143 
147  {
148  public:
149 
152 
154  virtual ~DtObserverViewsWidgetCreator();
155 
159  virtual std::string pageClassName() const;
160 
162  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
163  };
164 }
165 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)