qtruby -> tqtruby renaming. This relates to bug 266.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
bug/266/move-to-usr
Michele Calgaro 4 years ago
parent edb9650a0d
commit b0768b8783
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF
  1. 2
      ChangeLog
  2. 6
      Makefile.am.in
  3. 4
      README
  4. 2
      korundum/AUTHORS
  5. 12
      korundum/ChangeLog
  6. 2
      korundum/README
  7. 6
      korundum/bin/Makefile.am
  8. 8
      korundum/rubylib/korundum/Korundum.cpp
  9. 4
      korundum/rubylib/korundum/Makefile.am
  10. 2
      korundum/rubylib/korundum/tdehandlers.cpp
  11. 9
      qtruby/bin/Makefile.am
  12. 1
      qtruby/rubylib/Makefile.am
  13. 6
      qtruby/rubylib/designer/uilib/extconf.rb
  14. 15
      qtruby/rubylib/qtruby/Makefile.am
  15. 4
      qtruby/rubylib/qtruby/lib/Makefile.am
  16. 1
      qtruby/rubylib/qtruby/lib/Qt.rb
  17. 2
      qtruby/rubylib/qtruby/lib/Qt/Makefile.am
  18. 4
      tqtruby/AUTHORS
  19. 4
      tqtruby/COPYING
  20. 172
      tqtruby/ChangeLog
  21. 56
      tqtruby/INSTALL
  22. 0
      tqtruby/Makefile.am
  23. 50
      tqtruby/README
  24. 0
      tqtruby/README.1st
  25. 6
      tqtruby/TODO
  26. 9
      tqtruby/bin/Makefile.am
  27. 14
      tqtruby/bin/rbtqtapi
  28. 26
      tqtruby/bin/rbtqtsh
  29. 0
      tqtruby/bin/tqtrubyinit.cpp
  30. 1
      tqtruby/rubylib/Makefile.am
  31. 0
      tqtruby/rubylib/designer/Makefile.am
  32. 0
      tqtruby/rubylib/designer/examples/colortool/Makefile
  33. 2
      tqtruby/rubylib/designer/examples/colortool/README
  34. 0
      tqtruby/rubylib/designer/examples/colortool/colornameform.ui
  35. 0
      tqtruby/rubylib/designer/examples/colortool/colornameform.ui.rb
  36. 0
      tqtruby/rubylib/designer/examples/colortool/findform.ui
  37. 0
      tqtruby/rubylib/designer/examples/colortool/findform.ui.rb
  38. 0
      tqtruby/rubylib/designer/examples/colortool/images/editcopy
  39. 0
      tqtruby/rubylib/designer/examples/colortool/images/editcopy.png
  40. 0
      tqtruby/rubylib/designer/examples/colortool/images/editcut
  41. 0
      tqtruby/rubylib/designer/examples/colortool/images/editcut.png
  42. 0
      tqtruby/rubylib/designer/examples/colortool/images/editraise.png
  43. 0
      tqtruby/rubylib/designer/examples/colortool/images/filenew
  44. 0
      tqtruby/rubylib/designer/examples/colortool/images/filenew.png
  45. 0
      tqtruby/rubylib/designer/examples/colortool/images/fileopen
  46. 0
      tqtruby/rubylib/designer/examples/colortool/images/fileopen.png
  47. 0
      tqtruby/rubylib/designer/examples/colortool/images/filesave
  48. 0
      tqtruby/rubylib/designer/examples/colortool/images/filesave.png
  49. 0
      tqtruby/rubylib/designer/examples/colortool/images/iconview.png
  50. 0
      tqtruby/rubylib/designer/examples/colortool/images/richtextedit.png
  51. 0
      tqtruby/rubylib/designer/examples/colortool/images/searchfind
  52. 0
      tqtruby/rubylib/designer/examples/colortool/images/searchfind.png
  53. 0
      tqtruby/rubylib/designer/examples/colortool/images/table.png
  54. 0
      tqtruby/rubylib/designer/examples/colortool/images/tabwidget.png
  55. 0
      tqtruby/rubylib/designer/examples/colortool/images/widgetstack.png
  56. 2
      tqtruby/rubylib/designer/examples/colortool/main.rb
  57. 0
      tqtruby/rubylib/designer/examples/colortool/mainform.ui
  58. 2
      tqtruby/rubylib/designer/examples/colortool/mainform.ui.rb
  59. 0
      tqtruby/rubylib/designer/examples/colortool/optionsform.ui
  60. 0
      tqtruby/rubylib/designer/rbuic/LICENSE.GPL
  61. 0
      tqtruby/rubylib/designer/rbuic/Makefile.am
  62. 0
      tqtruby/rubylib/designer/rbuic/TODO
  63. 10
      tqtruby/rubylib/designer/rbuic/domtool.cpp
  64. 10
      tqtruby/rubylib/designer/rbuic/domtool.h
  65. 16
      tqtruby/rubylib/designer/rbuic/embed.cpp
  66. 18
      tqtruby/rubylib/designer/rbuic/form.cpp
  67. 2
      tqtruby/rubylib/designer/rbuic/globaldefs.h
  68. 18
      tqtruby/rubylib/designer/rbuic/main.cpp
  69. 12
      tqtruby/rubylib/designer/rbuic/object.cpp
  70. 6
      tqtruby/rubylib/designer/rbuic/parser.cpp
  71. 2
      tqtruby/rubylib/designer/rbuic/parser.h
  72. 2
      tqtruby/rubylib/designer/rbuic/rbuic.pro
  73. 4
      tqtruby/rubylib/designer/rbuic/subclassing.cpp
  74. 14
      tqtruby/rubylib/designer/rbuic/uic.cpp
  75. 4
      tqtruby/rubylib/designer/rbuic/uic.h
  76. 2
      tqtruby/rubylib/designer/rbuic/widgetdatabase.cpp
  77. 4
      tqtruby/rubylib/designer/rbuic/widgetdatabase.h
  78. 2
      tqtruby/rubylib/designer/rbuic/widgetinterface.h
  79. 4
      tqtruby/rubylib/designer/uilib/Makefile.am
  80. 6
      tqtruby/rubylib/designer/uilib/extconf.rb
  81. 2
      tqtruby/rubylib/designer/uilib/test/test.rb
  82. 12
      tqtruby/rubylib/designer/uilib/tqui.cpp
  83. 2
      tqtruby/rubylib/examples/base/kicons.rb
  84. 8
      tqtruby/rubylib/examples/base/rui.rb
  85. 2
      tqtruby/rubylib/examples/canvastest/canvastest.rb
  86. 4
      tqtruby/rubylib/examples/killerfilter/killerfilter.rb
  87. 2
      tqtruby/rubylib/examples/network/clientserver/client/client.rb
  88. 2
      tqtruby/rubylib/examples/network/clientserver/server/server.rb
  89. 2
      tqtruby/rubylib/examples/passivepopup/passivepopup.rb
  90. 0
      tqtruby/rubylib/examples/ruboids/Manifest
  91. 4
      tqtruby/rubylib/examples/ruboids/README
  92. 0
      tqtruby/rubylib/examples/ruboids/TODO
  93. 0
      tqtruby/rubylib/examples/ruboids/boids.properties
  94. 0
      tqtruby/rubylib/examples/ruboids/generateManifest.rb
  95. 4
      tqtruby/rubylib/examples/ruboids/index.html
  96. 0
      tqtruby/rubylib/examples/ruboids/release.rb
  97. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Boid.rb
  98. 0
      tqtruby/rubylib/examples/ruboids/ruboids/BoidView.rb
  99. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Camera.rb
  100. 2
      tqtruby/rubylib/examples/ruboids/ruboids/CameraDialog.rb
  101. 2
      tqtruby/rubylib/examples/ruboids/ruboids/Canvas.rb
  102. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Cloud.rb
  103. 2
      tqtruby/rubylib/examples/ruboids/ruboids/CloudView.rb
  104. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Flock.rb
  105. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Graphics.rb
  106. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Params.rb
  107. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Point.rb
  108. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Thing.rb
  109. 0
      tqtruby/rubylib/examples/ruboids/ruboids/Triangle.rb
  110. 0
      tqtruby/rubylib/examples/ruboids/ruboids/View.rb
  111. 2
      tqtruby/rubylib/examples/ruboids/ruboids/World.rb
  112. 2
      tqtruby/rubylib/examples/ruboids/ruboids/WorldWindow.rb
  113. 0
      tqtruby/rubylib/examples/ruboids/ruboids/info.rb
  114. 2
      tqtruby/rubylib/examples/ruboids/ruboids/ruboids.rb
  115. 2
      tqtruby/rubylib/examples/testcases/bugs.rb
  116. 2
      tqtruby/rubylib/examples/testcases/error_reporting.rb
  117. 2
      tqtruby/rubylib/examples/testcases/opoverloading.rb
  118. 2
      tqtruby/rubylib/examples/textedit/textedit.rb
  119. 2
      tqtruby/rubylib/examples/tqt-examples/aclock/aclock.rb
  120. 4
      tqtruby/rubylib/examples/tqt-examples/aclock/main.rb
  121. 2
      tqtruby/rubylib/examples/tqt-examples/chart/README
  122. 0
      tqtruby/rubylib/examples/tqt-examples/chart/canvastext.rb
  123. 0
      tqtruby/rubylib/examples/tqt-examples/chart/canvasview.rb
  124. 10
      tqtruby/rubylib/examples/tqt-examples/chart/chartform.rb
  125. 2
      tqtruby/rubylib/examples/tqt-examples/chart/chartform_canvas.rb
  126. 0
      tqtruby/rubylib/examples/tqt-examples/chart/chartform_files.rb
  127. 0
      tqtruby/rubylib/examples/tqt-examples/chart/element.rb
  128. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/chart-forms.sk
  129. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/file_new.xpm
  130. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/file_open.xpm
  131. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/file_print.xpm
  132. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/file_save.xpm
  133. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/file_saveaspostscript.xpm
  134. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_horizontalbarchart.xpm
  135. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_piechart.xpm
  136. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_setdata.xpm
  137. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_setfont.xpm
  138. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_setoptions.xpm
  139. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/options_verticalbarchart.xpm
  140. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern01.xpm
  141. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern02.xpm
  142. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern03.xpm
  143. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern04.xpm
  144. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern05.xpm
  145. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern06.xpm
  146. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern07.xpm
  147. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern08.xpm
  148. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern09.xpm
  149. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern10.xpm
  150. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern11.xpm
  151. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern12.xpm
  152. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern13.xpm
  153. 0
      tqtruby/rubylib/examples/tqt-examples/chart/images/pattern14.xpm
  154. 2
      tqtruby/rubylib/examples/tqt-examples/chart/main.rb
  155. 0
      tqtruby/rubylib/examples/tqt-examples/chart/optionsform.rb
  156. 0
      tqtruby/rubylib/examples/tqt-examples/chart/setdataform.rb
  157. 2
      tqtruby/rubylib/examples/tqt-examples/checklists/checklists.rb
  158. 4
      tqtruby/rubylib/examples/tqt-examples/checklists/main.rb
  159. 2
      tqtruby/rubylib/examples/tqt-examples/dclock/dclock.rb
  160. 4
      tqtruby/rubylib/examples/tqt-examples/dclock/main.rb
  161. 4
      tqtruby/rubylib/examples/tqt-examples/fonts/simple-qfont-demo/main.rb
  162. 0
      tqtruby/rubylib/examples/tqt-examples/fonts/simple-qfont-demo/viewer.rb
  163. 6
      tqtruby/rubylib/examples/tqt-examples/forever/forever.rb
  164. 2
      tqtruby/rubylib/examples/tqt-examples/hello/hello.rb
  165. 4
      tqtruby/rubylib/examples/tqt-examples/hello/main.rb
  166. 2
      tqtruby/rubylib/examples/tqt-examples/progress/progress.rb
  167. 4
      tqtruby/rubylib/examples/tqt-examples/tictac/main.rb
  168. 2
      tqtruby/rubylib/examples/tqt-examples/tictac/tictac.rb
  169. 4
      tqtruby/rubylib/examples/tqt-examples/tooltip/main.rb
  170. 2
      tqtruby/rubylib/examples/tqt-examples/tooltip/tooltip.rb
  171. 14
      tqtruby/rubylib/examples/tqtscribble/scribble.rb
  172. 15
      tqtruby/rubylib/tqtruby/Makefile.am
  173. 466
      tqtruby/rubylib/tqtruby/TQt.cpp
  174. 2
      tqtruby/rubylib/tqtruby/configure.in.in
  175. 4
      tqtruby/rubylib/tqtruby/extconf.rb
  176. 52
      tqtruby/rubylib/tqtruby/handlers.cpp
  177. 4
      tqtruby/rubylib/tqtruby/lib/Makefile.am
  178. 1
      tqtruby/rubylib/tqtruby/lib/TQt.rb
  179. 2
      tqtruby/rubylib/tqtruby/lib/TQt/Makefile.am
  180. 44
      tqtruby/rubylib/tqtruby/lib/TQt/tqtruby.rb
  181. 0
      tqtruby/rubylib/tqtruby/marshall.h
  182. 2
      tqtruby/rubylib/tqtruby/smokeruby.h
  183. 20
      tqtruby/rubylib/tqtruby/tqtruby.h
  184. 2
      tqtruby/rubylib/tutorial/t1/t1.rb
  185. 2
      tqtruby/rubylib/tutorial/t10/cannon.rb
  186. 2
      tqtruby/rubylib/tutorial/t10/lcdrange.rb
  187. 2
      tqtruby/rubylib/tutorial/t10/t10.rb
  188. 2
      tqtruby/rubylib/tutorial/t11/cannon.rb
  189. 2
      tqtruby/rubylib/tutorial/t11/lcdrange.rb
  190. 2
      tqtruby/rubylib/tutorial/t11/t11.rb
  191. 2
      tqtruby/rubylib/tutorial/t12/cannon.rb
  192. 2
      tqtruby/rubylib/tutorial/t12/lcdrange.rb
  193. 2
      tqtruby/rubylib/tutorial/t12/t12.rb
  194. 2
      tqtruby/rubylib/tutorial/t13/cannon.rb
  195. 2
      tqtruby/rubylib/tutorial/t13/gamebrd.rb
  196. 2
      tqtruby/rubylib/tutorial/t13/lcdrange.rb
  197. 2
      tqtruby/rubylib/tutorial/t13/t13.rb
  198. 2
      tqtruby/rubylib/tutorial/t14/cannon.rb
  199. 0
      tqtruby/rubylib/tutorial/t14/gamebrd.rb
  200. 2
      tqtruby/rubylib/tutorial/t14/lcdrange.rb
  201. 2
      tqtruby/rubylib/tutorial/t14/t14.rb
  202. 2
      tqtruby/rubylib/tutorial/t2/t2.rb
  203. 2
      tqtruby/rubylib/tutorial/t3/t3.rb
  204. 2
      tqtruby/rubylib/tutorial/t4/t4.rb
  205. 2
      tqtruby/rubylib/tutorial/t5/t5.rb
  206. 2
      tqtruby/rubylib/tutorial/t6/t6.rb
  207. 2
      tqtruby/rubylib/tutorial/t7/lcdrange.rb
  208. 2
      tqtruby/rubylib/tutorial/t7/t7.rb
  209. 2
      tqtruby/rubylib/tutorial/t8/cannon.rb
  210. 2
      tqtruby/rubylib/tutorial/t8/lcdrange.rb
  211. 4
      tqtruby/rubylib/tutorial/t8/t8.rb
  212. 2
      tqtruby/rubylib/tutorial/t9/cannon.rb
  213. 2
      tqtruby/rubylib/tutorial/t9/lcdrange.rb
  214. 2
      tqtruby/rubylib/tutorial/t9/t9.rb

@ -1,6 +1,6 @@
2004-06-27 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* The qtruby and korundum ruby bindings are built by default
* The tqtruby and korundum ruby bindings are built by default
* Both Qt only and Qt/KDE versions of the Smoke library are built
2002-11-05 Marcus Urban <murban@mylinuxisp.com>

@ -5,9 +5,9 @@ COMPILE_BEFORE_tdejava = qtjava
COMPILE_BEFORE_kdec = qtc
COMPILE_BEFORE_xparts = dcopc
# below if for proper korundum / qtruby build order
COMPILE_BEFORE_qtruby = smoke
COMPILE_BEFORE_korundum = qtruby
# below if for proper korundum / tqtruby build order
COMPILE_BEFORE_tqtruby = smoke
COMPILE_BEFORE_korundum = tqtruby
# the below is for proper referencing of dcopperl into SUBDIRS
COMPILE_BEFORE_dcopc = dcopperl

@ -19,8 +19,8 @@ This package contains:
* korundum: TDE bindings for ruby
* python: a copy of SIP/pyQt/pyTDE bindings from riverbankcomputing.co.uk
* qtjava: Qt bindings for Java JNI to use Qt/TDE classes with Java
* qtruby: Qt bindings for Ruby
* smoke: Language independent library for Qt and TDE bindings. Used by QtRuby
* tqtruby: TQt bindings for Ruby
* smoke: Language independent library for Qt and TDE bindings. Used by TQtRuby
and PerlQt.
* kalyptus: a header parser and bindings generator for Qt/TDE. Used for
Smoke, Java, C# and KSVG bindings generation at present.

@ -14,7 +14,7 @@ Chief Wreck On The Highway
Bug fixes, enhancements, sample code
Alex Kellett
QtRuby is a ruby version of the PerlQt/Smoke project, written by:
TQtRuby is a ruby version of the PerlQt/Smoke project, written by:
Ashley Winters
Germain Garand
David Faure

@ -1,6 +1,6 @@
2007-03-05 Richard Dale <rdale@foton.es>
* Added a marshaller for TQValueList<WId>& as requested by volty on #qtruby
* Added a marshaller for TQValueList<WId>& as requested by volty on #tqtruby
2007-07-06 Richard Dale <rdale@foton.es>
@ -41,7 +41,7 @@
2006-08-18 Richard Dale <rdale@foton.es>
* Added a TDEActionPtrList marshaller. Fixes problem reported by
eskatos on the #qtruby irc channel.
eskatos on the #tqtruby irc channel.
2006-06-05 Richard Dale <rdale@foton.es>
@ -91,7 +91,7 @@
Han Holl.
* KDE::CmdLineArgs and KDE::AboutData instances are no longer
deleted by qtruby on garbage collection. Fixes another problem
deleted by tqtruby on garbage collection. Fixes another problem
reported by Han Holl.
2005-12-08 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -190,7 +190,7 @@
* The DCOPObject inspect method was crashing if the instance hadn't been fully
constructed
* The kde_resolve_classname function's arg types were changed to match the new
ones in the resolve_classname() function of QtRuby/handlers.cpp.
ones in the resolve_classname() function of TQtRuby/handlers.cpp.
2004-12-11 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -223,7 +223,7 @@
2004-10-11 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Set global flag 'application_terminated' when KDE::Application or KDE::UniqueApplication
has returned from exec(). Once this is set the QtRuby runtime will no longer delete any
has returned from exec(). Once this is set the TQtRuby runtime will no longer delete any
C++ instances. This will hopefully fix crash on application exit problems reported by Thibauld
Favre.
@ -265,7 +265,7 @@ CCMAIL: kde-bindings@kde.org
2004-09-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* The resolve_classname() function in qtruby handlers.cpp uses the various Qt rtti mechanisms to
* The resolve_classname() function in tqtruby handlers.cpp uses the various Qt rtti mechanisms to
get a more accurate classname to instantiate as a ruby instance. It has now been extended
with a callback to the Korundum library to do the same for KDE classes.

@ -1,4 +1,4 @@
Please see tdebindings/qtruby/README
Please see tdebindings/tqtruby/README
KDE Specific Infomation:

@ -4,10 +4,10 @@ bin_PROGRAMS = krubyinit
krubyinit_LDFLAGS = -module $(all_libraries) -version-info 0:0:0 -L$(top_srcdir)/smoke/tde/ -L$(RUBY_LIBDIR) -ltdemdi -ltdenewstuff
krubyinit_METASOURCES = AUTO
krubyinit_SOURCES = krubyinit.cpp
krubyinit_LDADD = $(LIB_KDE) $(RUBY_LIBRUBYARG) $(top_builddir)/smoke/tde/libsmoketde.la $(top_builddir)/qtruby/rubylib/qtruby/libtqtrubyinternal.la
krubyinit_LDADD = $(LIB_KDE) $(RUBY_LIBRUBYARG) $(top_builddir)/smoke/tde/libsmoketde.la $(top_builddir)/tqtruby/rubylib/tqtruby/libtqtrubyinternal.la
install-exec-local:
@-rm -f $(DESTDIR)$(bindir)/rbtdeapi
@$(LN_S) rbqtapi $(DESTDIR)$(bindir)/rbtdeapi
@$(LN_S) rbtqtapi $(DESTDIR)$(bindir)/rbtdeapi
@-rm -f $(DESTDIR)$(bindir)/rbtdesh
@$(LN_S) rbqtsh $(DESTDIR)$(bindir)/rbtdesh
@$(LN_S) rbtqtsh $(DESTDIR)$(bindir)/rbtdesh

@ -36,7 +36,7 @@
#include <ruby.h>
#include <marshall.h>
#include <qtruby.h>
#include <tqtruby.h>
#include <smokeruby.h>
#include <smoke.h>
@ -905,7 +905,7 @@ public:
};
extern "C" {
extern void Init_qtruby();
extern void Init_tqtruby();
extern void set_new_kde(VALUE (*new_kde) (int, VALUE *, VALUE));
extern void set_tdeconfigskeletonitem_immutable(VALUE (*tdeconfigskeletonitem_immutable) (VALUE));
extern void set_kde_resolve_classname(const char * (*kde_resolve_classname) (Smoke*, int, void *));
@ -1163,9 +1163,9 @@ Init_korundum()
// The Qt extension is linked against libsmoketqt.so, but Korundum links against
// libsmoketde.so only. Specifying both a 'require Qt' and a 'require Korundum',
// would give a link error (see the rb_fatal() error above).
// So call the Init_qtruby() initialization function explicitely, not via 'require Qt'
// So call the Init_tqtruby() initialization function explicitely, not via 'require Qt'
// (Qt.o is linked into libtqtruby.so, as well as the Qt.so extension).
Init_qtruby();
Init_tqtruby();
install_handlers(KDE_handlers);
kde_internal_module = rb_define_module_under(kde_module, "Internal");

@ -1,10 +1,10 @@
INCLUDES = -I$(top_srcdir)/smoke -I$(top_srcdir)/qtruby/rubylib/qtruby $(all_includes) -I$(RUBY_ARCHDIR) $(RUBY_CFLAGS)
INCLUDES = -I$(top_srcdir)/smoke -I$(top_srcdir)/tqtruby/rubylib/tqtruby $(all_includes) -I$(RUBY_ARCHDIR) $(RUBY_CFLAGS)
rubylibdir = $(RUBY_ARCHDIR)
rubylib_LTLIBRARIES = korundum.la
korundum_la_LDFLAGS = -module $(all_libraries) -version-info 0:0:0
korundum_la_METASOURCES = AUTO
korundum_la_SOURCES = Korundum.cpp tdehandlers.cpp
korundum_la_LIBADD = $(LIB_KDE) $(top_builddir)/smoke/tde/libsmoketde.la $(top_builddir)/qtruby/rubylib/qtruby/libtqtrubyinternal.la $(RUBY_LIBRUBYARG)
korundum_la_LIBADD = $(LIB_KDE) $(top_builddir)/smoke/tde/libsmoketde.la $(top_builddir)/tqtruby/rubylib/tqtruby/libtqtrubyinternal.la $(RUBY_LIBRUBYARG)
SUBDIRS = lib

@ -15,7 +15,7 @@
* *
***************************************************************************/
#include <qtruby.h>
#include <tqtruby.h>
#include <smokeruby.h>
#include <tdeversion.h>

@ -1,9 +0,0 @@
INCLUDES = $(all_includes) -I$(RUBY_ARCHDIR) $(RUBY_CFLAGS)
bin_PROGRAMS = qtrubyinit
qtrubyinit_LDFLAGS = -module $(all_libraries) -version-info 0:0:0 -L$(top_srcdir)/smoke/tqt/ -L$(RUBY_LIBDIR)
qtrubyinit_METASOURCES = AUTO
qtrubyinit_SOURCES = qtrubyinit.cpp
qtrubyinit_LDADD = $(LIB_TQT) $(RUBY_LIBRUBYARG) $(top_builddir)/smoke/tqt/libsmoketqt.la $(top_builddir)/qtruby/rubylib/qtruby/libtqtrubyinternal.la
bin_SCRIPTS = rbqtapi rbqtsh

@ -1 +0,0 @@
SUBDIRS = qtruby designer

@ -1,6 +0,0 @@
require 'mkmf'
dir_config('smoke')
dir_config('qt')
$CPPFLAGS += " -I../../../../smoke -I../../qtruby "
$LOCAL_LIBS += '-bundle_loader ../../qtruby/qtruby.bundle -lsmoketqt -ltqui -ltqt-mt -lstdc++'
create_makefile("tqui")

@ -1,15 +0,0 @@
INCLUDES = -I$(top_srcdir)/smoke $(all_includes) -I$(RUBY_ARCHDIR) $(RUBY_CFLAGS)
noinst_HEADERS = qtruby.h marshall.h smokeruby.h extconf.rb
noinst_LTLIBRARIES = libtqtrubyinternal.la
libtqtrubyinternal_la_SOURCES = Qt.cpp handlers.cpp
libtqtrubyinternal_la_METASOURCES = AUTO
rubylibdir = $(RUBY_ARCHDIR)
rubylib_LTLIBRARIES = qtruby.la
qtruby_la_SOURCES =
qtruby_la_LDFLAGS = -module $(all_libraries) -version-info 0:0:0
qtruby_la_LIBADD = libtqtrubyinternal.la $(LIB_TQT) $(top_builddir)/smoke/tqt/libsmoketqt.la $(LIB_TDECORE) $(RUBY_LIBRUBYARG) -lstdc++
SUBDIRS = lib

@ -1,4 +0,0 @@
SUBDIRS = Qt
rubylibdir = $(RUBY_RUBYLIBDIR)
rubylib_DATA = Qt.rb

@ -1,2 +0,0 @@
qtrubylibdir = $(RUBY_RUBYLIBDIR)/Qt
qtrubylib_DATA = qtruby.rb

@ -38,7 +38,7 @@ Other contributions (from the ChangeLog), bug reports, fixes etc:
Daniel Morris
Ryutaro Amano
QtRuby is a ruby version of the PerlQt/Smoke project, written by:
TQtRuby is a ruby version of the PerlTQt/Smoke project, written by:
Ashley Winters
Germain Garand
David Faure
@ -47,7 +47,7 @@ Equipment
800 Mhz iBook with Yellow Dog 3.0, Macally Micro 3 button mouse
Books
'Programming with Qt' by Mathias Kalle Dalheimer
'Programming with TQt' by Mathias Kalle Dalheimer
'Programming Ruby' by David Thomas and Andrew Hunt
'The Ruby Way' by Hal Fulton
'Ruby In a Nutshell' by Yukihiro Matsumoto

@ -1,8 +1,8 @@
Trademarks
----------
"[QtRuby": "[Qt]" name usage by permission of Trolltech AS, owner of the
Qt(TM) trademark
"[TQtRuby": "[TQt]" name usage by permission of Trolltech AS, owner of the
TQt(TM) trademark
License

@ -7,7 +7,7 @@
2006-12-05 Richard Dale <rdale@foton.es>
* Backported some improvements to TQt::Variants from Qt4 QtRuby
* Backported some improvements to TQt::Variants from Qt4 TQtRuby
* When marhalling TQMap types with TQVariant values, if the Ruby value isn't
a TQt::Variant then one is created
* TQt::Variants can now be constructed with Hash's of String/TQt::Variant
@ -25,7 +25,7 @@
* Made TQt::ListView, TQt::ListViewItem, TQt::BoxLayout, TQt::HBoxLayout,
TQt::VBoxLayout and TQt::GridLayout Enumerable with implementations
of each() so they don't need to use the Qt External iterators like
of each() so they don't need to use the TQt External iterators like
TQt::LayoutIterator anymore. For instance:
lv = TQt::ListView.new do
@ -44,7 +44,7 @@
2006-09-19 Richard Dale <rdale@foton.es>
* Upped the QtRuby version to 1.0.13 for the KDE 3.5.5 release
* Upped the TQtRuby version to 1.0.13 for the KDE 3.5.5 release
* Fixed a crash when a slot was inherited by a subclass, and the
subclass had no slots or signals of its own
@ -63,7 +63,7 @@
The block is called in the context of where the connect call was made, and 'self'
needn't be a TQt::Object. It is similar to the signal_connect() method in
ruby-gnome. This was suggested by rickdangerous on the #qtruby irc channel.
ruby-gnome. This was suggested by rickdangerous on the #tqtruby irc channel.
2006-09-13 Richard Dale <rdale@foton.es>
@ -97,7 +97,7 @@
2006-08-29 Richard Dale <rdale@foton.es>
* Backported some memory leak fixes from Qt4 QtRuby
* Backported some memory leak fixes from Qt4 TQtRuby
2006-08-10 Richard Dale <rdale@foton.es>
@ -160,12 +160,12 @@
2006-05-07 Richard Dale <rdale@foton.es>
* An an type of TQ_UINT16 wasn't working with QtRuby. Fixes problem
* An an type of TQ_UINT16 wasn't working with TQtRuby. Fixes problem
reported by maelclerambault.
2006-05-03 Richard Dale <rdale@foton.es>
* The tqt_emit() and tqt_invoke() methods are overriden by the QtRuby
* The tqt_emit() and tqt_invoke() methods are overriden by the TQtRuby
runtime. When they are called the runtime looks for a Ruby slot or
signal matching the call, and invokes it if found. If a Ruby version
wasn't found for a signal however, the tqt_invoke() method was being
@ -181,7 +181,7 @@
2006-03-29 Richard Dale <rdale@foton.es>
* Don't special case open() in virtual method callbacks, because all
the Qt classes with open methods now have explicit open() method
the TQt classes with open methods now have explicit open() method
calls. So it isn't possible that Kernel.open() will be called
wrongly anymore.
@ -197,7 +197,7 @@
etc. Otherwise, the corresponding methods in the Smoke library were
not being invoked correctly.
* Removed a virtual destructor compile warning
* Removed obsolete qtruby-only.patch and tdevelop project file
* Removed obsolete tqtruby-only.patch and tdevelop project file
2006-03-14 Richard Dale <rdale@foton.es>
@ -208,7 +208,7 @@
* The Kernel#select method was being redefined as it clashed with
TQt::SqlCursor#select and TQt::SqlSelectCursor#select methods. This
caused a problem when QtRuby was used with Rails ActiveRecord which
caused a problem when TQtRuby was used with Rails ActiveRecord which
also has a select method. So the methods are now defined in the Sql
classes, and use method_missing() to explictly invoke the methods in
the Smoke library. Fixes problem reported by Imo Sosa.
@ -233,7 +233,7 @@
2005-12-08 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* The ruby display() method was clashing with a display() method in some
QtRuby classes, and so it was aliased to _display(). However, this caused
TQtRuby classes, and so it was aliased to _display(). However, this caused
problems with the ruby RMagick extension. The display methods are now
special cased in TQt::LCDNumber, TQt::WhatsThis and TQt::TimeEdit. Fixes
problem reported by David Corbin.
@ -243,9 +243,9 @@
2005-12-06 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* QtRuby didn't work with versions of ruby > 1.8.3, as it didn't call
* TQtRuby didn't work with versions of ruby > 1.8.3, as it didn't call
initialize methods correctly. It used the rb_respond_to() method
to check it a newly created qt instance responded to :initialize.
to check it a newly created tqt instance responded to :initialize.
However, in newer versions of ruby rb_responds_to() ignores
private methods such as initialize(). The solution was to just remove
the test, as it was redundant anyway.
@ -285,7 +285,7 @@
2005-09-26 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added some fixes from the Qt4 version of QtRuby
* Added some fixes from the Qt4 version of TQtRuby
* There was a clash between operator methods in Kernel
for '>', '>=', '<' and '<=' and the ones in the Smoke lib.
* Fixed a TQt::ByteArray marshalling problem
@ -307,7 +307,7 @@
2005-08-09 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Caleb Tennis wrote:
One nice feature would be to allow TQt::Object::inherits() to use the QtRuby
One nice feature would be to allow TQt::Object::inherits() to use the TQtRuby
naming scheme for valid lookups. For example, right now:
irb(main):001:0> w = TQt::Widget.new(nil)
@ -324,8 +324,8 @@
2005-08-04 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a file called 'COPYING' to the qtruby project, with a note that
the 'Qt' trademark in the QtRuby name is used with Trolltech's permission,
* Added a file called 'COPYING' to the tqtruby project, with a note that
the 'TQt' trademark in the TQtRuby name is used with Trolltech's permission,
followed by the text of the GPL v2 license.
2005-07-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -344,7 +344,7 @@
2005-07-14 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added example programs for client/server programming with TQt::Socket
and associated classes. client.rb illustrates current bugs in QtRuby
and associated classes. client.rb illustrates current bugs in TQtRuby
* TQt::Socket.canReadLine() always returns true
* TQt::readLine() seg faults when called a second time
* A memory leak and seg faulting problems like the above were reported
@ -352,7 +352,7 @@
2005-07-09 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* When a Qt method returned a TQString value type, such as:
* When a TQt method returned a TQString value type, such as:
TQString TQSocket::readLine()
A temporary TQString was being created that wasn't deleted and caused a
memory leak. Fixes problem reported by Caleb Tennis.
@ -417,7 +417,7 @@
2005-05-21 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Improved the format of enums displayed by rbqtapi and rbkdeapi
* Improved the format of enums displayed by rbtqtapi and rbkdeapi
2005-05-20 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -444,7 +444,7 @@
2005-04-09 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Fixed regressions in the rbqtapi and rbkdeapi utilities caused by the TQt::Internal namespace
* Fixed regressions in the rbtqtapi and rbkdeapi utilities caused by the TQt::Internal namespace
tidy up
* TQt::version and TQt::ruby_version had wrongly been moved to the TQt::Internal module
@ -454,13 +454,13 @@
2005-03-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* An 'include Qt' statement in qtruby.rb where a couple of methods were being added to
class Module was causing all the Qt methods to be added to Module. Oops, this a really
serious bug. Various methods in qtruby.rb are now module methods in the TQt::Internal
* An 'include TQt' statement in tqtruby.rb where a couple of methods were being added to
class Module was causing all the TQt methods to be added to Module. Oops, this a really
serious bug. Various methods in tqtruby.rb are now module methods in the TQt::Internal
module. Big thanks to Eric Veensta and Samir Patel for pointing out this can of worms.
* It also fixes a problem reported by David Crosby where a "require 'time'" statement was
incompatible with a "require 'Qt'" statement. As the cause was unknown, a hacky workround
incompatible with a "require 'TQt'" statement. As the cause was unknown, a hacky workround
had to be added, which is no longer needed.
2005-03-24 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -474,7 +474,7 @@
2005-03-21 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Moved Qt.rb from qtruby/lib/Qt to qtruby/lib. Fixes problem building qtruby on Mac OS X
* Moved TQt.rb from tqtruby/lib/TQt to tqtruby/lib. Fixes problem building tqtruby on Mac OS X
with extconf.rb reported by Michael Doppler
* Rename 'README.build' as INSTALL
@ -540,7 +540,7 @@
* Fixed an interesting bug reported by Stephan Oehlert. Kernel has a method called
open() which takes a String as the first argument. But when a call is made to an open()
method in the Qt classes, it messes up the method_missing() logic to divert it to the
method in the TQt classes, it messes up the method_missing() logic to divert it to the
Smoke library. Instead it attempts to call the Kernel method with the wrong arg types.
* The problem is fixed by calling the appropriate method based on the
@ -560,7 +560,7 @@
2004-12-21 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* The qtruby runtime needs to be able to run the code for an initialize() method up
* The tqtruby runtime needs to be able to run the code for an initialize() method up
to the point where the C++ instance has been constructed and wrapped, and then
jump out. It then re-runs initialize() with the wrapped instance. Before a callcc() call
had been used for the jumping which worked fine. However, it made the frame stack
@ -569,7 +569,7 @@
2004-12-20 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a work round for a bug caused by an incompatibility between QtRuby
* Added a work round for a bug caused by an incompatibility between TQtRuby
the 'require time' statement, reported by David Crosby
CCMAIL: dcrosby42@gmail.com
@ -616,7 +616,7 @@
2004-12-10 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added inspect() and pretty_print() methods for TQt::SizePolicy
* Greatly improved the TQt::Object Qt property based inspect() and pretty_print()
* Greatly improved the TQt::Object TQt property based inspect() and pretty_print()
methods. Property types such as TQt::Point, TQt::Font and TQt::Rect can be
viewed as expandable items in the KDevelop debugger variable tree.
@ -633,12 +633,12 @@
2004-11-29 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Upped the QtRuby version to 1.0.5 for the KDE 3.3.2 release
* Upped the TQtRuby version to 1.0.5 for the KDE 3.3.2 release
2004-10-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* qError(), tqWarning() and tqFatal() are now Object instance methods, rather than Qt module
methods. This means they don't need to be referenced with an ugly 'Qt.' module scope anymore.
* qError(), tqWarning() and tqFatal() are now Object instance methods, rather than TQt module
methods. This means they don't need to be referenced with an ugly 'TQt.' module scope anymore.
2004-10-21 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -653,7 +653,7 @@
2004-10-16 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Until super has been called in an initialize() method, Qt methods can't be called on
* Until super has been called in an initialize() method, TQt methods can't be called on
it. An exception is now thrown 'Instance not initialized', instead of it causing a seg fault.
* For instance:
@ -701,16 +701,16 @@
* Added greater than and less than operators to TQt::Enum, so that enums can be compared with
Integers
* Added the chart example for Qt Tutorial #2
* Added the chart example for TQt Tutorial #2
2004-10-12 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added TQt::Application.ARGV. It returns the original ruby ARGV array with Qt command line
* Added TQt::Application.ARGV. It returns the original ruby ARGV array with TQt command line
options removed.
2004-10-11 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a global flag 'application_terminated'. Once this is set the QtRuby runtime will no longer
* Added a global flag 'application_terminated'. Once this is set the TQtRuby runtime will no longer
delete any C++ instances. This will hopefully fix crash on application exit problems reported
by Thibauld Favre.
@ -753,7 +753,7 @@
2004-10-07 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added Qt Designer Tutorial 'Creating Dialogs' translated into QtRuby. It
* Added TQt Designer Tutorial 'Creating Dialogs' translated into TQtRuby. It
shows how you can combine ruby code generated from .ui files with the rbuic
tool, with your own code.
@ -778,12 +778,12 @@
2004-10-05 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Given a C++ instance and an approximate classname, the QtRuby runtime uses the
various Qt rtti mechanisms such as TQObject::className() to improve the resolution
* Given a C++ instance and an approximate classname, the TQtRuby runtime uses the
various TQt rtti mechanisms such as TQObject::className() to improve the resolution
of the name. However, the numeric classId into the array of classnames in the Smoke
runtime was not being updated in line with the more accurate name.
* This caused problems with method argument matching which uses the numeric classId
rather than the ruby object's classname, and so QtRuby wrongly assumed that a an
rather than the ruby object's classname, and so TQtRuby wrongly assumed that a an
instance of a TQt::Widget was a TQt::Object.
* Fixes problem reported by Han Holl
@ -812,10 +812,10 @@
2004-10-03 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Han Holl's report about a when you pass an incorrect arg type to a QtRuby
* Han Holl's report about a when you pass an incorrect arg type to a TQtRuby
method, it caused a crash has opened a 'can of worms'. This was because there
was no arg type checking if there was only one candidate method in the
Smoke runtime. Now that arg type checking is applied to all QtRuby method calls, not
Smoke runtime. Now that arg type checking is applied to all TQtRuby method calls, not
not just those that after lookup in Smoke map onto a single method, the overloaded
method resolution via the arg types has had to be greatly improved. This has
been done, and so the arg type matching is now extremely fussy.
@ -843,7 +843,7 @@
2004-10-03 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* A common programming error is to accidently leave off the 'new' method call when
creating an instance. The QtRuby runtime wasn't correctly trapping an attempt to
creating an instance. The TQtRuby runtime wasn't correctly trapping an attempt to
call an instance method on a class object, and was seg faulting rather than
throwing an exception.
@ -868,7 +868,7 @@
2004-09-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* The resolve_classname() function in handlers.cpp uses the various Qt rtti mechanisms to
* The resolve_classname() function in handlers.cpp uses the various TQt rtti mechanisms to
get a more accurate classname to instantiate as a ruby instance. It has now been extended
with a callback to the Korundum library to do the same for KDE classes.
@ -885,10 +885,10 @@
2004-09-12 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a 'tqui' extension for reading in .ui Qt Designer files at runtime
* Added a 'tqui' extension for reading in .ui TQt Designer files at runtime
* For example:
require 'Qt'
require 'TQt'
require 'tqui'
a = TQt::Application.new(ARGV)
@ -924,7 +924,7 @@
* Brought the rbuic code to uncompress zip files in line with the current uic code
* Added a qmake project file for building the rbuic tool on Mac OS X, and some
notes on how to build QtRuby on a Mac.
notes on how to build TQtRuby on a Mac.
2004-08-29 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -947,7 +947,7 @@
2004-08-04 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Upped the QtRuby version to 1.0.0 - it must work now then..
* Upped the TQtRuby version to 1.0.0 - it must work now then..
2004-08-02 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -976,7 +976,7 @@
had virtual method callbacks, this meant that the ruby instance couldn't
be found, and the callback couldn't be made.
* Hence, the TQt::ToolTip callback in examples/qt-examples/tooltip didn't
* Hence, the TQt::ToolTip callback in examples/tqt-examples/tooltip didn't
work, as that class doesn't have a virtual destructor.
* Added an 'isEnum()' function to use when matching args in overloaded
@ -1100,12 +1100,12 @@
2004-07-11 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Qt eucJP and Shift-JIS codecs used to support ruby $KCODE values of 's'
* TQt eucJP and Shift-JIS codecs used to support ruby $KCODE values of 's'
for SJIS and 'e' for EUC
2004-07-08 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added support for strings in QtRuby programs being written in UTF-8.
* Added support for strings in TQtRuby programs being written in UTF-8.
Use the '-Ku' command line option or '$KCODE=u' in the program.
* Removed recently added TQChar marshalling as it wasn't very i18n friendly
@ -1188,7 +1188,7 @@
* The marshalling TypeHandler function pointers are now looked up in a
TQAsciiDict, rather than a ruby Hash.
* Some unused functions removed
* QtRuby version upped to 0.9.8
* TQtRuby version upped to 0.9.8
2004-06-09 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1206,7 +1206,7 @@
2004-05-03 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a '-kde' option to the rbuic tool to generate require 'Korundum'
instead of require 'Qt' statements, and use KDE widgets.
instead of require 'TQt' statements, and use KDE widgets.
2004-04-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1254,7 +1254,7 @@
corresponding ruby arg VALUE after the call.
- A pointer to a locally allocated TQString was being returned,
giving memory corruption problems.
* The default debug level in qtruby.rb is DebugLevel::OFF, otherwise
* The default debug level in tqtruby.rb is DebugLevel::OFF, otherwise
very verbose error messages are produced.
2004-01-28 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1267,13 +1267,13 @@
* Added DOM:: namespace for the DOM:: classes in the Smoke library.
* The scope operator in nested classnames is now '::' rather
than '__', so changed the qtruby runtime to expect that.
than '__', so changed the tqtruby runtime to expect that.
2003-11-13 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added the KillerFilter event filtering example from chapter 16
of 'Programming with Qt'
* Improved classname resolution via the Qt rtti mechanisms in
of 'Programming with TQt'
* Improved classname resolution via the TQt rtti mechanisms in
TQObject, TQEvent and TQCanvasItem. This fixed a problem in the
KillerFilter example when a TQMouseEvent was passed to the ruby
event handler, it was being instantiated as a ruby TQt::Event,
@ -1282,7 +1282,7 @@
2003-11-11 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Improved nil argument matching, and nil can match any type now
not just classes. Translated the code from the Qt.pm in PerlQt,
not just classes. Translated the code from the TQt.pm in PerlTQt,
after discussion on the kde-perl list.
* Fixed bug in rbuic where a C++ 'TQString::null' was "" in ruby, and
should have been a nil.
@ -1296,7 +1296,7 @@
* Put some C++ code inside blocks to ensure that the destructor clean
up code was called, when the current f'n longjmp's up the stack rather
than returns normally.
* QtRuby looking good, raised the version to 0.9.6 to celebrate
* TQtRuby looking good, raised the version to 0.9.6 to celebrate
2003-11-07 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1309,9 +1309,9 @@
2003-11-03 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* When marshalling a const ref type to a ruby VALUE, it is now copied
* Applied some fixes for construct_copy() from the PerlQt version of
* Applied some fixes for construct_copy() from the PerlTQt version of
handlers.cpp
* Fixed some minor bugs in the progress.rb Qt example
* Fixed some minor bugs in the progress.rb TQt example
2003-11-03 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1375,18 +1375,18 @@
2003-10-08 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Korundum KDE ruby extension
- made various changes so it can be linked against the QtRuby code
- made various changes so it can be linked against the TQtRuby code
2003-09-18 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Removed leading 'K' from class names of when adding to KDE:: namespace.
As per Germain Garand's suggestion on the kde-bindings list:
..actually, I used the same scheme as for Qt when possible, that is:
..actually, I used the same scheme as for TQt when possible, that is:
$class =~ s/^Q/TQt::/ or
$class =~ s/^K/KDE::/ or
$class = "KDE::" . $class
unless $class eq "Qt";
unless $class eq "TQt";
2003-09-18 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1435,8 +1435,8 @@
2003-09-10 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Improved garbage collection with various 'ad hoc' rules from the
QtJava bindings about when it's ok/not ok to destruct an instance.
Not always just a 'parent() != 0' check in Qt.
TQtJava bindings about when it's ok/not ok to destruct an instance.
Not always just a 'parent() != 0' check in TQt.
2003-09-10 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1469,13 +1469,13 @@
* smokeruby_free() and smokeruby_mark() have been implemented
* The C++ instance for a ruby object is deleted in smokeruby_free(),
so watch out for extra crashes!
* Improved README with more details about QtRuby
* Improved README with more details about TQtRuby
2003-09-07 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Improved error message handling, changed rb_error() calls to rb_raise()
* Decided changing method calls like foobar? to isFoobar() not a good idea,
as the Qt property could just as also be hasFoobar() or foobar()
as the TQt property could just as also be hasFoobar() or foobar()
2003-09-06 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1484,7 +1484,7 @@
2003-08-31 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* rbuic code generation brought up to date wrt Qt 3.2 uic
* rbuic code generation brought up to date wrt TQt 3.2 uic
Main change is that a 'languageChanged()' method is generated
2003-08-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1493,7 +1493,7 @@
2003-08-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added 'Run Selection' menu option to the QtRuby shell
* Added 'Run Selection' menu option to the TQtRuby shell
2003-08-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1510,17 +1510,17 @@
2003-08-27 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Changed the operator overloading implementation to be more like PerlQt
* Changed the operator overloading implementation to be more like PerlTQt
2003-08-27 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Translated the rbqtsh filePrint() method from perl
* Translated the rbtqtsh filePrint() method from perl
2003-08-26 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added 'changed' attribute to the MetaInfo class, so that the C++ metaObject
is reconstructed if the slots or signals are changed.
* Changed window title on rbqtsh to 'QtRuby'. The example slot now works
* Changed window title on rbtqtsh to 'TQtRuby'. The example slot now works
correctly. Only just tried this utility - Wow Alex!!
2003-08-26 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1538,16 +1538,16 @@
* Removed obsolete rb_enable_super() calls
* Removed test for _current_object in class_method_missing()
* Fixed missing index in signalInfo() method
* Added Qt scribble example - TODO add TQt::PaintDevice.bitBlt() calls to SMOKE runtime
* Added TQt scribble example - TODO add TQt::PaintDevice.bitBlt() calls to SMOKE runtime
2003-08-23 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added rbuic tool for ruby Qt Designer support
* Added rbuic tool for ruby TQt Designer support
2003-08-12 Alexander Kellett <lypanov@kde.org>
* Add debug level setting via TQt::debug_level
* When calling .new on a Qt object with a incorrect prototype
* When calling .new on a TQt object with a incorrect prototype
the list of appropriate constructors is printed
* Fix a number of cases in which imperfect code would cause a crash
@ -1562,7 +1562,7 @@
2003-08-07 Alexander Kellett <lypanov@kde.org>
* Added rbqtapi and rbqt tools (port of the PerlQt tools of the same name)
* Added rbtqtapi and rbtqt tools (port of the PerlTQt tools of the same name)
2003-08-06 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1575,8 +1575,8 @@
2003-08-12 Alexander Kellett <lypanov@kde.org>
* Add several new marshalling types - TQCanvasItemList for example,
unfortuantely due to several improvements in Qt 3.2 these
improvements will not be seen when compiling against Qt 3.1.2
unfortuantely due to several improvements in TQt 3.2 these
improvements will not be seen when compiling against TQt 3.1.2
2003-08-05 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1584,7 +1584,7 @@
2003-08-05 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Removed redundant 'rb_eval_string("include Qt")' call from extension initialization.
* Removed redundant 'rb_eval_string("include TQt")' call from extension initialization.
2003-08-05 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
@ -1611,8 +1611,8 @@
2003-08-01 Alexander Kellett <lypanov@kde.org>
* Slightly improve ease of debugging of qtruby programs
which subclass Qt base classes by print out some useful
* Slightly improve ease of debugging of tqtruby programs
which subclass TQt base classes by print out some useful
debugging informationn when/if method_missing ever
fails to find a matching function in the baseclass.
@ -1627,14 +1627,14 @@
2003-07-31 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Changed require in Qt.cpp to 'Qt/Qt.rb' instead of 'lib/Qt/Qt.rb'
* Changed require in TQt.cpp to 'TQt/TQt.rb' instead of 'lib/TQt/TQt.rb'
2003-07-31 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Fixed problem with non-working installed version, lib/Qt.rb moved to lib/Qt/Qt.rb
* Fixed problem with non-working installed version, lib/TQt.rb moved to lib/TQt/TQt.rb
2003-07-30 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* QtRuby - a Ruby SMOKE adaptor for Qt, initial checkin
* TQtRuby - a Ruby SMOKE adaptor for TQt, initial checkin

@ -3,7 +3,7 @@ Dependencies
- ruby 1.8 or greater
- automake 1.7 or greater
- Qt 3.1 or greater
- TQt 3.1 or greater
- KDE 3.1 or greater (for korundum)
CVS Snapshot
@ -17,19 +17,19 @@ Configure flags needed
----------------------
In order to build korundum: (this is the default in fact, so you can just use ./configure)
./configure --with-smoke="qt kde"
in order to build just qtruby:
./configure --with-smoke="qt"
./configure --with-smoke="tqt kde"
in order to build just tqtruby:
./configure --with-smoke="tqt"
Building the Qt extension without KDE build process
Building the TQt extension without KDE build process
---------------------------------------------------
To build the Qt.so extension, provide 'extconf.rb' with the directories where
the Qt and Smoke libraries are installed:
To build the TQt.so extension, provide 'extconf.rb' with the directories where
the TQt and Smoke libraries are installed:
$ cd qtruby/rubylib/qtruby
$ cd tqtruby/rubylib/tqtruby
$ ruby extconf.rb --with-smoke-dir=/usr \
--with-qt-dir=/home/duke/src/kde/HEAD/qt-copy
--with-tqt-dir=/home/duke/src/kde/HEAD/tqt-copy
$ make
$ make install
@ -37,16 +37,16 @@ Building on Mac OS X
--------------------
Automake/autoconf don't work very well on Mac OS X, and so qmake and
exconf.rb must be used instead. You can use the native Aqua/Quartz Qt/Mac
version of Qt - QtRuby doesn't require X11.
exconf.rb must be used instead. You can use the native Aqua/Quartz TQt/Mac
version of TQt - TQtRuby doesn't require X11.
Build Qt/Mac and install in /Developer/qt. These configure flags work well:
Build TQt/Mac and install in /Developer/tqt. These configure flags work well:
./configure -system-zlib -qt-gif -plugin-imgfmt-mng -thread -no-stl
./configure -system-zlib -tqt-gif -plugin-imgfmt-mng -thread -no-stl
-no-exceptions -fast
Configure QtRuby and build the Smoke library:
$ ./configure '--with-qt-dir=/Developer/qt' '--enable-mac'
Configure TQtRuby and build the Smoke library:
$ ./configure '--with-tqt-dir=/Developer/tqt' '--enable-mac'
$ cd smoke/tqt
# Generate the Smoke library sources:
$ perl generate.pl
@ -56,27 +56,27 @@ $ qmake -makefile
$ sudo make
...
# Build the 'Qt' extension:
$ cd qtruby/rubylib/qtruby
$ ruby extconf.rb --with-qt-dir=/Developer/qt --with-smoke-dir=/usr \
# Build the 'TQt' extension:
$ cd tqtruby/rubylib/tqtruby
$ ruby extconf.rb --with-tqt-dir=/Developer/tqt --with-smoke-dir=/usr \
--with-smoke-include=../../../smoke
$ make
$ sudo make install
...
# Build the rbuic tool and install into /usr/bin
$ cd qtruby/rubylib/designer/rbuic
$ cd tqtruby/rubylib/designer/rbuic
$ qmake -makefile
$ sudo make
...
# Build the 'tqui' TQWidgetFactory extension
$ cd qtruby/rubylib/designer/uilib
$ ruby extconf.rb --with-qtruby-include=../../qtruby --with-qt-dir=/Developer/qt
$ cd tqtruby/rubylib/designer/uilib
$ ruby extconf.rb --with-tqtruby-include=../../tqtruby --with-tqt-dir=/Developer/tqt
$ make
$ sudo make install
To get Mac menus to appear, when a QtRuby program is run from the command line,
To get Mac menus to appear, when a TQtRuby program is run from the command line,
link ruby against the carbon resource lib and call it 'rubyw', see:
http://www.rubygarden.org/ruby?RubyTkOnOSX
@ -97,12 +97,12 @@ Ryutaro Amano wrote this about creating a double clickable bundle:
"Thanks all, I have succeeded make rubyw.
sample script is launched in foreground.
And I have known the following steps to launch qt-ruby script by double clicking
And I have known the following steps to launch tqt-ruby script by double clicking
from Finder.
As an example, I take qtruby-1.0.11/qtruby/rubylib/tutorial/t14
As an example, I take tqtruby-1.0.11/tqtruby/rubylib/tutorial/t14
cd qtruby-1.0.11/qtruby/rubylib/tutorial/t14
cd tqtruby-1.0.11/tqtruby/rubylib/tutorial/t14
chmod 755 t14.rb
replace first line of t14.rb with "#!/usr/local/bin/rubyw"
mkdir -p Shoot.app/Contents/MacOS
@ -119,7 +119,7 @@ Info.plist is
<key>CFBundleExecutable</key>
<string>Shoot</string>
<key>CFBundleIdentifier</key>
<string>jp.co.ryutaro.qtquit</string>
<string>jp.co.ryutaro.tqtquit</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
@ -129,7 +129,7 @@ Info.plist is
echo -n "APPL????" > Shoot.app/Contents/PkgInfo
Double click Shoot.app, Qt-Window appears in foreground."
Double click Shoot.app, TQt-Window appears in foreground."
TQScintilla text editing widget support
--------------------------------------
@ -139,6 +139,6 @@ number of languages including ruby. It can be downloaded from here:
http://www.riverbankcomputing.co.uk/qscintilla/download.php
Use the '--enable-qscintilla=yes' configure option to build QtRuby with
Use the '--enable-qscintilla=yes' configure option to build TQtRuby with
TQScintilla support. The classes in a 'Qext::' module, with names such as
Qext::Scintilla.

@ -8,7 +8,7 @@
* *
***************************************************************************/
Here is a Ruby SMOKE adaptor for Qt
Here is a Ruby SMOKE adaptor for TQt
Why ruby? From the rubytalk list
@ -31,11 +31,11 @@ On 8/28/03 8:56 PM, "Scott Thompson" wrote:
So there you have it! :)
Here is 'Hello World' in QtRuby:
Here is 'Hello World' in TQtRuby:
#!/usr/bin/ruby -w
require 'Qt'
require 'TQt'
a = TQt::Application.new(ARGV)
hello = TQt::PushButton.new("Hello World!", nil)
@ -46,12 +46,12 @@ a.exec()
Ruby 1.8 is unfortunately implicitly required as with 1.6.x it is not possible to:
Make dynamic constants available (thus forcing syntax such as Qt.RichText rather than TQt::RichText)<br>
Make dynamic constants available (thus forcing syntax such as TQt.RichText rather than TQt::RichText)<br>
Call super in the initialize method thus making subclassing of non trivial classes impossible
QtRuby features a very complete coverage of the Qt api:
TQtRuby features a very complete coverage of the TQt api:
- You can call all Qt public and protected methods, and all friend methods
- You can call all TQt public and protected methods, and all friend methods
such as bitBlt() etc
- Virtual methods
@ -73,7 +73,7 @@ QtRuby features a very complete coverage of the Qt api:
createStandardStatusBarAction()
- Operator overloading
The full range of Qt operator methods is available, for example:
The full range of TQt operator methods is available, for example:
p1 = TQt::Point.new(5,5) => (5, 5)
p2 = TQt::Point.new(20,20) => (20, 20)
@ -85,7 +85,7 @@ QtRuby features a very complete coverage of the Qt api:
slots 'setColor(TQColor)', 'slotLoad(const TQString&)'..
signals 'clicked()'..
Currently C++ type signatures must be used, a future version of QtRuby
Currently C++ type signatures must be used, a future version of TQtRuby
will allow ruby type signatures instead.
Connect slots and signals like this:
@ -163,7 +163,7 @@ QtRuby features a very complete coverage of the Qt api:
error, you can turn on debugging to trace the matching process:
a = TQt::Application.new(ARGV)
Qt.debug_level = TQt::DebugLevel::High
TQt.debug_level = TQt::DebugLevel::High
a.loadLibrary("foo") # Non existent method
Will give the following output:
@ -181,21 +181,21 @@ QtRuby features a very complete coverage of the Qt api:
Another debugging mechanism allows various trace 'channels' to be switched on.
You can trace virtual method callbacks:
TQt::Internal::setDebug(TQt::QtDebugChannel::TQTDB_VIRTUAL)
TQt::Internal::setDebug(TQt::TQtDebugChannel::TQTDB_VIRTUAL)
Or trace QtRuby garbage collection:
TQt::Internal::setDebug(TQt::QtDebugChannel::TQTDB_GC)
Or trace TQtRuby garbage collection:
TQt::Internal::setDebug(TQt::TQtDebugChannel::TQTDB_GC)
- String i18n
QtRuby supports $KCODE values of 'u', 'e' and
's' or the corresponding '-K' options from the command line. Qt Designer
TQtRuby supports $KCODE values of 'u', 'e' and
's' or the corresponding '-K' options from the command line. TQt Designer
.ui files have UTF-8 strings so if you use any 8 bit UTF-8 characters, you
will need to set $KCODE='u' or use the -Ku command line option.
- Qt Designer
A 'rbuic' tool is included in qtruby/rubylib/designer/rbuic to compile
.ui files into ruby code. As described above, Qt Designer uses UTF-8.
- TQt Designer
A 'rbuic' tool is included in tqtruby/rubylib/designer/rbuic to compile
.ui files into ruby code. As described above, TQt Designer uses UTF-8.
In addition to the options in the original uic C++ utility an '-x' flag
has been added. This will generate a top level stub in the code:
@ -216,10 +216,10 @@ QtRuby features a very complete coverage of the Qt api:
$ ruby mainform.rb
- Loading .ui files at runtime with TQWidgetFactory
You can load a Qt Designer .ui file at runtime with the tqui extension,
You can load a TQt Designer .ui file at runtime with the tqui extension,
for example:
require 'Qt'
require 'TQt'
require 'tqui'
a = TQt::Application.new(ARGV)
@ -238,18 +238,18 @@ QtRuby features a very complete coverage of the Qt api:
a.exec()
end
- QtRuby shell
You can use the QtRuby shell in bin/rbqtsh to create widgets
- TQtRuby shell
You can use the TQtRuby shell in bin/rbtqtsh to create widgets
interactively from the command line.
- API reference
Use the bin/rbqtapi tool to discover which methods are available in
the QtRuby api.
Use the bin/rbtqtapi tool to discover which methods are available in
the TQtRuby api.
- Example programs
The best way to start programming QtRuby is to look at some existing
The best way to start programming TQtRuby is to look at some existing
code and start messing with it..
The are various samples under qtruby/rubylib/examples.
The are various samples under tqtruby/rubylib/examples.
- Optional TQScintilla text editing widget support
Great for building your own ruby IDE..

@ -6,8 +6,8 @@
* See the separate TODO list for the rbuic tool
* Write a rubyeditor plugin for Qt Designer
* Write a rubyeditor plugin for TQt Designer
* Add an option to rbqtapi to show the api in ruby format, rather than C++
* Add an option to rbtqtapi to show the api in ruby format, rather than C++
* Write a graphic class browser based on rbqtapi
* Write a graphic class browser based on rbtqtapi

@ -0,0 +1,9 @@
INCLUDES = $(all_includes) -I$(RUBY_ARCHDIR) $(RUBY_CFLAGS)
bin_PROGRAMS = tqtrubyinit
tqtrubyinit_LDFLAGS = -module $(all_libraries) -version-info 0:0:0 -L$(top_srcdir)/smoke/tqt/ -L$(RUBY_LIBDIR)
tqtrubyinit_METASOURCES = AUTO
<