xref: /OK3568_Linux_fs/app/forlinx/flapp/src/app/mwainwindow.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 #ifndef MWAINWINDOW_H
2 #define MWAINWINDOW_H
3 #include <QStackedWidget>
4 
5 #include "processhandler.h"
6 #include "iwidgetbridge.h"
7 #include "processhandler.h"
8 
9 class MWainWindowPrivate;
10 class MWainWindow :
11         public QStackedWidget,
12         public IWidgetBridge
13 {
14 public:
15     MWainWindow(const QString &id, QWidget *parent=Q_NULLPTR);
16     ~MWainWindow();
17     void setTitleBarVisible(bool bShow) override;
18     void showWidgt(const QString &id)override;
19 
20 private:
21     void  loadWidget(const QString &id );
22     bool unloadWidget(const QString &id);
23 
24 private:
25     MWainWindowPrivate *m_d;
26 };
27 #endif // MWAINWINDOW_H
28