2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Toolbar additions, PathButtons self-sizing

This commit is contained in:
Jack Andersen
2016-01-26 14:41:44 -10:00
parent c08a9e5355
commit b86b523ea0
7 changed files with 144 additions and 91 deletions

View File

@@ -16,7 +16,8 @@ static LogVisor::LogModule Log("Specter::Space");
#define CORNER_DRAG_THRESHOLD 20
Space::Space(ViewResources& res, View& parentView, ISpaceController& controller, Toolbar::Position tbPos)
Space::Space(ViewResources& res, View& parentView, ISpaceController& controller,
Toolbar::Position tbPos, unsigned tbUnits)
: View(res, parentView), m_controller(controller), m_tbPos(tbPos)
{
commitResources(res);
@@ -25,7 +26,7 @@ Space::Space(ViewResources& res, View& parentView, ISpaceController& controller,
if (controller.spaceSplitAllowed())
m_cornerView.m_view.reset(new CornerView(res, *this, triColor));
if (tbPos != Toolbar::Position::None)
m_toolbar.m_view.reset(new Toolbar(res, *this, tbPos));
m_toolbar.m_view.reset(new Toolbar(res, *this, tbPos, tbUnits));
}
Space::CornerView::CornerView(ViewResources& res, Space& space, const Zeus::CColor& triColor)