1 /* 2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com. 3 * All rights reserved. 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 : 20 BApplication(kSignature), 21 fWindow(NULL) 22 { 23 be_locale->GetAppCatalog(&fCatalog); 24 } 25 26 27 Pairs::~Pairs() 28 { 29 } 30 31 32 void 33 Pairs::ReadyToRun() 34 { 35 fWindow = new PairsWindow(); 36 fWindow->Show(); 37 } 38 39 40 void 41 Pairs::RefsReceived(BMessage* message) 42 { 43 fWindow->PostMessage(message); 44 } 45 46 47 void 48 Pairs::MessageReceived(BMessage* message) 49 { 50 BApplication::MessageReceived(message); 51 } 52 53 54 int 55 main(void) 56 { 57 Pairs pairs; 58 pairs.Run(); 59 60 return 0; 61 } 62