/* * Copyright 2001-2010, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Michael Pfeiffer */ #ifndef _PRINTERS_WINDOW_H #define _PRINTERS_WINDOW_H #include #include class PrintersWindow; class PrinterListView; class JobListView; class Job; class SpoolFolder; class PrinterItem; class ScreenSettings; class PrintersWindow : public BWindow { public: PrintersWindow(ScreenSettings *settings); virtual ~PrintersWindow(); void MessageReceived(BMessage* msg); bool QuitRequested(); void PrintTestPage(PrinterItem* printer); void AddJob(SpoolFolder* folder, Job* job); void RemoveJob(SpoolFolder* folder, Job* job); void UpdateJob(SpoolFolder* folder, Job* job); private: ScreenSettings* fSettings; void _BuildGUI(); bool _IsSelected(PrinterItem* printer); void _UpdatePrinterButtons(); void _UpdateJobButtons(); typedef BWindow Inherited; PrinterListView* fPrinterListView; BButton* fMakeDefault; BButton* fRemove; BButton* fPrintTestPage; JobListView* fJobListView; BButton* fRestart; BButton* fCancel; BBox* fJobsBox; PrinterItem* fSelectedPrinter; bool fAddingPrinter; }; #endif // _PRINTERS_WINDOW_H