0021787: [CEA 621] Desactivate preview for partition and boolean operations in preferences

This commit is contained in:
vsr 2012-08-22 14:41:25 +00:00
parent 101ba2640b
commit 15e78623e9
8 changed files with 16 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -36,6 +36,10 @@
#include <SalomeApp_Application.h>
#include <LightApp_SelectionMgr.h>
// 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();
}

View File

@ -42,6 +42,10 @@
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Shape.hxx>
// 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();
}