X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FQPrintDialog.C;h=0a49773cdd68781ad1b272f4ab176b7ce2be7950;hb=1229a2712d3f4fe1392616a6973e1830cf3124ef;hp=19831a61b78578051edaab561a944c5bea311b5a;hpb=075eb92607af281e67f3d110081ed85e0f1f0eaa;p=lyx.git diff --git a/src/frontends/qt2/QPrintDialog.C b/src/frontends/qt2/QPrintDialog.C index 19831a61b7..0a49773cdd 100644 --- a/src/frontends/qt2/QPrintDialog.C +++ b/src/frontends/qt2/QPrintDialog.C @@ -7,6 +7,15 @@ * \author Edwin Leuven, leuven@fee.uva.nl */ +#include + +#include +#include "support/filetools.h" +#include "support/lstrings.h" + +#include "QPrint.h" +#include "QPrintDialog.h" + #include #include #include @@ -15,17 +24,6 @@ #include #include -#include "QPrintDialog.h" -#include "QPrint.h" - -#include - -#include "support/filetools.h" -#include "support/lstrings.h" - -#include - - QPrintDialog::QPrintDialog(QPrint * f) : QPrintDialogBase(0, 0, false, 0), form_(f) @@ -40,11 +38,11 @@ void QPrintDialog::change_adaptor() { form_->changed(); } - - + + void QPrintDialog::browseClicked() { - QString file = QFileDialog::getOpenFileName(QString::null, + QString file = QFileDialog::getOpenFileName(QString::null, _("PostScript files (*.ps)"), this, 0, _("Select a file to print to")); if (!file.isNull()) { fileED->setText(file); @@ -52,7 +50,7 @@ void QPrintDialog::browseClicked() } } - + void QPrintDialog::fileChanged() { if (!fileED->text().isEmpty()) @@ -60,28 +58,28 @@ void QPrintDialog::fileChanged() form_->changed(); } - + void QPrintDialog::copiesChanged(int i) { collateCB->setEnabled(i != 1); form_->changed(); } - + void QPrintDialog::printerChanged() { printerRB->setChecked(true); form_->changed(); } - + void QPrintDialog::pagerangeChanged() { int from = strToUnsignedInt(fromED->text().latin1()); int to = strToUnsignedInt(toED->text().latin1()); - + if (!toED->text().isEmpty() && from > to) fromED->setText(toED->text()); - + form_->changed(); }