OpenMS
ListFilterDialog Class Reference

Dialog for creating and changing a DataFilter. More...

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

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

Public Member Functions

 ListFilterDialog ()=delete
 constructor More...
 
 ListFilterDialog (QWidget *parent, const QStringList &items=QStringList(), const QStringList &items_prechosen=QStringList())
 C'tor with items to show and select from. More...
 
virtual ~ListFilterDialog ()
 destructor More...
 
void closeEvent (QCloseEvent *event) override
 when pressing 'X' button in corner of the Window More...
 
void setItems (const QStringList &items)
 
void setPrechosenItems (const QStringList &items_prechosen)
 
QStringList getChosenItems () const
 get all items which where selected by the user More...
 

Protected Slots

void BtnLRClicked_ ()
 button '>>' clicked More...
 
void BtnLRAllClicked_ ()
 button '> ALL >' clicked More...
 
void BtnRLClicked_ ()
 button '<<' clicked More...
 
void BtnRLAllClicked_ ()
 button '< ALL <' clicked More...
 

Private Attributes

Ui::ListFilterDialog * ui_
 

Detailed Description

Dialog for creating and changing a DataFilter.

Constructor & Destructor Documentation

◆ ListFilterDialog() [1/2]

ListFilterDialog ( )
delete

constructor

◆ ListFilterDialog() [2/2]

ListFilterDialog ( QWidget parent,
const QStringList &  items = QStringList(),
const QStringList &  items_prechosen = QStringList() 
)

C'tor with items to show and select from.

Parameters
parentParent widget
itemsA set of strings to show and select from. Can be filtered in the dialog
items_prechosenA set of strings which are already chosen (on the right side) when first showing this dialog. This must be a subset of items
Exceptions
Exception::InvalidValueif any of items_prechosen is not contained in items

◆ ~ListFilterDialog()

virtual ~ListFilterDialog ( )
virtual

destructor

Member Function Documentation

◆ BtnLRAllClicked_

void BtnLRAllClicked_ ( )
protectedslot

button '> ALL >' clicked

◆ BtnLRClicked_

void BtnLRClicked_ ( )
protectedslot

button '>>' clicked

◆ BtnRLAllClicked_

void BtnRLAllClicked_ ( )
protectedslot

button '< ALL <' clicked

◆ BtnRLClicked_

void BtnRLClicked_ ( )
protectedslot

button '<<' clicked

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)
override

when pressing 'X' button in corner of the Window

◆ getChosenItems()

QStringList getChosenItems ( ) const

get all items which where selected by the user

◆ setItems()

void setItems ( const QStringList &  items)

A set of strings to show and select from. Can be filtered in the dialog

Exceptions
Exception::InvalidValueif any of items_prechosen is not contained in items

◆ setPrechosenItems()

void setPrechosenItems ( const QStringList &  items_prechosen)

A set of strings which are already chosen (on the right side). Overwrites the currently chosen set.

Exceptions
Exception::InvalidValueif any of items_prechosen is not contained in items

Member Data Documentation

◆ ui_

Ui::ListFilterDialog* ui_
private