OpenMS  2.4.0
Public Slots | Public Member Functions | Protected Attributes | Private Attributes | List of all members
TOPPASInputFilesDialog Class Reference

Dialog which allows to specify a list of input files. More...

#include <OpenMS/VISUAL/DIALOGS/TOPPASInputFilesDialog.h>

Inheritance diagram for TOPPASInputFilesDialog:
QDialog

Public Slots

void showFileDialog ()
 Lets the user select files via a file dialog. More...
 
void removeSelected ()
 Removes all currently selected files from the list. More...
 
void removeAll ()
 Removes all files from the list. More...
 
void editCurrentItem ()
 Shows a TOPPASInputFileDialog which edits the current item. More...
 
void moveCurrentItem ()
 Moves the current item up/downwards. More...
 

Public Member Functions

 TOPPASInputFilesDialog (const QStringList &list, const QString &cwd)
 Constructor. More...
 
 ~TOPPASInputFilesDialog ()
 
void dragEnterEvent (QDragEnterEvent *e) override
 support drag'n'drop of files from OS window manager More...
 
void dropEvent (QDropEvent *e) override
 support drag'n'drop of files from OS window manager More...
 
void getFilenames (QStringList &files) const
 Stores the list of all filenames in the list widget in files. More...
 
const QString & getCWD () const
 get the CWD (according to most recently added file) More...
 
void keyPressEvent (QKeyEvent *e) override
 support Ctrl+C to copy currently selected items to clipboard More...
 

Protected Attributes

QString cwd_
 current working dir, i.e. the last position a file was added from More...
 

Private Attributes

Ui::TOPPASInputFilesDialogTemplate * ui_
 

Detailed Description

Dialog which allows to specify a list of input files.

Constructor & Destructor Documentation

◆ TOPPASInputFilesDialog()

TOPPASInputFilesDialog ( const QStringList &  list,
const QString &  cwd 
)

Constructor.

◆ ~TOPPASInputFilesDialog()

Member Function Documentation

◆ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent *  e)
override

support drag'n'drop of files from OS window manager

◆ dropEvent()

void dropEvent ( QDropEvent *  e)
override

support drag'n'drop of files from OS window manager

◆ editCurrentItem

void editCurrentItem ( )
slot

Shows a TOPPASInputFileDialog which edits the current item.

◆ getCWD()

const QString& getCWD ( ) const

get the CWD (according to most recently added file)

◆ getFilenames()

void getFilenames ( QStringList &  files) const

Stores the list of all filenames in the list widget in files.

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent *  e)
override

support Ctrl+C to copy currently selected items to clipboard

◆ moveCurrentItem

void moveCurrentItem ( )
slot

Moves the current item up/downwards.

◆ removeAll

void removeAll ( )
slot

Removes all files from the list.

◆ removeSelected

void removeSelected ( )
slot

Removes all currently selected files from the list.

◆ showFileDialog

void showFileDialog ( )
slot

Lets the user select files via a file dialog.

Member Data Documentation

◆ cwd_

QString cwd_
protected

current working dir, i.e. the last position a file was added from

◆ ui_

Ui::TOPPASInputFilesDialogTemplate* ui_
private