OpenMS
|
Dialog for creating and changing a DataFilter. More...
#include <OpenMS/VISUAL/DIALOGS/ListFilterDialog.h>
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_ |
Dialog for creating and changing a DataFilter.
|
delete |
constructor
ListFilterDialog | ( | QWidget * | parent, |
const QStringList & | items = QStringList() , |
||
const QStringList & | items_prechosen = QStringList() |
||
) |
C'tor with items to show and select from.
parent | Parent widget |
items | A set of strings to show and select from. Can be filtered in the dialog |
items_prechosen | A set of strings which are already chosen (on the right side) when first showing this dialog. This must be a subset of items |
Exception::InvalidValue | if any of items_prechosen is not contained in items |
|
virtual |
destructor
|
protectedslot |
button '> ALL >' clicked
|
protectedslot |
button '>>' clicked
|
protectedslot |
button '< ALL <' clicked
|
protectedslot |
button '<<' clicked
|
override |
when pressing 'X' button in corner of the Window
QStringList getChosenItems | ( | ) | const |
get all items which where selected by the user
void setItems | ( | const QStringList & | items | ) |
A set of strings to show and select from. Can be filtered in the dialog
Exception::InvalidValue | if any of items_prechosen is not contained in items |
void setPrechosenItems | ( | const QStringList & | items_prechosen | ) |
A set of strings which are already chosen (on the right side). Overwrites the currently chosen set.
Exception::InvalidValue | if any of items_prechosen is not contained in items |
|
private |