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