xref: /haiku/src/apps/packageinstaller/UninstallWindow.cpp (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright (c) 2007-2010, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7  */
8 
9 
10 #include "UninstallWindow.h"
11 
12 #include <Catalog.h>
13 #include <GroupLayout.h>
14 #include <Locale.h>
15 
16 #include "main.h"
17 
18 #undef B_TRANSLATION_CONTEXT
19 #define B_TRANSLATION_CONTEXT "UninstallWindow"
20 
21 
22 UninstallWindow::UninstallWindow()
23 	:
24 	BWindow(BRect(100, 100, 600, 300),
25 		B_TRANSLATE("Installed packages"), B_TITLED_WINDOW,
26 		B_NOT_ZOOMABLE | B_QUIT_ON_WINDOW_CLOSE | B_AUTO_UPDATE_SIZE_LIMITS)
27 {
28 	SetLayout(new BGroupLayout(B_HORIZONTAL));
29 	AddChild(new UninstallView());
30 }
31 
32 
33 void
34 UninstallWindow::Quit()
35 {
36 	be_app->PostMessage(P_WINDOW_QUIT);
37 	BWindow::Quit();
38 }
39