qtbindings 4.6.3.1 → 4.6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.txt +14 -0
- data/KNOWN_ISSUES.txt +5 -11
- 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/Qt/qtruby4.rb +12 -15
- data/lib/qtbindings_version.rb +2 -2
- metadata +8 -8
- data/examples/textedit/textedit.rb +0 -150
- data/ext/ruby/qtruby/src/extconf.rb +0 -11
@@ -244,7 +244,7 @@ bool Util::canClassBeInstanciated(const Class* klass)
|
|
244
244
|
if (meth.isConstructor()) {
|
245
245
|
ctorFound = true;
|
246
246
|
if (meth.access() != Access_private) {
|
247
|
-
// this class can be
|
247
|
+
// this class can be instanstiated
|
248
248
|
publicCtorFound = true;
|
249
249
|
}
|
250
250
|
} else if ((meth.flags() & Method::PureVirtual) && meth.access() == Access_private) {
|
@@ -252,9 +252,9 @@ bool Util::canClassBeInstanciated(const Class* klass)
|
|
252
252
|
}
|
253
253
|
}
|
254
254
|
|
255
|
-
// The class can be
|
255
|
+
// The class can be instanstiated if it has a public constructor or no constructor at all
|
256
256
|
// because then it has a default one generated by the compiler.
|
257
|
-
// If it has private pure virtuals, then it can't be
|
257
|
+
// If it has private pure virtuals, then it can't be instanstiated either.
|
258
258
|
bool ret = ((publicCtorFound || !ctorFound) && !privatePureVirtualsFound);
|
259
259
|
cache[klass] = ret;
|
260
260
|
return ret;
|
@@ -375,7 +375,7 @@ void Util::checkForAbstractClass(Class* klass)
|
|
375
375
|
list << &meth;
|
376
376
|
}
|
377
377
|
|
378
|
-
// abstract classes can't be
|
378
|
+
// abstract classes can't be instanstiated - remove the constructors
|
379
379
|
if (hasPrivatePureVirtuals) {
|
380
380
|
foreach (const Method* ctor, list) {
|
381
381
|
klass->methodsRef().removeOne(*ctor);
|
@@ -714,7 +714,7 @@ QList<const Method*> Util::virtualMethodsForClass(const Class* klass)
|
|
714
714
|
{
|
715
715
|
static QHash<const Class*, QList<const Method*> > cache;
|
716
716
|
|
717
|
-
// virtual method callbacks for classes that can't be
|
717
|
+
// virtual method callbacks for classes that can't be instanstiated aren't useful
|
718
718
|
if (!Util::canClassBeInstanciated(klass))
|
719
719
|
return QList<const Method*>();
|
720
720
|
|
@@ -469,7 +469,7 @@ void SmokeClassFiles::writeClass(QTextStream& out, const Class* klass, const QSt
|
|
469
469
|
}
|
470
470
|
|
471
471
|
// destructor
|
472
|
-
// if the class can't be
|
472
|
+
// if the class can't be instanstiated, a callback when it's deleted is unnecessary
|
473
473
|
if (Util::canClassBeInstanciated(klass)) {
|
474
474
|
out << " ~" << smokeClassName << "() ";
|
475
475
|
if (destructor && destructor->hasExceptionSpec()) {
|
@@ -369,9 +369,8 @@ void Parser::reportError(const QString& msg)
|
|
369
369
|
Problem *p = new Problem;
|
370
370
|
p->file = session->url().str();
|
371
371
|
p->position = position;
|
372
|
-
p->description = msg;
|
372
|
+
p->description = msg + " : " + QString::fromUtf8(lineFromContents(session->contents(), p->position.line));
|
373
373
|
p->source = Problem::Source_Parser;
|
374
|
-
|
375
374
|
control->reportProblem(p);
|
376
375
|
}
|
377
376
|
else if (_M_hold_errors)
|
@@ -411,6 +410,7 @@ bool Parser::skipUntilDeclaration()
|
|
411
410
|
case Token_identifier:
|
412
411
|
case Token_operator:
|
413
412
|
case Token_char:
|
413
|
+
case Token_size_t:
|
414
414
|
case Token_wchar_t:
|
415
415
|
case Token_bool:
|
416
416
|
case Token_short:
|
@@ -476,6 +476,7 @@ bool Parser::skipUntilStatement()
|
|
476
476
|
case Token_catch:
|
477
477
|
case Token_throw:
|
478
478
|
case Token_char:
|
479
|
+
case Token_size_t:
|
479
480
|
case Token_wchar_t:
|
480
481
|
case Token_bool:
|
481
482
|
case Token_short:
|
@@ -1199,6 +1200,7 @@ bool Parser::parseSimpleTypeSpecifier(TypeSpecifierAST *&node,
|
|
1199
1200
|
switch(session->token_stream->lookAhead())
|
1200
1201
|
{
|
1201
1202
|
case Token_char:
|
1203
|
+
case Token_size_t:
|
1202
1204
|
case Token_wchar_t:
|
1203
1205
|
case Token_bool:
|
1204
1206
|
case Token_short:
|
@@ -36,6 +36,26 @@ QByteArray stringFromContents(const PreprocessedContents& contents, int offset,
|
|
36
36
|
return ret;
|
37
37
|
}
|
38
38
|
|
39
|
+
#include <stdio.h>
|
40
|
+
|
41
|
+
QByteArray lineFromContents(const uint* contents, int lineNumber) {
|
42
|
+
int a1 = 0;
|
43
|
+
int lineCount = 0;
|
44
|
+
while (lineCount < lineNumber) {
|
45
|
+
if (isNewline(contents[a1])) {
|
46
|
+
lineCount++;
|
47
|
+
}
|
48
|
+
a1++;
|
49
|
+
}
|
50
|
+
|
51
|
+
int a2 = a1;
|
52
|
+
while (!isNewline(contents[a2])) {
|
53
|
+
a2++;
|
54
|
+
}
|
55
|
+
|
56
|
+
return stringFromContents(contents + a1, a2 - a1);
|
57
|
+
}
|
58
|
+
|
39
59
|
QByteArray stringFromContents(const uint* contents, int count) {
|
40
60
|
QByteArray ret;
|
41
61
|
for(int a = 0; a < count; ++a) {
|
@@ -72,12 +72,19 @@ inline bool isNumber(unsigned int c) {
|
|
72
72
|
return isCharacter(c) && QChar(characterFromIndex(c)).isNumber();
|
73
73
|
}
|
74
74
|
|
75
|
+
inline bool isNewline(unsigned int c) {
|
76
|
+
return isCharacter(c) && characterFromIndex(c) == '\n';
|
77
|
+
}
|
78
|
+
|
75
79
|
///Opposite of convertFromByteArray
|
76
80
|
CPPPARSER_EXPORT QByteArray stringFromContents(const PreprocessedContents& contents, int offset = 0, int count = 0);
|
77
81
|
|
78
82
|
///Opposite of convertFromByteArray
|
79
83
|
CPPPARSER_EXPORT QByteArray stringFromContents(const uint* contents, int count);
|
80
84
|
|
85
|
+
///Return the line at the given line number from the contents
|
86
|
+
CPPPARSER_EXPORT QByteArray lineFromContents(const uint* contents, int lineNumber);
|
87
|
+
|
81
88
|
///Returns a string that has a gap inserted between the tokens(for debugging)
|
82
89
|
CPPPARSER_EXPORT QByteArray stringFromContentsWithGaps(const PreprocessedContents& contents, int offset = 0, int count = 0);
|
83
90
|
|
@@ -268,10 +268,10 @@ void pp_macro_expander::operator()(Stream& input, Stream& output)
|
|
268
268
|
output << '\"';
|
269
269
|
|
270
270
|
while (!is.atEnd()) {
|
271
|
-
if (
|
271
|
+
if (is == '"') {
|
272
272
|
output << '\\' << is;
|
273
273
|
|
274
|
-
} else if (
|
274
|
+
} else if (is == '\n') {
|
275
275
|
output << '"' << is << '"';
|
276
276
|
|
277
277
|
} else {
|
@@ -338,7 +338,7 @@ void pp_macro_expander::operator()(Stream& input, Stream& output)
|
|
338
338
|
|
339
339
|
skip_blanks(input, devnull());
|
340
340
|
//Omit paste tokens behind empty used actuals, else we will merge with the previous text
|
341
|
-
if(input == '#' && (++input) == '#') {
|
341
|
+
if(!input.atEnd() && input == '#' && !(++input).atEnd() && input == '#') {
|
342
342
|
++input;
|
343
343
|
//We have skipped a paste token
|
344
344
|
}else{
|
@@ -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
|