Rabbit Remote Control 0.1.0-bate5
Loading...
Searching...
No Matches
Classes | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

The MainWindow class. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

Classes

struct  _FullState
 

Signals

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

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
void slotInitial ()
 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 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_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

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
 
QVector< 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_pDockListRecent
 
CFrmListRecentm_pListRecent
 
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 34 of file mainwindow.h.

Member Enumeration Documentation

◆ MessageLevel

enum class MainWindow::MessageLevel
strongprivate

Definition at line 127 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

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

Definition at line 51 of file mainwindow.cpp.

◆ ~MainWindow()

MainWindow::~MainWindow ( )
overridevirtual

Definition at line 387 of file mainwindow.cpp.

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual

Definition at line 1278 of file mainwindow.cpp.

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Definition at line 1491 of file mainwindow.cpp.

◆ dragMoveEvent()

void MainWindow::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Definition at line 1502 of file mainwindow.cpp.

◆ dropEvent()

void MainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Definition at line 1507 of file mainwindow.cpp.

◆ EnableMenu()

void MainWindow::EnableMenu ( bool  bEnable)
private

Definition at line 674 of file mainwindow.cpp.

◆ GetStartAction()

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

Definition at line 1228 of file mainwindow.cpp.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 774 of file mainwindow.cpp.

◆ LoadOperateLasterClose()

int MainWindow::LoadOperateLasterClose ( )
private

Definition at line 1319 of file mainwindow.cpp.

◆ on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 488 of file mainwindow.cpp.

◆ on_actionAdd_to_favorite_triggered

void MainWindow::on_actionAdd_to_favorite_triggered ( )
privateslot

Definition at line 1477 of file mainwindow.cpp.

◆ on_actionClone_triggered

void MainWindow::on_actionClone_triggered ( )
privateslot

Definition at line 791 of file mainwindow.cpp.

◆ on_actionExit_E_triggered

void MainWindow::on_actionExit_E_triggered ( )
privateslot

Definition at line 769 of file mainwindow.cpp.

◆ on_actionFull_screen_F_triggered

void MainWindow::on_actionFull_screen_F_triggered ( )
privateslot

Definition at line 530 of file mainwindow.cpp.

◆ on_actionLayoutDefault_triggered

void MainWindow::on_actionLayoutDefault_triggered ( )
privateslot

Definition at line 1676 of file mainwindow.cpp.

◆ on_actionLayoutMinimalism_triggered

void MainWindow::on_actionLayoutMinimalism_triggered ( )
privateslot

Definition at line 1726 of file mainwindow.cpp.

◆ on_actionLayoutSimple_triggered

void MainWindow::on_actionLayoutSimple_triggered ( )
privateslot

Definition at line 1701 of file mainwindow.cpp.

◆ on_actionMain_menu_bar_M_toggled

void MainWindow::on_actionMain_menu_bar_M_toggled ( bool  checked)
privateslot

Definition at line 1370 of file mainwindow.cpp.

◆ on_actionOpenListRecent_triggered

void MainWindow::on_actionOpenListRecent_triggered ( )
privateslot

Definition at line 1452 of file mainwindow.cpp.

◆ on_actionOpenRRCFile_triggered

void MainWindow::on_actionOpenRRCFile_triggered ( )
privateslot

Definition at line 821 of file mainwindow.cpp.

◆ on_actionSettings_triggered

void MainWindow::on_actionSettings_triggered ( )
privateslot

Definition at line 1429 of file mainwindow.cpp.

◆ on_actionStatus_bar_S_toggled

void MainWindow::on_actionStatus_bar_S_toggled ( bool  checked)
privateslot

Definition at line 1422 of file mainwindow.cpp.

◆ on_actionStop_triggered

void MainWindow::on_actionStop_triggered ( )
privateslot

Definition at line 1024 of file mainwindow.cpp.

◆ on_actionTabBar_B_toggled

void MainWindow::on_actionTabBar_B_toggled ( bool  bShow)
privateslot

Definition at line 1358 of file mainwindow.cpp.

◆ on_actionToolBar_T_toggled

void MainWindow::on_actionToolBar_T_toggled ( bool  checked)
privateslot

Definition at line 1402 of file mainwindow.cpp.

◆ on_actionUpdate_triggered

void MainWindow::on_actionUpdate_triggered ( )
privateslot

Definition at line 507 of file mainwindow.cpp.

◆ on_actionUser_manual_triggered

void MainWindow::on_actionUser_manual_triggered ( )
privateslot

Definition at line 1668 of file mainwindow.cpp.

◆ on_actionViewSplit_triggered

void MainWindow::on_actionViewSplit_triggered ( )
privateslot

Definition at line 480 of file mainwindow.cpp.

◆ on_actionViewTab_triggered

void MainWindow::on_actionViewTab_triggered ( )
privateslot

Definition at line 472 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 1257 of file mainwindow.cpp.

◆ SaveOperateLasterClose()

int MainWindow::SaveOperateLasterClose ( )
private

Definition at line 1341 of file mainwindow.cpp.

◆ SetSecureLevel()

void MainWindow::SetSecureLevel ( COperate o)
private

Definition at line 1096 of file mainwindow.cpp.

◆ SetStatsVisible()

void MainWindow::SetStatsVisible ( bool  visible)
private

Definition at line 1642 of file mainwindow.cpp.

◆ SetView()

void MainWindow::SetView ( CView pView)
private

Definition at line 436 of file mainwindow.cpp.

◆ slotCloseView

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

[MainWindow slotRunning]

Definition at line 1009 of file mainwindow.cpp.

◆ slotCurrentViewChanged

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

Definition at line 654 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 747 of file mainwindow.cpp.

◆ slotEnableSystemTrayIcon

void MainWindow::slotEnableSystemTrayIcon ( )
privateslot

Definition at line 1604 of file mainwindow.cpp.

◆ slotError

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

Definition at line 1147 of file mainwindow.cpp.

◆ slotFinished

void MainWindow::slotFinished ( )
privateslot

Definition at line 1043 of file mainwindow.cpp.

◆ slotInformation

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

Show information.

Parameters
szInfo
See also
COperate::sigInformation()

Definition at line 1174 of file mainwindow.cpp.

◆ slotInitial()

void MainWindow::slotInitial ( )

For time-consuming operations.

Definition at line 395 of file mainwindow.cpp.

◆ slotLoadOperateMenu

void MainWindow::slotLoadOperateMenu ( )
privateslot

Definition at line 696 of file mainwindow.cpp.

◆ slotMenuActivity

void MainWindow::slotMenuActivity ( )
privateslot

Definition at line 686 of file mainwindow.cpp.

◆ slotOpenFile

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

Definition at line 808 of file mainwindow.cpp.

◆ slotOperateChanged

void MainWindow::slotOperateChanged ( COperate o)
privateslot

Definition at line 647 of file mainwindow.cpp.

◆ slotRunning

void MainWindow::slotRunning ( )
privateslot

[MainWindow slotRunning]

When connected. enable accept keyboard and mouse event in view

Definition at line 973 of file mainwindow.cpp.

◆ slotShortCut

void MainWindow::slotShortCut ( )
privateslot

Definition at line 1440 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 1153 of file mainwindow.cpp.

◆ slotSignalConnected

void MainWindow::slotSignalConnected ( )
privateslot

Definition at line 1113 of file mainwindow.cpp.

◆ slotSignalDisconnected

void MainWindow::slotSignalDisconnected ( )
privateslot

Definition at line 1122 of file mainwindow.cpp.

◆ slotSignalError

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

Definition at line 1131 of file mainwindow.cpp.

◆ slotSignalPushButtonClicked

void MainWindow::slotSignalPushButtonClicked ( bool  checked)
privateslot

Definition at line 1137 of file mainwindow.cpp.

◆ slotStart

void MainWindow::slotStart ( )
privateslot

Definition at line 840 of file mainwindow.cpp.

◆ slotStartByType

void MainWindow::slotStartByType ( )
privateslot

Definition at line 1242 of file mainwindow.cpp.

◆ slotStatusMessage

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

Definition at line 1179 of file mainwindow.cpp.

◆ slotStop

void MainWindow::slotStop ( )
privateslot

Definition at line 1033 of file mainwindow.cpp.

◆ slotSystemTrayIconActivated

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

Definition at line 1520 of file mainwindow.cpp.

◆ slotSystemTrayIconTypeChanged

void MainWindow::slotSystemTrayIconTypeChanged ( )
privateslot

Definition at line 1542 of file mainwindow.cpp.

◆ slotTimeOut

void MainWindow::slotTimeOut ( )
privateslot

Definition at line 1615 of file mainwindow.cpp.

◆ slotUpdateName [1/2]

void MainWindow::slotUpdateName ( )
privateslot

Definition at line 1202 of file mainwindow.cpp.

◆ slotUpdateName [2/2]

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

Definition at line 1213 of file mainwindow.cpp.

◆ slotUpdateParameters

void MainWindow::slotUpdateParameters ( COperate pOperate)
privateslot

Definition at line 786 of file mainwindow.cpp.

◆ slotViewerFocusIn

void MainWindow::slotViewerFocusIn ( QWidget *  pView)
privateslot

Definition at line 638 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 864 of file mainwindow.cpp.

◆ StartTimer()

void MainWindow::StartTimer ( )
private

Definition at line 1652 of file mainwindow.cpp.

Member Data Documentation

◆ CFrmFullScreenToolBar

friend MainWindow::CFrmFullScreenToolBar
private

Definition at line 193 of file mainwindow.h.

◆ m_DragStartPosition

QPoint MainWindow::m_DragStartPosition
private

Definition at line 244 of file mainwindow.h.

◆ m_FullState

struct _FullState MainWindow::m_FullState
private

Definition at line 191 of file mainwindow.h.

◆ m_Manager

CManager MainWindow::m_Manager
private

Definition at line 71 of file mainwindow.h.

◆ m_MenuStartByType

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

Definition at line 73 of file mainwindow.h.

◆ m_Operates

QVector<COperate*> MainWindow::m_Operates
private

Definition at line 72 of file mainwindow.h.

◆ m_pActionOperateMenu

QAction* MainWindow::m_pActionOperateMenu

Definition at line 87 of file mainwindow.h.

◆ m_pActionTBOperate

QAction* MainWindow::m_pActionTBOperate

Definition at line 88 of file mainwindow.h.

◆ m_Parameter

CParameterApp MainWindow::m_Parameter
private

Definition at line 236 of file mainwindow.h.

◆ m_pDockActive

QDockWidget* MainWindow::m_pDockActive
private

Definition at line 225 of file mainwindow.h.

◆ m_pDockFavorite

QDockWidget* MainWindow::m_pDockFavorite
private

Definition at line 230 of file mainwindow.h.

◆ m_pDockListRecent

QDockWidget* MainWindow::m_pDockListRecent
private

Definition at line 219 of file mainwindow.h.

◆ m_pFavoriteView

CFavoriteView* MainWindow::m_pFavoriteView
private

Definition at line 231 of file mainwindow.h.

◆ m_pFrmActive

CFrmActive* MainWindow::m_pFrmActive
private

Definition at line 226 of file mainwindow.h.

◆ m_pFullScreenToolBar

CFrmFullScreenToolBar* MainWindow::m_pFullScreenToolBar
private

Definition at line 192 of file mainwindow.h.

◆ m_pListRecent

CFrmListRecent* MainWindow::m_pListRecent
private

Definition at line 220 of file mainwindow.h.

◆ m_pMenuActivityGroup

QActionGroup* MainWindow::m_pMenuActivityGroup
private

Definition at line 78 of file mainwindow.h.

◆ m_pRecentMenu

RabbitCommon::CRecentMenu* MainWindow::m_pRecentMenu
private

Definition at line 215 of file mainwindow.h.

◆ m_pSecureLevel

QLabel* MainWindow::m_pSecureLevel
private

Definition at line 151 of file mainwindow.h.

◆ m_pSignalStatus

QPushButton* MainWindow::m_pSignalStatus
private

Definition at line 156 of file mainwindow.h.

◆ m_ptbMenuActivity

QToolButton* MainWindow::m_ptbMenuActivity
private

Definition at line 79 of file mainwindow.h.

◆ m_pTBOperate

QToolButton* MainWindow::m_pTBOperate

Definition at line 89 of file mainwindow.h.

◆ m_pToolBarMenuAction

QAction* MainWindow::m_pToolBarMenuAction
private

Definition at line 171 of file mainwindow.h.

◆ m_pView

CView* MainWindow::m_pView
private

Definition at line 170 of file mainwindow.h.

◆ m_ReceivesRate

QLabel MainWindow::m_ReceivesRate
private

Definition at line 145 of file mainwindow.h.

◆ m_SendRate

QLabel MainWindow::m_SendRate
private

Definition at line 144 of file mainwindow.h.

◆ m_StatusBarMessage

QLabel MainWindow::m_StatusBarMessage
private

Definition at line 135 of file mainwindow.h.

◆ m_Timer

QTimer MainWindow::m_Timer
private

Definition at line 141 of file mainwindow.h.

◆ m_TotalReceives

QLabel MainWindow::m_TotalReceives
private

Definition at line 143 of file mainwindow.h.

◆ m_TotalSends

QLabel MainWindow::m_TotalSends
private

Definition at line 142 of file mainwindow.h.

◆ m_TrayIcon

QSharedPointer<QSystemTrayIcon> MainWindow::m_TrayIcon
private

Definition at line 255 of file mainwindow.h.

◆ ui

Ui::MainWindow * MainWindow::ui
private

Definition at line 169 of file mainwindow.h.


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