Back to index

salome-geom  6.5.0
Public Member Functions
GenerationGUI Class Reference

#include <GenerationGUI.h>

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 36 of file GenerationGUI.h.


Constructor & Destructor Documentation

GenerationGUI::GenerationGUI ( GeometryGUI *  parent)

Definition at line 44 of file GenerationGUI.cxx.

  : GEOMGUI( parent )
{
}

Definition at line 53 of file GenerationGUI.cxx.

{
}

Member Function Documentation

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

Definition at line 62 of file GenerationGUI.cxx.

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

  getGeometryGUI()->EmitSignalDeactivateDialog();

  QDialog* aDlg = NULL;

  switch ( theCommandID ) {
  case GEOMOp::OpPrism:      aDlg = new GenerationGUI_PrismDlg   ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpRevolution: aDlg = new GenerationGUI_RevolDlg   ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpFilling:    aDlg = new GenerationGUI_FillingDlg ( getGeometryGUI(), parent ); break;
  case GEOMOp::OpPipe:       aDlg = new GenerationGUI_PipeDlg    ( 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: