41 explicit MainWindow(QWidget *parent =
nullptr);
47 enum class SingleInstanceResult {
59 void sigFullScreen(
bool bFullScreen);
63 void handleNewInstanceApplication(
const QStringList &args);
66 void on_actionExit_E_triggered();
67 void on_actionAbout_triggered();
68 void on_actionUpdate_triggered();
71 void slotUpdateParameters(
COperate* pOperate);
72 void on_actionClone_triggered();
73 void on_actionOpenRRCFile_triggered();
74 void slotOpenFile(
const QString& szFile,
bool bOpenSettings =
false);
78 Q_INVOKABLE
int Start(
COperate* pOperate,
bool set, QString szFile = QString());
79 int LoadOperateLasterClose();
80 int SaveOperateLasterClose();
83 [[nodiscard]] QAction* GetStartAction(QMenu *pMenu,
CPlugin* pPlug);
85 void slotStartByType();
88 QSet<COperate*> m_Operates;
89 QMap<CPlugin::TYPE, QMenu*> m_MenuStartByType;
92 void slotMenuActivity();
94 QActionGroup* m_pMenuActivityGroup;
95 QToolButton* m_ptbMenuActivity;
97 void slotLoadOperateMenu();
100 void sigOperateMenuChanged(QAction* pAction);
103 QAction* m_pActionOperateMenu;
104 QAction* m_pActionTBOperate;
105 QToolButton* m_pTBOperate;
109 void on_actionStop_triggered();
110 void on_actionStop_All_triggered();
111 void on_actionStop_other_triggered();
115 void slotError(
const int nError,
const QString &szInfo);
127 const QMessageBox::Icon& icon);
137 void slotUpdateName(
const QString& szName);
138 void slotUpdateName();
140 void on_actionSettings_triggered();
145 enum class MessageLevel {
151 void slotStatusMessage(QString szMessage, MessageLevel level = MessageLevel::Normal);
153 QLabel m_StatusBarMessage;
159 QLabel m_TotalReceives;
161 QLabel m_ReceivesRate;
162 void SetStatsVisible(
bool visible);
169 QLabel* m_pSecureLevel;
174 QPushButton* m_pSignalStatus;
176 void slotSignalConnected();
177 void slotSignalDisconnected();
178 void slotSignalError(
const int nError,
const QString &szInfo);
179 void slotSignalPushButtonClicked(
bool checked);
182 virtual void keyReleaseEvent(QKeyEvent *event)
override;
183 virtual void closeEvent(QCloseEvent *event)
override;
189 QAction* m_pToolBarMenuAction;
190 void EnableMenu(
bool bEnable);
193 void on_actionTabBar_B_toggled(
bool bShow);
194 void on_actionMain_menu_bar_M_toggled(
bool checked);
195 void on_actionToolBar_T_toggled(
bool checked);
196 void on_actionStatus_bar_S_toggled(
bool checked);
197 void on_actionKeyboard_triggered();
211 CFrmFullScreenToolBar* m_pFullScreenToolBar;
212 friend CFrmFullScreenToolBar;
214 void on_actionFull_screen_F_triggered();
218 void slotCurrentViewChanged(
const QWidget* pView);
219 void slotViewerFocusIn(QWidget* pView);
220 void slotOperateChanged(
COperate* o);
221 void on_actionViewTab_triggered();
222 void on_actionViewSplit_triggered();
224 void SetView(
CView* pView);
228 void on_actionLayoutDefault_triggered();
229 void on_actionLayoutSimple_triggered();
230 void on_actionLayoutMinimalism_triggered();
234 RabbitCommon::CRecentMenu* m_pRecentMenu;
238 QDockWidget* m_pDockRecent;
242 void on_actionOpenListRecent_triggered();
245 QDockWidget* m_pDockActive;
250 QDockWidget* m_pDockFavorite;
253 void on_actionAdd_to_favorite_triggered();
260 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
261 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
262 virtual void dropEvent(QDropEvent *event)
override;
264 QPoint m_DragStartPosition;
268 void slotSystemTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
269 void slotSystemTrayIconTypeChanged();
270 void slotEnableSystemTrayIcon();
272 void on_actionUser_manual_triggered();
275 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)
显示信息。暂时在状态栏显示。
SingleInstanceResult CheckSingleInstanceApplication()
Check Single Instance Application
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