Add a desktop window to put a shelf on later... ActivityMonitor replicant ? ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25073 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <Alert.h>
|
||||
#include <Screen.h>
|
||||
#include <String.h>
|
||||
#include <View.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -19,6 +20,10 @@
|
||||
|
||||
const char *kLoginAppSig = "application/x-vnd.Haiku-Login";
|
||||
|
||||
const window_feel kPrivateDesktopWindowFeel = window_feel(1024);
|
||||
const window_look kPrivateDesktopWindowLook = window_look(4);
|
||||
// this is a mirror of an app server private values
|
||||
|
||||
|
||||
LoginApp::LoginApp()
|
||||
: BApplication(kLoginAppSig)
|
||||
@@ -38,8 +43,23 @@ LoginApp::ReadyToRun()
|
||||
BRect frame(0, 0, 400, 150);
|
||||
frame.OffsetBySelf(s.Frame().Width()/2 - frame.Width()/2,
|
||||
s.Frame().Height()/2 - frame.Height()/2);
|
||||
LoginWindow *w = new LoginWindow(frame);
|
||||
w->Show();
|
||||
fLoginWindow = new LoginWindow(frame);
|
||||
fLoginWindow->Show();
|
||||
|
||||
BScreen screen;
|
||||
fDesktopWindow = new BWindow(screen.Frame(), "Desktop",
|
||||
kPrivateDesktopWindowLook,
|
||||
kPrivateDesktopWindowFeel,
|
||||
B_NOT_MOVABLE | B_NOT_CLOSABLE | B_NOT_ZOOMABLE
|
||||
| B_NOT_MINIMIZABLE | B_NOT_RESIZABLE
|
||||
| B_ASYNCHRONOUS_CONTROLS,
|
||||
B_ALL_WORKSPACES);
|
||||
BView *desktop = new BView(fDesktopWindow->Bounds(), "desktop",
|
||||
B_FOLLOW_NONE, 0);
|
||||
desktop->SetViewColor(screen.DesktopColor());
|
||||
fDesktopWindow->AddChild(desktop);
|
||||
fDesktopWindow->Show();
|
||||
// TODO: add a shelf with Activity Monitor replicant :)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user