mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
44f919da9a
Summer of Code project. Thanks for your work Łukasz and I hope we can see more work from you. Still to do: - Create an icon. - Add pkg files to the MIME database with PackageInstaller as the default handler. The rdef here has the MIME type name for the pkg format should anyone else choose to add it :) - Support for running scripts included with packages. - Testing various different packages. - Fixing problems in the Haiku GUI layout system which affect the code used for various parts of the installer GUI (please bear with the commented out code for now.) - Adding this to the image. Tomorrow I will add Łukasz's InstalledPackages utility which can be used to view installed packages and uninstall them. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22525 a95241bf-73f2-0310-859d-f6bbb57e9c96
48 lines
829 B
C++
48 lines
829 B
C++
/*
|
|
* Copyright (c) 2007, Haiku, Inc.
|
|
* Distributed under the terms of the MIT license.
|
|
*
|
|
* Author:
|
|
* Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
|
|
*/
|
|
|
|
|
|
#include "PackageWindow.h"
|
|
|
|
#include <Application.h>
|
|
|
|
#include <GroupLayout.h>
|
|
|
|
// Macro reserved for later localization
|
|
#define T(x) x
|
|
|
|
|
|
PackageWindow::PackageWindow(const entry_ref *ref)
|
|
: BWindow(BRect(100, 100, 600, 300), T("Package Installer"), B_TITLED_WINDOW,
|
|
B_NOT_ZOOMABLE | B_NOT_RESIZABLE)
|
|
{
|
|
//SetLayout(new BGroupLayout(B_HORIZONTAL));
|
|
|
|
fBackground = new PackageView(Bounds(), ref);
|
|
AddChild(fBackground);
|
|
|
|
ResizeTo(Bounds().Width(), fBackground->Bounds().Height());
|
|
}
|
|
|
|
|
|
PackageWindow::~PackageWindow()
|
|
{
|
|
RemoveChild(fBackground);
|
|
|
|
delete fBackground;
|
|
}
|
|
|
|
|
|
void
|
|
PackageWindow::Quit()
|
|
{
|
|
be_app->PostMessage(P_WINDOW_QUIT);
|
|
BWindow::Quit();
|
|
}
|
|
|