2009-02-13 17:16:39 +05:00
|
|
|
// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
2005-01-20 11:24:17 +05:00
|
|
|
//
|
2009-02-13 17:16:39 +05:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
2005-01-20 11:24:17 +05:00
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
//
|
2009-02-13 17:16:39 +05:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2005-01-20 11:24:17 +05:00
|
|
|
//
|
2009-02-13 17:16:39 +05:00
|
|
|
// GEOM GEOMGUI : GUI for Geometry component
|
|
|
|
// File : RepairGUI_FreeFacesDlg.cxx
|
|
|
|
// Author : Vladimir KLYACHIN, Open CASCADE S.A.S. (vladimir.klyachin@opencascade.com)
|
2005-01-20 11:24:17 +05:00
|
|
|
//
|
|
|
|
#include "RepairGUI_FreeFacesDlg.h"
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
#include <LightApp_Application.h>
|
|
|
|
#include <LightApp_SelectionMgr.h>
|
|
|
|
#include <SalomeApp_Application.h>
|
|
|
|
#include <SalomeApp_Tools.h>
|
2005-06-10 18:43:15 +06:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
#include <SUIT_MessageBox.h>
|
|
|
|
#include <SUIT_Session.h>
|
|
|
|
#include <SUIT_OverrideCursor.h>
|
|
|
|
#include <SUIT_Desktop.h>
|
|
|
|
#include <SUIT_ResourceMgr.h>
|
2005-01-20 11:24:17 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
#include <GEOMImpl_Types.hxx>
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
#include <TopTools_IndexedMapOfShape.hxx>
|
2005-06-02 13:17:09 +06:00
|
|
|
#include <TColStd_MapOfInteger.hxx>
|
2005-01-20 11:24:17 +05:00
|
|
|
#include <TopExp.hxx>
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
#include <GEOMBase.h>
|
|
|
|
#include <GeometryGUI.h>
|
|
|
|
#include <GEOM_Displayer.h>
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QHBoxLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QKeyEvent>
|
|
|
|
|
|
|
|
#define SPACING 6
|
|
|
|
#define MARGIN 9
|
|
|
|
#define MIN_WIDTH 200
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// class : RepairGUI_FreeFacesDlg()
|
|
|
|
// purpose : Constructs a RepairGUI_FreeFacesDlg which is a child of 'parent', with the
|
|
|
|
// name 'name' and widget flags set to 'f'.
|
|
|
|
// The dialog will by default be modeless, unless you set 'modal' to
|
|
|
|
// TRUE to construct a modal dialog.
|
|
|
|
//=================================================================================
|
2009-02-13 17:16:39 +05:00
|
|
|
RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg( GeometryGUI* GUI, QWidget* parent,
|
|
|
|
bool modal )
|
|
|
|
: QDialog( parent, false ),
|
|
|
|
GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
|
|
|
|
myGeomGUI( GUI ),
|
|
|
|
myDisplayer( 0 )
|
2005-01-20 11:24:17 +05:00
|
|
|
{
|
2009-02-13 17:16:39 +05:00
|
|
|
setAttribute( Qt::WA_DeleteOnClose );
|
|
|
|
|
|
|
|
setSizeGripEnabled( true );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
setWindowTitle( tr( "GEOM_FREE_FACES_TITLE" ) );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
/***************************************************************/
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
QGroupBox* aMainGrp = new QGroupBox( tr( "GEOM_SELECTED_SHAPE" ), this );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
QLabel* lab = new QLabel( tr( "GEOM_OBJECT" ), aMainGrp );
|
|
|
|
mySelBtn = new QPushButton( aMainGrp );
|
|
|
|
mySelBtn->setIcon( image1 );
|
|
|
|
myEdit = new QLineEdit( aMainGrp );
|
2005-01-20 11:24:17 +05:00
|
|
|
myEdit->setReadOnly( true );
|
|
|
|
myEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
|
|
|
|
myEdit->setMinimumWidth( MIN_WIDTH );
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
QHBoxLayout* aMainLay = new QHBoxLayout( aMainGrp );
|
|
|
|
aMainLay->setSpacing( SPACING );
|
|
|
|
aMainLay->setMargin( MARGIN );
|
|
|
|
aMainLay->addWidget( lab );
|
|
|
|
aMainLay->addWidget( mySelBtn );
|
|
|
|
aMainLay->addWidget( myEdit );
|
|
|
|
|
2005-01-20 11:24:17 +05:00
|
|
|
QFrame* aFrame = new QFrame( this );
|
|
|
|
aFrame->setFrameStyle( QFrame::Box | QFrame::Sunken );
|
|
|
|
QPushButton* aCloseBtn = new QPushButton( tr( "GEOM_BUT_CLOSE" ), aFrame );
|
2006-05-06 14:44:32 +06:00
|
|
|
QPushButton* aHelpBtn = new QPushButton( tr( "GEOM_BUT_HELP" ), aFrame );
|
2009-02-13 17:16:39 +05:00
|
|
|
|
|
|
|
QHBoxLayout* aBtnLay = new QHBoxLayout( aFrame );
|
|
|
|
aBtnLay->setSpacing( SPACING );
|
|
|
|
aBtnLay->setMargin( MARGIN );
|
2005-01-20 11:24:17 +05:00
|
|
|
aBtnLay->addWidget( aCloseBtn );
|
2009-02-13 17:16:39 +05:00
|
|
|
aBtnLay->addSpacing( SPACING );
|
|
|
|
aBtnLay->addStretch();
|
2006-05-06 14:44:32 +06:00
|
|
|
aBtnLay->addWidget( aHelpBtn );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
QVBoxLayout* aLay = new QVBoxLayout( this );
|
|
|
|
aLay->setSpacing( SPACING );
|
|
|
|
aLay->setMargin( MARGIN );
|
|
|
|
aLay->addWidget( aMainGrp );
|
2009-02-13 17:16:39 +05:00
|
|
|
aLay->addStretch();
|
2005-01-20 11:24:17 +05:00
|
|
|
aLay->addWidget( aFrame );
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
myHelpFileName = "using_measurement_tools_page.html#faces_anchor";
|
2006-05-06 14:44:32 +06:00
|
|
|
|
2005-01-20 11:24:17 +05:00
|
|
|
connect( aCloseBtn, SIGNAL( clicked() ), SLOT( onClose() ) );
|
2009-02-13 17:16:39 +05:00
|
|
|
connect( aHelpBtn, SIGNAL( clicked() ), SLOT( onHelp() ) );
|
|
|
|
connect( mySelBtn, SIGNAL( clicked() ),
|
|
|
|
this, SLOT ( onSetEditCurrentArgument() ) );
|
2005-01-20 11:24:17 +05:00
|
|
|
/***************************************************************/
|
|
|
|
|
2005-06-02 13:17:09 +06:00
|
|
|
Init();
|
2005-01-20 11:24:17 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ~RepairGUI_FreeFacesDlg()
|
|
|
|
// purpose : Destroys the object and frees any allocated resources
|
|
|
|
//=================================================================================
|
|
|
|
RepairGUI_FreeFacesDlg::~RepairGUI_FreeFacesDlg()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : onClose
|
|
|
|
// purpose : SLOT. Called when "close" button pressed. Close dialog
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onClose()
|
|
|
|
{
|
|
|
|
globalSelection();
|
2009-02-13 17:16:39 +05:00
|
|
|
disconnect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(), 0, this, 0 );
|
2005-06-02 13:17:09 +06:00
|
|
|
myGeomGUI->SetActiveDialogBox( 0 );
|
2005-01-20 11:24:17 +05:00
|
|
|
reject();
|
|
|
|
erasePreview();
|
|
|
|
}
|
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
|
|
|
// function : onHelp()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onHelp()
|
|
|
|
{
|
2009-02-13 17:16:39 +05:00
|
|
|
LightApp_Application* app = (LightApp_Application*)( SUIT_Session::session()->activeApplication() );
|
|
|
|
if ( app )
|
|
|
|
app->onHelpContextModule( myGeomGUI ? app->moduleName( myGeomGUI->moduleName() ) : QString(""), myHelpFileName );
|
2006-05-06 14:44:32 +06:00
|
|
|
else {
|
2009-02-13 17:16:39 +05:00
|
|
|
QString platform;
|
2008-03-07 12:45:34 +05:00
|
|
|
#ifdef WIN32
|
2009-02-13 17:16:39 +05:00
|
|
|
platform = "winapplication";
|
2008-03-07 12:45:34 +05:00
|
|
|
#else
|
2009-02-13 17:16:39 +05:00
|
|
|
platform = "application";
|
2008-03-07 12:45:34 +05:00
|
|
|
#endif
|
2009-02-13 17:16:39 +05:00
|
|
|
SUIT_MessageBox::warning( this,
|
|
|
|
tr( "WRN_WARNING" ),
|
|
|
|
tr( "EXTERNAL_BROWSER_CANNOT_SHOW_PAGE" ).
|
|
|
|
arg( app->resourceMgr()->stringValue( "ExternalBrowser",
|
|
|
|
platform ) ).
|
|
|
|
arg( myHelpFileName ) );
|
2006-05-06 14:44:32 +06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-01-20 11:24:17 +05:00
|
|
|
//=================================================================================
|
|
|
|
// function : onDeactivate
|
|
|
|
// purpose : Deactivate this dialog
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onDeactivate()
|
|
|
|
{
|
2009-02-13 17:16:39 +05:00
|
|
|
setEnabled( false );
|
2005-01-20 11:24:17 +05:00
|
|
|
globalSelection();
|
2009-02-13 17:16:39 +05:00
|
|
|
disconnect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(), 0, this, 0 );
|
2005-06-02 13:17:09 +06:00
|
|
|
myGeomGUI->SetActiveDialogBox( 0 );
|
2005-01-20 11:24:17 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : onActivate
|
|
|
|
// purpose : Activate this dialog
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onActivate()
|
|
|
|
{
|
2005-06-02 13:17:09 +06:00
|
|
|
myGeomGUI->EmitSignalDeactivateDialog();
|
2005-01-20 11:24:17 +05:00
|
|
|
setEnabled( true );
|
2005-06-02 13:17:09 +06:00
|
|
|
myGeomGUI->SetActiveDialogBox( this );
|
2009-02-13 17:16:39 +05:00
|
|
|
connect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(),
|
|
|
|
SIGNAL( currentSelectionChanged() ), SLOT( onSelectionDone() ) );
|
2005-01-20 11:24:17 +05:00
|
|
|
activateSelection();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : Init()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2005-06-02 13:17:09 +06:00
|
|
|
void RepairGUI_FreeFacesDlg::Init()
|
2005-01-20 11:24:17 +05:00
|
|
|
{
|
|
|
|
myObj = GEOM::GEOM_Object::_nil();
|
|
|
|
|
|
|
|
/* signals and slots connections */
|
2005-06-02 13:17:09 +06:00
|
|
|
connect( myGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), SLOT ( onDeactivate() ) );
|
2009-02-13 17:16:39 +05:00
|
|
|
connect( ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr(),
|
2005-06-02 13:17:09 +06:00
|
|
|
SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
activateSelection();
|
|
|
|
onSelectionDone();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : onSelectionDone
|
|
|
|
// purpose : SLOT. Called when selection changed.
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onSelectionDone()
|
|
|
|
{
|
|
|
|
erasePreview();
|
2009-02-13 17:16:39 +05:00
|
|
|
|
|
|
|
LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
|
|
|
|
SALOME_ListIO aSelList;
|
|
|
|
aSelMgr->selectedObjects(aSelList);
|
|
|
|
|
|
|
|
if ( aSelList.Extent() != 1 ) {
|
2005-01-20 11:24:17 +05:00
|
|
|
myEdit->setText( "" );
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Standard_Boolean isOk = Standard_False;
|
|
|
|
GEOM::GEOM_Object_var anObj =
|
2009-02-13 17:16:39 +05:00
|
|
|
GEOMBase::ConvertIOinGEOMObject( aSelList.First(), isOk );
|
2005-01-20 11:24:17 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
if ( !isOk || anObj->_is_nil() || !GEOMBase::IsShape( anObj ) ) {
|
2005-01-20 11:24:17 +05:00
|
|
|
myEdit->setText( "" );
|
|
|
|
return;
|
|
|
|
}
|
2009-02-13 17:16:39 +05:00
|
|
|
else {
|
2005-01-20 11:24:17 +05:00
|
|
|
myObj = anObj;
|
|
|
|
displayPreview( false, true, true, 3 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : enterEvent()
|
|
|
|
// purpose : Mouse enter onto the dialog to activate it
|
|
|
|
//=================================================================================
|
2009-02-13 17:16:39 +05:00
|
|
|
void RepairGUI_FreeFacesDlg::enterEvent( QEvent* )
|
2005-01-20 11:24:17 +05:00
|
|
|
{
|
|
|
|
onActivate();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : activateSelection
|
|
|
|
// purpose : activate selection of faces, shells, and solids
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::activateSelection()
|
|
|
|
{
|
|
|
|
TColStd_MapOfInteger aMap;
|
|
|
|
aMap.Add( GEOM_SOLID );
|
|
|
|
aMap.Add( GEOM_COMPOUND );
|
|
|
|
globalSelection( aMap );
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : closeEvent()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2009-02-13 17:16:39 +05:00
|
|
|
void RepairGUI_FreeFacesDlg::closeEvent( QCloseEvent* )
|
2005-01-20 11:24:17 +05:00
|
|
|
{
|
|
|
|
onClose();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : createOperation
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
GEOM::GEOM_IOperations_ptr RepairGUI_FreeFacesDlg::createOperation()
|
|
|
|
{
|
|
|
|
return getGeomEngine()->GetIShapesOperations( getStudyId() );
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : isValid
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2009-02-13 17:16:39 +05:00
|
|
|
bool RepairGUI_FreeFacesDlg::isValid( QString& )
|
2005-01-20 11:24:17 +05:00
|
|
|
{
|
|
|
|
return !myObj->_is_nil() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : execute
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
bool RepairGUI_FreeFacesDlg::execute( ObjectList& objects )
|
|
|
|
{
|
|
|
|
bool aResult = false;
|
|
|
|
GEOM::ListOfLong_var aFaceLst =
|
|
|
|
GEOM::GEOM_IShapesOperations::_narrow( getOperation() )->GetFreeFacesIDs( myObj );
|
|
|
|
TopoDS_Shape aSelShape;
|
|
|
|
TopoDS_Shape aFace;
|
|
|
|
TopTools_IndexedMapOfShape anIndices;
|
2009-02-13 17:16:39 +05:00
|
|
|
if ( !myObj->_is_nil() && GEOMBase::GetShape( myObj, aSelShape ) ) {
|
2005-01-20 11:24:17 +05:00
|
|
|
myEdit->setText( GEOMBase::GetName( myObj ) );
|
|
|
|
QString aMess;
|
2009-02-13 17:16:39 +05:00
|
|
|
if ( !isValid( aMess ) ) {
|
2005-01-20 11:24:17 +05:00
|
|
|
erasePreview( true );
|
|
|
|
return false;
|
|
|
|
}
|
2005-06-10 18:43:15 +06:00
|
|
|
|
|
|
|
SUIT_OverrideCursor();
|
2005-01-20 11:24:17 +05:00
|
|
|
|
|
|
|
TopExp::MapShapes( aSelShape, anIndices);
|
|
|
|
SALOME_Prs* aPrs = 0;
|
2005-06-10 18:43:15 +06:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
for ( int i = 0, n = aFaceLst->length(); i < n; i++ ) {
|
2005-01-20 11:24:17 +05:00
|
|
|
aFace = anIndices.FindKey( aFaceLst[i] );
|
2009-02-13 17:16:39 +05:00
|
|
|
try {
|
2005-01-20 11:24:17 +05:00
|
|
|
getDisplayer()->SetColor( Quantity_NOC_RED );
|
|
|
|
getDisplayer()->SetToActivate( false );
|
|
|
|
aPrs = !aFace.IsNull() ? getDisplayer()->BuildPrs( aFace ) : 0;
|
|
|
|
if ( aPrs )
|
|
|
|
displayPreview( aPrs, true );
|
|
|
|
}
|
|
|
|
catch( const SALOME::SALOME_Exception& e )
|
|
|
|
{
|
2005-06-02 13:17:09 +06:00
|
|
|
SalomeApp_Tools::QtCatchCorbaException( e );
|
2005-01-20 11:24:17 +05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return aResult;
|
|
|
|
}
|
|
|
|
|
|
|
|
//================================================================
|
|
|
|
// Function : getDisplayer
|
|
|
|
// Purpose :
|
|
|
|
//================================================================
|
|
|
|
GEOM_Displayer* RepairGUI_FreeFacesDlg::getDisplayer()
|
|
|
|
{
|
|
|
|
if ( !myDisplayer )
|
2005-06-02 13:17:09 +06:00
|
|
|
myDisplayer = new GEOM_Displayer( getStudy() );
|
2005-01-20 11:24:17 +05:00
|
|
|
return myDisplayer;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : SetEditCurrentArgument
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::onSetEditCurrentArgument()
|
|
|
|
{
|
|
|
|
myEdit->setFocus();
|
|
|
|
onSelectionDone();
|
|
|
|
}
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
//=================================================================================
|
|
|
|
// function : keyPressEvent()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void RepairGUI_FreeFacesDlg::keyPressEvent( QKeyEvent* e )
|
|
|
|
{
|
|
|
|
QDialog::keyPressEvent( e );
|
|
|
|
if ( e->isAccepted() )
|
|
|
|
return;
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
if ( e->key() == Qt::Key_F1 ) {
|
|
|
|
e->accept();
|
|
|
|
onHelp();
|
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
}
|