metavis.h 820 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #include <QtWidgets/QMainWindow>
  3. #include <QSettings>
  4. #include <vector>
  5. #include "ui_metavis.h"
  6. #include "RunData.h"
  7. #include "GraphView.h"
  8. /**
  9. * Main class of the GUI.
  10. */
  11. class metavis : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. metavis(QWidget *parent = Q_NULLPTR);
  16. ~metavis();
  17. GraphView* bestGraph;
  18. GraphView* particleGraph;
  19. GraphView* minMaxGraph;
  20. GraphView* bitField;
  21. private:
  22. Ui::metavisClass ui;
  23. QSettings* settings;
  24. std::vector<RunData> runVec;
  25. private:
  26. /* Widget functions */
  27. GraphView* createCustomWidget(QString titleString);
  28. void createBitField();
  29. /* Setting functions*/
  30. void writeActualMainWindowSettings();
  31. void readMainWindowSettings();
  32. public slots:
  33. /**
  34. * Opens the settingWindows Dialog.
  35. */
  36. void openSetting();
  37. /**
  38. * Open a logFile.
  39. */
  40. void openFile();
  41. };