Rabbit Remote Control 0.0.34
Loading...
Searching...
No Matches
Classes | Signals | Public Member Functions | Public Attributes | Protected Member Functions | 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:
CClient::Handle

Classes

struct  _FullState
 

Signals

void sigFullScreen ()
 
void sigShowNormal ()
 
void sigConnecterMenuChanged (QAction *pAction)
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
virtual int onProcess (const QString &id, CPluginClient *pPlug) override
 Process plugins.
 
 MainWindow (QWidget *parent=nullptr)
 

Public Attributes

QAction * m_pActionConnecterMenu
 
CParameterApp m_Parameter
 

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 Slots

void on_actionExit_E_triggered ()
 
void on_actionAbout_triggered ()
 
void on_actionUpdate_triggered ()
 
void on_actionSend_ctl_alt_del_triggered ()
 
void slotUpdateParameters (CConnecter *pConnecter)
 
void on_actionClone_triggered ()
 
void on_actionOpenRRCFile_triggered ()
 
void slotOpenFile (const QString &szFile, bool bOpenSettings=false)
 
void slotConnect ()
 
void slotConnected ()
 [MainWindow slotConnected]
 
void slotLoadConnecterMenu ()
 
void slotCustomContextMenuRequested (const QPoint &pos)
 
void on_actionDisconnect_D_triggered ()
 
void slotCloseView (const QWidget *pView)
 [MainWindow slotConnected]
 
void slotDisconnect ()
 
void slotDisconnected ()
 
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 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 slotConnecterChanged (CConnecter *c)
 
void on_actionViewTab_triggered ()
 
void on_actionViewSplit_triggered ()
 
void on_actionOpenListRecentConnections_triggered ()
 
void on_actionAdd_to_favorite_triggered ()
 
void slotSystemTrayIconActivated (QSystemTrayIcon::ActivationReason reason)
 
void slotSystemTrayIconTypeChanged ()
 
void slotEnableSystemTrayIcon ()
 
void on_pbCapture_clicked ()
 

Private Member Functions

int Connect (CConnecter *c, bool set, QString szFile=QString())
 Connect.
 
int LoadConnectLasterClose ()
 
int SaveConnectLasterClose ()
 
void EnableMenu (bool bEnable)
 
void SetView (CView *pView)
 

Private Attributes

CClient m_Client
 
QVector< CConnecter * > m_Connecters
 
QAction * m_pActionConnect
 
QPushButton * m_pSignalStatus
 
Ui::MainWindow * ui
 
CViewm_pView
 
struct _FullState m_FullState
 
CFrmFullScreenToolBarm_pFullScreenToolBar
 
friend CFrmFullScreenToolBar
 
RabbitCommon::CRecentMenu * m_pRecentMenu
 
QDockWidget * m_pDockListRecentConnects
 
QDockWidget * m_pDockListConnecters
 
CFrmConnectersm_pFrmConnecters
 
QDockWidget * m_pDockFavorite
 
CFavoriteViewm_pFavoriteView
 
QPoint m_DragStartPosition
 
QSharedPointer< QSystemTrayIcon > m_TrayIcon
 

Detailed Description

The MainWindow class.

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

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual

Definition at line 954 of file mainwindow.cpp.

◆ Connect()

int MainWindow::Connect ( CConnecter c,
bool  set,
QString  szFile = QString() 
)
private

Connect.

Parameters
pCConnecter 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 678 of file mainwindow.cpp.

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Definition at line 1178 of file mainwindow.cpp.

◆ dragMoveEvent()

void MainWindow::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Definition at line 1189 of file mainwindow.cpp.

◆ dropEvent()

void MainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Definition at line 1194 of file mainwindow.cpp.

◆ EnableMenu()

void MainWindow::EnableMenu ( bool  bEnable)
private

Definition at line 523 of file mainwindow.cpp.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 589 of file mainwindow.cpp.

◆ LoadConnectLasterClose()

int MainWindow::LoadConnectLasterClose ( )
private

Definition at line 994 of file mainwindow.cpp.

◆ on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 347 of file mainwindow.cpp.

◆ on_actionAdd_to_favorite_triggered

void MainWindow::on_actionAdd_to_favorite_triggered ( )
privateslot

Definition at line 1165 of file mainwindow.cpp.

◆ on_actionClone_triggered

void MainWindow::on_actionClone_triggered ( )
privateslot

Definition at line 606 of file mainwindow.cpp.

◆ on_actionDisconnect_D_triggered

void MainWindow::on_actionDisconnect_D_triggered ( )
privateslot

Definition at line 811 of file mainwindow.cpp.

◆ on_actionExit_E_triggered

void MainWindow::on_actionExit_E_triggered ( )
privateslot

Definition at line 584 of file mainwindow.cpp.

◆ on_actionFull_screen_F_triggered

void MainWindow::on_actionFull_screen_F_triggered ( )
privateslot

Definition at line 383 of file mainwindow.cpp.

◆ on_actionMain_menu_bar_M_toggled

void MainWindow::on_actionMain_menu_bar_M_toggled ( bool  checked)
privateslot

Definition at line 1052 of file mainwindow.cpp.

◆ on_actionOpenListRecentConnections_triggered

void MainWindow::on_actionOpenListRecentConnections_triggered ( )
privateslot

Definition at line 1144 of file mainwindow.cpp.

◆ on_actionOpenRRCFile_triggered

void MainWindow::on_actionOpenRRCFile_triggered ( )
privateslot

Definition at line 636 of file mainwindow.cpp.

◆ on_actionSend_ctl_alt_del_triggered

void MainWindow::on_actionSend_ctl_alt_del_triggered ( )
privateslot

Definition at line 1033 of file mainwindow.cpp.

◆ on_actionSettings_triggered

void MainWindow::on_actionSettings_triggered ( )
privateslot

Definition at line 1110 of file mainwindow.cpp.

◆ on_actionStatus_bar_S_toggled

void MainWindow::on_actionStatus_bar_S_toggled ( bool  checked)
privateslot

Definition at line 1103 of file mainwindow.cpp.

◆ on_actionTabBar_B_toggled

void MainWindow::on_actionTabBar_B_toggled ( bool  bShow)
privateslot

Definition at line 1039 of file mainwindow.cpp.

◆ on_actionToolBar_T_toggled

void MainWindow::on_actionToolBar_T_toggled ( bool  checked)
privateslot

Definition at line 1083 of file mainwindow.cpp.

◆ on_actionUpdate_triggered

void MainWindow::on_actionUpdate_triggered ( )
privateslot

Definition at line 366 of file mainwindow.cpp.

◆ on_actionViewSplit_triggered

void MainWindow::on_actionViewSplit_triggered ( )
privateslot

Definition at line 339 of file mainwindow.cpp.

◆ on_actionViewTab_triggered

void MainWindow::on_actionViewTab_triggered ( )
privateslot

Definition at line 331 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,
CPluginClient pPlug 
)
overridevirtual

Process plugins.

Parameters
idplugin id
pPlugCPluginClient pointer

Implements CClient::Handle.

Definition at line 939 of file mainwindow.cpp.

◆ SaveConnectLasterClose()

int MainWindow::SaveConnectLasterClose ( )
private

Definition at line 1016 of file mainwindow.cpp.

◆ SetView()

void MainWindow::SetView ( CView pView)
private

Definition at line 296 of file mainwindow.cpp.

◆ slotCloseView

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

[MainWindow slotConnected]

Definition at line 796 of file mainwindow.cpp.

◆ slotConnect

void MainWindow::slotConnect ( )
privateslot

Definition at line 655 of file mainwindow.cpp.

◆ slotConnected

void MainWindow::slotConnected ( )
privateslot

[MainWindow slotConnected]

When connected. enable accept keyboard and mouse event in view

Definition at line 767 of file mainwindow.cpp.

◆ slotConnecterChanged

void MainWindow::slotConnecterChanged ( CConnecter c)
privateslot

Definition at line 507 of file mainwindow.cpp.

◆ slotCurrentViewChanged

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

Definition at line 514 of file mainwindow.cpp.

◆ slotCustomContextMenuRequested

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

Definition at line 563 of file mainwindow.cpp.

◆ slotDisconnect

void MainWindow::slotDisconnect ( )
privateslot

Definition at line 820 of file mainwindow.cpp.

◆ slotDisconnected

void MainWindow::slotDisconnected ( )
privateslot

Definition at line 830 of file mainwindow.cpp.

◆ slotEnableSystemTrayIcon

void MainWindow::slotEnableSystemTrayIcon ( )
privateslot

Definition at line 1291 of file mainwindow.cpp.

◆ slotError

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

Definition at line 888 of file mainwindow.cpp.

◆ slotInformation

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

Show information.

Parameters
szInfo
See also
CConnecter::sigInformation()

Definition at line 915 of file mainwindow.cpp.

◆ slotLoadConnecterMenu

void MainWindow::slotLoadConnecterMenu ( )
privateslot

Definition at line 532 of file mainwindow.cpp.

◆ slotOpenFile

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

Definition at line 623 of file mainwindow.cpp.

◆ slotShortCut

void MainWindow::slotShortCut ( )
privateslot

Definition at line 1121 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
CConnecter::sigShowMessageBox()

Definition at line 894 of file mainwindow.cpp.

◆ slotSignalConnected

void MainWindow::slotSignalConnected ( )
privateslot

Definition at line 854 of file mainwindow.cpp.

◆ slotSignalDisconnected

void MainWindow::slotSignalDisconnected ( )
privateslot

Definition at line 863 of file mainwindow.cpp.

◆ slotSignalError

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

Definition at line 872 of file mainwindow.cpp.

◆ slotSignalPushButtonClicked

void MainWindow::slotSignalPushButtonClicked ( bool  checked)
privateslot

Definition at line 878 of file mainwindow.cpp.

◆ slotSystemTrayIconActivated

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

Definition at line 1207 of file mainwindow.cpp.

◆ slotSystemTrayIconTypeChanged

void MainWindow::slotSystemTrayIconTypeChanged ( )
privateslot

Definition at line 1229 of file mainwindow.cpp.

◆ slotUpdateName [1/2]

void MainWindow::slotUpdateName ( )
privateslot

Definition at line 920 of file mainwindow.cpp.

◆ slotUpdateName [2/2]

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

Definition at line 931 of file mainwindow.cpp.

◆ slotUpdateParameters

void MainWindow::slotUpdateParameters ( CConnecter pConnecter)
privateslot

Definition at line 601 of file mainwindow.cpp.

◆ slotViewerFocusIn

void MainWindow::slotViewerFocusIn ( QWidget *  pView)
privateslot

Definition at line 498 of file mainwindow.cpp.

Member Data Documentation

◆ CFrmFullScreenToolBar

friend MainWindow::CFrmFullScreenToolBar
private

Definition at line 151 of file mainwindow.h.

◆ m_Client

CClient MainWindow::m_Client
private

Definition at line 65 of file mainwindow.h.

◆ m_Connecters

QVector<CConnecter*> MainWindow::m_Connecters
private

Definition at line 66 of file mainwindow.h.

◆ m_DragStartPosition

QPoint MainWindow::m_DragStartPosition
private

Definition at line 195 of file mainwindow.h.

◆ m_FullState

struct _FullState MainWindow::m_FullState
private

Definition at line 149 of file mainwindow.h.

◆ m_pActionConnect

QAction* MainWindow::m_pActionConnect
private

Definition at line 67 of file mainwindow.h.

◆ m_pActionConnecterMenu

QAction* MainWindow::m_pActionConnecterMenu

Definition at line 76 of file mainwindow.h.

◆ m_Parameter

CParameterApp MainWindow::m_Parameter

Definition at line 187 of file mainwindow.h.

◆ m_pDockFavorite

QDockWidget* MainWindow::m_pDockFavorite
private

Definition at line 181 of file mainwindow.h.

◆ m_pDockListConnecters

QDockWidget* MainWindow::m_pDockListConnecters
private

Definition at line 176 of file mainwindow.h.

◆ m_pDockListRecentConnects

QDockWidget* MainWindow::m_pDockListRecentConnects
private

Definition at line 171 of file mainwindow.h.

◆ m_pFavoriteView

CFavoriteView* MainWindow::m_pFavoriteView
private

Definition at line 182 of file mainwindow.h.

◆ m_pFrmConnecters

CFrmConnecters* MainWindow::m_pFrmConnecters
private

Definition at line 177 of file mainwindow.h.

◆ m_pFullScreenToolBar

CFrmFullScreenToolBar* MainWindow::m_pFullScreenToolBar
private

Definition at line 150 of file mainwindow.h.

◆ m_pRecentMenu

RabbitCommon::CRecentMenu* MainWindow::m_pRecentMenu
private

Definition at line 167 of file mainwindow.h.

◆ m_pSignalStatus

QPushButton* MainWindow::m_pSignalStatus
private

Definition at line 114 of file mainwindow.h.

◆ m_pView

CView* MainWindow::m_pView
private

Definition at line 128 of file mainwindow.h.

◆ m_TrayIcon

QSharedPointer<QSystemTrayIcon> MainWindow::m_TrayIcon
private

Definition at line 204 of file mainwindow.h.

◆ ui

Ui::MainWindow * MainWindow::ui
private

Definition at line 127 of file mainwindow.h.


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