QwtPlotPrintFilter can be used to customize QwtPlot::print.
Definition at line 26 of file qwt_plot_printfilter.h.
Public Types | |
enum | Options { PrintMargin = 1, PrintTitle = 2, PrintLegend = 4, PrintGrid = 8, PrintCanvasBackground = 16, PrintWidgetBackground = 32, PrintAll = ~PrintWidgetBackground } |
enum | Item { Title, Legend, Curve, CurveSymbol, Marker, MarkerSymbol, MajorGrid, MinorGrid, CanvasBackground, AxisScale, AxisTitle, WidgetBackground } |
Public Member Functions | |
QwtPlotPrintFilter () | |
virtual | ~QwtPlotPrintFilter () |
virtual QColor | color (const QColor &, Item item) const |
virtual QFont | font (const QFont &, Item item) const |
void | setOptions (int options) |
int | options () const |
virtual void | apply (QwtPlot *) const |
virtual void | reset (QwtPlot *) const |
virtual void | apply (QwtPlotItem *) const |
virtual void | reset (QwtPlotItem *) const |
|
Print items.
Definition at line 43 of file qwt_plot_printfilter.h. |
|
Print options.
Definition at line 30 of file qwt_plot_printfilter.h. |
|
Sets filter options to QwtPlotPrintFilter::PrintAll Definition at line 81 of file qwt_plot_printfilter.cpp. |
|
Destructor.
Definition at line 87 of file qwt_plot_printfilter.cpp. |
|
Change color and fonts of a plot
Definition at line 158 of file qwt_plot_printfilter.cpp. References QwtSymbol::brush(), color(), QwtLegendItem::curvePen(), font(), QwtScaleWidget::minBorderDist(), QwtSymbol::pen(), QwtScaleWidget::setBorderDist(), QwtSymbol::setBrush(), QwtLegendItem::setCurvePen(), QwtSymbol::setPen(), QwtLegendItem::setSymbol(), QwtScaleWidget::setTitleColor(), QwtScaleWidget::setTitleFont(), QwtLegendItem::symbol(), QwtScaleWidget::titleColor(), and QwtScaleWidget::titleFont(). |
|
Modifies a color for printing.
Definition at line 124 of file qwt_plot_printfilter.cpp. References options(). Referenced by apply(). |
|
Modifies a font for printing.
Definition at line 149 of file qwt_plot_printfilter.cpp. Referenced by apply(). |
|
Get plot print options.
Definition at line 107 of file qwt_plot_printfilter.cpp. Referenced by color(). |
|
Reset color and fonts of a plot
Definition at line 352 of file qwt_plot_printfilter.cpp. References QwtSymbol::brush(), QwtLegendItem::curvePen(), QwtScaleWidget::minBorderDist(), QwtSymbol::pen(), QwtScaleWidget::setBorderDist(), QwtSymbol::setBrush(), QwtLegendItem::setCurvePen(), QwtPlotMarker::setFont(), QwtSymbol::setPen(), QwtLegendItem::setSymbol(), QwtScaleWidget::setTitleColor(), QwtScaleWidget::setTitleFont(), and QwtLegendItem::symbol(). |
|
Set plot print options.
Definition at line 98 of file qwt_plot_printfilter.cpp. |