mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 09:36:29 +03:00
More WIP.
This commit is contained in:
@@ -18,12 +18,30 @@ UIWidget* StatusDebuggerController::createWidget() {
|
||||
return mContainer;
|
||||
}
|
||||
|
||||
UITableView* StatusDebuggerController::getUIThreads() {
|
||||
return mUIThreads;
|
||||
}
|
||||
|
||||
UITableView* StatusDebuggerController::getUIStack() {
|
||||
return mUIStack;
|
||||
}
|
||||
|
||||
UITableView* StatusDebuggerController::getUIBreakpoints() {
|
||||
return mUIBreakpoints;
|
||||
}
|
||||
|
||||
void StatusDebuggerController::createContainer() {
|
||||
if ( mContainer )
|
||||
return;
|
||||
const auto XML = R"xml(
|
||||
<hbox id="app_debugger" lw="mp" lh="mp" visible="false">
|
||||
</hbox>
|
||||
<TabWidget layout_width="match_parent" layout_height="0dp" layout_weight="1">
|
||||
<TableView id="debugger_stack" layout_width="mp" layout_height="mp" />
|
||||
<TableView id="debugger_threads" layout_width="mp" layout_height="mp" />
|
||||
<TableView id="debugger_breakpoints" layout_width="mp" layout_height="mp" />
|
||||
<Tab text="@string(stack, Stack)" owns="debugger_stack" />
|
||||
<Tab text="@string(threads, Threads)" owns="debugger_threads" />
|
||||
<Tab text="@string(breakpoints, Breakpoints)" owns="debugger_breakpoints" />
|
||||
</TabWidget>
|
||||
)xml";
|
||||
|
||||
if ( mMainSplitter->getLastWidget() != nullptr ) {
|
||||
@@ -34,6 +52,10 @@ void StatusDebuggerController::createContainer() {
|
||||
mContainer = mContext->getUISceneNode()
|
||||
->loadLayoutFromString( XML, mMainSplitter )
|
||||
->asType<UILinearLayout>();
|
||||
|
||||
mContainer->bind( "debugger_threads", mUIThreads );
|
||||
mContainer->bind( "debugger_stack", mUIStack );
|
||||
mContainer->bind( "debugger_breakpoints", mUIBreakpoints );
|
||||
}
|
||||
|
||||
} // namespace ecode
|
||||
|
||||
Reference in New Issue
Block a user