fxruby 1.2.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (437) hide show
  1. data/ChangeLog +0 -90
  2. data/doc/apes02.html +2 -2
  3. data/doc/apes03.html +1 -1
  4. data/doc/book.html +1 -1
  5. data/doc/build.html +26 -26
  6. data/doc/ch03s02.html +1 -2
  7. data/doc/ch03s03.html +1 -2
  8. data/doc/ch03s04.html +1 -2
  9. data/doc/ch03s05.html +1 -2
  10. data/doc/changes.html +12 -7
  11. data/doc/cvs.html +2 -2
  12. data/doc/differences.html +3 -3
  13. data/doc/gems.html +44 -44
  14. data/doc/implementation.html +1 -1
  15. data/doc/library.html +5 -5
  16. data/doc/opengl.html +5 -5
  17. data/doc/pt02.html +1 -1
  18. data/doc/scintilla.html +6 -6
  19. data/doc/tutorial1.html +8 -15
  20. data/examples/babelfish.rb +6 -16
  21. data/examples/bounce.rb +1 -1
  22. data/examples/browser.rb +1 -1
  23. data/examples/button.rb +1 -1
  24. data/examples/datatarget.rb +2 -2
  25. data/examples/dctest.rb +1 -1
  26. data/examples/dialog.rb +1 -1
  27. data/examples/dilbert.rb +2 -2
  28. data/examples/dirlist.rb +1 -1
  29. data/examples/dragdrop.rb +1 -1
  30. data/examples/dragsource.rb +1 -1
  31. data/examples/dropsite.rb +1 -1
  32. data/examples/foursplit.rb +1 -1
  33. data/examples/gltest.rb +2 -2
  34. data/examples/glviewer.rb +4 -4
  35. data/examples/groupbox.rb +2 -2
  36. data/examples/header.rb +3 -3
  37. data/examples/hello.rb +1 -1
  38. data/examples/hello2.rb +1 -1
  39. data/examples/iconlist.rb +16 -1
  40. data/examples/image.rb +2 -2
  41. data/examples/imageviewer.rb +1 -1
  42. data/examples/inputs.rb +1 -1
  43. data/examples/mditest.rb +2 -2
  44. data/examples/pig.rb +1 -1
  45. data/examples/raabrowser.rb +2 -2
  46. data/examples/ratio.rb +2 -2
  47. data/examples/scintilla-test.rb +2 -2
  48. data/examples/scribble-orig.rb +3 -3
  49. data/examples/scribble.rb +1 -1
  50. data/examples/shutter.rb +1 -1
  51. data/examples/splitter.rb +1 -1
  52. data/examples/styledtext.rb +2 -2
  53. data/examples/tabbook.rb +1 -1
  54. data/examples/table.rb +1 -1
  55. data/ext/{fox12 → fox14}/FXRbApp.cpp +7 -13
  56. data/ext/{fox12 → fox14}/FXRbDataTarget.cpp +5 -1
  57. data/ext/{fox12 → fox14}/FXRbGLViewer.cpp +1 -1
  58. data/ext/{fox12 → fox14}/FXRuby.cpp +49 -14
  59. data/ext/{fox12 → fox14}/MANIFEST +0 -0
  60. data/ext/{fox12 → fox14}/core_wrap.cpp +1098 -390
  61. data/ext/{fox12 → fox14}/dc_wrap.cpp +61 -1
  62. data/ext/{fox12 → fox14}/dialogs_wrap.cpp +2293 -939
  63. data/ext/{fox12 → fox14}/extconf.rb +8 -8
  64. data/ext/{fox12 → fox14}/frames_wrap.cpp +1396 -395
  65. data/ext/{fox12 → fox14}/fx3d_wrap.cpp +884 -363
  66. data/ext/{fox12 → fox14}/iconlist_wrap.cpp +338 -117
  67. data/ext/{fox12 → fox14}/icons_wrap.cpp +668 -61
  68. data/ext/{fox12 → fox14}/image_wrap.cpp +245 -164
  69. data/ext/{fox12 → fox14}/impl.cpp +58 -2
  70. data/ext/{fox12 → fox14}/include/FXMemoryBuffer.h +1 -1
  71. data/ext/{fox12 → fox14}/include/FXRb4Splitter.h +1 -1
  72. data/ext/fox14/include/FXRb7Segment.h +51 -0
  73. data/ext/{fox12 → fox14}/include/FXRbAccelTable.h +1 -1
  74. data/ext/{fox12 → fox14}/include/FXRbApp.h +1 -2
  75. data/ext/{fox12 → fox14}/include/FXRbAppVirtuals.h +0 -0
  76. data/ext/{fox12 → fox14}/include/FXRbArrowButton.h +1 -1
  77. data/ext/{fox12 → fox14}/include/FXRbBMPIcon.h +1 -1
  78. data/ext/{fox12 → fox14}/include/FXRbBMPImage.h +1 -1
  79. data/ext/{fox12 → fox14}/include/FXRbBitmap.h +5 -5
  80. data/ext/{fox12 → fox14}/include/FXRbBitmapFrame.h +1 -1
  81. data/ext/{fox12 → fox14}/include/FXRbBitmapView.h +1 -1
  82. data/ext/{fox12 → fox14}/include/FXRbBitmapVirtuals.h +1 -1
  83. data/ext/{fox12 → fox14}/include/FXRbButton.h +1 -1
  84. data/ext/{fox12 → fox14}/include/FXRbCURCursor.h +1 -1
  85. data/ext/{fox12 → fox14}/include/FXRbCanvas.h +1 -1
  86. data/ext/{fox12 → fox14}/include/FXRbCheckButton.h +1 -1
  87. data/ext/fox14/include/FXRbChoiceBox.h +56 -0
  88. data/ext/{fox12 → fox14}/include/FXRbColorBar.h +1 -1
  89. data/ext/{fox12 → fox14}/include/FXRbColorDialog.h +1 -1
  90. data/ext/{fox12 → fox14}/include/FXRbColorSelector.h +1 -1
  91. data/ext/{fox12 → fox14}/include/FXRbColorWell.h +1 -1
  92. data/ext/{fox12 → fox14}/include/FXRbColorWheel.h +1 -1
  93. data/ext/{fox12 → fox14}/include/FXRbComboBox.h +1 -1
  94. data/ext/{fox12 → fox14}/include/FXRbCommon.h +1 -1
  95. data/ext/{fox12 → fox14}/include/FXRbComposite.h +1 -1
  96. data/ext/{fox12 → fox14}/include/FXRbCursor.h +1 -1
  97. data/ext/{fox12 → fox14}/include/FXRbCursorVirtuals.h +0 -0
  98. data/ext/{fox12 → fox14}/include/FXRbDC.h +25 -1
  99. data/ext/{fox12 → fox14}/include/FXRbDCPrint.h +1 -1
  100. data/ext/{fox12 → fox14}/include/FXRbDCVirtuals.h +12 -0
  101. data/ext/{fox12 → fox14}/include/FXRbDCWindow.h +1 -1
  102. data/ext/{fox12 → fox14}/include/FXRbDataTarget.h +1 -1
  103. data/ext/{fox12 → fox14}/include/FXRbDebugTarget.h +1 -1
  104. data/ext/{fox12 → fox14}/include/FXRbDelegator.h +1 -1
  105. data/ext/{fox12 → fox14}/include/FXRbDial.h +1 -1
  106. data/ext/{fox12 → fox14}/include/FXRbDialogBox.h +1 -1
  107. data/ext/{fox12 → fox14}/include/FXRbDialogBoxVirtuals.h +0 -0
  108. data/ext/{fox12 → fox14}/include/FXRbDict.h +1 -1
  109. data/ext/{fox12 → fox14}/include/FXRbDirBox.h +2 -1
  110. data/ext/{fox12 → fox14}/include/FXRbDirDialog.h +4 -1
  111. data/ext/{fox12 → fox14}/include/FXRbDirList.h +1 -1
  112. data/ext/{fox12 → fox14}/include/FXRbDirSelector.h +1 -1
  113. data/ext/fox14/include/FXRbDockBar.h +86 -0
  114. data/ext/fox14/include/FXRbDockBarVirtuals.h +10 -0
  115. data/ext/fox14/include/FXRbDockHandler.h +51 -0
  116. data/ext/fox14/include/FXRbDockSite.h +85 -0
  117. data/ext/fox14/include/FXRbDockSiteVirtuals.h +13 -0
  118. data/ext/fox14/include/FXRbDockTitle.h +51 -0
  119. data/ext/{fox12 → fox14}/include/FXRbDocument.h +1 -1
  120. data/ext/{fox12 → fox14}/include/FXRbDragCorner.h +1 -1
  121. data/ext/{fox12 → fox14}/include/FXRbDrawable.h +1 -1
  122. data/ext/{fox12 → fox14}/include/FXRbDrawableVirtuals.h +0 -0
  123. data/ext/{fox12 → fox14}/include/FXRbDriveBox.h +2 -1
  124. data/ext/{fox12 → fox14}/include/FXRbFileDialog.h +1 -1
  125. data/ext/{fox12 → fox14}/include/FXRbFileDict.h +1 -1
  126. data/ext/{fox12 → fox14}/include/FXRbFileDictVirtuals.h +0 -0
  127. data/ext/{fox12 → fox14}/include/FXRbFileList.h +1 -1
  128. data/ext/{fox12 → fox14}/include/FXRbFileSelector.h +1 -1
  129. data/ext/{fox12 → fox14}/include/FXRbFoldingItemVirtuals.h +2 -5
  130. data/ext/{fox12 → fox14}/include/FXRbFoldingList.h +98 -15
  131. data/ext/fox14/include/FXRbFoldingListVirtuals.h +43 -0
  132. data/ext/{fox12 → fox14}/include/FXRbFont.h +1 -1
  133. data/ext/{fox12 → fox14}/include/FXRbFontDialog.h +1 -1
  134. data/ext/{fox12 → fox14}/include/FXRbFontSelector.h +1 -1
  135. data/ext/{fox12 → fox14}/include/FXRbFrame.h +1 -1
  136. data/ext/{fox12 → fox14}/include/FXRbGIFCursor.h +1 -1
  137. data/ext/{fox12 → fox14}/include/FXRbGIFIcon.h +1 -1
  138. data/ext/{fox12 → fox14}/include/FXRbGIFImage.h +1 -1
  139. data/ext/{fox12 → fox14}/include/FXRbGLCanvas.h +1 -1
  140. data/ext/{fox12 → fox14}/include/FXRbGLCanvasVirtuals.h +0 -0
  141. data/ext/{fox12 → fox14}/include/FXRbGLContext.h +1 -1
  142. data/ext/{fox12 → fox14}/include/FXRbGLObject.h +1 -1
  143. data/ext/{fox12 → fox14}/include/FXRbGLObjectVirtuals.h +0 -0
  144. data/ext/{fox12 → fox14}/include/FXRbGLShape.h +1 -1
  145. data/ext/{fox12 → fox14}/include/FXRbGLShapeVirtuals.h +0 -0
  146. data/ext/{fox12 → fox14}/include/FXRbGLViewer.h +7 -1
  147. data/ext/{fox12 → fox14}/include/FXRbGLViewerVirtuals.h +4 -0
  148. data/ext/{fox12 → fox14}/include/FXRbGLVisual.h +1 -1
  149. data/ext/{fox12 → fox14}/include/FXRbGradientBar.h +1 -1
  150. data/ext/{fox12 → fox14}/include/FXRbGroupBox.h +1 -1
  151. data/ext/{fox12 → fox14}/include/FXRbHeader.h +1 -1
  152. data/ext/{fox12 → fox14}/include/FXRbHeaderItemVirtuals.h +0 -0
  153. data/ext/{fox12 → fox14}/include/FXRbHorizontalFrame.h +1 -1
  154. data/ext/{fox12 → fox14}/include/FXRbICOIcon.h +1 -1
  155. data/ext/{fox12 → fox14}/include/FXRbICOImage.h +1 -1
  156. data/ext/{fox12 → fox14}/include/FXRbIcon.h +1 -1
  157. data/ext/{fox12 → fox14}/include/FXRbIconItemVirtuals.h +2 -5
  158. data/ext/{fox12 → fox14}/include/FXRbIconList.h +33 -15
  159. data/ext/{fox12 → fox14}/include/FXRbIconListVirtuals.h +14 -0
  160. data/ext/fox14/include/FXRbIconSource.h +127 -0
  161. data/ext/fox14/include/FXRbIconSourceVirtuals.h +37 -0
  162. data/ext/{fox12 → fox14}/include/FXRbId.h +1 -1
  163. data/ext/{fox12 → fox14}/include/FXRbIdVirtuals.h +0 -0
  164. data/ext/{fox12 → fox14}/include/FXRbImage.h +5 -5
  165. data/ext/{fox12 → fox14}/include/FXRbImageFrame.h +1 -1
  166. data/ext/{fox12 → fox14}/include/FXRbImageView.h +1 -1
  167. data/ext/{fox12 → fox14}/include/FXRbImageVirtuals.h +1 -1
  168. data/ext/{fox12 → fox14}/include/FXRbInputDialog.h +4 -1
  169. data/ext/{fox12 → fox14}/include/FXRbJPGIcon.h +1 -1
  170. data/ext/{fox12 → fox14}/include/FXRbJPGImage.h +1 -1
  171. data/ext/{fox12 → fox14}/include/FXRbLabel.h +1 -1
  172. data/ext/{fox12 → fox14}/include/FXRbList.h +29 -11
  173. data/ext/{fox12 → fox14}/include/FXRbListBox.h +12 -1
  174. data/ext/fox14/include/FXRbListBoxVirtuals.h +4 -0
  175. data/ext/{fox12 → fox14}/include/FXRbListItemVirtuals.h +1 -4
  176. data/ext/{fox12 → fox14}/include/FXRbListVirtuals.h +12 -0
  177. data/ext/{fox12 → fox14}/include/FXRbMDIButton.h +1 -1
  178. data/ext/{fox12 → fox14}/include/FXRbMDIChild.h +1 -1
  179. data/ext/{fox12 → fox14}/include/FXRbMDIChildVirtuals.h +0 -0
  180. data/ext/{fox12 → fox14}/include/FXRbMDIClient.h +1 -1
  181. data/ext/{fox12 → fox14}/include/FXRbMDIClientVirtuals.h +0 -0
  182. data/ext/{fox12 → fox14}/include/FXRbMainWindow.h +1 -1
  183. data/ext/{fox12 → fox14}/include/FXRbMatrix.h +1 -1
  184. data/ext/{fox12 → fox14}/include/FXRbMenuBar.h +2 -2
  185. data/ext/{fox12 → fox14}/include/FXRbMenuButton.h +1 -1
  186. data/ext/{fox12 → fox14}/include/FXRbMenuCaption.h +1 -1
  187. data/ext/{fox12 → fox14}/include/FXRbMenuCascade.h +1 -1
  188. data/ext/{fox12 → fox14}/include/FXRbMenuCheck.h +1 -1
  189. data/ext/{fox12 → fox14}/include/FXRbMenuCommand.h +1 -1
  190. data/ext/{fox12 → fox14}/include/FXRbMenuPane.h +1 -1
  191. data/ext/{fox12 → fox14}/include/FXRbMenuRadio.h +1 -1
  192. data/ext/{fox12 → fox14}/include/FXRbMenuSeparator.h +1 -1
  193. data/ext/{fox12 → fox14}/include/FXRbMenuTitle.h +1 -1
  194. data/ext/{fox12 → fox14}/include/FXRbMessageBox.h +1 -1
  195. data/ext/{fox12 → fox14}/include/FXRbObject.h +1 -1
  196. data/ext/{fox12 → fox14}/include/FXRbObjectVirtuals.h +0 -0
  197. data/ext/{fox12 → fox14}/include/FXRbOptionMenu.h +1 -1
  198. data/ext/{fox12 → fox14}/include/FXRbPCXIcon.h +1 -1
  199. data/ext/{fox12 → fox14}/include/FXRbPCXImage.h +1 -1
  200. data/ext/{fox12 → fox14}/include/FXRbPNGIcon.h +1 -1
  201. data/ext/{fox12 → fox14}/include/FXRbPNGImage.h +1 -1
  202. data/ext/{fox12 → fox14}/include/FXRbPPMIcon.h +1 -1
  203. data/ext/{fox12 → fox14}/include/FXRbPPMImage.h +1 -1
  204. data/ext/{fox12 → fox14}/include/FXRbPacker.h +1 -1
  205. data/ext/{fox12 → fox14}/include/FXRbPicker.h +1 -1
  206. data/ext/{fox12 → fox14}/include/FXRbPopup.h +1 -1
  207. data/ext/{fox12 → fox14}/include/FXRbPopupVirtuals.h +0 -0
  208. data/ext/{fox12 → fox14}/include/FXRbPrintDialog.h +1 -1
  209. data/ext/{fox12 → fox14}/include/FXRbProgressBar.h +1 -1
  210. data/ext/{fox12 → fox14}/include/FXRbProgressDialog.h +1 -1
  211. data/ext/{fox12 → fox14}/include/FXRbRGBIcon.h +1 -1
  212. data/ext/{fox12 → fox14}/include/FXRbRGBImage.h +1 -1
  213. data/ext/{fox12 → fox14}/include/FXRbRadioButton.h +1 -1
  214. data/ext/{fox12 → fox14}/include/FXRbRealSlider.h +1 -1
  215. data/ext/{fox12 → fox14}/include/FXRbRealSpinner.h +1 -1
  216. data/ext/{fox12 → fox14}/include/FXRbRealSpinnerVirtuals.h +0 -0
  217. data/ext/{fox12 → fox14}/include/FXRbRecentFiles.h +1 -1
  218. data/ext/{fox12 → fox14}/include/FXRbRegistry.h +1 -1
  219. data/ext/{fox12 → fox14}/include/FXRbReplaceDialog.h +1 -1
  220. data/ext/{fox12 → fox14}/include/FXRbRootWindow.h +1 -1
  221. data/ext/{fox12 → fox14}/include/FXRbRuler.h +1 -1
  222. data/ext/{fox12 → fox14}/include/FXRbScintilla.h +1 -1
  223. data/ext/{fox12 → fox14}/include/FXRbScrollArea.h +1 -1
  224. data/ext/{fox12 → fox14}/include/FXRbScrollAreaVirtuals.h +0 -0
  225. data/ext/{fox12 → fox14}/include/FXRbScrollBar.h +1 -1
  226. data/ext/{fox12 → fox14}/include/FXRbScrollPane.h +1 -1
  227. data/ext/{fox12 → fox14}/include/FXRbScrollWindow.h +1 -1
  228. data/ext/{fox12 → fox14}/include/FXRbSearchDialog.h +1 -1
  229. data/ext/{fox12 → fox14}/include/FXRbSeparator.h +1 -1
  230. data/ext/{fox12 → fox14}/include/FXRbSettings.h +1 -1
  231. data/ext/{fox12 → fox14}/include/FXRbShell.h +1 -1
  232. data/ext/{fox12 → fox14}/include/FXRbShutter.h +1 -1
  233. data/ext/{fox12 → fox14}/include/FXRbShutterVirtuals.h +0 -0
  234. data/ext/{fox12 → fox14}/include/FXRbSlider.h +1 -1
  235. data/ext/{fox12 → fox14}/include/FXRbSpinner.h +1 -1
  236. data/ext/{fox12 → fox14}/include/FXRbSpinnerVirtuals.h +0 -0
  237. data/ext/fox14/include/FXRbSplashWindow.h +57 -0
  238. data/ext/{fox12 → fox14}/include/FXRbSplitter.h +1 -1
  239. data/ext/{fox12 → fox14}/include/FXRbSpring.h +1 -1
  240. data/ext/{fox12 → fox14}/include/FXRbStatusBar.h +1 -1
  241. data/ext/{fox12 → fox14}/include/FXRbStatusLine.h +1 -1
  242. data/ext/{fox12 → fox14}/include/FXRbStream.h +3 -3
  243. data/ext/{fox12 → fox14}/include/FXRbStreamVirtuals.h +1 -1
  244. data/ext/{fox12 → fox14}/include/FXRbStringDict.h +1 -1
  245. data/ext/{fox12 → fox14}/include/FXRbSwitcher.h +1 -1
  246. data/ext/{fox12 → fox14}/include/FXRbTGAIcon.h +1 -1
  247. data/ext/{fox12 → fox14}/include/FXRbTGAImage.h +1 -1
  248. data/ext/{fox12 → fox14}/include/FXRbTIFIcon.h +1 -1
  249. data/ext/{fox12 → fox14}/include/FXRbTIFImage.h +1 -1
  250. data/ext/{fox12 → fox14}/include/FXRbTabBar.h +1 -1
  251. data/ext/{fox12 → fox14}/include/FXRbTabBarVirtuals.h +0 -0
  252. data/ext/{fox12 → fox14}/include/FXRbTabBook.h +1 -1
  253. data/ext/{fox12 → fox14}/include/FXRbTabItem.h +1 -1
  254. data/ext/{fox12 → fox14}/include/FXRbTable.h +96 -36
  255. data/ext/{fox12 → fox14}/include/FXRbTableItemVirtuals.h +24 -3
  256. data/ext/{fox12 → fox14}/include/FXRbTableVirtuals.h +19 -6
  257. data/ext/{fox12 → fox14}/include/FXRbText.h +2 -2
  258. data/ext/{fox12 → fox14}/include/FXRbTextField.h +1 -1
  259. data/ext/{fox12 → fox14}/include/FXRbTextVirtuals.h +0 -0
  260. data/ext/{fox12 → fox14}/include/FXRbToggleButton.h +1 -1
  261. data/ext/{fox12 → fox14}/include/FXRbToolBar.h +2 -19
  262. data/ext/{fox12 → fox14}/include/FXRbToolBarGrip.h +1 -1
  263. data/ext/{fox12 → fox14}/include/FXRbToolBarShell.h +1 -1
  264. data/ext/{fox12 → fox14}/include/FXRbToolBarTab.h +1 -1
  265. data/ext/{fox12 → fox14}/include/FXRbToolTip.h +1 -1
  266. data/ext/{fox12 → fox14}/include/FXRbTopWindow.h +1 -1
  267. data/ext/{fox12 → fox14}/include/FXRbTopWindowVirtuals.h +0 -0
  268. data/ext/{fox12 → fox14}/include/FXRbTreeItemVirtuals.h +2 -2
  269. data/ext/{fox12 → fox14}/include/FXRbTreeList.h +33 -9
  270. data/ext/{fox12 → fox14}/include/FXRbTreeListBox.h +12 -1
  271. data/ext/fox14/include/FXRbTreeListBoxVirtuals.h +4 -0
  272. data/ext/{fox12 → fox14}/include/FXRbTreeListVirtuals.h +12 -0
  273. data/ext/{fox12 → fox14}/include/FXRbTriStateButton.h +1 -1
  274. data/ext/{fox12 → fox14}/include/FXRbVerticalFrame.h +1 -1
  275. data/ext/{fox12 → fox14}/include/FXRbVisual.h +1 -1
  276. data/ext/{fox12 → fox14}/include/FXRbWindow.h +35 -5
  277. data/ext/{fox12 → fox14}/include/FXRbWindowVirtuals.h +17 -1
  278. data/ext/{fox12 → fox14}/include/FXRbWizard.h +1 -1
  279. data/ext/{fox12 → fox14}/include/FXRbXBMIcon.h +1 -1
  280. data/ext/{fox12 → fox14}/include/FXRbXBMImage.h +1 -1
  281. data/ext/{fox12 → fox14}/include/FXRbXPMIcon.h +1 -1
  282. data/ext/{fox12 → fox14}/include/FXRbXPMImage.h +1 -1
  283. data/ext/{fox12 → fox14}/include/FXRuby.h +78 -7
  284. data/ext/{fox12 → fox14}/include/impl.h +7 -0
  285. data/ext/{fox12 → fox14}/include/inlinestubs.h +58 -2
  286. data/ext/{fox12 → fox14}/label_wrap.cpp +524 -68
  287. data/ext/{fox12 → fox14}/layout_wrap.cpp +1025 -90
  288. data/ext/{fox12 → fox14}/librb.c +0 -0
  289. data/ext/{fox12 → fox14}/list_wrap.cpp +328 -234
  290. data/ext/{fox12 → fox14}/markfuncs.cpp +29 -4
  291. data/ext/{fox12 → fox14}/mdi_wrap.cpp +553 -99
  292. data/ext/{fox12 → fox14}/menu_wrap.cpp +967 -404
  293. data/ext/{fox12 → fox14}/scintilla_wrap.cpp +754 -635
  294. data/ext/{fox12 → fox14}/table_wrap.cpp +501 -284
  295. data/ext/{fox12 → fox14}/text_wrap.cpp +765 -629
  296. data/ext/{fox12 → fox14}/treelist_wrap.cpp +859 -661
  297. data/ext/{fox12 → fox14}/ui_wrap.cpp +3025 -627
  298. data/ext/{fox12 → fox14}/unregisterOwnedObjects.cpp +1 -1
  299. data/lib/{fox12 → fox14}/aliases.rb +252 -45
  300. data/lib/{fox12 → fox14}/calendar.rb +2 -2
  301. data/lib/{fox12 → fox14}/chore.rb +1 -1
  302. data/lib/{fox12 → fox14}/colors.rb +1 -1
  303. data/lib/{fox12 → fox14}/core.rb +126 -52
  304. data/lib/{fox12 → fox14}/dict.rb +0 -0
  305. data/lib/{fox12 → fox14}/execute_nonmodal.rb +0 -0
  306. data/lib/{fox12 → fox14}/glgroup.rb +1 -1
  307. data/lib/{fox12 → fox14}/glshapes.rb +1 -1
  308. data/lib/{fox12 → fox14}/input.rb +1 -1
  309. data/lib/{fox12 → fox14}/irb.rb +1 -1
  310. data/lib/{fox12 → fox14}/iterators.rb +1 -1
  311. data/lib/{fox12 → fox14}/keys.rb +1 -1
  312. data/lib/{fox12 → fox14}/missingdep.rb +1 -1
  313. data/lib/{fox12 → fox14}/pseudokeyboard.rb +1 -1
  314. data/lib/{fox12 → fox14}/pseudomouse.rb +1 -1
  315. data/lib/{fox12 → fox14}/responder.rb +1 -1
  316. data/lib/{fox12 → fox14}/responder2.rb +5 -5
  317. data/lib/{fox12 → fox14}/scintilla.rb +0 -0
  318. data/lib/{fox12 → fox14}/settings.rb +0 -0
  319. data/lib/{fox12 → fox14}/signal.rb +1 -1
  320. data/lib/{fox12 → fox14}/splashscreen.rb +2 -2
  321. data/lib/{fox12 → fox14}/timeout.rb +1 -1
  322. data/lib/{fox12 → fox14}/undolist.rb +2 -2
  323. data/lib/{fox12 → fox14}/version.rb +2 -2
  324. data/rdoc-sources/FX7Segment.rb +48 -0
  325. data/rdoc-sources/FXApp.rb +51 -31
  326. data/rdoc-sources/FXBMPIcon.rb +18 -1
  327. data/rdoc-sources/FXBMPImage.rb +5 -0
  328. data/rdoc-sources/FXBitmap.rb +18 -3
  329. data/rdoc-sources/FXBitmapFrame.rb +3 -1
  330. data/rdoc-sources/FXBitmapView.rb +4 -1
  331. data/rdoc-sources/FXButton.rb +16 -0
  332. data/rdoc-sources/FXCheckButton.rb +25 -1
  333. data/rdoc-sources/FXChoiceBox.rb +82 -0
  334. data/rdoc-sources/FXColorBar.rb +6 -1
  335. data/rdoc-sources/FXColorDialog.rb +1 -0
  336. data/rdoc-sources/FXColorWell.rb +14 -6
  337. data/rdoc-sources/FXColorWheel.rb +6 -4
  338. data/rdoc-sources/FXComboBox.rb +53 -5
  339. data/rdoc-sources/FXCursor.rb +2 -2
  340. data/rdoc-sources/FXDC.rb +36 -2
  341. data/rdoc-sources/FXDial.rb +10 -4
  342. data/rdoc-sources/FXDirBox.rb +7 -1
  343. data/rdoc-sources/FXDirDialog.rb +33 -0
  344. data/rdoc-sources/FXDirList.rb +8 -3
  345. data/rdoc-sources/FXDirSelector.rb +36 -2
  346. data/rdoc-sources/FXDockBar.rb +136 -0
  347. data/rdoc-sources/FXDockHandler.rb +19 -0
  348. data/rdoc-sources/FXDockSite.rb +86 -0
  349. data/rdoc-sources/FXDockTitle.rb +26 -0
  350. data/rdoc-sources/FXFileDialog.rb +33 -0
  351. data/rdoc-sources/FXFileDict.rb +29 -56
  352. data/rdoc-sources/FXFileList.rb +39 -16
  353. data/rdoc-sources/FXFileSelector.rb +28 -2
  354. data/rdoc-sources/FXFileStream.rb +3 -0
  355. data/rdoc-sources/FXFoldingList.rb +104 -62
  356. data/rdoc-sources/FXFont.rb +2 -9
  357. data/rdoc-sources/FXFrame.rb +7 -1
  358. data/rdoc-sources/FXGIFCursor.rb +17 -5
  359. data/rdoc-sources/FXGIFIcon.rb +5 -0
  360. data/rdoc-sources/FXGIFImage.rb +5 -0
  361. data/rdoc-sources/FXHeader.rb +24 -4
  362. data/rdoc-sources/FXICOIcon.rb +10 -0
  363. data/rdoc-sources/FXICOImage.rb +5 -0
  364. data/rdoc-sources/FXIconList.rb +37 -13
  365. data/rdoc-sources/FXIconSource.rb +100 -0
  366. data/rdoc-sources/FXImage.rb +8 -2
  367. data/rdoc-sources/FXInputDialog.rb +6 -0
  368. data/rdoc-sources/FXJPGIcon.rb +13 -0
  369. data/rdoc-sources/FXJPGImage.rb +8 -0
  370. data/rdoc-sources/FXLabel.rb +4 -1
  371. data/rdoc-sources/FXList.rb +19 -9
  372. data/rdoc-sources/FXListBox.rb +22 -4
  373. data/rdoc-sources/FXMDIChild.rb +21 -2
  374. data/rdoc-sources/FXMDIClient.rb +15 -11
  375. data/rdoc-sources/FXMainWindow.rb +7 -1
  376. data/rdoc-sources/FXMemoryStream.rb +2 -0
  377. data/rdoc-sources/FXMenuBar.rb +1 -1
  378. data/rdoc-sources/FXMessageBox.rb +17 -7
  379. data/rdoc-sources/FXObject.rb +7 -1
  380. data/rdoc-sources/FXPCXIcon.rb +10 -0
  381. data/rdoc-sources/FXPCXImage.rb +5 -0
  382. data/rdoc-sources/FXPNGIcon.rb +15 -2
  383. data/rdoc-sources/FXPNGImage.rb +8 -0
  384. data/rdoc-sources/FXPPMIcon.rb +10 -0
  385. data/rdoc-sources/FXPPMImage.rb +5 -0
  386. data/rdoc-sources/FXQuatd.rb +1 -1
  387. data/rdoc-sources/FXQuatf.rb +1 -1
  388. data/rdoc-sources/FXRGBIcon.rb +12 -2
  389. data/rdoc-sources/FXRGBImage.rb +5 -0
  390. data/rdoc-sources/FXRegistry.rb +19 -2
  391. data/rdoc-sources/FXRuler.rb +47 -5
  392. data/rdoc-sources/FXScrollArea.rb +4 -4
  393. data/rdoc-sources/FXScrollPane.rb +3 -1
  394. data/rdoc-sources/FXSeparator.rb +20 -10
  395. data/rdoc-sources/FXSettings.rb +3 -3
  396. data/rdoc-sources/FXShell.rb +2 -1
  397. data/rdoc-sources/FXShutter.rb +7 -2
  398. data/rdoc-sources/FXSphered.rb +5 -2
  399. data/rdoc-sources/FXSpheref.rb +5 -2
  400. data/rdoc-sources/FXSplashWindow.rb +31 -0
  401. data/rdoc-sources/FXSplitter.rb +2 -1
  402. data/rdoc-sources/FXStream.rb +11 -2
  403. data/rdoc-sources/FXTGAIcon.rb +12 -2
  404. data/rdoc-sources/FXTGAImage.rb +5 -0
  405. data/rdoc-sources/FXTIFIcon.rb +15 -2
  406. data/rdoc-sources/FXTIFImage.rb +8 -0
  407. data/rdoc-sources/FXTable.rb +92 -15
  408. data/rdoc-sources/FXText.rb +11 -2
  409. data/rdoc-sources/FXTextField.rb +6 -2
  410. data/rdoc-sources/FXToolBar.rb +5 -65
  411. data/rdoc-sources/FXToolBarGrip.rb +5 -10
  412. data/rdoc-sources/FXToolBarTab.rb +8 -3
  413. data/rdoc-sources/FXTopWindow.rb +4 -0
  414. data/rdoc-sources/FXTreeList.rb +56 -50
  415. data/rdoc-sources/FXTreeListBox.rb +49 -30
  416. data/rdoc-sources/FXWindow.rb +30 -11
  417. data/rdoc-sources/FXXBMIcon.rb +10 -0
  418. data/rdoc-sources/FXXBMImage.rb +5 -0
  419. data/rdoc-sources/FXXPMIcon.rb +11 -1
  420. data/rdoc-sources/FXXPMImage.rb +5 -0
  421. data/rdoc-sources/README.rdoc +1 -1
  422. data/tests/TC_FXBMPIcon.rb +15 -0
  423. data/tests/TC_FXBMPImage.rb +15 -0
  424. data/tests/TC_FXFont.rb +0 -10
  425. data/tests/TC_FXXBMIcon.rb +15 -0
  426. data/tests/TC_FXXBMImage.rb +15 -0
  427. data/tests/TC_FXXPMIcon.rb +15 -0
  428. data/tests/TC_FXXPMImage.rb +15 -0
  429. data/web/downloads.html +3 -1
  430. data/web/home.html +3 -1
  431. metadata +290 -268
  432. data/ANNOUNCE +0 -25
  433. data/examples/mditest2.rb +0 -195
  434. data/ext/fox12/include/FXRbToolBarVirtuals.h +0 -6
  435. data/lib/fox12/dialogs.rb +0 -72
  436. data/tests/TC_FXSettings.rb +0 -34
  437. data/tests/doit.rb +0 -5
@@ -1,6 +1,6 @@
1
1
  <html><head>
2
2
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
3
- <title>Appendix&nbsp;E.&nbsp;Implementation</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="library.html" title="Appendix&nbsp;D.&nbsp;The FXRuby Standard Library"><link rel="next" href="apes02.html" title="Object Life Cycles and Garbage Collection"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;E.&nbsp;Implementation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="library.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="apes02.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="implementation"></a>Appendix&nbsp;E.&nbsp;Implementation</h2></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="implementation.html#d0e4058">Code Generation</a></dt><dt><a href="apes02.html">Object Life Cycles and Garbage Collection</a></dt><dd><dl><dt><a href="apes02.html#d0e4096">GL Objects</a></dt></dl></dd><dt><a href="apes03.html">Virtual Functions</a></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4058"></a>Code Generation</h2></div></div><div></div></div><p>The development and maintenance of FXRuby would be almost impossible
3
+ <title>Appendix&nbsp;E.&nbsp;Implementation</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="library.html" title="Appendix&nbsp;D.&nbsp;The FXRuby Standard Library"><link rel="next" href="apes02.html" title="Object Life Cycles and Garbage Collection"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;E.&nbsp;Implementation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="library.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="apes02.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="implementation"></a>Appendix&nbsp;E.&nbsp;Implementation</h2></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="implementation.html#d0e4071">Code Generation</a></dt><dt><a href="apes02.html">Object Life Cycles and Garbage Collection</a></dt><dd><dl><dt><a href="apes02.html#d0e4109">GL Objects</a></dt></dl></dd><dt><a href="apes03.html">Virtual Functions</a></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4071"></a>Code Generation</h2></div></div><div></div></div><p>The development and maintenance of FXRuby would be almost impossible
4
4
  without the help of Dave Beazley's excellent
5
5
  <a href="http://www.swig.org" target="_top">SWIG</a>. The complete set of SWIG
6
6
  interface files used to generate FXRuby is included in the standard
@@ -1,18 +1,18 @@
1
1
  <html><head>
2
2
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
3
- <title>Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="differences.html" title="Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby"><link rel="next" href="implementation.html" title="Appendix&nbsp;E.&nbsp;Implementation"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="differences.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="implementation.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="library"></a>Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</h2></div></div><div></div></div><p>While the majority of FXRuby is in fact implemented by an extension module, some parts are provided instead by "pure Ruby" code. This section describes the classes and modules available in the FXRuby standard library.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3920"></a>Undoable Commands</h2></div></div><div></div></div><p>The <tt class="filename">fox/undolist.rb</tt> file provides the <tt class="classname">FXCommand</tt> and <tt class="classname">FXUndoList</tt> classes. These serve the same purpose as the <tt class="classname">FXCommand</tt> and <tt class="classname">FXUndoList</tt> classes from the standard FOX distribution, but they're implemented entirely in Ruby.</p><p>For a complete description of these classes and how to use them, see the RD documentation in <tt class="filename">fox/undolist.rb</tt>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3945"></a>Aliases</h2></div></div><div></div></div><p>The <tt class="filename">fox/aliases.rb</tt> implements most of the accessor-style aliases for methods. This file is loaded automatically when you </p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox'</pre></td></tr></table><p> and so you should never need to load it directly.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3956"></a>Color Names</h2></div></div><div></div></div><p>The <tt class="filename">fox/colors.rb</tt> file, contributed by Jeff
3
+ <title>Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="differences.html" title="Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby"><link rel="next" href="implementation.html" title="Appendix&nbsp;E.&nbsp;Implementation"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="differences.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="implementation.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="library"></a>Appendix&nbsp;D.&nbsp;The FXRuby Standard Library</h2></div></div><div></div></div><p>While the majority of FXRuby is in fact implemented by an extension module, some parts are provided instead by "pure Ruby" code. This section describes the classes and modules available in the FXRuby standard library.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3933"></a>Undoable Commands</h2></div></div><div></div></div><p>The <tt class="filename">fox/undolist.rb</tt> file provides the <tt class="classname">FXCommand</tt> and <tt class="classname">FXUndoList</tt> classes. These serve the same purpose as the <tt class="classname">FXCommand</tt> and <tt class="classname">FXUndoList</tt> classes from the standard FOX distribution, but they're implemented entirely in Ruby.</p><p>For a complete description of these classes and how to use them, see the RD documentation in <tt class="filename">fox/undolist.rb</tt>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3958"></a>Aliases</h2></div></div><div></div></div><p>The <tt class="filename">fox/aliases.rb</tt> implements most of the accessor-style aliases for methods. This file is loaded automatically when you </p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox'</pre></td></tr></table><p> and so you should never need to load it directly.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3969"></a>Color Names</h2></div></div><div></div></div><p>The <tt class="filename">fox/colors.rb</tt> file, contributed by Jeff
4
4
  Heard, provides a bunch of predefined color values (based on the standard
5
5
  X11 color names). You can use these color constants anywhere that FOX
6
6
  expects an RGB color value, e.g.</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">dc = FXDCWindow.new(drawable, ev)
7
7
  dc.foreground = FXColor::MistyRose # instead of FXRGB(255, 228, 225)
8
- dc.background = FXColor::MidnightBlue # instead of FXRGB( 25, 25, 112)</pre></td></tr></table></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3966"></a>OpenGL Shapes</h2></div></div><div></div></div><p>The <tt class="filename">fox/glshapes.rb</tt> library provides Ruby
8
+ dc.background = FXColor::MidnightBlue # instead of FXRGB( 25, 25, 112)</pre></td></tr></table></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3979"></a>OpenGL Shapes</h2></div></div><div></div></div><p>The <tt class="filename">fox/glshapes.rb</tt> library provides Ruby
9
9
  implementations of a number of basic 3-D shapes (all derived from the
10
10
  built-in <tt class="classname">FXGLShape</tt> class) that can be used with
11
11
  the <tt class="classname">FXGLViewer</tt>. Several of these shapes are used
12
12
  in the <tt class="filename">glviewer.rb</tt> example program. These shapes
13
13
  were originally implemented in C++ and wrapped using SWIG, but they are
14
14
  straightforward enough to implement in Ruby so they were moved out to
15
- this library instead.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3983"></a>Iterators</h2></div></div><div></div></div><p>The <tt class="filename">fox/iterators.rb</tt> library just adds an
15
+ this library instead.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3996"></a>Iterators</h2></div></div><div></div></div><p>The <tt class="filename">fox/iterators.rb</tt> library just adds an
16
16
  <tt class="methodname">each</tt> instance method for the <tt class="classname">
17
17
  FXComboBox</tt>, <tt class="classname">FXGLGroup</tt>, <tt class="classname">
18
18
  FXHeader</tt>, <tt class="classname">FXIconList</tt>, <tt class="classname">
@@ -21,10 +21,10 @@ dc.background = FXColor::MidnightBlue # instead of FXRGB( 25, 25, 112)</pre><
21
21
  FXTreeList</tt> and <tt class="classname">FXTreeListBox</tt> classes,
22
22
  so that you can iterate over their members in a Ruby-friendly way. It
23
23
  also mixes the <tt class="classname">Enumerable</tt> module into each of
24
- these classes.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4027"></a>Key Codes</h2></div></div><div></div></div><p>The <tt class="filename">fox/keys.rb</tt> library file defines all of the
24
+ these classes.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4040"></a>Key Codes</h2></div></div><div></div></div><p>The <tt class="filename">fox/keys.rb</tt> library file defines all of the
25
25
  key codes (e.g. <tt class="constant">KEY_space</tt>) that might show up in the
26
26
  code field of an <tt class="classname">FXEvent</tt> instance. This file is
27
27
  loaded automatically when you
28
28
  </p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox'</pre></td></tr></table><p> and
29
29
  so you should never need to load it
30
- directly.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4044"></a>Calendar Widget</h2></div></div><div></div></div><p>The <tt class="filename">fox/calendar.rb</tt> library file provides the <tt class="classname">FXCalendar</tt> widget, contributed by David Naseby.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="differences.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="pt02.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="implementation.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Appendix&nbsp;E.&nbsp;Implementation</td></tr></table></div></body></html>
30
+ directly.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4057"></a>Calendar Widget</h2></div></div><div></div></div><p>The <tt class="filename">fox/calendar.rb</tt> library file provides the <tt class="classname">FXCalendar</tt> widget, contributed by David Naseby.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="differences.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="pt02.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="implementation.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Appendix&nbsp;E.&nbsp;Implementation</td></tr></table></div></body></html>
@@ -5,10 +5,10 @@
5
5
  widgets, and FXRuby in turn provides interfaces to those classes. By
6
6
  combining FXRuby with the OpenGL interface for Ruby (described below) you
7
7
  can develop very powerful 3-D graphics applications. This chapter gives
8
- you the information you'll need to get started.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3063"></a>What is OpenGL?</h2></div></div><div></div></div><p>OpenGL is a platform-independent API for 2D and 3D graphics. The
8
+ you the information you'll need to get started.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3076"></a>What is OpenGL?</h2></div></div><div></div></div><p>OpenGL is a platform-independent API for 2D and 3D graphics. The
9
9
  home page is <a href="http://www.opengl.org" target="_top">http://www.opengl.org</a>. Because it's a
10
10
  fairly open standard, highly optimized OpenGL drivers are available for
11
- most operating systems (including Windows and Linux).</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3071"></a>OpenGL Extensions for Ruby</h2></div></div><div></div></div><p>This extension module, developed by Yoshiyuki Kusano, provides
11
+ most operating systems (including Windows and Linux).</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3084"></a>OpenGL Extensions for Ruby</h2></div></div><div></div></div><p>This extension module, developed by Yoshiyuki Kusano, provides
12
12
  interfaces to not only the basic OpenGL API, but also the GLU and GLUT
13
13
  APIs. As of this writing, the currently released version is 0.32d and is
14
14
  available for download from <a href="http://www2.giganet.net/~yoshi/rbogl-0.32b.tgz" target="_top">http://www2.giganet.net/~yoshi/rbogl-0.32d.tgz</a>.
@@ -25,7 +25,7 @@
25
25
  extensions by typing:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="screen">$ <b class="command">make site-install</b></pre></td></tr></table><p>Please note that I'm not the maintainer of this particular Ruby
26
26
  extension, so I can't really accept bug fixes for it. But if you're having
27
27
  trouble integrating Ruby/OpenGL with FXRuby, let me know and we'll see
28
- what we can do.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3126"></a>The FXGLVisual Class</h2></div></div><div></div></div><p>An <tt class="classname">FXGLVisual</tt> object describes the
28
+ what we can do.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3139"></a>The FXGLVisual Class</h2></div></div><div></div></div><p>An <tt class="classname">FXGLVisual</tt> object describes the
29
29
  capabilities of an <tt class="classname">FXGLCanvas</tt> or
30
30
  <tt class="classname">FXGLViewer</tt> window. Typically, an X server supports
31
31
  many different visuals with varying capabilities, but the ones with
@@ -58,13 +58,13 @@ end</pre></td></tr></table><p>Some <tt class="classname">FXGLVisual</tt> object
58
58
  separate <tt class="classname">FXGLVisual</tt> object for each window. For
59
59
  most applications, you can just construct a single
60
60
  <tt class="classname">FXGLVisual</tt> object that's shared among all the
61
- OpenGL windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3185"></a>The FXGLCanvas Class</h2></div></div><div></div></div><p>The <tt class="classname">FXGLCanvas</tt> widget provides a very simple
61
+ OpenGL windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3198"></a>The FXGLCanvas Class</h2></div></div><div></div></div><p>The <tt class="classname">FXGLCanvas</tt> widget provides a very simple
62
62
  OpenGL-capable window with minimal functionality. To construct an
63
63
  <tt class="classname">FXGLCanvas</tt>, call
64
64
  <tt class="methodname">FXGLCanvas.new</tt>:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">glCanvas = FXGLCanvas.new(parent, vis)</pre></td></tr></table><p>The first argument to <tt class="methodname">FXGLCanvas.new</tt> is the
65
65
  parent (container) widget and the second argument is the
66
66
  <tt class="classname">FXGLVisual</tt> that should be used for this
67
- window.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3209"></a>OpenGL objects and the FXGLViewer</h2></div></div><div></div></div><p>The <tt class="classname">FXGLViewer</tt> widget provides a higher-level
67
+ window.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3222"></a>OpenGL objects and the FXGLViewer</h2></div></div><div></div></div><p>The <tt class="classname">FXGLViewer</tt> widget provides a higher-level
68
68
  OpenGL-capable window with a lot of built-in functionality. To construct
69
69
  an <tt class="classname">FXGLViewer</tt>, call
70
70
  <tt class="methodname">FXGLViewer.new</tt>:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">glViewer = FXGLViewer.new(parent, vis)</pre></td></tr></table><p>The first argument to <tt class="methodname">FXGLViewer.new</tt> is the
@@ -1,3 +1,3 @@
1
1
  <html><head>
2
2
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
3
- <title>Part&nbsp;II.&nbsp;Appendices</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="previous" href="changes.html" title="Chapter&nbsp;10.&nbsp;Change History"><link rel="next" href="opengl.html" title="Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part&nbsp;II.&nbsp;Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e3048"></a>Appendices</h1></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>A. <a href="opengl.html">Using OpenGL with FXRuby</a></dt><dt>B. <a href="scintilla.html">Using Scintilla with FXRuby</a></dt><dt>C. <a href="differences.html">Differences between FOX and FXRuby</a></dt><dt>D. <a href="library.html">The FXRuby Standard Library</a></dt><dt>E. <a href="implementation.html">Implementation</a></dt><dd><dl><dt><a href="implementation.html#d0e4058">Code Generation</a></dt><dt><a href="apes02.html">Object Life Cycles and Garbage Collection</a></dt><dd><dl><dt><a href="apes02.html#d0e4096">GL Objects</a></dt></dl></dd><dt><a href="apes03.html">Virtual Functions</a></dt></dl></dd><dt>F. <a href="cvs.html">Getting the Sources from CVS</a></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="changes.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="book.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="opengl.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;10.&nbsp;Change History&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby</td></tr></table></div></body></html>
3
+ <title>Part&nbsp;II.&nbsp;Appendices</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="previous" href="changes.html" title="Chapter&nbsp;10.&nbsp;Change History"><link rel="next" href="opengl.html" title="Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part&nbsp;II.&nbsp;Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e3061"></a>Appendices</h1></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>A. <a href="opengl.html">Using OpenGL with FXRuby</a></dt><dt>B. <a href="scintilla.html">Using Scintilla with FXRuby</a></dt><dt>C. <a href="differences.html">Differences between FOX and FXRuby</a></dt><dt>D. <a href="library.html">The FXRuby Standard Library</a></dt><dt>E. <a href="implementation.html">Implementation</a></dt><dd><dl><dt><a href="implementation.html#d0e4071">Code Generation</a></dt><dt><a href="apes02.html">Object Life Cycles and Garbage Collection</a></dt><dd><dl><dt><a href="apes02.html#d0e4109">GL Objects</a></dt></dl></dd><dt><a href="apes03.html">Virtual Functions</a></dt></dl></dd><dt>F. <a href="cvs.html">Getting the Sources from CVS</a></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="changes.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="book.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="opengl.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&nbsp;10.&nbsp;Change History&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby</td></tr></table></div></body></html>
@@ -1,23 +1,23 @@
1
1
  <html><head>
2
2
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
3
- <title>Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="opengl.html" title="Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</h2></div></div><div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3236"></a>What is Scintilla?</h2></div></div><div></div></div><p><a href="http://www.scintilla.org" target="_top">Scintilla</a> is a free
3
+ <title>Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"><link rel="home" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part&nbsp;II.&nbsp;Appendices"><link rel="previous" href="opengl.html" title="Appendix&nbsp;A.&nbsp;Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix&nbsp;C.&nbsp;Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a>&nbsp;</td><th width="60%" align="center">Part&nbsp;II.&nbsp;Appendices</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix&nbsp;B.&nbsp;Using Scintilla with FXRuby</h2></div></div><div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3249"></a>What is Scintilla?</h2></div></div><div></div></div><p><a href="http://www.scintilla.org" target="_top">Scintilla</a> is a free
4
4
  source code editing component developed by Neil Hodgson for the Win32 and
5
- GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3243"></a>What is FXScintilla?</h2></div></div><div></div></div><p><a href="http://savannah.gnu.org/projects/fxscintilla" target="_top">FXScintilla </a> is
5
+ GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3256"></a>What is FXScintilla?</h2></div></div><div></div></div><p><a href="http://savannah.gnu.org/projects/fxscintilla" target="_top">FXScintilla </a> is
6
6
  a FOX widget that wraps around the Scintilla component, or, if you wish,
7
7
  the FOX "port" of Scintilla. It is being developed by Gilles Filippini,
8
8
  and as of this writing the latest release is available for download from
9
- <a href="http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.61.tar.gz" target="_top">http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.61.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3253"></a>Compiling FXScintilla</h2></div></div><div></div></div><p>The FXScintilla distribution contains everything you need to build
9
+ <a href="http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.63.tar.gz" target="_top">http://savannah.nongnu.org/download/fxscintilla/fxscintilla-1.63.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3266"></a>Compiling FXScintilla</h2></div></div><div></div></div><p>The FXScintilla distribution contains everything you need to build
10
10
  the FXScintilla widget and begin using it in your C++-based FOX
11
11
  applications. That is to say, you do not have to separately download the
12
12
  Scintilla source code from the Scintilla home page. When you unpack the
13
13
  FXScintilla tarball, you should get a new <tt class="filename">
14
- fxscintilla-1.61</tt> directory containing the source code for the
14
+ fxscintilla-1.63</tt> directory containing the source code for the
15
15
  FOX port of the Scintilla widget.</p><p>As of the 1.46 release of FXScintilla, the build process has been
16
16
  "autoconfiscated" and should seem very familiar to you if you've built
17
17
  other open-source software (like FOX) from the source code. The
18
18
  <tt class="filename">INSTALL</tt> file in the top-level directory should
19
19
  provide enough instruction for you to build and install FXScintilla for
20
- either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3266"></a>Enabling FXScintilla Support in FXRuby</h2></div></div><div></div></div><p>The next step is to build a version of FXRuby (from its source code)
20
+ either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e3279"></a>Enabling FXScintilla Support in FXRuby</h2></div></div><div></div></div><p>The next step is to build a version of FXRuby (from its source code)
21
21
  with the optional FXScintilla support enabled. If you're working on a Unix
22
22
  or Linux system and have installed FXScintilla in one of the standard
23
23
  installation directories (e.g. under <tt class="filename">/usr/include</tt> or <tt class="filename">/usr/local/include</tt>), the regular FXRuby build
@@ -28,7 +28,7 @@
28
28
  typing:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="screen">
29
29
  $ <b class="command">sudo gem install fxruby-1.2.0.gem --force -- --with-fxscintilla-include=/usr/local/include/fxscintilla --with-fxscintilla-lib=/usr/local/lib</b>
30
30
  </pre></td></tr></table><p>or, when compiling with Microsoft Visual C++, by typing:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="screen">
31
- C:\&gt; <b class="command">gem install fxruby-1.2.0.gem --force -- --with-fox-include=C:\fox-1.2.7\include --with-fox-lib=C:\fox-1.2.7\lib --with-fxscintilla-include=C:\fxscintilla-1.61\include --with-fxscintilla-lib=C:\fxscintilla-1.61\lib</b>
31
+ C:\&gt; <b class="command">gem install fxruby-1.2.0.gem --force -- --with-fox-include=C:\fox-1.2.7\include --with-fox-lib=C:\fox-1.2.7\lib --with-fxscintilla-include=C:\fxscintilla-1.63\include --with-fxscintilla-lib=C:\fxscintilla-1.63\lib</b>
32
32
  </pre></td></tr></table><p>Past this point, the build and installation process for either
33
33
  platform should be the same as for standard builds. To test your new
34
34
  FXScintilla-enabled build of FXRuby, try running the
@@ -6,9 +6,8 @@
6
6
  the text, "Hello, World!". For reference, this program is included in the
7
7
  <tt class="filename">examples</tt> subdirectory of the standard FXRuby source
8
8
  code distribution.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e619"></a>First Things First</h2></div></div><div></div></div><p>All of the code associated with the FXRuby extension is provided by
9
- the <tt class="classname">fxruby </tt>gem, so we need to start by requiring
10
- this gem:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
11
- require_gem 'fxruby'</pre></td></tr></table><p>Since all of the FXRuby classes are defined under the
9
+ the <tt class="classname">fox14 </tt>gem, so we need to start by requiring
10
+ this gem:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'</pre></td></tr></table><p>Since all of the FXRuby classes are defined under the
12
11
  <tt class="classname">Fox</tt> module, you'd normally need to refer to them
13
12
  using their "fully qualified" names (i.e. names that begin with the
14
13
  <tt class="classname">Fox::</tt> prefix). Because this can get a little
@@ -16,12 +15,10 @@ require_gem 'fxruby'</pre></td></tr></table><p>Since all of the FXRuby classes a
16
15
  between FXRuby and other Ruby extensions, I usually like to add an
17
16
  <tt class="methodname">include Fox</tt> statement so that all of the names in
18
17
  the <tt class="classname">Fox</tt> module are "included" into the global
19
- namespace:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
20
- require_gem 'fxruby'
18
+ namespace:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
21
19
 
22
20
  <span class="bold"><b>include Fox</b></span></pre></td></tr></table><p>Every FXRuby program begins by creating an
23
- <tt class="classname">FXApp</tt> instance:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
24
- require_gem 'fxruby'
21
+ <tt class="classname">FXApp</tt> instance:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
25
22
 
26
23
  include Fox
27
24
 
@@ -37,8 +34,7 @@ include Fox
37
34
  is used.</p><p>The next step is to create an <tt class="classname">FXMainWindow</tt>
38
35
  instance to serve as the application's main window. If you've used Ruby/Tk
39
36
  before, this is similar to its <tt class="classname">TkRoot</tt>
40
- window:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
41
- require_gem 'fxruby'
37
+ window:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
42
38
 
43
39
  include Fox
44
40
 
@@ -54,8 +50,7 @@ theApp = FXApp.new
54
50
  data (such as an <tt class="classname">FXMainWindow</tt> object) and
55
51
  server-side data (such as the X window associated with that Ruby object).
56
52
  To create the server-side objects associated with the already-constructed
57
- client-side objects, we call <tt class="methodname">FXApp#create</tt>:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
58
- require_gem 'fxruby'
53
+ client-side objects, we call <tt class="methodname">FXApp#create</tt>:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
59
54
 
60
55
  include Fox
61
56
 
@@ -65,8 +60,7 @@ theMainWindow = FXMainWindow.new(theApp, "Hello")
65
60
 
66
61
  <span class="bold"><b>theApp.create</b></span></pre></td></tr></table><p>By default, all windows in FXRuby programs are invisible, so we need
67
62
  to call our main window's <tt class="methodname">show</tt> instance
68
- method:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
69
- require_gem 'fxruby'
63
+ method:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
70
64
 
71
65
  include Fox
72
66
 
@@ -77,8 +71,7 @@ theApp.create
77
71
 
78
72
  <span class="bold"><b>theMainWindow.show</b></span></pre></td></tr></table><p>The last step is to start the program's main loop by calling
79
73
  <i class="parameter"><tt>theApp</tt></i>'s <tt class="methodname">run</tt> instance
80
- method:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'rubygems'
81
- require_gem 'fxruby'
74
+ method:</p><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting">require 'fox14'
82
75
 
83
76
  include Fox
84
77
 
@@ -1,17 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
4
- begin
5
- require 'soap/driver'
6
- rescue LoadError
7
- require 'fox12/missingdep'
8
- MSG = <<EOM
9
- Sorry, this example depends on the SOAP4R extension. Please
10
- check the Ruby Application Archives for an appropriate
11
- download site.
12
- EOM
13
- missingDependency(MSG)
14
- end
3
+ require 'fox14'
4
+ require 'soap/rpc/driver'
15
5
 
16
6
  include Fox
17
7
 
@@ -43,17 +33,17 @@ class Babelfish < FXMainWindow
43
33
  0, 0, 600, 400, 0, 0)
44
34
 
45
35
  # Initialize the SOAP driver
46
- @drv = SOAP::Driver.new(nil, nil, 'urn:xmethodsBabelFish',
47
- 'http://services.xmethods.net/perl/soaplite.cgi')
48
- @drv.addMethodWithSOAPAction('BabelFish',
36
+ @drv = SOAP::RPC::Driver.new('http://services.xmethods.net/perl/soaplite.cgi', 'urn:xmethodsBabelFish')
37
+ @drv.add_rpc_method_with_soapaction('BabelFish',
49
38
  'urn:xmethodsBabelFish#BabelFish', 'translationmode', 'sourcedata')
50
39
 
51
40
  # Controls area along the bottom
52
41
  controlsFrame = FXHorizontalFrame.new(self,
53
42
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
54
43
  FXLabel.new(controlsFrame, "Translate from:")
55
- @transModeCombo = FXComboBox.new(controlsFrame, 15, 6, nil, 0,
44
+ @transModeCombo = FXComboBox.new(controlsFrame, 15, nil, 0,
56
45
  COMBOBOX_STATIC|FRAME_SUNKEN|FRAME_THICK)
46
+ @transModeCombo.numVisible = 6
57
47
  TRANSLATIONS.keys.each do |key|
58
48
  @transModeCombo.appendItem(key, TRANSLATIONS[key])
59
49
  end
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,6 +1,6 @@
1
1
  #/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
4
- require 'fox12/colors'
3
+ require 'fox14'
4
+ require 'fox14/colors'
5
5
 
6
6
  include Fox
7
7
 
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
  begin
5
5
  require 'net/http'
6
6
  require 'html-parser'
7
7
  require 'formatter'
8
8
  rescue LoadError
9
- require 'fox12/missingdep'
9
+ require 'fox14/missingdep'
10
10
  MSG = <<EOM
11
11
  Sorry, this example depends on the html-parser extension. Please
12
12
  check the Ruby Application Archives for an appropriate
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
  begin
5
5
  require 'opengl'
6
6
  rescue LoadError
7
- require 'fox12/missingdep'
7
+ require 'fox14/missingdep'
8
8
  MSG = <<EOM
9
9
  Sorry, this example depends on the OpenGL extension. Please
10
10
  check the Ruby Application Archives for an appropriate
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
4
- require 'fox12/responder'
3
+ require 'fox14'
4
+ require 'fox14/responder'
5
5
  begin
6
- require 'fox12/glshapes'
6
+ require 'fox14/glshapes'
7
7
  rescue LoadError
8
- require 'fox12/missingdep'
8
+ require 'fox14/missingdep'
9
9
  MSG = <<EOM
10
10
  Sorry, this example depends on the OpenGL extension. Please
11
11
  check the Ruby Application Archives for an appropriate
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -165,7 +165,7 @@ class GroupWindow < FXMainWindow
165
165
  nil, 0,LAYOUT_TOP|FRAME_RAISED|FRAME_THICK)
166
166
  FXButton.new(group1, "Te&kstje", nil, nil, 0,
167
167
  LAYOUT_TOP|FRAME_RAISED|FRAME_THICK).connect(SEL_COMMAND) {
168
- x, y, buttons = getRoot().getCursorPosition()
168
+ x, y, buttons = getRootWindow().getCursorPosition()
169
169
  @popupmenu.popup(nil, x, y)
170
170
  }
171
171
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -42,7 +42,7 @@ class HeaderWindow < FXMainWindow
42
42
 
43
43
  # Make header control
44
44
  @header1 = FXHeader.new(contents, nil, 0,
45
- HEADER_BUTTON|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
45
+ HEADER_BUTTON|HEADER_RESIZE|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
46
46
  @header1.connect(SEL_CHANGED) { |sender, sel, which|
47
47
  @lists[which].width = @header1.getItemSize(which)
48
48
  }
@@ -114,7 +114,7 @@ class HeaderWindow < FXMainWindow
114
114
  @lists[3].appendItem("F")
115
115
 
116
116
  @header2 = FXHeader.new(panes, nil, 0,
117
- HEADER_VERTICAL|HEADER_BUTTON|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_Y)
117
+ HEADER_VERTICAL|HEADER_BUTTON|HEADER_RESIZE|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_Y)
118
118
  @header2.appendItem("Example", nil, 30)
119
119
  @header2.appendItem("Of", nil, 30)
120
120
  @header2.appendItem("Vertical", nil, 30)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fox12'
3
+ require 'fox14'
4
4
 
5
5
  include Fox
6
6
 
@@ -1,4 +1,4 @@
1
- require 'fox12'
1
+ require 'fox14'
2
2
 
3
3
  include Fox
4
4
 
@@ -68,6 +68,21 @@ class IconListWindow < FXMainWindow
68
68
  FXMenuCommand.new(menuPane, "&Columns", nil, iconlist, FXIconList::ID_ARRANGE_BY_COLUMNS)
69
69
  FXMenuTitle.new(menubar, "&Arrange", nil, menuPane)
70
70
  end
71
+
72
+ # Sort menu
73
+ FXMenuPane.new(self) do |menuPane|
74
+ FXMenuCommand.new(menuPane, "&Name", nil, iconlist, FXFileList::ID_SORT_BY_NAME)
75
+ FXMenuCommand.new(menuPane, "&Type", nil, iconlist, FXFileList::ID_SORT_BY_TYPE)
76
+ FXMenuCommand.new(menuPane, "&Size", nil, iconlist, FXFileList::ID_SORT_BY_SIZE)
77
+ FXMenuCommand.new(menuPane, "T&ime", nil, iconlist, FXFileList::ID_SORT_BY_TIME)
78
+ FXMenuCommand.new(menuPane, "&User", nil, iconlist, FXFileList::ID_SORT_BY_USER)
79
+ FXMenuCommand.new(menuPane, "&Group", nil, iconlist, FXFileList::ID_SORT_BY_GROUP)
80
+ FXMenuCommand.new(menuPane, "&Reverse", nil, iconlist, FXFileList::ID_SORT_REVERSE)
81
+ FXMenuCommand.new(menuPane, "Hide status", nil, status, FXWindow::ID_HIDE)
82
+ FXMenuCommand.new(menuPane, "Show status", nil, status, FXWindow::ID_SHOW)
83
+ FXMenuTitle.new(menubar, "&Sort", nil, menuPane)
84
+ end
85
+
71
86
  # Let's see a tooltip
72
87
  FXToolTip.new(getApp())
73
88
  end