Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxImagePreviewWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXIMAGEPREVIEWWIDGET_H_
13 #define CXIMAGEPREVIEWWIDGET_H_
14 
15 #include "cxFileWatcherWidget.h"
16 
17 namespace cx
18 {
19 
29 class cxResourceWidgets_EXPORT ImagePreviewWidget : public FileWatcherWidget
30 {
31  Q_OBJECT
32 
33 public:
34  ImagePreviewWidget(QWidget* parent);
35  virtual ~ImagePreviewWidget();
36 
37  void setSize(int width, int height);
38 
39 public slots:
40  virtual void previewFileSlot(const QString& absoluteFilePath);
41 
42 private:
43  QLabel* mDisplayLabel;
44 };
45 
46 } /* namespace cx */
47 #endif /* CXIMAGEPREVIEWWIDGET_H_ */
Widget for displaying images.
Baseclass for widgets that should watch a file.
Namespace for all CustusX production code.