2 * Copyright 2006-2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
10 #include "PowerStatusWindow.h"
11 #include "PowerStatusView.h"
13 #include <Application.h>
17 PowerStatusWindow::PowerStatusWindow()
19 BWindow(BRect(100, 150, 281, 299), B_TRANSLATE_SYSTEM_NAME("PowerStatus"),
20 B_TITLED_WINDOW
, B_NOT_ZOOMABLE
| B_ASYNCHRONOUS_CONTROLS
)
22 BView
* topView
= new BView(Bounds(), NULL
, B_FOLLOW_ALL
, B_WILL_DRAW
);
23 topView
->SetViewUIColor(B_PANEL_BACKGROUND_COLOR
);
26 topView
->AddChild(new PowerStatusReplicant(Bounds(), B_FOLLOW_ALL
));
30 PowerStatusWindow::~PowerStatusWindow()
36 PowerStatusWindow::QuitRequested()
38 be_app
->PostMessage(B_QUIT_REQUESTED
);