⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwt_plot_printfilter.h

📁 软件无线电的平台
💻 H
字号:
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** * Qwt Widget Library * Copyright (C) 1997   Josef Wilgen * Copyright (C) 2002   Uwe Rathmann *  * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *****************************************************************************/#ifndef QWT_PLOT_PRINTFILTER_H#define QWT_PLOT_PRINTFILTER_H#include <qcolor.h>#include <qfont.h>#include <qintdict.h>#include <qvaluelist.h>#include "qwt_global.h"class QwtPlot;class QwtPlotPrintFilterCache;/*!  \brief A base class for plot print filters  QwtPlotPrintFilter can be used to customize QwtPlot::print.*/class QWT_EXPORT QwtPlotPrintFilter{public:    //! Print options    enum Options     {        PrintMargin = 1,        PrintTitle = 2,        PrintLegend = 4,        PrintGrid = 8,        PrintBackground = 16,        PrintAll = ~0    };     //! Print items    enum Item    {        Title,        Legend,        Curve,        CurveSymbol,        Marker,        MarkerSymbol,        MajorGrid,        MinorGrid,        CanvasBackground,        AxisScale,        AxisTitle    };    QwtPlotPrintFilter();    virtual ~QwtPlotPrintFilter();     virtual QColor color(const QColor &, Item item, int id = -1) const;    virtual QFont font(const QFont &, Item item, int id = -1) const;/*!    \brief Set plot print options    \param options Or'd QwtPlotPrintFilter::Options values        \sa QwtPlotPrintFilter::options()*/    void setOptions(int options) { d_options = options; }/*!    \brief Get plot print options    \sa QwtPlotPrintFilter::setOptions()*/    int options() const { return d_options; }    virtual void apply(QwtPlot *) const;    virtual void reset(QwtPlot *) const;private:    int d_options;    QwtPlotPrintFilterCache *d_cache;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -