Something went wrong. Try again.
The agentic engineering control plane for the posthuman future
Something went wrong. Try again.
866 B · 38 lines
C++
at main
123456789101112131415161718192021222324252627282930313233343536373839#include "MissionCardController.h"
#include "Workspace.h"
using namespace Qt::Literals::StringLiterals;
MissionCardController::MissionCardController(QObject* parent) : QObject(parent){}
void MissionCardController::setTab(QObject* tab){ if (m_tab.data() == tab) { return; } m_tab = tab; emit tabChanged();}
QVariantList MissionCardController::paneRects() const{ QVariantList out; const auto* const tab = qobject_cast<const XenoTab*>(m_tab.data()); if (tab == nullptr || tab->treeRoot() == nullptr) { return out; } for (const PaneRect& rect : paneRectsNormalized(*tab->treeRoot())) { QVariantMap entry; entry.insert("paneId"_L1, rect.paneId); entry.insert("x"_L1, rect.x); entry.insert("y"_L1, rect.y); entry.insert("w"_L1, rect.w); entry.insert("h"_L1, rect.h); out.append(entry); } return out;}