]> git.sesse.net Git - nageru/blobdiff - analyzer.h
Implement the coordinate display in the analyzer.
[nageru] / analyzer.h
index 3cefdc90991969c990e1385a93c6738e463aad99..d9bd8b8052348cf416020474e8876b5b94895f86 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef _ANALYZER_H
 #define _ANALYZER_H 1
 
-#include <QDialog>
+#include <QImage>
+#include <QMainWindow>
 #include <QString>
 
 #include <epoxy/gl.h>
@@ -18,23 +19,30 @@ namespace movit {
 class ResourcePool;
 }  // namespace movit
 
-class Analyzer : public QDialog
+class Analyzer : public QMainWindow
 {
        Q_OBJECT
 
 public:
        Analyzer();
        ~Analyzer();
+       void mixer_shutting_down();
+
+public slots:
+       void relayout();
 
 private:
        void grab_clicked();
        void signal_changed();
+       bool eventFilter(QObject *watched, QEvent *event) override;
+       void resizeEvent(QResizeEvent *event) override;
 
        Ui::Analyzer *ui;
        QSurface *surface;
        QOpenGLContext *context;
        GLuint pbo;
        movit::ResourcePool *resource_pool = nullptr;
+       QImage grabbed_image;
 };
 
 #endif  // !defined(_ANALYZER_H)