2 * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 #include "VirtualMemory.h"
8 #include "SettingsWindow.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()
31 VirtualMemory::ReadyToRun()
33 BWindow
* window
= new SettingsWindow();
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();
47 view
->SetStylable(true);
51 font
.SetFace(B_BOLD_FACE
);
52 view
->SetFontAndColor(0, 13, &font
);
54 alert
->SetFlags(alert
->Flags() | B_CLOSE_ON_ESCAPE
);
60 main(int argc
, char** argv
)