33 lines
575 B
C++
33 lines
575 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "tree/SwayTreeModel.h"
|
|
#include "Keys/KeyHandler.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow() override;
|
|
|
|
void updateModel() const;
|
|
|
|
SwayTreeModel* model;
|
|
Ui::MainWindow *ui;
|
|
public slots:
|
|
void selChanged() const;
|
|
private:
|
|
KeyHandler* swayTreeKeyHandler;
|
|
KeyHandler* closeHelpKeyHandler;
|
|
};
|
|
#endif // MAINWINDOW_H
|