1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0032232: Draw Harness - make Tk dependency optional

This commit is contained in:
kgv
2021-03-20 13:10:49 +03:00
committed by bugmaster
parent e76471b558
commit 87b68a0fd6
14 changed files with 126 additions and 122 deletions

View File

@@ -83,7 +83,6 @@
#include <Xw_Window.hxx>
#include <vtkXRenderWindowInteractor.h>
#include <vtkXOpenGLRenderWindow.h>
#include <tk.h>
#endif
#include <Standard_WarningsRestore.hxx>

View File

@@ -202,13 +202,8 @@ void IVtkDraw_Interactor::Enable()
SetWindowLongPtr(this->myWindowId, GWLP_USERDATA, (LONG_PTR)this);
SetWindowLongPtr(this->myWindowId, GWLP_WNDPROC, (LONG_PTR)WndProc);
#else
#if TCL_MAJOR_VERSION < 8
Tk_CreateFileHandler((void*)ConnectionNumber(this->myDisplayId),
TK_READABLE, ProcessEvents, (ClientData) this);
#else
Tk_CreateFileHandler(ConnectionNumber(this->myDisplayId),
TK_READABLE, ProcessEvents, (ClientData) this);
#endif
Tcl_CreateFileHandler (ConnectionNumber(this->myDisplayId),
TCL_READABLE, ProcessEvents, (ClientData) this);
#endif
this->Enabled = 1;