40 explicit MainWindow(QWidget *parent =
nullptr);
47 void sigFullScreen(
bool bFullScreen);
51 void on_actionExit_E_triggered();
52 void on_actionAbout_triggered();
53 void on_actionUpdate_triggered();
56 void slotUpdateParameters(
COperate* pOperate);
57 void on_actionClone_triggered();
58 void on_actionOpenRRCFile_triggered();
59 void slotOpenFile(
const QString& szFile,
bool bOpenSettings =
false);
63 Q_INVOKABLE
int Start(
COperate* pOperate,
bool set, QString szFile = QString());
64 int LoadOperateLasterClose();
65 int SaveOperateLasterClose();
68 [[nodiscard]] QAction* GetStartAction(QMenu *pMenu,
CPlugin* pPlug);
70 void slotStartByType();
73 QSet<COperate*> m_Operates;
74 QMap<CPlugin::TYPE, QMenu*> m_MenuStartByType;
77 void slotMenuActivity();
79 QActionGroup* m_pMenuActivityGroup;
80 QToolButton* m_ptbMenuActivity;
82 void slotLoadOperateMenu();
85 void sigOperateMenuChanged(QAction* pAction);
88 QAction* m_pActionOperateMenu;
89 QAction* m_pActionTBOperate;
90 QToolButton* m_pTBOperate;
94 void on_actionStop_triggered();
98 void slotError(
const int nError,
const QString &szInfo);
110 const QMessageBox::Icon& icon);
120 void slotUpdateName(
const QString& szName);
121 void slotUpdateName();
123 void on_actionSettings_triggered();
128 enum class MessageLevel {
134 void slotStatusMessage(QString szMessage, MessageLevel level = MessageLevel::Normal);
136 QLabel m_StatusBarMessage;
144 QLabel m_TotalReceives;
146 QLabel m_ReceivesRate;
147 void SetStatsVisible(
bool visible);
152 QLabel* m_pSecureLevel;
157 QPushButton* m_pSignalStatus;
159 void slotSignalConnected();
160 void slotSignalDisconnected();
161 void slotSignalError(
const int nError,
const QString &szInfo);
162 void slotSignalPushButtonClicked(
bool checked);
165 virtual void keyReleaseEvent(QKeyEvent *event)
override;
166 virtual void closeEvent(QCloseEvent *event)
override;
172 QAction* m_pToolBarMenuAction;
173 void EnableMenu(
bool bEnable);
176 void on_actionTabBar_B_toggled(
bool bShow);
177 void on_actionMain_menu_bar_M_toggled(
bool checked);
178 void on_actionToolBar_T_toggled(
bool checked);
179 void on_actionStatus_bar_S_toggled(
bool checked);
196 void on_actionFull_screen_F_triggered();
200 void slotCurrentViewChanged(
const QWidget* pView);
201 void slotViewerFocusIn(QWidget* pView);
202 void slotOperateChanged(
COperate* o);
203 void on_actionViewTab_triggered();
204 void on_actionViewSplit_triggered();
206 void SetView(
CView* pView);
210 void on_actionLayoutDefault_triggered();
211 void on_actionLayoutSimple_triggered();
212 void on_actionLayoutMinimalism_triggered();
216 RabbitCommon::CRecentMenu* m_pRecentMenu;
220 QDockWidget* m_pDockRecent;
224 void on_actionOpenListRecent_triggered();
227 QDockWidget* m_pDockActive;
232 QDockWidget* m_pDockFavorite;
235 void on_actionAdd_to_favorite_triggered();
242 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
243 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
244 virtual void dropEvent(QDropEvent *event)
override;
246 QPoint m_DragStartPosition;
250 void slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
251 void slotSystemTrayIconTypeChanged();
252 void slotEnableSystemTrayIcon();
254 void on_actionUser_manual_triggered();
257 QSharedPointer<QSystemTrayIcon> m_TrayIcon;
Q_INVOKABLE 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