Add listener for the tab location.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38067 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
77fa0021d9
commit
d25313d44f
@ -1360,6 +1360,8 @@ Desktop::SetWindowTabLocation(Window* window, float location)
|
||||
if (changed)
|
||||
_RebuildAndRedrawAfterWindowChange(window, dirty);
|
||||
|
||||
InvokeSetWindowTabLocation(window, location);
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,18 @@ DesktopObservable::InvokeSendWindowBehind(Window* window, Window* behindOf)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DesktopObservable::InvokeSetWindowTabLocation(Window* window, float location)
|
||||
{
|
||||
if (fWeAreInvoking)
|
||||
return;
|
||||
InvokeGuard invokeGuard(fWeAreInvoking);
|
||||
|
||||
FOR_ALL_DESKTOP_LISTENER
|
||||
listener->SetWindowTabLocation(window, location);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
DesktopObservable::InvokeSetDecoratorSettings(Window* window,
|
||||
const BMessage& settings)
|
||||
|
@ -51,6 +51,9 @@ public:
|
||||
virtual void MinimizeWindow(Window* window,
|
||||
bool minimize) = 0;
|
||||
|
||||
virtual void SetWindowTabLocation(Window* window,
|
||||
float location) = 0;
|
||||
|
||||
virtual bool SetDecoratorSettings(Window* window,
|
||||
const BMessage& settings) = 0;
|
||||
virtual void GetDecoratorSettings(Window* window,
|
||||
@ -94,6 +97,9 @@ public:
|
||||
void InvokeHideWindow(Window* window);
|
||||
void InvokeMinimizeWindow(Window* window, bool minimize);
|
||||
|
||||
void InvokeSetWindowTabLocation(Window* window,
|
||||
float location);
|
||||
|
||||
bool InvokeSetDecoratorSettings(Window* window,
|
||||
const BMessage& settings);
|
||||
void InvokeGetDecoratorSettings(Window* window,
|
||||
|
Loading…
Reference in New Issue
Block a user