mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-17 20:05:23 +00:00
Additional space-tree work
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
#define SPECTER_IVIEWMANAGER_HPP
|
||||
|
||||
#include "Translator.hpp"
|
||||
#include "SplitView.hpp"
|
||||
#include <HECL/HECL.hpp>
|
||||
|
||||
namespace Specter
|
||||
{
|
||||
struct ISplitSpaceController;
|
||||
|
||||
struct IViewManager
|
||||
{
|
||||
@@ -19,6 +21,8 @@ public:
|
||||
return vor;
|
||||
}
|
||||
|
||||
virtual void deferSpaceSplit(ISplitSpaceController* split, SplitView::Axis axis, int thisSlot) {}
|
||||
|
||||
virtual const std::vector<HECL::SystemString>* recentProjects() const {return nullptr;}
|
||||
virtual void pushRecentProject(const HECL::SystemString& path) {}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ struct ISpaceController
|
||||
struct ISplitSpaceController
|
||||
{
|
||||
virtual SplitView* splitView()=0;
|
||||
virtual void setSplit(float split)=0;
|
||||
};
|
||||
|
||||
class Space : public View
|
||||
@@ -31,7 +32,6 @@ class Space : public View
|
||||
|
||||
bool m_cornerDrag = false;
|
||||
int m_cornerDragPoint[2];
|
||||
ISplitSpaceController* m_cornerDragSplitSpace = nullptr;
|
||||
|
||||
struct CornerView : View
|
||||
{
|
||||
|
||||
@@ -66,6 +66,7 @@ public:
|
||||
SplitView(ViewResources& res, View& parentView, Axis axis, int clearanceA=-1, int clearanceB=-1);
|
||||
View* setContentView(int slot, View* view);
|
||||
void setSplit(float slide);
|
||||
void setAxis(Axis axis);
|
||||
void startDragSplit(const boo::SWindowCoord& coord);
|
||||
void mouseDown(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
||||
void mouseUp(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey);
|
||||
|
||||
Reference in New Issue
Block a user