32 lines
552 B
C
32 lines
552 B
C
|
#ifndef PAGEWIDGET_H
|
||
|
#define PAGEWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
class PageBaseWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
enum class PageType {
|
||
|
PT_HomeScreen,
|
||
|
PT_HomeWidget,
|
||
|
PT_DetailedTown,
|
||
|
PT_ContentWidget,
|
||
|
};
|
||
|
|
||
|
public:
|
||
|
explicit PageBaseWidget(class MainWindow *parent);
|
||
|
|
||
|
virtual void Use() { show(); }
|
||
|
|
||
|
public:
|
||
|
virtual PageType GetPageType() const = 0;
|
||
|
|
||
|
MainWindow* GetParentWidget() const { return m_parentWidget; }
|
||
|
|
||
|
private:
|
||
|
class MainWindow* m_parentWidget;
|
||
|
};
|
||
|
|
||
|
#endif // PAGEWIDGET_H
|