#include <qmainwindow.h>
#include <qwt_polygon.h>

class QwtPlotZoomer;
class QwtPlotPicker;
class QwtPlotPanner;
class BodePlot;

class MainWin : public QMainWindow
{
    Q_OBJECT

public:
    MainWin(QWidget *parent = 0);

private slots:
    void moved(const QPoint &);
    void selected(const QwtPolygon &);
    
    void print();
    void exportPDF();
    void exportSVG();
    void enableZoomMode(bool);

private:
    void showInfo(QString text = QString::null);

    BodePlot *d_plot;

    QwtPlotZoomer *d_zoomer[2];
    QwtPlotPicker *d_picker;
    QwtPlotPanner *d_panner;
};
