xref: /haiku/src/tests/add-ons/print/ppd/test/PPDConfigApplication.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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 
21 class AppWindow : public BWindow {
22 public:
23 	AppWindow(BRect);
24 	bool QuitRequested();
25 	void AboutRequested();
26 	void MessageReceived(BMessage *message);
27 
28 private:
29 	BMenuBar *fMenuBar;
30 	PPDConfigView *fConfig;
31 };
32 
33 class PPDConfigApplication : public BApplication {
34 public:
35 	AppWindow *window;
36 	PPDConfigApplication();
37 };
38 
39 #define my_app ((PPDConfigApplication*)be_app)
40 
41 #endif
42