Rabbit Remote Control 0.0.30
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 on_actionCurrent_connect_parameters_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 on_actionOpenListConnections_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 *p, bool set, QString szFile=QString())
 Connect.
 
int LoadConnectLasterClose ()
 
int SaveConnectLasterClose ()
 
void EnableMenu (bool bEnable)
 

Private Attributes

CClient m_Client
 
QMap< CConnecter *, QString > m_ConfigureFiles
 
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_pDockListConnects
 
QDockWidget * m_pDockFavorite
 
CFavoriteViewm_pFavoriteView
 
QPoint m_DragStartPosition
 
QSharedPointer< QSystemTrayIcon > m_TrayIcon
 

Detailed Description

The MainWindow class.

Definition at line 31 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

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

Definition at line 48 of file mainwindow.cpp.

◆ ~MainWindow()

MainWindow::~MainWindow ( )
overridevirtual

Definition at line 246 of file mainwindow.cpp.

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual

Definition at line 828 of file mainwindow.cpp.

◆ Connect()

int MainWindow::Connect ( CConnecter p,
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 571 of file mainwindow.cpp.

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Definition at line 1059 of file mainwindow.cpp.

◆ dragMoveEvent()

void MainWindow::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Definition at line 1070 of file mainwindow.cpp.

◆ dropEvent()

void MainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Definition at line 1075 of file mainwindow.cpp.

◆ EnableMenu()

void MainWindow::EnableMenu ( bool  bEnable)
private

Definition at line 410 of file mainwindow.cpp.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 477 of file mainwindow.cpp.

◆ LoadConnectLasterClose()

int MainWindow::LoadConnectLasterClose ( )
private

Definition at line 862 of file mainwindow.cpp.

◆ on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 253 of file mainwindow.cpp.

◆ on_actionAdd_to_favorite_triggered

void MainWindow::on_actionAdd_to_favorite_triggered ( )
privateslot

Definition at line 1043 of file mainwindow.cpp.

◆ on_actionClone_triggered

void MainWindow::on_actionClone_triggered ( )
privateslot

Definition at line 497 of file mainwindow.cpp.

◆ on_actionCurrent_connect_parameters_triggered

void MainWindow::on_actionCurrent_connect_parameters_triggered ( )
privateslot

Definition at line 1005 of file mainwindow.cpp.

◆ on_actionDisconnect_D_triggered

void MainWindow::on_actionDisconnect_D_triggered ( )
privateslot

Definition at line 692 of file mainwindow.cpp.

◆ on_actionExit_E_triggered

void MainWindow::on_actionExit_E_triggered ( )
privateslot

Definition at line 472 of file mainwindow.cpp.

◆ on_actionFull_screen_F_triggered

void MainWindow::on_actionFull_screen_F_triggered ( )
privateslot

Definition at line 289 of file mainwindow.cpp.

◆ on_actionMain_menu_bar_M_toggled

void MainWindow::on_actionMain_menu_bar_M_toggled ( bool  checked)
privateslot

Definition at line 917 of file mainwindow.cpp.

◆ on_actionOpenListConnections_triggered

void MainWindow::on_actionOpenListConnections_triggered ( )
privateslot

Definition at line 1023 of file mainwindow.cpp.

◆ on_actionOpenRRCFile_triggered

void MainWindow::on_actionOpenRRCFile_triggered ( )
privateslot

Definition at line 530 of file mainwindow.cpp.

◆ on_actionSend_ctl_alt_del_triggered

void MainWindow::on_actionSend_ctl_alt_del_triggered ( )
privateslot

Definition at line 901 of file mainwindow.cpp.

◆ on_actionSettings_triggered

void MainWindow::on_actionSettings_triggered ( )
privateslot

Definition at line 971 of file mainwindow.cpp.

◆ on_actionStatus_bar_S_toggled

void MainWindow::on_actionStatus_bar_S_toggled ( bool  checked)
privateslot

Definition at line 964 of file mainwindow.cpp.

◆ on_actionTabBar_B_toggled

void MainWindow::on_actionTabBar_B_toggled ( bool  bShow)
privateslot

Definition at line 907 of file mainwindow.cpp.

◆ on_actionToolBar_T_toggled

void MainWindow::on_actionToolBar_T_toggled ( bool  checked)
privateslot

Definition at line 946 of file mainwindow.cpp.

◆ on_actionUpdate_triggered

void MainWindow::on_actionUpdate_triggered ( )
privateslot

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

◆ SaveConnectLasterClose()

int MainWindow::SaveConnectLasterClose ( )
private

Definition at line 884 of file mainwindow.cpp.

◆ slotCloseView

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

[MainWindow slotConnected]

Definition at line 677 of file mainwindow.cpp.

◆ slotConnect

void MainWindow::slotConnect ( )
privateslot

Definition at line 548 of file mainwindow.cpp.

◆ slotConnected

void MainWindow::slotConnected ( )
privateslot

[MainWindow slotConnected]

When connected. enable accept keyboard and mouse event in view

Definition at line 652 of file mainwindow.cpp.

◆ slotCurrentViewChanged

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

Definition at line 401 of file mainwindow.cpp.

◆ slotCustomContextMenuRequested

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

Definition at line 451 of file mainwindow.cpp.

◆ slotDisconnect

void MainWindow::slotDisconnect ( )
privateslot

Definition at line 701 of file mainwindow.cpp.

◆ slotDisconnected

void MainWindow::slotDisconnected ( )
privateslot

Definition at line 711 of file mainwindow.cpp.

◆ slotEnableSystemTrayIcon

void MainWindow::slotEnableSystemTrayIcon ( )
privateslot

Definition at line 1172 of file mainwindow.cpp.

◆ slotError

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

Definition at line 762 of file mainwindow.cpp.

◆ slotInformation

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

Show information.

Parameters
szInfo
See also
CConnecter::sigInformation()

Definition at line 789 of file mainwindow.cpp.

◆ slotLoadConnecterMenu

void MainWindow::slotLoadConnecterMenu ( )
privateslot

Definition at line 420 of file mainwindow.cpp.

◆ slotOpenFile

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

Definition at line 517 of file mainwindow.cpp.

◆ slotShortCut

void MainWindow::slotShortCut ( )
privateslot

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

◆ slotSignalConnected

void MainWindow::slotSignalConnected ( )
privateslot

Definition at line 728 of file mainwindow.cpp.

◆ slotSignalDisconnected

void MainWindow::slotSignalDisconnected ( )
privateslot

Definition at line 737 of file mainwindow.cpp.

◆ slotSignalError

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

Definition at line 746 of file mainwindow.cpp.

◆ slotSignalPushButtonClicked

void MainWindow::slotSignalPushButtonClicked ( bool  checked)
privateslot

Definition at line 752 of file mainwindow.cpp.

◆ slotSystemTrayIconActivated

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

Definition at line 1088 of file mainwindow.cpp.

◆ slotSystemTrayIconTypeChanged

void MainWindow::slotSystemTrayIconTypeChanged ( )
privateslot

Definition at line 1110 of file mainwindow.cpp.

◆ slotUpdateName [1/2]

void MainWindow::slotUpdateName ( )
privateslot

Definition at line 794 of file mainwindow.cpp.

◆ slotUpdateName [2/2]

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

Definition at line 805 of file mainwindow.cpp.

◆ slotUpdateParameters

void MainWindow::slotUpdateParameters ( CConnecter pConnecter)
privateslot

Definition at line 489 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 64 of file mainwindow.h.

◆ m_ConfigureFiles

QMap<CConnecter*, QString> MainWindow::m_ConfigureFiles
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 183 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 175 of file mainwindow.h.

◆ m_pDockFavorite

QDockWidget* MainWindow::m_pDockFavorite
private

Definition at line 169 of file mainwindow.h.

◆ m_pDockListConnects

QDockWidget* MainWindow::m_pDockListConnects
private

Definition at line 163 of file mainwindow.h.

◆ m_pFavoriteView

CFavoriteView* MainWindow::m_pFavoriteView
private

Definition at line 170 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 159 of file mainwindow.h.

◆ m_pSignalStatus

QPushButton* MainWindow::m_pSignalStatus
private

Definition at line 115 of file mainwindow.h.

◆ m_pView

CView* MainWindow::m_pView
private

Definition at line 129 of file mainwindow.h.

◆ m_TrayIcon

QSharedPointer<QSystemTrayIcon> MainWindow::m_TrayIcon
private

Definition at line 192 of file mainwindow.h.

◆ ui

Ui::MainWindow * MainWindow::ui
private

Definition at line 128 of file mainwindow.h.


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