#ifndef MAINWINDOW_H #define MAINWINDOW_H // Qt #include #include "QtGui" #include #include #include #include #include #include #include #include #include #include #include // oil #include "fault.h" #include "contour.h" #include "scale.h" #include "bitmap.h" #include "circular.h" #include "rectangle.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; QPainterPath rectPath; QPainterPath outline; QPainter painter; bool isPressed; int iPoint; QVectorvf; Fault f; Contour c; Scale scale; Bitmap bitmap; Circular circular; Rectangle rect; QPixmap *mp; int initWidth; int initHeight; int scaleCount; // QWidget interface protected: void mouseReleaseEvent(QMouseEvent *); void mouseMoveEvent(QMouseEvent *); void paintEvent(QPaintEvent *event); void mousePressEvent(QMouseEvent *event); // QWidget interface protected: void resizeEvent(QResizeEvent *); // QWidget interface protected: void wheelEvent(QWheelEvent *); }; #endif // MAINWINDOW_H