qtbindings 4.6.3.1-x86-mingw32 → 4.6.3.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +14 -0
- data/KNOWN_ISSUES.txt +5 -11
- data/bin/1.8/rbrcc.exe +0 -0
- data/bin/1.8/rbuic4.exe +0 -0
- data/bin/1.8/smokeapi.exe +0 -0
- data/bin/1.8/smokedeptool.exe +0 -0
- data/bin/1.9/rbrcc.exe +0 -0
- data/bin/1.9/rbuic4.exe +0 -0
- data/bin/1.9/smokeapi.exe +0 -0
- data/bin/1.9/smokedeptool.exe +0 -0
- data/examples/itemviews/chart/pieview.rb +1 -1
- data/examples/network/ftp/ftpwindow.rb +8 -3
- data/examples/network/http/httpwindow.rb +1 -1
- data/examples/painting/fontsampler/mainwindow.rb +14 -13
- data/examples/painting/fontsampler/previewdialog.rb +40 -39
- data/examples/painting/fontsampler/previewlabel.rb +2 -2
- data/examples/painting/svgviewer/svgwindow.rb +2 -2
- data/ext/cmake/modules/FindQt4.cmake +1 -0
- data/ext/generator/generatorpreprocessor.cpp +43 -1
- data/ext/generator/generators/smoke/generator_smoke.cpp +8 -1
- data/ext/generator/generators/smoke/helpers.cpp +5 -5
- data/ext/generator/generators/smoke/writeClasses.cpp +1 -1
- data/ext/generator/parser/lexer.cpp +1 -0
- data/ext/generator/parser/parser.cpp +4 -2
- data/ext/generator/parser/rpp/chartools.cpp +20 -0
- data/ext/generator/parser/rpp/chartools.h +7 -0
- data/ext/generator/parser/rpp/pp-macro-expander.cpp +3 -3
- data/ext/generator/parser/tokens.cpp +3 -0
- data/ext/generator/parser/tokens.h +1 -0
- data/ext/generator/type_compiler.cpp +1 -1
- data/ext/ruby/qtruby/src/handlers.cpp +13 -3
- data/ext/smoke/CMakeLists.txt +1 -0
- data/ext/smoke/qtcore/smokeconfig.xml +2 -0
- data/ext/smoke/qtdeclarative/smokeconfig.xml +1 -0
- data/ext/smoke/qthelp/CMakeLists.txt +45 -0
- data/ext/smoke/qthelp/config.xml.cmake +13 -0
- data/ext/smoke/qthelp/qthelp_includes.h +3 -0
- data/ext/smoke/qthelp/smokeconfig.xml +53 -0
- data/ext/smoke/qthelp_smoke.h +16 -0
- data/ext/smoke/qtopengl/config.xml.cmake +1 -0
- data/ext/smoke/qtxmlpatterns/smokeconfig.xml +1 -1
- data/extconf.rb +60 -58
- data/lib/1.8/libqtruby4shared.dll +0 -0
- data/lib/1.8/libsmokebase.dll +0 -0
- data/lib/1.8/libsmokeqtcore.dll +0 -0
- data/lib/1.8/libsmokeqtgui.dll +0 -0
- data/lib/1.8/libsmokeqthelp.dll +0 -0
- data/lib/1.8/libsmokeqtmultimedia.dll +0 -0
- data/lib/1.8/libsmokeqtnetwork.dll +0 -0
- data/lib/1.8/libsmokeqtopengl.dll +0 -0
- data/lib/1.8/libsmokeqtscript.dll +0 -0
- data/lib/1.8/libsmokeqtsql.dll +0 -0
- data/lib/1.8/libsmokeqtsvg.dll +0 -0
- data/lib/1.8/libsmokeqttest.dll +0 -0
- data/lib/1.8/libsmokeqtuitools.dll +0 -0
- data/lib/1.8/libsmokeqtwebkit.dll +0 -0
- data/lib/1.8/libsmokeqtxml.dll +0 -0
- data/lib/1.8/libsmokeqtxmlpatterns.dll +0 -0
- data/lib/1.8/qtruby4.so +0 -0
- data/lib/1.8/qtscript.so +0 -0
- data/lib/1.8/qttest.so +0 -0
- data/lib/1.8/qtuitools.so +0 -0
- data/lib/1.8/qtwebkit.so +0 -0
- data/lib/1.9/libqtruby4shared.dll +0 -0
- data/lib/1.9/libsmokebase.dll +0 -0
- data/lib/1.9/libsmokeqtcore.dll +0 -0
- data/lib/1.9/libsmokeqtgui.dll +0 -0
- data/lib/1.9/libsmokeqthelp.dll +0 -0
- data/lib/1.9/libsmokeqtmultimedia.dll +0 -0
- data/lib/1.9/libsmokeqtnetwork.dll +0 -0
- data/lib/1.9/libsmokeqtopengl.dll +0 -0
- data/lib/1.9/libsmokeqtscript.dll +0 -0
- data/lib/1.9/libsmokeqtsql.dll +0 -0
- data/lib/1.9/libsmokeqtsvg.dll +0 -0
- data/lib/1.9/libsmokeqttest.dll +0 -0
- data/lib/1.9/libsmokeqtuitools.dll +0 -0
- data/lib/1.9/libsmokeqtwebkit.dll +0 -0
- data/lib/1.9/libsmokeqtxml.dll +0 -0
- data/lib/1.9/libsmokeqtxmlpatterns.dll +0 -0
- data/lib/1.9/qtruby4.so +0 -0
- data/lib/1.9/qtscript.so +0 -0
- data/lib/1.9/qttest.so +0 -0
- data/lib/1.9/qtuitools.so +0 -0
- data/lib/1.9/qtwebkit.so +0 -0
- data/lib/Qt/qtruby4.rb +12 -15
- data/lib/qtbindings_version.rb +2 -2
- metadata +11 -6
- data/examples/textedit/textedit.rb +0 -150
- data/ext/ruby/qtruby/src/extconf.rb +0 -11
@@ -99,6 +99,7 @@ static char const * const _S_token_names[] = {
|
|
99
99
|
"signals",
|
100
100
|
"signed",
|
101
101
|
"sizeof",
|
102
|
+
"size_t",
|
102
103
|
"slots",
|
103
104
|
"static",
|
104
105
|
"static_cast",
|
@@ -204,6 +205,7 @@ static char const * const _S_token_texts[] = {
|
|
204
205
|
"signals",
|
205
206
|
"signed",
|
206
207
|
"sizeof",
|
208
|
+
"size_t",
|
207
209
|
"slots",
|
208
210
|
"static",
|
209
211
|
"static_cast",
|
@@ -328,6 +330,7 @@ static char _S_printable[][2] = {
|
|
328
330
|
{ char(125), '\0' },
|
329
331
|
{ char(126), '\0' },
|
330
332
|
{ char(127), '\0' },
|
333
|
+
{ char(128), '\0' },
|
331
334
|
};
|
332
335
|
|
333
336
|
char const *token_name(int token)
|
@@ -182,7 +182,7 @@ void TypeCompiler::visitParameterDeclaration(ParameterDeclarationAST* node)
|
|
182
182
|
TypeCompiler tc(m_session, m_visitor);
|
183
183
|
tc.run(node->type_specifier, node->declarator);
|
184
184
|
NameCompiler name_cc(m_session, m_visitor);
|
185
|
-
if (tc.type().isFunctionPointer())
|
185
|
+
if (tc.type().isFunctionPointer() && node->declarator && node->declarator->sub_declarator)
|
186
186
|
name_cc.run(node->declarator->sub_declarator->id);
|
187
187
|
else if (node->declarator)
|
188
188
|
name_cc.run(node->declarator->id);
|
@@ -362,8 +362,11 @@ smokeruby_mark(void * p)
|
|
362
362
|
if (qstrcmp(className, "QModelIndex") == 0) {
|
363
363
|
QModelIndex * qmodelindex = (QModelIndex *) o->ptr;
|
364
364
|
void * ptr = qmodelindex->internalPointer();
|
365
|
-
|
366
|
-
|
365
|
+
obj = getPointerObject(ptr);
|
366
|
+
if (obj != Qnil) {
|
367
|
+
if (do_debug & qtdb_gc) qWarning("Marking (%s*)%p -> %p", "QModelIndex", ptr, (void*)obj);
|
368
|
+
|
369
|
+
rb_gc_mark(obj);
|
367
370
|
}
|
368
371
|
|
369
372
|
return;
|
@@ -1008,7 +1011,7 @@ qstringFromRString(VALUE rstring) {
|
|
1008
1011
|
encoding = rb_funcall(encoding, rb_intern("to_s"), 0);
|
1009
1012
|
const char * enc_s = RSTRING_PTR(encoding);
|
1010
1013
|
|
1011
|
-
if (qstrcmp(enc_s, "
|
1014
|
+
if (qstrcmp(enc_s, "UTF-8") == 0) {
|
1012
1015
|
return new QString(QString::fromUtf8(StringValuePtr(rstring), RSTRING_LEN(rstring)));
|
1013
1016
|
} else if (qstrcmp(enc_s, "EUC-JP") == 0) {
|
1014
1017
|
codec = QTextCodec::codecForName("eucJP");
|
@@ -2565,6 +2568,7 @@ Q_DECL_EXPORT TypeHandler Qt_handlers[] = {
|
|
2565
2568
|
{ "HPALETTE__*", marshall_voidP },
|
2566
2569
|
{ "HRGN__*", marshall_voidP },
|
2567
2570
|
{ "HWND__*", marshall_voidP },
|
2571
|
+
{ "QFlags&", marshall_it<int *> },
|
2568
2572
|
#if QT_VERSION >= 0x40200
|
2569
2573
|
{ "QList<QGraphicsItem*>", marshall_QGraphicsItemList },
|
2570
2574
|
{ "QList<QGraphicsItem*>&", marshall_QGraphicsItemList },
|
@@ -2613,6 +2617,12 @@ Marshall::HandlerFn getMarshallFn(const SmokeType &type) {
|
|
2613
2617
|
if (h == 0 && type.isConst() && strlen(type.name()) > strlen("const ")) {
|
2614
2618
|
h = type_handlers[type.name() + strlen("const ")];
|
2615
2619
|
}
|
2620
|
+
|
2621
|
+
char last_char = type.name()[strlen(type.name()) - 1];
|
2622
|
+
if (h == 0 && strncmp(type.name(), "QFlags", 6) == 0 && last_char == '&')
|
2623
|
+
{
|
2624
|
+
h = type_handlers["QFlags&"];
|
2625
|
+
}
|
2616
2626
|
|
2617
2627
|
if (h != 0) {
|
2618
2628
|
return h->fn;
|
data/ext/smoke/CMakeLists.txt
CHANGED
@@ -21,6 +21,7 @@ macro_optional_add_bindings(QT_QTSCRIPT_FOUND "QtScript" qtscript)
|
|
21
21
|
macro_optional_add_bindings(QT_QTUITOOLS_FOUND "QtUiTools" qtuitools)
|
22
22
|
macro_optional_add_bindings(QT_QTTEST_FOUND "QtTest" qttest)
|
23
23
|
macro_optional_add_bindings(QT_QTMULTIMEDIA_FOUND "QtMultimedia" qtmultimedia)
|
24
|
+
macro_optional_add_bindings(QT_QTHELP_FOUND "QtHelp" qthelp)
|
24
25
|
|
25
26
|
# for qtguess.pl
|
26
27
|
if (APPLE)
|
@@ -14,6 +14,8 @@
|
|
14
14
|
<signature>.*::d_ptr.*</signature>
|
15
15
|
<signature>.*::q_ptr.*</signature>
|
16
16
|
<signature>.*QUuid::data.*</signature>
|
17
|
+
<signature>.*QBitArray::data_ptr.*</signature>
|
18
|
+
<signature>.*QByteArray::data_ptr.*</signature>
|
17
19
|
<signature>.*\(.*Private.*\).*</signature>
|
18
20
|
<signature>.*QLocale::p</signature>
|
19
21
|
<signature>.*QLocale::v</signature>
|
@@ -27,6 +27,7 @@
|
|
27
27
|
<signature>.*qmlRegisterTypeNotAvailable.*</signature>
|
28
28
|
<!-- windows internal helper functions -->
|
29
29
|
<signature>.*qFrom.*Endian_helper.*</signature>
|
30
|
+
<signature>.*qt_mac_set_cursor.*</signature>
|
30
31
|
</exclude>
|
31
32
|
<functions>
|
32
33
|
<!-- include functions starting with 'q' -->
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
include_directories( ${QT_INCLUDES} ${CMAKE_SOURCE_DIR}/smoke )
|
3
|
+
|
4
|
+
configure_file(config.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.xml @ONLY)
|
5
|
+
|
6
|
+
########### next target ###############
|
7
|
+
|
8
|
+
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp
|
9
|
+
${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp
|
10
|
+
|
11
|
+
COMMAND smokegen
|
12
|
+
ARGS -config "${CMAKE_CURRENT_BINARY_DIR}/config.xml" -smokeconfig "${CMAKE_CURRENT_SOURCE_DIR}/smokeconfig.xml"
|
13
|
+
-- ${CMAKE_CURRENT_SOURCE_DIR}/qthelp_includes.h
|
14
|
+
DEPENDS smokegen generator_smoke WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
15
|
+
|
16
|
+
macro_add_file_dependencies( ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp )
|
17
|
+
|
18
|
+
include_directories (${CMAKE_SOURCE_DIR}/smoke ${CMAKE_SOURCE_DIR}/smoke/qthelp )
|
19
|
+
|
20
|
+
set(smokeqthelp_LIB_SRCS ${CMAKE_CURRENT_BINARY_DIR}/smokedata.cpp
|
21
|
+
${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp
|
22
|
+
)
|
23
|
+
|
24
|
+
IF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
|
25
|
+
ADD_DEFINITIONS(-DGCC_VISIBILITY)
|
26
|
+
ENDIF(CMAKE_CXX_FLAGS MATCHES "-fvisibility")
|
27
|
+
|
28
|
+
# kde4_add_library(smokeqthelp SHARED ${smokeqthelp_LIB_SRCS})
|
29
|
+
add_library(smokeqthelp SHARED ${smokeqthelp_LIB_SRCS})
|
30
|
+
|
31
|
+
target_link_libraries(smokeqthelp
|
32
|
+
smokeqtcore
|
33
|
+
smokeqtgui
|
34
|
+
smokeqtsql
|
35
|
+
${QT_QTCORE_LIBRARY}
|
36
|
+
${QT_QTGUI_LIBRARY}
|
37
|
+
${QT_QTSQL_LIBRARY}
|
38
|
+
${QT_QTHELP_LIBRARY} )
|
39
|
+
|
40
|
+
set_target_properties(smokeqthelp PROPERTIES VERSION 3.0.0 SOVERSION 3 )
|
41
|
+
|
42
|
+
# Don't use the KDE ${LIB_INSTALL_DIR} macro here as this file is
|
43
|
+
# for Qt only installs
|
44
|
+
install(TARGETS smokeqthelp DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} )
|
45
|
+
install(FILES ${CMAKE_SOURCE_DIR}/smoke/qthelp_smoke.h DESTINATION include/smoke)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<config>
|
2
|
+
<resolveTypedefs>true</resolveTypedefs>
|
3
|
+
<qtMode>true</qtMode>
|
4
|
+
<generator>smoke</generator>
|
5
|
+
<definesList>@CMAKE_BINARY_DIR@/smoke/qtdefines</definesList>
|
6
|
+
<includeDirs>
|
7
|
+
<dir>@QT_INCLUDE_DIR@</dir>
|
8
|
+
<dir>@QT_QTCORE_INCLUDE_DIR@</dir>
|
9
|
+
<dir>@QT_QTGUI_INCLUDE_DIR@</dir>
|
10
|
+
<dir>@QT_QTSQL_INCLUDE_DIR@</dir>
|
11
|
+
<dir>@QT_QTHELP_INCLUDE_DIR@</dir>
|
12
|
+
</includeDirs>
|
13
|
+
</config>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<config>
|
2
|
+
<moduleName>qthelp</moduleName>
|
3
|
+
<parentModules>
|
4
|
+
<module>qtcore</module>
|
5
|
+
<module>qtgui</module>
|
6
|
+
<module>qtsql</module>
|
7
|
+
</parentModules>
|
8
|
+
<parts>1</parts>
|
9
|
+
<scalarTypes>
|
10
|
+
<!-- QString is a class, but represented as a scalar (#) in munged names -->
|
11
|
+
<typeName>QString</typeName>
|
12
|
+
</scalarTypes>
|
13
|
+
<voidpTypes>
|
14
|
+
<!-- both are classes, but they are represented as Smoke::t_voidp -->
|
15
|
+
<typeName>QStringList</typeName>
|
16
|
+
<typeName>QString</typeName>
|
17
|
+
</voidpTypes>
|
18
|
+
<exclude>
|
19
|
+
<!-- we don't want private stuff in smoke.. -->
|
20
|
+
<signature>.*::d</signature>
|
21
|
+
<signature>.*::d_ptr</signature>
|
22
|
+
<signature>.*::q_ptr</signature>
|
23
|
+
<signature>.*\(.*Private.*\).*</signature>
|
24
|
+
<!-- Thread related stuff belongs to the bindings language -->
|
25
|
+
<signature>.*QtConcurrent.*</signature>
|
26
|
+
<signature>.*QDomNode.*</signature>
|
27
|
+
<!-- this doesn't link, internal stuff.. -->
|
28
|
+
<signature>.*qFindString.*</signature>
|
29
|
+
<!-- windows internal helper functions -->
|
30
|
+
<signature>.*qFrom.*Endian_helper.*</signature>
|
31
|
+
<signature>.*qt_mac_set_cursor.*</signature>
|
32
|
+
</exclude>
|
33
|
+
<functions>
|
34
|
+
<!-- include functions starting with 'q' -->
|
35
|
+
<name>^q.*</name>
|
36
|
+
<name>.*::q.*</name>
|
37
|
+
<!-- and operators -->
|
38
|
+
<name>.*operator.*</name>
|
39
|
+
</functions>
|
40
|
+
<classList>
|
41
|
+
<class>QHelpContentItem</class>
|
42
|
+
<class>QHelpContentModel</class>
|
43
|
+
<class>QHelpContentWidget</class>
|
44
|
+
<class>QHelpEngine</class>
|
45
|
+
<class>QHelpEngineCore</class>
|
46
|
+
<class>QHelpIndexModel</class>
|
47
|
+
<class>QHelpIndexWidget</class>
|
48
|
+
<class>QHelpSearchEngine</class>
|
49
|
+
<class>QHelpSearchQuery</class>
|
50
|
+
<class>QHelpSearchQueryWidget</class>
|
51
|
+
<class>QHelpSearchResultWidget</class>
|
52
|
+
</classList>
|
53
|
+
</config>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#ifndef QTHELP_SMOKE_H
|
2
|
+
#define QTHELP_SMOKE_H
|
3
|
+
|
4
|
+
#include <smoke.h>
|
5
|
+
|
6
|
+
// Defined in smokedata.cpp, initialized by init_qthelp_Smoke(), used by all .cpp files
|
7
|
+
extern "C" SMOKE_EXPORT Smoke* qthelp_Smoke;
|
8
|
+
extern "C" SMOKE_EXPORT void init_qthelp_Smoke();
|
9
|
+
extern "C" SMOKE_EXPORT void delete_qthelp_Smoke();
|
10
|
+
|
11
|
+
#ifndef QGLOBALSPACE_CLASS
|
12
|
+
#define QGLOBALSPACE_CLASS
|
13
|
+
class QGlobalSpace { };
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#endif
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<signature>.*QXmlNodeModelIndex::documentUri.*</signature>
|
34
34
|
<signature>.*QXmlNodeModelIndex::root.*</signature>
|
35
35
|
<signature>.*QXmlNodeModelIndex::name.*</signature>
|
36
|
-
<signature>.*QXmlNodeModelIndex::is.*</signature>
|
36
|
+
<signature>.*QXmlNodeModelIndex::is\(.*</signature>
|
37
37
|
<signature>.*QXmlNodeModelIndex::stringValue.*</signature>
|
38
38
|
<signature>.*QXmlNodeModelIndex::namespaceForPrefix.*</signature>
|
39
39
|
<signature>.*QXmlName::QXmlName.*short.*</signature>
|
data/extconf.rb
CHANGED
@@ -106,30 +106,31 @@ File.open('Makefile', 'w') do |file|
|
|
106
106
|
file.puts "\tcd ext\\build && mingw32-make"
|
107
107
|
file.puts ""
|
108
108
|
file.puts "install: makedirs"
|
109
|
-
file.puts "\
|
110
|
-
file.puts "\
|
111
|
-
file.puts "\
|
112
|
-
file.puts "\
|
113
|
-
file.puts "\
|
114
|
-
file.puts "\
|
115
|
-
file.puts "\
|
116
|
-
file.puts "\
|
117
|
-
file.puts "\
|
118
|
-
file.puts "\
|
119
|
-
file.puts "\
|
120
|
-
file.puts "\
|
121
|
-
file.puts "\
|
122
|
-
file.puts "\
|
123
|
-
file.puts "\
|
124
|
-
file.puts "\
|
125
|
-
file.puts "\
|
126
|
-
file.puts "\
|
127
|
-
file.puts "\
|
128
|
-
file.puts "\
|
129
|
-
file.puts "\
|
130
|
-
file.puts "\
|
131
|
-
file.puts "\
|
132
|
-
file.puts "\
|
109
|
+
file.puts "\t-copy ext\\build\\smoke\\deptool\\smokedeptool.exe bin\\#{ruby_version}"
|
110
|
+
file.puts "\t-copy ext\\build\\smoke\\qtcore\\libsmokeqtcore.dll lib\\#{ruby_version}"
|
111
|
+
file.puts "\t-copy ext\\build\\smoke\\qtgui\\libsmokeqtgui.dll lib\\#{ruby_version}"
|
112
|
+
file.puts "\t-copy ext\\build\\smoke\\qthelp\\libsmokeqthelp.dll lib\\#{ruby_version}"
|
113
|
+
file.puts "\t-copy ext\\build\\smoke\\qtmultimedia\\libsmokeqtmultimedia.dll lib\\#{ruby_version}"
|
114
|
+
file.puts "\t-copy ext\\build\\smoke\\qtnetwork\\libsmokeqtnetwork.dll lib\\#{ruby_version}"
|
115
|
+
file.puts "\t-copy ext\\build\\smoke\\qtopengl\\libsmokeqtopengl.dll lib\\#{ruby_version}"
|
116
|
+
file.puts "\t-copy ext\\build\\smoke\\qtscript\\libsmokeqtscript.dll lib\\#{ruby_version}"
|
117
|
+
file.puts "\t-copy ext\\build\\smoke\\qtsql\\libsmokeqtsql.dll lib\\#{ruby_version}"
|
118
|
+
file.puts "\t-copy ext\\build\\smoke\\qtsvg\\libsmokeqtsvg.dll lib\\#{ruby_version}"
|
119
|
+
file.puts "\t-copy ext\\build\\smoke\\qttest\\libsmokeqttest.dll lib\\#{ruby_version}"
|
120
|
+
file.puts "\t-copy ext\\build\\smoke\\qtuitools\\libsmokeqtuitools.dll lib\\#{ruby_version}"
|
121
|
+
file.puts "\t-copy ext\\build\\smoke\\qtwebkit\\libsmokeqtwebkit.dll lib\\#{ruby_version}"
|
122
|
+
file.puts "\t-copy ext\\build\\smoke\\qtxml\\libsmokeqtxml.dll lib\\#{ruby_version}"
|
123
|
+
file.puts "\t-copy ext\\build\\smoke\\qtxmlpatterns\\libsmokeqtxmlpatterns.dll lib\\#{ruby_version}"
|
124
|
+
file.puts "\t-copy ext\\build\\smoke\\smokeapi\\smokeapi.exe bin\\#{ruby_version}"
|
125
|
+
file.puts "\t-copy ext\\build\\smoke\\smokebase\\libsmokebase.dll lib\\#{ruby_version}"
|
126
|
+
file.puts "\t-copy ext\\build\\ruby\\qtruby\\src\\libqtruby4shared.dll lib\\#{ruby_version}"
|
127
|
+
file.puts "\t-copy ext\\build\\ruby\\qtruby\\src\\qtruby4.dll lib\\#{ruby_version}\\qtruby4.so"
|
128
|
+
file.puts "\t-copy ext\\build\\ruby\\qtscript\\qtscript.dll lib\\#{ruby_version}\\qtscript.so"
|
129
|
+
file.puts "\t-copy ext\\build\\ruby\\qttest\\qttest.dll lib\\#{ruby_version}\\qttest.so"
|
130
|
+
file.puts "\t-copy ext\\build\\ruby\\qtuitools\\qtuitools.dll lib\\#{ruby_version}\\qtuitools.so"
|
131
|
+
file.puts "\t-copy ext\\build\\ruby\\qtwebkit\\qtwebkit.dll lib\\#{ruby_version}\\qtwebkit.so"
|
132
|
+
file.puts "\t-copy ext\\build\\ruby\\qtruby\\tools\\rbrcc\\rbrcc.exe bin\\#{ruby_version}"
|
133
|
+
file.puts "\t-copy ext\\build\\ruby\\qtruby\\tools\\rbuic\\rbuic4.exe bin\\#{ruby_version}"
|
133
134
|
file.puts ""
|
134
135
|
file.puts "installqt: makedirs"
|
135
136
|
file.puts "\tcopy #{qt_sdk_path}\\qt\\bin\\*.dll bin"
|
@@ -237,41 +238,42 @@ File.open('Makefile', 'w') do |file|
|
|
237
238
|
file.puts ""
|
238
239
|
file.puts "install: makedirs"
|
239
240
|
if macosx
|
240
|
-
file.puts "\
|
241
|
-
file.puts "\
|
242
|
-
file.puts "\
|
243
|
-
file.puts "\
|
244
|
-
file.puts "\
|
245
|
-
file.puts "\
|
246
|
-
file.puts "\
|
247
|
-
file.puts "\
|
248
|
-
file.puts "\
|
241
|
+
file.puts "\t-cp ext/build/smoke/smokeapi/smokeapi bin/#{ruby_version}"
|
242
|
+
file.puts "\t-cp ext/build/smoke/deptool/smokedeptool bin/#{ruby_version}"
|
243
|
+
file.puts "\t-cp ext/build/ruby/qtruby/src/qtruby4.so lib/#{ruby_version}/qtruby4.bundle"
|
244
|
+
file.puts "\t-cp ext/build/ruby/qtscript/qtscript.* lib/#{ruby_version}/qtscript.bundle"
|
245
|
+
file.puts "\t-cp ext/build/ruby/qttest/qttest.* lib/#{ruby_version}/qttest.bundle"
|
246
|
+
file.puts "\t-cp ext/build/ruby/qtuitools/qtuitools.* lib/#{ruby_version}/qtuitools.bundle"
|
247
|
+
file.puts "\t-cp ext/build/ruby/qtwebkit/qtwebkit.* lib/#{ruby_version}/qtwebkit.bundle"
|
248
|
+
file.puts "\t-cp ext/build/ruby/qtruby/tools/rbrcc/rbrcc bin/#{ruby_version}"
|
249
|
+
file.puts "\t-cp ext/build/ruby/qtruby/tools/rbuic/rbuic4 bin/#{ruby_version}"
|
249
250
|
else
|
250
|
-
file.puts "\
|
251
|
-
file.puts "\
|
252
|
-
file.puts "\
|
253
|
-
file.puts "\
|
254
|
-
file.puts "\
|
255
|
-
file.puts "\
|
256
|
-
file.puts "\
|
257
|
-
file.puts "\
|
258
|
-
file.puts "\
|
259
|
-
file.puts "\
|
260
|
-
file.puts "\
|
261
|
-
file.puts "\
|
262
|
-
file.puts "\
|
263
|
-
file.puts "\
|
264
|
-
file.puts "\
|
265
|
-
file.puts "\
|
266
|
-
file.puts "\
|
267
|
-
file.puts "\
|
268
|
-
file.puts "\
|
269
|
-
file.puts "\
|
270
|
-
file.puts "\
|
271
|
-
file.puts "\
|
272
|
-
file.puts "\
|
273
|
-
file.puts "\
|
274
|
-
file.puts "\
|
251
|
+
file.puts "\t-cp ext/build/smoke/deptool/smokedeptool bin/#{ruby_version}"
|
252
|
+
file.puts "\t-cp ext/build/smoke/qtcore/libsmokeqtcore.* lib/#{ruby_version}"
|
253
|
+
file.puts "\t-cp ext/build/smoke/qtdbus/libsmokeqtdbus.* lib/#{ruby_version}"
|
254
|
+
file.puts "\t-cp ext/build/smoke/qtgui/libsmokeqtgui.* lib/#{ruby_version}"
|
255
|
+
file.puts "\t-cp ext/build/smoke/qthelp/libsmokeqthelp.* lib/#{ruby_version}"
|
256
|
+
file.puts "\t-cp ext/build/smoke/qtmultimedia/libsmokeqtmultimedia.* lib/#{ruby_version}"
|
257
|
+
file.puts "\t-cp ext/build/smoke/qtnetwork/libsmokeqtnetwork.* lib/#{ruby_version}"
|
258
|
+
file.puts "\t-cp ext/build/smoke/qtopengl/libsmokeqtopengl.* lib/#{ruby_version}"
|
259
|
+
file.puts "\t-cp ext/build/smoke/qtscript/libsmokeqtscript.* lib/#{ruby_version}"
|
260
|
+
file.puts "\t-cp ext/build/smoke/qtsql/libsmokeqtsql.* lib/#{ruby_version}"
|
261
|
+
file.puts "\t-cp ext/build/smoke/qtsvg/libsmokeqtsvg.* lib/#{ruby_version}"
|
262
|
+
file.puts "\t-cp ext/build/smoke/qttest/libsmokeqttest.* lib/#{ruby_version}"
|
263
|
+
file.puts "\t-cp ext/build/smoke/qtuitools/libsmokeqtuitools.* lib/#{ruby_version}"
|
264
|
+
file.puts "\t-cp ext/build/smoke/qtwebkit/libsmokeqtwebkit.* lib/#{ruby_version}"
|
265
|
+
file.puts "\t-cp ext/build/smoke/qtxml/libsmokeqtxml.* lib/#{ruby_version}"
|
266
|
+
file.puts "\t-cp ext/build/smoke/qtxmlpatterns/libsmokeqtxmlpatterns.* lib/#{ruby_version}"
|
267
|
+
file.puts "\t-cp ext/build/smoke/smokeapi/smokeapi bin/#{ruby_version}"
|
268
|
+
file.puts "\t-cp ext/build/smoke/smokebase/libsmokebase.* lib/#{ruby_version}"
|
269
|
+
file.puts "\t-cp ext/build/ruby/qtruby/src/libqtruby4shared.* lib/#{ruby_version}"
|
270
|
+
file.puts "\t-cp ext/build/ruby/qtruby/src/qtruby4.* lib/#{ruby_version}"
|
271
|
+
file.puts "\t-cp ext/build/ruby/qtscript/qtscript.* lib/#{ruby_version}"
|
272
|
+
file.puts "\t-cp ext/build/ruby/qttest/qttest.* lib/#{ruby_version}"
|
273
|
+
file.puts "\t-cp ext/build/ruby/qtuitools/qtuitools.* lib/#{ruby_version}"
|
274
|
+
file.puts "\t-cp ext/build/ruby/qtwebkit/qtwebkit.* lib/#{ruby_version}"
|
275
|
+
file.puts "\t-cp ext/build/ruby/qtruby/tools/rbrcc/rbrcc bin/#{ruby_version}"
|
276
|
+
file.puts "\t-cp ext/build/ruby/qtruby/tools/rbuic/rbuic4 bin/#{ruby_version}"
|
275
277
|
end
|
276
278
|
end
|
277
279
|
end
|
Binary file
|
data/lib/1.8/libsmokebase.dll
CHANGED
Binary file
|
data/lib/1.8/libsmokeqtcore.dll
CHANGED
Binary file
|
data/lib/1.8/libsmokeqtgui.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/1.8/libsmokeqtsql.dll
CHANGED
Binary file
|
data/lib/1.8/libsmokeqtsvg.dll
CHANGED
Binary file
|
data/lib/1.8/libsmokeqttest.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.8/libsmokeqtxml.dll
CHANGED
Binary file
|
Binary file
|
data/lib/1.8/qtruby4.so
CHANGED
Binary file
|
data/lib/1.8/qtscript.so
CHANGED
Binary file
|
data/lib/1.8/qttest.so
CHANGED
Binary file
|
data/lib/1.8/qtuitools.so
CHANGED
Binary file
|
data/lib/1.8/qtwebkit.so
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/libsmokebase.dll
CHANGED
Binary file
|
data/lib/1.9/libsmokeqtcore.dll
CHANGED
Binary file
|
data/lib/1.9/libsmokeqtgui.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/libsmokeqtsql.dll
CHANGED
Binary file
|
data/lib/1.9/libsmokeqtsvg.dll
CHANGED
Binary file
|
data/lib/1.9/libsmokeqttest.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/1.9/libsmokeqtxml.dll
CHANGED
Binary file
|
Binary file
|
data/lib/1.9/qtruby4.so
CHANGED
Binary file
|
data/lib/1.9/qtscript.so
CHANGED
Binary file
|
data/lib/1.9/qttest.so
CHANGED
Binary file
|
data/lib/1.9/qtuitools.so
CHANGED
Binary file
|
data/lib/1.9/qtwebkit.so
CHANGED
Binary file
|
data/lib/Qt/qtruby4.rb
CHANGED
@@ -2533,14 +2533,13 @@ module Qt
|
|
2533
2533
|
end
|
2534
2534
|
|
2535
2535
|
def Internal.checkarg(argtype, typename)
|
2536
|
-
puts " #{typename} (#{argtype})" if debug_level >= DebugLevel::High
|
2537
2536
|
const_point = typename =~ /^const\s+/ ? -1 : 0
|
2538
2537
|
if argtype == 'i'
|
2539
2538
|
if typename =~ /^int&?$|^signed int&?$|^signed$|^qint32&?$/
|
2540
2539
|
return 6 + const_point
|
2541
2540
|
elsif typename =~ /^quint32&?$/
|
2542
2541
|
return 4 + const_point
|
2543
|
-
elsif typename =~ /^(?:short|ushort|unsigned short int|unsigned short|uchar
|
2542
|
+
elsif typename =~ /^(?:short|ushort|unsigned short int|unsigned short|uchar|char|unsigned char|uint|long|ulong|unsigned long int|unsigned|float|double|WId|HBITMAP__\*|HDC__\*|HFONT__\*|HICON__\*|HINSTANCE__\*|HPALETTE__\*|HRGN__\*|HWND__\*|Q_PID|^quint16&?$|^qint16&?$)$/
|
2544
2543
|
return 4 + const_point
|
2545
2544
|
elsif typename =~ /^(quint|qint|qulong|qlong|qreal)/
|
2546
2545
|
return 4 + const_point
|
@@ -2741,11 +2740,9 @@ module Qt
|
|
2741
2740
|
|
2742
2741
|
# Debugging output for method lookup
|
2743
2742
|
if debug_level >= DebugLevel::High
|
2744
|
-
puts "
|
2745
|
-
puts ":: method == #{method}"
|
2743
|
+
puts "Searching for #{classname}##{method}"
|
2746
2744
|
puts "Munged method names:"
|
2747
|
-
methods.each {|meth| puts "
|
2748
|
-
puts "-> methodIds == #{methodIds.inspect}"
|
2745
|
+
methods.each {|meth| puts " #{meth}"}
|
2749
2746
|
puts "candidate list:"
|
2750
2747
|
prototypes = dumpCandidates(methodIds).split("\n")
|
2751
2748
|
line_len = (prototypes.collect { |p| p.length }).max
|
@@ -2764,24 +2761,24 @@ module Qt
|
|
2764
2761
|
current_match = (isConstMethod(id) ? 1 : 0)
|
2765
2762
|
(0...args.length).each do
|
2766
2763
|
|i|
|
2767
|
-
|
2764
|
+
typename = get_arg_type_name(id, i)
|
2765
|
+
argtype = get_value_type(args[i])
|
2766
|
+
score = checkarg(argtype, typename)
|
2767
|
+
current_match += score
|
2768
|
+
puts " #{typename} (#{argtype}) score: #{score}" if debug_level >= DebugLevel::High
|
2768
2769
|
end
|
2769
2770
|
|
2770
2771
|
# Note that if current_match > best_match, then chosen must be nil
|
2771
2772
|
if current_match > best_match
|
2772
2773
|
best_match = current_match
|
2773
2774
|
chosen = id
|
2774
|
-
#
|
2775
|
-
# If ambiguous matches occur the problem must be fixed be adjusting the relative
|
2776
|
-
# ranking of the arg types involved in checkarg().
|
2775
|
+
# Ties are bad - but it is better to chose something than to fail
|
2777
2776
|
elsif current_match == best_match && id.smoke == chosen.smoke
|
2778
|
-
puts "multiple methods
|
2779
|
-
chosen =
|
2777
|
+
puts " ****** warning: multiple methods with the same score of #{current_match}: #{chosen.index} and #{id.index}" if debug_level >= DebugLevel::Minimal
|
2778
|
+
chosen = id
|
2780
2779
|
end
|
2781
|
-
puts "match => #{id.index} score: #{current_match} chosen: #{chosen}" if debug_level >= DebugLevel::High
|
2780
|
+
puts " match => smoke: #{id.smoke} index: #{id.index} score: #{current_match} chosen: #{chosen ? chosen.index : nil}" if debug_level >= DebugLevel::High
|
2782
2781
|
end
|
2783
|
-
|
2784
|
-
puts "Resolved to id: #{chosen.index}" if !chosen.nil? && debug_level >= DebugLevel::High
|
2785
2782
|
end
|
2786
2783
|
|
2787
2784
|
# Additional debugging output
|
data/lib/qtbindings_version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
QTBINDINGS_VERSION = '4.6.3.
|
2
|
-
QTBINDINGS_RELEASE_DATE = '
|
1
|
+
QTBINDINGS_VERSION = '4.6.3.2'
|
2
|
+
QTBINDINGS_RELEASE_DATE = '2010-12-05 23:33:05 -0700'
|