Rabbit Remote Control 0.0.30
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 void SetWidowsTitle(QWidget* pView, const QString& szTitle, const QIcon& icon, const QString& szToolTip) override;
28 virtual int SetFullScreen(bool bFull) override;
29 int ShowTabBar(bool bShow);
30 virtual QSize GetDesktopSize() override;
31
32private Q_SLOTS:
33 void slotCurrentChanged(int index);
34 void slotTabCloseRequested(int index);
35
36 void slotTabPositionChanged();
37
38 virtual void slotSystemCombination() override;
39
40private:
41 QTabWidget* m_pTab;
42 QString m_szStyleSheet;
43 MainWindow* m_pMainWindow;
44
45 QWidget* GetViewer(int index);
46 int GetViewIndex(QWidget* pView);
47
48 // QWidget interface
49protected:
50 virtual void resizeEvent(QResizeEvent *event) override;
51
52};
53
54#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