NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
SnapshotView.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef SnapshotView_h
16 #define SnapshotView_h
17 
18 #include <QmitkAbstractView.h>
19 #include "ui_SnapshotViewControls.h"
20 
21 
27 class SnapshotView : public QmitkAbstractView
28 {
29  // this is needed for all Qt objects that should have a Qt meta-object
30  // (everything that derives from QObject and wants to have signal/slots)
31  Q_OBJECT
32 
33 public:
34 
35  SnapshotView();
36  virtual ~SnapshotView();
37 
39  static const std::string VIEW_ID;
40 
42  virtual std::string GetViewID() const;
43 
44 protected:
45 
47  virtual void CreateQtPartControl(QWidget *parent) override;
48 
50  virtual void SetFocus() override;
51 
52 protected slots:
53 
54  virtual void OnTakeSnapshotButtonPressed();
55 
56 protected:
57  Ui::SnapshotViewControls *m_Controls;
58 
59 private:
60 
61  QWidget* m_Parent;
62 };
63 
64 #endif // SnapshotView_h
65 
SnapshotView()
Definition: SnapshotView.cxx:42
static const std::string VIEW_ID
Static view ID = uk.ac.ucl.cmic.snapshot.
Definition: SnapshotView.h:39
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: SnapshotView.cxx:72
Simple user interface to provide screenshots of the current editor window.
Definition: SnapshotView.h:27
virtual void OnTakeSnapshotButtonPressed()
Definition: SnapshotView.cxx:76
virtual std::string GetViewID() const
Returns the view ID.
Definition: SnapshotView.cxx:52
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: SnapshotView.cxx:57
Ui::SnapshotViewControls * m_Controls
Definition: SnapshotView.h:57
virtual ~SnapshotView()
Definition: SnapshotView.cxx:48
GLsizei const GLcharARB ** string
Definition: glew.h:5194