OpenMS
FilterList.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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 #pragma once
10 
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 #include <QWidget>
15 
16 namespace Ui
17 {
18  class FilterList;
19 }
20 
21 class QListWidgetItem;
22 
23 namespace OpenMS
24 {
25  namespace Internal
26  {
34  class FilterList : public QWidget
35  {
36  Q_OBJECT
37 
38  public:
40  explicit FilterList(QWidget* parent);
41  ~FilterList() override;
42 
43  public slots:
46  void set(const DataFilters& filters);
47 
48  signals:
50  void filterChanged(const DataFilters& filters);
51 
52  private slots:
55  void filterEdit_(QListWidgetItem* item);
56 
58  void customContextMenuRequested_(const QPoint &pos);
59 
60  private:
63  };
64  } // ns Internal
65 } // ns OpenMS
66 
67 // this is required to allow parent widgets (auto UIC'd from .ui) to have a FilterList member
OpenMS::Internal::FilterList FilterList
Definition: FilterList.h:68
DataFilter array providing some convenience functions.
Definition: DataFilters.h:27
A widget which shows a list of DataFilter items.
Definition: FilterList.h:35
FilterList(QWidget *parent)
C'tor.
Ui::FilterList * ui_
Definition: FilterList.h:61
DataFilters filters_
internal representation of filters
Definition: FilterList.h:62
void filterChanged(const DataFilters &filters)
emitted when the user has edited/added/removed a filter
void customContextMenuRequested_(const QPoint &pos)
right-clicking on the QListWidget 'filter' will call this slot
void filterEdit_(QListWidgetItem *item)
void set(const DataFilters &filters)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Definition: FLASHDeconvWizardBase.h:37