From 370785f8ae8cba6f06749e31aea17feeef4d852e Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 19 Apr 2019 20:35:23 +0300 Subject: [PATCH] Multiple fixes (see GUITHARE_V2.3.5_ReleaseNotes.doc, section "Additional modifications"). --- src/GLViewer/GLViewer_ViewPort2d.cxx | 2 +- src/GLViewer/GLViewer_ViewPort2d.h | 3 +++ src/LightApp/resources/LightApp.xml | 2 +- src/SUIT/SUIT_Session.cxx | 7 +++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/GLViewer/GLViewer_ViewPort2d.cxx b/src/GLViewer/GLViewer_ViewPort2d.cxx index 05df5a9dc..3eb8d48d7 100644 --- a/src/GLViewer/GLViewer_ViewPort2d.cxx +++ b/src/GLViewer/GLViewer_ViewPort2d.cxx @@ -117,7 +117,7 @@ GLViewer_ViewPort2d::GLViewer_ViewPort2d( QWidget* parent, GLViewer_ViewFrame* t myIsLegendEnabled = false; myLegendXOffset = 10.0; myLegendYOffset = 10.0; - myLegendFont = QFont( "Arial", 9 ); + myLegendFont = QFont( "Times", 12 ); } /*! diff --git a/src/GLViewer/GLViewer_ViewPort2d.h b/src/GLViewer/GLViewer_ViewPort2d.h index a8134c3eb..de9d2c1c0 100644 --- a/src/GLViewer/GLViewer_ViewPort2d.h +++ b/src/GLViewer/GLViewer_ViewPort2d.h @@ -207,6 +207,9 @@ public: //! Sets the legend text void setLegendText( const QString& theText ) { myLegendText = theText; } + //! Sets the legend font + void setLegendFont( const QFont& theFont ) { myLegendFont = theFont; } + signals: //! Emits after any transformation void vpUpdateValues(); diff --git a/src/LightApp/resources/LightApp.xml b/src/LightApp/resources/LightApp.xml index c05531b76..1740d70e7 100644 --- a/src/LightApp/resources/LightApp.xml +++ b/src/LightApp/resources/LightApp.xml @@ -88,7 +88,7 @@
- +
diff --git a/src/SUIT/SUIT_Session.cxx b/src/SUIT/SUIT_Session.cxx index fecc67c43..3dff0ed3a 100755 --- a/src/SUIT/SUIT_Session.cxx +++ b/src/SUIT/SUIT_Session.cxx @@ -536,6 +536,13 @@ void SUIT_Session::createBackupTimer() if ( !app ) return; + // With the block below, the following limitation appears: + // If the user changes the value of "Backup every N minutes" from 0 to some non-zero value, + // it is necessary to restart the application to make it generate the backup folder. + double aBackupTime = app->getBackupTime(); + if( aBackupTime < 1e-3 ) + return; + myBTimer = new QTimer( this ); connect( myBTimer, SIGNAL( timeout() ), this, SLOT( onBTimer() ) ); -- 2.39.2