From: vsr Date: Wed, 22 Aug 2012 14:41:25 +0000 (+0000) Subject: 0021787: [CEA 621] Desactivate preview for partition and boolean operations in prefer... X-Git-Tag: V6_6_0a1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15e78623e92030e26c218fab844b77f2c4d09d89;p=modules%2Fgeom.git 0021787: [CEA 621] Desactivate preview for partition and boolean operations in preferences --- diff --git a/doc/salome/gui/GEOM/images/bool1.png b/doc/salome/gui/GEOM/images/bool1.png index 5dac3ca24..704a7a37d 100755 Binary files a/doc/salome/gui/GEOM/images/bool1.png and b/doc/salome/gui/GEOM/images/bool1.png differ diff --git a/doc/salome/gui/GEOM/images/bool2.png b/doc/salome/gui/GEOM/images/bool2.png index a14fec4e8..026e60705 100755 Binary files a/doc/salome/gui/GEOM/images/bool2.png and b/doc/salome/gui/GEOM/images/bool2.png differ diff --git a/doc/salome/gui/GEOM/images/bool3.png b/doc/salome/gui/GEOM/images/bool3.png index 1e8941a3c..11c5ade72 100755 Binary files a/doc/salome/gui/GEOM/images/bool3.png and b/doc/salome/gui/GEOM/images/bool3.png differ diff --git a/doc/salome/gui/GEOM/images/neo-section.png b/doc/salome/gui/GEOM/images/neo-section.png index 532d1f835..901b1f3c2 100755 Binary files a/doc/salome/gui/GEOM/images/neo-section.png and b/doc/salome/gui/GEOM/images/neo-section.png differ diff --git a/doc/salome/gui/GEOM/images/partition1.png b/doc/salome/gui/GEOM/images/partition1.png index baf8c4ac9..b0136adb8 100755 Binary files a/doc/salome/gui/GEOM/images/partition1.png and b/doc/salome/gui/GEOM/images/partition1.png differ diff --git a/doc/salome/gui/GEOM/images/partition2.png b/doc/salome/gui/GEOM/images/partition2.png index 12b92335b..38b3dd474 100755 Binary files a/doc/salome/gui/GEOM/images/partition2.png and b/doc/salome/gui/GEOM/images/partition2.png differ diff --git a/src/BooleanGUI/BooleanGUI_Dialog.cxx b/src/BooleanGUI/BooleanGUI_Dialog.cxx index 0972a7989..94143574e 100644 --- a/src/BooleanGUI/BooleanGUI_Dialog.cxx +++ b/src/BooleanGUI/BooleanGUI_Dialog.cxx @@ -36,6 +36,10 @@ #include #include +// VSR 22/08/2012: issue 0021787: remove "Preview" button from BOP and Partition operations +// Comment next line to enable preview in BOP dialog box +#define NO_PREVIEW + //================================================================================= // class : BooleanGUI_Dialog() // purpose : Constructs a BooleanGUI_Dialog which is a child of 'parent', with the @@ -110,6 +114,10 @@ BooleanGUI_Dialog::BooleanGUI_Dialog (const int theOperation, GeometryGUI* theGe layout->addWidget(myGroup); /***************************************************************/ +#ifdef NO_PREVIEW + mainFrame()->CheckBoxPreview->setChecked( false ); + mainFrame()->CheckBoxPreview->hide(); +#endif // Initialisation Init(); } diff --git a/src/OperationGUI/OperationGUI_PartitionDlg.cxx b/src/OperationGUI/OperationGUI_PartitionDlg.cxx index 5c940f1ea..c6dd6c14b 100644 --- a/src/OperationGUI/OperationGUI_PartitionDlg.cxx +++ b/src/OperationGUI/OperationGUI_PartitionDlg.cxx @@ -42,6 +42,10 @@ #include #include +// VSR 22/08/2012: issue 0021787: remove "Preview" button from BOP and Partition operations +// Comment next line to enable preview in Partition dialog box +#define NO_PREVIEW + //================================================================================= // class : OperationGUI_PartitionDlg() // purpose : Constructs a OperationGUI_PartitionDlg which is a child of 'parent', with the @@ -89,6 +93,10 @@ OperationGUI_PartitionDlg::OperationGUI_PartitionDlg( GeometryGUI* theGeometryGU setHelpFileName( "partition_page.html" ); +#ifdef NO_PREVIEW + mainFrame()->CheckBoxPreview->setChecked( false ); + mainFrame()->CheckBoxPreview->hide(); +#endif Init(); }