41 explicit MainWindow(QWidget *parent =
nullptr);
48 void sigFullScreen(
bool bFullScreen);
52 void on_actionExit_E_triggered();
53 void on_actionAbout_triggered();
54 void on_actionUpdate_triggered();
57 void slotUpdateParameters(
COperate* pOperate);
58 void on_actionClone_triggered();
59 void on_actionOpenRRCFile_triggered();
60 void slotOpenFile(
const QString& szFile,
bool bOpenSettings =
false);
64 Q_INVOKABLE
int Start(
COperate* pOperate,
bool set, QString szFile = QString());
65 int LoadOperateLasterClose();
66 int SaveOperateLasterClose();
69 [[nodiscard]] QAction* GetStartAction(QMenu *pMenu,
CPlugin* pPlug);
71 void slotStartByType();
74 QSet<COperate*> m_Operates;
75 QMap<CPlugin::TYPE, QMenu*> m_MenuStartByType;
78 void slotMenuActivity();
80 QActionGroup* m_pMenuActivityGroup;
81 QToolButton* m_ptbMenuActivity;
83 void slotLoadOperateMenu();
86 void sigOperateMenuChanged(QAction* pAction);
89 QAction* m_pActionOperateMenu;
90 QAction* m_pActionTBOperate;
91 QToolButton* m_pTBOperate;
95 void on_actionStop_triggered();
96 void on_actionStop_All_triggered();
97 void on_actionStop_other_triggered();
101 void slotError(
const int nError,
const QString &szInfo);
113 const QMessageBox::Icon& icon);
123 void slotUpdateName(
const QString& szName);
124 void slotUpdateName();
126 void on_actionSettings_triggered();
131 enum class MessageLevel {
137 void slotStatusMessage(QString szMessage, MessageLevel level = MessageLevel::Normal);
139 QLabel m_StatusBarMessage;
145 QLabel m_TotalReceives;
147 QLabel m_ReceivesRate;
148 void SetStatsVisible(
bool visible);
155 QLabel* m_pSecureLevel;
160 QPushButton* m_pSignalStatus;
162 void slotSignalConnected();
163 void slotSignalDisconnected();
164 void slotSignalError(
const int nError,
const QString &szInfo);
165 void slotSignalPushButtonClicked(
bool checked);
168 virtual void keyReleaseEvent(QKeyEvent *event)
override;
169 virtual void closeEvent(QCloseEvent *event)
override;
175 QAction* m_pToolBarMenuAction;
176 void EnableMenu(
bool bEnable);
179 void on_actionTabBar_B_toggled(
bool bShow);
180 void on_actionMain_menu_bar_M_toggled(
bool checked);
181 void on_actionToolBar_T_toggled(
bool checked);
182 void on_actionStatus_bar_S_toggled(
bool checked);
183 void on_actionKeyboard_triggered();
197 CFrmFullScreenToolBar* m_pFullScreenToolBar;
198 friend CFrmFullScreenToolBar;
200 void on_actionFull_screen_F_triggered();
204 void slotCurrentViewChanged(
const QWidget* pView);
205 void slotViewerFocusIn(QWidget* pView);
206 void slotOperateChanged(
COperate* o);
207 void on_actionViewTab_triggered();
208 void on_actionViewSplit_triggered();
210 void SetView(
CView* pView);
214 void on_actionLayoutDefault_triggered();
215 void on_actionLayoutSimple_triggered();
216 void on_actionLayoutMinimalism_triggered();
220 RabbitCommon::CRecentMenu* m_pRecentMenu;
224 QDockWidget* m_pDockRecent;
228 void on_actionOpenListRecent_triggered();
231 QDockWidget* m_pDockActive;
236 QDockWidget* m_pDockFavorite;
239 void on_actionAdd_to_favorite_triggered();
246 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
247 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
248 virtual void dropEvent(QDropEvent *event)
override;
250 QPoint m_DragStartPosition;
254 void slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
255 void slotSystemTrayIconTypeChanged();
256 void slotEnableSystemTrayIcon();
258 void on_actionUser_manual_triggered();
261 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)
显示信息。暂时在状态栏显示。
MainWindow(QWidget *parent=nullptr)
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