2 * \file QLPrintDialog.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
14 #include "controllers/ControlPrint.h"
15 #include "QLPrintDialog.h"
17 #include "qt_helpers.h"
19 #include <qcheckbox.h>
20 #include <qlineedit.h>
21 #include <qpushbutton.h>
22 #include <qradiobutton.h>
27 QLPrintDialog::QLPrintDialog(QPrint * f)
28 : QPrintDialogBase(0, 0, false, 0),
31 connect(printPB, SIGNAL(clicked()),
32 form_, SLOT(slotOK()));
33 connect(closePB, SIGNAL(clicked()),
34 form_, SLOT(slotClose()));
38 void QLPrintDialog::change_adaptor()
44 void QLPrintDialog::browseClicked()
46 QString file = toqstr(form_->controller().browse(""));
48 fileED->setText(file);
54 void QLPrintDialog::fileChanged()
56 if (!fileED->text().isEmpty())
57 fileRB->setChecked(true);
62 void QLPrintDialog::copiesChanged(int i)
64 collateCB->setEnabled(i != 1);
69 void QLPrintDialog::printerChanged()
71 printerRB->setChecked(true);
76 void QLPrintDialog::pagerangeChanged()
81 } // namespace frontend