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 <Debug.h> 18 19 int 20 main() 21 { 22 ChartApp *app = new ChartApp(); 23 app->Run(); 24 25 delete app; 26 return 0; 27 } 28 29 30 ChartApp::ChartApp() : BApplication("application/x-vnd.Be.ChartDemo") 31 { 32 fWindow = new ChartWindow(BRect(120, 150, 629, 591), "Charts"); 33 34 // showing the window will also start the direct connection. If you 35 // Sync() after the show, the direct connection will be established 36 // when the Sync() return (as far as any part of the content area of 37 // the window is visible after the show). 38 fWindow->Show(); 39 } 40