Remove unused WindowManager class
This commit is contained in:
parent
91d5b4e0dc
commit
2143de94c1
|
@ -20,7 +20,6 @@
|
||||||
#include "ProtocolManager.h"
|
#include "ProtocolManager.h"
|
||||||
#include "Server.h"
|
#include "Server.h"
|
||||||
#include "TheApp.h"
|
#include "TheApp.h"
|
||||||
#include "WindowsManager.h"
|
|
||||||
|
|
||||||
|
|
||||||
Conversation::Conversation(BString id, BMessenger msgn)
|
Conversation::Conversation(BString id, BMessenger msgn)
|
||||||
|
|
|
@ -51,7 +51,6 @@ SRCS = \
|
||||||
application/Server.cpp \
|
application/Server.cpp \
|
||||||
application/TheApp.cpp \
|
application/TheApp.cpp \
|
||||||
application/User.cpp \
|
application/User.cpp \
|
||||||
application/WindowsManager.cpp \
|
|
||||||
application/preferences/AccountDialog.cpp \
|
application/preferences/AccountDialog.cpp \
|
||||||
application/preferences/AccountListItem.cpp \
|
application/preferences/AccountListItem.cpp \
|
||||||
application/preferences/AccountView.cpp \
|
application/preferences/AccountView.cpp \
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Andrea Anzani, andrea.anzani@gmail.com
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "WindowsManager.h"
|
|
||||||
|
|
||||||
WindowsManager* WindowsManager::fInstance = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
WindowsManager::WindowsManager()
|
|
||||||
{
|
|
||||||
fCurrentPoint.Set(20.0f, 20.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
WindowsManager*
|
|
||||||
WindowsManager::Get()
|
|
||||||
{
|
|
||||||
if (!fInstance)
|
|
||||||
fInstance = new WindowsManager();
|
|
||||||
|
|
||||||
return fInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
WindowsManager::RelocateWindow(BWindow* window)
|
|
||||||
{
|
|
||||||
window->SetWorkspaces(B_CURRENT_WORKSPACE);
|
|
||||||
window->MoveTo(fCurrentPoint);
|
|
||||||
fCurrentPoint += BPoint(20.0f, 20.0f);
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*/
|
|
||||||
#ifndef _WINDOWS_MANAGER_H_
|
|
||||||
#define _WINDOWS_MANAGER_H_
|
|
||||||
|
|
||||||
#include <Window.h>
|
|
||||||
#include <Point.h>
|
|
||||||
|
|
||||||
class WindowsManager
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
static WindowsManager* Get();
|
|
||||||
|
|
||||||
void RelocateWindow(BWindow* window);
|
|
||||||
|
|
||||||
private:
|
|
||||||
WindowsManager();
|
|
||||||
|
|
||||||
static WindowsManager* fInstance;
|
|
||||||
BPoint fCurrentPoint;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // _WINDOWS_MANAGER_H_
|
|
Ŝarĝante…
Reference in New Issue