0023829: Remove Graphic3dDemo sample app as obsolete
authorsan <san@opencascade.com>
Fri, 15 Mar 2013 08:07:39 +0000 (12:07 +0400)
committersan <san@opencascade.com>
Fri, 15 Mar 2013 09:09:18 +0000 (13:09 +0400)
75 files changed:
samples/qt/Graphic3dDemo/Graph.dsp [deleted file]
samples/qt/Graphic3dDemo/Graph.dsw [deleted file]
samples/qt/Graphic3dDemo/Graph.sln [deleted file]
samples/qt/Graphic3dDemo/Graph.vcproj [deleted file]
samples/qt/Graphic3dDemo/Graphic3dDemo.dsp [deleted file]
samples/qt/Graphic3dDemo/Graphic3dDemo.dsw [deleted file]
samples/qt/Graphic3dDemo/Graphic3dDemo.sln [deleted file]
samples/qt/Graphic3dDemo/Graphic3dDemo.vcproj [deleted file]
samples/qt/Graphic3dDemo/Run.bat [deleted file]
samples/qt/Graphic3dDemo/Run_MSVC.bat [deleted file]
samples/qt/Graphic3dDemo/env.bat [deleted file]
samples/qt/Graphic3dDemo/inc/Application.h [deleted file]
samples/qt/Graphic3dDemo/inc/AutoTestDlg.h [deleted file]
samples/qt/Graphic3dDemo/inc/Document.h [deleted file]
samples/qt/Graphic3dDemo/inc/Graph.h [deleted file]
samples/qt/Graphic3dDemo/inc/Handle_Sphere_BasicShape.hxx [deleted file]
samples/qt/Graphic3dDemo/inc/Handle_Sphere_Sphere.hxx [deleted file]
samples/qt/Graphic3dDemo/inc/MDIWindow.h [deleted file]
samples/qt/Graphic3dDemo/inc/ObjectDlg.h [deleted file]
samples/qt/Graphic3dDemo/inc/ShapeDlg.h [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.hxx [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.ixx [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.jxx [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_Sphere.hxx [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_Sphere.ixx [deleted file]
samples/qt/Graphic3dDemo/inc/Sphere_Sphere.jxx [deleted file]
samples/qt/Graphic3dDemo/inc/Translate.h [deleted file]
samples/qt/Graphic3dDemo/inc/View.h [deleted file]
samples/qt/Graphic3dDemo/inc/ViewDlg.h [deleted file]
samples/qt/Graphic3dDemo/inc/ViewOperations.h [deleted file]
samples/qt/Graphic3dDemo/inc/global.h [deleted file]
samples/qt/Graphic3dDemo/res/Sample_icons.ts [deleted file]
samples/qt/Graphic3dDemo/res/Sample_msg.ts [deleted file]
samples/qt/Graphic3dDemo/res/auto.png [deleted file]
samples/qt/Graphic3dDemo/res/cascade.png [deleted file]
samples/qt/Graphic3dDemo/res/close.png [deleted file]
samples/qt/Graphic3dDemo/res/cursor_rotate.png [deleted file]
samples/qt/Graphic3dDemo/res/cursor_zoom.png [deleted file]
samples/qt/Graphic3dDemo/res/document.png [deleted file]
samples/qt/Graphic3dDemo/res/help.png [deleted file]
samples/qt/Graphic3dDemo/res/lamp.png [deleted file]
samples/qt/Graphic3dDemo/res/new.png [deleted file]
samples/qt/Graphic3dDemo/res/optim.png [deleted file]
samples/qt/Graphic3dDemo/res/stop.png [deleted file]
samples/qt/Graphic3dDemo/res/tile.png [deleted file]
samples/qt/Graphic3dDemo/res/tool_shading.png [deleted file]
samples/qt/Graphic3dDemo/res/tool_wireframe.png [deleted file]
samples/qt/Graphic3dDemo/res/view_axo.png [deleted file]
samples/qt/Graphic3dDemo/res/view_back.png [deleted file]
samples/qt/Graphic3dDemo/res/view_bottom.png [deleted file]
samples/qt/Graphic3dDemo/res/view_fitall.png [deleted file]
samples/qt/Graphic3dDemo/res/view_fitarea.png [deleted file]
samples/qt/Graphic3dDemo/res/view_front.png [deleted file]
samples/qt/Graphic3dDemo/res/view_glpan.png [deleted file]
samples/qt/Graphic3dDemo/res/view_left.png [deleted file]
samples/qt/Graphic3dDemo/res/view_pan.png [deleted file]
samples/qt/Graphic3dDemo/res/view_reset.png [deleted file]
samples/qt/Graphic3dDemo/res/view_right.png [deleted file]
samples/qt/Graphic3dDemo/res/view_rotate.png [deleted file]
samples/qt/Graphic3dDemo/res/view_top.png [deleted file]
samples/qt/Graphic3dDemo/res/view_zoom.png [deleted file]
samples/qt/Graphic3dDemo/src/Application.cxx [deleted file]
samples/qt/Graphic3dDemo/src/AutoTestDlg.cxx [deleted file]
samples/qt/Graphic3dDemo/src/Document.cxx [deleted file]
samples/qt/Graphic3dDemo/src/Graph.cpp [deleted file]
samples/qt/Graphic3dDemo/src/Graphic3dDemo.cxx [deleted file]
samples/qt/Graphic3dDemo/src/MDIWindow.cxx [deleted file]
samples/qt/Graphic3dDemo/src/ObjectDlg.cxx [deleted file]
samples/qt/Graphic3dDemo/src/ShapeDlg.cxx [deleted file]
samples/qt/Graphic3dDemo/src/Sphere_BasicShape.cxx [deleted file]
samples/qt/Graphic3dDemo/src/Sphere_Sphere.cxx [deleted file]
samples/qt/Graphic3dDemo/src/Translate.cxx [deleted file]
samples/qt/Graphic3dDemo/src/View.cxx [deleted file]
samples/qt/Graphic3dDemo/src/ViewDlg.cxx [deleted file]
samples/qt/Graphic3dDemo/src/ViewOperations.cxx [deleted file]

diff --git a/samples/qt/Graphic3dDemo/Graph.dsp b/samples/qt/Graphic3dDemo/Graph.dsp
deleted file mode 100755 (executable)
index 0ccc51c..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Graph" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Graph - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE 
-!MESSAGE NMAKE /f "Graph.mak".
-!MESSAGE 
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE 
-!MESSAGE NMAKE /f "Graph.mak" CFG="Graph - Win32 Debug"
-!MESSAGE 
-!MESSAGE Possible choices for configuration are:
-!MESSAGE 
-!MESSAGE "Graph - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Graph - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE 
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF  "$(CFG)" == "Graph - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "win32/bin"
-# PROP Intermediate_Dir "win32/obj"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GRAPH_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "inc" /I "$(QTDIR)\include" /I "$(QTDIR)\include\Qt" /D "NDEBUG" /D "QT_DLL" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GRAPH_EXPORTS" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "NDEBUG"
-# ADD RSC /l 0x809 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib QtCore4.lib QtGui4.lib /nologo /dll /machine:I386 /libpath:"$(QTDIR)\lib"
-
-!ELSEIF  "$(CFG)" == "Graph - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Graph___Win32_Debug"
-# PROP BASE Intermediate_Dir "Graph___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "win32/bind"
-# PROP Intermediate_Dir "win32/objd"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GRAPH_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "inc" /I "$(QTDIR)\include" /I "$(QTDIR)\include\Qt" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "GRAPH_EXPORTS" /D "QT_DLL" /YX /FD /GZ /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "_DEBUG"
-# ADD RSC /l 0x809 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib QtCore4.lib QtGui4.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"$(QTDIR)\lib"
-
-!ENDIF 
-
-# Begin Target
-
-# Name "Graph - Win32 Release"
-# Name "Graph - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\src\Graph.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\inc\Graph.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/samples/qt/Graphic3dDemo/Graph.dsw b/samples/qt/Graphic3dDemo/Graph.dsw
deleted file mode 100755 (executable)
index c880a4b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Graph"=.\Graph.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/samples/qt/Graphic3dDemo/Graph.sln b/samples/qt/Graphic3dDemo/Graph.sln
deleted file mode 100755 (executable)
index 1be8fc2..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 8.00
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Graph", "Graph.vcproj", "{BA569B32-6C9B-4402-AF34-ACBD29A9DEBD}"
-       ProjectSection(ProjectDependencies) = postProject
-       EndProjectSection
-EndProject
-Global
-       GlobalSection(SolutionConfiguration) = preSolution
-               Debug = Debug
-               Release = Release
-       EndGlobalSection
-       GlobalSection(ProjectConfiguration) = postSolution
-               {BA569B32-6C9B-4402-AF34-ACBD29A9DEBD}.Debug.ActiveCfg = Debug|Win32
-               {BA569B32-6C9B-4402-AF34-ACBD29A9DEBD}.Debug.Build.0 = Debug|Win32
-               {BA569B32-6C9B-4402-AF34-ACBD29A9DEBD}.Release.ActiveCfg = Release|Win32
-               {BA569B32-6C9B-4402-AF34-ACBD29A9DEBD}.Release.Build.0 = Release|Win32
-       EndGlobalSection
-       GlobalSection(ExtensibilityGlobals) = postSolution
-       EndGlobalSection
-       GlobalSection(ExtensibilityAddIns) = postSolution
-       EndGlobalSection
-EndGlobal
diff --git a/samples/qt/Graphic3dDemo/Graph.vcproj b/samples/qt/Graphic3dDemo/Graph.vcproj
deleted file mode 100755 (executable)
index 07b6649..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="7.10"
-       Name="Graph"
-       SccProjectName=""
-       SccLocalPath="">
-       <Platforms>
-               <Platform
-                       Name="Win32"/>
-       </Platforms>
-       <Configurations>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory=".\win32/bin"
-                       IntermediateDirectory=".\win32/obj"
-                       ConfigurationType="2"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE"
-                       CharacterSet="2">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               InlineFunctionExpansion="1"
-                               AdditionalIncludeDirectories="$(QTDIR)\include\QtCore,$(QTDIR)\include\QtGui,$(QTDIR)\include\Qt,$(QTDIR)\include,inc"
-                               PreprocessorDefinitions="NDEBUG;QT_DLL;WIN32;_WINDOWS;_USRDLL;GRAPH_EXPORTS"
-                               StringPooling="TRUE"
-                               RuntimeLibrary="0"
-                               EnableFunctionLevelLinking="TRUE"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\win32/obj/Graph.pch"
-                               AssemblerListingLocation=".\win32/obj/"
-                               ObjectFile=".\win32/obj/"
-                               ProgramDataBaseFileName=".\win32/obj/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="odbc32.lib odbccp32.lib QtCore4.lib QtGui4.lib qtmain.lib"
-                               OutputFile=".\win32/bin/Graph.dll"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               AdditionalLibraryDirectories="$(QTDIR)\lib"
-                               ProgramDatabaseFile=".\win32/bin/Graph.pdb"
-                               ImportLibrary=".\win32/bin/Graph.lib"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\win32/bin/Graph.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               Culture="2057"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory=".\win32/bind"
-                       IntermediateDirectory=".\win32/objd"
-                       ConfigurationType="2"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE"
-                       CharacterSet="2">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               AdditionalIncludeDirectories="$(QTDIR)\include\QtCore,$(QTDIR)\include\QtGui,$(QTDIR)\include\Qt,$(QTDIR)\include,inc"
-                               PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;GRAPH_EXPORTS;QT_DLL"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="1"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\win32/objd/Graph.pch"
-                               AssemblerListingLocation=".\win32/objd/"
-                               ObjectFile=".\win32/objd/"
-                               ProgramDataBaseFileName=".\win32/objd/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               DebugInformationFormat="4"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="odbc32.lib odbccp32.lib QtCored4.lib QtGuid4.lib qtmaind.lib"
-                               OutputFile=".\win32/bind/Graph.dll"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               AdditionalLibraryDirectories="$(QTDIR)\lib"
-                               GenerateDebugInformation="TRUE"
-                               ProgramDatabaseFile=".\win32/bind/Graph.pdb"
-                               ImportLibrary=".\win32/bind/Graph.lib"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\win32/bind/Graph.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               Culture="2057"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
-                       <File
-                               RelativePath="src\Graph.cpp">
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions="NDEBUG;QT_DLL;WIN32;_WINDOWS;_MBCS;_USRDLL;GRAPH_EXPORTS;$(NoInherit)"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_MBCS;_USRDLL;GRAPH_EXPORTS;QT_DLL;$(NoInherit)"
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl">
-                       <File
-                               RelativePath="inc\Graph.h">
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
diff --git a/samples/qt/Graphic3dDemo/Graphic3dDemo.dsp b/samples/qt/Graphic3dDemo/Graphic3dDemo.dsp
deleted file mode 100755 (executable)
index 7dd43bf..0000000
+++ /dev/null
@@ -1,605 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Graphic3dDemo" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Application" 0x0101
-
-CFG=Graphic3dDemo - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE 
-!MESSAGE NMAKE /f "Graphic3dDemo.mak".
-!MESSAGE 
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE 
-!MESSAGE NMAKE /f "Graphic3dDemo.mak" CFG="Graphic3dDemo - Win32 Debug"
-!MESSAGE 
-!MESSAGE Possible choices for configuration are:
-!MESSAGE 
-!MESSAGE "Graphic3dDemo - Win32 Release" (based on "Win32 (x86) Application")
-!MESSAGE "Graphic3dDemo - Win32 Debug" (based on "Win32 (x86) Application")
-!MESSAGE 
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "win32/bin"
-# PROP Intermediate_Dir "win32/obj"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "inc" /I "$(CASROOT)\inc" /I "$(QTDIR)\include" /I "$(QTDIR)\include\Qt" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "WNT" /D "QT_DLL" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "NDEBUG"
-# ADD RSC /l 0x809 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
-# ADD LINK32 TKernel.lib TKV3d.lib TKService.lib PTKernel.lib TKG3d.lib TKSTL.lib TKBrep.lib TKPrim.lib TKTopAlgo.lib TKG2d.lib TKMath.lib QtCore4.lib QtGui4.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Graph.lib /nologo /entry:"mainCRTStartup" /subsystem:windows /machine:I386 /libpath:"$(CASROOT)\win32\lib" /libpath:"$(QTDIR)\lib" /libpath:"win32\bin"
-# SUBTRACT LINK32 /pdb:none
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Graphic3dDemo___Win32_Debug"
-# PROP BASE Intermediate_Dir "Graphic3dDemo___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "win32/bind"
-# PROP Intermediate_Dir "win32/objd"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "inc" /I "$(CASROOT)\inc" /I "$(QTDIR)\include" /I "$(QTDIR)\include\Qt" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "WNT" /D "QT_DLL" /D "GRAPH_EXPORTS" /FR /YX /FD /GZ /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "_DEBUG"
-# ADD RSC /l 0x809 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 TKernel.lib TKV3d.lib TKService.lib PTKernel.lib TKG3d.lib TKSTL.lib TKBrep.lib TKPrim.lib TKTopAlgo.lib TKG2d.lib TKMath.lib QtCore4.lib QtGui4.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Graph.lib /nologo /entry:"mainCRTStartup" /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"$(CASROOT)\win32\libd" /libpath:"$(QTDIR)\lib" /libpath:"win32\bind"
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF 
-
-# Begin Target
-
-# Name "Graphic3dDemo - Win32 Release"
-# Name "Graphic3dDemo - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\src\Application.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\AutoTestDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\Document.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\Graphic3dDemo.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\MDIWindow.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\ObjectDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\ShapeDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\Sphere_BasicShape.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\Sphere_Sphere.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\Translate.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\View.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\ViewDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\src\ViewOperations.cxx
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\inc\Application.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Application.h
-InputName=Application
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Application.h
-InputName=Application
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\AutoTestDlg.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\AutoTestDlg.h
-InputName=AutoTestDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\AutoTestDlg.h
-InputName=AutoTestDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Document.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Document.h
-InputName=Document
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Document.h
-InputName=Document
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\global.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Handle_Sphere_BasicShape.hxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Handle_Sphere_Sphere.hxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\MDIWindow.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\MDIWindow.h
-InputName=MDIWindow
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\MDIWindow.h
-InputName=MDIWindow
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\ObjectDlg.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ObjectDlg.h
-InputName=ObjectDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ObjectDlg.h
-InputName=ObjectDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\ShapeDlg.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ShapeDlg.h
-InputName=ShapeDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ShapeDlg.h
-InputName=ShapeDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_BasicShape.hxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_BasicShape.ixx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_BasicShape.jxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_Sphere.hxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_Sphere.ixx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Sphere_Sphere.jxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\Translate.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Translate.h
-InputName=Translate
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\Translate.h
-InputName=Translate
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\View.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\View.h
-InputName=View
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\View.h
-InputName=View
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\ViewDlg.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ViewDlg.h
-InputName=ViewDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ViewDlg.h
-InputName=ViewDlg
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\inc\ViewOperations.h
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ViewOperations.h
-InputName=ViewOperations
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build - Moc'ing $(InputName).h ...
-InputDir=.\inc
-InputPath=.\inc\ViewOperations.h
-InputName=ViewOperations
-
-".\win32\inc\moc_$(InputName).cxx" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# Begin Source File
-
-SOURCE=.\res\Sample_icons.ts
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build
-InputPath=.\res\Sample_icons.ts
-InputName=Sample_icons
-
-".\win32\res\$(InputName).qm" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)/bin/lrelease $(InputPath) -qm .\win32\res\$(InputName).qm
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\res\Sample_icons.ts
-InputName=Sample_icons
-
-".\win32\res\$(InputName).qm" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)/bin/lrelease $(InputPath) -qm .\win32\res\$(InputName).qm
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\res\Sample_msg.ts
-
-!IF  "$(CFG)" == "Graphic3dDemo - Win32 Release"
-
-# Begin Custom Build
-InputPath=.\res\Sample_msg.ts
-InputName=Sample_msg
-
-".\win32\res\$(InputName).qm" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)/bin/lrelease $(InputPath) -qm .\win32\res\$(InputName).qm
-
-# End Custom Build
-
-!ELSEIF  "$(CFG)" == "Graphic3dDemo - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\res\Sample_msg.ts
-InputName=Sample_msg
-
-".\win32\res\$(InputName).qm" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
-       $(QTDIR)/bin/lrelease $(InputPath) -qm .\win32\res\$(InputName).qm
-
-# End Custom Build
-
-!ENDIF 
-
-# End Source File
-# End Group
-# Begin Group "moc"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_Application.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_AutoTestDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_Document.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_MDIWindow.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_ObjectDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_ShapeDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_Translate.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_View.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_ViewDlg.cxx
-# End Source File
-# Begin Source File
-
-SOURCE=.\win32\inc\moc_ViewOperations.cxx
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/samples/qt/Graphic3dDemo/Graphic3dDemo.dsw b/samples/qt/Graphic3dDemo/Graphic3dDemo.dsw
deleted file mode 100755 (executable)
index 75bb4b3..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Graphic3dDemo"=.\Graphic3dDemo.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/samples/qt/Graphic3dDemo/Graphic3dDemo.sln b/samples/qt/Graphic3dDemo/Graphic3dDemo.sln
deleted file mode 100755 (executable)
index 7cfb8b9..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 8.00
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Graphic3dDemo", "Graphic3dDemo.vcproj", "{9E15431A-031C-42CA-875B-284448550F66}"
-       ProjectSection(ProjectDependencies) = postProject
-       EndProjectSection
-EndProject
-Global
-       GlobalSection(SolutionConfiguration) = preSolution
-               Debug = Debug
-               Release = Release
-       EndGlobalSection
-       GlobalSection(ProjectConfiguration) = postSolution
-               {9E15431A-031C-42CA-875B-284448550F66}.Debug.ActiveCfg = Debug|Win32
-               {9E15431A-031C-42CA-875B-284448550F66}.Debug.Build.0 = Debug|Win32
-               {9E15431A-031C-42CA-875B-284448550F66}.Release.ActiveCfg = Release|Win32
-               {9E15431A-031C-42CA-875B-284448550F66}.Release.Build.0 = Release|Win32
-       EndGlobalSection
-       GlobalSection(ExtensibilityGlobals) = postSolution
-       EndGlobalSection
-       GlobalSection(ExtensibilityAddIns) = postSolution
-       EndGlobalSection
-EndGlobal
diff --git a/samples/qt/Graphic3dDemo/Graphic3dDemo.vcproj b/samples/qt/Graphic3dDemo/Graphic3dDemo.vcproj
deleted file mode 100755 (executable)
index 20cbe18..0000000
+++ /dev/null
@@ -1,893 +0,0 @@
-<?xml version="1.0" encoding="Windows-1252"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="7.10"
-       Name="Graphic3dDemo"
-       SccProjectName=""
-       SccLocalPath="">
-       <Platforms>
-               <Platform
-                       Name="Win32"/>
-       </Platforms>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory=".\win32/bind"
-                       IntermediateDirectory=".\win32/objd"
-                       ConfigurationType="1"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE"
-                       CharacterSet="2">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               AdditionalIncludeDirectories="inc,$(CASROOT)\inc,$(QTDIR)\include\QtCore,$(QTDIR)\include\QtGui,,$(QTDIR)\include\Qt,$(QTDIR)\include"
-                               PreprocessorDefinitions="_DEBUG;WIN32;WNT;QT_DLL"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="1"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\win32/objd/Graphic3dDemo.pch"
-                               AssemblerListingLocation=".\win32/objd/"
-                               ObjectFile=".\win32/objd/"
-                               ProgramDataBaseFileName=".\win32/objd/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               DebugInformationFormat="4"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="TKernel.lib TKV3d.lib TKService.lib PTKernel.lib TKG3d.lib TKSTL.lib TKBrep.lib TKPrim.lib TKTopAlgo.lib TKG2d.lib TKMath.lib QtCored4.lib QtGuid4.lib qtmaind.lib odbc32.lib odbccp32.lib Graph.lib"
-                               OutputFile=".\win32/bind/Graphic3dDemo.exe"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               AdditionalLibraryDirectories="$(CASROOT)\win32\libd,$(QTDIR)\lib,win32\bind"
-                               GenerateDebugInformation="TRUE"
-                               ProgramDatabaseFile=".\win32/bind/Graphic3dDemo.pdb"
-                               SubSystem="2"
-                               EntryPointSymbol="mainCRTStartup"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\win32/bind/Graphic3dDemo.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="_DEBUG"
-                               Culture="2057"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory=".\win32/bin"
-                       IntermediateDirectory=".\win32/obj"
-                       ConfigurationType="1"
-                       UseOfMFC="0"
-                       ATLMinimizesCRunTimeLibraryUsage="FALSE"
-                       CharacterSet="2">
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               InlineFunctionExpansion="1"
-                               AdditionalIncludeDirectories="inc,$(CASROOT)\inc,$(QTDIR)\include\QtCore,$(QTDIR)\include\QtGui,,$(QTDIR)\include\Qt,$(QTDIR)\include"
-                               PreprocessorDefinitions="NDEBUG;WIN32;WNT;QT_DLL"
-                               StringPooling="TRUE"
-                               RuntimeLibrary="0"
-                               EnableFunctionLevelLinking="TRUE"
-                               UsePrecompiledHeader="2"
-                               PrecompiledHeaderFile=".\win32/obj/Graphic3dDemo.pch"
-                               AssemblerListingLocation=".\win32/obj/"
-                               ObjectFile=".\win32/obj/"
-                               ProgramDataBaseFileName=".\win32/obj/"
-                               WarningLevel="3"
-                               SuppressStartupBanner="TRUE"
-                               CompileAs="0"/>
-                       <Tool
-                               Name="VCCustomBuildTool"/>
-                       <Tool
-                               Name="VCLinkerTool"
-                               AdditionalDependencies="TKernel.lib TKV3d.lib TKService.lib PTKernel.lib TKG3d.lib TKSTL.lib TKBrep.lib TKPrim.lib TKTopAlgo.lib TKG2d.lib TKMath.lib QtCore4.lib QtGui4.lib qtmain.lib odbc32.lib odbccp32.lib Graph.lib"
-                               OutputFile=".\win32/bin/Graphic3dDemo.exe"
-                               LinkIncremental="1"
-                               SuppressStartupBanner="TRUE"
-                               AdditionalLibraryDirectories="$(CASROOT)\win32\lib,$(QTDIR)\lib,win32\bin"
-                               ProgramDatabaseFile=".\win32/bin/Graphic3dDemo.pdb"
-                               SubSystem="2"
-                               EntryPointSymbol="mainCRTStartup"
-                               TargetMachine="1"/>
-                       <Tool
-                               Name="VCMIDLTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               MkTypLibCompatible="TRUE"
-                               SuppressStartupBanner="TRUE"
-                               TargetEnvironment="1"
-                               TypeLibraryName=".\win32/bin/Graphic3dDemo.tlb"
-                               HeaderFileName=""/>
-                       <Tool
-                               Name="VCPostBuildEventTool"/>
-                       <Tool
-                               Name="VCPreBuildEventTool"/>
-                       <Tool
-                               Name="VCPreLinkEventTool"/>
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                               PreprocessorDefinitions="NDEBUG"
-                               Culture="2057"/>
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"/>
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"/>
-                       <Tool
-                               Name="VCWebDeploymentTool"/>
-                       <Tool
-                               Name="VCManagedWrapperGeneratorTool"/>
-                       <Tool
-                               Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
-                       <File
-                               RelativePath="src\Application.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\AutoTestDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\Document.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\Graphic3dDemo.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\MDIWindow.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\ObjectDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\ShapeDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\Sphere_BasicShape.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath=".\src\Sphere_Sphere.cxx">
-                       </File>
-                       <File
-                               RelativePath="src\Translate.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\View.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\ViewDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="src\ViewOperations.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl">
-                       <File
-                               RelativePath="inc\Application.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\AutoTestDlg.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\Document.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\global.h">
-                       </File>
-                       <File
-                               RelativePath="inc\Graph.h">
-                       </File>
-                       <File
-                               RelativePath="inc\Handle_Sphere_BasicShape.hxx">
-                       </File>
-                       <File
-                               RelativePath="inc\Handle_Sphere_Sphere.hxx">
-                       </File>
-                       <File
-                               RelativePath="inc\MDIWindow.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\ObjectDlg.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\ShapeDlg.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_BasicShape.hxx">
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_BasicShape.ixx">
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_BasicShape.jxx">
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_Sphere.hxx">
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_Sphere.ixx">
-                       </File>
-                       <File
-                               RelativePath="inc\Sphere_Sphere.jxx">
-                       </File>
-                       <File
-                               RelativePath="inc\Translate.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\View.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\ViewDlg.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="inc\ViewOperations.h">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Moc&apos;ing $(InputName).h ..."
-                                               CommandLine="$(QTDIR)\bin\moc.exe $(InputDir)\$(InputName).h -o .\win32\inc\moc_$(InputName).cxx
-"
-                                               Outputs=".\win32\inc\moc_$(InputName).cxx"/>
-                               </FileConfiguration>
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
-                       <File
-                               RelativePath=".\res\Sample_icons.ts">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Generation $(InputName).qm..."
-                                               CommandLine="&quot;$(QTDIR)\bin\lrelease&quot; &quot;$(InputPath)&quot; -qm &quot;win32\res\$(InputName).qm&quot;
-"
-                                               Outputs="win32\res\$(InputName).qm"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Generation $(InputName).qm..."
-                                               CommandLine="&quot;$(QTDIR)\bin\lrelease&quot; &quot;$(InputPath)&quot; -qm &quot;win32\res\$(InputName).qm&quot;
-"
-                                               Outputs="win32\res\$(InputName).qm"/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath=".\res\Sample_msg.ts">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Generation $(InputName).qm..."
-                                               CommandLine="&quot;$(QTDIR)\bin\lrelease&quot; &quot;$(InputPath)&quot; -qm &quot;win32\res\$(InputName).qm&quot;"
-                                               Outputs="win32\res\$(InputName).qm"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCustomBuildTool"
-                                               Description="Generation $(InputName).qm..."
-                                               CommandLine="&quot;$(QTDIR)\bin\lrelease&quot; &quot;$(InputPath)&quot; -qm &quot;win32\res\$(InputName).qm&quot;"
-                                               Outputs="win32\res\$(InputName).qm"/>
-                               </FileConfiguration>
-                       </File>
-               </Filter>
-               <Filter
-                       Name="moc"
-                       Filter="">
-                       <File
-                               RelativePath="win32\inc\moc_Application.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_AutoTestDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_Document.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_MDIWindow.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_ObjectDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_ShapeDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_Translate.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_View.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_ViewDlg.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-                       <File
-                               RelativePath="win32\inc\moc_ViewOperations.cxx">
-                               <FileConfiguration
-                                       Name="Debug|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="0"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""
-                                               BasicRuntimeChecks="3"/>
-                               </FileConfiguration>
-                               <FileConfiguration
-                                       Name="Release|Win32">
-                                       <Tool
-                                               Name="VCCLCompilerTool"
-                                               Optimization="2"
-                                               AdditionalIncludeDirectories=""
-                                               PreprocessorDefinitions=""/>
-                               </FileConfiguration>
-                       </File>
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
diff --git a/samples/qt/Graphic3dDemo/Run.bat b/samples/qt/Graphic3dDemo/Run.bat
deleted file mode 100755 (executable)
index e27f328..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-@ECHO OFF
-
-call env.bat
-
-IF NOT EXIST win32\obj goto QTSET 
-
-IF NOT EXIST "%QTDIR%" goto QTSET
-
-goto QT
-
-:QTSET
-
-SET QTDIR=%ROOT%\3rdparty\win32\qt
-SET PATH=%QTDIR%;%PATH%
-
-:QT
-
-if not exist %BIN_DIR%\Graphic3dDemo.exe goto ERR_EXE
-
-@echo Starting Graphic3dDemo .....
-start .\%BIN_DIR%\Graphic3dDemo.exe
-
-GOTO END
-
-:ERR_EXE
-ECHO Executable %BIN_DIR%\Graphic3dDemo.exe not found."
-ECHO Probably you didn't compile the application.
-GOTO END
-
-:END
diff --git a/samples/qt/Graphic3dDemo/Run_MSVC.bat b/samples/qt/Graphic3dDemo/Run_MSVC.bat
deleted file mode 100755 (executable)
index 4e20089..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-@ECHO OFF
-
-call env.bat
-
-IF NOT DEFINED QTDIR GOTO ERR_QTDIR
-
-REM *** To start build on MSVC6 ***
-rem msdev.exe Graphic3dDemo.dsw
-
-REM *** To start build on MSVC7 ***
-start "%VS71COMNTOOLS%\..\IDE\devenv.exe" Graphic3dDemo.sln
-
-GOTO END
-
-:ERR_QTDIR
-ECHO Environment variable "QTDIR" has not been defined. Abort.
-GOTO END
-
-:END
diff --git a/samples/qt/Graphic3dDemo/env.bat b/samples/qt/Graphic3dDemo/env.bat
deleted file mode 100755 (executable)
index e7414c5..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-@ECHO OFF
-
-call ../../../env.bat %1 %2 %3
-
-IF NOT DEFINED CASROOT GOTO ERR_CASROOT
-
-IF NOT EXIST "%CASROOT%\win32\bin\TKernel.dll" GOTO ERR_CASCADE
-
-SET CASLIBS=%CASROOT%\win32\bin
-
-SET ROOT=%CASROOT%\..
-
-SET RES_DIR=win32\res
-SET BIN_DIR=win32\bin
-
-SET CSF_ResourcesDefaults=%RES_DIR%
-SET PATH=%CASLIBS%;%QTDIR%\bin;%PATH%
-
-GOTO END
-
-:ERR_CASROOT
-ECHO Environment variable "CASROOT" has not been defined. Abort.
-EXIT
-
-:ERR_CASCADE
-ECHO Environment variable "CASROOT" defined incorrectly. Abort.
-EXIT
-
-:END
diff --git a/samples/qt/Graphic3dDemo/inc/Application.h b/samples/qt/Graphic3dDemo/inc/Application.h
deleted file mode 100755 (executable)
index c5eed6b..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-#ifndef APPLICATION_H
-#define APPLICATION_H
-
-#include <qmainwindow.h>
-#include <qaction.h>
-#include <qtoolbar.h>
-#include <qmenu.h>
-#include <qworkspace.h>
-#include <qlist.h>
-
-#include "MDIWindow.h"
-#include "ViewDlg.h"
-
-class Document;
-class OutputWindow;
-class QTextEdit;
-
-class Application: public QMainWindow
-{
-  Q_OBJECT
-
-  enum { FileNewId, FileQuitId, ViewToolId, ViewStatusId, HelpAboutId, OptimId,
-         AutoTestId, StopId, TileId, CascadeId };
-       
-  enum { FileImportBREPId};
-       
-public:
-  Application();
-  ~Application();
-
-       static QWorkspace*      getWorkspace();
-       static Application*     getApplication();
-       static QString          getResourceDir();
-  static void             startTimer();
-  static void             stopTimer( int, const char*, bool addToGraph = true, int aOpt = -1 );
-  static void             showTimer( const char* );
-  static void             addResult(MDIWindow::ResultType, double);
-  void                    showMessage( QString& );
-
-  MDIWindow*              getActiveMDI();
-
-       void                    updateActions();
-  void                    importBREP();
-signals:
-       void                    sendQuit();
-
-public slots:
-       void InitApp();
-  Document*               onNewDocument();
-       void                    onCloseDocument( Document* theDoc );
-       void                    onViewToolBar();
-       void                    onViewStatusBar();
-       void                    onAbout();
-       void                    onQuit();
-       void                    onTranslate();
-       void                    onToggleOptim(bool);
-       void                    onAutoTest();
-       void                    onStop();
-       void                    updateWindowList();
-       void                    activateWindow();
-       void                                  onEditViewProperties();
-       void                    updateViewDlg();
-
-protected:
-  QWorkspace*             workspace() const;
-  void                    keyPressEvent( QKeyEvent* e );
-
-private slots:
-  void                    onWindowActivated( QWidget* );
-
-private:
-       void                    createActions();
-       void                    createCCActions();
-       void                    createIEPopups();
-
-private:
-  QWorkspace*             myWorkSpace;
-  MDIWindow*              myActiveMDI;
-  int                     myNbDocuments;
-  bool                    myIsDocuments;
-  QList<QAction*>         myStdActions;
-  QList<QAction*>         myCCActions;
-  QToolBar*               myStdToolBar;
-  QMenu*                  myFilePopup;
-  QMenu*                  myImportPopup;
-  QMenu*                  myToolsMenu;
-  QMenu*                  myWinMenu;
-  OutputWindow*           myOutput;
-  
-  bool                    myEscPressed;
-  bool                                           myStopPressed;
-  
-  ViewDlg*                myViewDlg;
-
-};
-
-class OutputWindow : public QWidget
-{
-public:
-  OutputWindow( QWidget* parent = 0 );
-  ~OutputWindow();
-
-  void          print( QString& );
-
-private:
-  QTextEdit*    myLineEdit;
-  int           myLineCounter;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/AutoTestDlg.h b/samples/qt/Graphic3dDemo/inc/AutoTestDlg.h
deleted file mode 100755 (executable)
index 6a066be..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef AUTOTESTDLG_H
-#define AUTOTESTDLG_H
-
-#include <qdialog.h>
-#include <qspinbox.h> 
-#include <qcheckbox.h> 
-#include <qobject.h>
-
-class AutoTestDlg : public QDialog
-{
-  Q_OBJECT
-
-public:
-  AutoTestDlg(QWidget * parent=0);
-  int getStartNbItems() { return myStartSpin->value(); }
-  int getStopNbItems()  { return myStopSpin->value(); }
-  int getStep()         { return myStepSpin->value(); }
-  int isText()          { return myTeCheck->isChecked(); }
-
-public slots:
-  void onStart();
-  void onCancel();
-  void setStartMaxValue(int i);
-  void checkStepSpinState();
-  void onText();
-
-private:
-  QSpinBox* myStartSpin;
-  QSpinBox* myStopSpin;
-  QSpinBox* myStepSpin;
-  QCheckBox* myTeCheck;
-};
-
-#endif  //#ifndef AUTOTESTDLG_H
\ No newline at end of file
diff --git a/samples/qt/Graphic3dDemo/inc/Document.h b/samples/qt/Graphic3dDemo/inc/Document.h
deleted file mode 100755 (executable)
index 009f045..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef DOCUMENT_H
-#define DOCUMENT_H
-
-#include <qobject.h>
-#include <qlist.h>
-
-#include "MDIWindow.h"
-#include "ViewOperations.h"
-
-#include <AIS_InteractiveContext.hxx>
-#include <V3d_Viewer.hxx>
-#include <V3d_TypeOfView.hxx>
-
-class Application;
-class Document : public QObject
-{
-       Q_OBJECT
-public:
-       Document( int theIndex, Application* app );
-       ~Document();
-
-       Application*                    getApplication();
-       Handle_AIS_InteractiveContext&  getContext();
-
-       void                            removeView( MDIWindow* theView );
-       int                             countOfWindow();
-  void                            createMagView( int, int, int, int );
-       void                            createNewView( V3d_TypeOfView type = V3d_ORTHOGRAPHIC );
-
-signals:
-       void                            sendCloseDocument( Document* );
-public slots:
-       void                            onCloseView( MDIWindow* theView );
-       void                            onWireframe();
-       void                            onShading();
-
-private:
-       Handle_V3d_Viewer               Viewer( const Standard_CString aDisplay,
-                                          const Standard_ExtString aName,
-                                                     const Standard_CString aDomain,
-                                          const Standard_Real ViewSize );
-private:
-       Application*                    myApp;
-       QList<MDIWindow*>               myViews;
-       Handle_V3d_Viewer               myViewer;
-       Handle_AIS_InteractiveContext   myContext;
-       ViewOperations*                 myOperations;
-       int                             myIndex;
-  int                             myNbViews;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/Graph.h b/samples/qt/Graphic3dDemo/inc/Graph.h
deleted file mode 100755 (executable)
index 3d1e803..0000000
+++ /dev/null
@@ -1,634 +0,0 @@
-// The following ifdef block is the standard way of creating macros which make exporting 
-// from a DLL simpler. All files within this DLL are compiled with the TEST_EXPORTS
-// symbol defined on the command line. this symbol should not be defined on any project
-// that uses this DLL. This way any other project whose source files include this file see 
-// TEST_API functions as being imported from a DLL, wheras this DLL sees symbols
-// defined with this macro as being exported.
-
-#ifdef GRAPH_EXPORTS
-#define GRAPH_API __declspec(dllexport)
-#else
-#define GRAPH_API __declspec(dllimport)
-#endif
-
-//////////////////////////////////////////////////////////////////////
-// File     : Graph.h
-// Created  : 26.03.02
-// Author   : Vadim SANDLER
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(_Graph_h)
-#define _Graph_h
-
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qcursor.h>
-#include <qlist.h>
-#include <qsplitter.h>
-#include <qlayout.h>
-#include <qcolor.h>
-#include <qrubberband.h>
-
-//================================================================
-// Class        : GraphNode
-// Description  : graph node
-//================================================================
-class GRAPH_API GraphNode {
-public:
-// default constructor
-  GraphNode();
-// constructor
-  GraphNode(const double x, const double y);
-// copy constructor
-  GraphNode(const GraphNode& node);
-
-// x coordinate
-  inline double x() const { return myX; }
-// y coordinate
-  inline double y() const { return myY; }
-// operator ==
-  bool          operator== (const GraphNode& node);
-// operator <
-  bool          operator<  (const GraphNode& node);
-// operator >
-  bool          operator>  (const GraphNode& node);
-// operator =
-  GraphNode&    operator=  (const GraphNode& node);
-
-private:
-// node coordinates
-  double        myX;
-  double        myY;
-};
-
-typedef QList<GraphNode*> NodeList;
-class   GraphView;
-
-//================================================================
-// Class        : GraphItem
-// Description  : graph data set
-//================================================================
-class GRAPH_API GraphItem {
-public:
-// constructor
-  GraphItem(GraphView* parent, QString name = QString::null);
-// destructor
-  virtual ~GraphItem();
-
-// adds node
-  void          addNode (GraphNode* node);
-// adds node
-  void          addNode (const double x, const double y);
-// adds nodes
-  void          addNodes(NodeList& nodes);
-// removes node (and deletes it)
-  void          removeNode(GraphNode* node);
-// removes node by index (and deletes it)
-  void          removeNode(int index);
-// clears nodes
-  void          clear ();
-// gets number of nodes
-  int           count ()   { return myNodes.count(); }
-// returns true if list of nodes is empty
-  bool          isEmpty () { return myNodes.isEmpty(); }
-// returns true if item is valid, i.e. has valid attributes and not empty
-  bool          isValid ();
-// returns <Sorted> flag, true by default
-  bool          isSorted() { return mySorted; }
-// sets/clears <Sorted> flag (and reorders nodes)
-  void          setSorted (bool sorted);
-// gets node by index or NULL if index is out of range
-  GraphNode*    getNode (const int index);
-// gets node by index or NULL if index is out of range
-  GraphNode*    operator[] (const int index);
-// sets dynamic marker for item
-  void          setMarker (const int marker, 
-                           const int color, 
-                           const int line);
-// sets static marker for item 
-// (with own (NOT CHANGEABLE) marker, color and type line)
-  void          setMarker (const int      marker, 
-                           const QColor&  color, 
-                           const Qt::PenStyle line);
-// gets item name
-  QString       getName() const { return myName; }
-// sets item name
-  void          setName(const QString& name) { myName = name; }
-// returns true if item has own color
-  bool          hasOwnColor() const  { return myHasOwnColor; }
-// returns true if item has own line type
-  bool          hasOwnLine() const   { return myHasOwnLine; }
-// returns true if item has own marker
-  bool          hasOwnMarker() const { return myHasOwnMarker; }
-// sets own color
-  void          setColor(const QColor& color);
-// returns item's color
-  QColor        getColor();
-// sets own line
-  void          setLine(const Qt::PenStyle line);
-// returns item's line type
-  Qt::PenStyle  getLine();
-// sets own marker 
-  void          setMarker(const int marker);
-// return item's marker type
-  int           getMarker();
-// gets marker attributes
-  void          getMarker (int& marker, int& color, int& line);
-
-protected:
-// performs initialization
-  void          init();
-
-private:
-// parent graph viewer
-  GraphView*    myParent;
-// node list  
-  NodeList      myNodes;
-// name of item
-  QString       myName;
-// attributes type of line, color and marker
-  int           myMarker;
-  int           myColor;
-  int           myLine;
-// own marker
-  bool          myHasOwnMarker;
-// own color
-  bool          myHasOwnColor;
-  QColor        myOwnColor;
-// own line type
-  bool          myHasOwnLine;
-  Qt::PenStyle  myOwnLine;
-// <Sort coordinates> flag
-  bool          mySorted;
-};
-
-typedef QList<GraphItem*>   ItemList;
-typedef QList<QColor>       ColorList;
-typedef QList<Qt::PenStyle> LineList;
-typedef QList<int>          IntList;
-
-class GraphLegend;
-
-//================================================================
-// Class        : GraphView
-// Description  : simple graph displayer
-//================================================================
-class GRAPH_API GraphView : public QWidget {
-  struct OperationButton {
-    Qt::MouseButtons      button;
-    Qt::KeyboardModifiers modifier;
-    OperationButton(const Qt::MouseButtons      btn = Qt::NoButton,
-                    const Qt::KeyboardModifiers m   = Qt::NoModifier)
-      : button(btn), modifier(m) {}
-  };
-
-public:
-  enum ViewOperation { voNone, voZoom, voZoomX, voZoomY, 
-                       voPan,  voPanX, voPanY,  voRect };
-  enum GridMode      { gmFixed, gmIntervals, gmFloating };
-
-#ifdef DEB
-  void          drawItem(QPainter* painter, 
-                         int       pxMin,
-                         int       pxMax, 
-                         int       pyMin, 
-                         int       pyMax,
-                         double    xMin, 
-                         double    xMax, 
-                         double    yMin, 
-                         double    yMax, 
-                         GraphItem* item);
-#endif
-
-/* ================== CONSTRUCTION/DESTRUCTION ================ */
-// Constructor
-  GraphView(QWidget* parent = 0);
-// Destructor
-  ~GraphView();
-
-/* ======================= OVERRIDED ========================== */
-// event filter 
-  bool            eventFilter(QObject* object, QEvent* event);
-
-/* ================== CURSORS HANDLING ======================== */
-// sets cursor for certain view operation
-  void            setOperationCursor (const ViewOperation operation, 
-                                      const QCursor&      newCursor);
-// gets cursor for certain view operation
-  QCursor         getOperationCursor (const ViewOperation operation) const;
-
-/* =================== VIEW OPERATIONS ======================== */
-// returns global <Enable operations> flag state
-  bool            isOperationsEnabled() const { return myEnableGlobal; }
-// globally enables/disables operations
-  void            setOperationsEnabled(bool on);
-// returns 'true' if view operation is enabled 
-  bool            isOperationEnabled (const ViewOperation operation) const;
-// enables/disables view operation 
-  void            setOperationEnabled(const ViewOperation operation, 
-                                      bool                enable);
-// sets operation key-mousebutton combination
-  void            setOperationButton (const ViewOperation         operation, 
-                                      const Qt::MouseButtons      button,
-                                      const Qt::KeyboardModifiers modifier);
-// gets operation key-mousebutton combination
-  void            getOperationButton (const ViewOperation    operation,
-                                      Qt::MouseButtons&      button,
-                                      Qt::KeyboardModifiers& modifier) const;
-// tests for operation key-mousebutton combination
-  bool            testOperation      (const ViewOperation theOp, 
-                                      const Qt::MouseButtons      button,
-                                      const Qt::KeyboardModifiers modifier) const;
-// tests key-mousebutton combination and returns view operation if any matches
-  ViewOperation   testOperation      (const Qt::MouseButtons      button,
-                                      const Qt::KeyboardModifiers modifier) const;
-
-  // resets view : sets origin to 0.0 and scales to 1.0
-  void            reset();
-// fits viewer so display all data  
-  void            fitAll();
-// fits viewer to display certain data
-  void            fitData(const double xMin, const double xMax,
-                          const double yMin, const double yMax);
-// fits viewer to display certain data along horizontal axis
-  void            fitDataX(const double xMin, const double xMax);
-// fits viewer to display certain data along vertical axis
-  void            fitDataY(const double yMin, const double yMax);
-// performs pan operation by dx, dy pixels
-  void            pan(const int dx, const int dy);
-// performs zoom operation by dx, dy pixels
-  void            zoom(const int dx, const int dy);
-// starts view operation if it is enabled
-  void            startViewOperation(const ViewOperation operation);
-
-/* ================== ATRIBUTES HANDLING ====================== */
-// enables/disables internal markers drawing
-  void            showMarkers     (bool show);
-// enables/disables tooltips
-  void            showTooltips    (bool show);
-// returns true is axes are shown
-  bool            isAxesShown     () const { return myShowAxes; }
-// shows/hides axes
-  void            showAxes        (bool show);
-// returns true is tick-marks are shown
-  bool            isTickMarkShown () const { return myShowTickMarks; }
-// shows/hides tick-marks
-  void            showTickMark     (bool show);
-// returns true is title is shown
-  bool            isTitleShown    () const { return myShowTitle; }
-// shows/hides title
-  void            showTitle       (bool show);
-// gets graph title
-  const QString&  getTitle        () const { return myTitle; }
-// sets graph title
-  void            setTitle        (const QString& title);
-// returns true is axes titles are shown
-  bool            isAxesTitleShown() const { return myShowAxesTitle; }
-// shows/hides axis titles
-  void            showAxesTitle   (bool show);
-// gets graph X axis title
-  const QString&  getXTitle       () const { return myXTitle; }
-// sets graph X axis title
-  void            setXTitle       (const QString& title);
-// gets graph Y axis title
-  const QString&  getYTitle       () const { return myYTitle; }
-// sets graph Y axis title
-  void            setYTitle       (const QString& title);
-// returns true is grid is shown
-  bool            isGridShown     () const { return myShowGrid; }
-// shows/hides grid
-  void            showGrid        (bool show);
-// sets grid step (FLOATING mode) for x, y axes, 
-// doesn't change step if it is <= 0
-  void            setGridStep (const double x, const double y, bool turn = true);
-// gets grid step (FLOATING mode) for x, y axes 
-// and returns true if grid mode is FLOATING
-  bool            getGridStep (double& x, double& y) const;
-// sets grid step (FIXED mode) for x, y axes in pixels, 
-// doesn't change step if it is less <= 0
-  void            setFixedGridStep (const int x, const int y, bool turn = true);
-// gets grid step (FIXED mode) for x, y axes in pixels 
-// and returns true if grid mode is FIXED
-  bool            getFixedGridStep (int& x, int& y) const;
-// sets number of grid intervals (INTERVALS mode) for x, y axes, 
-// doesn't change if <= 0
-  void            setGridIntervals (const int xInt, 
-                                    const int yInt, 
-                                    bool      turn = true);
-// gets number of grid intervals (INTERVALS mode) for x, y axes, 
-// and returns true if grid mode is INTERVALS
-  bool            getGridIntervals (int &xInt, int &yInt) const;
-// returns grid mode [FIXED, INTERVALS, FLOATING]
-  GridMode        getGridMode() const { return myGridMode; }
-// switches grid mode [FIXED, INTERVALS, FLOATING]
-  void            setGridMode(const GridMode mode);
-// sets X axis scale 
-  void            setXScale(const double scale);
-// gets X axis scale (data per pixel along X axis)
-  double          getXScale() const { return myXScale; }
-// sets Y axis scale
-  void            setYScale(const double scale);
-// gets Y axis scale (data per pixel along Y axis)
-  double          getYScale() const { return myYScale; }
-// sets X,Y axis scale
-  void            setScale(const double scale);
-// moves axes origin to point [x, y]
-  void            setOrigin(const double x, const double y);
-// gets axes origin
-  void            getOrigin(double& x, double& y) const;
-// changes backgroundColor, use it instead setBackgroundColor
-  void            changeBackgroundColor(const int index = -1);
-// gets main title font
-  QFont           getTitleFont() { return myTitleFont; }
-// sets main title font
-  void            setTitleFont(QFont& font);
-// gets axes title font
-  QFont           getAxesTitleFont() { return myAxesTitleFont; }
-// sets axes title font
-  void            setAxesTitleFont(QFont& font);
-// gets tick marks font
-  QFont           getTickMarksFont() { return myTickMarksFont; }
-// sets tick marks font
-  void            setTickMarksFont(QFont& font);
-// sets legend widget
-  void            setLegend(GraphLegend* legend);
-// gets legend widget
-  GraphLegend*    getLegend() { return myLegend; }
-// gets margins size
-  void            getMargins(int& leftMargin, 
-                             int& rightMargin, 
-                             int& topMargin, 
-                             int& bottomMargin);
-
-/* ================== DATA HANDLING =========================== */
-// inserts item into list
-  void            insertItem(GraphItem* item);
-// removes item from list
-  void            removeItem(const int index);
-// clears data list
-  void            clear();
-// gets number of items
-  int             getNbItems() { return myItems.count(); }
-// gets item by index, returns NULL if index is out of range
-  GraphItem*      getItem(const int index);
-// returns index of item in data list 
-  int             findItem(GraphItem* item);
-// sets/unsets items to be sorted by horizontal coordinate
-  void            setSorted(bool sorted);
-// gets full data range
-  void            getRange(double& minX, double& minY, 
-                           double& maxX, double& maxY);
-// gets current data range
-  void            getCurrentRange(double& minX, double& minY, 
-                                  double& maxX, double& maxY);
-// returns number of colors provided
-  virtual int     getNbColors();
-// returns number of markers provided
-  virtual int     getNbMarkers();
-// returns number of type lines provided
-  virtual int     getNbTypeLines();
-// gets marker size (default is 9 pixels)
-  int             getMarkerSize() { return myMarkerSize; } 
-// sets marker size (for good look it should be odd)
-  void            setMarkerSize(const int size); 
-// gets color by index
-  virtual QColor  getColor(const int color);
-// gets line
-  virtual Qt::PenStyle getLine(const int line);
-// returns true if colors seem to be the same (difference is less than gap)
-  static bool     isSameColors(const QColor color1, 
-                               const QColor color2, 
-                               const int    gap = 10);
-
-protected:
-/* ================== VIEW OPERATIONS HANDLING ================ */
-// starts/finishes view operation
-  void            startOperation (ViewOperation theOp);
-// called on view operation starting
-  virtual void    onStartOperation  ();
-// called on view operation finishing
-  virtual void    onFinishOperation ();
-// called on view operation running
-  virtual void    onOperation (QPoint mousePos);
-// called on mouse moving action (e.g. for highlighting item)
-  virtual void    onMouseMove (QPoint mousePos);
-// gets sensibility area size
-  int             getSensibilitySize() const { return mySensibilitySize; }
-// sets sensibility area size
-  void            setSensibilitySize(const int size);
-// handles tooltips for the view
-  QRect           tip(const QPoint& point, QString& tipText);
-
-/* ================== EVENTS HANDLING ========================= */
-// MousePress event handler
-  void            mousePressEvent (QMouseEvent* e);
-// MouseMove event handler
-  void            mouseMoveEvent (QMouseEvent* e);
-// MouseRelease event handler
-  void            mouseReleaseEvent (QMouseEvent* e);
-// MouseDoubleClick event handler
-  void            mouseDoubleClickEvent (QMouseEvent *e);
-// KeyPress event handler
-  void            keyPressEvent (QKeyEvent *e);
-// KeyRelease event handler
-  void            keyReleaseEvent (QKeyEvent *e);
-// Resize event handler
-  void            resizeEvent (QResizeEvent* e);
-// Paint event handler
-  void            paintEvent (QPaintEvent* e);
-// global event handler
-  bool            event (QEvent* e);
-
-/* ================== DRAWING FUNCTIONS ======================= */
-// gets graph painting area
-  virtual QRect   getGraphRect ();
-// draws grid
-  virtual void    drawGrid (QPainter* painter);
-// draws border (it is drawn when grid is not)
-  virtual void    drawBorder (QPainter* painter);
-// draws axes
-  virtual void    drawAxes (QPainter* painter);
-// draws tick marks
-  virtual void    drawTickMarks(QPainter* painter);
-// draws axes titles
-  virtual void    drawAxesTitle(QPainter* painter);
-// draws graph title
-  virtual void    drawTitle(QPainter* painter);
-// draws item
-  virtual void    drawItem (QPainter* painter, GraphItem* item);
-// draws marker at position
-  virtual void    drawMarker(QPainter*     painter, 
-                             const QPoint  point, 
-                             const int     marker, 
-                             const QColor& color);
-// gets new unique marker for item if possible
-  virtual void    getNextMarker(int& typeMarker, int& color, int& typeLine);
-// checks if marker belongs to some entity
-  bool            existMarker(const int typeMarker, 
-                              const int color, 
-                              const int typeLine);
-
-private:
-// returns true if line [x1,y1] - [x2,y2] intersect rectangle
-  static bool     intersects(QRect rect, long x1, long y1, long x2, long y2);
-// calculates points for grid and/or tick marks
-  void            getTickPoints(IntList& xList, IntList& yList);
-
-private:
-// enable view operations flags
-  bool            myEnableGlobal;
-  bool            myEnableRect;
-  bool            myEnablePan;
-  bool            myEnablePanX;
-  bool            myEnablePanY;
-  bool            myEnableZoom;
-  bool            myEnableZoomX;
-  bool            myEnableZoomY;
-// current view operation
-  ViewOperation   myOperation;
-// current view operation
-  ViewOperation   myForcedOp;
-// sensibility size for rect selection operation
-  int             mySensibilitySize;
-// view operation points (second is used for rubber rectangle)
-  QPoint          myPoint;
-  QPoint          myOtherPoint;
-// view operations key-mouse combinations
-  OperationButton myRectKey;
-  OperationButton myPanKey;
-  OperationButton myPanXKey;
-  OperationButton myPanYKey;
-  OperationButton myZoomKey;
-  OperationButton myZoomXKey;
-  OperationButton myZoomYKey;
-// state cursors
-  QCursor         myDefCursor;
-  QCursor         myRectCursor;
-  QCursor         myPanCursor;
-  QCursor         myPanXCursor;
-  QCursor         myPanYCursor;
-  QCursor         myZoomCursor;
-  QCursor         myZoomXCursor;
-  QCursor         myZoomYCursor;
-// axes origin (left-bottom point)
-  GraphNode       myOrigin;
-// X axis scale
-  double          myXScale;
-  double          myYScale;
-// draw flags
-  bool            myShowAxes;
-  bool            myShowTitle;
-  bool            myShowAxesTitle;
-  bool            myShowTickMarks;
-  bool            myShowGrid;
-  bool            myShowTooltips;
-  bool            myShowMarkers;
-// grid mode
-  GridMode        myGridMode;
-// fixed grid size
-  int             myGridPStepX;
-  int             myGridPStepY;
-// floating grid size
-  double          myGridStepX;
-  double          myGridStepY;
-// number of grid intervals
-  int             myGridIntX;
-  int             myGridIntY;
-// marker size
-  int             myMarkerSize;
-// titles
-  QString         myTitle;
-  QString         myXTitle;
-  QString         myYTitle;
-// colors
-  ColorList       myColors;
-// line types
-  LineList        myLines;
-// data
-  ItemList        myItems;
-  GraphLegend*    myLegend;
-// fonts
-  QFont           myTitleFont;
-  QFont           myAxesTitleFont;
-  QFont           myTickMarksFont;
-// rubber band
-  QRubberBand*    myRubberBand;
-  
-  friend class GraphLegend;
-};
-
-//================================================================
-// Class        : GraphLegend
-// Description  : Legend widget
-//================================================================
-class GRAPH_API GraphLegend : public QWidget {
-public:
-// constructor
-  GraphLegend(QWidget* parent, GraphView* graph);
-
-// updates legend contents
-  void            updateMe();
-// shows/hides legend title
-  void            showTitle(bool show);
-// sets legend title
-  void            setTitle(const QString& title);
-// gets legend title
-  QString         getTitle() const { return myTitle; }
-// returns graph item which is below the point or NULL
-  GraphItem*      itemAt(const QPoint& point);
-// gets legend title font
-  QFont           getTitleFont() { return myTitleFont; }
-// sets legend title font
-  void            setTitleFont(QFont& font);
-// gets item font
-  QFont           getItemFont() { return font(); }
-// sets item font
-  void            setItemFont(QFont& font);
-// get minimum size
-  QSize           minimumSizeHint() const;
-  QSize           sizeHint() const;
-
-protected:
-// handles tooltips for the view
-  QRect           tip(const QPoint& point, QString& tipText);
-// returns rect which contains item's name
-  QRect           textRect(GraphItem* item, QString& tipText);
-// draws contents
-  void            paintEvent(QPaintEvent* e);
-// global event handler
-  bool            event(QEvent* e);
-
-private:
-// parent graph
-  GraphView*      myGraph;
-  bool            myShowTitle;
-  QString         myTitle;
-  QFont           myTitleFont;
-};
-
-//================================================================
-// Class        : GraphSplitView
-// Description  : Graph view with a legend in splitted window
-//================================================================
-class GRAPH_API GraphSplitView : public QWidget {
-public:
-// constructor
-  GraphSplitView(QWidget* parent);
-
-// returns graph view
-  GraphView*      getGraph()  { return myGraph; }
-// returns legend view
-  GraphLegend*    getLegend();
-// shows/hides legend view
-  void            showLegend(bool show);
-// returns true if legend is being shown
-  bool            isLegendShown();
-
-private:
-// graph view
-  GraphView*      myGraph;
-// splitter window
-  QSplitter*      mySplitter;
-};
-
-#endif // !defined(_Graph_h)
\ No newline at end of file
diff --git a/samples/qt/Graphic3dDemo/inc/Handle_Sphere_BasicShape.hxx b/samples/qt/Graphic3dDemo/inc/Handle_Sphere_BasicShape.hxx
deleted file mode 100755 (executable)
index 54ab820..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_Sphere_BasicShape_HeaderFile
-#define _Handle_Sphere_BasicShape_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_AIS_Shape_HeaderFile
-#include <Handle_AIS_Shape.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(AIS_Shape);
-class Sphere_BasicShape;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(Sphere_BasicShape);
-
-class Handle(Sphere_BasicShape) : public Handle(AIS_Shape) {
-  public:
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
-    Handle(Sphere_BasicShape)():Handle(AIS_Shape)() {} 
-    Handle(Sphere_BasicShape)(const Handle(Sphere_BasicShape)& aHandle) : Handle(AIS_Shape)(aHandle) 
-     {
-     }
-
-    Handle(Sphere_BasicShape)(const Sphere_BasicShape* anItem) : Handle(AIS_Shape)((AIS_Shape *)anItem) 
-     {
-     }
-
-    Handle(Sphere_BasicShape)& operator=(const Handle(Sphere_BasicShape)& aHandle)
-     {
-      Assign(aHandle.Access());
-      return *this;
-     }
-
-    Handle(Sphere_BasicShape)& operator=(const Sphere_BasicShape* anItem)
-     {
-      Assign((Standard_Transient *)anItem);
-      return *this;
-     }
-
-    Sphere_BasicShape* operator->() 
-     {
-      return (Sphere_BasicShape *)ControlAccess();
-     }
-
-    Sphere_BasicShape* operator->() const 
-     {
-      return (Sphere_BasicShape *)ControlAccess();
-     }
-
-   Standard_EXPORT ~Handle(Sphere_BasicShape)();
-   Standard_EXPORT static const Handle(Sphere_BasicShape) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/Handle_Sphere_Sphere.hxx b/samples/qt/Graphic3dDemo/inc/Handle_Sphere_Sphere.hxx
deleted file mode 100755 (executable)
index 5d8a8aa..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _Handle_Sphere_Sphere_HeaderFile
-#define _Handle_Sphere_Sphere_HeaderFile
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _Handle_Sphere_BasicShape_HeaderFile
-#include <Handle_Sphere_BasicShape.hxx>
-#endif
-
-class Standard_Transient;
-class Handle_Standard_Type;
-class Handle(Sphere_BasicShape);
-class Sphere_Sphere;
-Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(Sphere_Sphere);
-
-class Handle(Sphere_Sphere) : public Handle(Sphere_BasicShape) {
-  public:
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
-    Handle(Sphere_Sphere)():Handle(Sphere_BasicShape)() {} 
-    Handle(Sphere_Sphere)(const Handle(Sphere_Sphere)& aHandle) : Handle(Sphere_BasicShape)(aHandle) 
-     {
-     }
-
-    Handle(Sphere_Sphere)(const Sphere_Sphere* anItem) : Handle(Sphere_BasicShape)((Sphere_BasicShape *)anItem) 
-     {
-     }
-
-    Handle(Sphere_Sphere)& operator=(const Handle(Sphere_Sphere)& aHandle)
-     {
-      Assign(aHandle.Access());
-      return *this;
-     }
-
-    Handle(Sphere_Sphere)& operator=(const Sphere_Sphere* anItem)
-     {
-      Assign((Standard_Transient *)anItem);
-      return *this;
-     }
-
-    Sphere_Sphere* operator->() 
-     {
-      return (Sphere_Sphere *)ControlAccess();
-     }
-
-    Sphere_Sphere* operator->() const 
-     {
-      return (Sphere_Sphere *)ControlAccess();
-     }
-
-   Standard_EXPORT ~Handle(Sphere_Sphere)();
-   Standard_EXPORT static const Handle(Sphere_Sphere) DownCast(const Handle(Standard_Transient)& AnObject);
-};
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/MDIWindow.h b/samples/qt/Graphic3dDemo/inc/MDIWindow.h
deleted file mode 100755 (executable)
index 3b72778..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifndef MDIWINDOW_H
-#define MDIWINDOW_H
-
-#include <qmainwindow.h>
-#include <V3d_View.hxx>
-#include <V3d_TypeOfView.hxx>
-
-#include "ViewOperations.h"
-
-class Document;
-class View;
-class GraphSplitView;
-
-class MDIWindow : public QMainWindow
-{
-  Q_OBJECT
-
-friend class Document;
-
-public:
-
-  enum ResultType
-  {
-    DisplayNonOpt, DisplayOpt, UpdateNonOpt, UpdateOpt, Undefined
-  };
-
-public:
-  MDIWindow( Document* aDocument, QWidget* parent, V3d_TypeOfView );
-  ~MDIWindow();
-
-  Document*           getDocument();
-  int                 getDisplayMode();
-  void                defineMagView();
-  Handle_V3d_View&    getView();
-  void                activateAction( ViewOperations::Action action );
-  void                addResult(ResultType, int, double);
-    
-  bool                eventFilter(QObject*, QEvent*);
-  void                graphPopup(const QPoint&);
-
-signals:
-  void                message( const QString&, int );
-       void                sendCloseView( MDIWindow* theView );
-
-public slots:
-  void                closeEvent( QCloseEvent* e );
-  void                setCursor( const QCursor& );
-  void                onGraphClear();
-  void                onGraphFitAll();
-
-protected:
-  void                createViewActions();
-  void                createGraphActions();
-
-private:
-  Document*           myDocument;
-  View*               myView;
-  GraphSplitView*     myGraphView;
-  QMenu*              myGraphPopup;
-  ViewOperations*     myOperations;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/ObjectDlg.h b/samples/qt/Graphic3dDemo/inc/ObjectDlg.h
deleted file mode 100755 (executable)
index ce33993..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef OBJECTDLG_H
-#define OBJECTDLG_H
-
-#include <qdialog.h>
-
-#include <Aspect_TypeOfDegenerateModel.hxx>
-#include <V3d_View.hxx>
-#include <AIS_InteractiveContext.hxx>
-
-class QLabel;
-class QComboBox;
-class QSpinBox;
-class ObjectDlg : public QDialog
-{
-    Q_OBJECT
-
-        enum { SolidEdgeId, DashEdgeId, DotEdgeId, DotDashEdgeId };
-
-        enum { NoDegId, TinyDegId, WireDegId, MarkerDegId, BBoxDegId };
-
-public:
-       ObjectDlg( QWidget* parent, Handle(V3d_View)&, Handle(AIS_InteractiveContext)& );
-       virtual ~ObjectDlg();
-
-private slots:
-    void        onOk();
-    void        onCancel();
-    void        onHelp();
-    void        onShowEdges( bool );
-    void        onDegenerateModel( int );
-    void        onDegRatio( int );
-    void        onEdgeStyle( int );
-    void        onEdgeWidth( int );
-    void        onAutoApply( bool );
-
-protected:
-    void        showEvent ( QShowEvent* );
-
-private:
-    void        updateEdgeAspect( bool edgeStyle ); 
-                /* if edgeStyle - true then type of line will be changed;
-                   width of line will be changed otherwise
-                */
-    void        updateDegenerationModel();
-
-private:
-    /* ----- common section ----- */
-    bool                            myAutoApply;
-    Handle_V3d_View                 myView;
-    Handle_AIS_InteractiveContext   myContext;
-    /* ----- edge section ----- */
-    QLabel*                         myEdgeStyle;
-    QLabel*                         myEdgeWidth;
-    QComboBox*                      myEdgeBox;
-    QSpinBox*                       myEdgeSpin;
-    int                             myCurrentEdgeStyle;
-    float                           myCurrentEdgeWidth;
-    /* ----- degeneration section ----- */
-    Aspect_TypeOfDegenerateModel    myDegModel;
-    int                             myCurrentDegModel;
-    float                           myCurrentDegRatio;
-    QLabel*                         myDegModelLabel;
-    QLabel*                         myDegRatioLabel;
-    QComboBox*                      myDegModelBox;
-    QSpinBox*                       myDegRatioSpin;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/ShapeDlg.h b/samples/qt/Graphic3dDemo/inc/ShapeDlg.h
deleted file mode 100755 (executable)
index 7417de4..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef SHAPEDLG_H
-#define SHAPEDLG_H
-
-#include <qdialog.h>
-
-#include <Aspect_TypeOfDegenerateModel.hxx>
-#include <V3d_View.hxx>
-#include <AIS_InteractiveContext.hxx>
-//#include <GUIA_Sphere.hxx>
-#include <Sphere_Sphere.hxx>
-
-class QLabel;
-class QComboBox;
-class QSpinBox;
-class QDoubleSpinBox;
-class QCheckBox;
-class ShapeDlg : public QDialog  
-{
-    Q_OBJECT
-
-        enum { SolidEdgeId, DashEdgeId, DotEdgeId, DotDashEdgeId };
-
-        enum { NoDegId, TinyDegId, WireDegId, MarkerDegId, BBoxDegId };
-
-public:
-       ShapeDlg( QWidget* parent, Handle(V3d_View)&, Handle(AIS_InteractiveContext)& );
-       virtual ~ShapeDlg();
-
-private slots:
-    void        onOk();
-    void        onCancel();
-    void        onHelp();
-    void        onRadiusChanged( double );
-    void        onItemsChanged( int );
-    void        onPanesChanged( int );
-    void        onDeflectionChanged( double );
-       void            onText();
-       void            onPositionChanged();
-protected:
-    void        closeEvent ( QCloseEvent* );
-    void        showEvent ( QShowEvent* );
-
-private:
-    void        updateSphere();
-
-private:
-    /* ----- common section ----- */
-    Handle_V3d_View                 myView;
-    Handle_AIS_InteractiveContext   myContext;
-    Handle_Sphere_Sphere            myShape;
-    double                          myRadius;
-    double                          myDeflection;
-    int                             myNbPanes;
-    int                             myNbItems;
-    QDoubleSpinBox*                 myDefSpin;
-    QSpinBox*                       myPanesSpin;
-    QSpinBox*                       myItemsSpin;
-    QDoubleSpinBox*                 myXSpin;
-    QDoubleSpinBox*                 myYSpin;
-    QDoubleSpinBox*                 myZSpin;
-    QCheckBox*                      myVNormal;
-    QCheckBox*                      myVColor;
-    QCheckBox*                      myVTexel;
-    QCheckBox*                      myText;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.hxx b/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.hxx
deleted file mode 100755 (executable)
index c961cb9..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _Sphere_BasicShape_HeaderFile
-#define _Sphere_BasicShape_HeaderFile
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-#ifndef _Handle_Sphere_BasicShape_HeaderFile
-#include <Handle_Sphere_BasicShape.hxx>
-#endif
-
-#include <Standard_Real.hxx>
-#include <Standard_Boolean.hxx>
-#include <AIS_Shape.hxx>
-class TopoDS_Shape;
-class gp_Pnt;
-
-
-class Sphere_BasicShape : public AIS_Shape {
-
-public:
-
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
- // Methods PUBLIC
- // 
-Standard_EXPORT Sphere_BasicShape(const TopoDS_Shape& aShape,const Standard_Real aDeflection,const Standard_Boolean hasVNormals,const Standard_Boolean hasVColors,const Standard_Boolean hasVTexels);
-Standard_EXPORT   void SetPosition(const gp_Pnt& aPosition) ;
-Standard_EXPORT   void SetVNormals(const Standard_Boolean aFlag) ;
-Standard_EXPORT   void SetVColors(const Standard_Boolean aFlag) ;
-Standard_EXPORT   void SetVTexels(const Standard_Boolean aFlag) ;
-Standard_EXPORT   void SetDeflection(const Standard_Real aValue) ;
-Standard_EXPORT   gp_Pnt Position() const;
-Standard_EXPORT   Standard_Boolean VNormalsFlag() const;
-Standard_EXPORT   Standard_Boolean VColorsFlag() const;
-Standard_EXPORT   Standard_Boolean VTexelsFlag() const;
-Standard_EXPORT   Standard_Real Deflection() const;
-Standard_EXPORT ~Sphere_BasicShape();
-
-
-
-
- // Type management
- //
- Standard_EXPORT friend Handle_Standard_Type& Sphere_BasicShape_Type_();
- Standard_EXPORT const Handle_Standard_Type& DynamicType() const;
- Standard_EXPORT Standard_Boolean             IsKind(const Handle(Standard_Type)&) const;
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-Standard_Real myDeflection;
-Standard_Boolean myVNormalsFlag;
-Standard_Boolean myVColorsFlag;
-Standard_Boolean myVTexelsFlag;
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
-
-
-};
-
-
-
-
-
-// other Inline functions and methods (like "C++: function call" methods)
-//
-
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.ixx b/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.ixx
deleted file mode 100755 (executable)
index 0158de1..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#include <Sphere_BasicShape.jxx>
-
-#ifndef _Standard_TypeMismatch_HeaderFile
-#include <Standard_TypeMismatch.hxx>
-#endif
-
-Sphere_BasicShape::~Sphere_BasicShape() {}
-
-
-Standard_EXPORT Handle_Standard_Type& Sphere_BasicShape_Type_()
-{
-
-    static Handle_Standard_Type aType1 = STANDARD_TYPE(AIS_Shape);
-  if ( aType1.IsNull()) aType1 = STANDARD_TYPE(AIS_Shape);
-  static Handle_Standard_Type aType2 = STANDARD_TYPE(AIS_InteractiveObject);
-  if ( aType2.IsNull()) aType2 = STANDARD_TYPE(AIS_InteractiveObject);
-  static Handle_Standard_Type aType3 = STANDARD_TYPE(SelectMgr_SelectableObject);
-  if ( aType3.IsNull()) aType3 = STANDARD_TYPE(SelectMgr_SelectableObject);
-  static Handle_Standard_Type aType4 = STANDARD_TYPE(PrsMgr_PresentableObject);
-  if ( aType4.IsNull()) aType4 = STANDARD_TYPE(PrsMgr_PresentableObject);
-  static Handle_Standard_Type aType5 = STANDARD_TYPE(MMgt_TShared);
-  if ( aType5.IsNull()) aType5 = STANDARD_TYPE(MMgt_TShared);
-  static Handle_Standard_Type aType6 = STANDARD_TYPE(Standard_Transient);
-  if ( aType6.IsNull()) aType6 = STANDARD_TYPE(Standard_Transient);
-
-  static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,aType6,NULL};
-  static Handle_Standard_Type _aType = new Standard_Type("Sphere_BasicShape",
-                                                        sizeof(Sphere_BasicShape),
-                                                        1,
-                                                        (Standard_Address)_Ancestors,
-                                                        (Standard_Address)NULL);
-
-  return _aType;
-}
-
-
-// DownCast method
-//   allow safe downcasting
-//
-const Handle(Sphere_BasicShape) Handle(Sphere_BasicShape)::DownCast(const Handle(Standard_Transient)& AnObject) 
-{
-  Handle(Sphere_BasicShape) _anOtherObject;
-
-  if (!AnObject.IsNull()) {
-     if (AnObject->IsKind(STANDARD_TYPE(Sphere_BasicShape))) {
-       _anOtherObject = Handle(Sphere_BasicShape)((Handle(Sphere_BasicShape)&)AnObject);
-     }
-  }
-
-  return _anOtherObject ;
-}
-const Handle(Standard_Type)& Sphere_BasicShape::DynamicType() const 
-{ 
-  return STANDARD_TYPE(Sphere_BasicShape) ; 
-}
-Standard_Boolean Sphere_BasicShape::IsKind(const Handle(Standard_Type)& AType) const 
-{ 
-  return (STANDARD_TYPE(Sphere_BasicShape) == AType || AIS_Shape::IsKind(AType)); 
-}
-Handle_Sphere_BasicShape::~Handle_Sphere_BasicShape() {}
-
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.jxx b/samples/qt/Graphic3dDemo/inc/Sphere_BasicShape.jxx
deleted file mode 100755 (executable)
index 3fcb6ec..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#include <TopoDS_Shape.hxx>
-#include <gp_Pnt.hxx>
-#include <Sphere_BasicShape.hxx>
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.hxx b/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.hxx
deleted file mode 100755 (executable)
index 6cdf6bd..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _Sphere_Sphere_HeaderFile
-#define _Sphere_Sphere_HeaderFile
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-#ifndef _Handle_Sphere_Sphere_HeaderFile
-#include <Handle_Sphere_Sphere.hxx>
-#endif
-
-#include <Standard_Real.hxx>
-#include <Sphere_BasicShape.hxx>
-#include <Standard_Boolean.hxx>
-#include <Handle_PrsMgr_PresentationManager3d.hxx>
-#include <Handle_Prs3d_Presentation.hxx>
-#include <Standard_Integer.hxx>
-class gp_Pnt;
-class PrsMgr_PresentationManager3d;
-class Prs3d_Presentation;
-
-
-class Sphere_Sphere : public Sphere_BasicShape {
-
-public:
-
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
- // Methods PUBLIC
- // 
-Standard_EXPORT Sphere_Sphere(const gp_Pnt& aPosition,const Standard_Real aRadius,const Standard_Real aDeflection = 1.0,const Standard_Boolean hasVNormals = Standard_True,const Standard_Boolean hasVColors = Standard_False,const Standard_Boolean hasVTexels = Standard_False, const Standard_Boolean hasText = Standard_False, const Standard_Boolean isOptText = Standard_False);
-Standard_EXPORT   void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
-Standard_EXPORT   void SetRadius(const Standard_Real aValue) ;
-Standard_EXPORT   Standard_Real Radius() const;
-Standard_EXPORT static  Standard_Integer NbPanes(const Standard_Real aRadius,const Standard_Real aDeflection) ;
-Standard_EXPORT static  Standard_Integer NbPanes(const Standard_Integer nbItems) ;
-Standard_EXPORT static  Standard_Integer NbItems(const Standard_Integer nbPanes) ;
-Standard_EXPORT static  Standard_Real Deflection(const Standard_Real aRadius,const Standard_Integer nbPanes) ;
-Standard_EXPORT ~Sphere_Sphere();
-
-
-
-
- // Type management
- //
- Standard_EXPORT friend Handle_Standard_Type& Sphere_Sphere_Type_();
- Standard_EXPORT const Handle_Standard_Type& DynamicType() const;
- Standard_EXPORT Standard_Boolean             IsKind(const Handle(Standard_Type)&) const;
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
-Standard_Real myRadius;
-Standard_Boolean myText;
-Standard_Boolean myOptText;
-
-
-};
-
-
-
-
-
-// other Inline functions and methods (like "C++: function call" methods)
-//
-
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.ixx b/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.ixx
deleted file mode 100755 (executable)
index 6de3be2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-// File generated by CPPExt (Transient)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#include <Sphere_Sphere.jxx>
-
-#ifndef _Standard_TypeMismatch_HeaderFile
-#include <Standard_TypeMismatch.hxx>
-#endif
-
-Sphere_Sphere::~Sphere_Sphere() {}
-
-
-Standard_EXPORT Handle_Standard_Type& Sphere_Sphere_Type_()
-{
-
-    static Handle_Standard_Type aType1 = STANDARD_TYPE(Sphere_BasicShape);
-  if ( aType1.IsNull()) aType1 = STANDARD_TYPE(Sphere_BasicShape);
-  static Handle_Standard_Type aType2 = STANDARD_TYPE(AIS_Shape);
-  if ( aType2.IsNull()) aType2 = STANDARD_TYPE(AIS_Shape);
-  static Handle_Standard_Type aType3 = STANDARD_TYPE(AIS_InteractiveObject);
-  if ( aType3.IsNull()) aType3 = STANDARD_TYPE(AIS_InteractiveObject);
-  static Handle_Standard_Type aType4 = STANDARD_TYPE(SelectMgr_SelectableObject);
-  if ( aType4.IsNull()) aType4 = STANDARD_TYPE(SelectMgr_SelectableObject);
-  static Handle_Standard_Type aType5 = STANDARD_TYPE(PrsMgr_PresentableObject);
-  if ( aType5.IsNull()) aType5 = STANDARD_TYPE(PrsMgr_PresentableObject);
-  static Handle_Standard_Type aType6 = STANDARD_TYPE(MMgt_TShared);
-  if ( aType6.IsNull()) aType6 = STANDARD_TYPE(MMgt_TShared);
-  static Handle_Standard_Type aType7 = STANDARD_TYPE(Standard_Transient);
-  if ( aType7.IsNull()) aType7 = STANDARD_TYPE(Standard_Transient);
-
-  static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,aType5,aType6,aType7,NULL};
-  static Handle_Standard_Type _aType = new Standard_Type("Sphere_Sphere",
-                                                        sizeof(Sphere_Sphere),
-                                                        1,
-                                                        (Standard_Address)_Ancestors,
-                                                        (Standard_Address)NULL);
-
-  return _aType;
-}
-
-
-// DownCast method
-//   allow safe downcasting
-//
-const Handle(Sphere_Sphere) Handle(Sphere_Sphere)::DownCast(const Handle(Standard_Transient)& AnObject) 
-{
-  Handle(Sphere_Sphere) _anOtherObject;
-
-  if (!AnObject.IsNull()) {
-     if (AnObject->IsKind(STANDARD_TYPE(Sphere_Sphere))) {
-       _anOtherObject = Handle(Sphere_Sphere)((Handle(Sphere_Sphere)&)AnObject);
-     }
-  }
-
-  return _anOtherObject ;
-}
-const Handle(Standard_Type)& Sphere_Sphere::DynamicType() const 
-{ 
-  return STANDARD_TYPE(Sphere_Sphere) ; 
-}
-Standard_Boolean Sphere_Sphere::IsKind(const Handle(Standard_Type)& AType) const 
-{ 
-  return (STANDARD_TYPE(Sphere_Sphere) == AType || Sphere_BasicShape::IsKind(AType)); 
-}
-Handle_Sphere_Sphere::~Handle_Sphere_Sphere() {}
-
diff --git a/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.jxx b/samples/qt/Graphic3dDemo/inc/Sphere_Sphere.jxx
deleted file mode 100755 (executable)
index 3be04d8..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <gp_Pnt.hxx>
-#include <PrsMgr_PresentationManager3d.hxx>
-#include <Prs3d_Presentation.hxx>
-#include <Sphere_Sphere.hxx>
diff --git a/samples/qt/Graphic3dDemo/inc/Translate.h b/samples/qt/Graphic3dDemo/inc/Translate.h
deleted file mode 100755 (executable)
index be2b539..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef TRANSLATE_H
-#define TRANSLATE_H
-
-#include <qobject.h>
-#include <AIS_InteractiveContext.hxx>
-#include <TopTools_HSequenceOfShape.hxx>
-#include <Storage_Error.hxx>
-#include <TCollection_AsciiString.hxx>
-#include "MgtBRep_TriangleMode.hxx"
-#include <STEPControl_StepModelType.hxx>
-
-class Translate: public QObject
-{
-       Q_OBJECT
-public:
-    Translate(QObject* parent);
-       ~Translate();
-
-       void        importBREP( const Handle(AIS_InteractiveContext) );
-
-
-       void        importBREP( const Handle(AIS_InteractiveContext), const QString& );
-
-       bool        importBREP( const Handle(AIS_InteractiveContext), const Standard_CString );
-
-private :
-    QString     selectFileName( const QString& , bool isImport ) const;
-
-    static Handle(TopTools_HSequenceOfShape) 
-                   BuildSequenceFromContext( const Handle(AIS_InteractiveContext)& );
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/View.h b/samples/qt/Graphic3dDemo/inc/View.h
deleted file mode 100755 (executable)
index c7e2011..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#ifndef VIEW_H
-#define VIEW_H
-
-#include <qwidget.h>
-
-#include <AIS_InteractiveContext.hxx>
-#include <V3d_View.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include "MDIWindow.h"
-#include "Document.h"
-#include "ViewOperations.h"
-#include "ViewDlg.h"
-#include "ObjectDlg.h"
-#include "ShapeDlg.h"
-
-class QRubberBand;
-
-class View: public QWidget
-{
-       Q_OBJECT
-       enum CurrentAction3d { CurAction3d_Nothing,
-                                    CurAction3d_DynamicZooming,
-                                    CurAction3d_WindowZooming,
-                         CurAction3d_DynamicPanning,
-                         CurAction3d_GlobalPanning,
-                         CurAction3d_DynamicRotation,
-                         CurAction3d_MagnifyView
-  };
-
-public:
-  View( Handle(AIS_InteractiveContext), QWidget* parent, MDIWindow* );
-  ~View();
-       
-  void               setCurrentAction();
-  Handle_V3d_View&   getView();
-  void               startAction( ViewOperations::Action );
-
-signals:
-       void        selectionChanged();
-       void        noActiveActions();
-       void        ViewInitialized();
-
-public slots:
-       void        onBackground();
-       void        paintEvent( QPaintEvent * e);
-       void        resizeEvent( QResizeEvent* e);
-
-private slots:
-  void        onImportObject();
-  void        onEditObjectProperties();
-  void        onCreateShape();
-  void        onLoadBox();
-  void        onLoadSphere();
-  void        onLoadTorus();
-  void        onLoadLine();
-  void        onRemoveObject();
-  void        onWireframeMode();
-  void        onShadingMode();
-  void        onDisplayTrihedron();
-  void        onEraseTrihedron();
-
-
-protected:
-       void        mousePressEvent ( QMouseEvent* e);
-       void        mouseReleaseEvent ( QMouseEvent* e);
-       void        mouseMoveEvent ( QMouseEvent* e);
-  void        init();
-
-
-private:
-  void        onLButtonDown( Qt::KeyboardModifiers nFlags, const QPoint point );
-  void        onRButtonDown( Qt::KeyboardModifiers nFlags, const QPoint point );
-  void        onLButtonUp( Qt::KeyboardModifiers nFlags, const QPoint point );
-  void        onRButtonUp( Qt::KeyboardModifiers nFlags, const QPoint point );
-  void        onMouseMove( Qt::MouseButtons btns, Qt::KeyboardModifiers nFlags, const QPoint point );
-  void        DragEvent( int x, int y, int TheState );
-  void        InputEvent( int x, int y );  
-  void        MoveEvent( int x, int y ); 
-  void        MultiMoveEvent( int x, int y ); 
-  void        MultiDragEvent( int x, int y, int TheState ); 
-  void        MultiInputEvent( int x, int y ); 
-  void        Popup(); 
-  void        DrawRectangle ( int MinX, int MinY, int MaxX, int MaxY, bool Draw );
-
-private:
-  MDIWindow*                      myMDI;
-  QRubberBand*                    myRubberBand;
-  ObjectDlg*                      myObjDlg;
-  ShapeDlg*                       myShapeDlg;
-       Standard_Integer                myFirst;
-       Handle_V3d_View                 myView;
-       Handle_AIS_InteractiveContext   myContext;
-  Handle_AIS_Trihedron            myTrihedron;
-       CurrentAction3d                 myCurrentMode;
-  Standard_Integer                myXmin;
-  Standard_Integer                myYmin;  
-  Standard_Integer                myXmax;
-  Standard_Integer                myYmax;
-  Quantity_Factor                 myCurZoom;
-  Standard_Boolean                myComputedModeIsOn;
-  Standard_Integer                myCycleCounter;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/ViewDlg.h b/samples/qt/Graphic3dDemo/inc/ViewDlg.h
deleted file mode 100755 (executable)
index d9f5d8e..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-// ViewDlg.h: interface for the ViewDlg class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_VIEWDLG_H__624EA574_FAC0_11D5_A986_0001021E946C__INCLUDED_)
-#define AFX_VIEWDLG_H__624EA574_FAC0_11D5_A986_0001021E946C__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include <qdialog.h>
-
-#include <V3d_View.hxx>
-
-class QCheckBox;
-class ViewDlg : public QDialog  
-{
-    Q_OBJECT
-
-public:
-       ViewDlg(QWidget* parent/*, Handle(V3d_View)& view*/);
-       virtual ~ViewDlg();
-public slots:
-       void Update();
-protected:
-    void        showEvent ( QShowEvent* );
-
-private slots:
-    void        onOk();
-    void        onCancel();
-    void        onHelp();
-    void        onZBuffer( bool );
-    void        onAnimation( bool );
-    void        onDegeneration( bool );
-    void        onAutoApply( bool );
-    void        onApplyAllViews( bool );
-
-private:
-    Standard_Boolean    myAutoApply;
-       Standard_Boolean    myApplyAllViews;
-//    Handle_V3d_View     myView;
-    QCheckBox*          myAnimBox;
-    QCheckBox*          myDegBox;
-       QCheckBox*          myZBufferBox;
-    Standard_Boolean    myIsAnim;
-    Standard_Boolean    myIsDeg;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/ViewOperations.h b/samples/qt/Graphic3dDemo/inc/ViewOperations.h
deleted file mode 100755 (executable)
index 3adbbbd..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef VIEWOPERATIONS_H
-#define VIEWOPERATIONS_H
-
-#include <qobject.h>
-#include <qlist.h>
-#include <qaction.h>
-
-#include <AIS_InteractiveContext.hxx>
-
-class ViewOperations : public QObject
-{
-       Q_OBJECT
-
-public:
-  enum ViewActions { /*MagViewId, AxoViewId, PerViewId,*/ ToolWireframeId, ToolShadingId };
-
-  enum Action { ViewFitAllId, ViewFitAreaId, ViewZoomId, ViewPanId, 
-                               ViewGlobalPanId, ViewFrontId, ViewBackId, 
-                                 ViewTopId, ViewBottomId, ViewLeftId, ViewRightId,ViewAxoId, 
-                                 ViewRotationId, ViewResetId };
-
-       ViewOperations( QObject * parent=0 ) ;
-       ViewOperations( Handle(AIS_InteractiveContext) theContext, QObject * parent=0 ) ;
-       ~ViewOperations();
-
-       QList<QAction*>     getViewActions();
-       QList<QAction*>     getToolActions();
-       void                initActions();
-       int                 getDisplayMode();
-
-signals:
-  void                setCursor( const QCursor& );
-
-private slots:
-  void                onActionActivated();
-
-public slots:
-       void                onWireframe();
-       void                onShading();
-       void                onToolAction();
-       void                updateToggled( bool );
-       void                onNoActiveActions();
-
-private:
-  void                initCursors();
-       void                initViewActions();
-       void                initToolActions();
-
-private:
-       Handle_AIS_InteractiveContext   myContext;
-       QList<QAction*>                 myViewActions;
-  QList<QAction*>                 myToolActions;
-};
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/inc/global.h b/samples/qt/Graphic3dDemo/inc/global.h
deleted file mode 100755 (executable)
index 40261ba..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef GLOBAL_H
-#define GLOBAL_H
-
-#include <qobject.h>
-#include <qstring.h>
-
-#if defined WNT
-#ifdef _DEBUG
-#include <assert.h>
-#define verify(a)   assert(a)
-#else
-#define verify(a) a
-#endif
-#else
-#define verify(a)   a;
-#endif
-
-#ifndef WNT
-#define true TRUE
-#define false FALSE
-#endif
-
-#endif
diff --git a/samples/qt/Graphic3dDemo/res/Sample_icons.ts b/samples/qt/Graphic3dDemo/res/Sample_icons.ts
deleted file mode 100755 (executable)
index 22b7091..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-<!DOCTYPE TS>
-<TS version="1.1" >
-    <context>
-        <name>Application</name>
-        <message>
-            <source>ICON_AUTO_TEST</source>
-            <translation>../../res/auto.png</translation>
-        </message>
-        <message>
-            <source>ICON_CASCADE</source>
-            <translation>../../res/cascade.png</translation>
-        </message>
-        <message>
-            <source>ICON_CLOSE</source>
-            <translation>../../res/close.png</translation>
-        </message>
-        <message>
-            <source>ICON_HELP</source>
-            <translation>../../res/help.png</translation>
-        </message>
-        <message>
-            <source>ICON_NEW</source>
-            <translation>../../res/new.png</translation>
-        </message>
-        <message>
-            <source>ICON_OPTIM</source>
-            <translation>../../res/optim.png</translation>
-        </message>
-        <message>
-            <source>ICON_STOP</source>
-            <translation>../../res/stop.png</translation>
-        </message>
-        <message>
-            <source>ICON_TILE</source>
-            <translation>../../res/tile.png</translation>
-        </message>
-    </context>
-    <context>
-        <name>Document</name>
-        <message>
-            <source>ICON_DOC</source>
-            <translation>../../res/document.png</translation>
-        </message>
-    </context>
-    <context>
-        <name>QObject</name>
-        <message>
-            <source>ICON_SAMPLE</source>
-            <translation>../../res/lamp.png</translation>
-        </message>
-    </context>
-    <context>
-        <name>ViewOperations</name>
-        <message>
-            <source>ICON_CURSOR_ROTATE</source>
-            <translation>../../res/cursor_rotate.png</translation>
-        </message>
-        <message>
-            <source>ICON_CURSOR_ZOOM</source>
-            <translation>../../res/cursor_zoom.png</translation>
-        </message>
-        <message>
-            <source>ICON_TOOL_SHAD</source>
-            <translation>../../res/tool_shading.png</translation>
-        </message>
-        <message>
-            <source>ICON_TOOL_WIRE</source>
-            <translation>../../res/tool_wireframe.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_AXO</source>
-            <translation>../../res/view_axo.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_BACK</source>
-            <translation>../../res/view_back.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_BOTTOM</source>
-            <translation>../../res/view_bottom.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_FITALL</source>
-            <translation>../../res/view_fitall.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_FITAREA</source>
-            <translation>../../res/view_fitarea.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_FRONT</source>
-            <translation>../../res/view_front.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_GLOBALPAN</source>
-            <translation>../../res/view_glpan.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_LEFT</source>
-            <translation>../../res/view_left.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_PAN</source>
-            <translation>../../res/view_pan.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_RESET</source>
-            <translation>../../res/view_reset.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_RIGHT</source>
-            <translation>../../res/view_right.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_ROTATION</source>
-            <translation>../../res/view_rotate.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_TOP</source>
-            <translation>../../res/view_top.png</translation>
-        </message>
-        <message>
-            <source>ICON_VIEW_ZOOM</source>
-            <translation>../../res/view_zoom.png</translation>
-        </message>
-    </context>
-</TS>
diff --git a/samples/qt/Graphic3dDemo/res/Sample_msg.ts b/samples/qt/Graphic3dDemo/res/Sample_msg.ts
deleted file mode 100755 (executable)
index 66f509a..0000000
+++ /dev/null
@@ -1,589 +0,0 @@
-<!DOCTYPE TS>
-<TS version="1.1" >
-    <context>
-        <name>@default</name>
-        <message>
-            <source>BTN_APPLYALLVIEWS</source>
-            <translation>Apply on all views</translation>
-        </message>
-        <message>
-            <source>BTN_AUTOAPPLY</source>
-            <translation>Apply immediately</translation>
-        </message>
-        <message>
-            <source>BTN_CANCEL</source>
-            <translation>Cancel</translation>
-        </message>
-        <message>
-            <source>BTN_DEGENERATION</source>
-            <translation>Enable degeneration</translation>
-        </message>
-        <message>
-            <source>BTN_HELP</source>
-            <translation>Help</translation>
-        </message>
-        <message>
-            <source>BTN_OK</source>
-            <translation>Ok</translation>
-        </message>
-        <message>
-            <source>BTN_ZBUFFER</source>
-            <translation>Enable ZBuffer</translation>
-        </message>
-        <message>
-            <source>INF_APP_EXPORT</source>
-            <translation>Export file</translation>
-        </message>
-        <message>
-            <source>INF_APP_IMPORT</source>
-            <translation>Import file</translation>
-        </message>
-        <message>
-            <source>INF_DATA_ERROR</source>
-            <translation>Incorrect Data.</translation>
-        </message>
-        <message>
-            <source>INF_FACET_ERROR</source>
-            <translation>At least one shape doesn't contain facetes.</translation>
-        </message>
-        <message>
-            <source>INF_NOTHING_ERROR</source>
-            <translation>Nothing to transfer.</translation>
-        </message>
-        <message>
-            <source>INF_NULL_SHAPE</source>
-            <translation>No objects found to be saved.</translation>
-        </message>
-        <message>
-            <source>INF_TRANSLATE_ERROR</source>
-            <translation>The translation is not done.</translation>
-        </message>
-        <message>
-            <source>INF_WRITING_ERROR</source>
-            <translation>Writing has failed.</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_DEFERRED</source>
-            <translation>deferred</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_DMODE</source>
-            <translation>Activate display mode</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_IMMEDIATE</source>
-            <translation>immediate</translation>
-        </message>
-        <message>
-            <source>TIT_ERROR</source>
-            <translation>Error</translation>
-        </message>
-    </context>
-    <context>
-        <name>Application</name>
-        <message>
-            <source>INF_ABOUT</source>
-            <translation>New OpenGL functionality testings.</translation>
-        </message>
-        <message>
-            <source>INF_READY</source>
-            <translation>Ready</translation>
-        </message>
-        <message>
-            <source>MEN_ABOUT</source>
-            <translation>&amp;About</translation>
-        </message>
-        <message>
-            <source>MEN_CASCADE</source>
-            <translation>&amp;Cascade</translation>
-        </message>
-        <message>
-            <source>MEN_CLOSE</source>
-            <translation>&amp;Close</translation>
-        </message>
-        <message>
-            <source>MEN_EXPORT_BREP</source>
-            <translation>&amp;Brep ...</translation>
-        </message>
-        <message>
-            <source>MEN_EXPORT_STL</source>
-            <translation>&amp;Stl ...</translation>
-        </message>
-        <message>
-            <source>MEN_FILE</source>
-            <translation>&amp;File</translation>
-        </message>
-        <message>
-            <source>MEN_FILE_EXPORT</source>
-            <translation>&amp;Export</translation>
-        </message>
-        <message>
-            <source>MEN_FILE_IMPORT</source>
-            <translation>&amp;Import</translation>
-        </message>
-        <message>
-            <source>MEN_HELP</source>
-            <translation>&amp;Help</translation>
-        </message>
-        <message>
-            <source>MEN_IMPORT_BREP</source>
-            <translation>&amp;Brep ...</translation>
-        </message>
-        <message>
-            <source>MEN_IMPORT_STL</source>
-            <translation>Stl ...</translation>
-        </message>
-        <message>
-            <source>MEN_NEW</source>
-            <translation>&amp;New 3D Viewer</translation>
-        </message>
-        <message>
-            <source>MEN_OPTIM</source>
-            <translation>Turn on/off graphic optimization</translation>
-        </message>
-        <message>
-            <source>MEN_QUIT</source>
-            <translation>&amp;Quit</translation>
-        </message>
-        <message>
-            <source>MEN_STATUS_BAR</source>
-            <translation>&amp;Statusbar</translation>
-        </message>
-        <message>
-            <source>MEN_TILE</source>
-            <translation>&amp;Tile</translation>
-        </message>
-        <message>
-            <source>MEN_TOOLS</source>
-            <translation>&amp;Tools</translation>
-        </message>
-        <message>
-            <source>MEN_TOOL_BAR</source>
-            <translation>&amp;Toolbar</translation>
-        </message>
-        <message>
-            <source>MEN_VIEW</source>
-            <translation>&amp;View</translation>
-        </message>
-        <message>
-            <source>MEN_WINDOWS</source>
-            <translation>&amp;Window</translation>
-        </message>
-        <message>
-            <source>MES_DISPLAY</source>
-            <translation>Display</translation>
-        </message>
-        <message>
-            <source>MES_UPDATE</source>
-            <translation>Update</translation>
-        </message>
-        <message>
-            <source>TBR_ABOUT</source>
-            <translation>About</translation>
-        </message>
-        <message>
-            <source>TBR_AUTO_TEST</source>
-            <translation>Start automatic testing ...</translation>
-        </message>
-        <message>
-            <source>TBR_CLOSE</source>
-            <translation>Close</translation>
-        </message>
-        <message>
-            <source>TBR_EXPORT_BREP</source>
-            <translation>Brep ...</translation>
-        </message>
-        <message>
-            <source>TBR_EXPORT_STL</source>
-            <translation>Stl ...</translation>
-        </message>
-        <message>
-            <source>TBR_FILE_EXPORT</source>
-            <translation>Export</translation>
-        </message>
-        <message>
-            <source>TBR_FILE_IMPORT</source>
-            <translation>Import</translation>
-        </message>
-        <message>
-            <source>TBR_IMPORT_BREP</source>
-            <translation>Brep ...</translation>
-        </message>
-        <message>
-            <source>TBR_NEW</source>
-            <translation>New 3D Viewer</translation>
-        </message>
-        <message>
-            <source>TBR_OPTIM</source>
-            <translation>Turn on/off graphic optimization</translation>
-        </message>
-        <message>
-            <source>TBR_QUIT</source>
-            <translation>Quit</translation>
-        </message>
-        <message>
-            <source>TBR_STATUS_BAR</source>
-            <translation>Statusbar</translation>
-        </message>
-        <message>
-            <source>TBR_STOP</source>
-            <translation>Stop automatic testing</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_BAR</source>
-            <translation>Toolbar</translation>
-        </message>
-        <message>
-            <source>TIT_ABOUT</source>
-            <translation>About...</translation>
-        </message>
-    </context>
-    <context>
-        <name>AutoTestDlg</name>
-        <message>
-            <source>BTN_START</source>
-            <translation>Start</translation>
-        </message>
-        <message>
-            <source>DLG_AUTO_TEST</source>
-            <translation>Automatic performance testing</translation>
-        </message>
-        <message>
-            <source>LAB_ITEMS</source>
-            <translation>elements</translation>
-        </message>
-        <message>
-            <source>LAB_START</source>
-            <translation>Start with sphere containing</translation>
-        </message>
-        <message>
-            <source>LAB_STEP</source>
-            <translation>Step</translation>
-        </message>
-        <message>
-            <source>LAB_STOP</source>
-            <translation>Stop at</translation>
-        </message>
-        <message>
-            <source>MEN_BTN_TEXT</source>
-            <translation>Test Text Performance</translation>
-        </message>
-    </context>
-    <context>
-        <name>MDIWindow</name>
-        <message>
-            <source>LAB_SECONDS</source>
-            <translation>Time, sec.</translation>
-        </message>
-        <message>
-            <source>LAB_TRIANGLES</source>
-            <translation>Number of Triangles</translation>
-        </message>
-        <message>
-            <source>LEG_NONOPT_DISPLAY</source>
-            <translation>Non-optimized Display</translation>
-        </message>
-        <message>
-            <source>LEG_NONOPT_UPDATE</source>
-            <translation>Non-optimized Update</translation>
-        </message>
-        <message>
-            <source>LEG_OPT_DISPLAY</source>
-            <translation>Optimized Display</translation>
-        </message>
-        <message>
-            <source>LEG_OPT_UPDATE</source>
-            <translation>Optimized Update</translation>
-        </message>
-        <message>
-            <source>MEN_GRAPH_CLEAR</source>
-            <translation>Clear</translation>
-        </message>
-        <message>
-            <source>MEN_GRAPH_FIT_ALL</source>
-            <translation>Fit All</translation>
-        </message>
-        <message>
-            <source>TBR_GRAPH_CLEAR</source>
-            <translation>Clear</translation>
-        </message>
-        <message>
-            <source>TBR_GRAPH_FIT_ALL</source>
-            <translation>Fit All</translation>
-        </message>
-    </context>
-    <context>
-        <name>ObjectDlg</name>
-        <message>
-            <source>BTN_SHOWEDGES</source>
-            <translation>Show edges</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_BBOXDEGENERATION</source>
-            <translation>Degenerate to bounding box</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_DEGMODEL</source>
-            <translation>Degenerate model</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_DEGRATIO</source>
-            <translation>Degenerate ratio</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGEDASH</source>
-            <translation>Dash style</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGEDOT</source>
-            <translation>Dot style</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGEDOTDASH</source>
-            <translation>DotDash style</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGESOLID</source>
-            <translation>Solid</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGESTYLE</source>
-            <translation>Edge style</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_EDGEWIDTH</source>
-            <translation>Edge width</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_MARKERDEGENERATION</source>
-            <translation>Degenerate to markers</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_NODEGENERATION</source>
-            <translation>No degeneration</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_TINYDEGENERATION</source>
-            <translation>Degenerate tiny</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_WIREDEGENERATION</source>
-            <translation>Degenerate to wireframe</translation>
-        </message>
-        <message>
-            <source>TITLE_OBJECT_DLG</source>
-            <translation>Edit object properties</translation>
-        </message>
-    </context>
-    <context>
-        <name>QObject</name>
-        <message>
-            <source>TIT_SAMPLE</source>
-            <translation>Visualization Performance Meter</translation>
-        </message>
-    </context>
-    <context>
-        <name>ShapeDlg</name>
-        <message>
-            <source>MEN_BTN_TEXT</source>
-            <translation>Display Text</translation>
-        </message>
-        <message>
-            <source>MEN_BTN_VCOLOR</source>
-            <translation>Vertex colors</translation>
-        </message>
-        <message>
-            <source>MEN_BTN_VNORMAL</source>
-            <translation>Vertex normals</translation>
-        </message>
-        <message>
-            <source>MEN_BTN_VTEXEL</source>
-            <translation>Vertex texels</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_DEFLECTION</source>
-            <translation>Chordial deflection</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_ITEMS</source>
-            <translation>Nb items</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_PANES</source>
-            <translation>Nb panes</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_RADIUS</source>
-            <translation>radius</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_X</source>
-            <translation>X</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_Y</source>
-            <translation>Y</translation>
-        </message>
-        <message>
-            <source>MEN_DLG_Z</source>
-            <translation>Z</translation>
-        </message>
-        <message>
-            <source>TITLE_SHAPE_DLG</source>
-            <translation>Create sphere</translation>
-        </message>
-    </context>
-    <context>
-        <name>View</name>
-        <message>
-            <source>MEN_POP_BOX</source>
-            <translation>Box</translation>
-        </message>
-        <message>
-            <source>MEN_POP_CREATESHAPE</source>
-            <translation>Create shape ...</translation>
-        </message>
-        <message>
-            <source>MEN_POP_DISPLAYMODE</source>
-            <translation>Display mode</translation>
-        </message>
-        <message>
-            <source>MEN_POP_DISPLAYTRIHEDRON</source>
-            <translation>Display trihedron</translation>
-        </message>
-        <message>
-            <source>MEN_POP_ERASETRIHEDRON</source>
-            <translation>Erase trihedron</translation>
-        </message>
-        <message>
-            <source>MEN_POP_IMPORT</source>
-            <translation>Import object ...</translation>
-        </message>
-        <message>
-            <source>MEN_POP_LINE</source>
-            <translation>Line</translation>
-        </message>
-        <message>
-            <source>MEN_POP_LOADOBJECT</source>
-            <translation>Load object</translation>
-        </message>
-        <message>
-            <source>MEN_POP_OBJPROP</source>
-            <translation>Edit object properties ...</translation>
-        </message>
-        <message>
-            <source>MEN_POP_REMOVEOBJECT</source>
-            <translation>Remove object</translation>
-        </message>
-        <message>
-            <source>MEN_POP_SHADING</source>
-            <translation>Shading</translation>
-        </message>
-        <message>
-            <source>MEN_POP_SPHERE</source>
-            <translation>Sphere</translation>
-        </message>
-        <message>
-            <source>MEN_POP_TORUS</source>
-            <translation>Torus</translation>
-        </message>
-        <message>
-            <source>MEN_POP_VIEWPROP</source>
-            <translation>Edit view properties ...</translation>
-        </message>
-        <message>
-            <source>MEN_POP_WIREFRAME</source>
-            <translation>Wireframe</translation>
-        </message>
-    </context>
-    <context>
-        <name>ViewDlg</name>
-        <message>
-            <source>BTN_ANIMATION</source>
-            <translation>Enable view animation</translation>
-        </message>
-        <message>
-            <source>TITLE_VIEW_DLG</source>
-            <translation>Edit view properties</translation>
-        </message>
-    </context>
-    <context>
-        <name>ViewOperations</name>
-        <message>
-            <source>TBR_AXO</source>
-            <translation>Axo</translation>
-        </message>
-        <message>
-            <source>TBR_BACK</source>
-            <translation>Back</translation>
-        </message>
-        <message>
-            <source>TBR_BOTTOM</source>
-            <translation>Bottom</translation>
-        </message>
-        <message>
-            <source>TBR_FITALL</source>
-            <translation>FitAll</translation>
-        </message>
-        <message>
-            <source>TBR_FITAREA</source>
-            <translation>Zoom Window</translation>
-        </message>
-        <message>
-            <source>TBR_FRONT</source>
-            <translation>Front</translation>
-        </message>
-        <message>
-            <source>TBR_GLOBALPAN</source>
-            <translation>Global Panning</translation>
-        </message>
-        <message>
-            <source>TBR_LEFT</source>
-            <translation>Left</translation>
-        </message>
-        <message>
-            <source>TBR_PAN</source>
-            <translation>Dynamic Panning</translation>
-        </message>
-        <message>
-            <source>TBR_RESET</source>
-            <translation>Reset</translation>
-        </message>
-        <message>
-            <source>TBR_RIGHT</source>
-            <translation>Right</translation>
-        </message>
-        <message>
-            <source>TBR_ROTATION</source>
-            <translation>Dynamic Rotation</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_AXOVIEW</source>
-            <translation>Axonometric view</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_MAGVIEW</source>
-            <translation>Magnify view</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_PERVIEW</source>
-            <translation>Perspective view</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_SHAD</source>
-            <translation>Shading</translation>
-        </message>
-        <message>
-            <source>TBR_TOOL_WIRE</source>
-            <translation>Wireframe</translation>
-        </message>
-        <message>
-            <source>TBR_TOP</source>
-            <translation>Top</translation>
-        </message>
-        <message>
-            <source>TBR_ZOOM</source>
-            <translation>Dynamic Zooming</translation>
-        </message>
-    </context>
-</TS>
diff --git a/samples/qt/Graphic3dDemo/res/auto.png b/samples/qt/Graphic3dDemo/res/auto.png
deleted file mode 100755 (executable)
index a401e7a..0000000
Binary files a/samples/qt/Graphic3dDemo/res/auto.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/cascade.png b/samples/qt/Graphic3dDemo/res/cascade.png
deleted file mode 100755 (executable)
index 9cd1715..0000000
Binary files a/samples/qt/Graphic3dDemo/res/cascade.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/close.png b/samples/qt/Graphic3dDemo/res/close.png
deleted file mode 100755 (executable)
index b7126e0..0000000
Binary files a/samples/qt/Graphic3dDemo/res/close.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/cursor_rotate.png b/samples/qt/Graphic3dDemo/res/cursor_rotate.png
deleted file mode 100755 (executable)
index a3cb0c1..0000000
Binary files a/samples/qt/Graphic3dDemo/res/cursor_rotate.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/cursor_zoom.png b/samples/qt/Graphic3dDemo/res/cursor_zoom.png
deleted file mode 100755 (executable)
index 0020fea..0000000
Binary files a/samples/qt/Graphic3dDemo/res/cursor_zoom.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/document.png b/samples/qt/Graphic3dDemo/res/document.png
deleted file mode 100755 (executable)
index 1ba28ff..0000000
Binary files a/samples/qt/Graphic3dDemo/res/document.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/help.png b/samples/qt/Graphic3dDemo/res/help.png
deleted file mode 100755 (executable)
index e573362..0000000
Binary files a/samples/qt/Graphic3dDemo/res/help.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/lamp.png b/samples/qt/Graphic3dDemo/res/lamp.png
deleted file mode 100755 (executable)
index a5a6775..0000000
Binary files a/samples/qt/Graphic3dDemo/res/lamp.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/new.png b/samples/qt/Graphic3dDemo/res/new.png
deleted file mode 100755 (executable)
index 953757a..0000000
Binary files a/samples/qt/Graphic3dDemo/res/new.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/optim.png b/samples/qt/Graphic3dDemo/res/optim.png
deleted file mode 100755 (executable)
index c469b93..0000000
Binary files a/samples/qt/Graphic3dDemo/res/optim.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/stop.png b/samples/qt/Graphic3dDemo/res/stop.png
deleted file mode 100755 (executable)
index 778955b..0000000
Binary files a/samples/qt/Graphic3dDemo/res/stop.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/tile.png b/samples/qt/Graphic3dDemo/res/tile.png
deleted file mode 100755 (executable)
index b3e6d7b..0000000
Binary files a/samples/qt/Graphic3dDemo/res/tile.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/tool_shading.png b/samples/qt/Graphic3dDemo/res/tool_shading.png
deleted file mode 100755 (executable)
index d418286..0000000
Binary files a/samples/qt/Graphic3dDemo/res/tool_shading.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/tool_wireframe.png b/samples/qt/Graphic3dDemo/res/tool_wireframe.png
deleted file mode 100755 (executable)
index c5e4a11..0000000
Binary files a/samples/qt/Graphic3dDemo/res/tool_wireframe.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_axo.png b/samples/qt/Graphic3dDemo/res/view_axo.png
deleted file mode 100755 (executable)
index cac2bc2..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_axo.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_back.png b/samples/qt/Graphic3dDemo/res/view_back.png
deleted file mode 100755 (executable)
index 0798f52..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_back.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_bottom.png b/samples/qt/Graphic3dDemo/res/view_bottom.png
deleted file mode 100755 (executable)
index c7cfdc2..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_bottom.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_fitall.png b/samples/qt/Graphic3dDemo/res/view_fitall.png
deleted file mode 100755 (executable)
index 21d2f42..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_fitall.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_fitarea.png b/samples/qt/Graphic3dDemo/res/view_fitarea.png
deleted file mode 100755 (executable)
index f20f5c0..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_fitarea.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_front.png b/samples/qt/Graphic3dDemo/res/view_front.png
deleted file mode 100755 (executable)
index a9e99c5..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_front.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_glpan.png b/samples/qt/Graphic3dDemo/res/view_glpan.png
deleted file mode 100755 (executable)
index 02a9c1c..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_glpan.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_left.png b/samples/qt/Graphic3dDemo/res/view_left.png
deleted file mode 100755 (executable)
index 7d25b6a..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_left.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_pan.png b/samples/qt/Graphic3dDemo/res/view_pan.png
deleted file mode 100755 (executable)
index 0e9a6a5..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_pan.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_reset.png b/samples/qt/Graphic3dDemo/res/view_reset.png
deleted file mode 100755 (executable)
index 38849fd..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_reset.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_right.png b/samples/qt/Graphic3dDemo/res/view_right.png
deleted file mode 100755 (executable)
index 5540220..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_right.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_rotate.png b/samples/qt/Graphic3dDemo/res/view_rotate.png
deleted file mode 100755 (executable)
index 7e5d013..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_rotate.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_top.png b/samples/qt/Graphic3dDemo/res/view_top.png
deleted file mode 100755 (executable)
index b788de3..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_top.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/res/view_zoom.png b/samples/qt/Graphic3dDemo/res/view_zoom.png
deleted file mode 100755 (executable)
index 1b50a37..0000000
Binary files a/samples/qt/Graphic3dDemo/res/view_zoom.png and /dev/null differ
diff --git a/samples/qt/Graphic3dDemo/src/Application.cxx b/samples/qt/Graphic3dDemo/src/Application.cxx
deleted file mode 100755 (executable)
index 0f5d737..0000000
+++ /dev/null
@@ -1,695 +0,0 @@
-#include <stdio.h>
-
-#include <AIS_InteractiveContext.hxx>
-#include <OSD_Timer.hxx>
-#include <Graphic3d_ArrayOfPrimitives.hxx>
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <AIS_Shape.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopoDS_Face.hxx>
-#include <Poly_Triangulation.hxx>
-#include <BRep_TFace.hxx>
-#include <TopoDS.hxx>
-#include <Sphere_Sphere.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include <qapplication.h>
-#include <qframe.h>
-#include <qworkspace.h>
-#include <qstatusbar.h>
-#include <qmenubar.h>
-#include <qmessagebox.h>
-#include <qtextedit.h> 
-#include <qlayout.h>
-#include <qevent.h>
-
-#include "global.h"
-#include "Application.h"
-#include "Document.h"
-#include "MDIWindow.h"
-#include "Translate.h"
-#include "ViewOperations.h" // to have access to its enumeration
-#include "AutoTestDlg.h"
-
-//#define OUTPUT_WINDOW
-
-static Application* stApp;
-static OSD_Timer timer;
-
-Application::Application() : QMainWindow( 0 )
-{
-  myNbDocuments = 0;
-  stApp = this;
-  myIsDocuments = false;
-
-  // create and define the central widget
-  QFrame* vBox = new QFrame( this );
-  vBox->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
-  QVBoxLayout* main = new QVBoxLayout( vBox );
-  main->setMargin( 0 );
-
-  myWorkSpace = new QWorkspace( vBox );
-  main->addWidget( myWorkSpace );
-  setCentralWidget( vBox );
-
-       createActions();
-       createCCActions();
-
-  statusBar()->showMessage( tr("INF_READY"), 2001 );
-  resize( 800, 650 );
-  verify( connect( myWorkSpace, SIGNAL( windowActivated( QWidget* ) ),
-                   this,        SLOT( onWindowActivated( QWidget* ) ) ) );
-#ifdef OUTPUT_WINDOW
-  myOutput = new OutputWindow( 0 );
-  myOutput->show();
-#else
-  myOutput = 0;
-#endif
-       myViewDlg = NULL;
-}
-
-Application::~Application()
-{
-       if (myViewDlg) delete myViewDlg; 
-  if (myOutput)  delete myOutput;
-}
-
-void Application::createActions()
-{
-       QString dir = getResourceDir();
-  QPixmap newIcon( dir + tr( "ICON_NEW" ) ),
-          helpIcon( dir + tr( "ICON_HELP" ) ),
-          closeIcon( dir + tr( "ICON_CLOSE" ) ),
-          autoIcon( dir + tr( "ICON_AUTO_TEST" ) ),
-          optimIcon( dir + tr( "ICON_OPTIM" ) ),
-                           stopIcon( dir + tr( "ICON_STOP" ) ),
-          tileIcon( dir + tr( "ICON_TILE" ) ),
-          cascadeIcon( dir + tr( "ICON_CASCADE" ) );
-
-  // toolbar with standard actions: new, save...
-  myStdToolBar = new QToolBar( this );
-  addToolBar( Qt::TopToolBarArea, myStdToolBar );
-    
-  // menu with all actions
-  myFilePopup = menuBar()->addMenu( tr( "MEN_FILE" ) );
-    
-       // view menu
-       QMenu* view = menuBar()->addMenu( tr( "MEN_VIEW" ) );
-
-  // Tools menu (it is shown or hidden dynamically)
-  myToolsMenu = new QMenu( tr( "MEN_TOOLS" ), this );
-
-  // Window menu
-  myWinMenu = menuBar()->addMenu( tr( "MEN_WINDOWS" ) );
-  verify(connect( myWinMenu, SIGNAL( aboutToShow() ),
-                  this, SLOT( updateWindowList() ) ));
-
-  // add a help menu
-  QMenu* help = menuBar()->addMenu( tr( "MEN_HELP" ) );
-  menuBar()->addSeparator();
-    
-  QAction* a = new QAction( newIcon, tr( "MEN_NEW" ), this );
-  a->setToolTip( tr( "TBR_NEW" ) );
-  a->setShortcut( Qt::CTRL+Qt::Key_N );
-       verify( connect( a, SIGNAL( activated() ), this, SLOT( onNewDocument() ) ) );
-       myStdActions.insert( FileNewId, a );    
-  myStdToolBar->addAction( a );
-  myFilePopup ->addAction( a );
-
-  a = new QAction( tr( "MEN_QUIT" ), this );
-  a->setShortcut( Qt::CTRL+Qt::Key_Q );
-  a->setToolTip( tr( "TBR_QUIT" ) );
-  verify( connect( a, SIGNAL( activated() ), qApp, SLOT( closeAllWindows() ) ) );
-       myStdActions.insert( FileQuitId, a );   
-  myFilePopup ->addAction( a );
-
-       a = new QAction( tr( "MEN_TOOL_BAR" ), this );
-  a->setToolTip( tr( "TBR_TOOL_BAR" ) );
-       verify( connect( a, SIGNAL( activated() ), this, SLOT( onViewToolBar() ) ) );
-       a->setCheckable(true);
-       a->setChecked( true );
-       myStdActions.insert( ViewToolId, a );   
-  view->addAction( a );
-
-       a = new QAction( tr("MEN_STATUS_BAR"), this );
-  a->setToolTip( tr( "TBR_STATUS_BAR" ) );
-       verify( connect( a, SIGNAL( activated() ), this, SLOT( onViewStatusBar() ) ) );
-       a->setCheckable(true);
-       a->setChecked( true );
-       myStdActions.insert( ViewStatusId, a ); 
-  view->addAction( a );
-
-  a = new QAction( helpIcon, tr( "MEN_ABOUT" ), this );
-  a->setShortcut( Qt::Key_F1 );
-  a->setToolTip( tr( "TBR_ABOUT" ) );
-       verify( connect( a, SIGNAL( activated() ) , this, SLOT( onAbout() ) ) );
-       myStdActions.insert( HelpAboutId, a );  
-       myStdToolBar->addAction( a );
-       help->addAction( a );
-
-  myStdToolBar->addSeparator();
-
-  // Tools menu actions
-  a = new QAction( optimIcon, tr( "MEN_OPTIM" ), this );
-  a->setToolTip( tr( "TBR_OPTIM" ) );
-       verify( connect( a, SIGNAL( toggled(bool) ) , this, SLOT( onToggleOptim(bool) ) ) );
-  a->setCheckable(true);
-  a->setChecked(Graphic3d_ArrayOfPrimitives::IsEnable());
-       myStdActions.insert( OptimId, a );      
-  myToolsMenu->addAction( a );
-
-  a = new QAction( autoIcon, tr( "TBR_AUTO_TEST" ), this );
-  a->setToolTip( tr( "TBR_AUTO_TEST" ) );
-       verify( connect( a, SIGNAL( activated() ) , this, SLOT( onAutoTest() ) ) );
-       myStdActions.insert( AutoTestId, a );   
-  myToolsMenu->addAction( a );
-  
-  a = new QAction( stopIcon, tr( "TBR_STOP" ), this );
-  a->setToolTip( tr( "TBR_STOP" ) );
-       verify( connect( a, SIGNAL( activated() ) , this, SLOT( onStop() ) ) );
-       myStdActions.insert( StopId, a );       
-  myToolsMenu->addAction( a );
-
-  // Window menu action
-  a = new QAction( cascadeIcon, tr( "MEN_CASCADE" ), this );
-       verify( connect( a, SIGNAL( activated() ) , myWorkSpace, SLOT( cascade() ) ) );
-       myStdActions.insert( CascadeId, a );    
-  myWinMenu->addAction( a );
-
-  a = new QAction( tileIcon, tr( "MEN_TILE" ), this );
-       verify( connect( a, SIGNAL( activated() ), myWorkSpace, SLOT( tile() ) ) );
-       myStdActions.insert( TileId, a );       
-  myWinMenu->addAction( a );
-
-}
-
-void Application::createCCActions()
-{
-       createIEPopups();
-}
-
-void Application::createIEPopups()
-{
-       myImportPopup = new QMenu( tr( "MEN_FILE_IMPORT" ), this );
-
-       QAction* a = new QAction( tr( "MEN_IMPORT_BREP" ), this );
-  a->setToolTip( tr( "TBR_IMPORT_BREP" ) );
-       verify( connect( a, SIGNAL( activated() ) , SLOT( onTranslate() ) ) );
-       myCCActions.insert( FileImportBREPId, a );      
-       myImportPopup->addAction( a );
-}
-
-QWorkspace* Application::getWorkspace()
-{
-  return getApplication()->workspace();
-}
-
-Application* Application::getApplication()
-{
-       return stApp;
-}
-
-void Application::updateWindowList()
-{
-  while ( myWinMenu->actions().count() > 2)
-    myWinMenu->removeAction(myWinMenu->actions().last());
-
-  QWidgetList lst = myWorkSpace->windowList();
-  if (!lst.isEmpty())
-  {
-    myWinMenu->addSeparator();
-    for ( int i = 0; i < int(lst.count()); ++i )
-    {
-      QAction* a = myWinMenu->addAction( lst.at(i)->windowTitle(),
-        this, SLOT( activateWindow() ) );
-      a->setCheckable( true );
-      a->setChecked( myWorkSpace->activeWindow() == lst.at(i) );
-    }
-  }
-
-}
-
-void Application::activateWindow()
-{
-  QAction* a = qobject_cast<QAction*>( sender() );
-  if ( !a ) return;
-  int idx = myWinMenu->actions().indexOf( a ) - 3; // tile, cascade and separator
-  QWidget* w = myWorkSpace->windowList().at( idx );
-  if ( w ) {
-    w->showNormal();
-    w->setFocus();
-//     w->setActiveWindow();
-  }
-}
-
-void Application::updateActions()
-{
-       int count = myFilePopup->actions().count() - 1;
-       
-       int popupCount = menuBar()->actions().count();
-       while (myWinMenu->actions().count() > 2)
-               myWinMenu->removeAction(myWinMenu->actions().last());
-
-       if( myWorkSpace->windowList().isEmpty() )
-  {
-    QAction* optim    = myStdActions.at(OptimId);
-    QAction* autoTest = myStdActions.at(AutoTestId);
-         QAction* stop = myStdActions.at(StopId);
-
-    if( myNbDocuments ) {
-      myFilePopup->insertMenu( myFilePopup->actions().last(), myImportPopup );
-                       myFilePopup->insertSeparator( myFilePopup->actions().last() );
-
-      menuBar()->insertMenu( menuBar()->actions().at( popupCount - 3 ), myToolsMenu );
-
-      if (optim) myStdToolBar->addAction( optim );
-      if (autoTest) myStdToolBar->addAction( autoTest );
-           if (stop) myStdToolBar->addAction( stop );
-           stop->setEnabled(false);
-                       myIsDocuments = true;
-               } 
-    else {
-      myFilePopup->actions().removeAt( --count );
-                       myFilePopup->actions().removeAt( --count );
-                       myFilePopup->actions().removeAt( --count );
-
-      menuBar()->actions().removeAt( popupCount - 4 );
-
-      if (optim) myStdToolBar->removeAction( optim );
-      if (autoTest) myStdToolBar->removeAction( autoTest );
-           if (stop) myStdToolBar->removeAction( stop );
-                       myIsDocuments = false;
-    }
-  }
-}
-
-Document* Application::onNewDocument()
-{
-  ++myNbDocuments;
-
-  updateActions();
-
-  Document* aDoc = new Document( myNbDocuments, this );
-  verify( connect( aDoc, SIGNAL( sendCloseDocument( Document* ) ),
-                   SLOT( onCloseDocument( Document* ) ) ) );
-
-  return aDoc;
-}
-
-void Application::onCloseDocument(Document* theDoc)
-{
-  --myNbDocuments;
-  delete theDoc;
-       updateActions();
-}
-
-void Application::onTranslate()
-{
-  const QObject* sentBy = sender();
-  typedef void  (Translate::*LPFN_IMPORT) 
-    ( const Handle( AIS_InteractiveContext ));//, const QString&  );
-
-  static LPFN_IMPORT lpfnImport[] = { &Translate::importBREP };
-
-  static QAction* actions[] = { myCCActions.at( FileImportBREPId ) };
-       
-  for ( int i = 0; i < sizeof(actions)/sizeof(QAction*); i++ )
-  {
-    if ( actions[i] == sentBy ) 
-    {
-      Translate* anTrans = new Translate( 0 );
-      MDIWindow* win = myActiveMDI;//(MDIWindow*) myWorkSpace->activeWindow(); 
-      Handle(AIS_InteractiveContext) aContext = win->getDocument()->getContext();
-      try 
-      {
-        /* import */
-        (anTrans->*lpfnImport[i])( aContext );
-      } 
-      catch ( Standard_Failure )
-      {
-                         /* WARNING: an exception raised but we eat it
-           silently because the shape seems OK
-        */                                                                             
-      }
-      delete anTrans;
-      /* commit transaction */
-      win->activateAction( ViewOperations::ViewFitAllId );
-      break;
-    }
-  }
-}
-
-void Application::importBREP()
-{
-  Translate* anTrans = new Translate( 0 );
-  MDIWindow* win = myActiveMDI;//(MDIWindow*) myWorkSpace->activeWindow(); 
-  Handle(AIS_InteractiveContext) aContext = win->getDocument()->getContext();
-  try {
-    /* import */
-    anTrans->importBREP( aContext );
-  } 
-  catch ( Standard_Failure ) {
-    /* WARNING: an exception raised but we eat it
-       silently because the shape seems OK
-    */                    
-  }
-  delete anTrans;
-  win->activateAction( ViewOperations::ViewFitAllId );
-}
-
-QString Application::getResourceDir()
-{
-  static QString resDir( getenv( "CSF_ResourcesDefaults" ) + QString( "/" ) );
-  return resDir;
-}
-
-void Application::onViewToolBar()
-{
-  bool show = myStdActions.at( ViewToolId )->isChecked();
-  if (  show == myStdToolBar->isVisible() )
-    return;
-  if ( show )
-    myStdToolBar->show();
-  else
-    myStdToolBar->hide();
-}
-
-void Application::onViewStatusBar()
-{
-  bool show = myStdActions.at( ViewStatusId )->isChecked();
-  if (  show == statusBar()->isVisible() )
-    return;
-  if ( show )
-    statusBar()->show();
-  else
-    statusBar()->hide();
-}
-
-void Application::onAbout()
-{
-  QMessageBox::information(this,tr("TIT_ABOUT"),tr("INF_ABOUT"), tr("BTN_OK"),
-                                              QString::null, QString::null, 0, 0);
-}
-
-void Application::onQuit()
-{
-#ifdef aaa
-  QWidgetList aList = stWs->windowList();
-       for(MDIWindow* aWindow = (MDIWindow*) aList.first();aWindow;aWindow = (MDIWindow*) aList.next()) {
-         aWindow->closeEvent(0);
-  }
-
-       emit sendQuit();
-#endif
-}
-
-MDIWindow* Application::getActiveMDI()
-{
-  return myActiveMDI;
-}
-
-void Application::onWindowActivated( QWidget* w )
-{
-  if ( w != NULL && w->inherits( "MDIWindow" ) ){
-    myActiveMDI = (MDIWindow*)w;
-               w->setFocus();
-       }
-       else if (myViewDlg)
-       {
-    delete myViewDlg; myViewDlg = NULL; 
-  }
-}
-
-void Application::startTimer()
-{
-  timer.Reset();
-  timer.Start();
-}
-
-void Application::stopTimer( int count, const char* mes, bool addToGraph, int aOpt ) 
-{
-  Standard_Integer m,h;
-  Standard_Real fps,elaps,cpu;
-  char title[256];
-  const char* message = ( mes == NULL ) ? "" : mes;
-
-  timer.Stop();
-  timer.Show( elaps, m, h, cpu );
-  elaps += m * 60. + h * 3600.;
-  fps = Standard_Real( count ) / elaps;
-  if( fps > 1. )
-    sprintf( title, " ====> '%s'. speed is %f frames/second", message, fps );
-  else {
-    if( count > 1 ) { 
-      elaps /= count; cpu /= count;
-      sprintf( title, " ====> '%s'. average elapsed/cpu time is %f/%f seconds", message, elaps, cpu );
-    }
-    else {
-      sprintf( title," ====> '%s'. elapsed/cpu time is %f/%f seconds.", message, elaps, cpu );
-    }
-  }
-    
-  if (addToGraph)
-  {
-    QString qmes(mes);
-    MDIWindow::ResultType type = MDIWindow::Undefined;
-    bool isOptOn = false;
-         if(aOpt >= 0) {
-                 isOptOn |= (aOpt > 0);
-         } else {
-                 isOptOn = Graphic3d_ArrayOfPrimitives::IsEnable();
-         }
-    if (qmes.contains(tr("MES_DISPLAY"), Qt::CaseInsensitive))
-      type = isOptOn ? MDIWindow::DisplayOpt : MDIWindow::DisplayNonOpt;
-    else if (qmes.contains(tr("MES_UPDATE"), Qt::CaseInsensitive))
-      type = isOptOn ? MDIWindow::UpdateOpt : MDIWindow::UpdateNonOpt;
-    if (type != MDIWindow::Undefined)
-    {
-      addResult(type, elaps);
-    }
-  }
-
-  QString str( title );
-  cout << title << endl;
-  Application::getApplication()->statusBar()->showMessage( str );
-  Application::getApplication()->showMessage( str );
-  //printf("%s\n",title);
-}
-
-void Application::showTimer( const char* mes )
-{
-  Standard_Integer m,h;
-  Standard_Real elaps,cpu;
-  char title[256];
-  const char* message = ( mes == NULL) ? "" : mes;
-
-  timer.Show( elaps, m, h, cpu );
-  elaps += m * 60. + h * 3600.;
-  sprintf( title," ====> '%s'. elapsed/cpu time is %f/%f seconds", message, elaps, cpu );
-
-  QString str( title );
-  Application::getApplication()->statusBar()->showMessage( str );
-  Application::getApplication()->showMessage( str );
-  cout << title << endl;
-}
-
-void Application::showMessage( QString& message )
-{
-#ifdef OUTPUT_WINDOW
-  myOutput->print( message );
-#endif
-}
-
-void Application::onToggleOptim(bool state)
-{
-  state ? Graphic3d_ArrayOfPrimitives::Enable() : Graphic3d_ArrayOfPrimitives::Disable();
-}
-
-void Application::addResult(MDIWindow::ResultType item, double value)
-{
-  MDIWindow* activeWin = getApplication()->getActiveMDI();
-  Handle(AIS_InteractiveContext) activeCtx = activeWin->getDocument()->getContext();
-
-  // Counting triangles...
-  int nbTriangles = 0;
-  AIS_ListOfInteractive displayedObjs;
-  activeCtx->DisplayedObjects(displayedObjs);
-  AIS_ListIteratorOfListOfInteractive dispIt(displayedObjs);
-  for ( ; dispIt.More(); dispIt.Next())
-  {
-    Handle(AIS_InteractiveObject) aisObj = dispIt.Value();
-    if (aisObj->IsKind(STANDARD_TYPE(Sphere_Sphere)))
-    {
-      Handle(Sphere_Sphere) sphere = Handle(Sphere_Sphere)::DownCast(aisObj);
-      Standard_Real rad            = sphere->Radius();
-      Standard_Real defl           = sphere->Sphere_BasicShape::Deflection();
-
-      nbTriangles += Sphere_Sphere::NbItems(Sphere_Sphere::NbPanes(rad, defl));
-    }
-    else if (aisObj->IsKind(STANDARD_TYPE(AIS_Shape)))
-    {
-      Handle(AIS_Shape) shape = Handle(AIS_Shape)::DownCast(aisObj);
-      TopoDS_Shape topoShape = shape->Shape();
-      TopExp_Explorer exp(topoShape, TopAbs_FACE);
-      for ( ; exp.More(); exp.Next())
-      {
-        TopoDS_Face face = TopoDS::Face(exp.Current());
-        if (!face.IsNull())
-        {
-          Handle(Poly_Triangulation) triangles = 
-            Handle(BRep_TFace)::DownCast(face.TShape())->Triangulation();
-          if (!triangles.IsNull()) 
-          {
-            nbTriangles += triangles->NbTriangles();
-          }
-        }
-      }
-    }
-  }
-  activeWin->addResult(item, nbTriangles, value);
-}
-
-QWorkspace* Application::workspace() const
-{
-  return myWorkSpace;
-}
-
-void Application::keyPressEvent(QKeyEvent* e)
-{
-  if (e->key() == Qt::Key_Escape)
-    myEscPressed = true;
-}
-
-void Application::onAutoTest()
-{
-  AutoTestDlg autoDlg(getApplication());
-  if (autoDlg.exec() == QDialog::Accepted)
-  {
-    QApplication::setOverrideCursor( Qt::WaitCursor );
-    myEscPressed = false;
-         myStopPressed = false;
-         QAction* stop = myStdActions.at(StopId);
-
-         stop->setEnabled(true);
-
-    // Define the range for testing
-    int startItems = autoDlg.getStartNbItems(); 
-    int stopItems  = autoDlg.getStopNbItems();
-    int step       = autoDlg.getStep();
-         bool isTe        = autoDlg.isText();
-    if (stopItems < startItems) stopItems = startItems;
-
-    Standard_Real radius = 100; // default sphere radius
-    gp_Pnt        pos(0, 0, 0); // default sphere center position
-    
-    Handle(AIS_InteractiveContext) ctx = getActiveMDI()->getDocument()->getContext();
-    // Main loop
-    for (int currItems = startItems; currItems <= stopItems; currItems += step)
-    {
-      for (int useOptim = 0; useOptim < 2; useOptim++)
-      {
-        qApp->processEvents();
-        if (myEscPressed || myStopPressed)
-        {
-          QApplication::restoreOverrideCursor();
-          stop->setEnabled(false);
-          return;
-        }
-
-        // Toggle optimization
-        useOptim || isTe ? Graphic3d_ArrayOfPrimitives::Enable() : Graphic3d_ArrayOfPrimitives::Disable();
-        
-        // Remove all old objects
-        AIS_ListOfInteractive displayedObjs;
-        ctx->DisplayedObjects(displayedObjs);
-        AIS_ListIteratorOfListOfInteractive dispIt(displayedObjs);
-        for ( ; dispIt.More(); dispIt.Next())
-        {
-          Handle(AIS_InteractiveObject) obj = dispIt.Value();
-          if (!obj->IsKind(STANDARD_TYPE(AIS_Trihedron)))
-            ctx->Remove(obj, false);
-        }
-        ctx->UpdateCurrentViewer();
-
-                   getActiveMDI()->getView()->SetScale(3.0316);
-        
-        // Generate new sphere
-        Standard_Integer nbPanes     = Sphere_Sphere::NbPanes(currItems);
-        Standard_Real    deflection  = Sphere_Sphere::Deflection(radius, nbPanes);
-        Handle(Sphere_Sphere) sphere = new Sphere_Sphere(pos, radius, deflection, 
-          1/*myVNormalsFlag*/, 0/*myVColorsFlag*/, 0/*myVTexelsFlag*/, isTe, useOptim);
-        
-        // Display the sphere
-        ctx->SetDisplayMode( sphere, getActiveMDI()->getDisplayMode(), false );
-        Application::startTimer();
-        ctx->Display( sphere, false );
-        Application::stopTimer( 0, "Display Sphere::Sphere", true, useOptim);
-
-        qApp->processEvents();
-        if (myEscPressed || myStopPressed)
-        {
-          QApplication::restoreOverrideCursor();
-                     stop->setEnabled(false);
-          return;
-        }
-
-        // Update the viewer
-        Application::startTimer();
-        getActiveMDI()->getView()->Update();
-        Application::stopTimer( 0, "UPDATE", true, useOptim);
-      }
-    }
-    QApplication::restoreOverrideCursor();
-         stop->setEnabled(false);
-  }
-}
-
-/* ------------------ class OutputWindow ----------------- */
-OutputWindow::OutputWindow( QWidget* parent ) : QWidget( parent ), myLineCounter( 0 )
-{
-  setWindowTitle( "Output window" );
-  resize( 400, 300 );
-
-  QVBoxLayout* topLayout = new QVBoxLayout( this );
-  myLineEdit = new QTextEdit( this );
-
-  topLayout->addWidget( myLineEdit );
-}
-
-OutputWindow::~OutputWindow()
-{
-}
-
-void OutputWindow::print( QString& s )
-{
-  myLineEdit->append( QString().setNum( myLineCounter ) + s );
-  myLineCounter++;
-}
-
-void Application::InitApp()
-{
-       onNewDocument();
-}
-
-void Application::onStop()
-{
-       myStopPressed = true;
-}
-
-void Application::onEditViewProperties()
-{
-  if ( !myViewDlg ) {
-    myViewDlg = new ViewDlg(this);
-    verify( connect( myWorkSpace, SIGNAL( windowActivated( QWidget* ) ),
-                     myViewDlg,   SLOT( Update() ) ) );
-       }
-       myViewDlg->raise();
-       myViewDlg->show();
-}
-
-void Application::updateViewDlg()
-{
-       if(myViewDlg) myViewDlg->Update();
-}
\ No newline at end of file
diff --git a/samples/qt/Graphic3dDemo/src/AutoTestDlg.cxx b/samples/qt/Graphic3dDemo/src/AutoTestDlg.cxx
deleted file mode 100755 (executable)
index ac27091..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-
-#include "Application.h"
-#include "AutoTestDlg.h"
-#include "global.h"
-
-AutoTestDlg::AutoTestDlg(QWidget* parent)
-: QDialog(parent)
-{
-  setModal( true );
-  setWindowTitle(tr("DLG_AUTO_TEST"));
-  QString dir = Application::getResourceDir();
-  QPixmap autoIcon( dir + tr( "ICON_AUTO_TEST" ) );
-  setWindowIcon(autoIcon);
-
-  QGridLayout* pMainLayout = new QGridLayout(this);
-  pMainLayout->setMargin(5);
-  pMainLayout->setSpacing(5);
-  
-  QLabel* lab = new QLabel(tr("LAB_START"), this);
-  pMainLayout->addWidget(lab, 0, 0);
-
-  lab         = new QLabel(tr("LAB_STOP"), this);
-  pMainLayout->addWidget(lab, 1, 0);
-
-  lab         = new QLabel(tr("LAB_STEP"), this);
-  pMainLayout->addWidget(lab, 2, 0);
-
-  const int MinNbOfItems = 100000;             // to see noticable effect
-  const int MaxNbOfItems = 1000000;            // to avoid too long computations
-  const int ItemsStep    = 100000;
-  const int MinStep             = 50000;
-  const int StepStep    = 50000;
-
-  myStartSpin = new QSpinBox(this);
-  myStartSpin->setMinimum(MinNbOfItems);
-  myStartSpin->setMaximum(MaxNbOfItems);
-  myStartSpin->setSingleStep(ItemsStep);
-  pMainLayout->addWidget(myStartSpin, 0, 1);
-  verify(connect(myStartSpin, SIGNAL(valueChanged(int)), SLOT(checkStepSpinState())));
-
-  myStopSpin  = new QSpinBox(this);
-  myStopSpin->setMinimum(MinNbOfItems);
-  myStopSpin->setMaximum(MaxNbOfItems);
-  myStartSpin->setSingleStep(ItemsStep);
-  pMainLayout->addWidget(myStopSpin, 1, 1);
-  verify(connect(myStopSpin, SIGNAL(valueChanged(int)), SLOT(setStartMaxValue(int))));
-  verify(connect(myStopSpin, SIGNAL(valueChanged(int)), SLOT(checkStepSpinState())));
-
-  const int StopSpinDefaultValue = 2 * myStartSpin -> minimum();
-  myStopSpin ->  setValue(StopSpinDefaultValue);
-  myStartSpin -> setMaximum(myStopSpin -> value());
-
-  myStepSpin  = new QSpinBox(this);
-  myStepSpin->setMinimum(MinStep);
-  myStepSpin->setMaximum(MaxNbOfItems - MinNbOfItems);
-  myStepSpin->setSingleStep(StepStep);
-  pMainLayout->addWidget(myStepSpin, 2, 1);
-
-  lab         = new QLabel(tr("LAB_ITEMS"), this);
-  pMainLayout->addWidget(lab, 0, 2);
-
-  lab         = new QLabel(tr("LAB_ITEMS"), this);
-  pMainLayout->addWidget(lab, 1, 2);
-
-  lab         = new QLabel(tr("LAB_ITEMS"), this);
-  pMainLayout->addWidget(lab, 2, 2);
-
-  QFrame* separator = new QFrame(this);
-  separator->setFrameStyle(QFrame::HLine | QFrame::Sunken);
-  pMainLayout->addWidget(separator, 3, 0, 1, 3 );
-
-  QHBoxLayout* hcbox = new QHBoxLayout();
-  hcbox->setSpacing(5);
-
-  myTeCheck = new QCheckBox(tr( "MEN_BTN_TEXT" ), this);
-  hcbox->addWidget(myTeCheck);
-  verify(connect(myTeCheck, SIGNAL(clicked()), this, SLOT(onText())));
-  
-  hcbox->addSpacing( 5 );
-
-  pMainLayout->addLayout(hcbox, 4, 0, 1, 3);
-
-  QHBoxLayout* hbox = new QHBoxLayout();
-  hbox->setSpacing(5);
-
-  QPushButton* btn = new QPushButton(tr("BTN_START"), this);
-//  btn->setDefault(true);
-  verify(connect(btn, SIGNAL(clicked()), this, SLOT(onStart())));
-  btn->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
-  hbox->addWidget(btn);
-  btn              = new QPushButton(tr("BTN_CANCEL"), this);
-  verify(connect(btn, SIGNAL(clicked()), this, SLOT(onCancel())));
-  btn->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
-  hbox->addWidget(btn);
-  hbox->addSpacing(5);
-  pMainLayout->addLayout(hbox, 5, 0, 1, 3);
-}
-
-void AutoTestDlg::onStart()
-{
-  accept();
-}
-
-void AutoTestDlg::onCancel()
-{
-  reject();
-}
-
-void AutoTestDlg::setStartMaxValue(int i)
-{
-       myStartSpin -> setMaximum(i); 
-       if (myStartSpin -> value() > myStartSpin -> maximum())
-               myStartSpin -> setValue(myStartSpin -> maximum());
-}
-
-void AutoTestDlg::checkStepSpinState()
-{
-       if (isVisible())
-       {
-               if (myStartSpin -> value() == myStopSpin -> value())
-                       myStepSpin -> setEnabled(false);
-               else
-                       myStepSpin -> setEnabled(true);
-       }
-}
-
-void AutoTestDlg::onText()
-{
-  int MinNbOfItems, MaxNbOfItems, DefaultStartSpinVal, DefaultStopSpinVal,
-         ItemsStep, MinStep, StepStep;
-
-  if (myTeCheck -> isChecked())
-  {
-         MinNbOfItems            = 1000;               // to see noticeable effect
-         MaxNbOfItems            = 100000;             // to avoid too long computations
-         DefaultStartSpinVal = 10000;
-         DefaultStopSpinVal  = 20000;
-         ItemsStep                       = 10000;
-         MinStep                 = 5000;
-         StepStep                        = 5000;
-  }
-  else
-  {
-         MinNbOfItems            = 100000;             // to see noticeable effect
-         MaxNbOfItems            = 1000000;    // to avoid too long computations
-         DefaultStartSpinVal = 100000;
-         DefaultStopSpinVal  = 200000;
-         ItemsStep                       = 100000;
-         MinStep                         = 50000;
-         StepStep                        = 50000;
-  }
-
-  myStartSpin -> setRange(MinNbOfItems, MaxNbOfItems);
-  myStartSpin -> setSingleStep(ItemsStep);
-  myStartSpin -> setValue(DefaultStartSpinVal);
-
-  myStopSpin -> setRange(MinNbOfItems, MaxNbOfItems);
-  myStopSpin -> setSingleStep(ItemsStep);
-
-  myStopSpin ->  setValue(DefaultStopSpinVal);
-  myStartSpin -> setMaximum(myStopSpin -> value());
-
-  myStepSpin -> setRange(MinStep, MaxNbOfItems - MinNbOfItems);
-  myStepSpin -> setSingleStep(StepStep);
-  myStepSpin -> setValue(MinStep);
-}
\ No newline at end of file
diff --git a/samples/qt/Graphic3dDemo/src/Document.cxx b/samples/qt/Graphic3dDemo/src/Document.cxx
deleted file mode 100755 (executable)
index 0a42779..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-#include <qstatusbar.h>
-
-#ifndef WNT
-#include <Graphic3d_GraphicDevice.hxx>
-#else
-#include <Graphic3d_WNTGraphicDevice.hxx>
-#endif
-
-#include <V3d_View.hxx>
-
-#include "Application.h"
-#include "Document.h"
-#include "global.h"
-
-
-
-Handle(V3d_Viewer) Document::Viewer( const Standard_CString aDisplay,
-                                     const Standard_ExtString aName,
-                                     const Standard_CString aDomain,
-                                     const Standard_Real ViewSize )
-{
-#ifndef WNT
-  static Handle(Graphic3d_GraphicDevice) defaultdevice;
-
-  if ( defaultdevice.IsNull() ) 
-    defaultdevice = new Graphic3d_GraphicDevice( aDisplay );
-    
-  return new V3d_Viewer( defaultdevice, aName, aDomain, ViewSize, 
-                         V3d_XposYnegZpos,Quantity_NOC_MIDNIGHTBLUE,
-                          V3d_ZBUFFER,V3d_GOURAUD,V3d_WAIT);
-#else
-  static Handle(Graphic3d_WNTGraphicDevice) defaultdevice;
-  if ( defaultdevice.IsNull() )
-     defaultdevice = new Graphic3d_WNTGraphicDevice();
-    
-  return new V3d_Viewer( defaultdevice, aName, aDomain, ViewSize,
-                         V3d_XposYnegZpos,Quantity_NOC_MIDNIGHTBLUE,
-                          V3d_ZBUFFER,V3d_GOURAUD,V3d_WAIT);
-#endif  // WNT
-}
-
-Document::Document( int theIndex, Application* app ) 
-: QObject( app )
-{
-  myIndex = theIndex;
-  myNbViews = 0;
-       myApp = app;
-
-  TCollection_ExtendedString a3DName("Visual3D");
-       myViewer = Viewer( getenv( "DISPLAY" ), a3DName.ToExtString(), "", 1000.0 );
-       myViewer->SetDefaultLights();
-       myViewer->SetLightOn();
-       myViewer->SetZBufferManagment(false);
-       myContext = new AIS_InteractiveContext( myViewer );
-
-       createNewView();
-
-       myOperations = new ViewOperations( myContext );
-}
-
-Document::~Document()
-{
-  qDeleteAll( myViews );
-}
-
-Application* Document::getApplication()
-{
-       return myApp;
-}
-
-void Document::createNewView( V3d_TypeOfView type ) 
-{
-       QWorkspace* ws = myApp->getWorkspace();
-
-  MDIWindow* w = new MDIWindow( this, ws, type );
-  myViews.append( w );
-  ws->addWindow( w );
-
-       //connect( w, SIGNAL( message(const QString&, int) ), myApp->statusBar(), SLOT( message(const QString&, int )) );
-       verify( connect( w, SIGNAL( sendCloseView( MDIWindow* ) ), 
-                      SLOT( onCloseView( MDIWindow* ) ) ) );
-
-  QString aName;
-  w->setWindowTitle( aName.sprintf( "3D Viewer_%d:%d", myIndex, ++myNbViews ) );
-
-  QString dir = Application::getResourceDir();
-  w->setWindowIcon( QPixmap( dir + tr( "ICON_DOC" ) ) );
-
-  // show the very first window in maximized mode
-  if ( ws->windowList().isEmpty() )
-               w->showMaximized();
-  else
-               w->show();
-}
-
-void Document::createMagView( int xMin, int yMin, int xMax, int yMax )
-{
-#ifdef old
-  Handle(V3d_View) currentView = 
-    ( (MDIWindow*) myApp->getWorkspace()->activeWindow() )->getView();
-  createNewView( false );
-  MDIWindow* newView = myViews.last();
-  Handle(V3d_View) nView = newView->getView();
-    
-  newView->show();
-       nView->FitAll();
-       //nView->ZFitAll();
-       //nView->Redraw();
-  //nView->WindowFitAll( xMin, yMin, xMax, yMax );
-  nView->SetMagnify( currentView->Window(), currentView, 10, 10, 100, 100 );
-  //nView->SetMagnify( nView->Window(), currentView, xMin, yMin, xMax, yMax );
-#endif
-}
-
-void Document::onCloseView(MDIWindow* theView)
-{
-  if ( countOfWindow() == 1 )
-    emit sendCloseDocument( this );
-  else
-    removeView( theView );
-}
-
-void Document::removeView(MDIWindow* theView)
-{
-       myViews.removeAll( theView );
-       //delete theView;
-}
-
-int Document::countOfWindow()
-{
-       return myViews.count();
-}
-
-Handle(AIS_InteractiveContext)& Document::getContext()
-{
-       return myContext;
-}
-
-void Document::onWireframe()
-{
-       myOperations->onWireframe();
-}
-
-void Document::onShading()
-{
-       myOperations->onShading();
-}
diff --git a/samples/qt/Graphic3dDemo/src/Graph.cpp b/samples/qt/Graphic3dDemo/src/Graph.cpp
deleted file mode 100755 (executable)
index b5274d5..0000000
+++ /dev/null
@@ -1,3017 +0,0 @@
-///////////////////////////////////////////////////////////////////////
-// File     : Graph.cpp
-// Created  : 26.03.02
-// Author   : Vadim SANDLER
-//////////////////////////////////////////////////////////////////////
-
-#include <Graph.h>
-
-#include <math.h>
-#include <float.h>
-
-#include <qpainter.h>
-#include <qapplication.h>
-#include <qbitmap.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qpolygon.h>
-#include <qevent.h>
-#include <qtooltip.h>
-
-static const char* const zoomCursorImage[] = { 
-"32 32 3 1",
-". c None",
-"a c #000000",
-"# c #ffffff",
-"................................",
-"................................",
-".#######........................",
-"..aaaaaaa.......................",
-"................................",
-".............#####..............",
-"...........##.aaaa##............",
-"..........#.aa.....a#...........",
-".........#.a.........#..........",
-".........#a..........#a.........",
-"........#.a...........#.........",
-"........#a............#a........",
-"........#a............#a........",
-"........#a............#a........",
-"........#a............#a........",
-".........#...........#.a........",
-".........#a..........#a.........",
-".........##.........#.a.........",
-"........#####.....##.a..........",
-".......###aaa#####.aa...........",
-"......###aa...aaaaa.......#.....",
-".....###aa................#a....",
-"....###aa.................#a....",
-"...###aa...............#######..",
-"....#aa.................aa#aaaa.",
-".....a....................#a....",
-"..........................#a....",
-"...........................a....",
-"................................",
-"................................",
-"................................",
-"................................"};
-
-static const char* const zoomXCursorImage[] = { 
-"32 32 3 1",
-". c None",
-"a c #000000",
-"# c #ffffff",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-".............#####..............",
-"...........##.aaaa##............",
-"..........#.aa.....a#...........",
-"....a....#.a.........#.....a....",
-"...aa....#a..........#a....aa...",
-"..a#a...#.a...........#....a#a..",
-".a##aa..#a............#a..aa##a.",
-"a#####..#a............#a..#####a",
-".a##aa..#a............#a..aa##a.",
-"..a#a...#a............#a...a#a..",
-"...aa....#...........#.a...aa...",
-"....a....#a..........#a....a....",
-".........##.........#.a.........",
-"........#####.....##.a..........",
-".......###aaa#####.aa...........",
-"......###aa...aaaaa.............",
-".....###aa......................",
-"....###aa.......................",
-"...###aa........................",
-"....#aa.........................",
-".....a..........................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
-
-static const char* const zoomYCursorImage[] = { 
-"32 32 3 1",
-". c None",
-"a c #000000",
-"# c #ffffff",
-"................a...............",
-"...............a#a..............",
-"..............a###a.............", 
-".............a#####a............",
-"............aaaa#aaaa...........",
-"...............a#a..............",
-"................................",
-"................................",
-".............#####..............",
-"...........##.aaaa##............",
-"..........#.aa.....a#...........",
-".........#.a.........#..........",
-".........#a..........#a.........",
-"........#.a...........#.........",
-"........#a............#a........",
-"........#a............#a........",
-"........#a............#a........",
-"........#a............#a........",
-".........#...........#.a........",
-".........#a..........#a.........",
-".........##.........#.a.........",
-"........#####.....##.a..........",
-".......###aaa#####.aa...........",
-"......###aa...aaaaa.............",
-".....###aa......................",
-"....###aa.......................",
-"...###aa.......a#a..............",
-"....#aa.....aaaa#aaaa...........",
-".....a.......a#####a............",
-"..............a###a.............",
-"...............a#a..............",
-"................a..............."};
-
-#define SPACING_SIZE          5  // spacing
-#define TICK_SIZE             3  // axes tick size
-#define ARROW_LENGTH         20  // axis arrow size
-#define ARROW_WIDTH           3  // ...
-#define MIN_GRID_STEP        20  // minimum grid size in pixels
-#define MIN_SENSIBILITY_SIZE 10  // minimum sensibility size
-#define MIN(x, y)            ( (x) < (y) ? (x) : (y) )
-#define MAX(x, y)            ( (x) > (y) ? (x) : (y) )
-
-//////////////////////////////////////////////////////////////////////
-// GraphView
-//////////////////////////////////////////////////////////////////////
-
-//================================================================
-// Function : GraphView::GraphView
-// Purpose  : Constructor
-//================================================================
-GraphView::GraphView(QWidget* parent)
-: QWidget(parent), // WResizeNoErase | WRepaintNoErase
-  myRubberBand(0)
-{
-  // reseting legend
-  myLegend = 0;
-  // setting default cursors
-  setOperationCursor(voNone,  Qt::ArrowCursor);
-  setOperationCursor(voZoom,  QCursor(QPixmap((const char**)zoomCursorImage)));
-  setOperationCursor(voZoomX, QCursor(QPixmap((const char**)zoomXCursorImage)));
-  setOperationCursor(voZoomY, QCursor(QPixmap((const char**)zoomYCursorImage)));
-  setOperationCursor(voPan,   Qt::SizeAllCursor);
-  setOperationCursor(voPanX,  Qt::SizeHorCursor);
-  setOperationCursor(voPanY,  Qt::SizeVerCursor);
-  setOperationCursor(voRect,  Qt::PointingHandCursor);
-  // setting default mouse-keyboard hot combinations
-  setOperationButton(voZoom,  Qt::LeftButton,  Qt::ControlModifier);
-  setOperationButton(voZoomX, Qt::LeftButton,  Qt::AltModifier);
-  setOperationButton(voZoomY, Qt::RightButton, Qt::AltModifier);
-  setOperationButton(voPan,   Qt::RightButton, Qt::ControlModifier);
-  setOperationButton(voPanX,  Qt::LeftButton , Qt::ShiftModifier);
-  setOperationButton(voPanY,  Qt::RightButton, Qt::ShiftModifier);
-  setOperationButton(voRect,  Qt::LeftButton,  Qt::ControlModifier | Qt::ShiftModifier);
-  // enabling operations globally
-  setOperationsEnabled(true);
-  // disable view operations by default
-  setOperationEnabled(voZoom,  false);
-  setOperationEnabled(voZoomX, false);
-  setOperationEnabled(voZoomY, false);
-  setOperationEnabled(voPan,   false);
-  setOperationEnabled(voPanX,  false);
-  setOperationEnabled(voPanY,  false);
-  setOperationEnabled(voRect,  false);
-  // creating colors
-  myColors.append (Qt::white);
-  myColors.append (Qt::blue);
-  myColors.append (Qt::gray);
-  myColors.append (Qt::darkGreen);
-  myColors.append (Qt::magenta);
-  myColors.append (Qt::darkGray);
-  myColors.append (Qt::red);
-  myColors.append (Qt::darkBlue);
-  myColors.append (Qt::darkYellow);
-  myColors.append (Qt::cyan);
-  myColors.append (Qt::darkRed);
-  myColors.append (Qt::darkCyan);
-  myColors.append (Qt::yellow);
-  myColors.append (Qt::darkMagenta);
-  myColors.append (Qt::green);
-  myColors.append (Qt::black);
-  // creating line styles
-  myLines.append (Qt::SolidLine);
-  myLines.append (Qt::DashLine);
-  myLines.append (Qt::DotLine);
-  myLines.append (Qt::DashDotLine);
-  myLines.append (Qt::DashDotDotLine);
-  // initializing graph view  
-  myOperation = myForcedOp = voNone;          // clearing current operation
-  myOrigin = GraphNode(0.0, 0.0);             // setting origin to (0,0)
-  setScale(1.0);                              // setting scale to 1.0
-  myShowGrid      = true;                     // enabling grid drawing
-  myShowAxes      = true;                     // enabling axes drawing
-  myShowTitle     = true;                     // enabling title drawing
-  myShowAxesTitle = true;                     // enabling axes titles drawing
-  myShowTickMarks = true;                     // enabling tick marks drawing 
-  myShowTooltips  = true;                     // enabling tooltips
-  myShowMarkers   = true;                     // enabling markers drawing
-  setGridStep     (100.0, 100.0);             // setting default floating grid step
-  setFixedGridStep(100,   100);               // setting default fixed grid step
-  setGridIntervals(10, 10);                   // setting default grid intervals
-  setGridMode(gmFixed);                       // default grid mode is FIXED
-  myMarkerSize    = 9;                        // default marker size
-  setSensibilitySize(MIN_SENSIBILITY_SIZE);   // default sensibility size
-  // starting watching mouse events
-  setMouseTracking  (true);  
-  // setting background color
-  changeBackgroundColor(0); 
-}
-
-//================================================================
-// Function : GraphView::~GraphView
-// Purpose  : Destructor
-//================================================================
-GraphView::~GraphView() {
-  qDeleteAll( myItems );
-}
-
-//================================================================
-// Function : GraphView::eventFilter
-// Purpose  : event filter 
-//================================================================
-bool GraphView::eventFilter(QObject* object, QEvent* event) {
-  if ( ( event->type() == QEvent::MouseButtonPress ||
-         event->type() == QEvent::KeyPress ) &&
-      object != this) {
-    startOperation(voNone);
-    qApp->removeEventFilter(this);
-  }
-  return QWidget::eventFilter(object, event);
-}
-
-//================================================================
-// Function : GraphView::setOperationCursor
-// Purpose  : sets cursor for certain view operation
-//================================================================
-void GraphView::setOperationCursor (const ViewOperation operation, 
-                                    const QCursor&      newCursor) {
-  switch(operation) {
-  case voZoom:
-    myZoomCursor = newCursor; 
-    break;
-  case voZoomX: 
-    myZoomXCursor = newCursor; 
-    break;
-  case voZoomY:
-    myZoomYCursor = newCursor; 
-    break;
-  case voPan:
-    myPanCursor = newCursor; 
-    break;
-  case voPanX:
-    myPanXCursor = newCursor; 
-    break;
-  case voPanY:
-    myPanYCursor = newCursor; 
-    break;
-  case voRect:
-    myRectCursor = newCursor; 
-    break;
-  case voNone:
-  default:
-    myDefCursor = newCursor; 
-    break;
-  }
-}
-
-//================================================================
-// Function : GraphView::getOperationCursor
-// Purpose  : gets cursor for certain view operation
-//================================================================
-QCursor GraphView::getOperationCursor (const ViewOperation operation) const {
-  switch(operation) {
-  case voZoom:
-    return myZoomCursor;
-  case voZoomX:
-    return myZoomXCursor;
-  case voZoomY:
-    return myZoomYCursor;
-  case voPan:
-    return myPanCursor; 
-  case voPanX:
-    return myPanXCursor;
-  case voPanY:
-    return myPanYCursor;
-  case voRect:
-    return myRectCursor;
-  case voNone:
-  default:
-    break;
-  }
-  return myDefCursor;
-}
-
-//================================================================
-// Function : GraphView::setOperationsEnabled
-// Purpose  : globally enable/disables operations
-//================================================================
-void GraphView::setOperationsEnabled(bool on) {
-  myEnableGlobal = on;
-}
-
-//================================================================
-// Function : GraphView::setOperationEnabled
-// Purpose  : enables/disables view operation 
-//================================================================
-void GraphView::setOperationEnabled(const ViewOperation operation, 
-                                    bool                enable) {
-  switch(operation) {
-  case voZoom:
-    myEnableZoom  = enable;
-    break;
-  case voZoomX:
-    myEnableZoomX = enable;
-    break;
-  case voZoomY:
-    myEnableZoomY = enable;
-    break;
-  case voPan:
-    myEnablePan   = enable;
-    break;
-  case voPanX:
-    myEnablePanX  = enable;
-    break;
-  case voPanY:
-    myEnablePanY = enable;
-    break;
-  case voRect:
-    myEnableRect = enable;
-    break;
-  }
-}
-
-//================================================================
-// Function : GraphView::isOperationEnabled
-// Purpose  : returns 'true' if view operation is enabled 
-//================================================================
-bool GraphView::isOperationEnabled(const ViewOperation operation) const {
-  switch(operation) {
-  case voZoom:
-    return myEnableZoom;
-  case voZoomX:
-    return myEnableZoomX;
-  case voZoomY:
-    return myEnableZoomY;
-  case voPan:
-    return myEnablePan;
-  case voPanX:
-    return myEnablePanX;
-  case voPanY:
-    return myEnablePanY;
-  case voRect:
-    return myEnableRect;
-  }
-  return false;
-}
-
-//================================================================
-// Function : GraphView::setOperationButton
-// Purpose  : sets view operation key-mousebutton combination
-//================================================================
-void GraphView::setOperationButton(const ViewOperation         operation, 
-                                   const Qt::MouseButtons      button,
-                                   const Qt::KeyboardModifiers modifier) {
-  switch (operation) {
-  case voZoom:
-    myZoomKey  = OperationButton(button, modifier);
-    break;
-  case voZoomX:
-    myZoomXKey = OperationButton(button, modifier);
-    break;
-  case voZoomY:
-    myZoomYKey = OperationButton(button, modifier);
-    break;
-  case voPan:
-    myPanKey   = OperationButton(button, modifier);
-    break;
-  case voPanX:
-    myPanXKey  = OperationButton(button, modifier);
-    break;
-  case voPanY:
-    myPanYKey  = OperationButton(button, modifier);
-    break;
-  case voRect:
-    myRectKey  = OperationButton(button, modifier);
-    break;
-  }
-}
-
-//================================================================
-// Function : GraphView::getOperationButton
-// Purpose  : gets operation key-mousebutton combination
-//================================================================
-void GraphView::getOperationButton(const ViewOperation    operation,
-                                   Qt::MouseButtons&      button,
-                                   Qt::KeyboardModifiers& modifier) const {
-  switch (operation) {
-  case voZoom:
-    button   = myZoomKey.button;
-    modifier = myZoomKey.modifier;
-    break;
-  case voZoomX:
-    button   = myZoomXKey.button;
-    modifier = myZoomXKey.modifier;
-    break;
-  case voZoomY:
-    button   = myZoomYKey.button;
-    modifier = myZoomYKey.modifier;
-    break;
-  case voPan:
-    button   = myPanKey.button;
-    modifier = myPanKey.modifier;
-    break;
-  case voPanX:
-    button   = myPanXKey.button;
-    modifier = myPanXKey.modifier;
-    break;
-  case voPanY:
-    button   = myPanYKey.button;
-    modifier = myPanYKey.modifier;
-    break;
-  case voRect:
-    button   = myRectKey.button;
-    modifier = myRectKey.modifier;
-    break;
-  case voNone:
-  default:
-    button   = Qt::NoButton;
-    modifier = Qt::NoModifier;
-    break;
-  }
-}
-
-//================================================================
-// Function : GraphView::testOperation
-// Purpose  : tests for operation key-mousebutton combination
-//================================================================
-bool GraphView::testOperation (const ViewOperation         operation, 
-                               const Qt::MouseButtons      button,
-                               const Qt::KeyboardModifiers modifier) const {
-  switch (operation) {
-  case voZoom:
-    return myZoomKey.button == button && myZoomKey.modifier == modifier;
-  case voZoomX:
-    return myZoomXKey.button == button && myZoomXKey.modifier == modifier;
-  case voZoomY:
-    return myZoomYKey.button == button && myZoomYKey.modifier == modifier;
-  case voPan:
-    return myPanKey.button == button && myPanKey.modifier == modifier;
-  case voPanX:
-    return myPanXKey.button == button && myPanXKey.modifier == modifier;
-  case voPanY:
-    return myPanYKey.button == button && myPanYKey.modifier == modifier;
-  case voRect:
-    return myRectKey.button == button && myRectKey.modifier == modifier;
-  default:
-    break;
-  }
-  return false;
-}
-
-//================================================================
-// Function : GraphView::testOperation
-// Purpose  : tests key-mousebutton combination and
-//            returns view operation if any matches
-//================================================================
-GraphView::ViewOperation GraphView::testOperation(const Qt::MouseButtons      button,
-                                                  const Qt::KeyboardModifiers modifier) const {
-  if (testOperation(voZoom,  button, modifier))
-    return voZoom;
-  if (testOperation(voZoomX, button, modifier))
-    return voZoomX;
-  if (testOperation(voZoomY, button, modifier))
-    return voZoomY;
-  if (testOperation(voPan,   button, modifier))
-    return voPan;
-  if (testOperation(voPanX,  button, modifier))
-    return voPanX;
-  if (testOperation(voPanY,  button, modifier))
-    return voPanY;
-  if (testOperation(voRect,  button, modifier))
-    return voRect;
-  return voNone;
-}
-
-//================================================================
-// Function : GraphView::reset
-// Purpose  : resets view - sets origin to 0.0 and scales to 1.0
-//================================================================
-void GraphView::reset() {
-  myOrigin = GraphNode(0.0, 0.0);
-  myXScale = 1.0;
-  myYScale = 1.0;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::fitAll
-// Purpose  : fits viewer so display all data  
-//================================================================
-void GraphView::fitAll() {
-  QRect pRect = getGraphRect();
-  if (!pRect.isValid() || 
-       pRect.right() == pRect.left() || 
-       pRect.top()   == pRect.bottom())
-    return;
-  GraphItem* item;
-  double xMin =  DBL_MAX;
-  double xMax = -DBL_MAX;
-  double yMin =  DBL_MAX;
-  double yMax = -DBL_MAX;
-  int cnt = 0;
-  foreach (item, myItems ) {
-    int i;
-    cnt += item->count();
-    for (i = 0; i < item->count(); i++) {
-      GraphNode* node = item->getNode(i);
-      if (node->x() < xMin)
-        xMin = node->x();
-      if (node->x() > xMax)
-        xMax = node->x();
-      if (node->y() < yMin)
-        yMin = node->y();
-      if (node->y() > yMax)
-        yMax = node->y();
-    }
-  }
-  if (cnt > 0) {
-    double xOr = xMin;
-    double yOr = yMin;
-    double dx  = xMax - xMin;
-    double dy  = yMax - yMin;
-    int    idx = pRect.width();
-    int    idy = pRect.height();
-    if (dx > 0) {
-      myXScale = dx * 1.001 / idx;
-    }
-    else {
-      myXScale = 10 * fabs(xMin) / idx;
-      xOr = xMin - 5 * fabs(xMin);
-    }
-    if (dy > 0) {
-      myYScale = dy * 1.001 / idy;
-    }
-    else {
-      myYScale = 10 * fabs(yMin) / idy;
-      yOr = yMin - 5 * fabs(yMin);
-    }
-    myOrigin = GraphNode(xOr, yOr);
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::fitData
-// Purpose  : fits viewer to display certain data
-//================================================================
-void GraphView::fitData(const double xMin, const double xMax,
-                        const double yMin, const double yMax) {
-  QRect pRect = getGraphRect();
-  if (xMin == xMax || yMin == yMax)
-    return;
-  double xOr = (xMin < xMax) ? xMin : xMax;
-  double yOr = (yMin < yMax) ? yMin : yMax;
-  double dx  = fabs(xMax - xMin);
-  double dy  = fabs(yMax - yMin);
-  int    idx = pRect.width();
-  int    idy = pRect.height();
-  
-  myXScale = dx * 1.001 / idx;
-  myYScale = dy * 1.001 / idy;
-  myOrigin = GraphNode(xOr, yOr);
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::fitDataX
-// Purpose  : fits viewer to display certain data along horizontal axis
-//================================================================
-void GraphView::fitDataX(const double xMin, const double xMax) {
-  QRect pRect = getGraphRect();
-  if (xMin == xMax)
-    return;
-  double xOr = (xMin < xMax) ? xMin : xMax;
-  double dx  = fabs(xMax - xMin);
-  int    idx = pRect.width();
-  myXScale = dx * 1.001 / idx;
-  myOrigin = GraphNode(xOr, myOrigin.y());
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::fitDataY
-// Purpose  : fits viewer to display certain data along vertical axis
-//================================================================
-void GraphView::fitDataY(const double yMin, const double yMax) {
-  QRect pRect = getGraphRect();
-  if (yMin == yMax)
-    return;
-  double yOr = (yMin < yMax) ? yMin : yMax;
-  double dy  = fabs(yMax - yMin);
-  int    idy = pRect.height();
-  myYScale = dy * 1.001 / idy;
-  myOrigin = GraphNode(myOrigin.x(), yOr);
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::pan
-// Purpose  : performs pan operation by dx, dy pixels
-//================================================================
-void GraphView::pan(const int dx, const int dy) {
-  myOrigin = GraphNode(myOrigin.x() - dx * myXScale,
-                       myOrigin.y() + dy * myYScale);
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::zoom
-// Purpose  : performs zoom operation by dx, dy pixels
-//================================================================
-void GraphView::zoom(const int dx, const int dy) {
-  double dl = sqrt((double)dx * dx + (double)dy * dy);
-  bool   sn = (abs(dx) > abs(dy)) ? (dx > 0) : (dy > 0);
-  double pw = pow( 2.0, (dl / 100.0 * ( sn ? (1.0) : (-1.0)) ) );
-
-  if (dx != 0 && dy != 0) {
-    myXScale /= pw;
-    myYScale /= pw;
-  }
-  else
-  if (dy == 0)
-    myXScale /= pow( 2.0, ((double)dx)/100 );
-  else
-  if (dx == 0)
-    myYScale /= pow( 2.0, ((double)dy)/100 );
-
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::startViewOperation
-// Purpose  : starts operation if it is enabled
-//================================================================
-void GraphView::startViewOperation(const ViewOperation operation) {
-  if (myOperation != voNone) {
-    onFinishOperation();
-    startOperation(voNone);
-  }
-  if (isOperationsEnabled() && isOperationEnabled(operation)) {
-    setCursor(getOperationCursor(operation));
-    myForcedOp = operation;
-    qApp->installEventFilter(this);
-  }
-}
-
-//================================================================
-// Function : GraphView::showMarkers
-// Purpose  : enables/disables internal markers drawing
-//================================================================
-void GraphView::showMarkers(bool show) {
-  myShowMarkers = show;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::showTooltips
-// Purpose  : enables/disables tooltips
-//================================================================
-void GraphView::showTooltips(bool show) {
-  myShowTooltips = show;
-}
-
-//================================================================
-// Function : GraphView::showAxes
-// Purpose  : shows/hides axes
-//================================================================
-void GraphView::showAxes(bool show) {
-  if (myShowAxes != show) {
-    myShowAxes = show;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::showTickMark
-// Purpose  : shows/hides tick-marks
-//================================================================
-void GraphView::showTickMark(bool show) {
-  if (myShowTickMarks != show) {
-    myShowTickMarks = show;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::showTitle
-// Purpose  : shows/hides title
-//================================================================
-void GraphView::showTitle (bool show) {
-  if (myShowTitle != show) {
-    myShowTitle = show;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setTitle
-// Purpose  : sets graph title
-//================================================================
-void GraphView::setTitle(const QString& title) {
-  myTitle = title;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::showAxesTitle
-// Purpose  : shows/hides axes title
-//================================================================
-void GraphView::showAxesTitle (bool show) {
-  if (myShowAxesTitle != show) {
-    myShowAxesTitle = show;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setXTitle
-// Purpose  : sets graph X axis title
-//================================================================
-void GraphView::setXTitle(const QString& title) {
-  myXTitle = title;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::setYTitle
-// Purpose  : sets graph Y axis title
-//================================================================
-void GraphView::setYTitle(const QString& title) {
-  myYTitle = title;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::showGrid
-// Purpose  : shows/hides grid
-//================================================================
-void GraphView::showGrid(bool show) {
-  if (myShowGrid != show) {
-    myShowGrid = show;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setGridStep
-// Purpose  : sets grid step by x, y axes, 
-//            doesn't change step if it is <= 0
-//================================================================
-void GraphView::setGridStep(const double x, const double y, bool turn) {
-  if (x > 0) {
-    myGridStepX = x;
-  }
-  if (y > 0) {
-    myGridStepY = y;
-  }
-  if (turn)
-    myGridMode = gmFloating;
-  if (myShowGrid)
-    update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::getGridStep
-// Purpose  : gets grid step for x, y axes and returns true if grid is not fixed
-//================================================================
-bool GraphView::getGridStep(double& x, double& y) const {
-  x = myGridStepX;
-  y = myGridStepY;
-  return (myGridMode == gmFloating);
-}
-
-//================================================================
-// Function : GraphView::setFixedGridStep
-// Purpose  : sets fixed grid step for x, y axes in pixels, 
-//            doesn't change step if it is less 0
-//================================================================
-void GraphView::setFixedGridStep(const int x, const int y, bool turn) {
-  if (x > 0) {
-    myGridPStepX = x;
-    if (myGridPStepX < MIN_GRID_STEP)
-      myGridPStepX = MIN_GRID_STEP;
-  }
-  if (y > 0) {
-    myGridPStepY = y;
-    if (myGridPStepY < MIN_GRID_STEP)
-      myGridPStepY = MIN_GRID_STEP;
-  }
-  if (turn)
-    myGridMode = gmFixed;
-  if (myShowGrid)
-    update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::getFixedGridStep
-// Purpose  : gets fixed grid step for x, y axes in pixels 
-//            and returns true if grid is fixed
-//================================================================
-bool GraphView::getFixedGridStep(int& x, int& y) const {
-  x = myGridPStepX;
-  y = myGridPStepY;
-  return (myGridMode == gmFixed);
-}
-
-//================================================================
-// Function : GraphView::setGridIntervals
-// Purpose  : sets number of grid intervals (INTERVALS mode) for x, y axes, 
-//            doesn't change if <= 0
-//================================================================
-void GraphView::setGridIntervals(const int xInt, 
-                                 const int yInt, 
-                                 bool      turn) {
-  if (xInt > 0) {
-    myGridIntX = xInt;
-  }
-  if (yInt > 0) {
-    myGridIntY = yInt;
-  }
-  if (turn)
-    myGridMode = gmIntervals;
-  if (myShowGrid)
-    update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::getGridIntervals
-// Purpose  : gets number of grid intervals (INTERVALS mode) for x, y axes, 
-//            and returns true if grid mode is INTERVALS
-//================================================================
-bool GraphView::getGridIntervals(int &xInt, int &yInt) const {
-  xInt = myGridIntX;
-  yInt = myGridIntY;
-  return (myGridMode == gmIntervals);
-}
-
-//================================================================
-// Function : GraphView::setGridMode
-// Purpose  : switches grid mode [FIXED, INTERVALS, FLOATING]
-//================================================================
-void GraphView::setGridMode(const GridMode mode) {
-  if (myGridMode != mode) {
-    myGridMode = mode;
-    if (myShowGrid)
-      update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setXScale
-// Purpose  : sets X axis scale
-//================================================================
-void GraphView::setXScale(const double scale) {
-  if (scale > 0) {
-    myXScale = scale;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setYScale
-// Purpose  : sets Y axis scale
-//================================================================
-void GraphView::setYScale(const double scale) {
-  if (scale > 0) {
-    myYScale = scale;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setScale
-// Purpose  : sets X, Y axis scale
-//================================================================
-void GraphView::setScale(const double scale) {
-  if (scale > 0) {
-    myXScale = scale;
-    myYScale = scale;
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::setOrigin
-// Purpose  : moves axes origin to point [x, y]
-//================================================================
-void GraphView::setOrigin(const double x, const double y) {
-  myOrigin = GraphNode(x, y);
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::getOrigin
-// Purpose  : gets axes origin
-//================================================================
-void GraphView::getOrigin(double& x, double& y) const {
-  x = myOrigin.x();
-  y = myOrigin.y();
-}
-
-//================================================================
-// Function : GraphView::changeBackgroundColor
-// Purpose  : 
-//================================================================
-void GraphView::changeBackgroundColor(const int index) {
-  int shift = 1;
-  if (index >= 0 && index < getNbColors())
-    shift = index;
-  int i;
-  unsigned j;
-  unsigned aNb = myColors.count();
-  if (aNb > 1) {
-    for (i = 0; i < shift; i++) {
-      QColor tmp = myColors.first();
-      for (j = 0; j < aNb - 1; j++) {
-        myColors[j] = myColors[j+1];
-      }
-      myColors[aNb - 1] = tmp;
-    }
-  }
-  QPalette pal = palette();
-  pal.setColor(QPalette::Window, myColors.first()); // QPalette::Active, 
-  pal.setColor(QPalette::Text,   myColors.last()); //QPalette::Active, 
-  setPalette(pal);
-  update(); //repaint(false);
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::setTitleFont
-// Purpose  : sets main title font
-//================================================================
-void GraphView::setTitleFont(QFont& font) {
-  myTitleFont = font;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::setAxesTitleFont
-// Purpose  : sets axes title font
-//================================================================
-void GraphView::setAxesTitleFont(QFont& font) {
-  myAxesTitleFont = font;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::setTickMarksFont
-// Purpose  : sets tick marks font
-//================================================================
-void GraphView::setTickMarksFont(QFont& font) {
-  myTickMarksFont = font;
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::setLegend
-// Purpose  : sets legend widget
-//================================================================
-void GraphView::setLegend(GraphLegend* legend) {
-  myLegend = legend;
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::getBorders
-// Purpose  : gets borders size
-//================================================================
-void GraphView::getMargins(int& leftMargin, 
-                           int& rightMargin, 
-                           int& topMargin, 
-                           int& bottomMargin) {
-  int db = MAX(SPACING_SIZE, (getMarkerSize() + 1)/2);
-  topMargin    = db;
-  bottomMargin = db;
-  leftMargin   = db;
-  rightMargin  = db;
-
-  if (myShowTitle && !myTitle.isEmpty()) {
-    QFontMetrics fm(myTitleFont);
-    topMargin += ( fm.height() + SPACING_SIZE );
-  }
-  if (myShowAxesTitle && !myXTitle.isEmpty()) {
-    QFontMetrics fm(myAxesTitleFont);
-    bottomMargin += ( fm.height() + SPACING_SIZE );
-  }
-  if (myShowAxesTitle && !myYTitle.isEmpty()) {
-    QFontMetrics fm(myAxesTitleFont);
-    topMargin += ( fm.height() + SPACING_SIZE );
-  }
-  if (myShowTickMarks) {
-    QFontMetrics fm(myTickMarksFont);
-    rightMargin  += SPACING_SIZE * 3;
-    leftMargin   += SPACING_SIZE * 10;
-    bottomMargin += ( fm.height() + SPACING_SIZE );
-    topMargin    += fm.height() / 2 + SPACING_SIZE;
-  }
-}
-
-//================================================================
-// Function : GraphView::insertItem
-// Purpose  : inserts item into list
-//================================================================
-void GraphView::insertItem(GraphItem* item) {
-  int aMarker, aColor, aLine;
-  getNextMarker(aMarker, aColor, aLine);
-  item->setMarker(aMarker, aColor, aLine);
-  myItems.append(item);
-  update(); //repaint(false);
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::removeItem
-// Purpose  : removes item from list
-//================================================================
-void GraphView::removeItem(const int index) {
-  myItems.removeAt(index);
-  update(); //repaint(false);
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::clear
-// Purpose  : clears data list
-//================================================================
-void GraphView::clear() {
-  myItems.clear();
-  update(); //repaint(false);
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::getItem
-// Purpose  : gets item by index, returns NULL if index is out of range
-//================================================================
-GraphItem* GraphView::getItem(const int index) {
-  return myItems.at(index);
-}
-
-//================================================================
-// Function : GraphView::findItem
-// Purpose  : returns index of item in data list 
-//================================================================
-int GraphView::findItem(GraphItem* item) {
-  return myItems.indexOf(item);
-}
-
-//================================================================
-// Function : GraphView::setSorted
-// Purpose  : sets/unsets items to be sorted by horizontal coordinate
-//================================================================
-void GraphView::setSorted(bool sorted) {
-  GraphItem* item;
-  foreach (item, myItems) {
-    item->setSorted(sorted);
-  }
-  update(); //repaint(false);
-}
-
-//================================================================
-// Function : GraphView::getRange
-// Purpose  : gets full data range
-//================================================================
-void GraphView::getRange(double& minX, double& minY, 
-                         double& maxX, double& maxY) {
-  minX =  DBL_MAX;
-  maxX = -DBL_MAX;
-  minY =  DBL_MAX;
-  maxY = -DBL_MAX;
-  GraphItem* item;
-  int cnt = 0;
-  foreach (item, myItems) {
-    int i;
-    cnt += item->count();
-    for (i = 0; i < item->count(); i++) {
-      GraphNode* node = item->getNode(i);
-      if (node->x() < minX)
-        minX = node->x();
-      if (node->x() > maxX)
-        maxX = node->x();
-      if (node->y() < minY)
-        minY = node->y();
-      if (node->y() > maxY)
-        maxY = node->y();
-    }
-  }
-  if (cnt <= 0) {
-    minX = 0.0;
-    minY = 0.0;
-    maxX = 0.0;
-    maxY = 0.0;
-  }
-}
-
-//================================================================
-// Function : GraphView::getCurrentRange
-// Purpose  : gets current data range
-//================================================================
-void GraphView::getCurrentRange(double& minX, double& minY,
-                                double& maxX, double& maxY) {
-  minX = myOrigin.x();
-  minY = myOrigin.y();
-  QRect pRect = getGraphRect();
-  maxX = minX + myXScale * (pRect.width()  - 1); 
-  maxY = minY + myYScale * (pRect.height() - 1); 
-}
-
-//================================================================
-// Function : GraphView::getNbColors
-// Purpose  : returns number of colors provided
-//            default value is 16
-//================================================================
-int GraphView::getNbColors(){
-  return myColors.count();
-}
-
-//================================================================
-// Function : GraphView::getNbMarkers
-// Purpose  : returns number of markers provided
-//            default value is 11 : 
-//            0 - square
-//            1 - circle
-//            2 - triangle (looks up)
-//            3 - triangle (looks down)
-//            4 - cross
-//            5 - rhomb
-//            6 - empty square
-//            7 - empty circle
-//            8 - empty rhomb
-//            9 - empty triangle (looks up)
-//            9 - empty triangle (looks down)
-//================================================================
-int GraphView::getNbMarkers() {
-  return 11;
-}
-
-//================================================================
-// Function : GraphView::getNbTypeLines
-// Purpose  : returns number of type lines provided
-//            default value is 5 : 
-//            0 - SolidLine
-//            1 - DashLine
-//            2 - DotLine 
-//            3 - DashDotLine
-//            4 - DashDotDotLine
-//================================================================
-int GraphView::getNbTypeLines() {
-  return myLines.count();
-}
-
-//================================================================
-// Function : GraphView::setMarkerSize
-// Purpose  : sets marker size
-//================================================================
-void GraphView::setMarkerSize(const int size) {
-  myMarkerSize = size;
-  update(); //repaint(false);
-  if (myLegend)
-    myLegend->updateMe();
-}
-
-//================================================================
-// Function : GraphView::tip
-// Purpose  : handles tooltips for the view
-//================================================================
-QRect GraphView::tip(const QPoint& point, QString& tipText) {
-  if (!myShowTooltips/* || !myShowMarkers */)
-    return QRect(0, 0, -1, -1);
-  QRect where(QPoint(0,0), QSize(getMarkerSize(), getMarkerSize()));
-  where.moveCenter(point);
-  unsigned i;
-  QRect pRect = this->getGraphRect();
-  long minLength = -1;
-  QListIterator<GraphItem*> iter(myItems);
-  iter.toBack();
-  while (iter.hasPrevious()) {
-    GraphItem* aItem = iter.previous();
-    unsigned aNbNodes = aItem->count();
-    for (i = 0; i < aNbNodes; i++) {
-      GraphNode* node = aItem->getNode(i);
-      long x = (long)((node->x() - myOrigin.x()) / myXScale);
-      long y = (long)((node->y() - myOrigin.y()) / myYScale);
-      x = pRect.left()   + x;
-      y = pRect.bottom() - y;
-      QPoint dst = point - QPoint(x, y);
-      long length = dst.x() * dst.x() + dst.y() * dst.y();
-      if (where.contains(x, y) && (minLength < 0 || minLength > length)) {
-        tipText = QString("(") + QString::number(node->x()) + ", " + 
-                  QString::number(node->y()) + QString(")");
-        if (!(aItem->getName().isEmpty()))
-          tipText = aItem->getName() + " : " + tipText;
-        minLength = length;
-      }
-    }
-  }
-  if (!tipText.isEmpty())
-    return where;
-  else
-    return QRect(0, 0, -1, -1);
-}
-
-//================================================================
-// Function : GraphView::isSameColors [static]
-// Purpose  : returns true if colors seem to be the same 
-//            (i.e. difference is less than gap)
-//================================================================
-bool GraphView::isSameColors(const QColor color1, 
-                             const QColor color2, 
-                             const int    gap) {
-  int rC1, bC1, gC1;
-  int rC2, bC2, gC2;
-  color1.getRgb(&rC1, &gC1, &bC1);
-  color2.getRgb(&rC2, &gC2, &bC2);
-  return ( abs(rC1 - rC2) + abs(gC1 - gC2) + abs(bC1 - bC2) ) < gap;
-}
-
-//================================================================
-// Function : GraphView::startOperation
-// Purpose  : starts/finishes view operation
-//================================================================
-void GraphView::startOperation(ViewOperation theOp) {
-  switch (theOp) {
-  case voZoom:
-  case voZoomX:
-  case voZoomY:
-  case voPan:
-  case voPanX:
-  case voPanY:
-  case voRect:
-    if (myOperation != voNone) {
-      startOperation(voNone);
-    }
-    myOperation = theOp;
-    setCursor(getOperationCursor(myOperation));
-    onStartOperation();
-    break;
-  case voNone:
-  default:
-    setCursor(myDefCursor);
-    myOperation = myForcedOp = voNone;
-    break;
-  }
-}
-
-//================================================================
-// Function : GraphView::onStartOperation
-// Purpose  : called on view operation starting
-//================================================================
-void GraphView::onStartOperation() {
-  if (myOperation == voRect) {
-    if (!myRubberBand)
-      myRubberBand = new QRubberBand(QRubberBand::Rectangle, this);
-    QRect r = QRect(myPoint, myOtherPoint).normalized();
-    myRubberBand->setGeometry( r );
-    myRubberBand->setVisible(r.isValid());
-  }
-}
-
-//================================================================
-// Function : GraphView::onFinishOperation
-// Purpose  : called on view operation finishing
-//================================================================
-void GraphView::onFinishOperation() 
-{
-  if (myOperation == voRect) {
-    QRect rect(myPoint, myOtherPoint);
-    rect = rect.normalized();
-    if (myRubberBand) myRubberBand->hide();
-    if (!rect.isValid())
-      return;
-    if (rect.width() < mySensibilitySize || rect.height() < mySensibilitySize)
-      return;
-    QRect pRect = this->getGraphRect();
-    int dx = rect.left()   - pRect.left();
-    int dy = rect.bottom() - pRect.bottom();
-    myOrigin = GraphNode(myOrigin.x() + dx * myXScale,
-                         myOrigin.y() - dy * myYScale);
-    myXScale = myXScale * rect.width()  / pRect.width();
-    myYScale = myYScale * rect.height() / pRect.height();
-    update(); //repaint(false);
-  }
-}
-
-//================================================================
-// Function : GraphView::onOperation
-// Purpose  : called on view operation running
-//================================================================
-void GraphView::onOperation(QPoint mousePos) {
-  int    dx = mousePos.x() - myPoint.x();
-  int    dy = mousePos.y() - myPoint.y();
-  double dl = sqrt((double)dx * dx + (double)dy * dy);
-  bool   sn = (abs(dx) > abs(dy)) ? (dx > 0) : (dy > 0);
-  double pw = pow( 2.0, (dl / 100.0 * ( sn ? (1.0) : (-1.0)) ) );
-
-  switch (myOperation) {
-  case voPan: 
-    {
-      myOrigin = GraphNode(myOrigin.x() - dx * myXScale,
-                           myOrigin.y() + dy * myYScale);
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voPanX: 
-    {
-      myOrigin = GraphNode(myOrigin.x() - dx * myXScale,
-                           myOrigin.y());
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voPanY: 
-    {
-      myOrigin = GraphNode(myOrigin.x(),
-                           myOrigin.y() + dy * myYScale);
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voZoom: 
-    {    
-      myXScale /= pw;
-      myYScale /= pw;
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voZoomX: 
-    {    
-      myXScale /= pow( 2.0, ((double)dx)/100 );
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voZoomY: 
-    {    
-      myYScale /= pow( 2.0, ((double)dy)/100 );
-      myPoint = mousePos;
-      update(); //repaint(false);
-      break;
-    }
-  case voRect:
-    {
-      myOtherPoint = mousePos;
-      QRect r = QRect(myPoint, myOtherPoint).normalized();
-      myRubberBand->setGeometry( r );
-      myRubberBand->setVisible(r.isValid());
-      break;
-    }
-  }
-}
-
-//================================================================
-// Function : GraphView::onMouseMove
-// Purpose  : called on mouse moving action (e.g. for highlighting item)
-//================================================================
-void GraphView::onMouseMove(QPoint mousePos) {
-}
-
-//================================================================
-// Function : GraphView::setSensibilitySize
-// Purpose  : sets sensibility area size
-//================================================================
-void GraphView::setSensibilitySize(const int size) {
-  mySensibilitySize = size;
-  if (mySensibilitySize < MIN_SENSIBILITY_SIZE)
-    mySensibilitySize = MIN_SENSIBILITY_SIZE;
-}
-
-//================================================================
-// Function : GraphView::mousePressEvent
-// Purpose  : MousePress event handler
-//================================================================
-void GraphView::mousePressEvent( QMouseEvent *e ) { 
-  Qt::MouseButtons      aBtn = e->buttons();
-  Qt::KeyboardModifiers aKey = e->modifiers();
-
-  // finishing current viewer operation
-  if (myOperation != voNone) {
-    onFinishOperation();
-    startOperation(voNone);
-  }
-  myOtherPoint = myPoint = e->pos();
-  if (myForcedOp != voNone) {
-    startOperation(myForcedOp);
-  }
-  else {
-    if (isOperationsEnabled() && isOperationEnabled(testOperation(aBtn, aKey)))
-      startOperation(testOperation(aBtn, aKey));
-  }
-}
-
-//================================================================
-// Function : GraphView::mouseMoveEvent
-// Purpose  : MouseMove event handler
-//================================================================
-void GraphView::mouseMoveEvent(QMouseEvent* e) {
-  if (myOperation != voNone)
-    onOperation(e->pos());
-  else
-    onMouseMove(e->pos());
-}
-
-//================================================================
-// Function : GraphView::mouseReleaseEvent
-// Purpose  : MouseRelease event handler
-//================================================================
-void GraphView::mouseReleaseEvent(QMouseEvent *e) {
-  // finishing current viewer operation
-  if (myOperation != voNone) {
-    onFinishOperation();
-    startOperation(voNone);
-  }
-}
-
-//================================================================
-// Function : GraphView::mouseDoubleClickEvent
-// Purpose  : MouseDoubleClick event handler
-//================================================================
-void GraphView::mouseDoubleClickEvent(QMouseEvent *e) {
-}
-
-//================================================================
-// Function : GraphView::keyPressEvent
-// Purpose  : KeyPress event handler
-//================================================================
-void GraphView::keyPressEvent( QKeyEvent *e ) {
-//  emit vpKeyEvent( e );
-}
-
-//================================================================
-// Function : GraphView::keyReleaseEvent
-// Purpose  : KeyRelease event handler
-//================================================================
-void GraphView::keyReleaseEvent( QKeyEvent *e ) {
-//  emit vpKeyEvent( e );
-}
-
-//================================================================
-// Function : GraphView::resizeEvent
-// Purpose  : Resize event handler
-//================================================================
-void GraphView::resizeEvent(QResizeEvent* e) {
-  QWidget::resizeEvent(e);
-}
-
-//================================================================
-// Function : GraphView::paintEvent
-// Purpose  : Paint event handler
-//================================================================
-void GraphView::paintEvent(QPaintEvent* e) {
-  QPixmap aBuffer = QPixmap(width(), height());
-  aBuffer.fill(this, QPoint(0,0));
-  
-  QRect pRect = getGraphRect();
-  if ( pRect.isValid() ||
-       pRect.right() == pRect.left() || 
-       pRect.top()   == pRect.bottom() ) {
-    QPainter p(&aBuffer);
-    // drawing grid
-    if (myShowGrid) {
-      p.save();
-      drawGrid(&p);
-      p.restore();
-    }
-    // or border
-    else {
-      p.save();
-      drawBorder(&p);
-      p.restore();
-    }
-    // drawing axes 
-    if (myShowAxes) {
-      p.save();
-      drawAxes(&p);
-      p.restore();
-    }
-    // drawing tick marks
-    if (myShowTickMarks) {
-      p.save();
-      drawTickMarks(&p);
-      p.restore();
-    }
-    // drawing axes titles 
-    if (myShowAxesTitle) {
-      p.save();
-      drawAxesTitle(&p);
-      p.restore();
-    }
-    // drawing title
-    if (myShowTitle) {
-      p.save();
-      drawTitle(&p);
-      p.restore();
-    }
-    // drawing data
-    GraphItem* aItem;
-    foreach (aItem, myItems) {
-      p.save();
-      drawItem(&p, aItem);
-      p.restore();
-    }
-  }
-  QPainter painter(this);
-  painter.drawPixmap(QPoint(0, 0), aBuffer);
-}
-
-//================================================================
-// Function : GraphView::event
-// Purpose  : global event handler
-//================================================================
-bool GraphView::event(QEvent* e)
-{
-  if (e->type() == QEvent::ToolTip) {
-    QHelpEvent* helpEvent = static_cast<QHelpEvent*>(e);
-    QString tipText;
-    QRect r = tip(helpEvent->pos(), tipText);
-    if (r.isValid() && !tipText.isEmpty() )
-      QToolTip::showText(helpEvent->globalPos(), tipText, this, r);
-    else
-      QToolTip::hideText();
-  }
-  return QWidget::event(e);
-}
-
-//================================================================
-// Function : GraphView::getMargins
-// Purpose  : gets graph painting area
-//================================================================
-QRect GraphView::getGraphRect() {
-  int topMargin;
-  int bottomMargin;
-  int leftMargin;
-  int rightMargin;
-
-  getMargins(leftMargin, rightMargin, topMargin, bottomMargin);
-  return QRect(QPoint(leftMargin, topMargin), 
-               QPoint(width() - rightMargin, height() - bottomMargin));
-}
-
-//================================================================
-// Function : GraphView::drawGrid
-// Purpose  : draws grid
-//================================================================
-void GraphView::drawGrid(QPainter* painter) {
-  if (!myShowGrid)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen
-  painter->setPen(QPen(Qt::lightGray, 0, Qt::DotLine));
-  IntList xList, yList;
-  this->getTickPoints(xList, yList);
-  unsigned i;
-  for (i = 0; i < xList.count(); i++) {
-    painter->drawLine(pRect.left() + xList[i],
-                      pRect.top(), 
-                      pRect.left() + xList[i], 
-                      pRect.bottom());
-  }
-  for (i = 0; i < yList.count(); i++) {
-    painter->drawLine(pRect.left(),
-                      pRect.bottom() - yList[i], 
-                      pRect.right(), 
-                      pRect.bottom() - yList[i]);
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-//================================================================
-// Function : GraphView::drawBorder
-// Purpose  : draws border (it is drawn when grid is not)
-//================================================================
-void GraphView::drawBorder(QPainter* painter) {
-  if (myShowGrid)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen
-  painter->setPen(QPen(Qt::lightGray, 0, Qt::DotLine));
-  painter->drawLine(pRect.left(),
-                    pRect.top(), 
-                    pRect.left(), 
-                    pRect.bottom());
-  painter->drawLine(pRect.left(),
-                    pRect.bottom(), 
-                    pRect.right(), 
-                    pRect.bottom());
-  painter->drawLine(pRect.right(),
-                    pRect.top(), 
-                    pRect.right(), 
-                    pRect.bottom());
-  painter->drawLine(pRect.left(),
-                    pRect.top(), 
-                    pRect.right(), 
-                    pRect.top());
-  // forcing immediate painting
-  //painter->flush();
-}
-//================================================================
-// Function : GraphView::drawAxes
-// Purpose  : draws axes
-//================================================================
-void GraphView::drawAxes(QPainter* painter) {
-  if (!myShowAxes)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen, brush...  
-  painter->setPen(QPen(palette().color(QPalette::Text), 1)); // QPalette::Active, 
-  painter->setBrush(palette().color(QPalette::Text)); // QPalette::Active, 
-  // drawing axes lines
-  QPoint p1(pRect.left(),  pRect.top());
-  QPoint p2(pRect.left(),  pRect.bottom());
-  QPoint p3(pRect.right(), pRect.bottom());
-  painter->drawLine(p1, p2);
-  painter->drawLine(p2, p3);
-  // drawing arrows
-  QPolygon ar1(3), ar2(3);
-  ar1[0] = p1;
-  ar1[1] = QPoint(pRect.left() - ARROW_WIDTH, pRect.top() + ARROW_LENGTH);
-  ar1[2] = QPoint(pRect.left() + ARROW_WIDTH, pRect.top()  + ARROW_LENGTH);
-  ar2[0] = p3;
-  ar2[1] = QPoint(pRect.right() - ARROW_LENGTH, pRect.bottom() + ARROW_WIDTH);
-  ar2[2] = QPoint(pRect.right() - ARROW_LENGTH, pRect.bottom() - ARROW_WIDTH);
-  if (pRect.height() > ARROW_LENGTH)
-    painter->drawPolygon(ar1);
-  if (pRect.width() > ARROW_LENGTH)
-    painter->drawPolygon(ar2);
-  // forcing immediate painting
-  //painter->flush();
-  // drawing axes marks
-  IntList xList, yList;
-  this->getTickPoints(xList, yList);
-  unsigned i;
-  // X axis marks
-  for (i = 0; i < xList.count(); i++) {
-    if (pRect.left() + xList[i] != pRect.right() && 
-        xList[i] != 0) {
-      painter->drawLine(pRect.left() + xList[i], pRect.bottom() - TICK_SIZE,
-                        pRect.left() + xList[i], pRect.bottom() + TICK_SIZE);
-    }
-  }
-  // Y axis marks
-  for (i = 0; i < yList.count(); i++) {
-    if (pRect.bottom() - yList[i] != pRect.top() && 
-        yList[i] != 0) {
-      painter->drawLine(pRect.left() - TICK_SIZE, pRect.bottom() - yList[i],
-                        pRect.left() + TICK_SIZE, pRect.bottom() - yList[i]);
-    }
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-
-
-//================================================================
-// Function : GraphView::drawTickMarks
-// Purpose  : draws tick marks
-//================================================================
-void GraphView::drawTickMarks(QPainter* painter) {
-  if (!myShowTickMarks)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen
-  painter->setPen(QPen(palette().color(QPalette::Text), 1)); //QPalette::Active, 
-  QFontMetrics fm(myTickMarksFont);
-  painter->setFont(myTickMarksFont);
-  int aTH = fm.height();
-  IntList xList, yList;
-  this->getTickPoints(xList, yList);
-  unsigned i;
-  // X axis tick marks
-  int aLast = 0;
-  int aFromX, aFromY;
-  for (i = 0; i < xList.count(); i++) {
-    QString xOr = QString::number(myOrigin.x() + myXScale * xList[i]);
-    int aTW = fm.width(xOr);
-    aFromY = pRect.bottom() + SPACING_SIZE;
-    aFromX = pRect.left() + xList[i]  - aTW/2;
-    if (aFromX + aTW + SPACING_SIZE > width())
-      aFromX = width() - aTW - SPACING_SIZE;
-    if (aFromX < SPACING_SIZE)
-      aFromX = SPACING_SIZE;
-    if (aFromX >= aLast) {
-      painter->drawText(aFromX, aFromY, aTW, aTH, Qt::AlignCenter, xOr);
-      aLast = aFromX + aTW + SPACING_SIZE * 2;
-    }
-  }
-  // Y axis tick marks
-  aLast = pRect.bottom() + SPACING_SIZE;
-  for (i = 0; i < yList.count(); i++) {
-    QString yOr = QString::number(myOrigin.y() + myYScale * yList[i]);
-    int aTW = fm.width(yOr);
-    aFromX = pRect.left() - aTW - SPACING_SIZE;
-    if (aFromX < SPACING_SIZE)
-      aFromX = SPACING_SIZE;
-    aFromY = pRect.bottom() - yList[i] - aTH/2;
-    if (aFromY + aTH > pRect.bottom() + SPACING_SIZE)
-      aFromY = pRect.bottom() + SPACING_SIZE - aTH;
-    if (aFromY < SPACING_SIZE)
-      aFromY = SPACING_SIZE;
-    if (aFromY + aTH <= aLast) {
-      painter->drawText(aFromX, aFromY, aTW, aTH, Qt::AlignCenter, yOr);
-      aLast = aFromY - SPACING_SIZE * 2;
-    }
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-
-
-//================================================================
-// Function : GraphView::drawAxesTitle
-// Purpose  : draws axes titles
-//================================================================
-void GraphView::drawAxesTitle(QPainter* painter) {
-  if (!myShowAxesTitle)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen
-  painter->setPen(palette().color(QPalette::Text)); //QPalette::Active, 
-  QFontMetrics fm(myAxesTitleFont);
-  painter->setFont(myAxesTitleFont);
-  int aTH = fm.height();
-  int aFromX, aFromY;
-  if (!myXTitle.isEmpty()) {
-    int aTW = fm.width(myXTitle);
-    aFromX = pRect.right() - aTW/2;
-    if (aFromX + aTW + SPACING_SIZE > width())
-      aFromX = width() - aTW - SPACING_SIZE;
-    aFromY = pRect.bottom() + SPACING_SIZE;
-    if (myShowTickMarks)
-      aFromY += (aTH + SPACING_SIZE);
-    painter->drawText(aFromX, aFromY, aTW, aTH, Qt::AlignCenter, myXTitle);
-  }
-  if (!myYTitle.isEmpty()) {
-    int aTW = fm.width(myYTitle);
-    aFromX = pRect.left() - aTW/2;
-    if (aFromX < SPACING_SIZE)
-      aFromX = SPACING_SIZE;
-    aFromY = pRect.top() - aTH/2 - SPACING_SIZE - aTH;
-    painter->drawText(aFromX, aFromY, aTW, aTH, Qt::AlignCenter, myYTitle);
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-
-//================================================================
-// Function : GraphView::drawTitle
-// Purpose  : draws graph title
-//================================================================
-void GraphView::drawTitle(QPainter* painter) {
-  if (!myShowTitle)
-    return;
-  // getting painting region
-  QRect pRect = getGraphRect();
-  // setting pen
-  painter->setPen(palette().color(QPalette::Text));//QPalette::Active, 
-  QFontMetrics fm(myTitleFont);
-  painter->setFont(myTitleFont);
-  int aTH = fm.height();
-  int aFromX, aFromY;
-  if (!myTitle.isEmpty()) {
-    int aTW = fm.width(myTitle);
-    aFromX = pRect.left() + pRect.width() / 2 - aTW / 2;
-    if (aFromX + aTW + SPACING_SIZE > width())
-      aFromX = width() - aTW - SPACING_SIZE;
-    if (aFromX < SPACING_SIZE)
-      aFromX = SPACING_SIZE;
-    aFromY = SPACING_SIZE;
-    painter->drawText(aFromX, aFromY, aTW, aTH, Qt::AlignCenter, myTitle);
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-
-//================================================================
-// Function : GraphView::drawItem
-// Purpose  : draws item
-//================================================================
-void GraphView::drawItem(QPainter* painter, GraphItem* item) {
-  // checking item for validity
-  if (!item->isValid())
-    return;
-  // getting marker, type and color of line
-  int          aMarker = item->getMarker();
-  QColor       aColor  = item->getColor();
-  Qt::PenStyle aLine   = item->getLine();
-
-  // getting painting region
-  QRect pRect = getGraphRect();
-
-  // setting pen for line
-  painter->setPen(QPen(aColor, 0, aLine));
-  int i;
-  if (item->count() > 1) {
-    // drawing lines
-    painter->setClipRect(pRect);
-    painter->setClipping(true);
-    for (i = 0; i < item->count() - 1; i++) {
-      GraphNode* node1 = item->getNode(i);
-      GraphNode* node2 = item->getNode(i + 1);
-      long x1 = (long)((node1->x() - myOrigin.x()) / myXScale);
-      long y1 = (long)((node1->y() - myOrigin.y()) / myYScale);
-      x1 = pRect.left()   + x1;
-      y1 = pRect.bottom() - y1;
-      long x2 = (long)((node2->x() - myOrigin.x()) / myXScale);
-      long y2 = (long)((node2->y() - myOrigin.y()) / myYScale);
-      x2 = pRect.left()   + x2;
-      y2 = pRect.bottom() - y2;
-      if (intersects(pRect, x1, y1, x2, y2)) {
-        painter->drawLine(x1, y1, x2, y2);
-      }
-    }
-    
-  }
-
-  painter->setClipping(false);
-  // drawing markers
-  painter->save();
-  if (myShowMarkers) {
-    for (i = 0; i < item->count(); i++) {
-      GraphNode* node = item->getNode(i);
-      long x = (long)((node->x() - myOrigin.x()) / myXScale);
-      long y = (long)((node->y() - myOrigin.y()) / myYScale);
-      x = pRect.left()   + x;
-      y = pRect.bottom() - y;
-      if (pRect.contains(x, y)) {
-        drawMarker(painter, QPoint(x, y), aMarker, aColor);
-      }
-    }
-  }
-  else {
-    bool fLeft = false, fRight = false;
-    QPoint pLeft, pRight;
-    for (i = 0; i < item->count(); i++) {
-      GraphNode* node = item->getNode(i);
-      long x = (long)((node->x() - myOrigin.x()) / myXScale);
-      long y = (long)((node->y() - myOrigin.y()) / myYScale);
-      x = pRect.left()   + x;
-      y = pRect.bottom() - y;
-      if (pRect.contains(x, y)) {
-        pLeft = QPoint(x, y);
-        fLeft = true;
-        break;
-      }
-    }
-    for (i = item->count()-1; i >= 0; i--) {
-      GraphNode* node = item->getNode(i);
-      long x = (long)((node->x() - myOrigin.x()) / myXScale);
-      long y = (long)((node->y() - myOrigin.y()) / myYScale);
-      x = pRect.left()   + x;
-      y = pRect.bottom() - y;
-      if (pRect.contains(x, y)) {
-        pRight = QPoint(x, y);
-        fRight = true;
-        break;
-      }
-    }
-    if (fLeft)
-      drawMarker(painter, pLeft, aMarker, aColor);
-    if (fRight && pLeft != pRight)
-      drawMarker(painter, pRight, aMarker, aColor);
-  }
-  painter->restore();
-  // forcing immediate painting
-  //painter->flush();
-}
-
-#ifdef DEB
-//================================================================
-// Function : GraphView::drawItem
-// Purpose  : draws item
-//================================================================
-void GraphView::drawItem(QPainter* painter, 
-                         int       pxMin,
-                         int       pxMax, 
-                         int       pyMin, 
-                         int       pyMax,
-                         double    xMin, 
-                         double    xMax, 
-                         double    yMin, 
-                         double    yMax, 
-                         GraphItem* item) {
-  // checking item for validity
-  if (!item->isValid())
-    return;
-  // getting marker, type and color of line
-  int      aMarker = item->getMarker();
-  QColor   aColor  = item->getColor();
-  PenStyle aLine   = item->getLine();
-
-  int ml, mr, mt, mb;
-  getMargins(ml, mr, mt, mb);
-  // getting painting region
-  QRect pRect = QRect(QPoint(pxMin+ml, pyMin+mt), QSize(pxMax-pxMin-ml-mr, pyMax-pyMin-mt-mb));
-  double XScale = (xMax-xMin)/(pxMax-pxMin);
-  double YScale = (yMax-yMin)/(pyMax-pyMin);
-
-  // setting pen for line
-  painter->setPen(QPen(aColor, 0, aLine));
-  int i;
-  if (item->count() > 1) {
-    // drawing lines
-    painter->setClipRect(pRect);
-    painter->setClipping(true);
-    for (i = 0; i < item->count() - 1; i++) {
-      GraphNode* node1 = item->getNode(i);
-      GraphNode* node2 = item->getNode(i + 1);
-      long x1 = (long)((node1->x() - xMin) / XScale);
-      long y1 = (long)((node1->y() - yMin) / YScale);
-      x1 = pRect.left()   + x1;
-      y1 = pRect.bottom() - y1;
-      long x2 = (long)((node2->x() - xMin) / XScale);
-      long y2 = (long)((node2->y() - yMin) / YScale);
-      x2 = pRect.left()   + x2;
-      y2 = pRect.bottom() - y2;
-      if (intersects(pRect, x1, y1, x2, y2)) {
-        painter->drawLine(x1, y1, x2, y2);
-      }
-    }
-    painter->setClipping(false);
-    // drawing markers
-    painter->save();
-    if (myShowMarkers) {
-      for (i = 0; i < item->count(); i++) {
-        GraphNode* node = item->getNode(i);
-        long x = (long)((node->x() - xMin) / XScale);
-        long y = (long)((node->y() - yMin) / YScale);
-        x = pRect.left()   + x;
-        y = pRect.bottom() - y;
-        if (pRect.contains(x, y)) {
-          drawMarker(painter, QPoint(x, y), aMarker, aColor);
-        }
-      }
-    }
-    else {
-      bool fLeft = false, fRight = false;
-      QPoint pLeft, pRight;
-      for (i = 0; i < item->count(); i++) {
-        GraphNode* node = item->getNode(i);
-        long x = (long)((node->x() - xMin) / XScale);
-        long y = (long)((node->y() - yMin) / YScale);
-        x = pRect.left()   + x;
-        y = pRect.bottom() - y;
-        if (pRect.contains(x, y)) {
-          pLeft = QPoint(x, y);
-          fLeft = true;
-          break;
-        }
-      }
-      for (i = item->count()-1; i >= 0; i--) {
-        GraphNode* node = item->getNode(i);
-        long x = (long)((node->x() - xMin) / XScale);
-        long y = (long)((node->y() - yMin) / YScale);
-        x = pRect.left()   + x;
-        y = pRect.bottom() - y;
-        if (pRect.contains(x, y)) {
-          pRight = QPoint(x, y);
-          fRight = true;
-          break;
-        }
-      }
-      if (fLeft)
-        drawMarker(painter, pLeft, aMarker, aColor);
-      if (fRight && pLeft != pRight)
-        drawMarker(painter, pRight, aMarker, aColor);
-    }
-    painter->restore();
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-#endif
-
-//================================================================
-// Function : GraphView::drawMarker
-// Purpose  : draws marker at position
-//================================================================
-void GraphView::drawMarker(QPainter*     painter, 
-                           const QPoint  point, 
-                           const int     marker, 
-                           const QColor& color) {
-  if (marker < 0)
-    return;
-  // pen
-  QPen pen(color, 0, Qt::SolidLine);
-  // drawing brush
-  QBrush brush(pen.color());
-  // marker rect
-  int size = getMarkerSize();
-  QRect  mRect(QPoint(0,0), QSize(size, size));
-  mRect.moveCenter(point);
-
-  painter->setPen(pen);
-  painter->setBrush(pen.color());
-  switch(marker) {
-  case 0:  // 0 - square
-    {
-     painter->drawRect(mRect);
-    }
-    break;
-  case 1:  // 1 - circle
-    {
-     painter->drawEllipse(mRect);
-    }
-    break;
-  case 2:  // 2 - triangle (looks up)
-    {
-      QPolygon ar(3);
-      double d = sqrt(3.0);
-      double d1 = (double)size / (2 * d);
-      double d2 = (double)size * d / 3;
-      ar[0] = QPoint(point.x() - size/2, (int)((double)point.y() + d1));
-      ar[1] = QPoint(point.x(),          (int)((double)point.y() - d2));
-      ar[2] = QPoint(point.x() + size/2, (int)((double)point.y() + d1));
-      painter->drawPolygon(ar);
-    }
-    break;
-  case 3:  // 3 - triangle (looks down)
-    {
-      QPolygon ar(3);
-      double d = sqrt(3.0);
-      double d1 = (double)size / (2 * d);
-      double d2 = (double)size * d / 3;
-      ar[0] = QPoint(point.x() - size/2, (int)((double)point.y() - d1));
-      ar[1] = QPoint(point.x(),          (int)((double)point.y() + d2));
-      ar[2] = QPoint(point.x() + size/2, (int)((double)point.y() - d1));
-      painter->drawPolygon(ar);
-    }
-    break;
-  case 4:  // 4 - cross
-    {
-      painter->drawLine(mRect.left(),  mRect.top(),
-                        mRect.right(), mRect.bottom());
-      painter->drawLine(mRect.left(),  mRect.bottom(),
-                        mRect.right(), mRect.top());
-    }
-    break;
-  case 5:  // 5 - rhomb
-    {
-      QPolygon ar(4);
-      ar[0] = QPoint(point.x(), mRect.top());
-      ar[1] = QPoint(mRect.right(), point.y());
-      ar[2] = QPoint(point.x(), mRect.bottom());
-      ar[3] = QPoint(mRect.left(), point.y());
-      painter->drawPolygon(ar);
-    }
-    break;
-  case 6:  // 6 - empty square
-    {
-      painter->drawLine(mRect.left(),  mRect.top(),
-                        mRect.right(), mRect.top());
-      painter->drawLine(mRect.right(), mRect.top(),
-                        mRect.right(), mRect.bottom());
-      painter->drawLine(mRect.right(), mRect.bottom(),
-                        mRect.left(),  mRect.bottom());
-      painter->drawLine(mRect.left(),  mRect.bottom(),
-                        mRect.left(),  mRect.top());
-    }
-    break;
-  case 7:  // 7 - empty circle
-    {
-      painter->drawArc(mRect, 0, 16 * 360);
-    }
-    break;
-  case 8:  // 8 - empty rhomb
-    {
-      painter->drawLine(point.x(),     mRect.top(),
-                        mRect.right(), point.y());
-      painter->drawLine(mRect.right(), point.y(),
-                        point.x(),     mRect.bottom());
-      painter->drawLine(point.x(),     mRect.bottom(),
-                        mRect.left(),  point.y());
-      painter->drawLine(mRect.left(),  point.y(),
-                        point.x(),     mRect.top());
-    }
-    break;
-  case 9:  // 9 - empty triangle (looks up)
-    {
-      QPolygon ar(3);
-      double d = sqrt(3.0);
-      double d1 = (double)size / (2 * d);
-      double d2 = (double)size * d / 3;
-      painter->drawLine(point.x() - size/2, (int)((double)point.y() + d1), 
-                        point.x(),          (int)((double)point.y() - d2));
-      painter->drawLine(point.x(),          (int)((double)point.y() - d2), 
-                        point.x() + size/2, (int)((double)point.y() + d1));
-      painter->drawLine(point.x() + size/2, (int)((double)point.y() + d1), 
-                        point.x() - size/2, (int)((double)point.y() + d1));
-    }
-    break;
-  case 10:  // 10 - empty triangle (looks down)
-    {
-      QPolygon ar(3);
-      double d = sqrt(3.0);
-      double d1 = (double)size / (2 * d);
-      double d2 = (double)size * d / 3;
-      painter->drawLine(point.x() + size/2, (int)((double)point.y() - d1), 
-                        point.x(),          (int)((double)point.y() + d2));
-      painter->drawLine(point.x(),          (int)((double)point.y() + d2), 
-                        point.x() - size/2, (int)((double)point.y() - d1));
-      painter->drawLine(point.x() - size/2, (int)((double)point.y() - d1), 
-                        point.x() + size/2, (int)((double)point.y() - d1));
-    }
-    break;
-  default:
-    break;
-  }
-  // forcing immediate painting
-  //painter->flush();
-}
-
-//================================================================
-// Function : GraphView::getNextMarker
-// Purpose  : gets new unique marker for item if possible
-//================================================================
-void GraphView::getNextMarker(int& typeMarker, int& color, int& typeLine) {
-  static int aMarker = -1;
-  static int aColor  = -1;
-  static int aLine   = -1;
-
-  aMarker = (aMarker + 1) % getNbMarkers();
-  aColor  = (aColor  + 1) % getNbColors();
-  if (aColor == 0)
-    aColor++;
-  aLine   = (aLine   + 1) % getNbTypeLines();
-  typeMarker = aMarker;
-  color      = aColor;
-  typeLine   = aLine;
-  if (!existMarker(aMarker, aColor, aLine))
-    return;
-  int i, j, k;
-  for (i = 0; i < getNbMarkers(); i++) {
-    aMarker = (aMarker + 1) % getNbMarkers();
-    for (j = 0; j < getNbColors(); j++) {
-      aColor  = (aColor  + 1) % getNbColors();
-      if (aColor == 0)
-        aColor++;
-      for (k = 0; k < getNbTypeLines(); k++) {
-        aLine = (aLine + 1) % getNbTypeLines();
-        if (!existMarker(aMarker, aColor, aLine)) {
-          typ