]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
16836: export of Plot2d graphs to EPS
authorasl <asl@opencascade.com>
Thu, 15 Jan 2009 08:44:36 +0000 (08:44 +0000)
committerasl <asl@opencascade.com>
Thu, 15 Jan 2009 08:44:36 +0000 (08:44 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx
src/Plot2d/Plot2d_ViewWindow.cxx
src/Plot2d/resources/Plot2d_msg_en.ts

index 9804cbed5e4e290ebf60c5cb0061fd44d12ab548..d57f3e94deee1ea1c44b95eeb264a43449d96e84 100755 (executable)
@@ -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 );
index 76d5b3795b07b36e81629bb6e10f2bbdafe9984e..6fcdd26427612c1fb6fae3e3dce38fa7536eba1e 100755 (executable)
@@ -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( ";;" );
 }
 
index b548c872a527750ac6a7ebbc7ac53edb7aadb50b..a7fc711b61ed9a697696029906ad5b98778c8bd3 100644 (file)
         <source>POSTSCRIPT_FILES</source>
         <translation>PostScript files (*.ps)</translation>
     </message>
+    <message>
+        <source>ENCAPSULATED_POSTSCRIPT_FILES</source>
+        <translation>Encapsulated PostScript files (*.eps)</translation>
+    </message>
     <message>
         <source>DSC_GLOBALPAN_VIEW</source>
         <translation>Selection of a new center of the view</translation>