[olympic/studio] Fix imguiutil.hpp name, add StudioContext::tctx

This commit is contained in:
Gary Talent 2024-01-19 00:15:28 -06:00
parent e367575974
commit 8a29c0952c
8 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@
#include <imgui.h>
#include <studio/imguiuitl.hpp>
#include <studio/imguiutil.hpp>
#include "aboutpopup.hpp"
namespace olympic {

View File

@ -48,7 +48,7 @@ static ox::Error runApp(
turbine::setUpdateHandler(*ctx, updateHandler);
turbine::setKeyEventHandler(*ctx, keyEventHandler);
turbine::setConstantRefresh(*ctx, false);
studio::StudioContext studioCtx;
studio::StudioContext studioCtx(*ctx);
turbine::setApplicationData(*ctx, &studioCtx);
StudioUI ui(*ctx, projectDataDir);
studioCtx.ui = &ui;

View File

@ -6,7 +6,7 @@
#include <imgui.h>
#include <studio/imguiuitl.hpp>
#include <studio/imguiutil.hpp>
#include "newmenu.hpp"

View File

@ -4,7 +4,7 @@
#include <imgui.h>
#include <studio/imguiuitl.hpp>
#include <studio/imguiutil.hpp>
#include <utility>
#include "filedialogmanager.hpp"

View File

@ -6,6 +6,8 @@
#include <ox/event/signal.hpp>
#include <turbine/context.hpp>
#include "project.hpp"
namespace studio {
@ -13,6 +15,8 @@ namespace studio {
struct StudioContext {
class StudioUI *ui = nullptr;
Project *project = nullptr;
turbine::Context &tctx;
inline explicit StudioContext(turbine::Context &pTctx) noexcept: tctx(pTctx) {}
};
}

View File

@ -7,7 +7,7 @@
#include <studio/context.hpp>
#include <studio/editor.hpp>
#include <studio/filedialog.hpp>
#include <studio/imguiuitl.hpp>
#include <studio/imguiutil.hpp>
#include <studio/module.hpp>
#include <studio/itemmaker.hpp>
#include <studio/popup.hpp>

View File

@ -2,7 +2,7 @@
* Copyright 2016 - 2024 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#include <studio/imguiuitl.hpp>
#include <studio/imguiutil.hpp>
#include <studio/popup.hpp>
namespace studio {