MeVisLab Scripting Reference
MLABDicomBrowserControl Class Reference

Inherits MLABSimpleWidgetControl.

Public Slots

void expandSelectedDataset (int listViewID)
 
void selectedParentDataset (int listViewID)
 
int numDatasets ()
 
QString rootDir ()
 
QString currentDir ()
 
void reload ()
 
void setProject (const QString &project)
 
bool setDicomHierarchy (const QString &name)
 
void setFilter (const QString &extension, const QString &include, const QString &exclude, bool recursive)
 
void setRootDir (const QString &dir)
 
void setCurrentDir (const QString &dir)
 
void setPathBrowser (MLABPathBrowserControl *c)
 
void setTableView (MLABDicomBrowserTableControl *t)
 
bool setDataset (const QString &dataset)
 
bool selectNextDataset ()
 
bool selectPrevDataset ()
 
bool isFirstSelected ()
 
bool isLastSelected ()
 
- Public Slots inherited from MLABWidgetControl
void adjustSize ()
 
virtual void setEnabled (bool flag)
 
virtual void setVisible (bool flag)
 
virtual bool isVisible ()
 
virtual void setFocus ()
 
virtual bool hasFocus ()
 
virtual void setToolTip (const QString &string)
 
virtual void setWhatsThis (const QString &string)
 
void displayWhatsThis ()
 
void displayWhatsThis (const QString &text)
 
virtual void setTitle (const QString &)
 
QWidget * widget ()
 
QLayout * layout ()
 
virtual QString windowHandle ()
 
virtual bool createScreenshot (const QString &filename, bool grabFromScreen=true)
 
bool isReloadable () const
 
void reload (MLABTree *tree)
 
QString createGlobalScreenshot ()
 
QString applicationName ()
 
QSize size ()
 
int width ()
 
int height ()
 
int minWidth ()
 
int minHeight ()
 
int maxWidth ()
 
int maxHeight ()
 
virtual void setMinWidth (int s)
 
virtual void setMinHeight (int s)
 
void setMaxWidth (int s)
 
void setMaxHeight (int s)
 
QSize sizeHint ()
 
QSize minSize ()
 
QSize maxSize ()
 
void setMinSize (QSize size)
 
void setMaxSize (QSize size)
 
void updateLayout ()
 
int windowID ()
 
MLABWidgetControlcontrol (const QString &name)
 
float scaleFactor ()
 
MLABModulemodule ()
 
QString getType ()
 
QString getName ()
 
bool acceptDrops ()
 
void setAcceptDrops (bool flag)
 
void raiseWidget ()
 
void setStyleSheetFromString (const QString &styleSheetText)
 
void setStyleSheetFromFile (const QString &styleSheetFileName)
 
MLABTreetree ()
 
void updateMaxSize ()
 
bool expandX ()
 
bool expandY ()
 
MLABTreePtr getDefaultTagValues () const
 
virtual bool hasUncommittedChanges () const
 
virtual void applyUncommittedChanges ()
 
virtual void revertUncommittedChanges ()
 

Detailed Description

DicomBrowser control.

This control shows a DicomBrowser.

MDL reference: DicomBrowser

Member Function Documentation

QString MLABDicomBrowserControl::currentDir ( )
inlineslot

Returns the current Dir of the DicomBrowser.

void MLABDicomBrowserControl::expandSelectedDataset ( int  listViewID)
slot

Expand the selected Dataset.

bool MLABDicomBrowserControl::isFirstSelected ( )
slot

Return true, if the first Dataset is selected.

bool MLABDicomBrowserControl::isLastSelected ( )
slot

Return true, if the last Dataset is selected.

int MLABDicomBrowserControl::numDatasets ( )
slot

Returns the number of datasets currently in the DicomBrowser.

void MLABDicomBrowserControl::reload ( )
slot

Reload the DicomHierarchy from disk, used when the filesystem was updated.

QString MLABDicomBrowserControl::rootDir ( )
inlineslot

Returns the RootPath of the DicomBrowser.

void MLABDicomBrowserControl::selectedParentDataset ( int  listViewID)
slot

Go to the Parent of the selected Dataset.

bool MLABDicomBrowserControl::selectNextDataset ( )
slot

Select the next Dataset or the first, if none was selected before.

Return false, if there was no next Dataset.

bool MLABDicomBrowserControl::selectPrevDataset ( )
slot

Select the previous Dataset or the last, if none was selected before.

Return false, if there was no previous Dataset.

void MLABDicomBrowserControl::setCurrentDir ( const QString &  dir)
slot

Set the current Dir, normally used by PathBrowser, results in a reload of the DicomHierarchy.

bool MLABDicomBrowserControl::setDataset ( const QString &  dataset)
slot

Set the current Dataset.

Must give full absPath e.g. as returned by selectedDatasets() Returns true on success, or false, e.g. if given dataset does not exist

bool MLABDicomBrowserControl::setDicomHierarchy ( const QString &  name)
slot

Set a new DicomHierarchy, results in a reload. Returns false if the hierarchy does not exist.

void MLABDicomBrowserControl::setFilter ( const QString &  extension,
const QString &  include,
const QString &  exclude,
bool  recursive 
)
slot

Set the file-filter for searching files.

void MLABDicomBrowserControl::setPathBrowser ( MLABPathBrowserControl c)
slot

Set the PathBrowser for this DicomBrowser, results in an update of currentPath and a Reload.

void MLABDicomBrowserControl::setProject ( const QString &  project)
slot

Set a new Project for the DicomBrowser, results in loading a new DicomHierarchy.

void MLABDicomBrowserControl::setRootDir ( const QString &  dir)
slot

Set the RootDir, results in a Reaload of the DicomHierarchy.

void MLABDicomBrowserControl::setTableView ( MLABDicomBrowserTableControl t)
slot

Set the TableView for this DicomBrowser.