1*4420c1ceSMichael Pfeiffer /* 2*4420c1ceSMichael Pfeiffer * Copyright 2008, Haiku. 3*4420c1ceSMichael Pfeiffer * Distributed under the terms of the MIT license. 4*4420c1ceSMichael Pfeiffer * 5*4420c1ceSMichael Pfeiffer * Authors: 6*4420c1ceSMichael Pfeiffer * Michael Pfeiffer <laplace@users.sourceforge.net> 7*4420c1ceSMichael Pfeiffer */ 8*4420c1ceSMichael Pfeiffer 9*4420c1ceSMichael Pfeiffer #ifndef _PPD_CONFIG_H 10*4420c1ceSMichael Pfeiffer #define _PPD_CONFIG_H 11*4420c1ceSMichael Pfeiffer 12*4420c1ceSMichael Pfeiffer #include <AppKit.h> 13*4420c1ceSMichael Pfeiffer #include <InterfaceKit.h> 14*4420c1ceSMichael Pfeiffer #include "PPDConfigView.h" 15*4420c1ceSMichael Pfeiffer #include "MsgConsts.h" 16*4420c1ceSMichael Pfeiffer 17*4420c1ceSMichael Pfeiffer #define APPLICATION "PPD Printer Selection and Configuration Prototype" 18*4420c1ceSMichael Pfeiffer #define SIGNATURE "application/x-vnd.mwp-ppd-prototype" 19*4420c1ceSMichael Pfeiffer #define VERSION "1.0" 20*4420c1ceSMichael Pfeiffer 21*4420c1ceSMichael Pfeiffer class AppWindow : public BWindow { 22*4420c1ceSMichael Pfeiffer public: 23*4420c1ceSMichael Pfeiffer AppWindow(BRect); 24*4420c1ceSMichael Pfeiffer bool QuitRequested(); 25*4420c1ceSMichael Pfeiffer void AboutRequested(); 26*4420c1ceSMichael Pfeiffer void MessageReceived(BMessage *message); 27*4420c1ceSMichael Pfeiffer 28*4420c1ceSMichael Pfeiffer private: 29*4420c1ceSMichael Pfeiffer BMenuBar *fMenuBar; 30*4420c1ceSMichael Pfeiffer PPDConfigView *fConfig; 31*4420c1ceSMichael Pfeiffer }; 32*4420c1ceSMichael Pfeiffer 33*4420c1ceSMichael Pfeiffer class PPDConfigApplication : public BApplication { 34*4420c1ceSMichael Pfeiffer public: 35*4420c1ceSMichael Pfeiffer AppWindow *window; 36*4420c1ceSMichael Pfeiffer PPDConfigApplication(); 37*4420c1ceSMichael Pfeiffer }; 38*4420c1ceSMichael Pfeiffer 39*4420c1ceSMichael Pfeiffer #define my_app ((PPDConfigApplication*)be_app) 40*4420c1ceSMichael Pfeiffer 41*4420c1ceSMichael Pfeiffer #endif 42