Fraxinus  18.10
An IGT application
cxLabeledLineEditWidget.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 
13 #ifndef CXLABELEDLINEEDITWIDGET_H_
14 #define CXLABELEDLINEEDITWIDGET_H_
15 
16 #include "cxResourceWidgetsExport.h"
17 
18 #include <QWidget>
19 #include <QSlider>
20 #include <QLineEdit>
21 #include <QLabel>
22 #include <QGridLayout>
23 #include "cxStringPropertyBase.h"
25 
26 namespace cx
27 {
28 
35 class cxResourceWidgets_EXPORT LabeledLineEditWidget: public OptimizedUpdateWidget
36 {
37 Q_OBJECT
38 public:
39  LabeledLineEditWidget(QWidget* parent, StringPropertyBasePtr, QGridLayout* gridLayout = 0, int row = 0);
40 private slots:
41  virtual void prePaintEvent();
42  void editingFinished();
43 private:
44  QLabel* mLabel;
45  QLineEdit* mLine;
47 };
48 
49 } // namespace cx
50 
51 #endif /* CXLABELEDLINEEDITWIDGET_H_ */
Composite widget for string edit.
boost::shared_ptr< class StringPropertyBase > StringPropertyBasePtr
Interface for all classes following the modified/prepaint paradigm.
Namespace for all CustusX production code.