OpenMS
LayerListView.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 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
15 
16 #include <QtWidgets/QListWidget>
17 
18 namespace OpenMS
19 {
20  class PlotWidget;
26  class OPENMS_GUI_DLLAPI LayerListView
27  : public QListWidget
28  {
29  Q_OBJECT
30 
31  public:
34 
36  void update(PlotWidget* active_widget);
37 
38  signals:
41 
42  private:
45 
46  void itemChangedAction_(QListWidgetItem* item);
47 
48  void contextMenuEvent(QContextMenuEvent* event) override;
49 
51  void itemDoubleClickedAction_(QListWidgetItem*);
52 
53  PlotWidget* spectrum_widget_ = nullptr;
54  };
55 
56 } //namespace
57 
Pimped QListView for Layers of a Canvas.
Definition: LayerListView.h:28
void currentRowChangedAction_(int i)
active row was changed by user to new row i
void contextMenuEvent(QContextMenuEvent *event) override
void layerDataChanged()
emitted whenever a change to a layer happened, e.g. its name was changed, it was removed,...
void itemChangedAction_(QListWidgetItem *item)
void itemDoubleClickedAction_(QListWidgetItem *)
show preferences dialog
void update(PlotWidget *active_widget)
rebuild list of layers and remember current widget (for context menu etc)
LayerListView(QWidget *parent)
Default constructor.
Base class for spectrum widgets.
Definition: PlotWidget.h:57
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19