swaymux/mainwindow.h
2024-03-12 11:48:43 +01:00

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