Back to index

salome-geom  6.5.0
Functions
RepairGUI_ShapeProcessDlg.cxx File Reference
#include "RepairGUI_ShapeProcessDlg.h"
#include <DlgRef.h>
#include <GeometryGUI.h>
#include <GEOMBase.h>
#include <GEOMImpl_Types.hxx>
#include <SalomeApp_Application.h>
#include <SalomeApp_DoubleSpinBox.h>
#include <SalomeApp_IntSpinBox.h>
#include <LightApp_SelectionMgr.h>
#include <SUIT_Session.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_MessageBox.h>
#include <SALOME_ListIteratorOfListIO.hxx>
#include <SALOME_ListIO.hxx>
#include <Basics_Utils.hxx>
#include <TCollection_AsciiString.hxx>
#include <TColStd_MapOfInteger.hxx>
#include <QListWidget>
#include <QStackedLayout>

Go to the source code of this file.

Functions

const char * get_convert (const char *theParam, const QString &theValue)
QString set_convert (const char *theParam, const char *theValue)

Function Documentation

const char* get_convert ( const char *  theParam,
const QString &  theValue 
)

Definition at line 452 of file RepairGUI_ShapeProcessDlg.cxx.

{
  if ( !strcmp( theParam, "SplitAngle.Angle" ) ) {
    double doubleValue = theValue.toDouble() * M_PI / 180.;
    return CORBA::string_dup( QString::number( doubleValue ).toLatin1().constData() );
  }
  return CORBA::string_dup( theValue.toLatin1().constData() );
}

Here is the caller graph for this function:

QString set_convert ( const char *  theParam,
const char *  theValue 
)

Definition at line 465 of file RepairGUI_ShapeProcessDlg.cxx.

{
  if ( !strcmp( theParam, "SplitAngle.Angle" ) ) {
    Kernel_Utils::Localizer loc;
    double doubleValue = atof( theValue ) * 180. / M_PI;
    return QString::number( doubleValue );
  }
  return QString( theValue );
}

Here is the caller graph for this function: