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 23class BMessage; 24class BRadioButton; 25class BTextControl; 26 27 28class JobSetupWindow : public BlockingWindow 29{ 30public: 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 41private: 42 void UpdateJobMessage(); 43 44private: 45 BString fPrinterName; 46 BMessage *fSetupMsg; 47 BRadioButton *fAll; 48 BRadioButton *fRange; 49 BTextControl *fFrom; 50 BTextControl *fTo; 51}; 52 53#endif 54