39 explicit MainWindow(QWidget *parent =
nullptr);
46 void sigFullScreen(
bool bFullScreen);
50 void on_actionExit_E_triggered();
51 void on_actionAbout_triggered();
52 void on_actionUpdate_triggered();
55 void slotUpdateParameters(
COperate* pOperate);
56 void on_actionClone_triggered();
57 void on_actionOpenRRCFile_triggered();
58 void slotOpenFile(
const QString& szFile,
bool bOpenSettings =
false);
62 int Start(
COperate* pOperate,
bool set, QString szFile = QString());
63 int LoadOperateLasterClose();
64 int SaveOperateLasterClose();
67 [[nodiscard]] QAction* GetStartAction(QMenu *pMenu,
CPlugin* pPlug);
69 void slotStartByType();
72 QVector<COperate*> m_Operates;
73 QMap<CPlugin::TYPE, QMenu*> m_MenuStartByType;
76 void slotMenuActivity();
78 QActionGroup* m_pMenuActivityGroup;
79 QToolButton* m_ptbMenuActivity;
81 void slotLoadOperateMenu();
84 void sigOperateMenuChanged(QAction* pAction);
87 QAction* m_pActionOperateMenu;
88 QAction* m_pActionTBOperate;
89 QToolButton* m_pTBOperate;
93 void on_actionStop_triggered();
97 void slotError(
const int nError,
const QString &szInfo);
109 const QMessageBox::Icon& icon);
119 void slotUpdateName(
const QString& szName);
120 void slotUpdateName();
122 void on_actionSettings_triggered();
127 enum class MessageLevel {
133 void slotStatusMessage(QString szMessage, MessageLevel level = MessageLevel::Normal);
135 QLabel m_StatusBarMessage;
143 QLabel m_TotalReceives;
145 QLabel m_ReceivesRate;
146 void SetStatsVisible(
bool visible);
151 QLabel* m_pSecureLevel;
156 QPushButton* m_pSignalStatus;
158 void slotSignalConnected();
159 void slotSignalDisconnected();
160 void slotSignalError(
const int nError,
const QString &szInfo);
161 void slotSignalPushButtonClicked(
bool checked);
164 virtual void keyReleaseEvent(QKeyEvent *event)
override;
165 virtual void closeEvent(QCloseEvent *event)
override;
171 QAction* m_pToolBarMenuAction;
172 void EnableMenu(
bool bEnable);
175 void on_actionTabBar_B_toggled(
bool bShow);
176 void on_actionMain_menu_bar_M_toggled(
bool checked);
177 void on_actionToolBar_T_toggled(
bool checked);
178 void on_actionStatus_bar_S_toggled(
bool checked);
195 void on_actionFull_screen_F_triggered();
199 void slotCurrentViewChanged(
const QWidget* pView);
200 void slotViewerFocusIn(QWidget* pView);
201 void slotOperateChanged(
COperate* o);
202 void on_actionViewTab_triggered();
203 void on_actionViewSplit_triggered();
205 void SetView(
CView* pView);
209 void on_actionLayoutDefault_triggered();
210 void on_actionLayoutSimple_triggered();
211 void on_actionLayoutMinimalism_triggered();
215 RabbitCommon::CRecentMenu* m_pRecentMenu;
219 QDockWidget* m_pDockListRecent;
222 void on_actionOpenListRecent_triggered();
225 QDockWidget* m_pDockActive;
230 QDockWidget* m_pDockFavorite;
233 void on_actionAdd_to_favorite_triggered();
240 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
241 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
242 virtual void dropEvent(QDropEvent *event)
override;
244 QPoint m_DragStartPosition;
248 void slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
249 void slotSystemTrayIconTypeChanged();
250 void slotEnableSystemTrayIcon();
252 void on_actionUser_manual_triggered();
255 QSharedPointer<QSystemTrayIcon> m_TrayIcon;
int Start(COperate *pOperate, bool set, QString szFile=QString())
Start
virtual int onProcess(const QString &id, CPlugin *pPlugin) override
Process plugins
void slotInitial()
For time-consuming operations
void slotInformation(const QString &szInfo)
显示信息。暂时在状态栏显示。
virtual void slotShowMessageBox(const QString &title, const QString &message, const QMessageBox::Icon &icon)
用消息对话框(QMessageBox)显示信息
void slotCloseView(const QWidget *pView)
[MainWindow slotRunning]
void slotCustomContextMenuRequested(const QPoint &pos)
MainWindow::slotCustomContextMenuRequested