OpenMS
FilterList Class Reference

A widget which shows a list of DataFilter items. More...

#include <OpenMS/VISUAL/FilterList.h>

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

Public Slots

void set (const DataFilters &filters)
 

Signals

void filterChanged (const DataFilters &filters)
 emitted when the user has edited/added/removed a filter More...
 

Public Member Functions

 FilterList (QWidget *parent)
 C'tor. More...
 
 ~FilterList () override
 

Private Slots

void filterEdit_ (QListWidgetItem *item)
 
void customContextMenuRequested_ (const QPoint &pos)
 right-clicking on the QListWidget 'filter' will call this slot More...
 

Private Attributes

Ui::FilterListui_
 
DataFilters filters_
 internal representation of filters More...
 

Detailed Description

A widget which shows a list of DataFilter items.

Filters can be added, edited and removed. A checkbox allows to switch them all on/off.

Constructor & Destructor Documentation

◆ FilterList()

FilterList ( QWidget parent)
explicit

C'tor.

◆ ~FilterList()

~FilterList ( )
override

Member Function Documentation

◆ customContextMenuRequested_

void customContextMenuRequested_ ( const QPoint &  pos)
privateslot

right-clicking on the QListWidget 'filter' will call this slot

◆ filterChanged

void filterChanged ( const DataFilters filters)
signal

emitted when the user has edited/added/removed a filter

Referenced by TOPPViewBase::TOPPViewBase().

◆ filterEdit_

void filterEdit_ ( QListWidgetItem *  item)
privateslot

the user wants to edit a filter (by double-clicking it) emits 'filterChanged' signal if filter was modified

◆ set

void set ( const DataFilters filters)
slot

provide new filters to the widget does invoke the 'filterChanged' signal

Referenced by TOPPViewBase::updateFilterBar().

Member Data Documentation

◆ filters_

DataFilters filters_
private

internal representation of filters

◆ ui_

Ui::FilterList* ui_
private