Rechercher une page de manuel
QwtLegendItem
Langue: en
Version: 381476 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Member Enumeration Documentation
- Constructor & Destructor Documentation
- Member Function Documentation
- void QwtLegendItem::checked (bool) [signal]
- void QwtLegendItem::clicked () [signal]
- const QPen & QwtLegendItem::curvePen () constReturns:
- void QwtLegendItem::drawIdentifier (QPainter * painter, const QRect & rect) const [virtual]Paint the identifier to a given rect.
- void QwtLegendItem::drawItem (QPainter * painter, const QRect & rect) const [virtual]Draw the legend item to a given rect.
- void QwtLegendItem::drawText (QPainter * painter, const QRect & textRect) [protected, virtual]
- int QwtLegendItem::identifierMode () constOr'd values of IdentifierMode.
- int QwtLegendItem::identifierWidth () constReturn the width of the identifier
- bool QwtLegendItem::isChecked () const
- bool QwtLegendItem::isDown () const [protected]
- QwtLegend::LegendItemMode QwtLegendItem::itemMode () constReturn the item mode
- void QwtLegendItem::keyPressEvent (QKeyEvent * e) [protected, virtual]
- void QwtLegendItem::keyReleaseEvent (QKeyEvent * e) [protected, virtual]
- void QwtLegendItem::mousePressEvent (QMouseEvent * e) [protected, virtual]
- void QwtLegendItem::mouseReleaseEvent (QMouseEvent * e) [protected, virtual]
- void QwtLegendItem::paintEvent (QPaintEvent * e) [protected, virtual]
- void QwtLegendItem::pressed () [signal]
- void QwtLegendItem::released () [signal]
- void QwtLegendItem::setChecked (bool on) [slot]Check/Uncheck a the item
- void QwtLegendItem::setCurvePen (const QPen & pen)Set curve pen.
- void QwtLegendItem::setDown (bool down) [protected]
- void QwtLegendItem::setIdentifierMode (int mode)Set identifier mode. Default is ShowLine | ShowText.
- void QwtLegendItem::setIdentifierWidth (int width)Set the width for the identifier Default is 8 pixels
- void QwtLegendItem::setItemMode (QwtLegend::LegendItemMode mode)Set the item mode The default is QwtLegend::ReadOnlyItem
- void QwtLegendItem::setSpacing (int spacing)Change the spacing
- void QwtLegendItem::setSymbol (const QwtSymbol & symbol)Set curve symbol.
- void QwtLegendItem::setText (const QwtText & text) [virtual]Set the text to the legend item
- QSize QwtLegendItem::sizeHint () const [virtual]
- int QwtLegendItem::spacing () constReturn the spacing
- const QwtSymbol & QwtLegendItem::symbol () constReturns:
- Author
NAME
QwtLegendItem -A legend label.
SYNOPSIS
#include <qwt_legend_item.h>
Inherits QwtTextLabel.
Public Types
enum IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 }
Public Slots
void setChecked (bool on)
Signals
void clicked ()
void pressed ()
void released ()
void checked (bool)
Public Member Functions
QwtLegendItem (QWidget *parent=0)
QwtLegendItem (const QwtSymbol &, const QPen &, const QwtText &, QWidget *parent=0)
virtual ~QwtLegendItem ()
virtual void setText (const QwtText &)
void setItemMode (QwtLegend::LegendItemMode)
QwtLegend::LegendItemMode itemMode () const
void setIdentifierMode (int)
int identifierMode () const
void setIdentifierWidth (int width)
int identifierWidth () const
void setSpacing (int spacing)
int spacing () const
void setSymbol (const QwtSymbol &)
const QwtSymbol & symbol () const
void setCurvePen (const QPen &)
const QPen & curvePen () const
virtual void drawIdentifier (QPainter *, const QRect &) const
virtual void drawItem (QPainter *p, const QRect &) const
virtual QSize sizeHint () const
bool isChecked () const
Protected Member Functions
void setDown (bool)
bool isDown () const
virtual void paintEvent (QPaintEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void drawText (QPainter *, const QRect &)
Detailed Description
A legend label.
QwtLegendItem 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. In readonly mode it behaves like a label, otherwise like an unstylish push button.
See also:
- QwtLegend, QwtPlotCurve
Member Enumeration Documentation
enum QwtLegendItem::IdentifierMode
Identifier mode. Default is ShowLine | ShowText
See also:
- identifierMode(), setIdentifierMode()
Constructor & Destructor Documentation
QwtLegendItem::QwtLegendItem (QWidget * parent = 0) [explicit]Parameters:
- parent Parent widget
QwtLegendItem::QwtLegendItem (const QwtSymbol & symbol, const QPen & curvePen, const QwtText & text, QWidget * parent = 0) [explicit]Parameters:
- symbol Curve symbol
curvePen Curve pen
text Label text
parent Parent widget
QwtLegendItem::~QwtLegendItem () [virtual]
Destructor.
Member Function Documentation
void QwtLegendItem::checked (bool) [signal]
Signal, when the legend item has been toggled.
void QwtLegendItem::clicked () [signal]
Signal, when the legend item has been clicked.
const QPen & QwtLegendItem::curvePen () constReturns:
- The curve pen.
See also:
- setCurvePen()
void QwtLegendItem::drawIdentifier (QPainter * painter, const QRect & rect) const [virtual]Paint the identifier to a given rect.
Parameters:
- painter Painter
rect Rect where to paint
void QwtLegendItem::drawItem (QPainter * painter, const QRect & rect) const [virtual]Draw the legend item to a given rect.
Parameters:
- painter Painter
rect Rect where to paint the button
void QwtLegendItem::drawText (QPainter * painter, const QRect & textRect) [protected, virtual]
Redraw the text.
Reimplemented from QwtTextLabel.
int QwtLegendItem::identifierMode () constOr'd values of IdentifierMode.
See also:
- setIdentifierMode(), IdentifierMode
int QwtLegendItem::identifierWidth () constReturn the width of the identifier
See also:
- setIdentifierWidth()
bool QwtLegendItem::isChecked () const
Return true, if the item is checked.
bool QwtLegendItem::isDown () const [protected]
Return true, if the item is down.
QwtLegend::LegendItemMode QwtLegendItem::itemMode () constReturn the item mode
See also:
- setItemMode()
void QwtLegendItem::keyPressEvent (QKeyEvent * e) [protected, virtual]
Handle key press events.
void QwtLegendItem::keyReleaseEvent (QKeyEvent * e) [protected, virtual]
Handle key release events.
void QwtLegendItem::mousePressEvent (QMouseEvent * e) [protected, virtual]
Handle mouse press events.
void QwtLegendItem::mouseReleaseEvent (QMouseEvent * e) [protected, virtual]
Handle mouse release events.
void QwtLegendItem::paintEvent (QPaintEvent * e) [protected, virtual]
Paint event.
Reimplemented from QwtTextLabel.
void QwtLegendItem::pressed () [signal]
Signal, when the legend item has been pressed.
void QwtLegendItem::released () [signal]
Signal, when the legend item has been relased.
void QwtLegendItem::setChecked (bool on) [slot]Check/Uncheck a the item
Parameters:
- on check/uncheck
See also:
- setItemMode()
void QwtLegendItem::setCurvePen (const QPen & pen)Set curve pen.
Parameters:
- pen Curve pen
See also:
- curvePen()
void QwtLegendItem::setDown (bool down) [protected]
Set the item being down.
void QwtLegendItem::setIdentifierMode (int mode)Set identifier mode. Default is ShowLine | ShowText.
Parameters:
- mode Or'd values of IdentifierMode
See also:
- identifierMode()
void QwtLegendItem::setIdentifierWidth (int width)Set the width for the identifier Default is 8 pixels
Parameters:
- width New width
See also:
- identifierMode(), identifierWidth()
void QwtLegendItem::setItemMode (QwtLegend::LegendItemMode mode)Set the item mode The default is QwtLegend::ReadOnlyItem
Parameters:
- mode Item mode
See also:
- itemMode()
void QwtLegendItem::setSpacing (int spacing)Change the spacing
Parameters:
- spacing Spacing
See also:
- spacing(), identifierWidth(), QwtTextLabel::margin()
void QwtLegendItem::setSymbol (const QwtSymbol & symbol)Set curve symbol.
Parameters:
- symbol Symbol
See also:
- symbol()
void QwtLegendItem::setText (const QwtText & text) [virtual]Set the text to the legend item
Parameters:
- text Text label
See also:
- QwtTextLabel::text()
Reimplemented from QwtTextLabel.
QSize QwtLegendItem::sizeHint () const [virtual]
Return a size hint.
Reimplemented from QwtTextLabel.
int QwtLegendItem::spacing () constReturn the spacing
See also:
- setSpacing(), identifierWidth(), QwtTextLabel::margin()
const QwtSymbol & QwtLegendItem::symbol () constReturns:
- The curve symbol.
See also:
- setSymbol()
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre