BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / sudoku / Sudoku.cpp
blob475c8814b823badad73902c69c1ca9b495f52af0
1 /*
2 * Copyright 2007-2011, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "Sudoku.h"
9 #include "SudokuWindow.h"
11 #include <stdlib.h>
13 #include <Alert.h>
14 #include <Application.h>
15 #include <Catalog.h>
16 #include <TextView.h>
19 #undef B_TRANSLATION_CONTEXT
20 #define B_TRANSLATION_CONTEXT "Sudoku"
23 const char* kSignature = "application/x-vnd.Haiku-Sudoku";
26 Sudoku::Sudoku()
28 BApplication(kSignature)
33 Sudoku::~Sudoku()
38 void
39 Sudoku::ReadyToRun()
41 fWindow = new SudokuWindow();
42 fWindow->Show();
46 void
47 Sudoku::RefsReceived(BMessage* message)
49 fWindow->PostMessage(message);
53 void
54 Sudoku::MessageReceived(BMessage* message)
56 BApplication::MessageReceived(message);
60 // #pragma mark -
63 int
64 main(int /*argc*/, char** /*argv*/)
66 srand(system_time() % INT_MAX);
68 Sudoku sudoku;
69 sudoku.Run();
71 return 0;