Rabbit Remote Control 0.0.33
Loading...
Searching...
No Matches
ViewTable.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CVIEWTABLE_H
4#define CVIEWTABLE_H
5
6#include <QTabWidget>
7#include <QScrollArea>
8#include "View.h"
9
10class MainWindow;
15class CViewTable : public CView
16{
17 Q_OBJECT
18
19public:
20 explicit CViewTable(QWidget *parent = nullptr);
21 virtual ~CViewTable();
22
23 // CView interface
24 virtual int AddView(QWidget *pView) override;
25 virtual int RemoveView(QWidget *pView) override;
26 virtual QWidget *GetCurrentView() override;
27 virtual int SetCurrentView(QWidget* pView) override;
28 virtual void SetWidowsTitle(QWidget* pView, const QString& szTitle, const QIcon& icon, const QString& szToolTip) override;
29 virtual int SetFullScreen(bool bFull) override;
30 int ShowTabBar(bool bShow);
31 virtual QSize GetDesktopSize() override;
32
33private Q_SLOTS:
34 void slotCurrentChanged(int index);
35 void slotTabCloseRequested(int index);
36
37 void slotTabPositionChanged();
38
39 virtual void slotSystemCombination() override;
40
41private:
42 QTabWidget* m_pTab;
43 QString m_szStyleSheet;
44 MainWindow* m_pMainWindow;
45
46 QWidget* GetViewer(int index);
47 int GetViewIndex(QWidget* pView);
48
49 // QWidget interface
50protected:
51 virtual void resizeEvent(QResizeEvent *event) override;
52
53};
54
55#endif // CVIEWTABLE_H
The CViewTable class.
Definition ViewTable.h:16
virtual int RemoveView(QWidget *pView) override
virtual QWidget * GetCurrentView() override
virtual int AddView(QWidget *pView) override
Definition ViewTable.cpp:91
The CView class.
Definition View.h:25
The MainWindow class.
Definition mainwindow.h:32