xref: /haiku/src/add-ons/print/drivers/gutenprint/SelectPrinterDialog.h (revision 9295cd647f7e9e3fbdea2355096b5d3c949a0d1c)
1 #ifndef SELECT_PRINTER_DIALOG_H
2 #define SELECT_PRINTER_DIALOG_H
3 
4 
5 #include <storage/FindDirectory.h>
6 
7 #include "DialogWindow.h"
8 #include "GPData.h"
9 
10 
11 class BListView;
12 class BButton;
13 class PSData;
14 
15 
16 class SelectPrinterDialog : public DialogWindow {
17 public:
18 				SelectPrinterDialog(GPData* data);
19 
20 	void		MessageReceived(BMessage* msg);
21 private:
22 	void		PopulateManufacturers();
23 	void		PopulatePrinters();
24 	BString		GetSelectedItemValue(BListView* listView);
25 	void		PrinterSelected();
26 	void		Save();
27 
28 	BListView*	fManufacturersListView;
29 	BListView*	fPrintersListView;
30 	BButton*	fOKButton;
31 
32 	GPData*		fData;
33 };
34 
35 #endif // SELECTPPDDLG_H
36