headers/bsd: Add sys/queue.h.
[haiku.git] / src / tests / add-ons / print / ppd / ui / PrinterSelection.h
blob54f0266bc02012e3cb619f4aef79db634832b34d
1 /*
2 * Copyright 2008, Haiku.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
9 #ifndef _PRINTER_SELECTION_H
10 #define _PRINTER_SELECTION_H
12 #include "PPD.h"
14 #include <Invoker.h>
15 #include <View.h>
16 #include <ListItem.h>
17 #include <ListView.h>
19 class FileItem : public BStringItem
21 private:
22 BString fFile;
24 public:
25 FileItem(const char* label, const char* file)
26 : BStringItem(label)
27 , fFile(file)
31 const char* GetFile() { return fFile.String(); }
34 class PrinterSelectionView : public BView, public BInvoker
36 private:
37 BListView* fVendors;
38 BListView* fPrinters;
40 public:
41 PrinterSelectionView(BRect rect, const char *name, uint32 resizeMask, uint32 flags);
43 void AttachedToWindow();
45 void FillVendors();
46 void FillPrinters(const char* vendor);
47 void MessageReceived(BMessage* msg);
49 #endif