CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxInfoWidget.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 CXINFOWIDGET_H_
13 #define CXINFOWIDGET_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include "cxBaseWidget.h"
18 #include "cxForwardDeclarations.h"
19 
20 class QGridLayout;
21 class QVBoxLayout;
22 class QTableWidget;
23 
24 namespace cx {
25 
26 /*
27  * \class InfoWidget
28  *
29  * \brief Base class for displaying information.
30  *
31  * \date Apr 26, 2013
32  * \author Janne Beate Bakeng, SINTEF
33  */
34 class cxGui_EXPORT InfoWidget : public BaseWidget
35 {
36  Q_OBJECT
37 
38 public:
39  InfoWidget(QWidget* parent, QString objectName, QString windowTitle);
40  virtual ~InfoWidget(){};
41 
42  void addStretch();
43 
44 protected:
45  void populateTableWidget(std::map<std::string, std::string>& info);
46 
47  QGridLayout* gridLayout;
48  QTableWidget* mTableWidget;
49 
50 private:
51  QVBoxLayout* toptopLayout;
52 };
53 
54 } /* namespace cx */
55 #endif /* CXINFOWIDGET_H_ */
virtual ~InfoWidget()
Definition: cxInfoWidget.h:40
QTableWidget * mTableWidget
Definition: cxInfoWidget.h:48
QGridLayout * gridLayout
Definition: cxInfoWidget.h:47
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
Namespace for all CustusX production code.