Back to index

salome-geom  6.5.0
Public Member Functions
BlocksGUI Class Reference

#include <BlocksGUI.h>

List of all members.

Public Member Functions

 BlocksGUI (GeometryGUI *)
 ~BlocksGUI ()
bool OnGUIEvent (int, SUIT_Desktop *)

Detailed Description

Definition at line 36 of file BlocksGUI.h.


Constructor & Destructor Documentation

BlocksGUI::BlocksGUI ( GeometryGUI *  parent)

Definition at line 47 of file BlocksGUI.cxx.

  : GEOMGUI( parent )
{
}

Definition at line 56 of file BlocksGUI.cxx.

{
}

Member Function Documentation

bool BlocksGUI::OnGUIEvent ( int  theCommandID,
SUIT_Desktop *  parent 
)

Definition at line 64 of file BlocksGUI.cxx.

{
  getGeometryGUI()->EmitSignalDeactivateDialog();

  QDialog* aDlg = 0;

  switch ( theCommandID ) {
  case GEOMOp::OpHexaSolid:      aDlg = new BlocksGUI_BlockDlg    ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpMultiTransform: aDlg = new BlocksGUI_TrsfDlg     ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpQuadFace:       aDlg = new BlocksGUI_QuadFaceDlg ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpExplodeBlock:   aDlg = new BlocksGUI_ExplodeDlg  ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpPropagate:      aDlg = new BlocksGUI_PropagateDlg( getGeometryGUI(), parent ); break;
  default:
    getGeometryGUI()->getApp()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
    break;
  }

  if ( aDlg ) {
    aDlg->updateGeometry();
    aDlg->resize( aDlg->minimumSizeHint() );
    aDlg->show();
  }

  return true;
}

The documentation for this class was generated from the following files: