rockbox/utils/regtools/qeditor/mainwindow.h
Amaury Pouly b8bad8412f regtools/qeditor: clean-up
Free the backend when closing a tab to release some memory. Implement about
dialogs.

Change-Id: Ic8c500a23d38e6c3dd4de6a4ba862012925968be
2014-02-10 23:14:26 +01:00

45 lines
695 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTabWidget>
#include <QSettings>
#include "backend.h"
#include "settings.h"
class MyTabWidget : public QTabWidget
{
Q_OBJECT
public:
MyTabWidget();
private slots:
void OnCloseTab(int index);
};
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(Backend *backend);
void center();
void ReadSettings();
void WriteSettings();
private:
void closeEvent(QCloseEvent *event);
private slots:
void OnQuit();
void OnAbout();
void OnAboutQt();
void OnLoadDesc();
void OnNewRegTab();
private:
QTabWidget *m_tab;
Backend *m_backend;
};
#endif