Rabbit Remote Control 0.1.0-bate16
Loading...
Searching...
No Matches
CView Class Referenceabstract

The CView class. More...

#include <View.h>

Inheritance diagram for CView:
Collaboration diagram for CView:

Signals

void sigCloseView (const QWidget *pView)
void sigCurrentChanged (const QWidget *pView)

Public Member Functions

 CView (CParameterApp *pPara, QWidget *parent=nullptr)
virtual int AddView (QWidget *pView)=0
virtual int RemoveView (QWidget *pView)=0
virtual QWidget * GetCurrentView ()=0
virtual int SetCurrentView (QWidget *pView)=0
virtual void SetWidowsTitle (QWidget *pView, const QString &szTitle, const QIcon &icon, const QString &szToolTip)=0
virtual int SetFullScreen (bool bFull)
virtual int SetVisibleTab (bool bVisible)=0

Protected Member Functions

virtual int OnFullScreen (bool bFull)=0

Protected Attributes

CParameterApp * m_pParameterApp

Detailed Description

The CView class.

Note
The parameters and return QWidget* is same as CConnecter::GetViewer()

Definition at line 24 of file View.h.

Constructor & Destructor Documentation

◆ ~CView()

CView::~CView ( )
virtual

Definition at line 17 of file View.cpp.

Member Function Documentation

◆ AddView()

virtual int CView::AddView ( QWidget * pView)
pure virtual
Note
QWidget* pView must is same as CConnecter::GetViewer()

Implemented in CViewSplitter, and CViewTable.

◆ GetCurrentView()

virtual QWidget * CView::GetCurrentView ( )
pure virtual
Note
The return QWidget* must is same as CConnecter::GetViewer()

Implemented in CViewSplitter, and CViewTable.

◆ RemoveView()

virtual int CView::RemoveView ( QWidget * pView)
pure virtual
Note
QWidget* pView must is same as CConnecter::GetViewer()

Implemented in CViewSplitter, and CViewTable.

◆ SetFullScreen()

int CView::SetFullScreen ( bool bFull)
virtual

Call the void OnFullScreen(bool) of the current view

See also
CFrmScroll::OnFullScreen
int CFrmScroll::OnFullScreen(bool bFull)
{
int nRet = 0;
if(bFull) {
m_Shap = frameShape();
setFrameShape(QFrame::NoFrame);
} else {
setFrameShape(m_Shap);
}
CFrmViewer* pFrmView = GetViewer();
if(pFrmView)
nRet = pFrmView->OnFullScreen(bFull);
return nRet;
}

Definition at line 22 of file View.cpp.

◆ sigCloseView

void CView::sigCloseView ( const QWidget * pView)
signal
Note
The QWidget* pView must is same as CConnecter::GetViewer()

Member Data Documentation

◆ m_pParameterApp

CParameterApp* CView::m_pParameterApp
protected

Definition at line 50 of file View.h.


The documentation for this class was generated from the following files: