BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / packageinstaller / PackageWindow.cpp
blobf73f8780c79be3836c24c0bf9f0ab61ffd9d480f
1 /*
2 * Copyright (c) 2007-2014, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
5 * Author:
6 * Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7 * Stephan Aßmus <superstippi@gmx.de>
8 */
11 #include "PackageWindow.h"
13 #include <Application.h>
14 #include <Catalog.h>
15 #include <LayoutBuilder.h>
17 #include "PackageView.h"
18 #include "main.h"
21 #undef B_TRANSLATION_CONTEXT
22 #define B_TRANSLATION_CONTEXT "PackageWindow"
25 PackageWindow::PackageWindow(const entry_ref* ref)
27 BWindow(BRect(100, 100, 600, 300),
28 B_TRANSLATE_SYSTEM_NAME("PackageInstaller"),
29 B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
31 PackageView* view = new PackageView(ref);
33 BLayoutBuilder::Group<>(this, B_VERTICAL, 0.0f)
34 .Add(view)
37 CenterOnScreen();
41 PackageWindow::~PackageWindow()
46 void
47 PackageWindow::Quit()
49 be_app->PostMessage(P_WINDOW_QUIT);
50 BWindow::Quit();