Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
MainWindow Class Reference

The MainWindow class. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Classes

struct  _FullState

Signals

void sigFullScreen (bool bFullScreen)
void sigShowNormal ()
void sigOperateMenuChanged (QAction *pAction)

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
int Initial ()
 For time-consuming operations.
virtual int onProcess (const QString &id, CPlugin *pPlugin) override
 Process plugins.
QAction * GetStartAction (QMenu *pMenu, CPlugin *pPlug)
 MainWindow (QWidget *parent=nullptr)

Public Attributes

QAction * m_pActionOperateMenu
QAction * m_pActionTBOperate
QToolButton * m_pTBOperate

Protected Member Functions

virtual void keyReleaseEvent (QKeyEvent *event) override
virtual void closeEvent (QCloseEvent *event) override
virtual void dragEnterEvent (QDragEnterEvent *event) override
virtual void dragMoveEvent (QDragMoveEvent *event) override
virtual void dropEvent (QDropEvent *event) override

Private Types

enum class  MessageLevel { Normal , Error , Warning }

Private Slots

void on_actionExit_E_triggered ()
void on_actionAbout_triggered ()
void on_actionUpdate_triggered ()
void slotUpdateParameters (COperate *pOperate)
void on_actionClone_triggered ()
void on_actionOpenRRCFile_triggered ()
void slotOpenFile (const QString &szFile, bool bOpenSettings=false)
void slotStart ()
void slotRunning ()
 [MainWindow slotRunning]
void slotStartByType ()
void slotMenuActivity ()
void slotLoadOperateMenu ()
void slotCustomContextMenuRequested (const QPoint &pos)
 MainWindow::slotCustomContextMenuRequested.
void on_actionStop_triggered ()
void on_actionStop_All_triggered ()
void on_actionStop_other_triggered ()
void slotCloseView (const QWidget *pView)
 [MainWindow slotRunning]
void slotStop ()
void slotFinished ()
void slotError (const int nError, const QString &szInfo)
virtual void slotShowMessageBox (const QString &title, const QString &message, const QMessageBox::Icon &icon)
 Use message box display information.
void slotInformation (const QString &szInfo)
 Show information.
void slotUpdateName (const QString &szName)
void slotUpdateName ()
void on_actionSettings_triggered ()
void slotShortCut ()
void slotStatusMessage (QString szMessage, MessageLevel level=MessageLevel::Normal)
void slotTimeOut ()
void slotSignalConnected ()
void slotSignalDisconnected ()
void slotSignalError (const int nError, const QString &szInfo)
void slotSignalPushButtonClicked (bool checked)
void on_actionTabBar_B_toggled (bool bShow)
void on_actionMain_menu_bar_M_toggled (bool checked)
void on_actionToolBar_T_toggled (bool checked)
void on_actionStatus_bar_S_toggled (bool checked)
void on_actionKeyboard_triggered ()
void on_actionFull_screen_F_triggered ()
void slotCurrentViewChanged (const QWidget *pView)
void slotViewerFocusIn (QWidget *pView)
void slotOperateChanged (COperate *o)
void on_actionViewTab_triggered ()
void on_actionViewSplit_triggered ()
void on_actionLayoutDefault_triggered ()
void on_actionLayoutSimple_triggered ()
void on_actionLayoutMinimalism_triggered ()
void on_actionOpenListRecent_triggered ()
void on_actionAdd_to_favorite_triggered ()
void slotSystemTrayIconActivated (QSystemTrayIcon::ActivationReason reason)
void slotSystemTrayIconTypeChanged ()
void slotEnableSystemTrayIcon ()
void on_actionUser_manual_triggered ()
void on_pbCapture_clicked ()

Private Member Functions

Q_INVOKABLE int Start (COperate *pOperate, bool set, QString szFile=QString())
 Start.
int LoadOperateLasterClose ()
int SaveOperateLasterClose ()
void SetStatsVisible (bool visible)
void StartTimer ()
void SetSecureLevel (COperate *o)
void EnableMenu (bool bEnable)
void SetView (CView *pView)

Private Attributes

CManager m_Manager
QSet< COperate * > m_Operates
QMap< CPlugin::TYPE, QMenu * > m_MenuStartByType
QActionGroup * m_pMenuActivityGroup
QToolButton * m_ptbMenuActivity
QLabel m_StatusBarMessage
QTimer m_Timer
QLabel m_TotalSends
QLabel m_TotalReceives
QLabel m_SendRate
QLabel m_ReceivesRate
QLabel * m_pSecureLevel
QPushButton * m_pSignalStatus
Ui::MainWindow * ui
CViewm_pView
QAction * m_pToolBarMenuAction
struct _FullState m_FullState
CFrmFullScreenToolBarm_pFullScreenToolBar
friend CFrmFullScreenToolBar
RabbitCommon::CRecentMenu * m_pRecentMenu
QDockWidget * m_pDockRecent
CFrmRecentm_pRecent
QDockWidget * m_pDockActive
CFrmActivem_pFrmActive
QDockWidget * m_pDockFavorite
CFavoriteViewm_pFavoriteView
CParameterApp m_Parameter
QPoint m_DragStartPosition
QSharedPointer< QSystemTrayIcon > m_TrayIcon

Detailed Description

The MainWindow class.

Definition at line 36 of file mainwindow.h.

Member Enumeration Documentation

◆ MessageLevel

enum class MainWindow::MessageLevel
strongprivate

Definition at line 131 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget * parent = nullptr)
explicit

When there are docking bars and the view type changes, use a container window to prevent the view window size from changing.

Definition at line 55 of file mainwindow.cpp.

◆ ~MainWindow()

MainWindow::~MainWindow ( )
overridevirtual

Definition at line 433 of file mainwindow.cpp.

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent * event)
overrideprotectedvirtual

Definition at line 1570 of file mainwindow.cpp.

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent * event)
overrideprotectedvirtual

Definition at line 1807 of file mainwindow.cpp.

◆ dragMoveEvent()

void MainWindow::dragMoveEvent ( QDragMoveEvent * event)
overrideprotectedvirtual

Definition at line 1818 of file mainwindow.cpp.

◆ dropEvent()

void MainWindow::dropEvent ( QDropEvent * event)
overrideprotectedvirtual

Definition at line 1823 of file mainwindow.cpp.

◆ EnableMenu()

void MainWindow::EnableMenu ( bool bEnable)
private

Definition at line 862 of file mainwindow.cpp.

◆ GetStartAction()

QAction * MainWindow::GetStartAction ( QMenu * pMenu,
CPlugin * pPlug )
nodiscard

Definition at line 1520 of file mainwindow.cpp.

◆ Initial()

int MainWindow::Initial ( )
nodiscard

For time-consuming operations.

Definition at line 441 of file mainwindow.cpp.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent * event)
overrideprotectedvirtual

Definition at line 972 of file mainwindow.cpp.

◆ LoadOperateLasterClose()

int MainWindow::LoadOperateLasterClose ( )
private

Definition at line 1611 of file mainwindow.cpp.

◆ on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 665 of file mainwindow.cpp.

◆ on_actionAdd_to_favorite_triggered

void MainWindow::on_actionAdd_to_favorite_triggered ( )
privateslot

Definition at line 1793 of file mainwindow.cpp.

◆ on_actionClone_triggered

void MainWindow::on_actionClone_triggered ( )
privateslot

Definition at line 989 of file mainwindow.cpp.

◆ on_actionExit_E_triggered

void MainWindow::on_actionExit_E_triggered ( )
privateslot

Definition at line 967 of file mainwindow.cpp.

◆ on_actionFull_screen_F_triggered

void MainWindow::on_actionFull_screen_F_triggered ( )
privateslot

Definition at line 708 of file mainwindow.cpp.

◆ on_actionKeyboard_triggered

void MainWindow::on_actionKeyboard_triggered ( )
privateslot

Definition at line 1720 of file mainwindow.cpp.

◆ on_actionLayoutDefault_triggered

void MainWindow::on_actionLayoutDefault_triggered ( )
privateslot

Definition at line 2004 of file mainwindow.cpp.

◆ on_actionLayoutMinimalism_triggered

void MainWindow::on_actionLayoutMinimalism_triggered ( )
privateslot

Definition at line 2054 of file mainwindow.cpp.

◆ on_actionLayoutSimple_triggered

void MainWindow::on_actionLayoutSimple_triggered ( )
privateslot

Definition at line 2029 of file mainwindow.cpp.

◆ on_actionMain_menu_bar_M_toggled

void MainWindow::on_actionMain_menu_bar_M_toggled ( bool checked)
privateslot

Definition at line 1662 of file mainwindow.cpp.

◆ on_actionOpenListRecent_triggered

void MainWindow::on_actionOpenListRecent_triggered ( )
privateslot

Definition at line 1765 of file mainwindow.cpp.

◆ on_actionOpenRRCFile_triggered

void MainWindow::on_actionOpenRRCFile_triggered ( )
privateslot

Definition at line 1019 of file mainwindow.cpp.

◆ on_actionSettings_triggered

void MainWindow::on_actionSettings_triggered ( )
privateslot

Definition at line 1737 of file mainwindow.cpp.

◆ on_actionStatus_bar_S_toggled

void MainWindow::on_actionStatus_bar_S_toggled ( bool checked)
privateslot

Definition at line 1714 of file mainwindow.cpp.

◆ on_actionStop_All_triggered

void MainWindow::on_actionStop_All_triggered ( )
privateslot

Definition at line 1274 of file mainwindow.cpp.

◆ on_actionStop_other_triggered

void MainWindow::on_actionStop_other_triggered ( )
privateslot

Definition at line 1260 of file mainwindow.cpp.

◆ on_actionStop_triggered

void MainWindow::on_actionStop_triggered ( )
privateslot

Definition at line 1284 of file mainwindow.cpp.

◆ on_actionTabBar_B_toggled

void MainWindow::on_actionTabBar_B_toggled ( bool bShow)
privateslot

Definition at line 1650 of file mainwindow.cpp.

◆ on_actionToolBar_T_toggled

void MainWindow::on_actionToolBar_T_toggled ( bool checked)
privateslot

Definition at line 1694 of file mainwindow.cpp.

◆ on_actionUpdate_triggered

void MainWindow::on_actionUpdate_triggered ( )
privateslot

Definition at line 685 of file mainwindow.cpp.

◆ on_actionUser_manual_triggered

void MainWindow::on_actionUser_manual_triggered ( )
privateslot

Definition at line 1995 of file mainwindow.cpp.

◆ on_actionViewSplit_triggered

void MainWindow::on_actionViewSplit_triggered ( )
privateslot

Definition at line 657 of file mainwindow.cpp.

◆ on_actionViewTab_triggered

void MainWindow::on_actionViewTab_triggered ( )
privateslot

Definition at line 649 of file mainwindow.cpp.

◆ on_pbCapture_clicked

void MainWindow::on_pbCapture_clicked ( )
privateslot

Definition at line 17 of file mainwindow.cpp.

◆ onProcess()

int MainWindow::onProcess ( const QString & id,
CPlugin * pPlugin )
overridevirtual

Process plugins.

Parameters
idplugin id
pPluginCPlugin pointer

Implements CManager::Handle.

Definition at line 1549 of file mainwindow.cpp.

◆ SaveOperateLasterClose()

int MainWindow::SaveOperateLasterClose ( )
private

Definition at line 1633 of file mainwindow.cpp.

◆ SetSecureLevel()

void MainWindow::SetSecureLevel ( COperate * o)
private

Definition at line 1356 of file mainwindow.cpp.

◆ SetStatsVisible()

void MainWindow::SetStatsVisible ( bool visible)
private

Definition at line 1938 of file mainwindow.cpp.

◆ SetView()

void MainWindow::SetView ( CView * pView)
private

Definition at line 584 of file mainwindow.cpp.

◆ slotCloseView

void MainWindow::slotCloseView ( const QWidget * pView)
privateslot

[MainWindow slotRunning]

Definition at line 1245 of file mainwindow.cpp.

◆ slotCurrentViewChanged

void MainWindow::slotCurrentViewChanged ( const QWidget * pView)
privateslot

Definition at line 837 of file mainwindow.cpp.

◆ slotCustomContextMenuRequested

void MainWindow::slotCustomContextMenuRequested ( const QPoint & pos)
privateslot

MainWindow::slotCustomContextMenuRequested.

Parameters
posThe view is converted to global coordinates
See also
CViewSplitterContainer::slotCustomContextMenuRequested CViewTable::CViewTable

Definition at line 945 of file mainwindow.cpp.

◆ slotEnableSystemTrayIcon

void MainWindow::slotEnableSystemTrayIcon ( )
privateslot

Definition at line 1927 of file mainwindow.cpp.

◆ slotError

void MainWindow::slotError ( const int nError,
const QString & szInfo )
privateslot

Definition at line 1406 of file mainwindow.cpp.

◆ slotFinished

void MainWindow::slotFinished ( )
privateslot

Definition at line 1303 of file mainwindow.cpp.

◆ slotInformation

void MainWindow::slotInformation ( const QString & szInfo)
privateslot

Show information.

Parameters
szInfo
See also
COperate::sigInformation()

Definition at line 1433 of file mainwindow.cpp.

◆ slotLoadOperateMenu

void MainWindow::slotLoadOperateMenu ( )
privateslot

Definition at line 894 of file mainwindow.cpp.

◆ slotMenuActivity

void MainWindow::slotMenuActivity ( )
privateslot

Definition at line 884 of file mainwindow.cpp.

◆ slotOpenFile

void MainWindow::slotOpenFile ( const QString & szFile,
bool bOpenSettings = false )
privateslot

Definition at line 1006 of file mainwindow.cpp.

◆ slotOperateChanged

void MainWindow::slotOperateChanged ( COperate * o)
privateslot

Definition at line 830 of file mainwindow.cpp.

◆ slotRunning

void MainWindow::slotRunning ( )
privateslot

[MainWindow slotRunning]

When connected. enable accept keyboard and mouse event in view

Definition at line 1208 of file mainwindow.cpp.

◆ slotShortCut

void MainWindow::slotShortCut ( )
privateslot

Definition at line 1753 of file mainwindow.cpp.

◆ slotShowMessageBox

void MainWindow::slotShowMessageBox ( const QString & title,
const QString & message,
const QMessageBox::Icon & icon )
privatevirtualslot

Use message box display information.

See also
COperate::sigShowMessageBox()

Definition at line 1412 of file mainwindow.cpp.

◆ slotSignalConnected

void MainWindow::slotSignalConnected ( )
privateslot

Definition at line 1372 of file mainwindow.cpp.

◆ slotSignalDisconnected

void MainWindow::slotSignalDisconnected ( )
privateslot

Definition at line 1381 of file mainwindow.cpp.

◆ slotSignalError

void MainWindow::slotSignalError ( const int nError,
const QString & szInfo )
privateslot

Definition at line 1390 of file mainwindow.cpp.

◆ slotSignalPushButtonClicked

void MainWindow::slotSignalPushButtonClicked ( bool checked)
privateslot

Definition at line 1396 of file mainwindow.cpp.

◆ slotStart

void MainWindow::slotStart ( )
privateslot

Definition at line 1038 of file mainwindow.cpp.

◆ slotStartByType

void MainWindow::slotStartByType ( )
privateslot

Definition at line 1534 of file mainwindow.cpp.

◆ slotStatusMessage

void MainWindow::slotStatusMessage ( QString szMessage,
MessageLevel level = MessageLevel::Normal )
privateslot

Definition at line 1439 of file mainwindow.cpp.

◆ slotStop

void MainWindow::slotStop ( )
privateslot

Definition at line 1293 of file mainwindow.cpp.

◆ slotSystemTrayIconActivated

void MainWindow::slotSystemTrayIconActivated ( QSystemTrayIcon::ActivationReason reason)
privateslot

Definition at line 1843 of file mainwindow.cpp.

◆ slotSystemTrayIconTypeChanged

void MainWindow::slotSystemTrayIconTypeChanged ( )
privateslot

Definition at line 1865 of file mainwindow.cpp.

◆ slotTimeOut

void MainWindow::slotTimeOut ( )
privateslot

Definition at line 1967 of file mainwindow.cpp.

◆ slotUpdateName [1/2]

void MainWindow::slotUpdateName ( )
privateslot

Definition at line 1465 of file mainwindow.cpp.

◆ slotUpdateName [2/2]

void MainWindow::slotUpdateName ( const QString & szName)
privateslot

Definition at line 1484 of file mainwindow.cpp.

◆ slotUpdateParameters

void MainWindow::slotUpdateParameters ( COperate * pOperate)
privateslot

Definition at line 984 of file mainwindow.cpp.

◆ slotViewerFocusIn

void MainWindow::slotViewerFocusIn ( QWidget * pView)
privateslot

Definition at line 821 of file mainwindow.cpp.

◆ Start()

int MainWindow::Start ( COperate * pOperate,
bool set,
QString szFile = QString() )
private

Start.

Parameters
pCOperate instance pointer
setwhether open settings dialog. true: open settings dialog and save configure file false: don't open settings dialog
szFileConfigure file. if is empty. the use default configure file.
Returns

Definition at line 1062 of file mainwindow.cpp.

◆ StartTimer()

void MainWindow::StartTimer ( )
private

Definition at line 1948 of file mainwindow.cpp.

Member Data Documentation

◆ CFrmFullScreenToolBar

friend MainWindow::CFrmFullScreenToolBar
private

Definition at line 198 of file mainwindow.h.

◆ m_DragStartPosition

QPoint MainWindow::m_DragStartPosition
private

Definition at line 250 of file mainwindow.h.

◆ m_FullState

struct _FullState MainWindow::m_FullState
private

Definition at line 196 of file mainwindow.h.

◆ m_Manager

CManager MainWindow::m_Manager
private

Definition at line 73 of file mainwindow.h.

◆ m_MenuStartByType

QMap<CPlugin::TYPE, QMenu*> MainWindow::m_MenuStartByType
private

Definition at line 75 of file mainwindow.h.

◆ m_Operates

QSet<COperate*> MainWindow::m_Operates
private

Definition at line 74 of file mainwindow.h.

◆ m_pActionOperateMenu

QAction* MainWindow::m_pActionOperateMenu

Definition at line 89 of file mainwindow.h.

◆ m_pActionTBOperate

QAction* MainWindow::m_pActionTBOperate

Definition at line 90 of file mainwindow.h.

◆ m_Parameter

CParameterApp MainWindow::m_Parameter
private

Definition at line 242 of file mainwindow.h.

◆ m_pDockActive

QDockWidget* MainWindow::m_pDockActive
private

Definition at line 231 of file mainwindow.h.

◆ m_pDockFavorite

QDockWidget* MainWindow::m_pDockFavorite
private

Definition at line 236 of file mainwindow.h.

◆ m_pDockRecent

QDockWidget* MainWindow::m_pDockRecent
private

Definition at line 224 of file mainwindow.h.

◆ m_pFavoriteView

CFavoriteView* MainWindow::m_pFavoriteView
private

Definition at line 237 of file mainwindow.h.

◆ m_pFrmActive

CFrmActive* MainWindow::m_pFrmActive
private

Definition at line 232 of file mainwindow.h.

◆ m_pFullScreenToolBar

CFrmFullScreenToolBar* MainWindow::m_pFullScreenToolBar
private

Definition at line 197 of file mainwindow.h.

◆ m_pMenuActivityGroup

QActionGroup* MainWindow::m_pMenuActivityGroup
private

Definition at line 80 of file mainwindow.h.

◆ m_pRecent

CFrmRecent* MainWindow::m_pRecent
private

Definition at line 225 of file mainwindow.h.

◆ m_pRecentMenu

RabbitCommon::CRecentMenu* MainWindow::m_pRecentMenu
private

Definition at line 220 of file mainwindow.h.

◆ m_pSecureLevel

QLabel* MainWindow::m_pSecureLevel
private

Definition at line 155 of file mainwindow.h.

◆ m_pSignalStatus

QPushButton* MainWindow::m_pSignalStatus
private

Definition at line 160 of file mainwindow.h.

◆ m_ptbMenuActivity

QToolButton* MainWindow::m_ptbMenuActivity
private

Definition at line 81 of file mainwindow.h.

◆ m_pTBOperate

QToolButton* MainWindow::m_pTBOperate

Definition at line 91 of file mainwindow.h.

◆ m_pToolBarMenuAction

QAction* MainWindow::m_pToolBarMenuAction
private

Definition at line 175 of file mainwindow.h.

◆ m_pView

CView* MainWindow::m_pView
private

Definition at line 174 of file mainwindow.h.

◆ m_ReceivesRate

QLabel MainWindow::m_ReceivesRate
private

Definition at line 147 of file mainwindow.h.

◆ m_SendRate

QLabel MainWindow::m_SendRate
private

Definition at line 146 of file mainwindow.h.

◆ m_StatusBarMessage

QLabel MainWindow::m_StatusBarMessage
private

Definition at line 139 of file mainwindow.h.

◆ m_Timer

QTimer MainWindow::m_Timer
private

Definition at line 143 of file mainwindow.h.

◆ m_TotalReceives

QLabel MainWindow::m_TotalReceives
private

Definition at line 145 of file mainwindow.h.

◆ m_TotalSends

QLabel MainWindow::m_TotalSends
private

Definition at line 144 of file mainwindow.h.

◆ m_TrayIcon

QSharedPointer<QSystemTrayIcon> MainWindow::m_TrayIcon
private

Definition at line 261 of file mainwindow.h.

◆ ui

Ui::MainWindow * MainWindow::ui
private

Definition at line 173 of file mainwindow.h.


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