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.
Files changed (89) hide show
  1. data/CHANGELOG.txt +14 -0
  2. data/KNOWN_ISSUES.txt +5 -11
  3. data/bin/1.8/rbrcc.exe +0 -0
  4. data/bin/1.8/rbuic4.exe +0 -0
  5. data/bin/1.8/smokeapi.exe +0 -0
  6. data/bin/1.8/smokedeptool.exe +0 -0
  7. data/bin/1.9/rbrcc.exe +0 -0
  8. data/bin/1.9/rbuic4.exe +0 -0
  9. data/bin/1.9/smokeapi.exe +0 -0
  10. data/bin/1.9/smokedeptool.exe +0 -0
  11. data/examples/itemviews/chart/pieview.rb +1 -1
  12. data/examples/network/ftp/ftpwindow.rb +8 -3
  13. data/examples/network/http/httpwindow.rb +1 -1
  14. data/examples/painting/fontsampler/mainwindow.rb +14 -13
  15. data/examples/painting/fontsampler/previewdialog.rb +40 -39
  16. data/examples/painting/fontsampler/previewlabel.rb +2 -2
  17. data/examples/painting/svgviewer/svgwindow.rb +2 -2
  18. data/ext/cmake/modules/FindQt4.cmake +1 -0
  19. data/ext/generator/generatorpreprocessor.cpp +43 -1
  20. data/ext/generator/generators/smoke/generator_smoke.cpp +8 -1
  21. data/ext/generator/generators/smoke/helpers.cpp +5 -5
  22. data/ext/generator/generators/smoke/writeClasses.cpp +1 -1
  23. data/ext/generator/parser/lexer.cpp +1 -0
  24. data/ext/generator/parser/parser.cpp +4 -2
  25. data/ext/generator/parser/rpp/chartools.cpp +20 -0
  26. data/ext/generator/parser/rpp/chartools.h +7 -0
  27. data/ext/generator/parser/rpp/pp-macro-expander.cpp +3 -3
  28. data/ext/generator/parser/tokens.cpp +3 -0
  29. data/ext/generator/parser/tokens.h +1 -0
  30. data/ext/generator/type_compiler.cpp +1 -1
  31. data/ext/ruby/qtruby/src/handlers.cpp +13 -3
  32. data/ext/smoke/CMakeLists.txt +1 -0
  33. data/ext/smoke/qtcore/smokeconfig.xml +2 -0
  34. data/ext/smoke/qtdeclarative/smokeconfig.xml +1 -0
  35. data/ext/smoke/qthelp/CMakeLists.txt +45 -0
  36. data/ext/smoke/qthelp/config.xml.cmake +13 -0
  37. data/ext/smoke/qthelp/qthelp_includes.h +3 -0
  38. data/ext/smoke/qthelp/smokeconfig.xml +53 -0
  39. data/ext/smoke/qthelp_smoke.h +16 -0
  40. data/ext/smoke/qtopengl/config.xml.cmake +1 -0
  41. data/ext/smoke/qtxmlpatterns/smokeconfig.xml +1 -1
  42. data/extconf.rb +60 -58
  43. data/lib/1.8/libqtruby4shared.dll +0 -0
  44. data/lib/1.8/libsmokebase.dll +0 -0
  45. data/lib/1.8/libsmokeqtcore.dll +0 -0
  46. data/lib/1.8/libsmokeqtgui.dll +0 -0
  47. data/lib/1.8/libsmokeqthelp.dll +0 -0
  48. data/lib/1.8/libsmokeqtmultimedia.dll +0 -0
  49. data/lib/1.8/libsmokeqtnetwork.dll +0 -0
  50. data/lib/1.8/libsmokeqtopengl.dll +0 -0
  51. data/lib/1.8/libsmokeqtscript.dll +0 -0
  52. data/lib/1.8/libsmokeqtsql.dll +0 -0
  53. data/lib/1.8/libsmokeqtsvg.dll +0 -0
  54. data/lib/1.8/libsmokeqttest.dll +0 -0
  55. data/lib/1.8/libsmokeqtuitools.dll +0 -0
  56. data/lib/1.8/libsmokeqtwebkit.dll +0 -0
  57. data/lib/1.8/libsmokeqtxml.dll +0 -0
  58. data/lib/1.8/libsmokeqtxmlpatterns.dll +0 -0
  59. data/lib/1.8/qtruby4.so +0 -0
  60. data/lib/1.8/qtscript.so +0 -0
  61. data/lib/1.8/qttest.so +0 -0
  62. data/lib/1.8/qtuitools.so +0 -0
  63. data/lib/1.8/qtwebkit.so +0 -0
  64. data/lib/1.9/libqtruby4shared.dll +0 -0
  65. data/lib/1.9/libsmokebase.dll +0 -0
  66. data/lib/1.9/libsmokeqtcore.dll +0 -0
  67. data/lib/1.9/libsmokeqtgui.dll +0 -0
  68. data/lib/1.9/libsmokeqthelp.dll +0 -0
  69. data/lib/1.9/libsmokeqtmultimedia.dll +0 -0
  70. data/lib/1.9/libsmokeqtnetwork.dll +0 -0
  71. data/lib/1.9/libsmokeqtopengl.dll +0 -0
  72. data/lib/1.9/libsmokeqtscript.dll +0 -0
  73. data/lib/1.9/libsmokeqtsql.dll +0 -0
  74. data/lib/1.9/libsmokeqtsvg.dll +0 -0
  75. data/lib/1.9/libsmokeqttest.dll +0 -0
  76. data/lib/1.9/libsmokeqtuitools.dll +0 -0
  77. data/lib/1.9/libsmokeqtwebkit.dll +0 -0
  78. data/lib/1.9/libsmokeqtxml.dll +0 -0
  79. data/lib/1.9/libsmokeqtxmlpatterns.dll +0 -0
  80. data/lib/1.9/qtruby4.so +0 -0
  81. data/lib/1.9/qtscript.so +0 -0
  82. data/lib/1.9/qttest.so +0 -0
  83. data/lib/1.9/qtuitools.so +0 -0
  84. data/lib/1.9/qtwebkit.so +0 -0
  85. data/lib/Qt/qtruby4.rb +12 -15
  86. data/lib/qtbindings_version.rb +2 -2
  87. metadata +11 -6
  88. data/examples/textedit/textedit.rb +0 -150
  89. data/ext/ruby/qtruby/src/extconf.rb +0 -11
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qtbindings
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 4
8
8
  - 6
9
9
  - 3
10
- - 1
11
- version: 4.6.3.1
10
+ - 2
11
+ version: 4.6.3.2
12
12
  platform: x86-mingw32
13
13
  authors:
14
14
  - Richard Dale
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-10-12 00:00:00 -06:00
21
+ date: 2010-12-05 00:00:00 -07:00
22
22
  default_executable:
23
23
  dependencies: []
24
24
 
@@ -39,6 +39,7 @@ files:
39
39
  - lib/1.8/libsmokebase.dll
40
40
  - lib/1.8/libsmokeqtcore.dll
41
41
  - lib/1.8/libsmokeqtgui.dll
42
+ - lib/1.8/libsmokeqthelp.dll
42
43
  - lib/1.8/libsmokeqtmultimedia.dll
43
44
  - lib/1.8/libsmokeqtnetwork.dll
44
45
  - lib/1.8/libsmokeqtopengl.dll
@@ -59,6 +60,7 @@ files:
59
60
  - lib/1.9/libsmokebase.dll
60
61
  - lib/1.9/libsmokeqtcore.dll
61
62
  - lib/1.9/libsmokeqtgui.dll
63
+ - lib/1.9/libsmokeqthelp.dll
62
64
  - lib/1.9/libsmokeqtmultimedia.dll
63
65
  - lib/1.9/libsmokeqtnetwork.dll
64
66
  - lib/1.9/libsmokeqtopengl.dll
@@ -421,7 +423,6 @@ files:
421
423
  - examples/ruboids/ruboids/WorldWindow.rb
422
424
  - examples/ruboids/TODO
423
425
  - examples/run_all.rb
424
- - examples/textedit/textedit.rb
425
426
  - examples/tutorial/t1/t1.rb
426
427
  - examples/tutorial/t10/cannon.rb
427
428
  - examples/tutorial/t10/lcdrange.rb
@@ -694,7 +695,6 @@ files:
694
695
  - ext/ruby/qtruby/rails_support/CMakeLists.txt
695
696
  - ext/ruby/qtruby/README
696
697
  - ext/ruby/qtruby/src/CMakeLists.txt
697
- - ext/ruby/qtruby/src/extconf.rb
698
698
  - ext/ruby/qtruby/src/handlers.cpp
699
699
  - ext/ruby/qtruby/src/marshall.h
700
700
  - ext/ruby/qtruby/src/marshall_basetypes.h
@@ -800,6 +800,11 @@ files:
800
800
  - ext/smoke/qtgui/qtgui_includes.h
801
801
  - ext/smoke/qtgui/smokeconfig.xml
802
802
  - ext/smoke/qtgui_smoke.h
803
+ - ext/smoke/qthelp/CMakeLists.txt
804
+ - ext/smoke/qthelp/config.xml.cmake
805
+ - ext/smoke/qthelp/qthelp_includes.h
806
+ - ext/smoke/qthelp/smokeconfig.xml
807
+ - ext/smoke/qthelp_smoke.h
803
808
  - ext/smoke/qtmultimedia/CMakeLists.txt
804
809
  - ext/smoke/qtmultimedia/config.xml.cmake
805
810
  - ext/smoke/qtmultimedia/qtmultimedia_includes.h
@@ -1,150 +0,0 @@
1
- #!/usr/bin/ruby -w
2
-
3
- require 'Qt'
4
- require 'rexml/document'
5
-
6
- require '../base/rui.rb'
7
-
8
- class MyTextEditor < Qt::TextEdit
9
- signals 'saved()'
10
- slots 'insert_icon()', 'new()', 'open()', 'save_as()'
11
- def initialize(w = nil)
12
- super(w)
13
- @images = {}
14
- @@next_image_id = 0
15
- self.setTextFormat(Qt::RichText)
16
- end
17
- def insert_richtext(richtext)
18
- # todo, use a rand string
19
- unique_string = '000___xxx123456789xxx___xxx123456789xxx___000'
20
- insert(unique_string)
21
- txt = self.text().gsub(unique_string, richtext)
22
- self.setText(txt)
23
- end
24
- def next_image_id
25
- @@next_image_id += 1
26
- end
27
- def load_image(fname, image_id)
28
- pixmap = Qt::Pixmap.new(fname)
29
- msfactory = Qt::MimeSourceFactory.defaultFactory
30
- msfactory.setPixmap(image_id, pixmap)
31
- @images[image_id] = fname
32
- image_id
33
- end
34
- def insert_icon
35
- fname = Qt::FileDialog.getOpenFileName
36
- return if fname.nil?
37
- image_id = "image_#{next_image_id}"
38
- load_image(fname, image_id)
39
- insert_richtext('<qt><img source="'+image_id+'"></qt>')
40
- end
41
- def createPopupMenu(pos) # virtual
42
- pm = Qt::PopupMenu.new
43
- pm.insertItem("Insert Image!", self, SLOT('insert_icon()'))
44
- pm
45
- end
46
- def has_metadata
47
- !@images.empty?
48
- end
49
- def metadata_fname(fname)
50
- "#{fname}.metadata.xml"
51
- end
52
- def attempt_metadata_load(fname)
53
- return unless File.exists?(metadata_fname(fname))
54
- file = File.open(metadata_fname(fname))
55
- @xmldoc = REXML::Document.new file
56
- @xmldoc.root.elements.each("image") {
57
- |image|
58
- image_id = image.attributes["ident"]
59
- img_fname = image.attributes["filename"]
60
- load_image(img_fname, image_id)
61
- }
62
- end
63
- def metadata_save_if_has(fname)
64
- return if not has_metadata
65
- metadata_doc = REXML::Document.new '<metadata/>'
66
- @images.each {
67
- |id, img_fname|
68
- metadata_doc.root.add_element("image", {"filename"=>img_fname, "ident"=>id})
69
- }
70
- file = File.new(metadata_fname(fname), "w")
71
- file.puts(metadata_doc)
72
- file.close
73
- end
74
- def metadata_clear
75
- @images = {}
76
- end
77
- def new(txt = "")
78
- metadata_clear
79
- self.setText(txt)
80
- end
81
- def open
82
- fname = Qt::FileDialog.getOpenFileName
83
- return if fname.nil?
84
- unless File.exists?(fname)
85
- Qt::MessageBox.critical(self, "File Does Not Exist", "Sorry, unable to find the requested file!")
86
- return
87
- end
88
- return if fname.nil?
89
- txt = File.open(fname).gets(nil)
90
- metadata_clear
91
- attempt_metadata_load(fname)
92
- self.setText(txt)
93
- end
94
- def save_as
95
- fname = Qt::FileDialog.getSaveFileName
96
- return if fname.nil?
97
- if File.exists?(fname)
98
- Qt::MessageBox.critical(self, "File Already Exists", "Sorry, file already exists. Please choose a non-existing filename!")
99
- return save_as
100
- end
101
- file = File.new(fname, "w")
102
- file.puts(text())
103
- file.close
104
- metadata_save_if_has(fname)
105
- emit saved()
106
- end
107
- end
108
-
109
- class MyWidget < Qt::MainWindow
110
- slots 'text_changed()', 'saved()'
111
- def initialize()
112
- super
113
- @editor = MyTextEditor.new(self)
114
- connect(@editor, SIGNAL('textChanged()'), self, SLOT('text_changed()'))
115
- connect(@editor, SIGNAL('saved()'), self, SLOT('saved()'))
116
-
117
- fileTools = Qt::ToolBar.new(self, "file operations")
118
- fileMenu = Qt::PopupMenu.new(self)
119
-
120
- actions = [
121
- RAction.new("&New", Icons::FILE_NEW, @editor, SLOT('new()'), [fileTools, fileMenu]),
122
- RAction.new("&Open...", Icons::FILE_OPEN, @editor, SLOT('open()'), [fileTools, fileMenu]),
123
- @save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, @editor, SLOT('save_as()'), [fileTools, fileMenu]),
124
- RSeperator.new([fileMenu]),
125
- RAction.new("E&xit", Icons::EXIT, $qApp, SLOT('quit()'), [fileMenu])
126
- ]
127
-
128
- build_actions(actions)
129
-
130
- menubar = Qt::MenuBar.new(self)
131
- menubar.insertItem("&File", fileMenu)
132
-
133
- self.setCentralWidget(@editor)
134
- end
135
- def saved
136
- @save.action.setEnabled(false)
137
- end
138
- def text_changed
139
- @save.action.setEnabled(true)
140
- end
141
- end
142
-
143
- a = Qt::Application.new(ARGV)
144
-
145
- w = MyWidget.new
146
- w.show
147
-
148
- a.setMainWidget(w)
149
- a.exec()
150
- exit
@@ -1,11 +0,0 @@
1
- require 'mkmf'
2
- dir_config('smoke')
3
- dir_config('qt')
4
-
5
- # For Linux, BSD*, Mac OS X etc:
6
- $LOCAL_LIBS += '-lsmokeqt -lQtCore -lQtGui -lQtNetwork -lQtOpenGL -lQtSql -lQtXml -lstdc++'
7
-
8
- # For Windows the Qt library names end in '4':
9
- # $LOCAL_LIBS += '-lsmokeqt -lQtCore4 -lQtGui4 -lQtNetwork4 -lQtOpenGL4 -lQtSql4 -lQtXml4 -lstdc++'
10
-
11
- create_makefile("qtruby4")