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