xref: /haiku/src/add-ons/print/drivers/preview/JobSetupWindow.h (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
1 /*
2  * Copyright 2003-2008, 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  *		julun <host.haiku@gmx.de>
10  */
11 
12 #ifndef JOBSETUPWINDOW_H
13 #define JOBSETUPWINDOW_H
14 
15 
16 #include "BlockingWindow.h"
17 #include "PrintUtils.h"
18 
19 
20 #include <String.h>
21 
22 
23 class BMessage;
24 class BRadioButton;
25 class BTextControl;
26 
27 
28 class JobSetupWindow : public BlockingWindow
29 {
30 public:
31 					JobSetupWindow(BMessage *msg, const char *printer_name = NULL);
32 	virtual void 	MessageReceived(BMessage *msg);
33 
34 	enum			{
35 						ALL_PAGES_MGS = 'all_',
36 						RANGE_SELECTION_MSG	= 'rnge',
37 						OK_MSG = 'ok__',
38 						CANCEL_MSG = 'cncl',
39 					};
40 
41 private:
42 	void			UpdateJobMessage();
43 
44 private:
45 	BString			fPrinterName;
46 	BMessage		*fSetupMsg;
47 	BRadioButton	*fAll;
48 	BRadioButton	*fRange;
49 	BTextControl	*fFrom;
50 	BTextControl	*fTo;
51 };
52 
53 #endif
54