#include <qwt_legend.h>
Public Types | |
| enum | IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 } |
Public Member Functions | |
| QwtLegendButton (QWidget *parent=0, const char *name=0) | |
| QwtLegendButton (const QwtSymbol &, const QPen &, const QString &, QWidget *parent=0, const char *name=0) | |
| int | identifierMode () const |
| const QwtSymbol & | symbol () const |
| const QPen & | curvePen () const |
| void | setIdentifierMode (int) |
| void | setSymbol (const QwtSymbol &) |
| void | setCurvePen (const QPen &) |
| virtual void | drawContents (QPainter *p, const QRect &) const |
| virtual QSize | sizeHint () const |
| virtual QSize | minimumSizeHint () const |
Protected Member Functions | |
| virtual void | updateIconset () |
| virtual void | drawButtonLabel (QPainter *) |
| virtual void | drawIdentifier (QPainter *, const QRect &) const |
Private Attributes | |
| int | d_identifierMode |
| QwtSymbol | d_symbol |
| QPen | d_curvePen |
QwtLegendButton represents a curve on a legend. It displays an curve identifier with an explaining text. The identifier might be a combination of curve symbol and line.
Definition at line 40 of file qwt_legend.h.
|
|
Definition at line 46 of file qwt_legend.h. |
|
||||||||||||
|
Definition at line 46 of file qwt_legend.cpp. References updateIconset(). |
|
||||||||||||||||||||||||
|
Definition at line 29 of file qwt_legend.cpp. References updateIconset(). |
|
|
Definition at line 75 of file qwt_legend.h. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
|
Draws the button label. Does some dirty tricks to draw only 90% style conform.
Definition at line 249 of file qwt_legend.cpp. |
|
||||||||||||
|
Draw the legend button contents.
Definition at line 164 of file qwt_legend.cpp. References drawIdentifier(), QwtPainter::drawText(), and IdentifierWidth. Referenced by QwtPlot::printLegendItem(). |
|
||||||||||||
|
Paint the identifier to a given rect.
Definition at line 126 of file qwt_legend.cpp. References d_curvePen, d_identifierMode, d_symbol, QwtSymbol::draw(), QwtSymbol::None, QwtPainter::scale(), ShowLine, ShowSymbol, QwtSymbol::size(), and QwtSymbol::style(). Referenced by drawContents(), and updateIconset(). |
|
|
Or'd values of IdentifierMode. The default is QwtLegendButton::ShowLine | QwtLegendButton::ShowText.
Definition at line 63 of file qwt_legend.h. |
|
|
Minimum size hint
Definition at line 290 of file qwt_legend.cpp. Referenced by sizeHint(). |
|
|
Set curve pen.
Definition at line 93 of file qwt_legend.cpp. References d_curvePen, and updateIconset(). Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem(). |
|
|
Set identifier mode. Default is QwtLegendButton::ShowLine | QwtLegendButton::ShowText.
Definition at line 63 of file qwt_legend.cpp. References d_identifierMode, and updateIconset(). Referenced by QwtPlot::updateLegendItem(). |
|
|
Set curve symbol.
Definition at line 78 of file qwt_legend.cpp. References d_symbol, and updateIconset(). Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem(). |
|
|
Definition at line 281 of file qwt_legend.cpp. References minimumSizeHint(). |
|
|
Definition at line 69 of file qwt_legend.h. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
|
Update the iconset according to the current identifier properties Definition at line 105 of file qwt_legend.cpp. References drawIdentifier(), and IdentifierWidth. Referenced by QwtLegendButton(), setCurvePen(), setIdentifierMode(), and setSymbol(). |
|
|
Definition at line 94 of file qwt_legend.h. Referenced by drawIdentifier(), and setCurvePen(). |
|
|
Definition at line 92 of file qwt_legend.h. Referenced by drawIdentifier(), and setIdentifierMode(). |
|
|
Definition at line 93 of file qwt_legend.h. Referenced by drawIdentifier(), and setSymbol(). |
1.3.2