2008-04-23 09:06:05 +00:00
|
|
|
/*
|
2010-04-05 10:46:08 +00:00
|
|
|
* Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com.
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
2008-04-23 09:06:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <Application.h>
|
2010-02-27 13:13:18 +00:00
|
|
|
#include <Catalog.h>
|
2008-04-23 09:06:05 +00:00
|
|
|
|
|
|
|
#include "Pairs.h"
|
|
|
|
#include "PairsWindow.h"
|
|
|
|
|
2009-08-19 03:33:37 +00:00
|
|
|
const char* kSignature = "application/x-vnd.Haiku-Pairs";
|
2008-04-23 09:06:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
Pairs::Pairs()
|
2010-04-05 10:46:08 +00:00
|
|
|
:
|
|
|
|
BApplication(kSignature),
|
|
|
|
fWindow(NULL)
|
2008-04-23 09:06:05 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|