0021787: [CEA 621] Desactivate preview for partition and boolean operations in preferences
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 26 KiB |
@ -36,6 +36,10 @@
|
|||||||
#include <SalomeApp_Application.h>
|
#include <SalomeApp_Application.h>
|
||||||
#include <LightApp_SelectionMgr.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()
|
// class : BooleanGUI_Dialog()
|
||||||
// purpose : Constructs a BooleanGUI_Dialog which is a child of 'parent', with the
|
// 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);
|
layout->addWidget(myGroup);
|
||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
|
#ifdef NO_PREVIEW
|
||||||
|
mainFrame()->CheckBoxPreview->setChecked( false );
|
||||||
|
mainFrame()->CheckBoxPreview->hide();
|
||||||
|
#endif
|
||||||
// Initialisation
|
// Initialisation
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,10 @@
|
|||||||
#include <TopoDS_Iterator.hxx>
|
#include <TopoDS_Iterator.hxx>
|
||||||
#include <TopoDS_Shape.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()
|
// class : OperationGUI_PartitionDlg()
|
||||||
// purpose : Constructs a OperationGUI_PartitionDlg which is a child of 'parent', with the
|
// 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" );
|
setHelpFileName( "partition_page.html" );
|
||||||
|
|
||||||
|
#ifdef NO_PREVIEW
|
||||||
|
mainFrame()->CheckBoxPreview->setChecked( false );
|
||||||
|
mainFrame()->CheckBoxPreview->hide();
|
||||||
|
#endif
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|