Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Attributes
qSlicerDirectoryListView Class Reference

#include <Base/QTGUI/qSlicerDirectoryListView.h>

Inheritance diagram for qSlicerDirectoryListView:
Inheritance graph
[legend]
Collaboration diagram for qSlicerDirectoryListView:
Collaboration graph
[legend]

Public Types

typedef QWidget Superclass
 Superclass typedef. More...
 

Properties

QStringList directoryList
 

Public Slots

void addDirectory (const QString &path)
 
void clearDirectorySelection ()
 Clear the current directory selection. More...
 
void removeDirectory (const QString &path)
 
void removeSelectedDirectories ()
 
void selectAllDirectories ()
 Select all directories. More...
 
void setDirectoryList (const QStringList &paths)
 

Signals

void directoryListChanged ()
 This signal is emitted when a directory is added to the view. More...
 

Public Member Functions

QStringList directoryList (bool absolutePath=false) const
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
bool hasDirectory (const QString &path) const
 Return True if the path has already been added. More...
 
 qSlicerDirectoryListView (QWidget *parent=nullptr)
 Constructor. More...
 
QStringList selectedDirectoryList (bool absolutePath=false) const
 
 ~qSlicerDirectoryListView () override
 Destructor. More...
 

Protected Attributes

QScopedPointer< qSlicerDirectoryListViewPrivate > d_ptr
 

Detailed Description

Definition at line 34 of file qSlicerDirectoryListView.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 37 of file qSlicerDirectoryListView.h.

Property Documentation

◆ directoryList

QStringList qSlicerDirectoryListView::directoryList
readwrite

Definition at line 37 of file qSlicerDirectoryListView.h.

Constructor & Destructor Documentation

◆ qSlicerDirectoryListView()

qSlicerDirectoryListView::qSlicerDirectoryListView ( QWidget *  parent = nullptr)
explicit

Constructor.

◆ ~qSlicerDirectoryListView()

qSlicerDirectoryListView::~qSlicerDirectoryListView ( )
override

Destructor.

Member Function Documentation

◆ addDirectory

void qSlicerDirectoryListView::addDirectory ( const QString &  path)
slot

If path exists, add it to the view and emit signal directoryListChanged().

See also
directoryListChanged()

◆ clearDirectorySelection

void qSlicerDirectoryListView::clearDirectorySelection ( )
slot

Clear the current directory selection.

◆ directoryList()

QStringList qSlicerDirectoryListView::directoryList ( bool  absolutePath = false) const

◆ directoryListChanged

void qSlicerDirectoryListView::directoryListChanged ( )
signal

This signal is emitted when a directory is added to the view.

◆ dragEnterEvent()

void qSlicerDirectoryListView::dragEnterEvent ( QDragEnterEvent *  event)
override

◆ dropEvent()

void qSlicerDirectoryListView::dropEvent ( QDropEvent *  event)
override

◆ hasDirectory()

bool qSlicerDirectoryListView::hasDirectory ( const QString &  path) const

Return True if the path has already been added.

◆ removeDirectory

void qSlicerDirectoryListView::removeDirectory ( const QString &  path)
slot

Remove path from the list. The signal directoryListChanged() is emitted if the path was in the list.

See also
directoryListChanged()

◆ removeSelectedDirectories

void qSlicerDirectoryListView::removeSelectedDirectories ( )
slot

◆ selectAllDirectories

void qSlicerDirectoryListView::selectAllDirectories ( )
slot

Select all directories.

◆ selectedDirectoryList()

QStringList qSlicerDirectoryListView::selectedDirectoryList ( bool  absolutePath = false) const

◆ setDirectoryList

void qSlicerDirectoryListView::setDirectoryList ( const QStringList &  paths)
slot

Remove all entries and set paths has current list. The signal directoryListChanged() is emitted if the current list of directories is different from the provided one.

See also
addDirectory(), directoryListChanged()

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerDirectoryListViewPrivate> qSlicerDirectoryListView::d_ptr
protected

Definition at line 89 of file qSlicerDirectoryListView.h.


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