qtbindings 4.8.5.2-x86-mingw32 → 4.8.6.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.txt +41 -20
  3. data/Rakefile +18 -1
  4. data/bin/2.0/rbrcc.exe +0 -0
  5. data/bin/2.0/rbuic4.exe +0 -0
  6. data/bin/2.0/smokeapi.exe +0 -0
  7. data/bin/2.0/smokedeptool.exe +0 -0
  8. data/bin/2.1/rbrcc.exe +0 -0
  9. data/bin/2.1/rbuic4.exe +0 -0
  10. data/bin/2.1/smokeapi.exe +0 -0
  11. data/bin/2.1/smokedeptool.exe +0 -0
  12. data/bin/rbrcc +1 -5
  13. data/bin/rbuic4 +1 -5
  14. data/bin/smokeapi +1 -5
  15. data/bin/smokedeptool +1 -5
  16. data/examples/threading/main_thread.rb +19 -0
  17. data/extconf.rb +21 -67
  18. data/lib/2.0/libqtruby4shared.dll +0 -0
  19. data/lib/2.0/libsmokebase.dll +0 -0
  20. data/lib/2.0/libsmokeqtcore.dll +0 -0
  21. data/lib/2.0/libsmokeqtdeclarative.dll +0 -0
  22. data/lib/2.0/libsmokeqtgui.dll +0 -0
  23. data/lib/2.0/libsmokeqthelp.dll +0 -0
  24. data/lib/2.0/libsmokeqtmultimedia.dll +0 -0
  25. data/lib/2.0/libsmokeqtnetwork.dll +0 -0
  26. data/lib/2.0/libsmokeqtopengl.dll +0 -0
  27. data/lib/2.0/libsmokeqtscript.dll +0 -0
  28. data/lib/2.0/libsmokeqtsql.dll +0 -0
  29. data/lib/2.0/libsmokeqtsvg.dll +0 -0
  30. data/lib/2.0/libsmokeqttest.dll +0 -0
  31. data/lib/2.0/libsmokeqtuitools.dll +0 -0
  32. data/lib/2.0/libsmokeqtwebkit.dll +0 -0
  33. data/lib/2.0/libsmokeqtxml.dll +0 -0
  34. data/lib/2.0/libsmokeqtxmlpatterns.dll +0 -0
  35. data/lib/2.0/qtdeclarative.so +0 -0
  36. data/lib/2.0/qtruby4.so +0 -0
  37. data/lib/2.0/qtscript.so +0 -0
  38. data/lib/2.0/qttest.so +0 -0
  39. data/lib/2.0/qtuitools.so +0 -0
  40. data/lib/2.0/qtwebkit.so +0 -0
  41. data/lib/2.1/libqtruby4shared.dll +0 -0
  42. data/lib/2.1/libsmokebase.dll +0 -0
  43. data/lib/2.1/libsmokeqtcore.dll +0 -0
  44. data/lib/2.1/libsmokeqtdeclarative.dll +0 -0
  45. data/lib/{1.9 → 2.1}/libsmokeqtgui.dll +0 -0
  46. data/lib/2.1/libsmokeqthelp.dll +0 -0
  47. data/lib/2.1/libsmokeqtmultimedia.dll +0 -0
  48. data/lib/2.1/libsmokeqtnetwork.dll +0 -0
  49. data/lib/2.1/libsmokeqtopengl.dll +0 -0
  50. data/lib/2.1/libsmokeqtscript.dll +0 -0
  51. data/lib/2.1/libsmokeqtsql.dll +0 -0
  52. data/lib/2.1/libsmokeqtsvg.dll +0 -0
  53. data/lib/2.1/libsmokeqttest.dll +0 -0
  54. data/lib/2.1/libsmokeqtuitools.dll +0 -0
  55. data/lib/2.1/libsmokeqtwebkit.dll +0 -0
  56. data/lib/2.1/libsmokeqtxml.dll +0 -0
  57. data/lib/2.1/libsmokeqtxmlpatterns.dll +0 -0
  58. data/lib/2.1/qtdeclarative.so +0 -0
  59. data/lib/2.1/qtruby4.so +0 -0
  60. data/lib/2.1/qtscript.so +0 -0
  61. data/lib/2.1/qttest.so +0 -0
  62. data/lib/2.1/qtuitools.so +0 -0
  63. data/lib/2.1/qtwebkit.so +0 -0
  64. data/lib/Qt/qtruby4.rb +2 -1
  65. data/lib/Qt4.rb +20 -13
  66. data/lib/qtbindings_version.rb +2 -2
  67. data/lib/qtdeclarative/qtdeclarative.rb +17 -0
  68. data/qtbindingsnative.gemspec +1 -1
  69. metadata +84 -83
  70. data/CMakeLists.txt +0 -22
  71. data/bin/1.9/rbrcc.exe +0 -0
  72. data/bin/1.9/rbuic4.exe +0 -0
  73. data/bin/1.9/smokeapi.exe +0 -0
  74. data/bin/1.9/smokedeptool.exe +0 -0
  75. data/examples/base/kicons.rb +0 -54
  76. data/examples/base/rui.rb +0 -21
  77. data/examples/textedit/textedit.rb +0 -150
  78. data/lib/1.9/libqtruby4shared.dll +0 -0
  79. data/lib/1.9/libsmokebase.dll +0 -0
  80. data/lib/1.9/libsmokeqtcore.dll +0 -0
  81. data/lib/1.9/libsmokeqthelp.dll +0 -0
  82. data/lib/1.9/libsmokeqtmultimedia.dll +0 -0
  83. data/lib/1.9/libsmokeqtnetwork.dll +0 -0
  84. data/lib/1.9/libsmokeqtopengl.dll +0 -0
  85. data/lib/1.9/libsmokeqtscript.dll +0 -0
  86. data/lib/1.9/libsmokeqtsql.dll +0 -0
  87. data/lib/1.9/libsmokeqtsvg.dll +0 -0
  88. data/lib/1.9/libsmokeqttest.dll +0 -0
  89. data/lib/1.9/libsmokeqtuitools.dll +0 -0
  90. data/lib/1.9/libsmokeqtwebkit.dll +0 -0
  91. data/lib/1.9/libsmokeqtxml.dll +0 -0
  92. data/lib/1.9/libsmokeqtxmlpatterns.dll +0 -0
  93. data/lib/1.9/qtruby4.so +0 -0
  94. data/lib/1.9/qtscript.so +0 -0
  95. data/lib/1.9/qttest.so +0 -0
  96. data/lib/1.9/qtuitools.so +0 -0
  97. data/lib/1.9/qtwebkit.so +0 -0
  98. data/qtbindings-qt.gemspec +0 -17
data/CMakeLists.txt DELETED
@@ -1,22 +0,0 @@
1
- project(qtbind)
2
-
3
- add_subdirectory(generator)
4
-
5
- # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
6
- set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
7
-
8
- include(MacroOptionalFindPackage)
9
- include(MacroOptionalAddBindings)
10
- include(MacroLogFeature)
11
- include(CheckCXXSourceCompiles)
12
-
13
- FIND_PACKAGE (Qt4 REQUIRED)
14
-
15
- add_definitions (${QT_DEFINITIONS} -DHAVE_CONFIG_H=1)
16
- include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDES} )
17
-
18
- FIND_PACKAGE (RUBY REQUIRED)
19
- FIND_PACKAGE (OpenGL REQUIRED)
20
-
21
- add_subdirectory(smoke)
22
- add_subdirectory(ruby)
data/bin/1.9/rbrcc.exe DELETED
Binary file
data/bin/1.9/rbuic4.exe DELETED
Binary file
data/bin/1.9/smokeapi.exe DELETED
Binary file
Binary file
@@ -1,54 +0,0 @@
1
- class KIconCollection
2
- IconInfo = Struct.new(:collection, :id, :filetype)
3
- def initialize(icon_collections)
4
- @icon_info = {}
5
- icon_collections.each_pair {
6
- |collection_name, collection|
7
- collection.each_pair {
8
- |key, value|
9
- info = IconInfo.new(collection_name, value, "png")
10
- @icon_info[key] = info
11
- }
12
- }
13
- end
14
- def dims
15
- "32x32"
16
- end
17
- def kdedir
18
- ENV["KDEDIR"]
19
- end
20
- def get_icon_path(icon_type)
21
- info = @icon_info[icon_type]
22
- "#{kdedir}/share/icons/default.kde/#{dims}/#{info.collection}/#{info.id}.#{info.filetype}"
23
- end
24
- def get_icon_set(icon_type)
25
- path = get_icon_path(icon_type)
26
- pixmap = Qt::Pixmap.new(path)
27
- icon_set = Qt::IconSet.new
28
- icon_set.setPixmap(pixmap, Qt::IconSet.Small)
29
- icon_set
30
- end
31
- def make_qt_action(parent, text_with_accel, icon_type)
32
- act = Qt::Action.new(parent)
33
- act.setIconSet(get_icon_set(icon_type))
34
- act.setMenuText(text_with_accel)
35
- act
36
- end
37
- end
38
-
39
- module Icons
40
- FILE_NEW, FILE_OPEN, FILE_CLOSE, FILE_SAVE, FILE_SAVE_AS, EXIT = 1,2,3,4,5,6
41
- end
42
-
43
- icon_collections = {
44
- "actions" => {
45
- Icons::FILE_NEW => "filenew",
46
- Icons::FILE_OPEN => "fileopen",
47
- Icons::FILE_CLOSE => "fileclose",
48
- Icons::FILE_SAVE => "filesave",
49
- Icons::FILE_SAVE_AS => "filesaveas",
50
- Icons::EXIT => "exit"
51
- }
52
- }
53
- $kIcons = KIconCollection.new(icon_collections)
54
- print "Using KDEDIR == ", $kIcons.kdedir, "\n"
data/examples/base/rui.rb DELETED
@@ -1,21 +0,0 @@
1
- require '../base/kicons.rb'
2
-
3
- RAction = Struct.new(:text_with_accel, :icon_type, :rec, :slot, :included_in, :action)
4
- RSeperator = Struct.new(:included_in, :id)
5
-
6
- def build_actions(actions)
7
- actions.each { |a|
8
- if a.is_a? RSeperator
9
- a.included_in.each {
10
- |to| a.id = to.insertSeparator()
11
- }
12
- else
13
- qt_action = $kIcons.make_qt_action(self, a.text_with_accel, a.icon_type)
14
- connect(qt_action, SIGNAL('activated()'), a.rec, a.slot)
15
- a.included_in.each {
16
- |to| qt_action.addTo(to)
17
- }
18
- a.action = qt_action
19
- end
20
- }
21
- end
@@ -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
- @images = {}
13
- @@next_image_id = 0
14
- super(w)
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/1.9/qtruby4.so DELETED
Binary file
data/lib/1.9/qtscript.so DELETED
Binary file
data/lib/1.9/qttest.so DELETED
Binary file
data/lib/1.9/qtuitools.so DELETED
Binary file
data/lib/1.9/qtwebkit.so DELETED
Binary file
@@ -1,17 +0,0 @@
1
- require './qtlib/qtbindings_qt_version'
2
-
3
- spec = Gem::Specification.new do |s|
4
- s.authors = ['Ryan Melton', 'Jason Thomas']
5
- s.email = 'kde-bindings@kde.org'
6
- s.rubyforge_project = 'qtbindings-qt'
7
- s.platform = Gem::Platform::CURRENT
8
- s.summary = "Qt bindings for ruby - Qt Dlls"
9
- s.homepage = "http://github.com/ryanmelt/qtbindings"
10
- s.name = 'qtbindings-qt'
11
- s.version = QTBINDINGS_QT_VERSION
12
- s.requirements << 'none'
13
- s.require_path = 'qtlib'
14
- s.files = Dir['qtlib/**/*', 'qtbin/**/*'].to_a
15
- s.description = 'qtbindings-qt contains the compiled qt dlls'
16
- s.licenses = ['LGPLv2.1']
17
- end