Fix gcc2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
323e7fe567
commit
756e5df62f
@ -191,7 +191,7 @@ class SATGroup : public BReferenceable {
|
||||
public:
|
||||
friend class Tab;
|
||||
friend class WindowArea;
|
||||
friend class SATWindow;
|
||||
friend class GroupCookie;
|
||||
|
||||
SATGroup();
|
||||
~SATGroup();
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#include <Debug.h>
|
||||
|
||||
#include "SATGroup.h"
|
||||
#include "Window.h"
|
||||
|
||||
|
||||
@ -322,7 +323,7 @@ SATWindow::_InitGroup()
|
||||
}
|
||||
|
||||
|
||||
SATWindow::GroupCookie::GroupCookie(SATWindow* satWindow)
|
||||
GroupCookie::GroupCookie(SATWindow* satWindow)
|
||||
:
|
||||
fSATWindow(satWindow),
|
||||
|
||||
@ -349,14 +350,14 @@ SATWindow::GroupCookie::GroupCookie(SATWindow* satWindow)
|
||||
}
|
||||
|
||||
|
||||
SATWindow::GroupCookie::~GroupCookie()
|
||||
GroupCookie::~GroupCookie()
|
||||
{
|
||||
Uninit();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SATWindow::GroupCookie::DoGroupLayout(SATWindow* triggerWindow)
|
||||
GroupCookie::DoGroupLayout(SATWindow* triggerWindow)
|
||||
{
|
||||
if (!fSATGroup.Get())
|
||||
return;
|
||||
@ -400,7 +401,7 @@ SATWindow::GroupCookie::DoGroupLayout(SATWindow* triggerWindow)
|
||||
|
||||
|
||||
void
|
||||
SATWindow::GroupCookie::MoveWindow(int32 workspace)
|
||||
GroupCookie::MoveWindow(int32 workspace)
|
||||
{
|
||||
Window* window = fSATWindow->GetWindow();
|
||||
Desktop* desktop = window->Desktop();
|
||||
@ -418,7 +419,7 @@ SATWindow::GroupCookie::MoveWindow(int32 workspace)
|
||||
|
||||
|
||||
bool
|
||||
SATWindow::GroupCookie::Init(SATGroup* group, WindowArea* area)
|
||||
GroupCookie::Init(SATGroup* group, WindowArea* area)
|
||||
{
|
||||
ASSERT(fSATGroup.Get() == NULL);
|
||||
|
||||
@ -489,7 +490,7 @@ SATWindow::GroupCookie::Init(SATGroup* group, WindowArea* area)
|
||||
|
||||
|
||||
void
|
||||
SATWindow::GroupCookie::Uninit()
|
||||
GroupCookie::Uninit()
|
||||
{
|
||||
delete leftBorder;
|
||||
delete topBorder;
|
||||
@ -528,7 +529,7 @@ SATWindow::GroupCookie::Uninit()
|
||||
|
||||
|
||||
bool
|
||||
SATWindow::GroupCookie::PropagateToGroup(SATGroup* group, WindowArea* area)
|
||||
GroupCookie::PropagateToGroup(SATGroup* group, WindowArea* area)
|
||||
{
|
||||
if (!fSATGroup->fSATWindowList.RemoveItem(fSATWindow))
|
||||
return false;
|
||||
|
@ -11,16 +11,60 @@
|
||||
|
||||
#include <Region.h>
|
||||
#include "SATDecorator.h"
|
||||
#include "SATGroup.h"
|
||||
#include "Stacking.h"
|
||||
#include "Tiling.h"
|
||||
|
||||
|
||||
class Desktop;
|
||||
class SATGroup;
|
||||
class StackAndTile;
|
||||
class Window;
|
||||
|
||||
|
||||
class GroupCookie
|
||||
{
|
||||
public:
|
||||
GroupCookie(SATWindow* satWindow);
|
||||
~GroupCookie();
|
||||
|
||||
bool Init(SATGroup* group, WindowArea* area);
|
||||
void Uninit();
|
||||
|
||||
void DoGroupLayout(SATWindow* triggerWindow);
|
||||
void MoveWindow(int32 workspace);
|
||||
|
||||
SATGroup* GetGroup() { return fSATGroup.Get(); }
|
||||
|
||||
WindowArea* GetWindowArea() { return windowArea; }
|
||||
|
||||
bool PropagateToGroup(SATGroup* group, WindowArea* area);
|
||||
|
||||
private:
|
||||
SATWindow* fSATWindow;
|
||||
|
||||
BReference<SATGroup> fSATGroup;
|
||||
|
||||
WindowArea* windowArea;
|
||||
|
||||
Variable* leftBorder;
|
||||
Variable* topBorder;
|
||||
Variable* rightBorder;
|
||||
Variable* bottomBorder;
|
||||
|
||||
Constraint* leftBorderConstraint;
|
||||
Constraint* topBorderConstraint;
|
||||
Constraint* rightBorderConstraint;
|
||||
Constraint* bottomBorderConstraint;
|
||||
|
||||
Constraint* leftConstraint;
|
||||
Constraint* topConstraint;
|
||||
Constraint* minWidthConstraint;
|
||||
Constraint* minHeightConstraint;
|
||||
Constraint* widthConstraint;
|
||||
Constraint* heightConstraint;
|
||||
};
|
||||
|
||||
|
||||
class SATWindow {
|
||||
public:
|
||||
SATWindow(StackAndTile* sat, Window* window);
|
||||
@ -63,56 +107,12 @@ public:
|
||||
void TabLocationMoved(float location, bool shifting);
|
||||
|
||||
private:
|
||||
void _InitGroup();
|
||||
void _InitGroup();
|
||||
|
||||
Window* fWindow;
|
||||
SATDecorator* fDecorator;
|
||||
StackAndTile* fStackAndTile;
|
||||
Desktop* fDesktop;
|
||||
|
||||
class GroupCookie
|
||||
{
|
||||
public:
|
||||
GroupCookie(SATWindow* satWindow);
|
||||
~GroupCookie();
|
||||
|
||||
bool Init(SATGroup* group, WindowArea* area);
|
||||
void Uninit();
|
||||
|
||||
void DoGroupLayout(SATWindow* triggerWindow);
|
||||
void MoveWindow(int32 workspace);
|
||||
|
||||
SATGroup* GetGroup() { return fSATGroup.Get(); }
|
||||
|
||||
WindowArea* GetWindowArea() { return windowArea; }
|
||||
|
||||
bool PropagateToGroup(SATGroup* group,
|
||||
WindowArea* area);
|
||||
|
||||
private:
|
||||
SATWindow* fSATWindow;
|
||||
|
||||
BReference<SATGroup> fSATGroup;
|
||||
|
||||
WindowArea* windowArea;
|
||||
|
||||
Variable* leftBorder;
|
||||
Variable* topBorder;
|
||||
Variable* rightBorder;
|
||||
Variable* bottomBorder;
|
||||
|
||||
Constraint* leftBorderConstraint;
|
||||
Constraint* topBorderConstraint;
|
||||
Constraint* rightBorderConstraint;
|
||||
Constraint* bottomBorderConstraint;
|
||||
|
||||
Constraint* leftConstraint;
|
||||
Constraint* topConstraint;
|
||||
Constraint* minWidthConstraint;
|
||||
Constraint* minHeightConstraint;
|
||||
Constraint* widthConstraint;
|
||||
Constraint* heightConstraint;
|
||||
};
|
||||
Window* fWindow;
|
||||
SATDecorator* fDecorator;
|
||||
StackAndTile* fStackAndTile;
|
||||
Desktop* fDesktop;
|
||||
|
||||
//! Current group.
|
||||
GroupCookie* fGroupCookie;
|
||||
|
@ -437,8 +437,6 @@ SATTiling::_FreeAreaSize()
|
||||
void
|
||||
SATTiling::_HighlightWindows(SATGroup* group, bool highlight)
|
||||
{
|
||||
BRect windowFrame = fSATWindow->CompleteWindowFrame();
|
||||
|
||||
const TabList* hTabs = group->HorizontalTabs();
|
||||
const TabList* vTabs = group->VerticalTabs();
|
||||
// height light windows at all four sites
|
||||
|
Loading…
Reference in New Issue
Block a user