Rabbit Remote Control 0.0.35
Loading...
Searching...
No Matches
View.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CVIEW_H
4#define CVIEW_H
5
6#include <QWidget>
7#include <ParameterApp.h>
8
24class CView : public QWidget
25{
26 Q_OBJECT
27public:
28 explicit CView(CParameterApp* pPara, QWidget *parent = nullptr);
29 virtual ~CView();
30
32 virtual int AddView(QWidget* pView) = 0;
34 virtual int RemoveView(QWidget* pView) = 0;
36 virtual QWidget* GetCurrentView() = 0;
37 virtual int SetCurrentView(QWidget* pView) = 0;
38 virtual void SetWidowsTitle(QWidget* pView, const QString& szTitle,
39 const QIcon& icon, const QString& szToolTip) = 0;
40 virtual int SetFullScreen(bool bFull) = 0;
41 virtual int SetVisibleTab(bool bVisible) = 0;
42
43Q_SIGNALS:
45 void sigCloseView(const QWidget* pView);
46 void sigCurrentChanged(const QWidget* pView);
47
48protected:
49 CParameterApp* m_pParameterApp;
50};
51
52#endif // CVIEW_H
The CView class.
Definition View.h:25
void sigCloseView(const QWidget *pView)
virtual int AddView(QWidget *pView)=0
virtual QWidget * GetCurrentView()=0
virtual int RemoveView(QWidget *pView)=0