Expose color pallete
This commit is contained in:
parent
1d51f54efd
commit
22911e332a
@ -879,6 +879,10 @@ void CPlotter::setTol(int n) //setTol()
|
||||
DrawOverlay();
|
||||
}
|
||||
|
||||
QVector<QColor> const& CPlotter::colors(){
|
||||
return g_ColorTbl;
|
||||
}
|
||||
|
||||
void CPlotter::setColours(QVector<QColor> const& cl)
|
||||
{
|
||||
g_ColorTbl = cl;
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
void setBreadth(qint32 w) {m_w = w;}
|
||||
qint32 breadth() const {return m_w;}
|
||||
float fSpan() const {return m_fSpan;}
|
||||
QVector<QColor> const& colors();
|
||||
void setColours(QVector<QColor> const& cl);
|
||||
void setFlatten(bool b1, bool b2);
|
||||
void setTol(int n);
|
||||
|
@ -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
|
||||
{
|
||||
m_waterfallPalette = palette;
|
||||
|
@ -69,6 +69,7 @@ public:
|
||||
void setRedFile(QString fRed);
|
||||
void setTurbo(bool turbo);
|
||||
bool shouldDisplayDecodeAttempts();
|
||||
QVector<QColor> const& colors();
|
||||
|
||||
signals:
|
||||
void freezeDecode2(int n);
|
||||
|
Loading…
Reference in New Issue
Block a user