code: Establish the theoretical transmission process.

This commit is contained in:
2025-06-18 15:10:28 +08:00
parent a53657df30
commit 5dee6ea41d
7 changed files with 24 additions and 16 deletions

View File

@@ -44,11 +44,12 @@ void frelayGUI::InitControl()
localFile_ = new FileManager(this);
remoteFile_ = new FileManager(this);
localFile_->SetModeStr(tr("Local:"));
localFile_->SetOtherSidePathCall([this]() { return remoteFile_->GetCurRoot(); });
remoteFile_->SetModeStr(tr("Remote:"), 1, clientCore_);
remoteFile_->SetOtherSidePathCall([this]() { return localFile_->GetCurRoot(); });
tabWidget_ = new QTabWidget(this);
connect(localFile_, &FileManager::sigSendTasks, this, &frelayGUI::HandleTask);
connect(remoteFile_, &FileManager::sigSendTasks, this, &frelayGUI::HandleTask);
}
void frelayGUI::ControlSignal()
@@ -104,6 +105,12 @@ void frelayGUI::ControlMsgHander(QtMsgType type, const QMessageLogContext& conte
}
}
void frelayGUI::HandleTask(const QVector<TransTask>& tasks)
{
transform_->SetTasks(tasks);
transform_->exec();
}
void frelayGUI::closeEvent(QCloseEvent* event)
{
QMainWindow::closeEvent(event);