-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
\param isCircle - true if sensitive area of detection is round
\param isShift - true if selection exec with append option
*/
-GLboolean GLViewer_MarkerSet::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
+GLboolean GLViewer_MarkerSet::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect /*rect*/, GLboolean /*isFull*/,
GLboolean isCircle, GLboolean isShift )
{
if( !myIsVisible )
\param size - size of polyline
\param toolTip - tool tip of polyline
*/
-GLViewer_Polyline::GLViewer_Polyline( int number, float size, const QString& toolTip ):
+GLViewer_Polyline::GLViewer_Polyline( int number, float /*size*/, const QString& toolTip ):
GLViewer_Object(),
- myNumber( 0 ),
myXCoord( 0 ),
- myYCoord( 0 )
+ myYCoord( 0 ),
+ myNumber( 0 )
{
myHighFlag = GL_TRUE;
\param isCircle - true if sensitive area of detection is round
\return true if highlight status is changed
*/
-GLboolean GLViewer_Polyline::highlight( GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle )
+GLboolean GLViewer_Polyline::highlight( GLfloat x, GLfloat y, GLfloat /*tol*/, GLboolean /*isCircle*/ )
{
if( !myIsVisible )
return false;
\param isCircle - true if sensitive area of detection is round
\param isShift - true if selection exec with append option
*/
-GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
- GLboolean isCircle, GLboolean isShift )
+GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat /*tol*/, GLViewer_Rect /*rect*/, GLboolean /*isFull*/,
+ GLboolean /*isCircle*/, GLboolean /*isShift*/ )
{
if( !myIsVisible )
return false;
LPTSTR str = new TCHAR[aText.length() + 1];
str[aText.toWCharArray(str)] = '\0';
#else
- LPTSTR str = aText.toLatin1().constData();
+ QByteArray arr = FileName.toLatin1();
+ LPTSTR str = arr.constData();
#endif
TextOut( dc, x, y, str, aText.length() );
+#ifdef UNICODE
+ delete str;
+#endif
SelectObject ( dc, old1 );
SelectObject ( dc, old2 );
\param isCircle - true if sensitive area of detection is round
\param isShift - true if selection exec with append option
*/
-GLboolean GLViewer_TextObject::select( GLfloat theX, GLfloat theY, GLfloat theTol, GLViewer_Rect rect,
- GLboolean isFull, GLboolean isCircle, GLboolean isShift )
+GLboolean GLViewer_TextObject::select( GLfloat theX, GLfloat theY, GLfloat theTol, GLViewer_Rect /*rect*/,
+ GLboolean /*isFull*/, GLboolean isCircle, GLboolean /*isShift*/ )
{
if( !myIsVisible )
return false;