1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#ifndef MATRIX_WINDOW_HPP
#define MATRIX_WINDOW_HPP
#include "../Formats/SymbolMatrix.hpp"
#include "MatrixGLWidget.hpp"
#include <QMainWindow>
#include <QCloseEvent>
#include <QKeyEvent>
#include <QLabel>
#define MATRIX_WINDOW_LENGTH 512
#define MATRIX_WINDOW_HEIGHT 512
class Matrix_window : public QMainWindow
{
public:
Matrix_window(symbol_matrix_t* matrix);
~Matrix_window();
protected:
void closeEvent(QCloseEvent* event);
void keyPressEvent(QKeyEvent* keyEvent);
private:
MatrixGLWidget* m_gl;
QLabel* m_label;
};
#endif
|