OpenMS  2.7.0
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
LayerListView Class Reference

Pimped QListView for Layers of a Canvas. More...

#include <OpenMS/VISUAL/LayerListView.h>

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

Signals

void layerDataChanged ()
 emitted whenever a change to a layer happened, e.g. its name was changed, it was removed, or a new layer was selected More...
 

Public Member Functions

 LayerListView (QWidget *parent)
 Default constructor. More...
 
void update (PlotWidget *active_widget)
 rebuild list of layers and remember current widget (for context menu etc) More...
 

Private Member Functions

void currentRowChangedAction_ (int i)
 active row was changed by user to new row i More...
 
void itemChangedAction_ (QListWidgetItem *item)
 
void contextMenuEvent (QContextMenuEvent *event) override
 
void itemDoubleClickedAction_ (QListWidgetItem *)
 show preferences dialog More...
 

Private Attributes

PlotWidgetspectrum_widget_ = nullptr
 holds the actual data. Might be nullptr. More...
 

Detailed Description

Pimped QListView for Layers of a Canvas.

Constructor & Destructor Documentation

◆ LayerListView()

LayerListView ( QWidget parent)

Default constructor.

Member Function Documentation

◆ contextMenuEvent()

void contextMenuEvent ( QContextMenuEvent *  event)
overrideprivate

◆ currentRowChangedAction_()

void currentRowChangedAction_ ( int  i)
private

active row was changed by user to new row i

◆ itemChangedAction_()

void itemChangedAction_ ( QListWidgetItem *  item)
private

◆ itemDoubleClickedAction_()

void itemDoubleClickedAction_ ( QListWidgetItem *  )
private

show preferences dialog

◆ layerDataChanged

void layerDataChanged ( )
signal

emitted whenever a change to a layer happened, e.g. its name was changed, it was removed, or a new layer was selected

Referenced by TOPPViewBase::TOPPViewBase().

◆ update()

void update ( PlotWidget active_widget)

rebuild list of layers and remember current widget (for context menu etc)

Referenced by TOPPViewBase::updateLayerBar().

Member Data Documentation

◆ spectrum_widget_

PlotWidget* spectrum_widget_ = nullptr
private

holds the actual data. Might be nullptr.