OpenMS
ListFilterDialog.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 
10 #pragma once
11 
12 // OpenMS_GUI config
13 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
14 
15 #include <QDialog>
16 
17 namespace Ui
18 {
19  class ListFilterDialog;
20 }
21 
22 namespace OpenMS
23 {
28  class OPENMS_GUI_DLLAPI ListFilterDialog :
29  public QDialog
30  {
31  Q_OBJECT
32 
33 public:
35  ListFilterDialog() = delete;
36 
47  ListFilterDialog(QWidget* parent, const QStringList& items = QStringList(), const QStringList& items_prechosen = QStringList());
48 
50  virtual ~ListFilterDialog();
51 
53  void closeEvent(QCloseEvent* event) override;
54 
57  void setItems(const QStringList& items);
58 
61  void setPrechosenItems(const QStringList& items_prechosen);
62 
64  QStringList getChosenItems() const;
65 
66 protected slots:
68  void BtnLRClicked_();
72  void BtnRLClicked_();
75 
76 private:
77  Ui::ListFilterDialog* ui_;
78  };
79 
80 }
Dialog for creating and changing a DataFilter.
Definition: ListFilterDialog.h:30
QStringList getChosenItems() const
get all items which where selected by the user
void setItems(const QStringList &items)
void BtnRLAllClicked_()
button '< ALL <' clicked
ListFilterDialog()=delete
constructor
void BtnLRAllClicked_()
button '> ALL >' clicked
Ui::ListFilterDialog * ui_
Definition: ListFilterDialog.h:77
void closeEvent(QCloseEvent *event) override
when pressing 'X' button in corner of the Window
ListFilterDialog(QWidget *parent, const QStringList &items=QStringList(), const QStringList &items_prechosen=QStringList())
C'tor with items to show and select from.
virtual ~ListFilterDialog()
destructor
void setPrechosenItems(const QStringList &items_prechosen)
void BtnRLClicked_()
button '<<' clicked
void BtnLRClicked_()
button '>>' clicked
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: FLASHDeconvWizardBase.h:37