Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkFileChooser.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef QmitkFileChooser_h_Included
18
#define QmitkFileChooser_h_Included
19
20
#include "
MitkQtWidgetsExtExports.h
"
21
#include <QWidget>
22
23
class
QPushButton;
24
class
QLineEdit;
25
32
class
MITKQTWIDGETSEXT_EXPORT
QmitkFileChooser
:
public
QWidget
33
{
34
Q_OBJECT
35
36
public
:
40
explicit
QmitkFileChooser
(QWidget *parent =
nullptr
, Qt::WindowFlags f =
nullptr
);
41
46
void
SetHorizotalLayout(
bool
horizontalLayout);
51
void
SetSelectDir(
bool
selectDir);
56
void
SetFileMustExist(
bool
fileMustExist);
60
void
SetFile(
const
std::string &file);
64
void
SetFilePattern(
const
std::string &filepattern);
68
void
SetReadOnly(
bool
ReadOnly);
72
bool
IsValidFile()
const
;
76
virtual
std::string GetFile()
const
;
77
78
signals:
82
void
NewFileSelected(
const
std::string &);
83
84
protected
slots:
88
virtual
void
OnSelectFileClicked(
bool
/*checked=false*/
);
92
virtual
void
OnFileEditingFinished();
93
94
protected
:
98
bool
m_SelectDir
;
102
bool
m_FileMustExist
;
103
107
QString
m_FilePattern
;
111
QPushButton *
m_SelectFile
;
115
QLineEdit *
m_File
;
116
};
117
118
#endif
QmitkFileChooser::m_SelectFile
QPushButton * m_SelectFile
Definition:
QmitkFileChooser.h:111
QmitkFileChooser::m_File
QLineEdit * m_File
Definition:
QmitkFileChooser.h:115
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
QmitkFileChooser::m_SelectDir
bool m_SelectDir
Definition:
QmitkFileChooser.h:98
QmitkFileChooser::m_FileMustExist
bool m_FileMustExist
Definition:
QmitkFileChooser.h:102
QmitkFileChooser
Convenience Widget showing a line edit with the path of a file or directory and a button which invoke...
Definition:
QmitkFileChooser.h:32
MitkQtWidgetsExtExports.h
QmitkFileChooser::m_FilePattern
QString m_FilePattern
Definition:
QmitkFileChooser.h:107
git
MITK
Modules
QtWidgetsExt
include
QmitkFileChooser.h
Generated on Fri Feb 3 2017 20:52:13 for Medical Imaging Interaction Toolkit by
1.8.9.1