Expose color pallete

This commit is contained in:
Jordan Sherer 2020-05-11 10:49:29 -04:00
parent 1d51f54efd
commit 22911e332a
4 changed files with 10 additions and 0 deletions

View File

@ -879,6 +879,10 @@ void CPlotter::setTol(int n) //setTol()
DrawOverlay(); DrawOverlay();
} }
QVector<QColor> const& CPlotter::colors(){
return g_ColorTbl;
}
void CPlotter::setColours(QVector<QColor> const& cl) void CPlotter::setColours(QVector<QColor> const& cl)
{ {
g_ColorTbl = cl; g_ColorTbl = cl;

View File

@ -77,6 +77,7 @@ public:
void setBreadth(qint32 w) {m_w = w;} void setBreadth(qint32 w) {m_w = w;}
qint32 breadth() const {return m_w;} qint32 breadth() const {return m_w;}
float fSpan() const {return m_fSpan;} float fSpan() const {return m_fSpan;}
QVector<QColor> const& colors();
void setColours(QVector<QColor> const& cl); void setColours(QVector<QColor> const& cl);
void setFlatten(bool b1, bool b2); void setFlatten(bool b1, bool b2);
void setTol(int n); void setTol(int n);

View File

@ -690,6 +690,10 @@ void WideGraph::readPalette () //readPalette
} }
} }
QVector<QColor> const& WideGraph::colors(){
return ui->widePlot->colors();
}
void WideGraph::on_paletteComboBox_activated (QString const& palette) //palette selector void WideGraph::on_paletteComboBox_activated (QString const& palette) //palette selector
{ {
m_waterfallPalette = palette; m_waterfallPalette = palette;

View File

@ -69,6 +69,7 @@ public:
void setRedFile(QString fRed); void setRedFile(QString fRed);
void setTurbo(bool turbo); void setTurbo(bool turbo);
bool shouldDisplayDecodeAttempts(); bool shouldDisplayDecodeAttempts();
QVector<QColor> const& colors();
signals: signals:
void freezeDecode2(int n); void freezeDecode2(int n);