committed by
Kacper Donat
parent
be0c0e7a74
commit
bbfbb6e059
@@ -94,15 +94,19 @@ MDIViewPage::MDIViewPage(ViewProviderPage* pageVp, Gui::Document* doc, QWidget*
|
||||
connect(m_toggleFrameAction, &QAction::triggered, this, &MDIViewPage::toggleFrame);
|
||||
|
||||
m_exportSVGAction = new QAction(tr("&Export SVG"), this);
|
||||
|
||||
connect(m_exportSVGAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::saveSVG));
|
||||
|
||||
m_exportDXFAction = new QAction(tr("Export DXF"), this);
|
||||
|
||||
connect(m_exportDXFAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::saveDXF));
|
||||
|
||||
m_exportPDFAction = new QAction(tr("Export PDF"), this);
|
||||
|
||||
connect(m_exportPDFAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::savePDF));
|
||||
|
||||
m_printAllAction = new QAction(tr("Print All Pages"), this);
|
||||
|
||||
connect(m_printAllAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::printAllPages));
|
||||
|
||||
isSelectionBlocked = false;
|
||||
@@ -312,7 +316,8 @@ void MDIViewPage::printPdf()
|
||||
filter << QObject::tr("PDF (*.pdf)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export Page As PDF"),
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export Page as PDF"),
|
||||
|
||||
QString(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -488,9 +493,10 @@ void MDIViewPage::saveSVG()
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QStringLiteral("SVG (*.svg)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
filter << QObject::tr("All files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as SVG"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -509,9 +515,10 @@ void MDIViewPage::saveDXF()
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QStringLiteral("DXF (*.dxf)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
filter << QObject::tr("All files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as DXF"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -536,6 +543,7 @@ void MDIViewPage::savePDF()
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as PDF"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user