mainwindow.h 838 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QInputDialog>
  5. #include "../../qcustomplot.h"
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit MainWindow(QWidget *parent = 0);
  14. ~MainWindow();
  15. private slots:
  16. void titleDoubleClick(QMouseEvent *event, QCPPlotTitle *title);
  17. void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
  18. void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
  19. void selectionChanged();
  20. void mousePress();
  21. void mouseWheel();
  22. void addRandomGraph();
  23. void removeSelectedGraph();
  24. void removeAllGraphs();
  25. void contextMenuRequest(QPoint pos);
  26. void moveLegend();
  27. void graphClicked(QCPAbstractPlottable *plottable);
  28. private:
  29. Ui::MainWindow *ui;
  30. };
  31. #endif // MAINWINDOW_H