Fraxinus  2023.01.05-dev+develop.0da12
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

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

Definition at line 31 of file cxFileSelectWidget.cpp.

Member Function Documentation

void cx::FileSelectWidget::fileSelected ( QString  name)
signal
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 ( )
slot

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: