~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to qwt/src/qwt_legend_itemmanager.h

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * modify it under the terms of the Qwt License, Version 1.0
8
8
 *****************************************************************************/
9
9
 
10
 
// vim: expandtab
11
 
 
12
10
#ifndef QWT_LEGEND_ITEM_MANAGER_H
13
11
#define QWT_LEGEND_ITEM_MANAGER_H
14
12
 
16
14
 
17
15
class QwtLegend;
18
16
class QWidget;
 
17
class QRectF;
 
18
class QPainter;
19
19
 
20
20
/*!
21
21
  \brief Abstract API to bind plot items to the legend
25
25
{
26
26
public:
27
27
    //! Constructor
28
 
    QwtLegendItemManager() 
 
28
    QwtLegendItemManager()
29
29
    {
30
30
    }
31
31
 
32
32
    //! Destructor
33
 
    virtual ~QwtLegendItemManager() 
 
33
    virtual ~QwtLegendItemManager()
34
34
    {
35
35
    }
36
36
 
39
39
      \param legend Legend
40
40
      \sa legendItem()
41
41
     */
42
 
    virtual void updateLegend(QwtLegend *legend) const = 0;
 
42
    virtual void updateLegend( QwtLegend *legend ) const = 0;
43
43
 
44
44
    /*!
45
45
      Allocate the widget that represents the item on the legend
48
48
     */
49
49
 
50
50
    virtual QWidget *legendItem() const = 0;
 
51
 
 
52
    /*!
 
53
      QwtLegendItem can display an icon-identifier followed
 
54
      by a text. The icon helps to identify a plot item on
 
55
      the plot canvas and depends on the type of information,
 
56
      that is displayed.
 
57
 
 
58
      The default implementation paints nothing.
 
59
     */
 
60
    virtual void drawLegendIdentifier( QPainter *, const QRectF & ) const
 
61
    {
 
62
    }
51
63
};
52
64
 
53
65
#endif
54