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