xref: /haiku/src/add-ons/print/drivers/preview/JobSetupWindow.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Copyright 2003-2007, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Philippe Houdoin
7  *		Simon Gauvin
8  *		Michael Pfeiffer
9  */
10 
11 #ifndef JOBSETUPWINDOW_H
12 #define JOBSETUPWINDOW_H
13 
14 #include <InterfaceKit.h>
15 #include "InterfaceUtils.h"
16 #include "Utils.h"
17 
18 class JobSetupWindow : public BlockingWindow
19 {
20 public:
21 	// Constructors, destructors, operators...
22 
23 							JobSetupWindow(BMessage *msg, const char *printer_name = NULL);
24 
25 	typedef BlockingWindow 		inherited;
26 
27 	// public constantes
28 	enum	{
29 		NB_COPIES_MSG		= 'copy',
30 		ALL_PAGES_MGS		= 'all_',
31 		RANGE_SELECTION_MSG	= 'rnge',
32 		RANGE_FROM_MSG		= 'from',
33 		RANGE_TO_MSG		= 'to__',
34 		OK_MSG				= 'ok__',
35 		CANCEL_MSG			= 'cncl',
36 	};
37 
38 	// Virtual function overrides
39 public:
40 	virtual void 			MessageReceived(BMessage *msg);
41 
42 	// From here, it's none of your business! ;-)
43 private:
44 	BString                 fPrinterName;
45 	BMessage				*fSetupMsg;
46 	BRadioButton			*fAll;
47 	BRadioButton			*fRange;
48 	BTextControl			*fFrom;
49 	BTextControl			*fTo;
50 
51 	void UpdateJobMessage();
52 };
53 
54 #endif
55 
56