Rabbit Remote Control 0.0.35
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
 

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 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)
 MainWindow::slotCustomContextMenuRequested.
 
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
 
CParameterApp m_Parameter
 
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 291 of file mainwindow.cpp.

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotectedvirtual

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

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

Definition at line 1176 of file mainwindow.cpp.

◆ dragMoveEvent()

void MainWindow::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual

Definition at line 1187 of file mainwindow.cpp.

◆ dropEvent()

void MainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

Definition at line 1192 of file mainwindow.cpp.

◆ EnableMenu()

void MainWindow::EnableMenu ( bool  bEnable)
private

Definition at line 519 of file mainwindow.cpp.

◆ keyReleaseEvent()

void MainWindow::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

Definition at line 593 of file mainwindow.cpp.

◆ LoadConnectLasterClose()

int MainWindow::LoadConnectLasterClose ( )
private

Definition at line 999 of file mainwindow.cpp.

◆ on_actionAbout_triggered

void MainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 350 of file mainwindow.cpp.

◆ on_actionAdd_to_favorite_triggered

void MainWindow::on_actionAdd_to_favorite_triggered ( )
privateslot

Definition at line 1163 of file mainwindow.cpp.

◆ on_actionClone_triggered

void MainWindow::on_actionClone_triggered ( )
privateslot

Definition at line 610 of file mainwindow.cpp.

◆ on_actionDisconnect_D_triggered

void MainWindow::on_actionDisconnect_D_triggered ( )
privateslot

Definition at line 815 of file mainwindow.cpp.

◆ on_actionExit_E_triggered

void MainWindow::on_actionExit_E_triggered ( )
privateslot

Definition at line 588 of file mainwindow.cpp.

◆ on_actionFull_screen_F_triggered

void MainWindow::on_actionFull_screen_F_triggered ( )
privateslot

Definition at line 386 of file mainwindow.cpp.

◆ on_actionMain_menu_bar_M_toggled

void MainWindow::on_actionMain_menu_bar_M_toggled ( bool  checked)
privateslot

Definition at line 1050 of file mainwindow.cpp.

◆ on_actionOpenListRecentConnections_triggered

void MainWindow::on_actionOpenListRecentConnections_triggered ( )
privateslot

Definition at line 1142 of file mainwindow.cpp.

◆ on_actionOpenRRCFile_triggered

void MainWindow::on_actionOpenRRCFile_triggered ( )
privateslot

Definition at line 640 of file mainwindow.cpp.

◆ on_actionSettings_triggered

void MainWindow::on_actionSettings_triggered ( )
privateslot

Definition at line 1108 of file mainwindow.cpp.

◆ on_actionStatus_bar_S_toggled

void MainWindow::on_actionStatus_bar_S_toggled ( bool  checked)
privateslot

Definition at line 1101 of file mainwindow.cpp.

◆ on_actionTabBar_B_toggled

void MainWindow::on_actionTabBar_B_toggled ( bool  bShow)
privateslot

Definition at line 1038 of file mainwindow.cpp.

◆ on_actionToolBar_T_toggled

void MainWindow::on_actionToolBar_T_toggled ( bool  checked)
privateslot

Definition at line 1081 of file mainwindow.cpp.

◆ on_actionUpdate_triggered

void MainWindow::on_actionUpdate_triggered ( )
privateslot

Definition at line 369 of file mainwindow.cpp.

◆ on_actionViewSplit_triggered

void MainWindow::on_actionViewSplit_triggered ( )
privateslot

Definition at line 342 of file mainwindow.cpp.

◆ on_actionViewTab_triggered

void MainWindow::on_actionViewTab_triggered ( )
privateslot

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

◆ SaveConnectLasterClose()

int MainWindow::SaveConnectLasterClose ( )
private

Definition at line 1021 of file mainwindow.cpp.

◆ SetView()

void MainWindow::SetView ( CView pView)
private

Definition at line 298 of file mainwindow.cpp.

◆ slotCloseView

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

[MainWindow slotConnected]

Definition at line 800 of file mainwindow.cpp.

◆ slotConnect

void MainWindow::slotConnect ( )
privateslot

Definition at line 659 of file mainwindow.cpp.

◆ slotConnected

void MainWindow::slotConnected ( )
privateslot

[MainWindow slotConnected]

When connected. enable accept keyboard and mouse event in view

Definition at line 771 of file mainwindow.cpp.

◆ slotConnecterChanged

void MainWindow::slotConnecterChanged ( CConnecter c)
privateslot

Definition at line 503 of file mainwindow.cpp.

◆ slotCurrentViewChanged

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

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

◆ slotDisconnect

void MainWindow::slotDisconnect ( )
privateslot

Definition at line 824 of file mainwindow.cpp.

◆ slotDisconnected

void MainWindow::slotDisconnected ( )
privateslot

Definition at line 834 of file mainwindow.cpp.

◆ slotEnableSystemTrayIcon

void MainWindow::slotEnableSystemTrayIcon ( )
privateslot

Definition at line 1289 of file mainwindow.cpp.

◆ slotError

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

Definition at line 892 of file mainwindow.cpp.

◆ slotInformation

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

Show information.

Parameters
szInfo
See also
CConnecter::sigInformation()

Definition at line 919 of file mainwindow.cpp.

◆ slotLoadConnecterMenu

void MainWindow::slotLoadConnecterMenu ( )
privateslot

Definition at line 529 of file mainwindow.cpp.

◆ slotOpenFile

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

Definition at line 627 of file mainwindow.cpp.

◆ slotShortCut

void MainWindow::slotShortCut ( )
privateslot

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

◆ slotSignalConnected

void MainWindow::slotSignalConnected ( )
privateslot

Definition at line 858 of file mainwindow.cpp.

◆ slotSignalDisconnected

void MainWindow::slotSignalDisconnected ( )
privateslot

Definition at line 867 of file mainwindow.cpp.

◆ slotSignalError

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

Definition at line 876 of file mainwindow.cpp.

◆ slotSignalPushButtonClicked

void MainWindow::slotSignalPushButtonClicked ( bool  checked)
privateslot

Definition at line 882 of file mainwindow.cpp.

◆ slotSystemTrayIconActivated

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

Definition at line 1205 of file mainwindow.cpp.

◆ slotSystemTrayIconTypeChanged

void MainWindow::slotSystemTrayIconTypeChanged ( )
privateslot

Definition at line 1227 of file mainwindow.cpp.

◆ slotUpdateName [1/2]

void MainWindow::slotUpdateName ( )
privateslot

Definition at line 924 of file mainwindow.cpp.

◆ slotUpdateName [2/2]

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

Definition at line 935 of file mainwindow.cpp.

◆ slotUpdateParameters

void MainWindow::slotUpdateParameters ( CConnecter pConnecter)
privateslot

Definition at line 605 of file mainwindow.cpp.

◆ slotViewerFocusIn

void MainWindow::slotViewerFocusIn ( QWidget *  pView)
privateslot

Definition at line 494 of file mainwindow.cpp.

Member Data Documentation

◆ CFrmFullScreenToolBar

friend MainWindow::CFrmFullScreenToolBar
private

Definition at line 149 of file mainwindow.h.

◆ m_Client

CClient MainWindow::m_Client
private

Definition at line 63 of file mainwindow.h.

◆ m_Connecters

QVector<CConnecter*> MainWindow::m_Connecters
private

Definition at line 64 of file mainwindow.h.

◆ m_DragStartPosition

QPoint MainWindow::m_DragStartPosition
private

Definition at line 193 of file mainwindow.h.

◆ m_FullState

struct _FullState MainWindow::m_FullState
private

Definition at line 147 of file mainwindow.h.

◆ m_pActionConnect

QAction* MainWindow::m_pActionConnect
private

Definition at line 65 of file mainwindow.h.

◆ m_pActionConnecterMenu

QAction* MainWindow::m_pActionConnecterMenu

Definition at line 74 of file mainwindow.h.

◆ m_Parameter

CParameterApp MainWindow::m_Parameter
private

Definition at line 185 of file mainwindow.h.

◆ m_pDockFavorite

QDockWidget* MainWindow::m_pDockFavorite
private

Definition at line 179 of file mainwindow.h.

◆ m_pDockListConnecters

QDockWidget* MainWindow::m_pDockListConnecters
private

Definition at line 174 of file mainwindow.h.

◆ m_pDockListRecentConnects

QDockWidget* MainWindow::m_pDockListRecentConnects
private

Definition at line 169 of file mainwindow.h.

◆ m_pFavoriteView

CFavoriteView* MainWindow::m_pFavoriteView
private

Definition at line 180 of file mainwindow.h.

◆ m_pFrmConnecters

CFrmConnecters* MainWindow::m_pFrmConnecters
private

Definition at line 175 of file mainwindow.h.

◆ m_pFullScreenToolBar

CFrmFullScreenToolBar* MainWindow::m_pFullScreenToolBar
private

Definition at line 148 of file mainwindow.h.

◆ m_pRecentMenu

RabbitCommon::CRecentMenu* MainWindow::m_pRecentMenu
private

Definition at line 165 of file mainwindow.h.

◆ m_pSignalStatus

QPushButton* MainWindow::m_pSignalStatus
private

Definition at line 112 of file mainwindow.h.

◆ m_pView

CView* MainWindow::m_pView
private

Definition at line 126 of file mainwindow.h.

◆ m_TrayIcon

QSharedPointer<QSystemTrayIcon> MainWindow::m_TrayIcon
private

Definition at line 202 of file mainwindow.h.

◆ ui

Ui::MainWindow * MainWindow::ui
private

Definition at line 125 of file mainwindow.h.


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