static void updateCopyRect(const SVGASignedRect *oldRect, const SVGASignedRect *newRect) { /* * The first time through, draw a checkerboard test pattern. * On subsequent frames, annotate a copy of it from the previous frame. */ if (oldRect) { SVGASignedPoint noiseSrc, copySrc; prepareNoiseRect(&noiseSrc); copySrc.x = oldRect->left; copySrc.y = oldRect->top; Screen_AnnotateCopy(©Src, SCREEN_ID); Screen_BlitFromGMRFB(&noiseSrc, newRect, SCREEN_ID); } else { ScreenDraw_Checkerboard(newRect->left, newRect->top, newRect->right, newRect->bottom); } updateBorders(oldRect, newRect); }
void PropertiesPalette_Table::on_borderLineStyle_activated(int style) { int index = borderLineList->currentRow(); TableBorderLine borderLine = m_currentBorder.borderLines().at(index); borderLine.setStyle(static_cast<Qt::PenStyle>(style + 1)); m_currentBorder.replaceBorderLine(index, borderLine); updateBorders(); updateBorderLineListItem(); }
void PropertiesPalette_Table::on_borderLineColor_activated(const QString& colorName) { int index = borderLineList->currentRow(); TableBorderLine borderLine = m_currentBorder.borderLines().at(index); borderLine.setColor(colorName); m_currentBorder.replaceBorderLine(index, borderLine); updateBorders(); updateBorderLineListItem(); }
void PropertiesPalette_Table::on_borderLineShade_valueChanged(int shade) { int index = borderLineList->currentRow(); TableBorderLine borderLine = m_currentBorder.borderLines().at(index); borderLine.setShade(shade); m_currentBorder.replaceBorderLine(index, borderLine); updateBorders(); updateBorderLineListItem(); }
void PropertiesPalette_Table::on_borderLineWidth_valueChanged(double width) { int index = borderLineList->currentRow(); TableBorderLine borderLine = m_currentBorder.borderLines().at(index); borderLine.setWidth(width); m_currentBorder.replaceBorderLine(index, borderLine); updateBorders(); updateBorderLineListItem(); }
void QwtPlotScaleItem::updateScaleDiv(const QwtScaleDiv& xScaleDiv, const QwtScaleDiv& yScaleDiv) { QwtScaleDraw *sd = d_data->scaleDraw; if ( d_data->scaleDivFromAxis && sd ) { sd->setScaleDiv( sd->orientation() == Qt::Horizontal ? xScaleDiv : yScaleDiv); updateBorders(); } }
static void updateFillRect(const SVGASignedRect *oldRect, const SVGASignedRect *newRect) { SVGASignedPoint srcOrigin; static const SVGAColorBGRX color = {{{ 0xFF, 0xCC, 0xCC }}}; // Light blue prepareNoiseRect(&srcOrigin); Screen_AnnotateFill(color); Screen_BlitFromGMRFB(&srcOrigin, newRect, SCREEN_ID); updateBorders(oldRect, newRect); }
void Field::clearBorders() { updateBorders(); }
Field::Field(const QRect &rect, const QColor &color) : rect(rect), color(color), previewColor(QColor()) { updateBorders(); }
void Field::setRect(const QRect &rect) { this->rect = rect; updateBorders(); }