#include "LyXRC.h"
#include "support/convert.h"
-#include "support/FileFilterList.h"
#include "support/filetools.h"
-#include "support/gettext.h"
#include "support/os.h"
#include <QLineEdit>
connect(allRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(reverseCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(collateCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
- connect(fromED, SIGNAL(textChanged(const QString&)),
+ connect(fromED, SIGNAL(textChanged(QString)),
this, SLOT(pagerangeChanged()));
- connect(fromED, SIGNAL(textChanged(const QString&)),
+ connect(fromED, SIGNAL(textChanged(QString)),
this, SLOT(change_adaptor()));
- connect(toED, SIGNAL(textChanged(const QString&)),
+ connect(toED, SIGNAL(textChanged(QString)),
this, SLOT(pagerangeChanged()));
- connect(toED, SIGNAL(textChanged(const QString&)),
+ connect(toED, SIGNAL(textChanged(QString)),
this, SLOT(change_adaptor()));
connect(fileRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
connect(printerRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
void GuiPrint::browseClicked()
{
QString file =
- browseRelFile(QString(), bufferFilepath(), qt_("Print to file"),
- FileFilterList(_("PostScript files (*.ps)")), true);
+ browseRelToParent(QString(), bufferFilePath(), qt_("Print to file"),
+ QStringList(qt_("PostScript files (*.ps)")), true);
if (!file.isEmpty()) {
fileED->setText(file);
changed();
collateCB->setChecked(params_.sorted_copies);
- if (params_.all_pages) {
+ if (params_.all_pages)
allRB->setChecked(true);
- } else {
+ else {
rangeRB->setChecked(true);
fromED->setText(QString::number(params_.from_page));
toED->setText(QString::number(params_.to_page));
bool GuiPrint::initialiseParams(string const &)
{
/// get global printer parameters
- string const name = support::changeExtension(buffer().absFileName(),
- lyxrc.print_file_extension);
params_ = PrinterParams();
- params_.file_name = name;
+ params_.file_name = support::changeExtension(buffer().absFileName(),
+ lyxrc.print_file_extension);
setButtonsValid(true); // so that the user can press Ok
return true;
} // namespace frontend
} // namespace lyx
-#include "GuiPrint_moc.cpp"
+#include "moc_GuiPrint.cpp"