/* * 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 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", "VirtualMemory\n" "\twritten by Axel Dörfler\n" "\tCopyright 2005, Haiku.\n", "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->Go(); } int main(int argc, char** argv) { VirtualMemory app; app.Run(); return 0; }