// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_ShapeProcessDlg::RepairGUI_ShapeProcessDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_ShapeProcessDlg::RepairGUI_ShapeProcessDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
+ const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
+ WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
+ setHelpFileName("shape_processing.htm");
init();
}
-
//=================================================================================
// function : ~RepairGUI_ShapeProcessDlg()
// purpose : Destroys the object and frees any allocated resources
{
}
-
//=================================================================================
// function : Init()
// purpose :
myStack->addWidget( aFrame, myOpLst.findIndex( "SameParameter" ) );
// signals and slots connections
- connect( myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(deactivate()) );
- connect( myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(onCancel()) );
-
- connect( buttonCancel, SIGNAL(clicked()), this, SLOT(onCancel()) );
connect( buttonOk, SIGNAL(clicked()), this, SLOT(onOk()) );
connect( buttonApply, SIGNAL(clicked()), this, SLOT(onApply()) );
//=================================================================================
void RepairGUI_ShapeProcessDlg::onOk()
{
- if ( onApply() )
- onCancel();
+ if (onApply())
+ ClickOnCancel();
}
-
-
//=================================================================================
// function : onApply()
// purpose :
}
-//=================================================================================
-// function : onCancel()
-// purpose :
-//=================================================================================
-void RepairGUI_ShapeProcessDlg::onCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-
//=================================================================================
// function : selectionChanged()
// purpose : Called when selection as changed or other case
}
-//=================================================================================
-// function : deactivate()
-// purpose :
-//=================================================================================
-void RepairGUI_ShapeProcessDlg::deactivate()
-{
- //myGeomGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-
//=================================================================================
// function : activate()
// purpose :
{
QButton* btn = (QButton*)sender();
if ( on && btn->isToggleButton() &&
- QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr( "GEOM_WRN_WARNING" ), tr( "TIME_CONSUMING" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
+ QMessageBox::warning(myGeomGUI->getApp()->desktop(),
+ tr( "GEOM_WRN_WARNING" ), tr( "TIME_CONSUMING" ),
+ QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
btn->toggle();
}