2013-08-21 18:16:26 +00:00
|
|
|
#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();
|
2014-02-09 01:17:14 +00:00
|
|
|
void OnAboutQt();
|
2013-08-21 18:16:26 +00:00
|
|
|
void OnLoadDesc();
|
|
|
|
void OnNewRegTab();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QTabWidget *m_tab;
|
|
|
|
Backend *m_backend;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|