1/* 2 3 Chart.cpp 4 5 by Pierre Raynaud-Richard. 6 7*/ 8 9/* 10 Copyright 1999, Be Incorporated. All Rights Reserved. 11 This file may be used under the terms of the Be Sample Code License. 12*/ 13 14#include "ChartWindow.h" 15#include "Chart.h" 16 17#include <Catalog.h> 18#include <Debug.h> 19 20#undef B_TRANSLATION_CONTEXT 21#define B_TRANSLATION_CONTEXT "Chart" 22 23int 24main() 25{ 26 ChartApp *app = new ChartApp(); 27 app->Run(); 28 29 delete app; 30 return 0; 31} 32 33 34ChartApp::ChartApp() : BApplication("application/x-vnd.Haiku-ChartDemo") 35{ 36 fWindow = new ChartWindow(BRect(120, 150, 965, 591), 37 B_TRANSLATE_SYSTEM_NAME("Chart")); 38 39 // showing the window will also start the direct connection. If you 40 // Sync() after the show, the direct connection will be established 41 // when the Sync() return (as far as any part of the content area of 42 // the window is visible after the show). 43 fWindow->Show(); 44} 45