/* * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ #include "VirtualMemory.h" #include "SettingsWindow.h" #include #include #include #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT "VirtualMemoryApp" VirtualMemory::VirtualMemory() : BApplication("application/x-vnd.Haiku-VirtualMemory") { } VirtualMemory::~VirtualMemory() { } void VirtualMemory::ReadyToRun() { BWindow* window = new SettingsWindow(); window->Show(); } void VirtualMemory::AboutRequested() { BAlert* alert = new BAlert("about", B_TRANSLATE("VirtualMemory\n" "\twritten by Axel Dörfler\n" "\tCopyright 2005, Haiku.\n"), B_TRANSLATE("OK")); BTextView* view = alert->TextView(); BFont font; view->SetStylable(true); view->GetFont(&font); font.SetSize(18); font.SetFace(B_BOLD_FACE); view->SetFontAndColor(0, 13, &font); alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); alert->Go(); } int main(int argc, char** argv) { VirtualMemory app; app.Run(); return 0; }