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