mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 14:25:58 +01:00
5b264395c0
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42993 a95241bf-73f2-0310-859d-f6bbb57e9c96
60 lines
718 B
C++
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;
|
|
}
|