Back to index

salome-geom  6.5.0
Public Member Functions
PrimitiveGUI Class Reference

#include <PrimitiveGUI.h>

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 36 of file PrimitiveGUI.h.


Constructor & Destructor Documentation

PrimitiveGUI::PrimitiveGUI ( GeometryGUI *  parent)

Definition at line 47 of file PrimitiveGUI.cxx.

                                                : GEOMGUI( parent )
{
}

Definition at line 55 of file PrimitiveGUI.cxx.

{
}

Member Function Documentation

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

Definition at line 63 of file PrimitiveGUI.cxx.

{
  SalomeApp_Application* app = getGeometryGUI()->getApp();
  if ( !app ) return false;

  getGeometryGUI()->EmitSignalDeactivateDialog();

  QDialog* aDlg = NULL;

  switch ( theCommandID ) {
  case GEOMOp::OpBox:       // BOX
    aDlg = new PrimitiveGUI_BoxDlg( getGeometryGUI(), parent );
    break;
  case GEOMOp::OpCylinder:  // CYLINDER
    aDlg = new PrimitiveGUI_CylinderDlg( getGeometryGUI(), parent );
    break;
  case GEOMOp::OpSphere:    // SPHERE
    aDlg = new PrimitiveGUI_SphereDlg( getGeometryGUI(), parent );
    break;
  case GEOMOp::OpTorus:     // TORUS
    aDlg = new PrimitiveGUI_TorusDlg( getGeometryGUI(), parent );
    break;
  case GEOMOp::OpCone:      // CONE
    aDlg = new PrimitiveGUI_ConeDlg( getGeometryGUI(), parent);
    break;
  case GEOMOp::OpRectangle: // FACE
    aDlg = new PrimitiveGUI_FaceDlg( getGeometryGUI(), parent);
    break;
  case GEOMOp::OpDisk:      // DISK
    aDlg = new PrimitiveGUI_DiskDlg( getGeometryGUI(), parent);
    break;
  default:
    app->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
    break;
  }

  if ( aDlg != NULL )
    aDlg->show();

  return true;
}

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