2 * Copyright 2001-2007, Haiku.
3 * Distributed under the terms of the MIT License.
9 #ifndef _ADD_PRINTER_DIALOG_H
10 #define _ADD_PRINTER_DIALOG_H
15 #include <PopUpMenu.h>
16 #include <TextControl.h>
20 class AddPrinterDialog
: public BWindow
{
21 typedef BWindow Inherited
;
23 AddPrinterDialog(BWindow
*parent
);
25 void MessageReceived(BMessage
*msg
);
30 kPrinterSelectedMsg
= 'adlg',
31 kTransportSelectedMsg
,
36 void _AddPrinter(BMessage
*msg
);
37 void _StorePrinter(BMessage
*msg
);
38 void _HandleChangedTransport(BMessage
*msg
);
40 void _BuildGUI(int stage
);
41 void _FillTransportMenu(BMenu
*menu
);
42 void _FillMenu(BMenu
*menu
, const char *path
,
44 void _AddPortSubMenu(BMenu
*menu
,
45 const char *transport
, const char *port
);
48 BMessenger fPrintersPrefletMessenger
;
52 BPopUpMenu
* fTransport
;
57 BString fTransportText
;
58 BString fTransportPathText
;
61 #endif // _ADD_PRINTER_DIALOG_H