1f877fb74SAxel Dörfler /* 2*0b2fbbfaSAdrien Destugues * Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3f877fb74SAxel Dörfler * Distributed under the terms of the MIT License. 4f877fb74SAxel Dörfler */ 5f877fb74SAxel Dörfler 6f877fb74SAxel Dörfler 7f877fb74SAxel Dörfler #include "VirtualMemory.h" 8f877fb74SAxel Dörfler #include "SettingsWindow.h" 9f877fb74SAxel Dörfler 10f877fb74SAxel Dörfler #include <Alert.h> 11f877fb74SAxel Dörfler #include <TextView.h> 12f877fb74SAxel Dörfler 13f877fb74SAxel Dörfler 14f877fb74SAxel Dörfler VirtualMemory::VirtualMemory() 15f877fb74SAxel Dörfler : BApplication("application/x-vnd.Haiku-VirtualMemory") 16f877fb74SAxel Dörfler { 17f877fb74SAxel Dörfler } 18f877fb74SAxel Dörfler 19f877fb74SAxel Dörfler 20f877fb74SAxel Dörfler VirtualMemory::~VirtualMemory() 21f877fb74SAxel Dörfler { 22f877fb74SAxel Dörfler } 23f877fb74SAxel Dörfler 24f877fb74SAxel Dörfler 25f877fb74SAxel Dörfler void 26f877fb74SAxel Dörfler VirtualMemory::ReadyToRun() 27f877fb74SAxel Dörfler { 28f877fb74SAxel Dörfler BWindow* window = new SettingsWindow(); 29f877fb74SAxel Dörfler window->Show(); 30f877fb74SAxel Dörfler } 31f877fb74SAxel Dörfler 32f877fb74SAxel Dörfler 33f877fb74SAxel Dörfler void 34f877fb74SAxel Dörfler VirtualMemory::AboutRequested() 35f877fb74SAxel Dörfler { 36f877fb74SAxel Dörfler BAlert *alert = new BAlert("about", "VirtualMemory\n" 37f877fb74SAxel Dörfler "\twritten by Axel Dörfler\n" 38*0b2fbbfaSAdrien Destugues "\tCopyright 2005, Haiku.\n", "OK"); 39f877fb74SAxel Dörfler BTextView *view = alert->TextView(); 40f877fb74SAxel Dörfler BFont font; 41f877fb74SAxel Dörfler 42f877fb74SAxel Dörfler view->SetStylable(true); 43f877fb74SAxel Dörfler 44f877fb74SAxel Dörfler view->GetFont(&font); 45f877fb74SAxel Dörfler font.SetSize(18); 46f877fb74SAxel Dörfler font.SetFace(B_BOLD_FACE); 47f877fb74SAxel Dörfler view->SetFontAndColor(0, 13, &font); 48f877fb74SAxel Dörfler 49f877fb74SAxel Dörfler alert->Go(); 50f877fb74SAxel Dörfler } 51f877fb74SAxel Dörfler 52f877fb74SAxel Dörfler 53f877fb74SAxel Dörfler int 54f877fb74SAxel Dörfler main(int argc, char** argv) 55f877fb74SAxel Dörfler { 56f877fb74SAxel Dörfler VirtualMemory app; 57f877fb74SAxel Dörfler app.Run(); 58f877fb74SAxel Dörfler 59f877fb74SAxel Dörfler return 0; 60f877fb74SAxel Dörfler } 61