1 /* 2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include <stdlib.h> 7 8 #include <Application.h> 9 #include <Catalog.h> 10 #include <Locale.h> 11 12 #include "Pairs.h" 13 #include "PairsWindow.h" 14 15 const char* kSignature = "application/x-vnd.Haiku-Pairs"; 16 17 18 Pairs::Pairs() 19 : BApplication(kSignature), 20 fWindow(NULL) 21 { 22 be_locale->GetAppCatalog(&fCatalog); 23 } 24 25 26 Pairs::~Pairs() 27 { 28 } 29 30 31 void 32 Pairs::ReadyToRun() 33 { 34 fWindow = new PairsWindow(); 35 fWindow->Show(); 36 } 37 38 39 void 40 Pairs::RefsReceived(BMessage* message) 41 { 42 fWindow->PostMessage(message); 43 } 44 45 46 void 47 Pairs::MessageReceived(BMessage* message) 48 { 49 BApplication::MessageReceived(message); 50 } 51 52 53 int 54 main(void) 55 { 56 Pairs pairs; 57 pairs.Run(); 58 59 return 0; 60 } 61