output.hpp 651 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef QT_OUTPUT_HPP
  2. #define QT_OUTPUT_HPP
  3. #include <QWidget>
  4. #include <QVBoxLayout>
  5. #include <QScrollBar>
  6. #include <QGridLayout>
  7. #include <QLabel>
  8. #include <QThread>
  9. #include "qt/output/output_view.hpp"
  10. #include "qt/output/kernel.hpp"
  11. class QtOutput:public QWidget{
  12. Q_OBJECT
  13. private:
  14. QtKernel* kernel;
  15. QThread* kernel_thread;
  16. QVBoxLayout* main_layout;
  17. QScrollBar* time_bar;
  18. QWidget* info_widget;
  19. QGridLayout* info_layout;
  20. QLabel* time_label;
  21. QtOutputView* output_view;
  22. size_t step;
  23. public:
  24. QtOutput(string filename);
  25. ~QtOutput();
  26. void update();
  27. void update_infos();
  28. private slots:
  29. void time_change(int);
  30. };
  31. #endif