1bee3c7a9SAlexandre Deckner /* 2bee3c7a9SAlexandre Deckner * Copyright 2009, Haiku Inc. All rights reserved. 3bee3c7a9SAlexandre Deckner * Distributed under the terms of the MIT License. 4bee3c7a9SAlexandre Deckner * 5bee3c7a9SAlexandre Deckner * Authors: 6bee3c7a9SAlexandre Deckner * Alexandre Deckner <alex@zappotek.com> 7bee3c7a9SAlexandre Deckner */ 8bee3c7a9SAlexandre Deckner 9bee3c7a9SAlexandre Deckner 10bee3c7a9SAlexandre Deckner #include "App.h" 11*11c7ff53SJonas Sundström 12bee3c7a9SAlexandre Deckner #include "MainWindow.h" 13bee3c7a9SAlexandre Deckner 14bee3c7a9SAlexandre Deckner App()15bee3c7a9SAlexandre DecknerApp::App() 16bee3c7a9SAlexandre Deckner : 17d12a4384SAlexandre Deckner BApplication("application/x-vnd.Haiku-Haiku3d"), 18d12a4384SAlexandre Deckner fMainWindow(NULL) 19bee3c7a9SAlexandre Deckner { 20bee3c7a9SAlexandre Deckner } 21bee3c7a9SAlexandre Deckner 22bee3c7a9SAlexandre Deckner ~App()23bee3c7a9SAlexandre DecknerApp::~App() 24bee3c7a9SAlexandre Deckner { 25bee3c7a9SAlexandre Deckner } 26bee3c7a9SAlexandre Deckner 27bee3c7a9SAlexandre Deckner 28d12a4384SAlexandre Deckner void ReadyToRun()29d12a4384SAlexandre DecknerApp::ReadyToRun() 30d12a4384SAlexandre Deckner { 31d12a4384SAlexandre Deckner BRect frame(50, 50, 640 + 50, 480 + 50); 32d12a4384SAlexandre Deckner const char* title = "Haiku3d"; 33d12a4384SAlexandre Deckner fMainWindow = new MainWindow(frame, title); 34d12a4384SAlexandre Deckner fMainWindow->Show(); 35d12a4384SAlexandre Deckner } 36d12a4384SAlexandre Deckner 37d12a4384SAlexandre Deckner 38d12a4384SAlexandre Deckner bool QuitRequested()39d12a4384SAlexandre DecknerApp::QuitRequested() 40bee3c7a9SAlexandre Deckner { 41d12a4384SAlexandre Deckner return true; 42bee3c7a9SAlexandre Deckner } 43bee3c7a9SAlexandre Deckner 44bee3c7a9SAlexandre Deckner 45bee3c7a9SAlexandre Deckner int main(int argc,char ** argv)46bee3c7a9SAlexandre Decknermain(int argc, char** argv) 47bee3c7a9SAlexandre Deckner { 48bee3c7a9SAlexandre Deckner App app; 49bee3c7a9SAlexandre Deckner app.Run(); 50bee3c7a9SAlexandre Deckner return 0; 51bee3c7a9SAlexandre Deckner } 52