aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/rtp_audio_graph.h
blob: 1951960ed68c93c7e08269c5f161682abcc02c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef RTP_AUDIO_GRAPH_H
#define RTP_AUDIO_GRAPH_H

#include "config.h"

#include <ui/qt/widgets/qcustomplot.h>

//class QCPItemStraightLine;
//class QCPAxisTicker;
//class QCPAxisTickerDateTime;

class RtpAudioGraph : public QObject
{
  Q_OBJECT
public:
  explicit RtpAudioGraph(QCustomPlot *audioPlot, QRgb color);
  void setMuted(bool isMuted);
  void setHighlight(bool isHighlighted);
  void setSelected(bool isSelected);
  void setData(const QVector<double> &keys, const QVector<double> &values, bool alreadySorted=false);
  void remove(QCustomPlot *audioPlot);
  bool isMyPlottable(QCPAbstractPlottable *plottable);


private:
  QCPGraph *wave_;
  QRgb color_;
  QColor selection_color_;
};

#endif // RTP_AUDIO_GRAPH_H