新增qwt源码版本
This commit is contained in:
32
qwtdemo/examples/legends/plot.h
Normal file
32
qwtdemo/examples/legends/plot.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef _PLOT_H_
|
||||
#define _PLOT_H_
|
||||
|
||||
#include <qwt_plot.h>
|
||||
|
||||
class Settings;
|
||||
class LegendItem;
|
||||
class QwtLegend;
|
||||
|
||||
class Plot: public QwtPlot
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Plot( QWidget *parent = NULL );
|
||||
virtual ~Plot();
|
||||
|
||||
public Q_SLOTS:
|
||||
void applySettings( const Settings & );
|
||||
|
||||
public:
|
||||
virtual void replot();
|
||||
|
||||
private:
|
||||
void insertCurve();
|
||||
|
||||
QwtLegend *d_externalLegend;
|
||||
LegendItem *d_legendItem;
|
||||
bool d_isDirty;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user