OpenMS
OutputDirectory Class Reference

A simple widget with a line-edit and a browse button to choose filenames. More...

#include <OpenMS/VISUAL/OutputDirectory.h>

Inheritance diagram for OutputDirectory:
[legend]
Collaboration diagram for OutputDirectory:
[legend]

Public Slots

void showFileDialog ()
 Lets the user select the file via a file dialog. More...
 

Signals

void directoryChanged (const QString &dir)
 emitted whenever the outputdirectory is changed (also when setDirectory() is used) More...
 

Public Member Functions

 OutputDirectory (QWidget *parent)
 Constructor. More...
 
 ~OutputDirectory ()
 Destructor. More...
 
void setDirectory (const QString &dir)
 Sets the text in the line-edit. More...
 
QString getDirectory () const
 return the directory currently set (does not need to be valid) More...
 
bool dirNameValid () const
 check if the current directory exists and is writeable More...
 

Private Slots

void textEditChanged_ (const QString &new_text)
 forward internal textEdit::textChanged to directoryChanged signal More...
 

Private Attributes

Ui::OutputDirectoryTemplate * ui_
 

Detailed Description

A simple widget with a line-edit and a browse button to choose filenames.

Constructor & Destructor Documentation

◆ OutputDirectory()

OutputDirectory ( QWidget parent)

Constructor.

◆ ~OutputDirectory()

Destructor.

Member Function Documentation

◆ directoryChanged

void directoryChanged ( const QString &  dir)
signal

emitted whenever the outputdirectory is changed (also when setDirectory() is used)

◆ dirNameValid()

bool dirNameValid ( ) const

check if the current directory exists and is writeable

◆ getDirectory()

QString getDirectory ( ) const

return the directory currently set (does not need to be valid)

◆ setDirectory()

void setDirectory ( const QString &  dir)

Sets the text in the line-edit.

◆ showFileDialog

void showFileDialog ( )
slot

Lets the user select the file via a file dialog.

◆ textEditChanged_

void textEditChanged_ ( const QString &  new_text)
privateslot

forward internal textEdit::textChanged to directoryChanged signal

Member Data Documentation

◆ ui_

Ui::OutputDirectoryTemplate* ui_
private