QwtLegend man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

QwtLegend(3)		       Qwt User's Guide			  QwtLegend(3)

NAME
       QwtLegend -

       The legend widget.

SYNOPSIS
       #include <qwt_legend.h>

   Public Types
       enum LegendDisplayPolicy { NoIdentifier =  0, FixedIdentifier =	1,
	   AutoIdentifier =  2 }
       enum LegendItemMode { ReadOnlyItem, ClickableItem, CheckableItem }

   Public Member Functions
       void clear ()
       const QWidget * contentsWidget () const
       QWidget * contentsWidget ()
       LegendDisplayPolicy displayPolicy () const
       virtual bool eventFilter (QObject *, QEvent *)
       QwtLegendItemManager * find (const QWidget *) const
       QWidget * find (const QwtLegendItemManager *) const
       virtual int heightForWidth (int w) const
       QScrollBar * horizontalScrollBar () const
       int identifierMode () const
       void insert (const QwtLegendItemManager *, QWidget *)
       bool isEmpty () const
       uint itemCount () const
       LegendItemMode itemMode () const
       virtual QList< QWidget * > legendItems () const
       QwtLegend (QWidget *parent=NULL)
       void remove (const QwtLegendItemManager *)
       void setDisplayPolicy (LegendDisplayPolicy policy, int mode)
       void setItemMode (LegendItemMode)
       virtual QSize sizeHint () const
       QScrollBar * verticalScrollBar () const
       virtual ~QwtLegend ()

   Protected Member Functions
       virtual void layoutContents ()
       virtual void resizeEvent (QResizeEvent *)

Detailed Description
       The legend widget.

       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
       QwtLegendItem.

       See also:
	   QwtLegendItem, QwtLegendItemManager QwtPlot

Member Enumeration Documentation
   enum QwtLegend::LegendDisplayPolicy
       Display policy. .IP "·" 2 NoIdentifier
	The client code is responsible how to display of each legend item. The
       Qwt library will not interfere.

       · FixedIdentifier
	  All legend items are displayed with the
	 QwtLegendItem::IdentifierMode to be passed in 'mode'.

       · AutoIdentifier
	  Each legend item is displayed with a mode that is a bitwise or of

	 · QwtLegendItem::ShowLine (if its curve is drawn with a line) and

	 · QwtLegendItem::ShowSymbol (if its curve is drawn with symbols) and

	 · QwtLegendItem::ShowText (if the has a title).

       Default is AutoIdentifier.

       See also:
	   setDisplayPolicy(), displayPolicy(), QwtLegendItem::IdentifierMode

   enum QwtLegend::LegendItemMode
       Interaction mode for the legend items. .IP "·" 2 ReadOnlyItem
	The legend item is not interactive, like a label

       · ClickableItem
	  The legend item is clickable, like a push button

       · CheckableItem
	  The legend item is checkable, like a checkable button

       Default is ReadOnlyItem.

       See also:
	   setItemMode(), itemMode(), QwtLegendItem::IdentifierMode
	   QwtLegendItem::clicked(), QwtLegendItem::checked(),
	   QwtPlot::legendClicked(), QwtPlot::legendChecked()

Constructor & Destructor Documentation
   QwtLegend::QwtLegend (QWidget *parent = NULL) [explicit] Constructor
       Parameters:
	   parent Parent widget

   QwtLegend::~QwtLegend () [virtual]
       Destructor.

Member Function Documentation
   void QwtLegend::clear ()
       Remove all items.

   QWidget * QwtLegend::contentsWidget () The contents widget is the only
       child of the viewport() and the parent widget of all legend items.
   const QWidget * QwtLegend::contentsWidget () const The contents widget is
       the only child of the viewport() and the parent widget of all legend
       items.
   QwtLegend::LegendDisplayPolicy QwtLegend::displayPolicy () const Returns:
	   the legend display policy. Default is LegendDisplayPolicy::Auto.

       See also:
	   setDisplayPolicy(), LegendDisplayPolicy

   bool QwtLegend::eventFilter (QObject *o, QEvent *e) [virtual] Filter layout
       related events of QwtLegend::contentsWidget().
       Parameters:
	   o Object to be filtered
	   e Event

   QWidget * QwtLegend::find (const QwtLegendItemManager *plotItem) const Find
       the widget that represents a plot item
       Parameters:
	   plotItem Plot item

       Returns:
	   Widget on the legend, or NULL

   QwtLegendItemManager * QwtLegend::find (const QWidget *legendItem) const
       Find the widget that represents a plot item
       Parameters:
	   legendItem Legend item

       Returns:
	   Widget on the legend, or NULL

   int QwtLegend::heightForWidth (intwidth) const [virtual] Returns:
	   The preferred height, for the width w.

       Parameters:
	   width Width

   QScrollBar * QwtLegend::horizontalScrollBar () const Returns:
	   Horizontal scrollbar

       See also:
	   verticalScrollBar()

   int QwtLegend::identifierMode () const Returns:
	   the IdentifierMode to be used in combination with
	   LegendDisplayPolicy::Fixed.

       Default is ShowLine | ShowSymbol | ShowText.

   void QwtLegend::insert (const QwtLegendItemManager *plotItem, QWidget
       *legendItem) Insert a new item for a plot item
       Parameters:
	   plotItem Plot item
	   legendItem New legend item

       Note:
	   The parent of item will be changed to QwtLegend::contentsWidget()

   bool QwtLegend::isEmpty () const
       Return true, if there are no legend items.

   uint QwtLegend::itemCount () const
       Return the number of legend items.

   QwtLegend::LegendItemMode QwtLegend::itemMode () const See also:
	   LegendItemMode

   void QwtLegend::layoutContents () [protected, virtual] Adjust contents
       widget and item layout to the size of the viewport().
   QList< QWidget * > QwtLegend::legendItems () const [virtual]
       Return a list of all legend items.

   void QwtLegend::remove (const QwtLegendItemManager *plotItem) Find the
       corresponding item for a plotItem and remove it from the item list.
       Parameters:
	   plotItem Plot item

   void QwtLegend::resizeEvent (QResizeEvent *e) [protected, virtual] Resize
       event
       Parameters:
	   e Resize event

   void QwtLegend::setDisplayPolicy (LegendDisplayPolicypolicy, intmode) Set
       the legend display policy to:
       Parameters:
	   policy Legend display policy
	   mode Identifier mode (or'd ShowLine, ShowSymbol, ShowText)

       See also:
	   displayPolicy(), LegendDisplayPolicy

   void QwtLegend::setItemMode (LegendItemModemode) See also:
	   LegendItemMode

   QSize QwtLegend::sizeHint () const [virtual]
       Return a size hint.

   QScrollBar * QwtLegend::verticalScrollBar () const Returns:
	   Vertical scrollbar

       See also:
	   horizontalScrollBar()

Author
       Generated automatically by Doxygen for Qwt User's Guide from the source
       code.

Version 5.2.2			Mon Aug 1 2011			  QwtLegend(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net