#include <qwt_legend.h>
Public Types | |
| enum | LegendDisplayPolicy { None = 0, Fixed = 1, Auto = 2 } |
Public Member Functions | |
| QwtLegend (QWidget *parent=0, const char *name=0) | |
| void | setDisplayPolicy (int policy, int mode=-1) |
| int | displayPolicy () const |
| int | identifierMode () const |
| QWidget * | contentsWidget () |
| const QWidget * | contentsWidget () const |
| void | insertItem (QWidget *, long key) |
| QWidget * | findItem (long key) |
| const QWidget * | findItem (long key) const |
| QWidget * | takeItem (long key) |
| virtual QIntDictIterator< QWidget > | itemIterator () const |
| long | key (const QWidget *) const |
| void | clear () |
| bool | isEmpty () const |
| uint | itemCount () const |
| virtual bool | eventFilter (QObject *, QEvent *) |
| virtual QSize | sizeHint () const |
| virtual int | heightForWidth (int w) const |
Protected Member Functions | |
| virtual void | viewportResizeEvent (QResizeEvent *) |
| virtual void | layoutContents () |
Private Attributes | |
| int | d_displayPolicy |
| int | d_identifierMode |
| QIntDict< QWidget > | d_items |
| QWidget * | d_contentsWidget |
The QwtLegend widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a QwtLegendButton.
Definition at line 107 of file qwt_legend.h.
|
|
Definition at line 113 of file qwt_legend.h. |
|
||||||||||||
|
Definition at line 317 of file qwt_legend.cpp. References d_contentsWidget. |
|
|
Remove all items.
Definition at line 411 of file qwt_legend.cpp. References d_items. Referenced by QwtPlot::clear(), QwtPlot::enableLegend(), and QwtPlot::removeCurves(). |
|
|
The contents widget is the only child of the viewport() and the parent widget of all legend items. Definition at line 159 of file qwt_legend.h. |
|
|
The contents widget is the only child of the viewport() and the parent widget of all legend items. Definition at line 154 of file qwt_legend.h. Referenced by QwtPlot::insertLegendItem(), QwtPlot::printLegend(), QwtPlot::setLegendPos(), and QwtPlot::updateTabOrder(). |
|
|
Return the legend display policy. Default is LegendDisplayPolicy::Auto. Definition at line 143 of file qwt_legend.h. Referenced by QwtPlot::updateLegendItem(). |
|
||||||||||||
|
Definition at line 507 of file qwt_legend.cpp. References d_contentsWidget, key(), layoutContents(), and takeItem(). |
|
|
Find the item for a given key.
Definition at line 167 of file qwt_legend.h. |
|
|
Find the item for a given key.
Definition at line 164 of file qwt_legend.h. Referenced by QwtPlot::enableLegend(), QwtPlot::legendEnabled(), QwtPlot::removeCurve(), and QwtPlot::updateLegendItem(). |
|
|
Definition at line 454 of file qwt_legend.cpp. References d_contentsWidget. Referenced by QwtPlotLayoutData::init(), and QwtPlotLayout::minimumSizeHint(). |
|
|
Return the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed. Default is ShowLine | ShowSymbol | ShowText. Definition at line 149 of file qwt_legend.h. Referenced by QwtPlot::updateLegendItem(). |
|
||||||||||||
|
Insert a new item for a specific key.
Definition at line 357 of file qwt_legend.cpp. References d_contentsWidget, d_items, and layoutContents(). Referenced by QwtPlot::insertLegendItem(). |
|
|
Definition at line 179 of file qwt_legend.h. Referenced by QwtPlotLayout::activate(), QwtPlotLayout::minimumSizeHint(), QwtPlot::print(), and QwtPlot::printLegend(). |
|
|
Definition at line 182 of file qwt_legend.h. Referenced by QwtPlot::enableLegend(), and QwtPlot::updateLayout(). |
|
|
Return an item iterator.
Definition at line 437 of file qwt_legend.cpp. References d_items. Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
|
Return the key of an legend item.
Definition at line 399 of file qwt_legend.cpp. References d_items. Referenced by eventFilter(), and QwtPlot::lgdClicked(). |
|
|
Adjust contents widget and item layout to the size of the viewport(). Definition at line 475 of file qwt_legend.cpp. References d_contentsWidget, QwtDynGridLayout::heightForWidth(), and QwtDynGridLayout::maxItemWidth(). Referenced by eventFilter(), and insertItem(). |
|
||||||||||||
|
Set the legend display policy to:
Definition at line 343 of file qwt_legend.cpp. References d_displayPolicy, and d_identifierMode. Referenced by QwtPlot::setLegendDisplayPolicy(). |
|
|
Return a size hint.
Definition at line 443 of file qwt_legend.cpp. References d_contentsWidget. Referenced by QwtPlotLayoutData::init(), and QwtPlotLayout::minimumSizeHint(). |
|
|
Find the item for a given key and remove it from the item list.
Definition at line 170 of file qwt_legend.h. Referenced by eventFilter(). |
|
|
Definition at line 537 of file qwt_legend.cpp. References d_contentsWidget. |
|
|
Definition at line 197 of file qwt_legend.h. Referenced by eventFilter(), heightForWidth(), insertItem(), layoutContents(), QwtLegend(), sizeHint(), and viewportResizeEvent(). |
|
|
Definition at line 194 of file qwt_legend.h. Referenced by setDisplayPolicy(). |
|
|
Definition at line 195 of file qwt_legend.h. Referenced by setDisplayPolicy(). |
|
|
Definition at line 196 of file qwt_legend.h. Referenced by clear(), insertItem(), itemIterator(), and key(). |
1.3.2