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();
95 void on_actionStop_All_triggered();
96 void on_actionStop_other_triggered();
100 void slotError(
const int nError,
const QString &szInfo);
112 const QMessageBox::Icon& icon);
122 void slotUpdateName(
const QString& szName);
123 void slotUpdateName();
125 void on_actionSettings_triggered();
130 enum class MessageLevel {
136 void slotStatusMessage(QString szMessage, MessageLevel level = MessageLevel::Normal);
138 QLabel m_StatusBarMessage;
144 QLabel m_TotalReceives;
146 QLabel m_ReceivesRate;
147 void SetStatsVisible(
bool visible);
154 QLabel* m_pSecureLevel;
159 QPushButton* m_pSignalStatus;
161 void slotSignalConnected();
162 void slotSignalDisconnected();
163 void slotSignalError(
const int nError,
const QString &szInfo);
164 void slotSignalPushButtonClicked(
bool checked);
167 virtual void keyReleaseEvent(QKeyEvent *event)
override;
168 virtual void closeEvent(QCloseEvent *event)
override;
174 QAction* m_pToolBarMenuAction;
175 void EnableMenu(
bool bEnable);
178 void on_actionTabBar_B_toggled(
bool bShow);
179 void on_actionMain_menu_bar_M_toggled(
bool checked);
180 void on_actionToolBar_T_toggled(
bool checked);
181 void on_actionStatus_bar_S_toggled(
bool checked);
182 void on_actionKeyboard_triggered();
199 void on_actionFull_screen_F_triggered();
203 void slotCurrentViewChanged(
const QWidget* pView);
204 void slotViewerFocusIn(QWidget* pView);
205 void slotOperateChanged(
COperate* o);
206 void on_actionViewTab_triggered();
207 void on_actionViewSplit_triggered();
209 void SetView(
CView* pView);
213 void on_actionLayoutDefault_triggered();
214 void on_actionLayoutSimple_triggered();
215 void on_actionLayoutMinimalism_triggered();
219 RabbitCommon::CRecentMenu* m_pRecentMenu;
223 QDockWidget* m_pDockRecent;
227 void on_actionOpenListRecent_triggered();
230 QDockWidget* m_pDockActive;
235 QDockWidget* m_pDockFavorite;
238 void on_actionAdd_to_favorite_triggered();
245 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
246 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
247 virtual void dropEvent(QDropEvent *event)
override;
249 QPoint m_DragStartPosition;
253 void slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
254 void slotSystemTrayIconTypeChanged();
255 void slotEnableSystemTrayIcon();
257 void on_actionUser_manual_triggered();
260 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 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
int Initial()
For time-consuming operations