1*8002202dSMichael Pfeiffer #ifndef CONNECT_APP_H 2*8002202dSMichael Pfeiffer #define CONNECT_APP_H 3*8002202dSMichael Pfeiffer 4*8002202dSMichael Pfeiffer #include <AppKit.h> 5*8002202dSMichael Pfeiffer #include <InterfaceKit.h> 6*8002202dSMichael Pfeiffer #include "PathView.h" 7*8002202dSMichael Pfeiffer #include "MsgConsts.h" 8*8002202dSMichael Pfeiffer 9*8002202dSMichael Pfeiffer #define APPLICATION "LinePathBuilder" 10*8002202dSMichael Pfeiffer #define VERSION "1.0" 11*8002202dSMichael Pfeiffer 12*8002202dSMichael Pfeiffer class AppWindow : public BWindow { 13*8002202dSMichael Pfeiffer public: 14*8002202dSMichael Pfeiffer BMenuBar *menubar; 15*8002202dSMichael Pfeiffer PathView *view; 16*8002202dSMichael Pfeiffer AppWindow(BRect); 17*8002202dSMichael Pfeiffer bool QuitRequested(); 18*8002202dSMichael Pfeiffer void AboutRequested(); 19*8002202dSMichael Pfeiffer void MessageReceived(BMessage *message); 20*8002202dSMichael Pfeiffer }; 21*8002202dSMichael Pfeiffer 22*8002202dSMichael Pfeiffer class App : public BApplication { 23*8002202dSMichael Pfeiffer public: 24*8002202dSMichael Pfeiffer AppWindow *window; 25*8002202dSMichael Pfeiffer App(); 26*8002202dSMichael Pfeiffer }; 27*8002202dSMichael Pfeiffer 28*8002202dSMichael Pfeiffer #define my_app ((App*)be_app) 29*8002202dSMichael Pfeiffer #endif 30