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.
15 #include "qt_helpers.h"
18 #include "QLPrintDialog.h"
20 #include <qfiledialog.h>
21 #include <qcheckbox.h>
22 #include <qlineedit.h>
23 #include <qpushbutton.h>
24 #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()
47 QFileDialog::getOpenFileName(QString::null,
48 qt_("PostScript files (*.ps)"),
50 qt_("Select a file to print to"));
52 fileED->setText(file);
58 void QLPrintDialog::fileChanged()
60 if (!fileED->text().isEmpty())
61 fileRB->setChecked(true);
66 void QLPrintDialog::copiesChanged(int i)
68 collateCB->setEnabled(i != 1);
73 void QLPrintDialog::printerChanged()
75 printerRB->setChecked(true);
80 void QLPrintDialog::pagerangeChanged()