libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / preferences / virtualmemory / VirtualMemory.cpp
blob4ee58afd8d8958dd36bb460940c0ba05c3bd87c2
1 /*
2 * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "VirtualMemory.h"
8 #include "SettingsWindow.h"
10 #include <Alert.h>
11 #include <Catalog.h>
12 #include <TextView.h>
15 #undef B_TRANSLATION_CONTEXT
16 #define B_TRANSLATION_CONTEXT "VirtualMemoryApp"
19 VirtualMemory::VirtualMemory()
20 : BApplication("application/x-vnd.Haiku-VirtualMemory")
25 VirtualMemory::~VirtualMemory()
30 void
31 VirtualMemory::ReadyToRun()
33 BWindow* window = new SettingsWindow();
34 window->Show();
38 void
39 VirtualMemory::AboutRequested()
41 BAlert* alert = new BAlert("about", B_TRANSLATE("VirtualMemory\n"
42 "\twritten by Axel Dörfler\n"
43 "\tCopyright 2005, Haiku.\n"), B_TRANSLATE("OK"));
44 BTextView* view = alert->TextView();
45 BFont font;
47 view->SetStylable(true);
49 view->GetFont(&font);
50 font.SetSize(18);
51 font.SetFace(B_BOLD_FACE);
52 view->SetFontAndColor(0, 13, &font);
54 alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
55 alert->Go();
59 int
60 main(int argc, char** argv)
62 VirtualMemory app;
63 app.Run();
65 return 0;