Files
GenericQtClientWidgets/mainwindow.h

49 lines
866 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
class GenericCore;
class QAbstractItemModel;
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
signals:
void displayStatusMessage(QString message);
void checkForUpdates();
protected:
void closeEvent(QCloseEvent* event) override;
private slots:
void onAboutClicked();
void showStatusMessage(const QString text);
void on_actionCheck_for_update_triggered();
void on_pushButton_clicked();
private:
Ui::MainWindow* ui;
// GenericCore* m_core;
std::unique_ptr<GenericCore> m_core;
std::shared_ptr<QAbstractItemModel> m_tableModel;
/// Setup functions
void createActions();
void createHelpMenu();
};
#endif // MAINWINDOW_H