michaelu0826 commited on
Commit
103417b
·
verified ·
1 Parent(s): 28a48a2

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lib/cmake/OpenSSL/OpenSSLConfig.cmake +147 -0
  2. lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake +18 -0
  3. lib/cmake/expat-2.8.0/expat-config-version.cmake +65 -0
  4. lib/cmake/expat-2.8.0/expat-config.cmake +99 -0
  5. lib/cmake/expat-2.8.0/expat-release.cmake +19 -0
  6. lib/cmake/expat-2.8.0/expat.cmake +107 -0
  7. lib/cmake/liblzma/liblzma-config-version.cmake +70 -0
  8. lib/cmake/liblzma/liblzma-config.cmake +16 -0
  9. lib/cmake/liblzma/liblzma-targets-release.cmake +19 -0
  10. lib/cmake/liblzma/liblzma-targets.cmake +102 -0
  11. lib/itcl4.3.0/itcl.tcl +151 -0
  12. lib/itcl4.3.0/itclConfig.sh +67 -0
  13. lib/itcl4.3.0/itclHullCmds.tcl +562 -0
  14. lib/itcl4.3.0/itclWidget.tcl +447 -0
  15. lib/itcl4.3.0/libitclstub4.3.0.a +0 -0
  16. lib/itcl4.3.0/pkgIndex.tcl +14 -0
  17. lib/libX11-xcb.so +0 -0
  18. lib/libX11-xcb.so.1 +0 -0
  19. lib/libX11-xcb.so.1.0.0 +0 -0
  20. lib/libXau.so +0 -0
  21. lib/libXau.so.6 +0 -0
  22. lib/libXau.so.6.0.0 +0 -0
  23. lib/libXdmcp.so +0 -0
  24. lib/libXdmcp.so.6 +0 -0
  25. lib/libXdmcp.so.6.0.0 +0 -0
  26. lib/libffi.7.so +0 -0
  27. lib/libffi.8.so +0 -0
  28. lib/libffi.a +0 -0
  29. lib/libffi.so +0 -0
  30. lib/libffi.so.7 +0 -0
  31. lib/libffi.so.8 +0 -0
  32. lib/libffi.so.8.1.4 +0 -0
  33. lib/libform.so +0 -0
  34. lib/libform.so.6 +0 -0
  35. lib/libform.so.6.5 +0 -0
  36. lib/libformw.so +0 -0
  37. lib/libformw.so.6 +0 -0
  38. lib/libformw.so.6.5 +0 -0
  39. lib/libgcc_s.so +4 -0
  40. lib/libhistory.a +0 -0
  41. lib/libhistory.so +0 -0
  42. lib/libhistory.so.8 +0 -0
  43. lib/libhistory.so.8.3 +0 -0
  44. lib/libmenu.a +0 -0
  45. lib/libmenu.so +0 -0
  46. lib/libmenu.so.6 +0 -0
  47. lib/libmenu.so.6.5 +0 -0
  48. lib/libmenuw.a +0 -0
  49. lib/libmenuw.so +0 -0
  50. lib/libmenuw.so.6 +0 -0
lib/cmake/OpenSSL/OpenSSLConfig.cmake ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by OpenSSL
2
+ #
3
+
4
+ # Commands may need to know the format version.
5
+ set(CMAKE_IMPORT_FILE_VERSION 1)
6
+
7
+ # Avoid duplicate find_package()
8
+ set(_ossl_expected_targets OpenSSL::Crypto OpenSSL::SSL
9
+ )
10
+ set(_ossl_defined_targets)
11
+ set(_ossl_undefined_targets)
12
+ foreach(t IN LISTS _ossl_expected_targets)
13
+ if(TARGET "${t}")
14
+ LIST(APPEND _ossl_defined_targets "${t}")
15
+ else()
16
+ LIST(APPEND _ossl_undefined_targets "${t}")
17
+ endif()
18
+ endforeach()
19
+ message(DEBUG "_ossl_expected_targets = ${_ossl_expected_targets}")
20
+ message(DEBUG "_ossl_defined_targets = ${_ossl_defined_targets}")
21
+ message(DEBUG "_ossl_undefined_targets = ${_ossl_undefined_targets}")
22
+ if(NOT _ossl_undefined_targets)
23
+ # All targets are defined, we're good, just undo everything and return
24
+ unset(_ossl_expected_targets)
25
+ unset(_ossl_defined_targets)
26
+ unset(_ossl_undefined_targets)
27
+ unset(CMAKE_IMPORT_FILE_VERSION)
28
+ return()
29
+ endif()
30
+ if(_ossl_defined_targets)
31
+ # We have a mix of defined and undefined targets. This is hard to reconcile,
32
+ # and probably the result of another config, or FindOpenSSL.cmake having been
33
+ # called, or whatever. Therefore, the best course of action is to quit with a
34
+ # hard error.
35
+ message(FATAL_ERROR "Some targets defined, others not:\nNot defined: ${_ossl_undefined_targets}\nDefined: ${_ossl_defined_targets}")
36
+ endif()
37
+ unset(_ossl_expected_targets)
38
+ unset(_ossl_defined_targets)
39
+ unset(_ossl_undefined_targets)
40
+
41
+
42
+ # Set up the import path, so all other import paths are made relative this file
43
+ get_filename_component(_ossl_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH)
44
+ get_filename_component(_ossl_prefix "${_ossl_prefix}" PATH)
45
+ get_filename_component(_ossl_prefix "${_ossl_prefix}" PATH)
46
+ get_filename_component(_ossl_prefix "${_ossl_prefix}" PATH)
47
+
48
+ if(_ossl_prefix STREQUAL "/")
49
+ set(_ossl_prefix "")
50
+ endif()
51
+
52
+
53
+ if(OPENSSL_USE_STATIC_LIBS)
54
+ set(_ossl_use_static_libs True)
55
+ elseif(DEFINED OPENSSL_USE_STATIC_LIBS)
56
+ # We know OPENSSL_USE_STATIC_LIBS is defined and False
57
+ if(_ossl_use_static_libs)
58
+ # OPENSSL_USE_STATIC_LIBS is explicitly false, indicating that shared libraries are
59
+ # required. However, _ossl_use_static_libs indicates that no shared libraries are
60
+ # available. The best course of action is to simply return and leave it to CMake to
61
+ # use another OpenSSL config.
62
+ unset(_ossl_use_static_libs)
63
+ unset(CMAKE_IMPORT_FILE_VERSION)
64
+ return()
65
+ endif()
66
+ endif()
67
+
68
+ # Version, copied from what find_package() gives, for compatibility with FindOpenSSL.cmake
69
+ set(OPENSSL_VERSION "${OpenSSL_VERSION}")
70
+ set(OPENSSL_VERSION_MAJOR "${OpenSSL_VERSION_MAJOR}")
71
+ set(OPENSSL_VERSION_MINOR "${OpenSSL_VERSION_MINOR}")
72
+ set(OPENSSL_VERSION_FIX "${OpenSSL_VERSION_PATCH}")
73
+ set(OPENSSL_FOUND YES)
74
+
75
+ # Directories and names
76
+ set(OPENSSL_LIBRARY_DIR "${_ossl_prefix}/lib")
77
+ set(OPENSSL_INCLUDE_DIR "${_ossl_prefix}/include")
78
+ set(OPENSSL_ENGINES_DIR "${_ossl_prefix}/lib/engines-3")
79
+ set(OPENSSL_MODULES_DIR "${_ossl_prefix}/lib/ossl-modules")
80
+ set(OPENSSL_RUNTIME_DIR "${_ossl_prefix}/bin")
81
+
82
+ set(OPENSSL_PROGRAM "${OPENSSL_RUNTIME_DIR}/openssl")
83
+
84
+ # Set up the imported targets
85
+ if(_ossl_use_static_libs)
86
+
87
+ add_library(OpenSSL::Crypto STATIC IMPORTED)
88
+ add_library(OpenSSL::SSL STATIC IMPORTED)
89
+
90
+ set(OPENSSL_LIBCRYPTO_STATIC "${OPENSSL_LIBRARY_DIR}/libcrypto.a")
91
+ set(OPENSSL_LIBCRYPTO_DEPENDENCIES -ldl -pthread)
92
+ set_target_properties(OpenSSL::Crypto PROPERTIES
93
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
94
+ IMPORTED_LOCATION ${OPENSSL_LIBCRYPTO_STATIC})
95
+ set_property(TARGET OpenSSL::Crypto
96
+ PROPERTY INTERFACE_LINK_LIBRARIES ${OPENSSL_LIBCRYPTO_DEPENDENCIES})
97
+
98
+ set(OPENSSL_LIBSSL_STATIC "${OPENSSL_LIBRARY_DIR}/libssl.a")
99
+ set(OPENSSL_LIBSSL_DEPENDENCIES OpenSSL::Crypto)
100
+ set_target_properties(OpenSSL::SSL PROPERTIES
101
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
102
+ IMPORTED_LOCATION ${OPENSSL_LIBSSL_STATIC})
103
+ set_property(TARGET OpenSSL::SSL
104
+ PROPERTY INTERFACE_LINK_LIBRARIES ${OPENSSL_LIBSSL_DEPENDENCIES})
105
+
106
+ # Directories and names compatible with CMake's FindOpenSSL.cmake
107
+ set(OPENSSL_CRYPTO_LIBRARY ${OPENSSL_LIBCRYPTO_STATIC})
108
+ set(OPENSSL_CRYPTO_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_LIBCRYPTO_DEPENDENCIES})
109
+ set(OPENSSL_SSL_LIBRARY ${OPENSSL_LIBSSL_STATIC})
110
+ set(OPENSSL_SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_LIBSSL_DEPENDENCIES})
111
+ set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_LIBSSL_DEPENDENCIES} ${OPENSSL_LIBCRYPTO_DEPENDENCIES})
112
+
113
+ else()
114
+
115
+ add_library(OpenSSL::Crypto SHARED IMPORTED)
116
+ add_library(OpenSSL::SSL SHARED IMPORTED)
117
+
118
+ # Dependencies are assumed to be implied in the shared libraries
119
+ set(OPENSSL_LIBCRYPTO_SHARED "${OPENSSL_LIBRARY_DIR}/libcrypto.so")
120
+ set_target_properties(OpenSSL::Crypto PROPERTIES
121
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
122
+ IMPORTED_LOCATION ${OPENSSL_LIBCRYPTO_SHARED})
123
+
124
+ set(OPENSSL_LIBSSL_SHARED "${OPENSSL_LIBRARY_DIR}/libssl.so")
125
+ set_target_properties(OpenSSL::SSL PROPERTIES
126
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
127
+ IMPORTED_LOCATION ${OPENSSL_LIBSSL_SHARED})
128
+
129
+ # Directories and names compatible with CMake's FindOpenSSL.cmake
130
+ set(OPENSSL_CRYPTO_LIBRARY ${OPENSSL_LIBCRYPTO_SHARED})
131
+ set(OPENSSL_CRYPTO_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
132
+ set(OPENSSL_SSL_LIBRARY ${OPENSSL_LIBSSL_SHARED})
133
+ set(OPENSSL_SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY})
134
+ set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARIES})
135
+
136
+
137
+ endif()
138
+
139
+ set_target_properties(OpenSSL::Crypto PROPERTIES
140
+ INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}")
141
+ set_target_properties(OpenSSL::SSL PROPERTIES
142
+ INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}")
143
+
144
+
145
+
146
+ unset(_ossl_prefix)
147
+ unset(_ossl_use_static_libs)
lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by OpenSSL
2
+ #
3
+
4
+ set(PACKAGE_VERSION 3.5.6)
5
+
6
+ if(NOT PACKAGE_FIND_VERSION)
7
+ # find_package() was called without any version information. This is assumed to
8
+ # mean that the caller accepts whatever they get.
9
+ set(PACKAGE_VERSION_COMPATIBLE 1)
10
+ elseif(PACKAGE_FIND_VERSION_MAJOR LESS 3
11
+ OR PACKAGE_FIND_VERSION VERSION_GREATER 3.5.6)
12
+ set(PACKAGE_VERSION_UNSUITABLE 1)
13
+ else()
14
+ set(PACKAGE_VERSION_COMPATIBLE 1)
15
+ if(PACKAGE_FIND_VERSION VERSION_EQUAL 3.5.6)
16
+ set(PACKAGE_VERSION_EXACT 1)
17
+ endif()
18
+ endif()
lib/cmake/expat-2.8.0/expat-config-version.cmake ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic version file for the Config-mode of find_package().
2
+ # It is used by write_basic_package_version_file() as input file for configure_file()
3
+ # to create a version-file which can be installed along a config.cmake file.
4
+ #
5
+ # The created file sets PACKAGE_VERSION_EXACT if the current version string and
6
+ # the requested version string are exactly the same and it sets
7
+ # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
8
+ # but only if the requested major version is the same as the current one.
9
+ # The variable CVF_VERSION must be set before calling configure_file().
10
+
11
+
12
+ set(PACKAGE_VERSION "2.8.0")
13
+
14
+ if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
+ else()
17
+
18
+ if("2.8.0" MATCHES "^([0-9]+)\\.")
19
+ set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
+ if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
+ endif()
23
+ else()
24
+ set(CVF_VERSION_MAJOR "2.8.0")
25
+ endif()
26
+
27
+ if(PACKAGE_FIND_VERSION_RANGE)
28
+ # both endpoints of the range must have the expected major version
29
+ math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
30
+ if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
31
+ OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
32
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
33
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
34
+ elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
35
+ AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
36
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
37
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
38
+ else()
39
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
40
+ endif()
41
+ else()
42
+ if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
43
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
44
+ else()
45
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
46
+ endif()
47
+
48
+ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
49
+ set(PACKAGE_VERSION_EXACT TRUE)
50
+ endif()
51
+ endif()
52
+ endif()
53
+
54
+
55
+ # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
56
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
57
+ return()
58
+ endif()
59
+
60
+ # check that the installed version has the same 32/64bit-ness as the one which is currently searching:
61
+ if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
62
+ math(EXPR installedBits "8 * 8")
63
+ set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
64
+ set(PACKAGE_VERSION_UNSUITABLE TRUE)
65
+ endif()
lib/cmake/expat-2.8.0/expat-config.cmake ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # __ __ _
2
+ # ___\ \/ /_ __ __ _| |_
3
+ # / _ \\ /| '_ \ / _` | __|
4
+ # | __// \| |_) | (_| | |_
5
+ # \___/_/\_\ .__/ \__,_|\__|
6
+ # |_| XML parser
7
+ #
8
+ # Copyright (c) 2019 Expat development team
9
+ # Licensed under the MIT license:
10
+ #
11
+ # Permission is hereby granted, free of charge, to any person obtaining
12
+ # a copy of this software and associated documentation files (the
13
+ # "Software"), to deal in the Software without restriction, including
14
+ # without limitation the rights to use, copy, modify, merge, publish,
15
+ # distribute, sublicense, and/or sell copies of the Software, and to permit
16
+ # persons to whom the Software is furnished to do so, subject to the
17
+ # following conditions:
18
+ #
19
+ # The above copyright notice and this permission notice shall be included
20
+ # in all copies or substantial portions of the Software.
21
+ #
22
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
25
+ # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26
+ # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
27
+ # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
28
+ # USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+ #
30
+ if(NOT _expat_config_included)
31
+ # Protect against multiple inclusion
32
+ set(_expat_config_included TRUE)
33
+
34
+
35
+ include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake")
36
+
37
+
38
+ ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
39
+ ####### Any changes to this file will be overwritten by the next CMake run ####
40
+ ####### The input file was expat-config.cmake.in ########
41
+
42
+ get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
43
+
44
+ macro(set_and_check _var _file)
45
+ set(${_var} "${_file}")
46
+ if(NOT EXISTS "${_file}")
47
+ message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
48
+ endif()
49
+ endmacro()
50
+
51
+ macro(check_required_components _NAME)
52
+ foreach(comp ${${_NAME}_FIND_COMPONENTS})
53
+ if(NOT ${_NAME}_${comp}_FOUND)
54
+ if(${_NAME}_FIND_REQUIRED_${comp})
55
+ set(${_NAME}_FOUND FALSE)
56
+ endif()
57
+ endif()
58
+ endforeach()
59
+ endmacro()
60
+
61
+ ####################################################################################
62
+
63
+ #
64
+ # Supported components
65
+ #
66
+ macro(expat_register_component _NAME _AVAILABE)
67
+ set(expat_${_NAME}_FOUND ${_AVAILABE})
68
+ endmacro()
69
+
70
+ expat_register_component(attr_info OFF)
71
+ expat_register_component(dtd ON)
72
+ expat_register_component(large_size OFF)
73
+ expat_register_component(min_size OFF)
74
+ expat_register_component(ns ON)
75
+
76
+ if(1024)
77
+ expat_register_component(context_bytes ON)
78
+ else()
79
+ expat_register_component(context_bytes OFF)
80
+ endif()
81
+
82
+ if("char" STREQUAL "char")
83
+ expat_register_component(char ON)
84
+ expat_register_component(ushort OFF)
85
+ expat_register_component(wchar_t OFF)
86
+ elseif("char" STREQUAL "ushort")
87
+ expat_register_component(char OFF)
88
+ expat_register_component(ushort ON)
89
+ expat_register_component(wchar_t OFF)
90
+ elseif("char" STREQUAL "wchar_t")
91
+ expat_register_component(char OFF)
92
+ expat_register_component(ushort OFF)
93
+ expat_register_component(wchar_t ON)
94
+ endif()
95
+
96
+ check_required_components(expat)
97
+
98
+
99
+ endif(NOT _expat_config_included)
lib/cmake/expat-2.8.0/expat-release.cmake ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #----------------------------------------------------------------
2
+ # Generated CMake target import file for configuration "Release".
3
+ #----------------------------------------------------------------
4
+
5
+ # Commands may need to know the format version.
6
+ set(CMAKE_IMPORT_FILE_VERSION 1)
7
+
8
+ # Import target "expat::expat" for configuration "Release"
9
+ set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
10
+ set_target_properties(expat::expat PROPERTIES
11
+ IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libexpat.so.1.12.0"
12
+ IMPORTED_SONAME_RELEASE "libexpat.so.1"
13
+ )
14
+
15
+ list(APPEND _cmake_import_check_targets expat::expat )
16
+ list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/lib/libexpat.so.1.12.0" )
17
+
18
+ # Commands beyond this point should not need to know the version.
19
+ set(CMAKE_IMPORT_FILE_VERSION)
lib/cmake/expat-2.8.0/expat.cmake ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by CMake
2
+
3
+ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
4
+ message(FATAL_ERROR "CMake >= 2.8.12 required")
5
+ endif()
6
+ if(CMAKE_VERSION VERSION_LESS "2.8.12")
7
+ message(FATAL_ERROR "CMake >= 2.8.12 required")
8
+ endif()
9
+ cmake_policy(PUSH)
10
+ cmake_policy(VERSION 2.8.12...4.0)
11
+ #----------------------------------------------------------------
12
+ # Generated CMake target import file.
13
+ #----------------------------------------------------------------
14
+
15
+ # Commands may need to know the format version.
16
+ set(CMAKE_IMPORT_FILE_VERSION 1)
17
+
18
+ # Protect against multiple inclusion, which would fail when already imported targets are added once more.
19
+ set(_cmake_targets_defined "")
20
+ set(_cmake_targets_not_defined "")
21
+ set(_cmake_expected_targets "")
22
+ foreach(_cmake_expected_target IN ITEMS expat::expat)
23
+ list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
24
+ if(TARGET "${_cmake_expected_target}")
25
+ list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
26
+ else()
27
+ list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
28
+ endif()
29
+ endforeach()
30
+ unset(_cmake_expected_target)
31
+ if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
32
+ unset(_cmake_targets_defined)
33
+ unset(_cmake_targets_not_defined)
34
+ unset(_cmake_expected_targets)
35
+ unset(CMAKE_IMPORT_FILE_VERSION)
36
+ cmake_policy(POP)
37
+ return()
38
+ endif()
39
+ if(NOT _cmake_targets_defined STREQUAL "")
40
+ string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
41
+ string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
42
+ message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
43
+ endif()
44
+ unset(_cmake_targets_defined)
45
+ unset(_cmake_targets_not_defined)
46
+ unset(_cmake_expected_targets)
47
+
48
+
49
+ # Compute the installation prefix relative to this file.
50
+ get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
51
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
52
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
53
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
54
+ if(_IMPORT_PREFIX STREQUAL "/")
55
+ set(_IMPORT_PREFIX "")
56
+ endif()
57
+
58
+ # Create imported target expat::expat
59
+ add_library(expat::expat SHARED IMPORTED)
60
+
61
+ set_target_properties(expat::expat PROPERTIES
62
+ INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
63
+ INTERFACE_LINK_LIBRARIES "m"
64
+ )
65
+
66
+ # Load information for each installed configuration.
67
+ file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/expat-*.cmake")
68
+ foreach(_cmake_config_file IN LISTS _cmake_config_files)
69
+ include("${_cmake_config_file}")
70
+ endforeach()
71
+ unset(_cmake_config_file)
72
+ unset(_cmake_config_files)
73
+
74
+ # Cleanup temporary variables.
75
+ set(_IMPORT_PREFIX)
76
+
77
+ # Loop over all imported files and verify that they actually exist
78
+ foreach(_cmake_target IN LISTS _cmake_import_check_targets)
79
+ if(CMAKE_VERSION VERSION_LESS "3.28"
80
+ OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
81
+ OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
82
+ foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
83
+ if(NOT EXISTS "${_cmake_file}")
84
+ message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
85
+ \"${_cmake_file}\"
86
+ but this file does not exist. Possible reasons include:
87
+ * The file was deleted, renamed, or moved to another location.
88
+ * An install or uninstall procedure did not complete successfully.
89
+ * The installation package was faulty and contained
90
+ \"${CMAKE_CURRENT_LIST_FILE}\"
91
+ but not all the files it references.
92
+ ")
93
+ endif()
94
+ endforeach()
95
+ endif()
96
+ unset(_cmake_file)
97
+ unset("_cmake_import_check_files_for_${_cmake_target}")
98
+ endforeach()
99
+ unset(_cmake_target)
100
+ unset(_cmake_import_check_targets)
101
+
102
+ # This file does not depend on other imported targets which have
103
+ # been exported from the same project but in a separate export set.
104
+
105
+ # Commands beyond this point should not need to know the version.
106
+ set(CMAKE_IMPORT_FILE_VERSION)
107
+ cmake_policy(POP)
lib/cmake/liblzma/liblzma-config-version.cmake ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic version file for the Config-mode of find_package().
2
+ # It is used by write_basic_package_version_file() as input file for configure_file()
3
+ # to create a version-file which can be installed along a config.cmake file.
4
+ #
5
+ # The created file sets PACKAGE_VERSION_EXACT if the current version string and
6
+ # the requested version string are exactly the same and it sets
7
+ # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
8
+ # but only if the requested major version is the same as the current one.
9
+ # The variable CVF_VERSION must be set before calling configure_file().
10
+
11
+
12
+ set(PACKAGE_VERSION "5.8.2")
13
+
14
+ if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
+ else()
17
+
18
+ if("5.8.2" MATCHES "^([0-9]+)\\.")
19
+ set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
+ if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
+ endif()
23
+ else()
24
+ set(CVF_VERSION_MAJOR "5.8.2")
25
+ endif()
26
+
27
+ if(PACKAGE_FIND_VERSION_RANGE)
28
+ # both endpoints of the range must have the expected major version
29
+ math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
30
+ if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
31
+ OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
32
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
33
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
34
+ elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
35
+ AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
36
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
37
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
38
+ else()
39
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
40
+ endif()
41
+ else()
42
+ if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
43
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
44
+ else()
45
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
46
+ endif()
47
+
48
+ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
49
+ set(PACKAGE_VERSION_EXACT TRUE)
50
+ endif()
51
+ endif()
52
+ endif()
53
+
54
+
55
+ # if the installed project requested no architecture check, don't perform the check
56
+ if("FALSE")
57
+ return()
58
+ endif()
59
+
60
+ # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
61
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
62
+ return()
63
+ endif()
64
+
65
+ # check that the installed version has the same 32/64bit-ness as the one which is currently searching:
66
+ if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
67
+ math(EXPR installedBits "8 * 8")
68
+ set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
69
+ set(PACKAGE_VERSION_UNSUITABLE TRUE)
70
+ endif()
lib/cmake/liblzma/liblzma-config.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ include(CMakeFindDependencyMacro)
2
+ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
3
+ find_dependency(Threads)
4
+
5
+ include("${CMAKE_CURRENT_LIST_DIR}/liblzma-targets.cmake")
6
+
7
+ if(NOT TARGET LibLZMA::LibLZMA)
8
+ # Be compatible with the spelling used by the FindLibLZMA module. This
9
+ # doesn't use ALIAS because it would make CMake resolve LibLZMA::LibLZMA
10
+ # to liblzma::liblzma instead of keeping the original spelling. Keeping
11
+ # the original spelling is important for good FindLibLZMA compatibility.
12
+ add_library(LibLZMA::LibLZMA INTERFACE IMPORTED)
13
+ set_target_properties(LibLZMA::LibLZMA PROPERTIES
14
+ INTERFACE_LINK_LIBRARIES liblzma::liblzma)
15
+ endif()
16
+
lib/cmake/liblzma/liblzma-targets-release.cmake ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #----------------------------------------------------------------
2
+ # Generated CMake target import file for configuration "Release".
3
+ #----------------------------------------------------------------
4
+
5
+ # Commands may need to know the format version.
6
+ set(CMAKE_IMPORT_FILE_VERSION 1)
7
+
8
+ # Import target "liblzma::liblzma" for configuration "Release"
9
+ set_property(TARGET liblzma::liblzma APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
10
+ set_target_properties(liblzma::liblzma PROPERTIES
11
+ IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/liblzma.so.5.8.2"
12
+ IMPORTED_SONAME_RELEASE "liblzma.so.5"
13
+ )
14
+
15
+ list(APPEND _cmake_import_check_targets liblzma::liblzma )
16
+ list(APPEND _cmake_import_check_files_for_liblzma::liblzma "${_IMPORT_PREFIX}/lib/liblzma.so.5.8.2" )
17
+
18
+ # Commands beyond this point should not need to know the version.
19
+ set(CMAKE_IMPORT_FILE_VERSION)
lib/cmake/liblzma/liblzma-targets.cmake ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Generated by CMake
2
+
3
+ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
4
+ message(FATAL_ERROR "CMake >= 2.8.0 required")
5
+ endif()
6
+ if(CMAKE_VERSION VERSION_LESS "2.8.3")
7
+ message(FATAL_ERROR "CMake >= 2.8.3 required")
8
+ endif()
9
+ cmake_policy(PUSH)
10
+ cmake_policy(VERSION 2.8.3...3.23)
11
+ #----------------------------------------------------------------
12
+ # Generated CMake target import file.
13
+ #----------------------------------------------------------------
14
+
15
+ # Commands may need to know the format version.
16
+ set(CMAKE_IMPORT_FILE_VERSION 1)
17
+
18
+ # Protect against multiple inclusion, which would fail when already imported targets are added once more.
19
+ set(_cmake_targets_defined "")
20
+ set(_cmake_targets_not_defined "")
21
+ set(_cmake_expected_targets "")
22
+ foreach(_cmake_expected_target IN ITEMS liblzma::liblzma)
23
+ list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
24
+ if(TARGET "${_cmake_expected_target}")
25
+ list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
26
+ else()
27
+ list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
28
+ endif()
29
+ endforeach()
30
+ unset(_cmake_expected_target)
31
+ if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
32
+ unset(_cmake_targets_defined)
33
+ unset(_cmake_targets_not_defined)
34
+ unset(_cmake_expected_targets)
35
+ unset(CMAKE_IMPORT_FILE_VERSION)
36
+ cmake_policy(POP)
37
+ return()
38
+ endif()
39
+ if(NOT _cmake_targets_defined STREQUAL "")
40
+ string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
41
+ string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
42
+ message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
43
+ endif()
44
+ unset(_cmake_targets_defined)
45
+ unset(_cmake_targets_not_defined)
46
+ unset(_cmake_expected_targets)
47
+
48
+
49
+ # Compute the installation prefix relative to this file.
50
+ get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
51
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
52
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
53
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
54
+ if(_IMPORT_PREFIX STREQUAL "/")
55
+ set(_IMPORT_PREFIX "")
56
+ endif()
57
+
58
+ # Create imported target liblzma::liblzma
59
+ add_library(liblzma::liblzma SHARED IMPORTED)
60
+
61
+ set_target_properties(liblzma::liblzma PROPERTIES
62
+ INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
63
+ )
64
+
65
+ # Load information for each installed configuration.
66
+ file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/liblzma-targets-*.cmake")
67
+ foreach(_cmake_config_file IN LISTS _cmake_config_files)
68
+ include("${_cmake_config_file}")
69
+ endforeach()
70
+ unset(_cmake_config_file)
71
+ unset(_cmake_config_files)
72
+
73
+ # Cleanup temporary variables.
74
+ set(_IMPORT_PREFIX)
75
+
76
+ # Loop over all imported files and verify that they actually exist
77
+ foreach(_cmake_target IN LISTS _cmake_import_check_targets)
78
+ foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
79
+ if(NOT EXISTS "${_cmake_file}")
80
+ message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
81
+ \"${_cmake_file}\"
82
+ but this file does not exist. Possible reasons include:
83
+ * The file was deleted, renamed, or moved to another location.
84
+ * An install or uninstall procedure did not complete successfully.
85
+ * The installation package was faulty and contained
86
+ \"${CMAKE_CURRENT_LIST_FILE}\"
87
+ but not all the files it references.
88
+ ")
89
+ endif()
90
+ endforeach()
91
+ unset(_cmake_file)
92
+ unset("_cmake_import_check_files_for_${_cmake_target}")
93
+ endforeach()
94
+ unset(_cmake_target)
95
+ unset(_cmake_import_check_targets)
96
+
97
+ # This file does not depend on other imported targets which have
98
+ # been exported from the same project but in a separate export set.
99
+
100
+ # Commands beyond this point should not need to know the version.
101
+ set(CMAKE_IMPORT_FILE_VERSION)
102
+ cmake_policy(POP)
lib/itcl4.3.0/itcl.tcl ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # itcl.tcl
3
+ # ----------------------------------------------------------------------
4
+ # Invoked automatically upon startup to customize the interpreter
5
+ # for [incr Tcl].
6
+ # ----------------------------------------------------------------------
7
+ # AUTHOR: Michael J. McLennan
8
+ # Bell Labs Innovations for Lucent Technologies
9
+ # mmclennan@lucent.com
10
+ # http://www.tcltk.com/itcl
11
+ # ----------------------------------------------------------------------
12
+ # Copyright (c) 1993-1998 Lucent Technologies, Inc.
13
+ # ======================================================================
14
+ # See the file "license.terms" for information on usage and
15
+ # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
+
17
+ proc ::itcl::delete_helper { name args } {
18
+ ::itcl::delete object $name
19
+ }
20
+
21
+ # ----------------------------------------------------------------------
22
+ # USAGE: local <className> <objName> ?<arg> <arg>...?
23
+ #
24
+ # Creates a new object called <objName> in class <className>, passing
25
+ # the remaining <arg>'s to the constructor. Unlike the usual
26
+ # [incr Tcl] objects, however, an object created by this procedure
27
+ # will be automatically deleted when the local call frame is destroyed.
28
+ # This command is useful for creating objects that should only remain
29
+ # alive until a procedure exits.
30
+ # ----------------------------------------------------------------------
31
+ proc ::itcl::local {class name args} {
32
+ set ptr [uplevel [list $class $name] $args]
33
+ uplevel [list set itcl-local-$ptr $ptr]
34
+ set cmd [uplevel namespace which -command $ptr]
35
+ uplevel [list trace add variable itcl-local-$ptr unset \
36
+ "::itcl::delete_helper $cmd"]
37
+ return $ptr
38
+ }
39
+
40
+ # ----------------------------------------------------------------------
41
+ # auto_mkindex
42
+ # ----------------------------------------------------------------------
43
+ # Define Itcl commands that will be recognized by the auto_mkindex
44
+ # parser in Tcl...
45
+ #
46
+
47
+ #
48
+ # USAGE: itcl::class name body
49
+ # Adds an entry for the given class declaration.
50
+ #
51
+ foreach __cmd {itcl::class class itcl::type type ictl::widget widget itcl::widgetadaptor widgetadaptor itcl::extendedclass extendedclass} {
52
+ auto_mkindex_parser::command $__cmd {name body} {
53
+ variable index
54
+ variable scriptFile
55
+ append index "set [list auto_index([fullname $name])]"
56
+ append index " \[list source -encoding utf-8 \[file join \$dir [list $scriptFile]\]\]\n"
57
+
58
+ variable parser
59
+ variable contextStack
60
+ set contextStack [linsert $contextStack 0 $name]
61
+ $parser eval $body
62
+ set contextStack [lrange $contextStack 1 end]
63
+ }
64
+ }
65
+
66
+ #
67
+ # USAGE: itcl::body name arglist body
68
+ # Adds an entry for the given method/proc body.
69
+ #
70
+ foreach __cmd {itcl::body body} {
71
+ auto_mkindex_parser::command $__cmd {name arglist body} {
72
+ variable index
73
+ variable scriptFile
74
+ append index "set [list auto_index([fullname $name])]"
75
+ append index " \[list source -encoding utf-8 \[file join \$dir [list $scriptFile]\]\]\n"
76
+ }
77
+ }
78
+
79
+ #
80
+ # USAGE: itcl::configbody name arglist body
81
+ # Adds an entry for the given method/proc body.
82
+ #
83
+ foreach __cmd {itcl::configbody configbody} {
84
+ auto_mkindex_parser::command $__cmd {name body} {
85
+ variable index
86
+ variable scriptFile
87
+ append index "set [list auto_index([fullname $name])]"
88
+ append index " \[list source -encoding utf-8 \[file join \$dir [list $scriptFile]\]\]\n"
89
+ }
90
+ }
91
+
92
+ #
93
+ # USAGE: ensemble name ?body?
94
+ # Adds an entry to the auto index list for the given ensemble name.
95
+ #
96
+ foreach __cmd {itcl::ensemble ensemble} {
97
+ auto_mkindex_parser::command $__cmd {name {body ""}} {
98
+ variable index
99
+ variable scriptFile
100
+ append index "set [list auto_index([fullname $name])]"
101
+ append index " \[list source -encoding utf-8 \[file join \$dir [list $scriptFile]\]\]\n"
102
+ }
103
+ }
104
+
105
+ #
106
+ # USAGE: public arg ?arg arg...?
107
+ # protected arg ?arg arg...?
108
+ # private arg ?arg arg...?
109
+ #
110
+ # Evaluates the arguments as commands, so we can recognize proc
111
+ # declarations within classes.
112
+ #
113
+ foreach __cmd {public protected private} {
114
+ auto_mkindex_parser::command $__cmd {args} {
115
+ variable parser
116
+ $parser eval $args
117
+ }
118
+ }
119
+
120
+ # SF bug #246 unset variable __cmd to avoid problems in user programs!!
121
+ unset __cmd
122
+
123
+ # ----------------------------------------------------------------------
124
+ # auto_import
125
+ # ----------------------------------------------------------------------
126
+ # This procedure overrides the usual "auto_import" function in the
127
+ # Tcl library. It is invoked during "namespace import" to make see
128
+ # if the imported commands reside in an autoloaded library. If so,
129
+ # stubs are created to represent the commands. Executing a stub
130
+ # later on causes the real implementation to be autoloaded.
131
+ #
132
+ # Arguments -
133
+ # pattern The pattern of commands being imported (like "foo::*")
134
+ # a canonical namespace as returned by [namespace current]
135
+
136
+ proc auto_import {pattern} {
137
+ global auto_index
138
+
139
+ set ns [uplevel namespace current]
140
+ set patternList [auto_qualify $pattern $ns]
141
+
142
+ auto_load_index
143
+
144
+ foreach pattern $patternList {
145
+ foreach name [array names auto_index $pattern] {
146
+ if {"" == [info commands $name]} {
147
+ ::itcl::import::stub create $name
148
+ }
149
+ }
150
+ }
151
+ }
lib/itcl4.3.0/itclConfig.sh ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # itclConfig.sh --
2
+ #
3
+ # This shell script (for sh) is generated automatically by Itcl's
4
+ # configure script. It will create shell variables for most of
5
+ # the configuration options discovered by the configure script.
6
+ # This script is intended to be included by the configure scripts
7
+ # for Itcl extensions so that they don't have to figure this all
8
+ # out for themselves. This file does not duplicate information
9
+ # already provided by tclConfig.sh, so you may need to use that
10
+ # file in addition to this one.
11
+ #
12
+ # The information in this file is specific to a single platform.
13
+
14
+ # Itcl's version number.
15
+ itcl_VERSION='4.3.0'
16
+ ITCL_VERSION='4.3.0'
17
+
18
+ # The name of the Itcl library (may be either a .a file or a shared library):
19
+ itcl_LIB_FILE=libitcl4.3.0.so
20
+ ITCL_LIB_FILE=libitcl4.3.0.so
21
+
22
+ # String to pass to linker to pick up the Itcl library from its
23
+ # build directory.
24
+ itcl_BUILD_LIB_SPEC='-L/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0 -litcl4.3.0'
25
+ ITCL_BUILD_LIB_SPEC='-L/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0 -litcl4.3.0'
26
+
27
+ # String to pass to linker to pick up the Itcl library from its
28
+ # installed directory.
29
+ itcl_LIB_SPEC='-L/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0 -litcl4.3.0'
30
+ ITCL_LIB_SPEC='-L/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0 -litcl4.3.0'
31
+
32
+ # The name of the Itcl stub library (a .a file):
33
+ itcl_STUB_LIB_FILE=libitclstub4.3.0.a
34
+ ITCL_STUB_LIB_FILE=libitclstub4.3.0.a
35
+
36
+ # String to pass to linker to pick up the Itcl stub library from its
37
+ # build directory.
38
+ itcl_BUILD_STUB_LIB_SPEC='-L/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0 -litclstub4.3.0'
39
+ ITCL_BUILD_STUB_LIB_SPEC='-L/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0 -litclstub4.3.0'
40
+
41
+ # String to pass to linker to pick up the Itcl stub library from its
42
+ # installed directory.
43
+ itcl_STUB_LIB_SPEC='-L/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0 -litclstub4.3.0'
44
+ ITCL_STUB_LIB_SPEC='-L/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0 -litclstub4.3.0'
45
+
46
+ # String to pass to linker to pick up the Itcl stub library from its
47
+ # build directory.
48
+ itcl_BUILD_STUB_LIB_PATH='/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0/libitclstub4.3.0.a'
49
+ ITCL_BUILD_STUB_LIB_PATH='/croot/tk_1755243777296/work/tcl8.6.15/unix/pkgs/itcl4.3.0/libitclstub4.3.0.a'
50
+
51
+ # String to pass to linker to pick up the Itcl stub library from its
52
+ # installed directory.
53
+ itcl_STUB_LIB_PATH='/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0/libitclstub4.3.0.a'
54
+ ITCL_STUB_LIB_PATH='/usr/local/miniconda3/envs/phantom/lib/itcl4.3.0/libitclstub4.3.0.a'
55
+
56
+ # Location of the top-level source directories from which [incr Tcl]
57
+ # was built. This is the directory that contains generic, unix, etc.
58
+ # If [incr Tcl] was compiled in a different place than the directory
59
+ # containing the source files, this points to the location of the sources,
60
+ # not the location where [incr Tcl] was compiled.
61
+ itcl_SRC_DIR='/croot/tk_1755243777296/work/tcl8.6.15/pkgs/itcl4.3.0'
62
+ ITCL_SRC_DIR='/croot/tk_1755243777296/work/tcl8.6.15/pkgs/itcl4.3.0'
63
+
64
+ # String to pass to the compiler so that an extension can
65
+ # find installed Itcl headers.
66
+ itcl_INCLUDE_SPEC=''
67
+ ITCL_INCLUDE_SPEC=''
lib/itcl4.3.0/itclHullCmds.tcl ADDED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # itclHullCmds.tcl
3
+ # ----------------------------------------------------------------------
4
+ # Invoked automatically upon startup to customize the interpreter
5
+ # for [incr Tcl] when one of setupcomponent or createhull is called.
6
+ # ----------------------------------------------------------------------
7
+ # AUTHOR: Arnulf P. Wiedemann
8
+ #
9
+ # ----------------------------------------------------------------------
10
+ # Copyright (c) 2008 Arnulf P. Wiedemann
11
+ # ======================================================================
12
+ # See the file "license.terms" for information on usage and
13
+ # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14
+
15
+ package require Tk 8.6 9
16
+
17
+ namespace eval ::itcl::internal::commands {
18
+
19
+ # ======================= widgetDeleted ===========================
20
+
21
+ proc widgetDeleted {oldName newName op} {
22
+ # The widget is beeing deleted, so we have to delete the object
23
+ # which had the widget as itcl_hull too!
24
+ # We have to get the real name from for example
25
+ # ::itcl::internal::widgets::hull1.lw
26
+ # we need only .lw here
27
+
28
+ #puts stderr "widgetDeleted!$oldName!$newName!$op!"
29
+ set cmdName [namespace tail $oldName]
30
+ set flds [split $cmdName {.}]
31
+ set cmdName .[join [lrange $flds 1 end] {.}]
32
+ #puts stderr "DELWIDGET![namespace current]!$cmdName![::info command $cmdName]!"
33
+ rename $cmdName {}
34
+ }
35
+
36
+ }
37
+
38
+ namespace eval ::itcl::builtin {
39
+
40
+ # ======================= createhull ===========================
41
+ # the hull widget is a tk widget which is the (mega) widget handled behind the itcl
42
+ # extendedclass/itcl widget.
43
+ # It is created be renaming the itcl class object to a temporary name <itcl object name>_
44
+ # creating the widget with the
45
+ # appropriate options and the installing that as the "hull" widget (the container)
46
+ # All the options in args and the options delegated to component itcl_hull are used
47
+ # Then a unique name (hull_widget_name) in the itcl namespace is created for widget:
48
+ # ::itcl::internal::widgets::hull<unique number><namespace tail path>
49
+ # and widget is renamed to that name
50
+ # Finally the <itcl object name>_ is renamed to the original <itcl object name> again
51
+ # Component itcl_hull is created if not existent
52
+ # itcl_hull is set to the hull_widget_name and the <itcl object name>
53
+ # is returned to the caller
54
+ # ==============================================================
55
+
56
+ proc createhull {widget_type path args} {
57
+ variable hullCount
58
+ upvar this this
59
+ upvar win win
60
+
61
+
62
+ #puts stderr "il-1![::info level -1]!$this!"
63
+ #puts stderr "createhull!$widget_type!$path!$args!$this![::info command $this]!"
64
+ #puts stderr "ns1![uplevel 1 namespace current]!"
65
+ #puts stderr "ns2![uplevel 2 namespace current]!"
66
+ #puts stderr "ns3![uplevel 3 namespace current]!"
67
+ #puts stderr "level-1![::info level -1]!"
68
+ #puts stderr "level-2![::info level -2]!"
69
+ # set my_this [namespace tail $this]
70
+ set my_this $this
71
+ set tmp $my_this
72
+ #puts stderr "II![::info command $this]![::info command $tmp]!"
73
+ #puts stderr "rename1!rename $my_this ${tmp}_!"
74
+ rename ::$my_this ${tmp}_
75
+ set options [list]
76
+ foreach {option_name value} $args {
77
+ switch -glob -- $option_name {
78
+ -class {
79
+ lappend options $option_name [namespace tail $value]
80
+ }
81
+ -* {
82
+ lappend options $option_name $value
83
+ }
84
+ default {
85
+ return -code error "bad option name\"$option_name\" options must start with a \"-\""
86
+ }
87
+ }
88
+ }
89
+ set my_win [namespace tail $path]
90
+ set cmd [list $widget_type $my_win]
91
+ #puts stderr "my_win!$my_win!cmd!$cmd!$path!"
92
+ if {[llength $options] > 0} {
93
+ lappend cmd {*}$options
94
+ }
95
+ set widget [uplevel 1 $cmd]
96
+ #puts stderr "widget!$widget!"
97
+ trace add command $widget delete ::itcl::internal::commands::widgetDeleted
98
+ set opts [uplevel 1 info delegated options]
99
+ foreach entry $opts {
100
+ foreach {optName compName} $entry break
101
+ if {$compName eq "itcl_hull"} {
102
+ set optInfos [uplevel 1 info delegated option $optName]
103
+ set realOptName [lindex $optInfos 4]
104
+ # strip off the "-" at the beginning
105
+ set myOptName [string range $realOptName 1 end]
106
+ set my_opt_val [option get $my_win $myOptName *]
107
+ if {$my_opt_val ne ""} {
108
+ $my_win configure -$myOptName $my_opt_val
109
+ }
110
+ }
111
+ }
112
+ set idx 1
113
+ while {1} {
114
+ set widgetName ::itcl::internal::widgets::hull${idx}$my_win
115
+ #puts stderr "widgetName!$widgetName!"
116
+ if {[string length [::info command $widgetName]] == 0} {
117
+ break
118
+ }
119
+ incr idx
120
+ }
121
+ #puts stderr "rename2!rename $widget $widgetName!"
122
+ set dorename 0
123
+ rename $widget $widgetName
124
+ #puts stderr "rename3!rename ${tmp}_ $tmp![::info command ${tmp}_]!my_this!$my_this!"
125
+ rename ${tmp}_ ::$tmp
126
+ set exists [uplevel 1 ::info exists itcl_hull]
127
+ if {!$exists} {
128
+ # that does not yet work, beacause of problems with resolving
129
+ ::itcl::addcomponent $my_this itcl_hull
130
+ }
131
+ upvar itcl_hull itcl_hull
132
+ ::itcl::setcomponent $my_this itcl_hull $widgetName
133
+ #puts stderr "IC![::info command $my_win]!"
134
+ set exists [uplevel 1 ::info exists itcl_interior]
135
+ if {!$exists} {
136
+ # that does not yet work, beacause of problems with resolving
137
+ ::itcl::addcomponent $this itcl_interior
138
+ }
139
+ upvar itcl_interior itcl_interior
140
+ set itcl_interior $my_win
141
+ #puts stderr "hull end!win!$win!itcl_hull!$itcl_hull!itcl_interior!$itcl_interior!"
142
+ return $my_win
143
+ }
144
+
145
+ # ======================= addToItclOptions ===========================
146
+
147
+ proc addToItclOptions {my_class my_win myOptions argsDict} {
148
+ upvar win win
149
+ upvar itcl_hull itcl_hull
150
+
151
+ set opt_lst [list configure]
152
+ foreach opt [lsort $myOptions] {
153
+ #puts stderr "IOPT!$opt!$my_class!$my_win![::itcl::is class $my_class]!"
154
+ set isClass [::itcl::is class $my_class]
155
+ set found 0
156
+ if {$isClass} {
157
+ if {[catch {
158
+ set resource [namespace eval $my_class info option $opt -resource]
159
+ set class [namespace eval $my_class info option $opt -class]
160
+ set default_val [uplevel 2 info option $opt -default]
161
+ set found 1
162
+ } msg]} {
163
+ # puts stderr "MSG!$opt!$my_class!$msg!"
164
+ }
165
+ } else {
166
+ set tmp_win [uplevel #0 $my_class .___xx]
167
+
168
+ set my_info [$tmp_win configure $opt]
169
+ set resource [lindex $my_info 1]
170
+ set class [lindex $my_info 2]
171
+ set default_val [lindex $my_info 3]
172
+ uplevel #0 destroy $tmp_win
173
+ set found 1
174
+ }
175
+ if {$found} {
176
+ if {[catch {
177
+ set val [uplevel #0 ::option get $win $resource $class]
178
+ } msg]} {
179
+ set val ""
180
+ }
181
+ if {[::dict exists $argsDict $opt]} {
182
+ # we have an explicitly set option
183
+ set val [::dict get $argsDict $opt]
184
+ } else {
185
+ if {[string length $val] == 0} {
186
+ set val $default_val
187
+ }
188
+ }
189
+ set ::itcl::internal::variables::${my_win}::itcl_options($opt) $val
190
+ set ::itcl::internal::variables::${my_win}::__itcl_option_infos($opt) [list $resource $class $default_val]
191
+ #puts stderr "OPT1!$opt!$val!"
192
+ # uplevel 1 [list set itcl_options($opt) [list $val]]
193
+ if {[catch {uplevel 1 $win configure $opt [list $val]} msg]} {
194
+ #puts stderr "addToItclOptions ERR!$msg!$my_class!$win!configure!$opt!$val!"
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ # ======================= setupcomponent ===========================
201
+
202
+ proc setupcomponent {comp using widget_type path args} {
203
+ upvar this this
204
+ upvar win win
205
+ upvar itcl_hull itcl_hull
206
+
207
+ #puts stderr "setupcomponent!$comp!$widget_type!$path!$args!$this!$win!$itcl_hull!"
208
+ #puts stderr "CONT![uplevel 1 info context]!"
209
+ #puts stderr "ns1![uplevel 1 namespace current]!"
210
+ #puts stderr "ns2![uplevel 2 namespace current]!"
211
+ #puts stderr "ns3![uplevel 3 namespace current]!"
212
+ set my_comp_object [lindex [uplevel 1 info context] 1]
213
+ if {[::info exists ::itcl::internal::component_objects($my_comp_object)]} {
214
+ set my_comp_object [set ::itcl::internal::component_objects($my_comp_object)]
215
+ } else {
216
+ set ::itcl::internal::component_objects($path) $my_comp_object
217
+ }
218
+ set options [list]
219
+ foreach {option_name value} $args {
220
+ switch -glob -- $option_name {
221
+ -* {
222
+ lappend options $option_name $value
223
+ }
224
+ default {
225
+ return -code error "bad option name\"$option_name\" options must start with a \"-\""
226
+ }
227
+ }
228
+ }
229
+ if {[llength $args]} {
230
+ set argsDict [dict create {*}$args]
231
+ } else {
232
+ set argsDict [dict create]
233
+ }
234
+ set cmd [list $widget_type $path]
235
+ if {[llength $options] > 0} {
236
+ lappend cmd {*}$options
237
+ }
238
+ #puts stderr "cmd0![::info command $widget_type]!$path![::info command $path]!"
239
+ #puts stderr "cmd1!$cmd!"
240
+ # set my_comp [uplevel 3 $cmd]
241
+ set my_comp [uplevel #0 $cmd]
242
+ #puts stderr 111![::info command $path]!
243
+ ::itcl::setcomponent $this $comp $my_comp
244
+ set opts [uplevel 1 info delegated options]
245
+ foreach entry $opts {
246
+ foreach {optName compName} $entry break
247
+ if {$compName eq $my_comp} {
248
+ set optInfos [uplevel 1 info delegated option $optName]
249
+ set realOptName [lindex $optInfos 4]
250
+ # strip off the "-" at the beginning
251
+ set myOptName [string range $realOptName 1 end]
252
+ set my_opt_val [option get $my_win $myOptName *]
253
+ if {$my_opt_val ne ""} {
254
+ $my_comp configure -$myOptName $my_opt_val
255
+ }
256
+ }
257
+ }
258
+ set my_class $widget_type
259
+ set my_parent_class [uplevel 1 namespace current]
260
+ if {[catch {
261
+ set myOptions [namespace eval $my_class {info classoptions}]
262
+ } msg]} {
263
+ set myOptions [list]
264
+ }
265
+ foreach entry [$path configure] {
266
+ foreach {opt dummy1 dummy2 dummy3} $entry break
267
+ lappend myOptions $opt
268
+ }
269
+ #puts stderr "OPTS!$myOptions!"
270
+ addToItclOptions $widget_type $my_comp_object $myOptions $argsDict
271
+ #puts stderr END!$path![::info command $path]!
272
+ }
273
+
274
+ proc itcl_initoptions {args} {
275
+ puts stderr "ITCL_INITOPT!$args!"
276
+ }
277
+
278
+ # ======================= initoptions ===========================
279
+
280
+ proc initoptions {args} {
281
+ upvar win win
282
+ upvar itcl_hull itcl_hull
283
+ upvar itcl_option_components itcl_option_components
284
+
285
+ #puts stderr "INITOPT!!$win!"
286
+ if {[llength $args]} {
287
+ set argsDict [dict create {*}$args]
288
+ } else {
289
+ set argsDict [dict create]
290
+ }
291
+ set my_class [uplevel 1 namespace current]
292
+ set myOptions [namespace eval $my_class {info classoptions}]
293
+ if {[dict exists $::itcl::internal::dicts::classComponents $my_class]} {
294
+ set class_info_dict [dict get $::itcl::internal::dicts::classComponents $my_class]
295
+ # set myOptions [lsort -unique [namespace eval $my_class {info options}]]
296
+ foreach comp [uplevel 1 info components] {
297
+ if {[dict exists $class_info_dict $comp -keptoptions]} {
298
+ foreach my_opt [dict get $class_info_dict $comp -keptoptions] {
299
+ if {[lsearch $myOptions $my_opt] < 0} {
300
+ #puts stderr "KEOPT!$my_opt!"
301
+ lappend myOptions $my_opt
302
+ }
303
+ }
304
+ }
305
+ }
306
+ } else {
307
+ set class_info_dict [list]
308
+ }
309
+ #puts stderr "OPTS!$win!$my_class![join [lsort $myOptions]] \n]!"
310
+ set opt_lst [list configure]
311
+ set my_win $win
312
+ foreach opt [lsort $myOptions] {
313
+ set found 0
314
+ if {[catch {
315
+ set resource [uplevel 1 info option $opt -resource]
316
+ set class [uplevel 1 info option $opt -class]
317
+ set default_val [uplevel 1 info option $opt -default]
318
+ set found 1
319
+ } msg]} {
320
+ # puts stderr "MSG!$opt!$msg!"
321
+ }
322
+ #puts stderr "OPT!$opt!$found!"
323
+ if {$found} {
324
+ if {[catch {
325
+ set val [uplevel #0 ::option get $my_win $resource $class]
326
+ } msg]} {
327
+ set val ""
328
+ }
329
+ if {[::dict exists $argsDict $opt]} {
330
+ # we have an explicitly set option
331
+ set val [::dict get $argsDict $opt]
332
+ } else {
333
+ if {[string length $val] == 0} {
334
+ set val $default_val
335
+ }
336
+ }
337
+ set ::itcl::internal::variables::${win}::itcl_options($opt) $val
338
+ set ::itcl::internal::variables::${win}::__itcl_option_infos($opt) [list $resource $class $default_val]
339
+ #puts stderr "OPT1!$opt!$val!"
340
+ # uplevel 1 [list set itcl_options($opt) [list $val]]
341
+ if {[catch {uplevel 1 $my_win configure $opt [list $val]} msg]} {
342
+ puts stderr "initoptions ERR!$msg!$my_class!$my_win!configure!$opt!$val!"
343
+ }
344
+ }
345
+ foreach comp [dict keys $class_info_dict] {
346
+ #puts stderr "OPT1!$opt!$comp![dict get $class_info_dict $comp]!"
347
+ if {[dict exists $class_info_dict $comp -keptoptions]} {
348
+ if {[lsearch [dict get $class_info_dict $comp -keptoptions] $opt] >= 0} {
349
+ if {$found == 0} {
350
+ # we use the option value of the first component for setting
351
+ # the option, as the components are traversed in the dict
352
+ # depending on the ordering of the component creation!!
353
+ set my_info [uplevel 1 \[set $comp\] configure $opt]
354
+ set resource [lindex $my_info 1]
355
+ set class [lindex $my_info 2]
356
+ set default_val [lindex $my_info 3]
357
+ set found 2
358
+ set val [uplevel #0 ::option get $my_win $resource $class]
359
+ if {[::dict exists $argsDict $opt]} {
360
+ # we have an explicitly set option
361
+ set val [::dict get $argsDict $opt]
362
+ } else {
363
+ if {[string length $val] == 0} {
364
+ set val $default_val
365
+ }
366
+ }
367
+ #puts stderr "OPT2!$opt!$val!"
368
+ set ::itcl::internal::variables::${win}::itcl_options($opt) $val
369
+ set ::itcl::internal::variables::${win}::__itcl_option_infos($opt) [list $resource $class $default_val]
370
+ # uplevel 1 [list set itcl_options($opt) [list $val]]
371
+ }
372
+ if {[catch {uplevel 1 \[set $comp\] configure $opt [list $val]} msg]} {
373
+ puts stderr "initoptions ERR2!$msg!$my_class!$comp!configure!$opt!$val!"
374
+ }
375
+ if {![uplevel 1 info exists itcl_option_components($opt)]} {
376
+ set itcl_option_components($opt) [list]
377
+ }
378
+ if {[lsearch [set itcl_option_components($opt)] $comp] < 0} {
379
+ if {![catch {
380
+ set optval [uplevel 1 [list set itcl_options($opt)]]
381
+ } msg3]} {
382
+ uplevel 1 \[set $comp\] configure $opt $optval
383
+ }
384
+ lappend itcl_option_components($opt) $comp
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+ # uplevel 1 $opt_lst
391
+ }
392
+
393
+ # ======================= setoptions ===========================
394
+
395
+ proc setoptions {args} {
396
+
397
+ #puts stderr "setOPT!!$args!"
398
+ if {[llength $args]} {
399
+ set argsDict [dict create {*}$args]
400
+ } else {
401
+ set argsDict [dict create]
402
+ }
403
+ set my_class [uplevel 1 namespace current]
404
+ set myOptions [namespace eval $my_class {info options}]
405
+ #puts stderr "OPTS!$win!$my_class![join [lsort $myOptions]] \n]!"
406
+ set opt_lst [list configure]
407
+ foreach opt [lsort $myOptions] {
408
+ set found 0
409
+ if {[catch {
410
+ set resource [uplevel 1 info option $opt -resource]
411
+ set class [uplevel 1 info option $opt -class]
412
+ set default_val [uplevel 1 info option $opt -default]
413
+ set found 1
414
+ } msg]} {
415
+ # puts stderr "MSG!$opt!$msg!"
416
+ }
417
+ #puts stderr "OPT!$opt!$found!"
418
+ if {$found} {
419
+ set val ""
420
+ if {[::dict exists $argsDict $opt]} {
421
+ # we have an explicitly set option
422
+ set val [::dict get $argsDict $opt]
423
+ } else {
424
+ if {[string length $val] == 0} {
425
+ set val $default_val
426
+ }
427
+ }
428
+ set myObj [uplevel 1 set this]
429
+ #puts stderr "myObj!$myObj!"
430
+ set ::itcl::internal::variables::${myObj}::itcl_options($opt) $val
431
+ set ::itcl::internal::variables::${myObj}::__itcl_option_infos($opt) [list $resource $class $default_val]
432
+ #puts stderr "OPT1!$opt!$val!"
433
+ uplevel 1 [list set itcl_options($opt) [list $val]]
434
+ # if {[catch {uplevel 1 $myObj configure $opt [list $val]} msg]} {
435
+ #puts stderr "initoptions ERR!$msg!$my_class!$my_win!configure!$opt!$val!"
436
+ # }
437
+ }
438
+ }
439
+ # uplevel 1 $opt_lst
440
+ }
441
+
442
+ # ========================= keepcomponentoption ======================
443
+ # Invoked by Tcl during evaluating constructor whenever
444
+ # the "keepcomponentoption" command is invoked to list the options
445
+ # to be kept when an ::itcl::extendedclass component has been setup
446
+ # for an object.
447
+ #
448
+ # It checks, for all arguments, if the opt is an option of that class
449
+ # and of that component. If that is the case it adds the component name
450
+ # to the list of components for that option.
451
+ # The variable is the object variable: itcl_option_components($opt)
452
+ #
453
+ # Handles the following syntax:
454
+ #
455
+ # keepcomponentoption <componentName> <optionName> ?<optionName> ...?
456
+ #
457
+ # ======================================================================
458
+
459
+
460
+ proc keepcomponentoption {args} {
461
+ upvar win win
462
+ upvar itcl_hull itcl_hull
463
+
464
+ set usage "wrong # args, should be: keepcomponentoption componentName optionName ?optionName ...?"
465
+
466
+ #puts stderr "KEEP!$args![uplevel 1 namespace current]!"
467
+ if {[llength $args] < 2} {
468
+ puts stderr $usage
469
+ return -code error
470
+ }
471
+ set my_hull [uplevel 1 set itcl_hull]
472
+ set my_class [uplevel 1 namespace current]
473
+ set comp [lindex $args 0]
474
+ set args [lrange $args 1 end]
475
+ set class_info_dict [dict get $::itcl::internal::dicts::classComponents $my_class]
476
+ if {![dict exists $class_info_dict $comp]} {
477
+ puts stderr "keepcomponentoption cannot find component \"$comp\""
478
+ return -code error
479
+ }
480
+ set class_comp_dict [dict get $class_info_dict $comp]
481
+ if {![dict exists $class_comp_dict -keptoptions]} {
482
+ dict set class_comp_dict -keptoptions [list]
483
+ }
484
+ foreach opt $args {
485
+ #puts stderr "KEEP!$opt!"
486
+ if {[string range $opt 0 0] ne "-"} {
487
+ puts stderr "keepcomponentoption: option must begin with a \"-\"!"
488
+ return -code error
489
+ }
490
+ if {[lsearch [dict get $class_comp_dict -keptoptions] $opt] < 0} {
491
+ dict lappend class_comp_dict -keptoptions $opt
492
+ }
493
+ }
494
+ if {![info exists ::itcl::internal::component_objects([lindex [uplevel 1 info context] 1])]} {
495
+ set comp_object $::itcl::internal::component_objects([lindex [uplevel 1 info context] 1])
496
+ } else {
497
+ set comp_object "unknown_comp_obj_$comp!"
498
+ }
499
+ dict set class_info_dict $comp $class_comp_dict
500
+ dict set ::itcl::internal::dicts::classComponents $my_class $class_info_dict
501
+ puts stderr "CLDI!$class_comp_dict!"
502
+ addToItclOptions $my_class $comp_object $args [list]
503
+ }
504
+
505
+ proc ignorecomponentoption {args} {
506
+ puts stderr "IGNORE_COMPONENT_OPTION!$args!"
507
+ }
508
+
509
+ proc renamecomponentoption {args} {
510
+ puts stderr "rename_COMPONENT_OPTION!$args!"
511
+ }
512
+
513
+ proc addoptioncomponent {args} {
514
+ puts stderr "ADD_OPTION_COMPONENT!$args!"
515
+ }
516
+
517
+ proc ignoreoptioncomponent {args} {
518
+ puts stderr "IGNORE_OPTION_COMPONENT!$args!"
519
+ }
520
+
521
+ proc renameoptioncomponent {args} {
522
+ puts stderr "RENAME_OPTION_COMPONENT!$args!"
523
+ }
524
+
525
+ proc getEclassOptions {args} {
526
+ upvar win win
527
+
528
+ #puts stderr "getEclassOptions!$args!$win![uplevel 1 namespace current]!"
529
+ #parray ::itcl::internal::variables::${win}::itcl_options
530
+ set result [list]
531
+ foreach opt [array names ::itcl::internal::variables::${win}::itcl_options] {
532
+ if {[catch {
533
+ foreach {res cls def} [set ::itcl::internal::variables::${win}::__itcl_option_infos($opt)] break
534
+ lappend result [list $opt $res $cls $def [set ::itcl::internal::variables::${win}::itcl_options($opt)]]
535
+ } msg]} {
536
+ }
537
+ }
538
+ return $result
539
+ }
540
+
541
+ proc eclassConfigure {args} {
542
+ upvar win win
543
+
544
+ #puts stderr "+++ eclassConfigure!$args!"
545
+ if {[llength $args] > 1} {
546
+ foreach {opt val} $args break
547
+ if {[::info exists ::itcl::internal::variables::${win}::itcl_options($opt)]} {
548
+ set ::itcl::internal::variables::${win}::itcl_options($opt) $val
549
+ return
550
+ }
551
+ } else {
552
+ foreach {opt} $args break
553
+ if {[::info exists ::itcl::internal::variables::${win}::itcl_options($opt)]} {
554
+ #puts stderr "OP![set ::itcl::internal::variables::${win}::itcl_options($opt)]!"
555
+ foreach {res cls def} [set ::itcl::internal::variables::${win}::__itcl_option_infos($opt)] break
556
+ return [list $opt $res $cls $def [set ::itcl::internal::variables::${win}::itcl_options($opt)]]
557
+ }
558
+ }
559
+ return -code error
560
+ }
561
+
562
+ }
lib/itcl4.3.0/itclWidget.tcl ADDED
@@ -0,0 +1,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # itclWidget.tcl
3
+ # ----------------------------------------------------------------------
4
+ # Invoked automatically upon startup to customize the interpreter
5
+ # for [incr Tcl] when one of ::itcl::widget or ::itcl::widgetadaptor is called.
6
+ # ----------------------------------------------------------------------
7
+ # AUTHOR: Arnulf P. Wiedemann
8
+ #
9
+ # ----------------------------------------------------------------------
10
+ # Copyright (c) 2008 Arnulf P. Wiedemann
11
+ # ======================================================================
12
+ # See the file "license.terms" for information on usage and
13
+ # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14
+
15
+ package require Tk 8.6 9
16
+ # package require itclwidget [set ::itcl::version]
17
+
18
+ namespace eval ::itcl {
19
+
20
+ proc widget {name args} {
21
+ set result [uplevel 1 ::itcl::internal::commands::genericclass widget $name $args]
22
+ # we handle create by owerselfs !! allow classunknown to handle that
23
+ oo::objdefine $result unexport create
24
+ return $result
25
+ }
26
+
27
+ proc widgetadaptor {name args} {
28
+ set result [uplevel 1 ::itcl::internal::commands::genericclass widgetadaptor $name $args]
29
+ # we handle create by owerselfs !! allow classunknown to handle that
30
+ oo::objdefine $result unexport create
31
+ return $result
32
+ }
33
+
34
+ } ; # end ::itcl
35
+
36
+
37
+ namespace eval ::itcl::internal::commands {
38
+
39
+ proc initWidgetOptions {varNsName widgetName className} {
40
+ set myDict [set ::itcl::internal::dicts::classOptions]
41
+ if {$myDict eq ""} {
42
+ return
43
+ }
44
+ if {![dict exists $myDict $className]} {
45
+ return
46
+ }
47
+ set myDict [dict get $myDict $className]
48
+ foreach option [dict keys $myDict] {
49
+ set infos [dict get $myDict $option]
50
+ set resource [dict get $infos -resource]
51
+ set class [dict get $infos -class]
52
+ set value [::option get $widgetName $resource $class]
53
+ if {$value eq ""} {
54
+ if {[dict exists $infos -default]} {
55
+ set defaultValue [dict get $infos -default]
56
+ uplevel 1 set ${varNsName}::itcl_options($option) $defaultValue
57
+ }
58
+ } else {
59
+ uplevel 1 set ${varNsName}::itcl_options($option) $value
60
+ }
61
+ }
62
+ }
63
+
64
+ proc initWidgetDelegatedOptions {varNsName widgetName className args} {
65
+ set myDict [set ::itcl::internal::dicts::classDelegatedOptions]
66
+ if {$myDict eq ""} {
67
+ return
68
+ }
69
+ if {![dict exists $myDict $className]} {
70
+ return
71
+ }
72
+ set myDict [dict get $myDict $className]
73
+ foreach option [dict keys $myDict] {
74
+ set infos [dict get $myDict $option]
75
+ if {![dict exists $infos -resource]} {
76
+ # this is the case when delegating "*"
77
+ continue
78
+ }
79
+ if {![dict exists $infos -component]} {
80
+ # nothing to do
81
+ continue
82
+ }
83
+ # check if not in the command line options
84
+ # these have higher priority
85
+ set myOption $option
86
+ if {[dict exists $infos -as]} {
87
+ set myOption [dict get $infos -as]
88
+ }
89
+ set noOptionSet 0
90
+ foreach {optName optVal} $args {
91
+ if {$optName eq $myOption} {
92
+ set noOptionSet 1
93
+ break
94
+ }
95
+ }
96
+ if {$noOptionSet} {
97
+ continue
98
+ }
99
+ set resource [dict get $infos -resource]
100
+ set class [dict get $infos -class]
101
+ set component [dict get $infos -component]
102
+ set value [::option get $widgetName $resource $class]
103
+ if {$component ne ""} {
104
+ if {$value ne ""} {
105
+ set compVar [namespace eval ${varNsName}${className} "set $component"]
106
+ if {$compVar ne ""} {
107
+ uplevel 1 $compVar configure $myOption $value
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+
114
+ proc widgetinitobjectoptions {varNsName widgetName className} {
115
+ #puts stderr "initWidgetObjectOptions!$varNsName!$widgetName!$className!"
116
+ }
117
+
118
+ proc deletehull {newName oldName what} {
119
+ if {$what eq "delete"} {
120
+ set name [namespace tail $newName]
121
+ regsub {hull[0-9]+} $name {} name
122
+ rename $name {}
123
+ }
124
+ if {$what eq "rename"} {
125
+ set name [namespace tail $newName]
126
+ regsub {hull[0-9]+} $name {} name
127
+ rename $name {}
128
+ }
129
+ }
130
+
131
+ proc hullandoptionsinstall {objectName className widgetClass hulltype args} {
132
+ if {$hulltype eq ""} {
133
+ set hulltype frame
134
+ }
135
+ set idx 0
136
+ set found 0
137
+ foreach {optName optValue} $args {
138
+ if {$optName eq "-class"} {
139
+ set found 1
140
+ set widgetClass $optValue
141
+ break
142
+ }
143
+ incr idx
144
+ }
145
+ if {$found} {
146
+ set args [lreplace $args $idx [expr {$idx + 1}]]
147
+ }
148
+ if {$widgetClass eq ""} {
149
+ set widgetClass $className
150
+ set widgetClass [string totitle $widgetClass]
151
+ }
152
+ set cmd "set win $objectName; ::itcl::builtin::installhull using $hulltype -class $widgetClass $args"
153
+ uplevel 2 $cmd
154
+ }
155
+
156
+ } ; # end ::itcl::internal::commands
157
+
158
+ namespace eval ::itcl::builtin {
159
+
160
+ proc installhull {args} {
161
+ set cmdPath ::itcl::internal::commands
162
+ set className [uplevel 1 info class]
163
+
164
+ set replace 0
165
+ switch -- [llength $args] {
166
+ 0 {
167
+ return -code error\
168
+ "wrong # args: should be \"[lindex [info level 0] 0]\
169
+ name|using <widgetType> ?arg ...?\""
170
+ }
171
+ 1 {
172
+ set widgetName [lindex $args 0]
173
+ set varNsName $::itcl::internal::varNsName($widgetName)
174
+ }
175
+ default {
176
+ upvar win win
177
+ set widgetName $win
178
+
179
+ set varNsName $::itcl::internal::varNsName($widgetName)
180
+ set widgetType [lindex $args 1]
181
+ incr replace
182
+ if {[llength $args] > 3 && [lindex $args 2] eq "-class"} {
183
+ set classNam [lindex $args 3]
184
+ incr replace 2
185
+ } else {
186
+ set classNam [string totitle $widgetType]
187
+ }
188
+ uplevel 1 [lreplace $args 0 $replace $widgetType $widgetName -class $classNam]
189
+ uplevel 1 [list ${cmdPath}::initWidgetOptions $varNsName $widgetName $className]
190
+ }
191
+ }
192
+
193
+ # initialize the itcl_hull variable
194
+ set i 0
195
+ set nam ::itcl::internal::widgets::hull
196
+ while {1} {
197
+ incr i
198
+ set hullNam ${nam}${i}$widgetName
199
+ if {[::info command $hullNam] eq ""} {
200
+ break
201
+ }
202
+ }
203
+ uplevel 1 [list ${cmdPath}::sethullwindowname $widgetName]
204
+ uplevel 1 [list ::rename $widgetName $hullNam]
205
+ uplevel 1 [list ::trace add command $hullNam {delete rename} ::itcl::internal::commands::deletehull]
206
+ catch {${cmdPath}::checksetitclhull [list] 0}
207
+ namespace eval ${varNsName}${className} "set itcl_hull $hullNam"
208
+ catch {${cmdPath}::checksetitclhull [list] 2}
209
+ uplevel 1 [lreplace $args 0 $replace ${cmdPath}::initWidgetDelegatedOptions $varNsName $widgetName $className]
210
+ }
211
+
212
+ proc installcomponent {args} {
213
+ upvar win win
214
+
215
+ set className [uplevel 1 info class]
216
+ set myType [${className}::info types [namespace tail $className]]
217
+ set isType 0
218
+ if {$myType ne ""} {
219
+ set isType 1
220
+ }
221
+ set numArgs [llength $args]
222
+ set usage "usage: installcomponent <componentName> using <widgetType> <widgetPath> ?-option value ...?"
223
+ if {$numArgs < 4} {
224
+ error $usage
225
+ }
226
+ foreach {componentName using widgetType widgetPath} $args break
227
+ set opts [lrange $args 4 end]
228
+ if {$using ne "using"} {
229
+ error $usage
230
+ }
231
+ if {!$isType} {
232
+ set hullExists [uplevel 1 ::info exists itcl_hull]
233
+ if {!$hullExists} {
234
+ error "cannot install \"$componentName\" before \"itcl_hull\" exists"
235
+ }
236
+ set hullVal [uplevel 1 set itcl_hull]
237
+ if {$hullVal eq ""} {
238
+ error "cannot install \"$componentName\" before \"itcl_hull\" exists"
239
+ }
240
+ }
241
+ # check for delegated option and ask the option database for the values
242
+ # first check for number of delegated options
243
+ set numOpts 0
244
+ set starOption 0
245
+ set myDict [set ::itcl::internal::dicts::classDelegatedOptions]
246
+ if {[dict exists $myDict $className]} {
247
+ set myDict [dict get $myDict $className]
248
+ foreach option [dict keys $myDict] {
249
+ if {$option eq "*"} {
250
+ set starOption 1
251
+ }
252
+ incr numOpts
253
+ }
254
+ }
255
+ set myOptionDict [set ::itcl::internal::dicts::classOptions]
256
+ if {[dict exists $myOptionDict $className]} {
257
+ set myOptionDict [dict get $myOptionDict $className]
258
+ }
259
+ set cmd [list $widgetPath configure]
260
+ set cmd1 "set $componentName \[$widgetType $widgetPath\]"
261
+ uplevel 1 $cmd1
262
+ if {$starOption} {
263
+ upvar $componentName compName
264
+ set cmd1 [list $compName configure]
265
+ set configInfos [uplevel 1 $cmd1]
266
+ foreach entry $configInfos {
267
+ if {[llength $entry] > 2} {
268
+ foreach {optName resource class defaultValue} $entry break
269
+ set val ""
270
+ catch {
271
+ set val [::option get $win $resource $class]
272
+ }
273
+ if {$val ne ""} {
274
+ set addOpt 1
275
+ if {[dict exists $myDict $$optName]} {
276
+ set addOpt 0
277
+ } else {
278
+ set starDict [dict get $myDict "*"]
279
+ if {[dict exists $starDict -except]} {
280
+ set exceptions [dict get $starDict -except]
281
+ if {[lsearch $exceptions $optName] >= 0} {
282
+ set addOpt 0
283
+ }
284
+
285
+ }
286
+ if {[dict exists $myOptionDict $optName]} {
287
+ set addOpt 0
288
+ }
289
+ }
290
+ if {$addOpt} {
291
+ lappend cmd $optName $val
292
+ }
293
+
294
+ }
295
+
296
+ }
297
+ }
298
+ } else {
299
+ foreach optName [dict keys $myDict] {
300
+ set optInfos [dict get $myDict $optName]
301
+ set resource [dict get $optInfos -resource]
302
+ set class [namespace tail $className]
303
+ set class [string totitle $class]
304
+ set val ""
305
+ catch {
306
+ set val [::option get $win $resource $class]
307
+ }
308
+ if {$val ne ""} {
309
+ if {[dict exists $optInfos -as] } {
310
+ set optName [dict get $optInfos -as]
311
+ }
312
+ lappend cmd $optName $val
313
+ }
314
+ }
315
+ }
316
+ lappend cmd {*}$opts
317
+ uplevel 1 $cmd
318
+ }
319
+
320
+ } ; # end ::itcl::builtin
321
+
322
+ set ::itcl::internal::dicts::hullTypes [list \
323
+ frame \
324
+ toplevel \
325
+ labelframe \
326
+ ttk:frame \
327
+ ttk:toplevel \
328
+ ttk:labelframe \
329
+ ]
330
+
331
+ namespace eval ::itcl::builtin::Info {
332
+
333
+ proc hulltypes {args} {
334
+ namespace upvar ::itcl::internal::dicts hullTypes hullTypes
335
+
336
+ set numArgs [llength $args]
337
+ if {$numArgs > 1} {
338
+ error "wrong # args should be: info hulltypes ?<pattern>?"
339
+ }
340
+ set pattern ""
341
+ if {$numArgs > 0} {
342
+ set pattern [lindex $args 0]
343
+ }
344
+ if {$pattern ne ""} {
345
+ return [lsearch -all -inline -glob $hullTypes $pattern]
346
+ }
347
+ return $hullTypes
348
+
349
+ }
350
+
351
+ proc widgetclasses {args} {
352
+ set numArgs [llength $args]
353
+ if {$numArgs > 1} {
354
+ error "wrong # args should be: info widgetclasses ?<pattern>?"
355
+ }
356
+ set pattern ""
357
+ if {$numArgs > 0} {
358
+ set pattern [lindex $args 0]
359
+ }
360
+ set myDict [set ::itcl::internal::dicts::classes]
361
+ if {![dict exists $myDict widget]} {
362
+ return [list]
363
+ }
364
+ set myDict [dict get $myDict widget]
365
+ set result [list]
366
+ if {$pattern ne ""} {
367
+ foreach key [dict keys $myDict] {
368
+ set myInfo [dict get $myDict $key]
369
+ set value [dict get $myInfo -widget]
370
+ if {[string match $pattern $value]} {
371
+ lappend result $value
372
+ }
373
+ }
374
+ } else {
375
+ foreach key [dict keys $myDict] {
376
+ set myInfo [dict get $myDict $key]
377
+ lappend result [dict get $myInfo -widget]
378
+ }
379
+ }
380
+ return $result
381
+ }
382
+
383
+ proc widgets {args} {
384
+ set numArgs [llength $args]
385
+ if {$numArgs > 1} {
386
+ error "wrong # args should be: info widgets ?<pattern>?"
387
+ }
388
+ set pattern ""
389
+ if {$numArgs > 0} {
390
+ set pattern [lindex $args 0]
391
+ }
392
+ set myDict [set ::itcl::internal::dicts::classes]
393
+ if {![dict exists $myDict widget]} {
394
+ return [list]
395
+ }
396
+ set myDict [dict get $myDict widget]
397
+ set result [list]
398
+ if {$pattern ne ""} {
399
+ foreach key [dict keys $myDict] {
400
+ set myInfo [dict get $myDict $key]
401
+ set value [dict get $myInfo -name]
402
+ if {[string match $pattern $value]} {
403
+ lappend result $value
404
+ }
405
+ }
406
+ } else {
407
+ foreach key [dict keys $myDict] {
408
+ set myInfo [dict get $myDict $key]
409
+ lappend result [dict get $myInfo -name]
410
+ }
411
+ }
412
+ return $result
413
+ }
414
+
415
+ proc widgetadaptors {args} {
416
+ set numArgs [llength $args]
417
+ if {$numArgs > 1} {
418
+ error "wrong # args should be: info widgetadaptors ?<pattern>?"
419
+ }
420
+ set pattern ""
421
+ if {$numArgs > 0} {
422
+ set pattern [lindex $args 0]
423
+ }
424
+ set myDict [set ::itcl::internal::dicts::classes]
425
+ if {![dict exists $myDict widgetadaptor]} {
426
+ return [list]
427
+ }
428
+ set myDict [dict get $myDict widgetadaptor]
429
+ set result [list]
430
+ if {$pattern ne ""} {
431
+ foreach key [dict keys $myDict] {
432
+ set myInfo [dict get $myDict $key]
433
+ set value [dict get $myInfo -name]
434
+ if {[string match $pattern $value]} {
435
+ lappend result $value
436
+ }
437
+ }
438
+ } else {
439
+ foreach key [dict keys $myDict] {
440
+ set myInfo [dict get $myDict $key]
441
+ lappend result [dict get $myInfo -name]
442
+ }
443
+ }
444
+ return $result
445
+ }
446
+
447
+ } ; # end ::itcl::builtin::Info
lib/itcl4.3.0/libitclstub4.3.0.a ADDED
Binary file (2.75 kB). View file
 
lib/itcl4.3.0/pkgIndex.tcl ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- tcl -*-
2
+ # Tcl package index file, version 1.1
3
+ #
4
+
5
+ if {![package vsatisfies [package provide Tcl] 8.6-]} {return}
6
+
7
+ if {[package vsatisfies [package provide Tcl] 9.0-]} {
8
+ package ifneeded itcl 4.3.0 \
9
+ [list load [file join $dir libtcl9itcl4.3.0.so] Itcl]
10
+ } else {
11
+ package ifneeded itcl 4.3.0 \
12
+ [list load [file join $dir libitcl4.3.0.so] Itcl]
13
+ }
14
+ package ifneeded Itcl 4.3.0 [list package require -exact itcl 4.3.0]
lib/libX11-xcb.so ADDED
Binary file (15.1 kB). View file
 
lib/libX11-xcb.so.1 ADDED
Binary file (15.1 kB). View file
 
lib/libX11-xcb.so.1.0.0 ADDED
Binary file (15.1 kB). View file
 
lib/libXau.so ADDED
Binary file (17.2 kB). View file
 
lib/libXau.so.6 ADDED
Binary file (17.2 kB). View file
 
lib/libXau.so.6.0.0 ADDED
Binary file (17.2 kB). View file
 
lib/libXdmcp.so ADDED
Binary file (30.2 kB). View file
 
lib/libXdmcp.so.6 ADDED
Binary file (30.2 kB). View file
 
lib/libXdmcp.so.6.0.0 ADDED
Binary file (30.2 kB). View file
 
lib/libffi.7.so ADDED
Binary file (72.4 kB). View file
 
lib/libffi.8.so ADDED
Binary file (72.4 kB). View file
 
lib/libffi.a ADDED
Binary file (94.2 kB). View file
 
lib/libffi.so ADDED
Binary file (72.4 kB). View file
 
lib/libffi.so.7 ADDED
Binary file (72.4 kB). View file
 
lib/libffi.so.8 ADDED
Binary file (72.4 kB). View file
 
lib/libffi.so.8.1.4 ADDED
Binary file (72.4 kB). View file
 
lib/libform.so ADDED
Binary file (91.4 kB). View file
 
lib/libform.so.6 ADDED
Binary file (91.4 kB). View file
 
lib/libform.so.6.5 ADDED
Binary file (91.4 kB). View file
 
lib/libformw.so ADDED
Binary file (91.4 kB). View file
 
lib/libformw.so.6 ADDED
Binary file (91.4 kB). View file
 
lib/libformw.so.6.5 ADDED
Binary file (91.4 kB). View file
 
lib/libgcc_s.so ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ /* GNU ld script
2
+ Use the shared library, but some functions are only in
3
+ the static library. */
4
+ GROUP ( libgcc_s.so.1 -lgcc )
lib/libhistory.a ADDED
Binary file (84.5 kB). View file
 
lib/libhistory.so ADDED
Binary file (59.1 kB). View file
 
lib/libhistory.so.8 ADDED
Binary file (59.1 kB). View file
 
lib/libhistory.so.8.3 ADDED
Binary file (59.1 kB). View file
 
lib/libmenu.a ADDED
Binary file (82.2 kB). View file
 
lib/libmenu.so ADDED
Binary file (45.3 kB). View file
 
lib/libmenu.so.6 ADDED
Binary file (45.3 kB). View file
 
lib/libmenu.so.6.5 ADDED
Binary file (45.3 kB). View file
 
lib/libmenuw.a ADDED
Binary file (82.2 kB). View file
 
lib/libmenuw.so ADDED
Binary file (45.3 kB). View file
 
lib/libmenuw.so.6 ADDED
Binary file (45.3 kB). View file