/* * PageSetupDlg.h * Copyright 1999-2000 Y.Takagi. All Rights Reserved. */ #ifndef __PAGESETUPDLG_H #define __PAGESETUPDLG_H #include #include class BRadioButton; class BPopUpMenu; class JobData; class PrinterData; class PrinterCap; class PageSetupView : public BView { public: PageSetupView(BRect frame, JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap); ~PageSetupView(); virtual void AttachedToWindow(); bool UpdateJobData(); private: JobData *__job_data; PrinterData *__printer_data; const PrinterCap *__printer_cap; BRadioButton *__portrait; BPopUpMenu *__paper; BPopUpMenu *__resolution; }; class PageSetupDlg : public BWindow { public: PageSetupDlg(JobData *job_data, PrinterData *printer_data, const PrinterCap *printer_cap); ~PageSetupDlg(); virtual bool QuitRequested(); virtual void MessageReceived(BMessage *message); int Go(); private: int __result; long __semaphore; BMessageFilter *__filter; }; #endif /* __PAGESETUPDLG_H */