app: migrate all engine access to the C ABI facade (nm U _ZN5olive = 0)

Every app module now reaches liboakengine exclusively through
oakengine_* C calls, EngineEventBridge subscriptions and app-side
handle headers (cliphandle/keyframehandle/nodevaluehandle/oakvaluehelper).
Direct C++ command construction, engine signal connect()s, and engine
type usage in MOC-visible signatures are gone: 557 -> 0 undefined
olive:: symbols in oak-editor.
This commit is contained in:
2026-07-26 22:43:21 +08:00
parent f95590e924
commit 0aa5879f35
256 changed files with 12357 additions and 4044 deletions
+27 -10
View File
@@ -21,13 +21,15 @@
#include "taskmanager.h"
#include "task/taskmanager.h"
#include "engineeventbridge.h"
#include "oakengine/task.h"
namespace olive
{
TaskManagerPanel::TaskManagerPanel()
: PanelWidget(QStringLiteral("TaskManagerPanel"))
, bridge_(new EngineEventBridge(this))
{
// Create task view
view_ = new TaskView(this);
@@ -35,15 +37,30 @@ TaskManagerPanel::TaskManagerPanel()
// Set it as the main widget
setWidget(view_);
// Connect task view to the task manager
connect(TaskManager::instance(), &TaskManager::task_added, view_,
&TaskView::add_task);
connect(TaskManager::instance(), &TaskManager::task_removed, view_,
&TaskView::remove_task);
connect(TaskManager::instance(), &TaskManager::task_failed, view_,
&TaskView::task_failed);
connect(view_, &TaskView::task_cancelled, TaskManager::instance(),
&TaskManager::cancel_task);
// Connect task view to the task manager via EngineEventBridge
bridge_->subscribe(oakengine_task_manager_handle(),
OAKENGINE_EVENT_TASK_MANAGER_TASK_ADDED);
bridge_->subscribe(oakengine_task_manager_handle(),
OAKENGINE_EVENT_TASK_MANAGER_TASK_REMOVED);
bridge_->subscribe(oakengine_task_manager_handle(),
OAKENGINE_EVENT_TASK_MANAGER_TASK_FAILED);
connect(bridge_, &EngineEventBridge::task_manager_task_added, this,
[this](OakEngineTask *task, const QString &) {
view_->add_task(task);
});
connect(bridge_, &EngineEventBridge::task_manager_task_removed, this,
[this](OakEngineTask *task) {
view_->remove_task(task);
});
connect(bridge_, &EngineEventBridge::task_manager_task_failed, this,
[this](OakEngineTask *task) {
view_->task_failed(task);
});
connect(view_, &TaskView::task_cancelled, this,
[](OakEngineTask *t) {
oakengine_task_manager_cancel(t);
});
// Set strings
retranslate();