2 * Copyright (c) 2007-2014, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
6 * Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7 * Stephan Aßmus <superstippi@gmx.de>
11 #include "PackageWindow.h"
13 #include <Application.h>
15 #include <LayoutBuilder.h>
17 #include "PackageView.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
)
41 PackageWindow::~PackageWindow()
49 be_app
->PostMessage(P_WINDOW_QUIT
);