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"
16 #include "support/filetools.h"
17 #include "support/lstrings.h"
20 #include "QLPrintDialog.h"
22 #include <qfiledialog.h>
23 #include <qcheckbox.h>
25 #include <qlineedit.h>
26 #include <qpushbutton.h>
27 #include <qradiobutton.h>
31 QLPrintDialog::QLPrintDialog(QPrint * f)
32 : QPrintDialogBase(0, 0, false, 0),
35 connect(printPB, SIGNAL(clicked()),
36 form_, SLOT(slotOK()));
37 connect(closePB, SIGNAL(clicked()),
38 form_, SLOT(slotClose()));
42 void QLPrintDialog::change_adaptor()
48 void QLPrintDialog::browseClicked()
51 QFileDialog::getOpenFileName(QString::null,
52 qt_("PostScript files (*.ps)"),
54 qt_("Select a file to print to"));
56 fileED->setText(file);
62 void QLPrintDialog::fileChanged()
64 if (!fileED->text().isEmpty())
65 fileRB->setChecked(true);
70 void QLPrintDialog::copiesChanged(int i)
72 collateCB->setEnabled(i != 1);
77 void QLPrintDialog::printerChanged()
79 printerRB->setChecked(true);
84 void QLPrintDialog::pagerangeChanged()