]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
*** empty log message ***
authorvsv <vsv@opencascade.com>
Mon, 8 Sep 2008 06:46:14 +0000 (06:46 +0000)
committervsv <vsv@opencascade.com>
Mon, 8 Sep 2008 06:46:14 +0000 (06:46 +0000)
src/VISUGUI/VISU_msg_en.ts
src/VISUGUI/VisuGUI_Prs3dDlg.cxx

index e43466e1c0f1e4fee0553e5934b712326a332dbd..5ff2255daeeed1952b1987d8a103fafcf6d7bc6c 100644 (file)
@@ -2015,7 +2015,7 @@ Please, provide non-empty resulting presentation.</translation>
         </message>
         <message>
             <source>SAVE_DEFAULT_CHK</source>
-            <translation>Save as default values</translation>
+            <translation>Save as default</translation>
         </message>
         <message>
             <source>SCALAR_RANGE_GRP</source>
@@ -2806,7 +2806,7 @@ Please, provide non-empty resulting presentation.</translation>
         </message>
         <message>
             <source>LBL_SHOW_PREVIEW</source>
-            <translation>Show preview</translation>
+            <translation>Preview</translation>
         </message>
         <message>
             <source>SHOW_DISTRIBUTION</source>
@@ -2846,7 +2846,7 @@ Please, provide non-empty resulting presentation.</translation>
         </message>
         <message>
             <source>SAVE_DEFAULT_CHK</source>
-            <translation>Save as default values</translation>
+            <translation>Save as default</translation>
         </message>
         <message>
             <source>SCALAR_RANGE_GRP</source>
index ef7a47414f6b066fa65cbf15483fbdde43bfdbf1..8d07bf99c58df75bb11ff8bebb385d8f68b5ad57 100644 (file)
@@ -791,14 +791,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane( QWidget* parent, bool thePreview )
   // Save check box ===========================================================
   QWidget* aSaveBox = new QWidget(this);
   aMainLayout->addWidget( aSaveBox );
-  QVBoxLayout* aVBLay = new QVBoxLayout( aSaveBox );
-  if (!thePreview) {
-    CBSave = new QCheckBox (tr("SAVE_DEFAULT_CHK"), aSaveBox);
-    aVBLay->addWidget( CBSave );
-  }
-  else {
-    CBSave = 0;
-  }
+  QHBoxLayout* aVBLay = new QHBoxLayout( aSaveBox );
   aVBLay->addWidget( myTextBtn = new QPushButton("Text properties...", aSaveBox) );
   aVBLay->addWidget( myBarBtn  = new QPushButton("Bar properties...",  aSaveBox) );
   
@@ -808,21 +801,24 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane( QWidget* parent, bool thePreview )
 
   QGroupBox* CheckGroup = new QGroupBox("", this );
   aMainLayout->addWidget( CheckGroup );
-  QGridLayout* CheckGroupLayout = new QGridLayout( CheckGroup );
+  QHBoxLayout* CheckGroupLayout = new QHBoxLayout( CheckGroup );
   
   myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), CheckGroup);
   myPreviewCheck->setChecked(false);
+  //myPreviewCheck->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  CheckGroupLayout->addWidget(myPreviewCheck);
   
 // RKV : Begin
-  myPreviewCheck->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
   CBDistr = new QCheckBox (tr("SHOW_DISTRIBUTION"), CheckGroup);
-  CBDistr->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  //CBDistr->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
+  CheckGroupLayout->addWidget(CBDistr);
 // RKV : End
-
-  CheckGroupLayout->addWidget(myPreviewCheck , 0, 0 );
-  CheckGroupLayout->addWidget(CBDistr , 0, 2 ); // RKV
-
-  if ( thePreview ) {
+  if (!thePreview) {
+    CBSave = new QCheckBox (tr("SAVE_DEFAULT_CHK"), CheckGroup);
+    CheckGroupLayout->addWidget( CBSave );
+  }
+  else {
+    CBSave = 0;
     myPreviewCheck->hide();
     CheckGroup->hide();
   }