mainwindow.h 655 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "readthread.h"
  5. #include "playimage.h"
  6. QT_BEGIN_NAMESPACE
  7. namespace Ui {
  8. class MainWindow;
  9. }
  10. QT_END_NAMESPACE
  11. class MainWindow : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. MainWindow(QWidget *parent = nullptr);
  16. ~MainWindow();
  17. private slots:
  18. void on_btn_file_clicked();
  19. void on_btn_start_clicked();
  20. void on_btn_pause_clicked();
  21. void on_playState(ReadThread::PlayState state);
  22. private:
  23. Ui::MainWindow *ui;
  24. ReadThread* m_readThread = nullptr;
  25. QList<ReadThread*> m_readThreads;
  26. QList<PlayImage*> m_playImages;
  27. };
  28. #endif // MAINWINDOW_H