From eebe64a749e61d79c680b4dfcf1179219e35f214 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 15 Jan 2009 08:44:36 +0000 Subject: [PATCH] 16836: export of Plot2d graphs to EPS --- src/Plot2d/Plot2d_ViewFrame.cxx | 2 +- src/Plot2d/Plot2d_ViewWindow.cxx | 1 + src/Plot2d/resources/Plot2d_msg_en.ts | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 9804cbed5..d57f3e94d 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -2004,7 +2004,7 @@ bool Plot2d_ViewFrame::print( const QString& file, const QString& format ) const if( myPlot ) { QPaintDevice* pd = 0; - if( format=="PS" ) + if( format=="PS" || format=="EPS" ) { QPrinter* pr = new QPrinter( QPrinter::HighResolution ); pr->setPageSize( QPrinter::A4 ); diff --git a/src/Plot2d/Plot2d_ViewWindow.cxx b/src/Plot2d/Plot2d_ViewWindow.cxx index 76d5b3795..6fcdd2642 100755 --- a/src/Plot2d/Plot2d_ViewWindow.cxx +++ b/src/Plot2d/Plot2d_ViewWindow.cxx @@ -619,6 +619,7 @@ QString Plot2d_ViewWindow::filter() const { QStringList filters = SUIT_ViewWindow::filter().split( ";;", QString::SkipEmptyParts ); filters << tr( "POSTSCRIPT_FILES" ); + filters << tr( "ENCAPSULATED_POSTSCRIPT_FILES" ); return filters.join( ";;" ); } diff --git a/src/Plot2d/resources/Plot2d_msg_en.ts b/src/Plot2d/resources/Plot2d_msg_en.ts index b548c872a..a7fc711b6 100644 --- a/src/Plot2d/resources/Plot2d_msg_en.ts +++ b/src/Plot2d/resources/Plot2d_msg_en.ts @@ -64,6 +64,10 @@ POSTSCRIPT_FILES PostScript files (*.ps) + + ENCAPSULATED_POSTSCRIPT_FILES + Encapsulated PostScript files (*.eps) + DSC_GLOBALPAN_VIEW Selection of a new center of the view -- 2.39.2