CustusX  22.04-rc5
An IGT application
cxFilenameWidget.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 #ifndef CXFILENAMEWIDGET_H
12 #define CXFILENAMEWIDGET_H
13 
14 #include "cxResourceWidgetsExport.h"
15 
16 #include <QWidget>
17 #include <QSlider>
18 #include <QLineEdit>
19 #include <QLabel>
20 #include <QGridLayout>
21 #include <boost/shared_ptr.hpp>
23 
24 namespace cx
25 {
26 class FileInputWidget;
27 typedef boost::shared_ptr<class FilePathProperty> FilePathPropertyPtr;
28 
35 class cxResourceWidgets_EXPORT FilenameWidget: public OptimizedUpdateWidget
36 {
37 Q_OBJECT
38 public:
39  FilenameWidget(QWidget* parent, FilePathPropertyPtr, QGridLayout* gridLayout = 0, int row = 0);
40 
41 private slots:
42  virtual void prePaintEvent();
43  void editingFinished();
44 private:
45  FileInputWidget* mFileInput;
46  FilePathPropertyPtr mData;
47 };
48 
49 } // namespace cx
50 
51 #endif // CXFILENAMEWIDGET_H
Composite widget for filename edit.
Interface for all classes following the modified/prepaint paradigm.
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.