fxruby 1.6.22.pre2 → 1.6.22.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (475) hide show
  1. data/History.txt +1 -1
  2. data/README.txt +10 -10
  3. data/Rakefile +3 -2
  4. data/doap.rdf +2 -2
  5. data/examples/babelfish.rb +2 -2
  6. data/examples/bounce.rb +20 -20
  7. data/examples/charts.rb +2 -2
  8. data/examples/custom_table_item.rb +3 -3
  9. data/examples/datatarget.rb +2 -2
  10. data/examples/dctest.rb +51 -51
  11. data/examples/dialog.rb +14 -14
  12. data/examples/dilbert.rb +4 -4
  13. data/examples/dirlist.rb +6 -6
  14. data/examples/dragdrop.rb +7 -7
  15. data/examples/dragsource.rb +6 -6
  16. data/examples/dropsite.rb +5 -5
  17. data/examples/foursplit.rb +6 -6
  18. data/examples/gltest.rb +40 -40
  19. data/examples/glviewer.rb +16 -16
  20. data/examples/groupbox.rb +41 -41
  21. data/examples/header.rb +6 -6
  22. data/examples/hello2.rb +2 -2
  23. data/examples/iconlist.rb +10 -10
  24. data/examples/image.rb +26 -26
  25. data/examples/imageviewer.rb +31 -31
  26. data/examples/inputs.rb +2 -2
  27. data/examples/mditest.rb +12 -12
  28. data/examples/pig.rb +8 -8
  29. data/examples/raabrowser.rb +5 -5
  30. data/examples/ratio.rb +9 -9
  31. data/examples/rulerview.rb +2 -2
  32. data/examples/scintilla-test.rb +6 -6
  33. data/examples/scribble-orig.rb +3 -3
  34. data/examples/scribble.rb +3 -3
  35. data/examples/shutter.rb +6 -6
  36. data/examples/splitter.rb +15 -15
  37. data/examples/styledtext.rb +10 -10
  38. data/examples/tabbook.rb +14 -14
  39. data/examples/table.rb +21 -21
  40. data/examples/textedit/helpwindow.rb +6 -6
  41. data/examples/textedit/textedit.rb +72 -72
  42. data/ext/fox16/FXRuby.cpp +48 -5
  43. data/ext/fox16/core_wrap.cpp +1 -1
  44. data/ext/fox16/iconlist_wrap.cpp +1 -1
  45. data/ext/fox16/icons_wrap.cpp +1 -1
  46. data/ext/fox16/include/FXMemoryBuffer.h +3 -3
  47. data/ext/fox16/include/FXRbApp.h +1 -1
  48. data/ext/fox16/include/FXRbBitmap.h +1 -1
  49. data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
  50. data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
  51. data/ext/fox16/include/FXRbDCPrint.h +1 -1
  52. data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
  53. data/ext/fox16/include/FXRbDCWindow.h +1 -1
  54. data/ext/fox16/include/FXRbDockBar.h +1 -1
  55. data/ext/fox16/include/FXRbFileDict.h +2 -2
  56. data/ext/fox16/include/FXRbFoldingList.h +1 -1
  57. data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
  58. data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
  59. data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
  60. data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
  61. data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
  62. data/ext/fox16/include/FXRbImageFrame.h +2 -2
  63. data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
  64. data/ext/fox16/include/FXRbListVirtuals.h +4 -4
  65. data/ext/fox16/include/FXRbMenuBar.h +1 -1
  66. data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
  67. data/ext/fox16/include/FXRbRecentFiles.h +1 -1
  68. data/ext/fox16/include/FXRbRuler.h +3 -3
  69. data/ext/fox16/include/FXRbRulerView.h +3 -3
  70. data/ext/fox16/include/FXRbScintilla.h +1 -1
  71. data/ext/fox16/include/FXRbSeparator.h +2 -2
  72. data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
  73. data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
  74. data/ext/fox16/include/FXRbText.h +2 -2
  75. data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
  76. data/ext/fox16/include/FXRbToolBar.h +1 -1
  77. data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
  78. data/ext/fox16/include/FXRbToolBarTab.h +1 -1
  79. data/ext/fox16/include/FXRbTreeList.h +1 -1
  80. data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
  81. data/ext/fox16/include/FXRbWindow.h +3 -3
  82. data/ext/fox16/include/FXRbWizard.h +2 -2
  83. data/ext/fox16/include/FXRuby.h +8 -4
  84. data/ext/fox16/librb.c +12 -12
  85. data/ext/fox16/list_wrap.cpp +1 -1
  86. data/ext/fox16/make_impl.rb +5 -5
  87. data/ext/fox16/markfuncs.cpp +228 -220
  88. data/ext/fox16/scintilla_wrap.cpp +1 -1
  89. data/ext/fox16/treelist_wrap.cpp +4 -4
  90. data/ext/fox16/ui_wrap.cpp +2 -2
  91. data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
  92. data/lib/fox16/accel_table.rb +1 -1
  93. data/lib/fox16/aliases.rb +3 -3
  94. data/lib/fox16/calendar.rb +21 -21
  95. data/lib/fox16/chore.rb +2 -2
  96. data/lib/fox16/core.rb +70 -70
  97. data/lib/fox16/dict.rb +1 -1
  98. data/lib/fox16/execute_nonmodal.rb +1 -1
  99. data/lib/fox16/glgroup.rb +16 -16
  100. data/lib/fox16/glshapes.rb +26 -26
  101. data/lib/fox16/input.rb +4 -4
  102. data/lib/fox16/irb.rb +2 -2
  103. data/lib/fox16/iterators.rb +2 -2
  104. data/lib/fox16/keys.rb +34 -34
  105. data/lib/fox16/kwargs.rb +927 -927
  106. data/lib/fox16/pseudokeyboard.rb +1 -1
  107. data/lib/fox16/pseudomouse.rb +1 -1
  108. data/lib/fox16/responder2.rb +4 -4
  109. data/lib/fox16/scintilla.rb +2 -2
  110. data/lib/fox16/signal.rb +4 -4
  111. data/lib/fox16/splashscreen.rb +3 -3
  112. data/lib/fox16/timeout.rb +3 -3
  113. data/lib/fox16/undolist.rb +9 -9
  114. data/lib/fox16/version.rb +1 -1
  115. data/rdoc-sources/FX4Splitter.rb +9 -9
  116. data/rdoc-sources/FX7Segment.rb +9 -9
  117. data/rdoc-sources/FXAccelTable.rb +1 -1
  118. data/rdoc-sources/FXApp.rb +50 -50
  119. data/rdoc-sources/FXBMPIcon.rb +3 -3
  120. data/rdoc-sources/FXBMPImage.rb +2 -2
  121. data/rdoc-sources/FXBitmap.rb +11 -11
  122. data/rdoc-sources/FXBitmapFrame.rb +5 -5
  123. data/rdoc-sources/FXBitmapView.rb +2 -2
  124. data/rdoc-sources/FXButton.rb +2 -2
  125. data/rdoc-sources/FXCheckButton.rb +5 -5
  126. data/rdoc-sources/FXColorBar.rb +5 -5
  127. data/rdoc-sources/FXColorDialog.rb +2 -2
  128. data/rdoc-sources/FXColorList.rb +2 -2
  129. data/rdoc-sources/FXColorRing.rb +8 -8
  130. data/rdoc-sources/FXColorSelector.rb +4 -4
  131. data/rdoc-sources/FXColorWell.rb +4 -4
  132. data/rdoc-sources/FXColorWheel.rb +6 -6
  133. data/rdoc-sources/FXComboBox.rb +17 -17
  134. data/rdoc-sources/FXComposite.rb +2 -2
  135. data/rdoc-sources/FXCursor.rb +7 -7
  136. data/rdoc-sources/FXDC.rb +67 -67
  137. data/rdoc-sources/FXDCPrint.rb +22 -22
  138. data/rdoc-sources/FXDCWindow.rb +1 -1
  139. data/rdoc-sources/FXDataTarget.rb +2 -2
  140. data/rdoc-sources/FXDebugTarget.rb +1 -1
  141. data/rdoc-sources/FXDelegator.rb +1 -1
  142. data/rdoc-sources/FXDial.rb +8 -8
  143. data/rdoc-sources/FXDict.rb +7 -7
  144. data/rdoc-sources/FXDirBox.rb +3 -3
  145. data/rdoc-sources/FXDirDialog.rb +7 -7
  146. data/rdoc-sources/FXDirList.rb +21 -21
  147. data/rdoc-sources/FXDirSelector.rb +8 -8
  148. data/rdoc-sources/FXDockBar.rb +5 -5
  149. data/rdoc-sources/FXDockHandler.rb +3 -3
  150. data/rdoc-sources/FXDockSite.rb +2 -2
  151. data/rdoc-sources/FXDockTitle.rb +3 -3
  152. data/rdoc-sources/FXDocument.rb +3 -3
  153. data/rdoc-sources/FXDragCorner.rb +3 -3
  154. data/rdoc-sources/FXDrawable.rb +3 -3
  155. data/rdoc-sources/FXDriveBox.rb +4 -4
  156. data/rdoc-sources/FXExtentd.rb +2 -2
  157. data/rdoc-sources/FXExtentf.rb +2 -2
  158. data/rdoc-sources/FXFileDialog.rb +21 -21
  159. data/rdoc-sources/FXFileDict.rb +17 -17
  160. data/rdoc-sources/FXFileList.rb +32 -32
  161. data/rdoc-sources/FXFileSelector.rb +20 -20
  162. data/rdoc-sources/FXFileStream.rb +1 -1
  163. data/rdoc-sources/FXFoldingList.rb +53 -53
  164. data/rdoc-sources/FXFont.rb +38 -38
  165. data/rdoc-sources/FXFrame.rb +11 -11
  166. data/rdoc-sources/FXGIFCursor.rb +3 -3
  167. data/rdoc-sources/FXGLCanvas.rb +2 -2
  168. data/rdoc-sources/FXGLContext.rb +6 -6
  169. data/rdoc-sources/FXGLObject.rb +6 -6
  170. data/rdoc-sources/FXGLShape.rb +3 -3
  171. data/rdoc-sources/FXGLViewer.rb +54 -54
  172. data/rdoc-sources/FXGLVisual.rb +13 -13
  173. data/rdoc-sources/FXGradientBar.rb +15 -15
  174. data/rdoc-sources/FXGroupBox.rb +4 -4
  175. data/rdoc-sources/FXHeader.rb +44 -44
  176. data/rdoc-sources/FXICOIcon.rb +1 -1
  177. data/rdoc-sources/FXICOImage.rb +1 -1
  178. data/rdoc-sources/FXIconDict.rb +1 -1
  179. data/rdoc-sources/FXIconList.rb +69 -69
  180. data/rdoc-sources/FXIconSource.rb +2 -2
  181. data/rdoc-sources/FXId.rb +1 -1
  182. data/rdoc-sources/FXImage.rb +11 -11
  183. data/rdoc-sources/FXImageFrame.rb +3 -3
  184. data/rdoc-sources/FXImageView.rb +2 -2
  185. data/rdoc-sources/FXInputDialog.rb +6 -6
  186. data/rdoc-sources/FXJPGIcon.rb +3 -3
  187. data/rdoc-sources/FXJPGImage.rb +2 -2
  188. data/rdoc-sources/FXKnob.rb +9 -9
  189. data/rdoc-sources/FXLabel.rb +8 -8
  190. data/rdoc-sources/FXList.rb +28 -28
  191. data/rdoc-sources/FXListBox.rb +21 -21
  192. data/rdoc-sources/FXMDIChild.rb +11 -11
  193. data/rdoc-sources/FXMDIClient.rb +5 -5
  194. data/rdoc-sources/FXMatrix.rb +6 -6
  195. data/rdoc-sources/FXMemoryBuffer.rb +1 -1
  196. data/rdoc-sources/FXMemoryStream.rb +3 -3
  197. data/rdoc-sources/FXMenuBar.rb +1 -1
  198. data/rdoc-sources/FXMenuButton.rb +7 -7
  199. data/rdoc-sources/FXMenuCaption.rb +10 -10
  200. data/rdoc-sources/FXMenuCheck.rb +1 -1
  201. data/rdoc-sources/FXMenuRadio.rb +1 -1
  202. data/rdoc-sources/FXMenuSeparator.rb +1 -1
  203. data/rdoc-sources/FXMessageBox.rb +3 -3
  204. data/rdoc-sources/FXOptionMenu.rb +9 -9
  205. data/rdoc-sources/FXPCXIcon.rb +2 -2
  206. data/rdoc-sources/FXPCXImage.rb +1 -1
  207. data/rdoc-sources/FXPNGIcon.rb +3 -3
  208. data/rdoc-sources/FXPNGImage.rb +1 -1
  209. data/rdoc-sources/FXPPMIcon.rb +2 -2
  210. data/rdoc-sources/FXPPMImage.rb +1 -1
  211. data/rdoc-sources/FXPacker.rb +13 -13
  212. data/rdoc-sources/FXPopup.rb +11 -11
  213. data/rdoc-sources/FXProgressBar.rb +7 -7
  214. data/rdoc-sources/FXProgressDialog.rb +3 -3
  215. data/rdoc-sources/FXQuatd.rb +17 -17
  216. data/rdoc-sources/FXQuatf.rb +18 -18
  217. data/rdoc-sources/FXRGBIcon.rb +3 -3
  218. data/rdoc-sources/FXRGBImage.rb +1 -1
  219. data/rdoc-sources/FXRadioButton.rb +4 -4
  220. data/rdoc-sources/FXRanged.rb +1 -1
  221. data/rdoc-sources/FXRangef.rb +1 -1
  222. data/rdoc-sources/FXRealSlider.rb +7 -7
  223. data/rdoc-sources/FXRealSpinner.rb +11 -11
  224. data/rdoc-sources/FXRecentFiles.rb +8 -8
  225. data/rdoc-sources/FXRectangle.rb +12 -12
  226. data/rdoc-sources/FXRegion.rb +15 -15
  227. data/rdoc-sources/FXRegistry.rb +4 -4
  228. data/rdoc-sources/FXReplaceDialog.rb +3 -3
  229. data/rdoc-sources/FXRuler.rb +18 -18
  230. data/rdoc-sources/FXRulerView.rb +38 -38
  231. data/rdoc-sources/FXScintilla.rb +16 -16
  232. data/rdoc-sources/FXScrollArea.rb +9 -9
  233. data/rdoc-sources/FXScrollBar.rb +8 -8
  234. data/rdoc-sources/FXScrollPane.rb +1 -1
  235. data/rdoc-sources/FXScrollWindow.rb +5 -5
  236. data/rdoc-sources/FXSeparator.rb +1 -1
  237. data/rdoc-sources/FXSettings.rb +1 -1
  238. data/rdoc-sources/FXShutter.rb +3 -3
  239. data/rdoc-sources/FXSize.rb +4 -4
  240. data/rdoc-sources/FXSlider.rb +7 -7
  241. data/rdoc-sources/FXSphered.rb +21 -21
  242. data/rdoc-sources/FXSpheref.rb +20 -20
  243. data/rdoc-sources/FXSpinner.rb +12 -12
  244. data/rdoc-sources/FXSplashWindow.rb +1 -1
  245. data/rdoc-sources/FXSplitter.rb +6 -6
  246. data/rdoc-sources/FXSpring.rb +2 -2
  247. data/rdoc-sources/FXStatusBar.rb +4 -4
  248. data/rdoc-sources/FXStatusLine.rb +5 -5
  249. data/rdoc-sources/FXStream.rb +8 -8
  250. data/rdoc-sources/FXStringDict.rb +5 -5
  251. data/rdoc-sources/FXSwitcher.rb +2 -2
  252. data/rdoc-sources/FXTGAIcon.rb +3 -3
  253. data/rdoc-sources/FXTGAImage.rb +1 -1
  254. data/rdoc-sources/FXTIFIcon.rb +2 -2
  255. data/rdoc-sources/FXTIFImage.rb +2 -2
  256. data/rdoc-sources/FXTabBar.rb +2 -2
  257. data/rdoc-sources/FXTable.rb +131 -131
  258. data/rdoc-sources/FXText.rb +48 -48
  259. data/rdoc-sources/FXTextField.rb +9 -9
  260. data/rdoc-sources/FXToolBar.rb +1 -1
  261. data/rdoc-sources/FXToolBarGrip.rb +1 -1
  262. data/rdoc-sources/FXToolBarShell.rb +7 -7
  263. data/rdoc-sources/FXToolBarTab.rb +3 -3
  264. data/rdoc-sources/FXToolTip.rb +1 -1
  265. data/rdoc-sources/FXTopWindow.rb +17 -17
  266. data/rdoc-sources/FXTranslator.rb +5 -5
  267. data/rdoc-sources/FXTreeList.rb +50 -50
  268. data/rdoc-sources/FXTreeListBox.rb +16 -16
  269. data/rdoc-sources/FXVec2d.rb +5 -5
  270. data/rdoc-sources/FXVec2f.rb +5 -5
  271. data/rdoc-sources/FXVec3d.rb +8 -8
  272. data/rdoc-sources/FXVec3f.rb +8 -8
  273. data/rdoc-sources/FXVec4d.rb +8 -8
  274. data/rdoc-sources/FXVec4f.rb +8 -8
  275. data/rdoc-sources/FXVisual.rb +3 -3
  276. data/rdoc-sources/FXWindow.rb +99 -99
  277. data/rdoc-sources/FXWizard.rb +8 -8
  278. data/rdoc-sources/FXXBMIcon.rb +2 -2
  279. data/rdoc-sources/FXXBMImage.rb +1 -1
  280. data/rdoc-sources/FXXPMIcon.rb +2 -2
  281. data/rdoc-sources/FXXPMImage.rb +1 -1
  282. data/rdoc-sources/fxdefs.rb +17 -17
  283. data/scripts/generate_kwargs_lib.rb +22 -22
  284. data/scripts/iface.rb +1 -1
  285. data/swig-interfaces/FX4Splitter.i +5 -5
  286. data/swig-interfaces/FX7Segment.i +5 -5
  287. data/swig-interfaces/FXApp.i +10 -10
  288. data/swig-interfaces/FXBMPIcon.i +2 -2
  289. data/swig-interfaces/FXBitmap.i +3 -3
  290. data/swig-interfaces/FXBitmapFrame.i +1 -1
  291. data/swig-interfaces/FXBitmapView.i +1 -1
  292. data/swig-interfaces/FXCanvas.i +1 -1
  293. data/swig-interfaces/FXCheckButton.i +2 -2
  294. data/swig-interfaces/FXChoiceBox.i +2 -2
  295. data/swig-interfaces/FXColorBar.i +7 -7
  296. data/swig-interfaces/FXColorList.i +5 -5
  297. data/swig-interfaces/FXColorWell.i +1 -1
  298. data/swig-interfaces/FXColorWheel.i +6 -6
  299. data/swig-interfaces/FXComboBox.i +4 -4
  300. data/swig-interfaces/FXCursor.i +4 -4
  301. data/swig-interfaces/FXDC.i +23 -23
  302. data/swig-interfaces/FXDCPrint.i +5 -5
  303. data/swig-interfaces/FXDCWindow.i +8 -8
  304. data/swig-interfaces/FXDataTarget.i +5 -5
  305. data/swig-interfaces/FXDebugTarget.i +1 -1
  306. data/swig-interfaces/FXDelegator.i +3 -3
  307. data/swig-interfaces/FXDial.i +8 -8
  308. data/swig-interfaces/FXDialogBox.i +3 -3
  309. data/swig-interfaces/FXDict.i +14 -14
  310. data/swig-interfaces/FXDirBox.i +1 -1
  311. data/swig-interfaces/FXDirDialog.i +2 -2
  312. data/swig-interfaces/FXDirList.i +16 -16
  313. data/swig-interfaces/FXDirSelector.i +2 -2
  314. data/swig-interfaces/FXDockBar.i +1 -1
  315. data/swig-interfaces/FXDockHandler.i +1 -1
  316. data/swig-interfaces/FXDockSite.i +1 -1
  317. data/swig-interfaces/FXDockTitle.i +1 -1
  318. data/swig-interfaces/FXDocument.i +1 -1
  319. data/swig-interfaces/FXDragCorner.i +3 -3
  320. data/swig-interfaces/FXDriveBox.i +1 -1
  321. data/swig-interfaces/FXFileDialog.i +8 -8
  322. data/swig-interfaces/FXFileDict.i +2 -2
  323. data/swig-interfaces/FXFileList.i +11 -11
  324. data/swig-interfaces/FXFileSelector.i +4 -4
  325. data/swig-interfaces/FXFoldingList.i +7 -7
  326. data/swig-interfaces/FXFont.i +20 -20
  327. data/swig-interfaces/FXFrame.i +3 -3
  328. data/swig-interfaces/FXGLCanvas.i +3 -3
  329. data/swig-interfaces/FXGLContext.i +7 -7
  330. data/swig-interfaces/FXGLObject.i +1 -1
  331. data/swig-interfaces/FXGLShape.i +6 -6
  332. data/swig-interfaces/FXGLViewer.i +40 -40
  333. data/swig-interfaces/FXGLVisual.i +2 -2
  334. data/swig-interfaces/FXGradientBar.i +4 -4
  335. data/swig-interfaces/FXGroupBox.i +3 -3
  336. data/swig-interfaces/FXHeader.i +7 -7
  337. data/swig-interfaces/FXIcon.i +4 -4
  338. data/swig-interfaces/FXIconDict.i +1 -1
  339. data/swig-interfaces/FXIconList.i +46 -46
  340. data/swig-interfaces/FXImage.i +2 -2
  341. data/swig-interfaces/FXImageView.i +1 -1
  342. data/swig-interfaces/FXInputDialog.i +3 -3
  343. data/swig-interfaces/FXJPGIcon.i +3 -3
  344. data/swig-interfaces/FXJPGImage.i +2 -2
  345. data/swig-interfaces/FXKnob.i +2 -2
  346. data/swig-interfaces/FXLabel.i +2 -2
  347. data/swig-interfaces/FXList.i +35 -35
  348. data/swig-interfaces/FXListBox.i +5 -5
  349. data/swig-interfaces/FXMDIButton.i +5 -5
  350. data/swig-interfaces/FXMDIChild.i +12 -12
  351. data/swig-interfaces/FXMDIClient.i +2 -2
  352. data/swig-interfaces/FXMat4d.i +2 -2
  353. data/swig-interfaces/FXMat4f.i +5 -5
  354. data/swig-interfaces/FXMatrix.i +12 -12
  355. data/swig-interfaces/FXMemoryBuffer.i +4 -4
  356. data/swig-interfaces/FXMenuBar.i +3 -3
  357. data/swig-interfaces/FXMenuButton.i +7 -7
  358. data/swig-interfaces/FXMenuCaption.i +4 -4
  359. data/swig-interfaces/FXMenuCommand.i +1 -1
  360. data/swig-interfaces/FXMenuPane.i +1 -1
  361. data/swig-interfaces/FXMenuRadio.i +1 -1
  362. data/swig-interfaces/FXMenuSeparator.i +1 -1
  363. data/swig-interfaces/FXMessageBox.i +1 -1
  364. data/swig-interfaces/FXOptionMenu.i +6 -6
  365. data/swig-interfaces/FXPNGIcon.i +2 -2
  366. data/swig-interfaces/FXPPMIcon.i +2 -2
  367. data/swig-interfaces/FXPacker.i +6 -6
  368. data/swig-interfaces/FXPopup.i +13 -13
  369. data/swig-interfaces/FXProgressBar.i +12 -12
  370. data/swig-interfaces/FXProgressDialog.i +5 -5
  371. data/swig-interfaces/FXQuatd.i +7 -7
  372. data/swig-interfaces/FXQuatf.i +1 -1
  373. data/swig-interfaces/FXRadioButton.i +4 -4
  374. data/swig-interfaces/FXRanged.i +4 -4
  375. data/swig-interfaces/FXRangef.i +5 -5
  376. data/swig-interfaces/FXRealSlider.i +10 -10
  377. data/swig-interfaces/FXRealSpinner.i +17 -17
  378. data/swig-interfaces/FXRecentFiles.i +1 -1
  379. data/swig-interfaces/FXRegion.i +4 -4
  380. data/swig-interfaces/FXRegistry.i +3 -3
  381. data/swig-interfaces/FXReplaceDialog.i +1 -1
  382. data/swig-interfaces/FXScintilla.i +3 -3
  383. data/swig-interfaces/FXScrollArea.i +7 -7
  384. data/swig-interfaces/FXScrollBar.i +3 -3
  385. data/swig-interfaces/FXScrollWindow.i +6 -6
  386. data/swig-interfaces/FXSearchDialog.i +1 -1
  387. data/swig-interfaces/FXSeparator.i +3 -3
  388. data/swig-interfaces/FXSettings.i +3 -3
  389. data/swig-interfaces/FXShell.i +1 -1
  390. data/swig-interfaces/FXSlider.i +11 -11
  391. data/swig-interfaces/FXSphered.i +1 -1
  392. data/swig-interfaces/FXSpheref.i +1 -1
  393. data/swig-interfaces/FXSpinner.i +15 -15
  394. data/swig-interfaces/FXSplitter.i +6 -6
  395. data/swig-interfaces/FXStatusBar.i +4 -4
  396. data/swig-interfaces/FXStatusLine.i +5 -5
  397. data/swig-interfaces/FXStream.i +1 -1
  398. data/swig-interfaces/FXSwitcher.i +5 -5
  399. data/swig-interfaces/FXTabBar.i +2 -2
  400. data/swig-interfaces/FXTabBook.i +1 -1
  401. data/swig-interfaces/FXTabItem.i +4 -4
  402. data/swig-interfaces/FXTable.i +37 -37
  403. data/swig-interfaces/FXText.i +13 -13
  404. data/swig-interfaces/FXTextField.i +1 -1
  405. data/swig-interfaces/FXToggleButton.i +6 -6
  406. data/swig-interfaces/FXToolBar.i +4 -4
  407. data/swig-interfaces/FXToolBarGrip.i +3 -3
  408. data/swig-interfaces/FXToolBarShell.i +3 -3
  409. data/swig-interfaces/FXToolBarTab.i +5 -5
  410. data/swig-interfaces/FXToolTip.i +1 -1
  411. data/swig-interfaces/FXTopWindow.i +10 -10
  412. data/swig-interfaces/FXTreeList.i +28 -28
  413. data/swig-interfaces/FXTreeListBox.i +36 -36
  414. data/swig-interfaces/FXVec3d.i +2 -2
  415. data/swig-interfaces/FXVec3f.i +2 -2
  416. data/swig-interfaces/FXVec4d.i +1 -1
  417. data/swig-interfaces/FXVec4f.i +9 -9
  418. data/swig-interfaces/FXVerticalFrame.i +1 -1
  419. data/swig-interfaces/FXVisual.i +1 -1
  420. data/swig-interfaces/FXWindow.i +46 -46
  421. data/swig-interfaces/FXXPMIcon.i +1 -1
  422. data/swig-interfaces/FXXPMImage.i +1 -1
  423. data/swig-interfaces/exceptions.i +1 -1
  424. data/swig-interfaces/freefuncs.i +1 -1
  425. data/swig-interfaces/fxdefs.i +13 -13
  426. data/swig-interfaces/macros.i +79 -79
  427. data/test/TC_FXAccelTable.rb +3 -3
  428. data/test/TC_FXButton.rb +9 -9
  429. data/test/TC_FXCheckButton.rb +4 -4
  430. data/test/TC_FXComboBox.rb +1 -1
  431. data/test/TC_FXDC.rb +42 -42
  432. data/test/TC_FXDialogBox.rb +1 -1
  433. data/test/TC_FXExtentd.rb +2 -2
  434. data/test/TC_FXExtentf.rb +2 -2
  435. data/test/TC_FXFileAssoc.rb +5 -5
  436. data/test/TC_FXFileStream.rb +5 -5
  437. data/test/TC_FXFoldingList.rb +3 -3
  438. data/test/TC_FXFont.rb +3 -3
  439. data/test/TC_FXGLGroup.rb +1 -1
  440. data/test/TC_FXHeader.rb +3 -3
  441. data/test/TC_FXIconDict.rb +5 -5
  442. data/test/TC_FXIconList.rb +12 -12
  443. data/test/TC_FXImage.rb +16 -16
  444. data/test/TC_FXList.rb +5 -5
  445. data/test/TC_FXListBox.rb +1 -1
  446. data/test/TC_FXMainWindow.rb +2 -2
  447. data/test/TC_FXMat4f.rb +33 -33
  448. data/test/TC_FXMaterial.rb +5 -5
  449. data/test/TC_FXMemoryStream.rb +2 -2
  450. data/test/TC_FXMenuCheck.rb +5 -5
  451. data/test/TC_FXMessageBox.rb +3 -3
  452. data/test/TC_FXPoint.rb +1 -1
  453. data/test/TC_FXRadioButton.rb +4 -4
  454. data/test/TC_FXRanged.rb +3 -3
  455. data/test/TC_FXRangef.rb +3 -3
  456. data/test/TC_FXRegion.rb +1 -1
  457. data/test/TC_FXScrollArea.rb +1 -1
  458. data/test/TC_FXScrollWindow.rb +1 -1
  459. data/test/TC_FXSettings.rb +2 -2
  460. data/test/TC_FXShell.rb +2 -2
  461. data/test/TC_FXTopWindow.rb +2 -2
  462. data/test/TC_FXTreeList.rb +4 -4
  463. data/test/TC_FXTreeListBox.rb +3 -3
  464. data/test/TC_FXVec2d.rb +3 -3
  465. data/test/TC_FXVec2f.rb +3 -3
  466. data/test/TC_FXVec3d.rb +5 -5
  467. data/test/TC_FXVec3f.rb +5 -5
  468. data/test/TC_FXVec4f.rb +6 -6
  469. data/test/TC_Misc.rb +6 -2
  470. data/test/TS_All.rb +1 -17
  471. data/test/stress1.rb +5 -5
  472. data/test/stress2.rb +3 -3
  473. data/test/stress3.rb +12 -12
  474. data/test/testcase.rb +4 -4
  475. metadata +76 -76
data/examples/ratio.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # ratio.rb
2
+ # ratio.rb
3
3
  # Translated from FOX C++ version to Ruby (Dec 2004) by Brett Hallett.
4
4
  # Demonstrates the use of the FXSpring method to retain size ratios between widgets when form is resized.
5
5
  #
@@ -10,7 +10,7 @@ require 'fox16/colors'
10
10
  include Fox
11
11
 
12
12
  class MainWindow < FXMainWindow
13
-
13
+
14
14
  def initialize(app)
15
15
  # Initialize base class first
16
16
  super(app, 'Ratio', :opts => DECOR_ALL,
@@ -58,21 +58,21 @@ class MainWindow < FXMainWindow
58
58
  end
59
59
 
60
60
  def create
61
- super
62
- show(PLACEMENT_SCREEN)
63
- end # create
61
+ super
62
+ show(PLACEMENT_SCREEN)
63
+ end # create
64
64
 
65
- end # class MainWindow
65
+ end # class MainWindow
66
66
 
67
67
  if __FILE__ == $0
68
68
  # Construct an application
69
69
  FXApp.new('Smithy', 'Max') do |theApp|
70
70
 
71
71
  # Construct the main window
72
- MainWindow.new(theApp)
72
+ MainWindow.new(theApp)
73
73
 
74
- # Create and show the application windows
75
- theApp.create
74
+ # Create and show the application windows
75
+ theApp.create
76
76
 
77
77
  # Run the application
78
78
  theApp.run
@@ -6,10 +6,10 @@ class RulerViewExample < FXMainWindow
6
6
  def initialize(app)
7
7
  # Initialize base class
8
8
  super(app, "Ruler View", :opts => DECOR_ALL, :width => 400, :height => 400)
9
-
9
+
10
10
  # Construct a ruler view inside
11
11
  ruler_view = FXRulerView.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
12
-
12
+
13
13
  # And put some content inside that
14
14
  contents = FXText.new(ruler_view, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
15
15
  contents.text = "This is a test."
@@ -20,7 +20,7 @@ class ScintillaTest < FXMainWindow
20
20
 
21
21
  # Menubar
22
22
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
23
-
23
+
24
24
  # Status bar
25
25
  FXStatusBar.new(self,
26
26
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
@@ -29,7 +29,7 @@ class ScintillaTest < FXMainWindow
29
29
  sunkenFrame = FXHorizontalFrame.new(self,
30
30
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
31
31
  @scintilla = FXScintilla.new(sunkenFrame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y)
32
-
32
+
33
33
  # File menu
34
34
  filemenu = FXMenuPane.new(self)
35
35
  FXMenuCommand.new(filemenu, "&Open\tCtl-O\tOpen...").connect(SEL_COMMAND) {
@@ -43,7 +43,7 @@ class ScintillaTest < FXMainWindow
43
43
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit application.", nil,
44
44
  getApp(), FXApp::ID_QUIT, 0)
45
45
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
46
-
46
+
47
47
  # Help menu
48
48
  helpmenu = FXMenuPane.new(self)
49
49
  FXMenuCommand.new(helpmenu, "&About FXRuby...").connect(SEL_COMMAND) {
@@ -69,13 +69,13 @@ end
69
69
  if __FILE__ == $0
70
70
  # Make application
71
71
  application = FXApp.new("ScintillaTest", "FoxTest")
72
-
72
+
73
73
  # Make window
74
74
  ScintillaTest.new(application)
75
-
75
+
76
76
  # Create app
77
77
  application.create
78
-
78
+
79
79
  # Run
80
80
  application.run
81
81
  end
@@ -172,13 +172,13 @@ end
172
172
  def run
173
173
  # Construct the application object
174
174
  application = FXApp.new('Scribble', 'FoxTest')
175
-
175
+
176
176
  # Construct the main window
177
177
  scribble = ScribbleWindow.new(application)
178
-
178
+
179
179
  # Create the application
180
180
  application.create
181
-
181
+
182
182
  # Run the application
183
183
  application.run
184
184
  end
data/examples/scribble.rb CHANGED
@@ -150,13 +150,13 @@ end
150
150
  if __FILE__ == $0
151
151
  # Construct the application object
152
152
  application = FXApp.new('Scribble', 'FoxTest')
153
-
153
+
154
154
  # Construct the main window
155
155
  scribble = ScribbleWindow.new(application)
156
-
156
+
157
157
  # Create the application
158
158
  application.create
159
-
159
+
160
160
  # Run the application
161
161
  application.run
162
162
  end
data/examples/shutter.rb CHANGED
@@ -46,7 +46,7 @@ class ShutterWindow < FXMainWindow
46
46
 
47
47
  # Menubar along the top
48
48
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
49
-
49
+
50
50
  # File menu
51
51
  filemenu = FXMenuPane.new(self)
52
52
  FXMenuCommand.new(filemenu, "Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
@@ -88,7 +88,7 @@ class ShutterWindow < FXMainWindow
88
88
  @shutter = FXShutter.new(splitter,
89
89
  :opts => FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y,
90
90
  :padding => 0, :hSpacing => 0, :vSpacing => 0)
91
-
91
+
92
92
  fatBot = loadIcon("FatBot.ico")
93
93
  angryGuy = loadIcon("AngryGuyInBunnySuit.ico")
94
94
  sawBlade = loadIcon("SawBlade.ico")
@@ -96,7 +96,7 @@ class ShutterWindow < FXMainWindow
96
96
  leGoon = loadIcon("LeGoon.ico")
97
97
  flippedySwitch = loadIcon("FlippedySwitch.ico")
98
98
  net = loadIcon("Net.ico")
99
-
99
+
100
100
  shutterItem = ShutterItem.new(@shutter, "Lookout Shortcuts", nil, LAYOUT_FILL_Y)
101
101
  ShutterButton.new(shutterItem.content, "Lookout Today", fatBot).connect(SEL_COMMAND) { @switcher.current = 0 }
102
102
  ShutterButton.new(shutterItem.content, "Inbox", angryGuy).connect(SEL_COMMAND) { @switcher.current = 1 }
@@ -105,19 +105,19 @@ class ShutterWindow < FXMainWindow
105
105
  ShutterButton.new(shutterItem.content, "Tasks", leGoon).connect(SEL_COMMAND) { @switcher.current = 4 }
106
106
  ShutterButton.new(shutterItem.content, "Notes", flippedySwitch).connect(SEL_COMMAND) { @switcher.current = 5 }
107
107
  ShutterButton.new(shutterItem.content, "Deleted Items", net).connect(SEL_COMMAND) { @switcher.current = 6 }
108
-
108
+
109
109
  shutterItem = ShutterItem.new(@shutter, "My Shortcuts")
110
110
  ShutterButton.new(shutterItem.content, "Drafts", fatBot).connect(SEL_COMMAND) { @switcher.current = 7 }
111
111
  ShutterButton.new(shutterItem.content, "Outbox", angryGuy).connect(SEL_COMMAND) { @switcher.current = 8 }
112
112
  ShutterButton.new(shutterItem.content, "Sent Items", sawBlade).connect(SEL_COMMAND) { @switcher.current = 9 }
113
113
  ShutterButton.new(shutterItem.content, "Journal", redMacOS).connect(SEL_COMMAND) { @switcher.current = 10 }
114
114
  ShutterButton.new(shutterItem.content, "Lookout Update", flippedySwitch).connect(SEL_COMMAND) { @switcher.current = 11 }
115
-
115
+
116
116
  shutterItem = ShutterItem.new(@shutter, "Other Shortcuts")
117
117
  ShutterButton.new(shutterItem.content, "My Computer", angryGuy).connect(SEL_COMMAND) { @switcher.current = 12 }
118
118
  ShutterButton.new(shutterItem.content, "My Documents", net).connect(SEL_COMMAND) { @switcher.current = 13 }
119
119
  ShutterButton.new(shutterItem.content, "Favorites", leGoon).connect(SEL_COMMAND) { @switcher.current = 14 }
120
-
120
+
121
121
  # Right pane is a switcher
122
122
  # For a real application, each panel in the switcher would have real, working contents...
123
123
  @switcher = FXSwitcher.new(splitter,
data/examples/splitter.rb CHANGED
@@ -32,16 +32,16 @@ class SplitterWindow < FXMainWindow
32
32
 
33
33
  # Menu bar
34
34
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
35
-
35
+
36
36
  # Status bar
37
37
  status = FXStatusBar.new(self,
38
38
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
39
-
39
+
40
40
  # File menu
41
41
  filemenu = FXMenuPane.new(self)
42
42
  FXMenuCommand.new(filemenu, "Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
43
43
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
44
-
44
+
45
45
  # Main window interior
46
46
  @splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X|
47
47
  LAYOUT_FILL_Y|SPLITTER_REVERSED|SPLITTER_TRACKING))
@@ -51,7 +51,7 @@ class SplitterWindow < FXMainWindow
51
51
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
52
52
  group3 = FXVerticalFrame.new(@splitter,
53
53
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
54
-
54
+
55
55
  # Mode menu
56
56
  modemenu = FXMenuPane.new(self)
57
57
  FXMenuCommand.new(modemenu, "Reverse\t\tReverse split order").connect(SEL_COMMAND) {
@@ -72,13 +72,13 @@ class SplitterWindow < FXMainWindow
72
72
  FXMenuCheck.new(modemenu, "Toggle pane 1", group1, FXWindow::ID_TOGGLESHOWN)
73
73
  FXMenuCheck.new(modemenu, "Toggle pane 2", group2, FXWindow::ID_TOGGLESHOWN)
74
74
  FXMenuCheck.new(modemenu, "Toggle pane 3", group3, FXWindow::ID_TOGGLESHOWN)
75
-
75
+
76
76
  FXMenuTitle.new(menubar, "&Mode", nil, modemenu)
77
-
77
+
78
78
  tree = FXTreeList.new(group1,
79
79
  :opts => (LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_RIGHT|TREELIST_SHOWS_LINES|
80
80
  TREELIST_SHOWS_BOXES|TREELIST_ROOT_BOXES|TREELIST_EXTENDEDSELECT))
81
-
81
+
82
82
  topmost = tree.appendItem(nil, "Top", folder_open, folder_closed)
83
83
  tree.expandTree(topmost)
84
84
  tree.appendItem(topmost, "First", doc, doc)
@@ -119,11 +119,11 @@ class SplitterWindow < FXMainWindow
119
119
  tree.appendItem(branch, "Seventh-Second", doc, doc)
120
120
  tree.appendItem(branch, "Seventh-Third", doc, doc)
121
121
  tree.appendItem(topmost, "Eighth", doc, doc)
122
-
122
+
123
123
  FXLabel.new(group2, "Matrix", nil, LAYOUT_CENTER_X)
124
124
  FXHorizontalSeparator.new(group2, SEPARATOR_GROOVE|LAYOUT_FILL_X)
125
125
  matrix = FXMatrix.new(group2, 2, MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
126
-
126
+
127
127
  FXLabel.new(matrix, "Alpha:", nil,
128
128
  JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_CENTER_Y)
129
129
  FXTextField.new(matrix, 2, nil, 0, (FRAME_SUNKEN|FRAME_THICK|
@@ -136,16 +136,16 @@ class SplitterWindow < FXMainWindow
136
136
  JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_CENTER_Y)
137
137
  FXTextField.new(matrix, 2, nil, 0, (FRAME_SUNKEN|FRAME_THICK|
138
138
  LAYOUT_FILL_X|LAYOUT_CENTER_Y|LAYOUT_FILL_COLUMN))
139
-
139
+
140
140
  continuousCheck = FXCheckButton.new(group2,
141
141
  "Continuous Tracking\tSplitter continuously tracks split changes")
142
142
  continuousCheck.connect(SEL_COMMAND, method(:onCmdTracking))
143
143
  continuousCheck.connect(SEL_UPDATE, method(:onUpdTracking))
144
-
144
+
145
145
  FXLabel.new(group3, "Quite a Stretch", nil, LAYOUT_CENTER_X)
146
146
  FXHorizontalSeparator.new(group3, SEPARATOR_GROOVE|LAYOUT_FILL_X)
147
147
  mat = FXMatrix.new(group3, 3, LAYOUT_FILL_X|LAYOUT_FILL_Y)
148
-
148
+
149
149
  FXButton.new(mat, "One\nStretch the row\nStretch in Y\nStretch in X\t" +
150
150
  "The possibilities are endless..", nil, nil, 0,
151
151
  FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW)
@@ -154,7 +154,7 @@ class SplitterWindow < FXMainWindow
154
154
  FXButton.new(mat, "Three\nStretch the row\nStretch in Y\nStretch in X\t" +
155
155
  "The possibilities are endless..", nil, nil, 0,
156
156
  FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW)
157
-
157
+
158
158
  FXButton.new(mat, "Four\nStretch the column\nStretch the row\n" +
159
159
  "Stretch in Y\nStretch in X\tThe possibilities are endless..", nil,
160
160
  nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|
@@ -166,7 +166,7 @@ class SplitterWindow < FXMainWindow
166
166
  "Stretch in Y\nStretch in X\tThe possibilities are endless..", nil,
167
167
  nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|
168
168
  LAYOUT_FILL_COLUMN|LAYOUT_FILL_ROW))
169
-
169
+
170
170
  FXButton.new(mat, "Seven\nStretch the column\nStretch the row\n" +
171
171
  "Center in Y\nCenter in X\tThe possibilities are endless..", nil,
172
172
  nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_Y|LAYOUT_CENTER_X|
@@ -178,7 +178,7 @@ class SplitterWindow < FXMainWindow
178
178
  "Stretch in Y\tThe possibilities are endless..", nil, nil, 0,
179
179
  (FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_FILL_Y|
180
180
  LAYOUT_FILL_ROW|LAYOUT_FILL_COLUMN))
181
-
181
+
182
182
  # Make a tool tip
183
183
  FXToolTip.new(getApp(), 0)
184
184
  end
@@ -11,7 +11,7 @@ establish justice, insure domestic tranquility, provide for the common defense,
11
11
  promote the general welfare, and secure the blessings of liberty to ourselves and
12
12
  our posterity, do ordain and establish this Constitution for the United States of America.
13
13
  EOM
14
-
14
+
15
15
  class StyledTextWindow < FXMainWindow
16
16
  def initialize(app)
17
17
  # Call the base class initialize() first
@@ -21,24 +21,24 @@ class StyledTextWindow < FXMainWindow
21
21
 
22
22
  # Menu bar, along the top
23
23
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
24
-
24
+
25
25
  # Button bar along the bottom
26
26
  buttons = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
27
-
27
+
28
28
  # The frame takes up the rest of the space
29
29
  textframe = FXHorizontalFrame.new(self,
30
30
  LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK)
31
-
31
+
32
32
  # File menu
33
33
  filemenu = FXMenuPane.new(self)
34
34
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application.", nil,
35
35
  getApp(), FXApp::ID_QUIT)
36
36
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
37
-
37
+
38
38
  # Text window
39
39
  text = FXText.new(textframe, nil, 0,
40
40
  TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
41
-
41
+
42
42
  # Construct some hilite styles
43
43
  hs1 = FXHiliteStyle.from_text(text)
44
44
  hs1.normalForeColor = FXColor::Red
@@ -49,16 +49,16 @@ class StyledTextWindow < FXMainWindow
49
49
  hs2.normalForeColor = FXColor::Blue
50
50
  hs2.normalBackColor = FXColor::Yellow
51
51
  hs2.style = FXText::STYLE_UNDERLINE
52
-
52
+
53
53
  # Enable the style buffer for this text widget
54
54
  text.styled = true
55
-
55
+
56
56
  # Set the styles
57
57
  text.hiliteStyles = [hs1, hs2]
58
-
58
+
59
59
  # Set the text
60
60
  text.text = PREAMBLE.gsub!(/\n/, "")
61
-
61
+
62
62
  # Change the style for this phrase to hs1 [index 1]
63
63
  phrase = "a more perfect union"
64
64
  text.changeStyle(PREAMBLE.index(phrase), phrase.length, 1)
data/examples/tabbook.rb CHANGED
@@ -23,10 +23,10 @@ class TabBookWindow < FXMainWindow
23
23
  # Contents
24
24
  contents = FXHorizontalFrame.new(self,
25
25
  LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDTH)
26
-
26
+
27
27
  # Switcher
28
28
  @tabbook = FXTabBook.new(contents,:opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
29
-
29
+
30
30
  # First item is a list
31
31
  @tab1 = FXTabItem.new(@tabbook, "&Simple List", nil)
32
32
  listframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED)
@@ -35,18 +35,18 @@ class TabBookWindow < FXMainWindow
35
35
  simplelist.appendItem("Second Entry")
36
36
  simplelist.appendItem("Third Entry")
37
37
  simplelist.appendItem("Fourth Entry")
38
-
38
+
39
39
  # Second item is a file list
40
40
  @tab2 = FXTabItem.new(@tabbook, "F&ile List", nil)
41
41
  @fileframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED)
42
42
  filelist = FXFileList.new(@fileframe, :opts => ICONLIST_EXTENDEDSELECT|LAYOUT_FILL_X|LAYOUT_FILL_Y)
43
-
43
+
44
44
  # Third item is a directory list
45
45
  @tab3 = FXTabItem.new(@tabbook, "T&ree List", nil)
46
46
  dirframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED)
47
47
  dirlist = FXDirList.new(dirframe,
48
48
  :opts => DIRLIST_SHOWFILES|TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES|LAYOUT_FILL_X|LAYOUT_FILL_Y)
49
-
49
+
50
50
  # File Menu
51
51
  filemenu = FXMenuPane.new(self)
52
52
  FXMenuCommand.new(filemenu, "&Simple List", nil,
@@ -58,7 +58,7 @@ class TabBookWindow < FXMainWindow
58
58
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil,
59
59
  getApp(), FXApp::ID_QUIT)
60
60
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
61
-
61
+
62
62
  # Tab side
63
63
  tabmenu = FXMenuPane.new(self)
64
64
  hideShow = FXMenuCheck.new(tabmenu, "Hide/Show Tab 2")
@@ -74,9 +74,9 @@ class TabBookWindow < FXMainWindow
74
74
  @fileframe.recalc
75
75
  }
76
76
  hideShow.connect(SEL_UPDATE) { hideShow.check = @tab2.shown? }
77
-
77
+
78
78
  FXMenuSeparator.new(tabmenu)
79
-
79
+
80
80
  topTabsCmd = FXMenuRadio.new(tabmenu, "&Top Tabs")
81
81
  topTabsCmd.connect(SEL_COMMAND) do
82
82
  @tabbook.tabStyle = TABBOOK_TOPTABS
@@ -87,7 +87,7 @@ class TabBookWindow < FXMainWindow
87
87
  topTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr|
88
88
  sender.check = (@tabbook.tabStyle == TABBOOK_TOPTABS)
89
89
  end
90
-
90
+
91
91
  bottomTabsCmd = FXMenuRadio.new(tabmenu, "&Bottom Tabs")
92
92
  bottomTabsCmd.connect(SEL_COMMAND) do
93
93
  @tabbook.tabStyle = TABBOOK_BOTTOMTABS
@@ -98,7 +98,7 @@ class TabBookWindow < FXMainWindow
98
98
  bottomTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr|
99
99
  sender.check = (@tabbook.tabStyle == TABBOOK_BOTTOMTABS)
100
100
  end
101
-
101
+
102
102
  leftTabsCmd = FXMenuRadio.new(tabmenu, "&Left Tabs")
103
103
  leftTabsCmd.connect(SEL_COMMAND) do
104
104
  @tabbook.tabStyle = TABBOOK_LEFTTABS
@@ -109,7 +109,7 @@ class TabBookWindow < FXMainWindow
109
109
  leftTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr|
110
110
  sender.check = (@tabbook.tabStyle == TABBOOK_LEFTTABS)
111
111
  end
112
-
112
+
113
113
  rightTabsCmd = FXMenuRadio.new(tabmenu, "&Right Tabs")
114
114
  rightTabsCmd.connect(SEL_COMMAND) do
115
115
  @tabbook.tabStyle = TABBOOK_RIGHTTABS
@@ -120,9 +120,9 @@ class TabBookWindow < FXMainWindow
120
120
  rightTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr|
121
121
  sender.check = (@tabbook.tabStyle == TABBOOK_RIGHTTABS)
122
122
  end
123
-
123
+
124
124
  FXMenuSeparator.new(tabmenu)
125
-
125
+
126
126
  addTabCmd = FXMenuCommand.new(tabmenu, "Add Tab")
127
127
  addTabCmd.connect(SEL_COMMAND) do
128
128
  FXTabItem.new(@tabbook, "New Tab")
@@ -132,7 +132,7 @@ class TabBookWindow < FXMainWindow
132
132
  @tabbook.create # realize widgets
133
133
  @tabbook.recalc # mark parent layout dirty
134
134
  end
135
-
135
+
136
136
  removeTabCmd = FXMenuCommand.new(tabmenu, "Remove Last Tab")
137
137
  removeTabCmd.connect(SEL_COMMAND) do
138
138
  numTabs = @tabbook.numChildren/2
data/examples/table.rb CHANGED
@@ -13,30 +13,30 @@ class TableWindow < FXMainWindow
13
13
 
14
14
  # Tooltip
15
15
  tooltip = FXToolTip.new(getApp())
16
-
16
+
17
17
  # Icon used in some cells
18
18
  penguinicon = nil
19
19
  File.open(File.join('icons', 'penguin.png'), 'rb') do |f|
20
20
  penguinicon = FXPNGIcon.new(getApp(), f.read, 0, IMAGE_ALPHAGUESS)
21
21
  end
22
-
22
+
23
23
  # Menubar
24
24
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
25
-
25
+
26
26
  # Separator
27
27
  FXHorizontalSeparator.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE)
28
-
28
+
29
29
  # Contents
30
30
  contents = FXVerticalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
31
-
31
+
32
32
  frame = FXVerticalFrame.new(contents,
33
33
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)
34
-
34
+
35
35
  # Table
36
36
  @table = FXTable.new(frame,
37
37
  :opts => TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y,
38
38
  :padding => 2)
39
-
39
+
40
40
  @table.visibleRows = 20
41
41
  @table.visibleColumns = 8
42
42
 
@@ -47,7 +47,7 @@ class TableWindow < FXMainWindow
47
47
  @table.setCellColor(0, 1, FXRGB(255, 240, 240))
48
48
  @table.setCellColor(1, 0, FXRGB(240, 255, 240))
49
49
  @table.setCellColor(1, 1, FXRGB(240, 240, 255))
50
-
50
+
51
51
  # Initialize the scrollable part of the table
52
52
  (0..49).each do |r|
53
53
  (0..13).each do |c|
@@ -57,10 +57,10 @@ class TableWindow < FXMainWindow
57
57
 
58
58
  # Initialize column headers
59
59
  (0...12).each { |c| @table.setColumnText(c, Date::MONTHNAMES[c+1]) }
60
-
60
+
61
61
  # Initialize row headers
62
62
  (0...50).each { |r| @table.setRowText(r, "Row#{r}") }
63
-
63
+
64
64
  @table.setItemText(10, 10, "This is multi-\nline text")
65
65
  @table.setItemJustify(10, 10, FXTableItem::CENTER_X|FXTableItem::CENTER_Y)
66
66
 
@@ -69,31 +69,31 @@ class TableWindow < FXMainWindow
69
69
  @table.setItem(5, 7, @table.getItem(5, 5))
70
70
  @table.setItemText(5, 5, "Spanning Item")
71
71
  @table.setItemJustify(5, 5, FXTableItem::CENTER_X|FXTableItem::CENTER_Y)
72
-
72
+
73
73
  @table.getItem( 9, 9).borders = FXTableItem::TBORDER|FXTableItem::LBORDER|FXTableItem::BBORDER
74
74
  @table.getItem( 9, 10).borders = FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
75
-
75
+
76
76
  @table.getItem(40, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
77
77
  @table.getItem(49, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
78
78
  @table.getItem( 5, 0).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
79
-
79
+
80
80
  @table.getItem(6, 6).icon = penguinicon
81
81
  @table.getItem(6, 6).iconPosition = FXTableItem::ABOVE # icon above the text
82
82
  @table.getItem(6, 6).justify = FXTableItem::CENTER_X|FXTableItem::CENTER_Y
83
-
83
+
84
84
  @table.getItem(3, 4).stipple = STIPPLE_CROSSDIAG
85
-
85
+
86
86
  # File Menu
87
87
  filemenu = FXMenuPane.new(self)
88
88
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
89
89
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
90
-
90
+
91
91
  # Options Menu
92
92
  tablemenu = FXMenuPane.new(self)
93
93
  FXMenuCheck.new(tablemenu, "Horizontal grid", @table, FXTable::ID_HORZ_GRID)
94
94
  FXMenuCheck.new(tablemenu, "Vertical grid", @table, FXTable::ID_VERT_GRID)
95
95
  FXMenuTitle.new(menubar, "&Options", nil, tablemenu)
96
-
96
+
97
97
  # Manipulations Menu
98
98
  manipmenu = FXMenuPane.new(self)
99
99
  FXMenuCommand.new(manipmenu, "Delete Column\tCtl-C", nil,
@@ -106,7 +106,7 @@ class TableWindow < FXMainWindow
106
106
  @table, FXTable::ID_INSERT_ROW)
107
107
  FXMenuCommand.new(manipmenu, "Resize table...").connect(SEL_COMMAND, method(:onCmdResizeTable))
108
108
  FXMenuTitle.new(menubar, "&Manipulations", nil, manipmenu)
109
-
109
+
110
110
  # Selection Menu
111
111
  selectmenu = FXMenuPane.new(self)
112
112
  FXMenuCommand.new(selectmenu, "Select All", nil, @table, FXTable::ID_SELECT_ALL)
@@ -170,13 +170,13 @@ end
170
170
  if __FILE__ == $0
171
171
  # Make application
172
172
  application = FXApp.new("TableApp", "FoxTest")
173
-
173
+
174
174
  # Make window
175
175
  TableWindow.new(application)
176
-
176
+
177
177
  # Create app
178
178
  application.create
179
-
179
+
180
180
  # Run
181
181
  application.run
182
182
  end
@@ -217,7 +217,7 @@ Changing Font.
217
217
 
218
218
  You can change font by invoking the Font Selection Dialog from the Font menu.
219
219
  The Font Dialog displays four list boxes showing the font Family, Weight, Style,
220
- and Size of each font.
220
+ and Size of each font.
221
221
  You can narrow down the number of fonts displayed by selecting a specific character
222
222
  set, setwidth, pitch, and whether or not scalable fonts are to be listed only.
223
223
  The All Fonts checkbutton causes all fonts to be listed. Use this feature if you
@@ -231,7 +231,7 @@ The four color wells on the status line determine the color of the
231
231
  selection background, selection foreground, and normal background and foreground
232
232
  respectively. Double clicking on a colorwell will bring up the Color Selection
233
233
  Dialog.
234
- The Color Selection Dialog sypports several ways to select a color:
234
+ The Color Selection Dialog sypports several ways to select a color:
235
235
 
236
236
  1\tBy means of Red, Green, and Blue mixing.
237
237
  2\tBy means of Hue, Saturation, Value mixing.
@@ -246,8 +246,8 @@ to hold your own custom color collections.
246
246
  Configuration Issues.
247
247
 
248
248
  The File Browser keeps an association list in the registry database to associate
249
- a particular file extension to an icon and other descriptive information.
250
- The following is an example of how this could be filled in:
249
+ a particular file extension to an icon and other descriptive information.
250
+ The following is an example of how this could be filled in:
251
251
 
252
252
  [SETTINGS]
253
253
  iconpath = /usr/share/icons:/home/jeroen/icons
@@ -269,7 +269,7 @@ class HelpWindow < FXDialogBox
269
269
  def initialize(owner)
270
270
  super(owner, "Help on TextEdit", DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE,
271
271
  0, 0, 0, 0, 6, 6, 6, 6, 4, 4)
272
-
272
+
273
273
  # Bottom part
274
274
  closebox = FXHorizontalFrame.new(self,
275
275
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
@@ -291,7 +291,7 @@ class HelpWindow < FXDialogBox
291
291
  TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
292
292
  helptext.visibleRows = 50
293
293
  helptext.visibleColumns = 60
294
-
294
+
295
295
  # Fill with help
296
296
  helptext.text = HELP
297
297
  helptext.tabColumns = 35