BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / powerstatus / PowerStatusWindow.cpp
blob6333e17fabb386ab9dce5b76c5cc2264cd1a22fc
1 /*
2 * Copyright 2006-2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
10 #include "PowerStatusWindow.h"
11 #include "PowerStatusView.h"
13 #include <Application.h>
14 #include <Catalog.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);
24 AddChild(topView);
26 topView->AddChild(new PowerStatusReplicant(Bounds(), B_FOLLOW_ALL));
30 PowerStatusWindow::~PowerStatusWindow()
35 bool
36 PowerStatusWindow::QuitRequested()
38 be_app->PostMessage(B_QUIT_REQUESTED);
39 return true;