2024-03-02 22:33:27 +01:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2024-03-04 00:27:05 +01:00
|
|
|
#include "tree/SwayTreeModel.h"
|
2024-03-07 17:37:18 +01:00
|
|
|
#include "Keys/KeyHandler.h"
|
2024-03-02 22:33:27 +01:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow() override;
|
|
|
|
|
2024-03-11 13:33:26 +01:00
|
|
|
void updateModel() const;
|
2024-03-02 22:33:27 +01:00
|
|
|
|
2024-03-04 00:27:05 +01:00
|
|
|
SwayTreeModel* model;
|
2024-03-11 13:33:26 +01:00
|
|
|
Ui::MainWindow *ui;
|
2024-03-12 11:48:43 +01:00
|
|
|
public slots:
|
|
|
|
void selChanged() const;
|
2024-03-11 13:33:26 +01:00
|
|
|
private:
|
2024-03-07 17:37:18 +01:00
|
|
|
KeyHandler* swayTreeKeyHandler;
|
|
|
|
KeyHandler* closeHelpKeyHandler;
|
2024-03-02 22:33:27 +01:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|