VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
95  virtual void onViewSelectionChanged();
96 
100  virtual void onItemPressed();
101 
103  virtual void onClearObserverViews();
104 
107  virtual void onSaveViews();
108 
111  virtual void onSaveSelectedView();
112 
114  virtual void onDeleteSelectedView();
115 
118  virtual void onLoadViews();
119 
124  virtual void onLoadViewsAndMakeCurrent();
125 
129  virtual void observerViewNameChanged();
130 
131  protected:
132 
133  std::string myClassName;
135 
136  public:
137  QVBoxLayout* myMainLayout;
138  QHBoxLayout* myButtonLayout;
147 
149  };
150 
154  {
155  public:
156 
159 
161  virtual ~DtObserverViewsWidgetCreator();
162 
166  virtual std::string pageClassName() const;
167 
169  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
170  };
171 }
172 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)