NorMIT-nav  22.09
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 ()
 

Signals

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

◆ FileSelectWidget()

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

Definition at line 31 of file cxFileSelectWidget.cpp.

Member Function Documentation

◆ fileSelected

void cx::FileSelectWidget::fileSelected ( QString  name)
signal

◆ getAllFiles()

QStringList cx::FileSelectWidget::getAllFiles ( )

Definition at line 117 of file cxFileSelectWidget.cpp.

◆ getFilename()

QString cx::FileSelectWidget::getFilename ( ) const

Definition at line 55 of file cxFileSelectWidget.cpp.

◆ refresh

void cx::FileSelectWidget::refresh ( )
slot

Definition at line 150 of file cxFileSelectWidget.cpp.

◆ setFilename()

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

Definition at line 60 of file cxFileSelectWidget.cpp.

◆ setFolderDepth()

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

Definition at line 50 of file cxFileSelectWidget.cpp.

◆ setNameFilter()

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

Definition at line 80 of file cxFileSelectWidget.cpp.

◆ setPath()

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

Definition at line 85 of file cxFileSelectWidget.cpp.

◆ setPaths()

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: