mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-09 09:12:27 -04:00
Spectrum markers: implemented colors etc...
This commit is contained in:
parent
e7e82a12b0
commit
133f6caa60
@ -1163,8 +1163,7 @@ void GLSpectrum::paintGL()
|
|||||||
|
|
||||||
void GLSpectrum::drawMarkers()
|
void GLSpectrum::drawMarkers()
|
||||||
{
|
{
|
||||||
QVector4D markerColor(1.0f, 1.0f, 1.0f, 0.3f);
|
QVector4D lineColor(1.0f, 1.0f, 1.0f, 0.3f);
|
||||||
QVector4D markerTextColor(1.0f, 1.0f, 1.0f, 0.8f);
|
|
||||||
|
|
||||||
// paint histogram markers
|
// paint histogram markers
|
||||||
if (m_histogramMarkers.size() > 0)
|
if (m_histogramMarkers.size() > 0)
|
||||||
@ -1178,7 +1177,9 @@ void GLSpectrum::drawMarkers()
|
|||||||
{
|
{
|
||||||
ypoint.ry() =
|
ypoint.ry() =
|
||||||
(m_powerScale.getRangeMax() - m_currentSpectrum[m_histogramMarkers.at(i).m_fftBin]) / m_powerScale.getRange();
|
(m_powerScale.getRangeMax() - m_currentSpectrum[m_histogramMarkers.at(i).m_fftBin]) / m_powerScale.getRange();
|
||||||
ypoint.ry() = ypoint.ry() > 1 ? 1 : ypoint.ry();
|
ypoint.ry() = ypoint.ry() < 0 ?
|
||||||
|
0 : ypoint.ry() > 1 ?
|
||||||
|
1 : ypoint.ry();
|
||||||
powerStr = displayScaledF(
|
powerStr = displayScaledF(
|
||||||
m_currentSpectrum[m_histogramMarkers.at(i).m_fftBin],
|
m_currentSpectrum[m_histogramMarkers.at(i).m_fftBin],
|
||||||
m_linear ? 'e' : 'f',
|
m_linear ? 'e' : 'f',
|
||||||
@ -1192,18 +1193,19 @@ void GLSpectrum::drawMarkers()
|
|||||||
(float) m_histogramMarkers.at(i).m_point.x(), 0,
|
(float) m_histogramMarkers.at(i).m_point.x(), 0,
|
||||||
(float) m_histogramMarkers.at(i).m_point.x(), 1
|
(float) m_histogramMarkers.at(i).m_point.x(), 1
|
||||||
};
|
};
|
||||||
m_glShaderSimple.drawSegments(m_glHistogramBoxMatrix, markerColor, h, 2);
|
m_glShaderSimple.drawSegments(m_glHistogramBoxMatrix, lineColor, h, 2);
|
||||||
GLfloat v[] {
|
GLfloat v[] {
|
||||||
0, (float) ypoint.y(),
|
0, (float) ypoint.y(),
|
||||||
1, (float) ypoint.y()
|
1, (float) ypoint.y()
|
||||||
};
|
};
|
||||||
m_glShaderSimple.drawSegments(m_glHistogramBoxMatrix, markerColor, v, 2);
|
m_glShaderSimple.drawSegments(m_glHistogramBoxMatrix, lineColor, v, 2);
|
||||||
|
QColor textColor = m_histogramMarkers.at(i).m_markerColor;
|
||||||
// text
|
// text
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_histogramMarkers.at(i).m_frequencyStr,
|
m_histogramMarkers.at(i).m_frequencyStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_histogramMarkers.at(i).m_point.x() * m_histogramRect.width(),
|
m_histogramMarkers.at(i).m_point.x() * m_histogramRect.width(),
|
||||||
(m_invertedWaterfall || (m_waterfallHeight == 0)) ? m_histogramRect.height() : 0,
|
(m_invertedWaterfall || (m_waterfallHeight == 0)) ? m_histogramRect.height() : 0,
|
||||||
@ -1212,7 +1214,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
m_histogramRect);
|
m_histogramRect);
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
powerStr,
|
powerStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
0,
|
0,
|
||||||
ypoint.y() * m_histogramRect.height(),
|
ypoint.y() * m_histogramRect.height(),
|
||||||
@ -1222,6 +1224,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
textColor.setAlpha(192);
|
||||||
float power0 = m_histogramMarkers.at(0).m_markerType == SpectrumHistogramMarkerTypePower ?
|
float power0 = m_histogramMarkers.at(0).m_markerType == SpectrumHistogramMarkerTypePower ?
|
||||||
m_currentSpectrum[m_histogramMarkers.at(0).m_fftBin] :
|
m_currentSpectrum[m_histogramMarkers.at(0).m_fftBin] :
|
||||||
m_linear ? m_histogramMarkers.at(0).m_power : CalcDb::dbPower(m_histogramMarkers.at(0).m_power);
|
m_linear ? m_histogramMarkers.at(0).m_power : CalcDb::dbPower(m_histogramMarkers.at(0).m_power);
|
||||||
@ -1238,7 +1241,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
|
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_histogramMarkers.at(i).m_deltaFrequencyStr,
|
m_histogramMarkers.at(i).m_deltaFrequencyStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_histogramMarkers.at(i).m_point.x() * m_histogramRect.width(),
|
m_histogramMarkers.at(i).m_point.x() * m_histogramRect.width(),
|
||||||
(m_invertedWaterfall || (m_waterfallHeight == 0)) ? 0 : m_histogramRect.height(),
|
(m_invertedWaterfall || (m_waterfallHeight == 0)) ? 0 : m_histogramRect.height(),
|
||||||
@ -1247,7 +1250,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
m_histogramRect);
|
m_histogramRect);
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
deltaPowerStr,
|
deltaPowerStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_histogramRect.width(),
|
m_histogramRect.width(),
|
||||||
ypoint.y() * m_histogramRect.height(),
|
ypoint.y() * m_histogramRect.height(),
|
||||||
@ -1268,21 +1271,24 @@ void GLSpectrum::drawMarkers()
|
|||||||
(float) m_waterfallMarkers.at(i).m_point.x(), 0,
|
(float) m_waterfallMarkers.at(i).m_point.x(), 0,
|
||||||
(float) m_waterfallMarkers.at(i).m_point.x(), 1
|
(float) m_waterfallMarkers.at(i).m_point.x(), 1
|
||||||
};
|
};
|
||||||
m_glShaderSimple.drawSegments(m_glWaterfallBoxMatrix, markerColor, h, 2);
|
m_glShaderSimple.drawSegments(m_glWaterfallBoxMatrix, lineColor, h, 2);
|
||||||
GLfloat v[] {
|
GLfloat v[] {
|
||||||
0, (float) m_waterfallMarkers.at(i).m_point.y(),
|
0, (float) m_waterfallMarkers.at(i).m_point.y(),
|
||||||
1, (float) m_waterfallMarkers.at(i).m_point.y()
|
1, (float) m_waterfallMarkers.at(i).m_point.y()
|
||||||
};
|
};
|
||||||
m_glShaderSimple.drawSegments(m_glWaterfallBoxMatrix, markerColor, v, 2);
|
m_glShaderSimple.drawSegments(m_glWaterfallBoxMatrix, lineColor, v, 2);
|
||||||
}
|
}
|
||||||
// text
|
// text
|
||||||
for (int i = 0; i < m_waterfallMarkers.size(); i++)
|
for (int i = 0; i < m_waterfallMarkers.size(); i++)
|
||||||
{
|
{
|
||||||
|
QColor textColor = m_waterfallMarkers.at(i).m_markerColor;
|
||||||
|
textColor.setAlpha(192);
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_waterfallMarkers.at(i).m_frequencyStr,
|
m_waterfallMarkers.at(i).m_frequencyStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_waterfallMarkers.at(i).m_point.x() * m_waterfallRect.width(),
|
m_waterfallMarkers.at(i).m_point.x() * m_waterfallRect.width(),
|
||||||
(!m_invertedWaterfall || (m_histogramHeight == 0)) ? m_waterfallRect.height() : 0,
|
(!m_invertedWaterfall || (m_histogramHeight == 0)) ? m_waterfallRect.height() : 0,
|
||||||
@ -1291,7 +1297,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
m_waterfallRect);
|
m_waterfallRect);
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_waterfallMarkers.at(i).m_timeStr,
|
m_waterfallMarkers.at(i).m_timeStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
0,
|
0,
|
||||||
m_waterfallMarkers.at(i).m_point.y() * m_waterfallRect.height(),
|
m_waterfallMarkers.at(i).m_point.y() * m_waterfallRect.height(),
|
||||||
@ -1303,7 +1309,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
{
|
{
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_waterfallMarkers.at(i).m_deltaFrequencyStr,
|
m_waterfallMarkers.at(i).m_deltaFrequencyStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_waterfallMarkers.at(i).m_point.x() * m_waterfallRect.width(),
|
m_waterfallMarkers.at(i).m_point.x() * m_waterfallRect.width(),
|
||||||
(!m_invertedWaterfall || (m_histogramHeight == 0)) ? 0 : m_waterfallRect.height(),
|
(!m_invertedWaterfall || (m_histogramHeight == 0)) ? 0 : m_waterfallRect.height(),
|
||||||
@ -1312,7 +1318,7 @@ void GLSpectrum::drawMarkers()
|
|||||||
m_waterfallRect);
|
m_waterfallRect);
|
||||||
drawTextOverlay(
|
drawTextOverlay(
|
||||||
m_waterfallMarkers.at(i).m_deltaTimeStr,
|
m_waterfallMarkers.at(i).m_deltaTimeStr,
|
||||||
QColor(255, 255, 255, 192),
|
textColor,
|
||||||
m_textOverlayFont,
|
m_textOverlayFont,
|
||||||
m_waterfallRect.width(),
|
m_waterfallRect.width(),
|
||||||
m_waterfallMarkers.at(i).m_point.y() * m_waterfallRect.height(),
|
m_waterfallMarkers.at(i).m_point.y() * m_waterfallRect.height(),
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QPointF>
|
#include <QPointF>
|
||||||
|
#include <QColor>
|
||||||
|
|
||||||
enum SpectrumHistogramMarkerType {
|
enum SpectrumHistogramMarkerType {
|
||||||
SpectrumHistogramMarkerTypeManual,
|
SpectrumHistogramMarkerTypeManual,
|
||||||
@ -36,6 +37,7 @@ struct SpectrumHistogramMarker
|
|||||||
int m_fftBin;
|
int m_fftBin;
|
||||||
float m_power;
|
float m_power;
|
||||||
SpectrumHistogramMarkerType m_markerType;
|
SpectrumHistogramMarkerType m_markerType;
|
||||||
|
QColor m_markerColor;
|
||||||
QString m_frequencyStr;
|
QString m_frequencyStr;
|
||||||
QString m_powerStr;
|
QString m_powerStr;
|
||||||
QString m_deltaFrequencyStr;
|
QString m_deltaFrequencyStr;
|
||||||
@ -48,6 +50,7 @@ struct SpectrumHistogramMarker
|
|||||||
m_fftBin(0),
|
m_fftBin(0),
|
||||||
m_power(0),
|
m_power(0),
|
||||||
m_markerType(SpectrumHistogramMarkerTypeManual),
|
m_markerType(SpectrumHistogramMarkerTypeManual),
|
||||||
|
m_markerColor(QColorConstants::White),
|
||||||
m_frequencyStr(),
|
m_frequencyStr(),
|
||||||
m_powerStr(),
|
m_powerStr(),
|
||||||
m_deltaFrequencyStr(),
|
m_deltaFrequencyStr(),
|
||||||
@ -60,6 +63,7 @@ struct SpectrumHistogramMarker
|
|||||||
int fftBin,
|
int fftBin,
|
||||||
float power,
|
float power,
|
||||||
SpectrumHistogramMarkerType markerType,
|
SpectrumHistogramMarkerType markerType,
|
||||||
|
QColor markerColor,
|
||||||
const QString& frequencyStr,
|
const QString& frequencyStr,
|
||||||
const QString& powerStr,
|
const QString& powerStr,
|
||||||
const QString& deltaFrequencyStr,
|
const QString& deltaFrequencyStr,
|
||||||
@ -70,6 +74,7 @@ struct SpectrumHistogramMarker
|
|||||||
m_fftBin(fftBin),
|
m_fftBin(fftBin),
|
||||||
m_power(power),
|
m_power(power),
|
||||||
m_markerType(markerType),
|
m_markerType(markerType),
|
||||||
|
m_markerColor(markerColor),
|
||||||
m_frequencyStr(frequencyStr),
|
m_frequencyStr(frequencyStr),
|
||||||
m_powerStr(powerStr),
|
m_powerStr(powerStr),
|
||||||
m_deltaFrequencyStr(deltaFrequencyStr),
|
m_deltaFrequencyStr(deltaFrequencyStr),
|
||||||
@ -85,6 +90,7 @@ struct SpectrumWaterfallMarker
|
|||||||
QPointF m_point;
|
QPointF m_point;
|
||||||
float m_frequency;
|
float m_frequency;
|
||||||
float m_time;
|
float m_time;
|
||||||
|
QColor m_markerColor;
|
||||||
QString m_frequencyStr;
|
QString m_frequencyStr;
|
||||||
QString m_timeStr;
|
QString m_timeStr;
|
||||||
QString m_deltaFrequencyStr;
|
QString m_deltaFrequencyStr;
|
||||||
@ -95,6 +101,7 @@ struct SpectrumWaterfallMarker
|
|||||||
m_point(0, 0),
|
m_point(0, 0),
|
||||||
m_frequency(0),
|
m_frequency(0),
|
||||||
m_time(0),
|
m_time(0),
|
||||||
|
m_markerColor(QColorConstants::White),
|
||||||
m_frequencyStr(),
|
m_frequencyStr(),
|
||||||
m_timeStr(),
|
m_timeStr(),
|
||||||
m_deltaFrequencyStr(),
|
m_deltaFrequencyStr(),
|
||||||
@ -105,6 +112,7 @@ struct SpectrumWaterfallMarker
|
|||||||
const QPointF& point,
|
const QPointF& point,
|
||||||
float frequency,
|
float frequency,
|
||||||
float time,
|
float time,
|
||||||
|
QColor markerColor,
|
||||||
const QString& frequencyStr,
|
const QString& frequencyStr,
|
||||||
const QString& timeStr,
|
const QString& timeStr,
|
||||||
const QString& deltaFrequencyStr,
|
const QString& deltaFrequencyStr,
|
||||||
@ -113,6 +121,7 @@ struct SpectrumWaterfallMarker
|
|||||||
m_point(point),
|
m_point(point),
|
||||||
m_frequency(frequency),
|
m_frequency(frequency),
|
||||||
m_time(time),
|
m_time(time),
|
||||||
|
m_markerColor(markerColor),
|
||||||
m_frequencyStr(frequencyStr),
|
m_frequencyStr(frequencyStr),
|
||||||
m_timeStr(timeStr),
|
m_timeStr(timeStr),
|
||||||
m_deltaFrequencyStr(deltaFrequencyStr),
|
m_deltaFrequencyStr(deltaFrequencyStr),
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <QColorDialog>
|
||||||
|
|
||||||
#include "util/db.h"
|
#include "util/db.h"
|
||||||
#include "spectrummarkersdialog.h"
|
#include "spectrummarkersdialog.h"
|
||||||
|
|
||||||
@ -68,6 +70,9 @@ void SpectrumMarkersDialog::displayHistogramMarker()
|
|||||||
float powerDB = CalcDb::dbPower(m_histogramMarkers[m_histogramMarkerIndex].m_power);
|
float powerDB = CalcDb::dbPower(m_histogramMarkers[m_histogramMarkerIndex].m_power);
|
||||||
ui->fixedPower->setValue(powerDB*10);
|
ui->fixedPower->setValue(powerDB*10);
|
||||||
ui->fixedPowerText->setText(QString::number(powerDB, 'f', 1));
|
ui->fixedPowerText->setText(QString::number(powerDB, 'f', 1));
|
||||||
|
int r,g,b,a;
|
||||||
|
m_histogramMarkers[m_histogramMarkerIndex].m_markerColor.getRgb(&r, &g, &b, &a);
|
||||||
|
ui->markerColor->setStyleSheet(tr("QLabel { background-color : rgb(%1,%2,%3); }").arg(r).arg(g).arg(b));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,6 +86,37 @@ void SpectrumMarkersDialog::on_markerFrequency_changed(qint64 value)
|
|||||||
emit updateHistogram();
|
emit updateHistogram();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SpectrumMarkersDialog::on_centerFrequency_clicked()
|
||||||
|
{
|
||||||
|
if (m_histogramMarkers.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_histogramMarkers[m_histogramMarkerIndex].m_frequency = m_centerFrequency;
|
||||||
|
displayHistogramMarker();
|
||||||
|
emit updateHistogram();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SpectrumMarkersDialog::on_markerColor_clicked()
|
||||||
|
{
|
||||||
|
if (m_histogramMarkers.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QColor newColor = QColorDialog::getColor(
|
||||||
|
m_histogramMarkers[m_histogramMarkerIndex].m_markerColor,
|
||||||
|
this,
|
||||||
|
tr("Select Color for marker"),
|
||||||
|
QColorDialog::DontUseNativeDialog
|
||||||
|
);
|
||||||
|
|
||||||
|
if (newColor.isValid()) // user clicked OK and selected a color
|
||||||
|
{
|
||||||
|
m_histogramMarkers[m_histogramMarkerIndex].m_markerColor = newColor;
|
||||||
|
displayHistogramMarker();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SpectrumMarkersDialog::on_fixedPower_valueChanged(int value)
|
void SpectrumMarkersDialog::on_fixedPower_valueChanged(int value)
|
||||||
{
|
{
|
||||||
if (m_histogramMarkers.size() == 0) {
|
if (m_histogramMarkers.size() == 0) {
|
||||||
@ -103,25 +139,25 @@ void SpectrumMarkersDialog::on_marker_valueChanged(int value)
|
|||||||
displayHistogramMarker();
|
displayHistogramMarker();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumMarkersDialog::on_setReference_clicked(bool checked)
|
void SpectrumMarkersDialog::on_setReference_clicked()
|
||||||
{
|
{
|
||||||
(void) checked;
|
|
||||||
|
|
||||||
if ((m_histogramMarkerIndex == 0) || (m_histogramMarkers.size() < 2)) {
|
if ((m_histogramMarkerIndex == 0) || (m_histogramMarkers.size() < 2)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SpectrumHistogramMarker marker0 = m_histogramMarkers.at(0);
|
SpectrumHistogramMarker marker0 = m_histogramMarkers.at(0);
|
||||||
|
QColor color0 = marker0.m_markerColor; // do not exchange colors
|
||||||
|
QColor colorI = m_histogramMarkers[m_histogramMarkerIndex].m_markerColor;
|
||||||
m_histogramMarkers[0] = m_histogramMarkers[m_histogramMarkerIndex];
|
m_histogramMarkers[0] = m_histogramMarkers[m_histogramMarkerIndex];
|
||||||
|
m_histogramMarkers[0].m_markerColor = color0;
|
||||||
m_histogramMarkers[m_histogramMarkerIndex] = marker0;
|
m_histogramMarkers[m_histogramMarkerIndex] = marker0;
|
||||||
|
m_histogramMarkers[m_histogramMarkerIndex].m_markerColor = colorI;
|
||||||
displayHistogramMarker();
|
displayHistogramMarker();
|
||||||
emit updateHistogram();
|
emit updateHistogram();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumMarkersDialog::on_markerAdd_clicked(bool checked)
|
void SpectrumMarkersDialog::on_markerAdd_clicked()
|
||||||
{
|
{
|
||||||
(void) checked;
|
|
||||||
|
|
||||||
if (m_histogramMarkers.size() == SpectrumHistogramMarker::m_maxNbOfMarkers) {
|
if (m_histogramMarkers.size() == SpectrumHistogramMarker::m_maxNbOfMarkers) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -134,10 +170,8 @@ void SpectrumMarkersDialog::on_markerAdd_clicked(bool checked)
|
|||||||
displayHistogramMarker();
|
displayHistogramMarker();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumMarkersDialog::on_markerDel_clicked(bool checked)
|
void SpectrumMarkersDialog::on_markerDel_clicked()
|
||||||
{
|
{
|
||||||
(void) checked;
|
|
||||||
|
|
||||||
if (m_histogramMarkers.size() == 0) {
|
if (m_histogramMarkers.size() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -54,11 +54,13 @@ private:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_markerFrequency_changed(qint64 value);
|
void on_markerFrequency_changed(qint64 value);
|
||||||
|
void on_centerFrequency_clicked();
|
||||||
|
void on_markerColor_clicked();
|
||||||
void on_fixedPower_valueChanged(int value);
|
void on_fixedPower_valueChanged(int value);
|
||||||
void on_marker_valueChanged(int value);
|
void on_marker_valueChanged(int value);
|
||||||
void on_setReference_clicked(bool checked);
|
void on_setReference_clicked();
|
||||||
void on_markerAdd_clicked(bool checked);
|
void on_markerAdd_clicked();
|
||||||
void on_markerDel_clicked(bool checked);
|
void on_markerDel_clicked();
|
||||||
void on_powerMode_currentIndexChanged(int index);
|
void on_powerMode_currentIndexChanged(int index);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>324</width>
|
<width>364</width>
|
||||||
<height>125</height>
|
<height>125</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="MarkerLayout">
|
<layout class="QVBoxLayout" name="MarkerLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="MarkerPosLayout">
|
<layout class="QHBoxLayout" name="HMarkerPosLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="markerFrequencyLabel">
|
<widget class="QLabel" name="markerFrequencyLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -103,10 +103,48 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="centerFrequency">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set marker as reference (index 0)</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>C</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="ClickableLabel" name="markerColor">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>16</width>
|
||||||
|
<height>16</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16</width>
|
||||||
|
<height>16</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Current marker color (click to change)</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="OptionsLayout">
|
<layout class="QHBoxLayout" name="HMarkerOptionsLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="markerLabel">
|
<widget class="QLabel" name="markerLabel">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -167,7 +205,7 @@
|
|||||||
<string>Set marker as reference (index 0)</string>
|
<string>Set marker as reference (index 0)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>R</string>
|
<string>0</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -406,6 +444,11 @@
|
|||||||
<header>gui/valuedialz.h</header>
|
<header>gui/valuedialz.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>ClickableLabel</class>
|
||||||
|
<extends>QLabel</extends>
|
||||||
|
<header>gui/clickablelabel.h</header>
|
||||||
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>buttonBox</tabstop>
|
<tabstop>buttonBox</tabstop>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user