Back to index

salome-geom  6.5.0
Classes | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
MeasureGUI_WhatisDlg Class Reference

#include <MeasureGUI_WhatisDlg.h>

Inheritance diagram for MeasureGUI_WhatisDlg:
Inheritance graph
[legend]
Collaboration diagram for MeasureGUI_WhatisDlg:
Collaboration graph
[legend]

List of all members.

Classes

class  Whatis

Public Member Functions

 MeasureGUI_WhatisDlg (GeometryGUI *, QWidget *)
 ~MeasureGUI_WhatisDlg ()

Protected Slots

virtual void ClickOnProperties ()
virtual void ClickOnCancel ()
virtual void ClickOnHelp ()
virtual void DeactivateActiveDialog ()
virtual void ActivateThisDialog ()
virtual void SelectionIntoArgument ()
virtual void LineEditReturnPressed ()
virtual void SetEditCurrentArgument ()

Protected Member Functions

virtual void processObject ()
void enterEvent (QEvent *)
void closeEvent (QCloseEvent *)
void keyPressEvent (QKeyEvent *)
void redisplayPreview ()
GEOM_Displayer * getDisplayer ()
virtual bool isValid (QString &)
virtual SALOME_Prs * buildPrs ()
virtual void activateSelection ()
virtual GEOM::GEOM_IOperations_ptr createOperation ()
MeasureGUI_SkeletonBoxmainFrame () const
QWidget * centralWidget () const
QPushButton * buttonClose () const
QPushButton * buttonHelp () const

Protected Attributes

QPushButton * mySelBtn
QLineEdit * mySelEdit
GEOM::GEOM_Object_var myObj
GeometryGUI * myGeomGUI
GEOM_Displayer * myDisplayer
QString myHelpFileName
MeasureGUI_SkeletonBoxmyMainFrame

Private Member Functions

void Init ()
bool getParameters (QString &)
QString getKindOfShape (QString &)

Private Attributes

WhatismyGrp
QMessageBox * myParamsDlg

Detailed Description

Definition at line 38 of file MeasureGUI_WhatisDlg.h.


Constructor & Destructor Documentation

MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg ( GeometryGUI *  GUI,
QWidget *  parent 
)

Definition at line 100 of file MeasureGUI_WhatisDlg.cxx.

  : MeasureGUI_Skeleton( GUI, parent )
{
  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
  QPixmap image0( resMgr->loadPixmap( "GEOM", tr( "ICON_DLG_WHATIS" ) ) );
  QPixmap image1( resMgr->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );

  setWindowTitle( tr( "GEOM_WHATIS_TITLE" ) );

  /***************************************************************/
  
  mainFrame()->GroupConstructors->setTitle( tr( "GEOM_WHATIS" ) );
  mainFrame()->RadioButton1->setIcon( image0 );

  myGrp = new Whatis( this );

  myGrp->setTitle( tr( "GEOM_WHATIS_OBJECT" ) );

  myGrp->TextLabel1->setText( tr( "GEOM_OBJECT" ) );
  myGrp->PushButton1->setIcon( image1 );
  myGrp->PushButton1->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
  myGrp->LineEdit1->setReadOnly( true );

  myGrp->TextEdit1->setReadOnly( true );
  // fix height to fit all text
  myGrp->TextEdit1->setLineWrapMode( QTextEdit::NoWrap );
  // myGrp->TextEdit1->setTextFormat( Qt::PlainText ); // VSR : TODO
  QString allLines ("\n\n\n\n\n\n\n\n\n"); // 10 lines
  myGrp->TextEdit1->setText( allLines );
  int sbHeight = myGrp->TextEdit1->horizontalScrollBar()->height();
  myGrp->TextEdit1->setFixedHeight( myGrp->TextEdit1->document()->size().height() + sbHeight );

  myGrp->TextLabel2->setText( tr( "GEOM_KIND_OF_SHAPE" ) );
  myGrp->LineEdit2->setReadOnly( true );
  myGrp->LineEdit2->setMinimumWidth( 150 );
  myGrp->PushButton2->setText( tr( "GEOM_PROPERTIES" ) );
  myGrp->PushButton2->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );

  QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
  layout->setMargin( 0 ); layout->setSpacing( 6 );
  layout->addWidget( myGrp );

  // Properties dialog
  myParamsDlg = new QMessageBox(QMessageBox::Information, "", "", QMessageBox::Ok, this);
  myParamsDlg->setModal( false );

  /***************************************************************/

  myHelpFileName = "using_measurement_tools_page.html#whatis_anchor";

  /* Initialisation */
  Init();
}

Here is the call graph for this function:

Definition at line 158 of file MeasureGUI_WhatisDlg.cxx.

{
}

Member Function Documentation

void MeasureGUI_Skeleton::activateSelection ( ) [protected, virtual, inherited]

Reimplemented in MeasureGUI_PropertiesDlg, and MeasureGUI_PointDlg.

Definition at line 348 of file MeasureGUI_Skeleton.cxx.

{
  globalSelection( GEOM_ALLSHAPES );
}

Here is the caller graph for this function:

void MeasureGUI_Skeleton::ActivateThisDialog ( ) [protected, virtual, slot, inherited]

Definition at line 215 of file MeasureGUI_Skeleton.cxx.

{
  myGeomGUI->EmitSignalDeactivateDialog();
  
  setEnabled( true );
  
  myGeomGUI->SetActiveDialogBox( ( QDialog* )this );

  LightApp_SelectionMgr* aSel = ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr();
  if ( aSel )
    connect( aSel, SIGNAL( currentSelectionChanged() ), 
             this, SLOT  ( SelectionIntoArgument() ) ) ;
  
  redisplayPreview();
  activateSelection();
}

Here is the call graph for this function:

Here is the caller graph for this function:

SALOME_Prs * MeasureGUI_Skeleton::buildPrs ( ) [protected, virtual, inherited]

Reimplemented in MeasureGUI_DistanceDlg, MeasureGUI_PropertiesDlg, MeasureGUI_BndBoxDlg, and MeasureGUI_AngleDlg.

Definition at line 310 of file MeasureGUI_Skeleton.cxx.

{
  return 0;
}

Here is the caller graph for this function:

QPushButton * MeasureGUI_Skeleton::buttonClose ( ) const [protected, inherited]

Definition at line 408 of file MeasureGUI_Skeleton.cxx.

{
  return mainFrame()->buttonClose;
}

Here is the call graph for this function:

Here is the caller graph for this function:

QPushButton * MeasureGUI_Skeleton::buttonHelp ( ) const [protected, inherited]

Definition at line 413 of file MeasureGUI_Skeleton.cxx.

{
  return mainFrame()->buttonHelp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

QWidget * MeasureGUI_Skeleton::centralWidget ( ) const [protected, inherited]

Definition at line 403 of file MeasureGUI_Skeleton.cxx.

{
  return mainFrame()->GroupMedium;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void MeasureGUI_Skeleton::ClickOnCancel ( ) [protected, virtual, slot, inherited]

Definition at line 141 of file MeasureGUI_Skeleton.cxx.

{
  close();
}

Here is the caller graph for this function:

void MeasureGUI_Skeleton::ClickOnHelp ( ) [protected, virtual, slot, inherited]

Definition at line 150 of file MeasureGUI_Skeleton.cxx.

{
  LightApp_Application* app = (LightApp_Application*)( SUIT_Session::session()->activeApplication() );
  if ( app ) {
    app->onHelpContextModule( myGeomGUI ? app->moduleName( myGeomGUI->moduleName() ) : QString( "" ), myHelpFileName );
  }
  else {
    QString platform;
#ifdef WIN32
    platform = "winapplication";
#else
    platform = "application";
#endif
    SUIT_MessageBox::warning( this, tr( "WRN_WARNING" ),
                              tr( "EXTERNAL_BROWSER_CANNOT_SHOW_PAGE" ).
                              arg( app->resourceMgr()->stringValue( "ExternalBrowser", platform ) ).arg( myHelpFileName ) );
  }
}

Here is the caller graph for this function:

void MeasureGUI_WhatisDlg::ClickOnProperties ( ) [protected, virtual, slot]

Definition at line 198 of file MeasureGUI_WhatisDlg.cxx.

{
  myParamsDlg->show();
}

Here is the caller graph for this function:

void MeasureGUI_Skeleton::closeEvent ( QCloseEvent *  e) [protected, inherited]

Definition at line 286 of file MeasureGUI_Skeleton.cxx.

{
  LightApp_SelectionMgr* aSel = ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr();
  if ( aSel )
    disconnect( aSel, 0, this, 0 );
  QDialog::closeEvent( e );
}
GEOM::GEOM_IOperations_ptr MeasureGUI_Skeleton::createOperation ( ) [protected, virtual, inherited]

Definition at line 377 of file MeasureGUI_Skeleton.cxx.

{
  return getGeomEngine()->GetIMeasureOperations( getStudyId() );
}
void MeasureGUI_Skeleton::DeactivateActiveDialog ( ) [protected, virtual, slot, inherited]

Definition at line 197 of file MeasureGUI_Skeleton.cxx.

{
  setEnabled( false );
  
  LightApp_SelectionMgr* aSel = ( (SalomeApp_Application*)( SUIT_Session::session()->activeApplication() ) )->selectionMgr();
  if ( aSel )
    disconnect( aSel, 0, this, 0 );
  
  myGeomGUI->SetActiveDialogBox( 0 );

  globalSelection();
}

Here is the caller graph for this function:

void MeasureGUI_Skeleton::enterEvent ( QEvent *  ) [protected, inherited]

Definition at line 298 of file MeasureGUI_Skeleton.cxx.

{
  if ( mainFrame()->GroupConstructors->isEnabled() )
    return;
    
  ActivateThisDialog();
}

Here is the call graph for this function:

GEOM_Displayer * MeasureGUI_Skeleton::getDisplayer ( ) [protected, inherited]

Definition at line 366 of file MeasureGUI_Skeleton.cxx.

{
  if ( !myDisplayer )
    myDisplayer = new GEOM_Displayer( getStudy() );
  return myDisplayer;
}

Here is the caller graph for this function:

QString MeasureGUI_WhatisDlg::getKindOfShape ( QString &  theParameters) [private]

Definition at line 230 of file MeasureGUI_WhatisDlg.cxx.

{
  QString aKindStr("");
  theParameters = "";

  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
  int aLenPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );

  if ( myObj->_is_nil() )
    return aKindStr;

  GEOM::GEOM_IKindOfShape::shape_kind aKind;
  GEOM::ListOfLong_var anInts;
  GEOM::ListOfDouble_var aDbls;

  GEOM::GEOM_IMeasureOperations_var anOper = GEOM::GEOM_IMeasureOperations::_narrow( getOperation() );

  try
  {
    aKind = anOper->KindOfShape( myObj, anInts, aDbls );
  }
  catch( const SALOME::SALOME_Exception& e ) {
    SalomeApp_Tools::QtCatchCorbaException( e );
    return aKindStr;
  }

  if ( !anOper->IsDone() )
    return aKindStr;

#define PRINT_DOUBLE(val, tol) DlgRef::PrintDoubleValue( val, tol )
  switch ( aKind )
  {
  case GEOM::GEOM_IKindOfShape::COMPOUND:
    aKindStr = tr( "GEOM_COMPOUND" );
    break;
  case GEOM::GEOM_IKindOfShape::COMPSOLID:
    aKindStr = tr( "GEOM_COMPOUNDSOLID" );
    break;
  case GEOM::GEOM_IKindOfShape::SHELL:
    aKindStr = tr( "GEOM_SHELL" );
    if ( anInts[0] == 1 )
      theParameters = tr( "GEOM_CLOSED" );
    else if ( anInts[0] == 2 )
      theParameters = tr( "GEOM_UNCLOSED" );
    else
      theParameters = tr( "GEOM_CLOSEDUNCLOSED" );
    break;
  case GEOM::GEOM_IKindOfShape::WIRE:
    aKindStr = tr( "GEOM_WIRE" );
    if ( anInts[0] == 1 )
      theParameters = tr( "GEOM_CLOSED" );
    else if ( anInts[0] == 2 )
      theParameters = tr( "GEOM_UNCLOSED" );
    else
      theParameters = tr( "GEOM_CLOSEDUNCLOSED" );
    break;
  // SOLIDs
  case GEOM::GEOM_IKindOfShape::SPHERE:
    aKindStr = tr( "GEOM_SPHERE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )       + PRINT_DOUBLE( aDbls[3], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::CYLINDER:
    aKindStr = tr( "GEOM_CYLINDER" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )         +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )       + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_HEIGHT" )       + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::BOX:
    aKindStr = tr( "GEOM_BOX" );
    theParameters = tr( "GEOM_CENTER") +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        "Ax :"                    + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        "Ay :"                    + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        "Az :"                    + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::ROTATED_BOX:
    aKindStr = tr( "GEOM_BOX" );
    theParameters = tr( "GEOM_CENTER" )         +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\nZ Axis:"                               +
      "\n" +        "Zx :"                      + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        "Zy :"                      + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        "Zz :"                      + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\nX Axis:"                               +
      "\n" +        tr( "GEOM_X_I" ).arg( "x" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_X_I" ).arg( "y" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
      "\n" +        tr( "GEOM_X_I" ).arg( "z" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
      "\nDimensions along local axes:"          +
      "\n" +        "Ax :"                      + PRINT_DOUBLE( aDbls[9],  aLenPrecision ) +
      "\n" +        "Ay :"                      + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
      "\n" +        "Az :"                      + PRINT_DOUBLE( aDbls[11], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::TORUS:
    aKindStr = tr( "GEOM_TORUS" );
    theParameters = tr( "GEOM_CENTER" )            +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )              +
      "\n" +        tr( "GEOM_DX" )                + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )                + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )                + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )        +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::CONE:
    aKindStr = tr( "GEOM_CONE" );
    theParameters = tr( "GEOM_CENTER" )            +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )              +
      "\n" +        tr( "GEOM_DX" )                + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )                + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )                + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )        +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
      "\n" +        tr( "GEOM_HEIGHT" )            + PRINT_DOUBLE( aDbls[8], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::POLYHEDRON:
    aKindStr = tr( "GEOM_POLYHEDRON" );
    break;
  case GEOM::GEOM_IKindOfShape::SOLID:
    aKindStr = tr( "GEOM_SOLID" );
    break;
  // FACEs
  case GEOM::GEOM_IKindOfShape::SPHERE2D:
    aKindStr = tr( "GEOM_SURFSPHERE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )       + PRINT_DOUBLE( aDbls[3], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::CYLINDER2D:
    aKindStr = tr( "GEOM_SURFCYLINDER" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )         +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )       + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_HEIGHT" )       + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::TORUS2D:
    aKindStr = tr( "GEOM_SURFTORUS" );
    theParameters = tr( "GEOM_CENTER" )            +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )              +
      "\n" +        tr( "GEOM_DX" )                + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )                + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )                + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )        +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::CONE2D:
    aKindStr = tr( "GEOM_SURFCONE" );
    theParameters = tr( "GEOM_CENTER" )            +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )      + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_AXIS" )              +
      "\n" +        tr( "GEOM_DX" )                + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )                + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )                + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )        +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
      "\n" +        tr( "GEOM_HEIGHT" )            + PRINT_DOUBLE( aDbls[8], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::DISK_CIRCLE:
    aKindStr = tr( "GEOM_DISK_CIRCLE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )       +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )      + PRINT_DOUBLE( aDbls[6], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::DISK_ELLIPSE:
    aKindStr = tr( "GEOM_DISK_ELLIPSE" );
    theParameters = tr( "GEOM_CENTER" )         +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )         +
      "\n" +        tr( "GEOM_DX" )             + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )             + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )             + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )     +
      "\n" +        tr( "GEOM_RADIUS_MAJOR" )   + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_MINOR" )   + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::POLYGON:
    aKindStr = tr( "GEOM_POLYGON" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )       +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::PLANE:
    aKindStr = tr( "GEOM_PLANE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )       +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::PLANAR:
    aKindStr = tr( "GEOM_PLANAR_FACE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )       +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::FACE:
    aKindStr = tr( "GEOM_FACE" );
    break;
  // EDGEs
  case GEOM::GEOM_IKindOfShape::CIRCLE:
    aKindStr = tr( "GEOM_CIRCLE" );
    theParameters = tr( "GEOM_CENTER" )       +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )       +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )   +
      "\n" +        tr( "GEOM_RADIUS" )       + PRINT_DOUBLE( aDbls[6], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::ARC_CIRCLE:
    aKindStr = tr( "GEOM_ARC" );
    theParameters = tr( "GEOM_CENTER" )           +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )           +
      "\n" +        tr( "GEOM_DX" )               + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )               + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )               + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )       +
      "\n" +        tr( "GEOM_RADIUS" )           + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_POINT_I" ).arg( 1 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
      "\n" +        tr( "GEOM_POINT_I" ).arg( 2 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[12], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::ELLIPSE:
    aKindStr = tr( "GEOM_ELLIPSE" );
    theParameters = tr( "GEOM_CENTER" )         +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )   + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )         +
      "\n" +        tr( "GEOM_DX" )             + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )             + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )             + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )     +
      "\n" +        tr( "GEOM_RADIUS_MAJOR" )   + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_MINOR" )   + PRINT_DOUBLE( aDbls[7], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::ARC_ELLIPSE:
    aKindStr = tr( "GEOM_ARC_ELLIPSE" );
    theParameters = tr( "GEOM_CENTER" )           +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 )     + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_NORMAL" )           +
      "\n" +        tr( "GEOM_DX" )               + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )               + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )               + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIMENSIONS" )       +
      "\n" +        tr( "GEOM_RADIUS_MAJOR" )     + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
      "\n" +        tr( "GEOM_RADIUS_MINOR" )     + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
      "\n" +        tr( "GEOM_POINT_I" ).arg( 1 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
      "\n" +        tr( "GEOM_POINT_I" ).arg( 2 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[13], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::LINE:
    aKindStr = tr( "GEOM_LINE" );
    theParameters = tr( "GEOM_POSITION" )     +
      "\n" +        tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_DIRECTION" )    +
      "\n" +        tr( "GEOM_DX" )           + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_DY" )           + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_DZ" )           + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::SEGMENT:
    aKindStr = tr( "GEOM_SEGMENT" );
    theParameters = tr( "GEOM_POINT_I" ).arg( 1 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 1 )     + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
      "\n" +        tr( "GEOM_POINT_I" ).arg( 2 ) +
      "\n" +        tr( "GEOM_X_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z_I" ).arg( 2 )     + PRINT_DOUBLE( aDbls[5], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::EDGE:
    aKindStr = tr( "GEOM_EDGE" );
    break;
  case GEOM::GEOM_IKindOfShape::VERTEX:
    aKindStr = tr( "GEOM_VERTEX" );
    theParameters = tr( "GEOM_COORDINATES" ) +
      "\n" +        tr( "GEOM_X" )           + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
      "\n" +        tr( "GEOM_Y" )           + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
      "\n" +        tr( "GEOM_Z" )           + PRINT_DOUBLE( aDbls[2], aLenPrecision );
    break;
  case GEOM::GEOM_IKindOfShape::ADVANCED:
    {
      QString strid = QString( "GEOM_ADVANCED_%1" ).arg( myObj->GetType() ); 
      aKindStr = tr( strid.toLatin1().constData() ) == strid ? 
       tr( "GEOM_ADVANCED" ).arg( myObj->GetType() ) :
       tr( strid.toLatin1().constData() );
      break;
    }
  default:
    break;
  }

  return aKindStr;
}

Here is the caller graph for this function:

bool MeasureGUI_WhatisDlg::getParameters ( QString &  theText) [private]

Definition at line 207 of file MeasureGUI_WhatisDlg.cxx.

{
  if ( myObj->_is_nil() )
    return false;

  GEOM::GEOM_IMeasureOperations_var anOper = GEOM::GEOM_IMeasureOperations::_narrow( getOperation() );
  try
  {
    theText = anOper->WhatIs( myObj );
  }
  catch( const SALOME::SALOME_Exception& e )
  {
    SalomeApp_Tools::QtCatchCorbaException( e );
    return false;
  }

  return anOper->IsDone();
}

Here is the caller graph for this function:

void MeasureGUI_WhatisDlg::Init ( ) [private]

Reimplemented from MeasureGUI_Skeleton.

Definition at line 166 of file MeasureGUI_WhatisDlg.cxx.

{
  mySelBtn = myGrp->PushButton1;
  mySelEdit = myGrp->LineEdit1;

  connect( myGrp->PushButton2, SIGNAL( clicked() ), this, SLOT( ClickOnProperties() ) );

  MeasureGUI_Skeleton::Init();
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool MeasureGUI_Skeleton::isValid ( QString &  ) [protected, virtual, inherited]

Reimplemented in MeasureGUI_DistanceDlg, and MeasureGUI_AngleDlg.

Definition at line 357 of file MeasureGUI_Skeleton.cxx.

{
  return !myObj->_is_nil();
}

Here is the caller graph for this function:

void MeasureGUI_Skeleton::keyPressEvent ( QKeyEvent *  e) [protected, inherited]

Definition at line 386 of file MeasureGUI_Skeleton.cxx.

{
  QDialog::keyPressEvent( e );
  if ( e->isAccepted() )
    return;

  if ( e->key() == Qt::Key_F1 ) {
    e->accept();
    ClickOnHelp();
  }
}

Here is the call graph for this function:

void MeasureGUI_Skeleton::LineEditReturnPressed ( ) [protected, virtual, slot, inherited]

Reimplemented in MeasureGUI_DistanceDlg, and MeasureGUI_AngleDlg.

Definition at line 173 of file MeasureGUI_Skeleton.cxx.

{
  /* User name of object input management                          */
  /* If successfull the selection is changed and signal emitted... */
  /* so SelectionIntoArgument() is automatically called.           */
  
  if ( mySelEdit ) {
    const QString objectUserName = mySelEdit->text();
    QWidget* thisWidget = ( QWidget* )this;
    
    LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
    SALOME_ListIO aSelList;
    aSelMgr->selectedObjects(aSelList);

    if (GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, aSelList))
      mySelEdit->setText(objectUserName);
  }
}

Here is the caller graph for this function:

MeasureGUI_SkeletonBox * MeasureGUI_Skeleton::mainFrame ( ) const [protected, inherited]

Definition at line 398 of file MeasureGUI_Skeleton.cxx.

{
  return myMainFrame;
}

Here is the caller graph for this function:

void MeasureGUI_WhatisDlg::processObject ( ) [protected, virtual]

Reimplemented from MeasureGUI_Skeleton.

Definition at line 180 of file MeasureGUI_WhatisDlg.cxx.

{
  QString aText;
  myGrp->TextEdit1->setText( getParameters( aText ) ? aText : QString( "" ) );

  QString aParameters;
  QString aKind = getKindOfShape( aParameters );
  myGrp->LineEdit2->setText( aKind );
  myGrp->PushButton2->setEnabled( !aParameters.isEmpty());
  myParamsDlg->setWindowTitle(aKind + " " + tr("GEOM_PROPERTIES"));
  myParamsDlg->setText(aParameters);
  myParamsDlg->adjustSize();
}

Here is the call graph for this function:

void MeasureGUI_Skeleton::redisplayPreview ( ) [protected, inherited]

Definition at line 319 of file MeasureGUI_Skeleton.cxx.

{
  QString aMess;
  if ( !isValid( aMess ) ) {
    erasePreview( true );
    return;
  }

  erasePreview( false );

  try {
    SUIT_OverrideCursor();

    getDisplayer()->SetColor( Quantity_NOC_VIOLET );
    getDisplayer()->SetToActivate( false );
    
    if ( SALOME_Prs* aPrs = buildPrs() )
      displayPreview( aPrs );
  }
  catch ( const SALOME::SALOME_Exception& e ) {
    SalomeApp_Tools::QtCatchCorbaException( e );
  }
  
}

Here is the call graph for this function:

Here is the caller graph for this function:

void MeasureGUI_Skeleton::SelectionIntoArgument ( ) [protected, virtual, slot, inherited]

Reimplemented in MeasureGUI_DistanceDlg, MeasureGUI_PointDlg, and MeasureGUI_AngleDlg.

Definition at line 246 of file MeasureGUI_Skeleton.cxx.

{
  myObj = GEOM::GEOM_Object::_nil();

  LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
  SALOME_ListIO aSelList;
  aSelMgr->selectedObjects(aSelList);

  GEOM::GEOM_Object_var aSelectedObject = GEOM::GEOM_Object::_nil();

  if (aSelList.Extent() > 0) {
    aSelectedObject = GEOMBase::ConvertIOinGEOMObject( aSelList.First() );
  }

  if (aSelectedObject->_is_nil()) {
    mySelEdit->setText("");
    processObject();
    erasePreview();
    return;
  }

  myObj = aSelectedObject;
  mySelEdit->setText(GEOMBase::GetName(myObj));
  processObject();
  redisplayPreview();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void MeasureGUI_Skeleton::SetEditCurrentArgument ( ) [protected, virtual, slot, inherited]

Reimplemented in MeasureGUI_DistanceDlg, and MeasureGUI_AngleDlg.

Definition at line 236 of file MeasureGUI_Skeleton.cxx.

{
  mySelEdit->setFocus();
  SelectionIntoArgument();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

GEOM_Displayer* MeasureGUI_Skeleton::myDisplayer [protected, inherited]

Definition at line 83 of file MeasureGUI_Skeleton.h.

GeometryGUI* MeasureGUI_Skeleton::myGeomGUI [protected, inherited]

Definition at line 82 of file MeasureGUI_Skeleton.h.

Definition at line 61 of file MeasureGUI_WhatisDlg.h.

QString MeasureGUI_Skeleton::myHelpFileName [protected, inherited]

Definition at line 85 of file MeasureGUI_Skeleton.h.

Definition at line 86 of file MeasureGUI_Skeleton.h.

GEOM::GEOM_Object_var MeasureGUI_Skeleton::myObj [protected, inherited]

Definition at line 80 of file MeasureGUI_Skeleton.h.

QMessageBox* MeasureGUI_WhatisDlg::myParamsDlg [private]

Definition at line 62 of file MeasureGUI_WhatisDlg.h.

QPushButton* MeasureGUI_Skeleton::mySelBtn [protected, inherited]

Definition at line 78 of file MeasureGUI_Skeleton.h.

QLineEdit* MeasureGUI_Skeleton::mySelEdit [protected, inherited]

Definition at line 79 of file MeasureGUI_Skeleton.h.


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