Last change
on this file since 89 was 89, checked in by morasjul, 11 years ago |
PACPUS 2.0 Beta deployed in new branch
Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
---|
2 | * Qwt Widget Library
|
---|
3 | * Copyright (C) 1997 Josef Wilgen
|
---|
4 | * Copyright (C) 2002 Uwe Rathmann
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the Qwt License, Version 1.0
|
---|
8 | *****************************************************************************/
|
---|
9 |
|
---|
10 | // vim: expandtab
|
---|
11 |
|
---|
12 | #ifndef QWT_LEGEND_ITEM_MANAGER_H
|
---|
13 | #define QWT_LEGEND_ITEM_MANAGER_H
|
---|
14 |
|
---|
15 | #include "qwt_global.h"
|
---|
16 |
|
---|
17 | class QwtLegend;
|
---|
18 | class QWidget;
|
---|
19 |
|
---|
20 | /*!
|
---|
21 | \brief Abstract API to bind plot items to the legend
|
---|
22 | */
|
---|
23 |
|
---|
24 | class QWT_EXPORT QwtLegendItemManager
|
---|
25 | {
|
---|
26 | public:
|
---|
27 | //! Constructor
|
---|
28 | QwtLegendItemManager()
|
---|
29 | {
|
---|
30 | }
|
---|
31 |
|
---|
32 | //! Destructor
|
---|
33 | virtual ~QwtLegendItemManager()
|
---|
34 | {
|
---|
35 | }
|
---|
36 |
|
---|
37 | /*!
|
---|
38 | Update the widget that represents the item on the legend
|
---|
39 | \param legend Legend
|
---|
40 | \sa legendItem()
|
---|
41 | */
|
---|
42 | virtual void updateLegend(QwtLegend *legend) const = 0;
|
---|
43 |
|
---|
44 | /*!
|
---|
45 | Allocate the widget that represents the item on the legend
|
---|
46 | \return Allocated widget
|
---|
47 | \sa updateLegend() QwtLegend()
|
---|
48 | */
|
---|
49 |
|
---|
50 | virtual QWidget *legendItem() const = 0;
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|
54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.