blob: 06cd5b972c9cf4d59b55f219e35588a9dd3a058a (
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
|
#ifndef INCLUDE_CHANNELMARKER_H
#define INCLUDE_CHANNELMARKER_H
#include <QObject>
#include <QColor>
#include "util/export.h"
class SDRANGELOVE_API ChannelMarker : public QObject {
Q_OBJECT
public:
ChannelMarker(QObject* parent = NULL);
void setTitle(const QString& title);
const QString& getTitle() const { return m_title; }
void setCenterFrequency(int centerFrequency);
int getCenterFrequency() const { return m_centerFrequency; }
void setBandwidth(int bandwidth);
int getBandwidth() const { return m_bandwidth; }
void setVisible(bool visible);
bool getVisible() const { return m_visible; }
void setColor(const QColor& color);
const QColor& getColor() const { return m_color; }
protected:
QString m_title;
int m_centerFrequency;
int m_bandwidth;
bool m_visible;
QColor m_color;
signals:
void changed();
};
#endif // INCLUDE_CHANNELMARKER_H
|