haiku/src/apps/pairs/Pairs.cpp
Adrien Destugues 5b264395c0 Patch by Karvjorm (#7348): localize Pairs application name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-30 09:10:23 +00:00

60 lines
718 B
C++

/*
* Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <stdlib.h>
#include <Application.h>
#include <Catalog.h>
#include "Pairs.h"
#include "PairsWindow.h"
const char* kSignature = "application/x-vnd.Haiku-Pairs";
Pairs::Pairs()
:
BApplication(kSignature),
fWindow(NULL)
{
}
Pairs::~Pairs()
{
}
void
Pairs::ReadyToRun()
{
fWindow = new PairsWindow();
fWindow->Show();
}
void
Pairs::RefsReceived(BMessage* message)
{
fWindow->PostMessage(message);
}
void
Pairs::MessageReceived(BMessage* message)
{
BApplication::MessageReceived(message);
}
int
main(void)
{
Pairs pairs;
pairs.Run();
return 0;
}