CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::FileSelectWidget Class Reference

Widget for displaying and selecting a single file. More...

#include <cxFileSelectWidget.h>

Inheritance diagram for cx::FileSelectWidget:

Public Slots

void refresh ()


void fileSelected (QString name)

Public Member Functions

 FileSelectWidget (QWidget *parent)
QString getFilename () const
void setFilename (QString name)
void setNameFilter (QStringList filter)
void setPaths (QStringList paths)
void setPath (QString path)
void setFolderDepth (int depth)
QStringList getAllFiles ()

Detailed Description

Widget for displaying and selecting a single file.

A combo box shows all available files within the current path (recursively), and a tool button is used to browse for files outside this path.

Default name filter is .mhd

Definition at line 45 of file cxFileSelectWidget.h.

Constructor & Destructor Documentation

cx::FileSelectWidget::FileSelectWidget ( QWidget *  parent)

Definition at line 31 of file cxFileSelectWidget.cpp.

Member Function Documentation

void cx::FileSelectWidget::fileSelected ( QString  name)
QStringList cx::FileSelectWidget::getAllFiles ( )

Definition at line 117 of file cxFileSelectWidget.cpp.

QString cx::FileSelectWidget::getFilename ( ) const

Definition at line 55 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::refresh ( )

Definition at line 150 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::setFilename ( QString  name)

Definition at line 60 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::setFolderDepth ( int  depth)

Definition at line 50 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::setNameFilter ( QStringList  filter)

Definition at line 80 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::setPath ( QString  path)

Definition at line 85 of file cxFileSelectWidget.cpp.

void cx::FileSelectWidget::setPaths ( QStringList  paths)

Definition at line 93 of file cxFileSelectWidget.cpp.

The documentation for this class was generated from the following files: