28 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			394 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _PLOT_H_
 | |
| #define _PLOT_H_ 1
 | |
| 
 | |
| #include <qwt_plot.h>
 | |
| 
 | |
| class RectItem;
 | |
| class QwtInterval;
 | |
| 
 | |
| class Plot: public QwtPlot
 | |
| {
 | |
|     Q_OBJECT
 | |
| 
 | |
| public:
 | |
|     Plot( QWidget *parent, const QwtInterval & );
 | |
|     virtual void updateLayout();
 | |
| 
 | |
|     void setRectOfInterest( const QRectF & );
 | |
| 
 | |
| Q_SIGNALS:
 | |
|     void resized( double xRatio, double yRatio );
 | |
| 
 | |
| private:
 | |
|     RectItem *d_rectOfInterest;
 | |
| };
 | |
| 
 | |
| #endif
 | |
| 
 | |
| 
 |