fxruby 1.6.22.pre2-x86-mingw32 → 1.6.22.pre3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (477) 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/1.8/fox16.so +0 -0
  93. data/lib/1.9/fox16.so +0 -0
  94. data/lib/fox16/accel_table.rb +1 -1
  95. data/lib/fox16/aliases.rb +3 -3
  96. data/lib/fox16/calendar.rb +21 -21
  97. data/lib/fox16/chore.rb +2 -2
  98. data/lib/fox16/core.rb +70 -70
  99. data/lib/fox16/dict.rb +1 -1
  100. data/lib/fox16/execute_nonmodal.rb +1 -1
  101. data/lib/fox16/glgroup.rb +16 -16
  102. data/lib/fox16/glshapes.rb +26 -26
  103. data/lib/fox16/input.rb +4 -4
  104. data/lib/fox16/irb.rb +2 -2
  105. data/lib/fox16/iterators.rb +2 -2
  106. data/lib/fox16/keys.rb +34 -34
  107. data/lib/fox16/kwargs.rb +927 -927
  108. data/lib/fox16/pseudokeyboard.rb +1 -1
  109. data/lib/fox16/pseudomouse.rb +1 -1
  110. data/lib/fox16/responder2.rb +4 -4
  111. data/lib/fox16/scintilla.rb +2 -2
  112. data/lib/fox16/signal.rb +4 -4
  113. data/lib/fox16/splashscreen.rb +3 -3
  114. data/lib/fox16/timeout.rb +3 -3
  115. data/lib/fox16/undolist.rb +9 -9
  116. data/lib/fox16/version.rb +1 -1
  117. data/rdoc-sources/FX4Splitter.rb +9 -9
  118. data/rdoc-sources/FX7Segment.rb +9 -9
  119. data/rdoc-sources/FXAccelTable.rb +1 -1
  120. data/rdoc-sources/FXApp.rb +50 -50
  121. data/rdoc-sources/FXBMPIcon.rb +3 -3
  122. data/rdoc-sources/FXBMPImage.rb +2 -2
  123. data/rdoc-sources/FXBitmap.rb +11 -11
  124. data/rdoc-sources/FXBitmapFrame.rb +5 -5
  125. data/rdoc-sources/FXBitmapView.rb +2 -2
  126. data/rdoc-sources/FXButton.rb +2 -2
  127. data/rdoc-sources/FXCheckButton.rb +5 -5
  128. data/rdoc-sources/FXColorBar.rb +5 -5
  129. data/rdoc-sources/FXColorDialog.rb +2 -2
  130. data/rdoc-sources/FXColorList.rb +2 -2
  131. data/rdoc-sources/FXColorRing.rb +8 -8
  132. data/rdoc-sources/FXColorSelector.rb +4 -4
  133. data/rdoc-sources/FXColorWell.rb +4 -4
  134. data/rdoc-sources/FXColorWheel.rb +6 -6
  135. data/rdoc-sources/FXComboBox.rb +17 -17
  136. data/rdoc-sources/FXComposite.rb +2 -2
  137. data/rdoc-sources/FXCursor.rb +7 -7
  138. data/rdoc-sources/FXDC.rb +67 -67
  139. data/rdoc-sources/FXDCPrint.rb +22 -22
  140. data/rdoc-sources/FXDCWindow.rb +1 -1
  141. data/rdoc-sources/FXDataTarget.rb +2 -2
  142. data/rdoc-sources/FXDebugTarget.rb +1 -1
  143. data/rdoc-sources/FXDelegator.rb +1 -1
  144. data/rdoc-sources/FXDial.rb +8 -8
  145. data/rdoc-sources/FXDict.rb +7 -7
  146. data/rdoc-sources/FXDirBox.rb +3 -3
  147. data/rdoc-sources/FXDirDialog.rb +7 -7
  148. data/rdoc-sources/FXDirList.rb +21 -21
  149. data/rdoc-sources/FXDirSelector.rb +8 -8
  150. data/rdoc-sources/FXDockBar.rb +5 -5
  151. data/rdoc-sources/FXDockHandler.rb +3 -3
  152. data/rdoc-sources/FXDockSite.rb +2 -2
  153. data/rdoc-sources/FXDockTitle.rb +3 -3
  154. data/rdoc-sources/FXDocument.rb +3 -3
  155. data/rdoc-sources/FXDragCorner.rb +3 -3
  156. data/rdoc-sources/FXDrawable.rb +3 -3
  157. data/rdoc-sources/FXDriveBox.rb +4 -4
  158. data/rdoc-sources/FXExtentd.rb +2 -2
  159. data/rdoc-sources/FXExtentf.rb +2 -2
  160. data/rdoc-sources/FXFileDialog.rb +21 -21
  161. data/rdoc-sources/FXFileDict.rb +17 -17
  162. data/rdoc-sources/FXFileList.rb +32 -32
  163. data/rdoc-sources/FXFileSelector.rb +20 -20
  164. data/rdoc-sources/FXFileStream.rb +1 -1
  165. data/rdoc-sources/FXFoldingList.rb +53 -53
  166. data/rdoc-sources/FXFont.rb +38 -38
  167. data/rdoc-sources/FXFrame.rb +11 -11
  168. data/rdoc-sources/FXGIFCursor.rb +3 -3
  169. data/rdoc-sources/FXGLCanvas.rb +2 -2
  170. data/rdoc-sources/FXGLContext.rb +6 -6
  171. data/rdoc-sources/FXGLObject.rb +6 -6
  172. data/rdoc-sources/FXGLShape.rb +3 -3
  173. data/rdoc-sources/FXGLViewer.rb +54 -54
  174. data/rdoc-sources/FXGLVisual.rb +13 -13
  175. data/rdoc-sources/FXGradientBar.rb +15 -15
  176. data/rdoc-sources/FXGroupBox.rb +4 -4
  177. data/rdoc-sources/FXHeader.rb +44 -44
  178. data/rdoc-sources/FXICOIcon.rb +1 -1
  179. data/rdoc-sources/FXICOImage.rb +1 -1
  180. data/rdoc-sources/FXIconDict.rb +1 -1
  181. data/rdoc-sources/FXIconList.rb +69 -69
  182. data/rdoc-sources/FXIconSource.rb +2 -2
  183. data/rdoc-sources/FXId.rb +1 -1
  184. data/rdoc-sources/FXImage.rb +11 -11
  185. data/rdoc-sources/FXImageFrame.rb +3 -3
  186. data/rdoc-sources/FXImageView.rb +2 -2
  187. data/rdoc-sources/FXInputDialog.rb +6 -6
  188. data/rdoc-sources/FXJPGIcon.rb +3 -3
  189. data/rdoc-sources/FXJPGImage.rb +2 -2
  190. data/rdoc-sources/FXKnob.rb +9 -9
  191. data/rdoc-sources/FXLabel.rb +8 -8
  192. data/rdoc-sources/FXList.rb +28 -28
  193. data/rdoc-sources/FXListBox.rb +21 -21
  194. data/rdoc-sources/FXMDIChild.rb +11 -11
  195. data/rdoc-sources/FXMDIClient.rb +5 -5
  196. data/rdoc-sources/FXMatrix.rb +6 -6
  197. data/rdoc-sources/FXMemoryBuffer.rb +1 -1
  198. data/rdoc-sources/FXMemoryStream.rb +3 -3
  199. data/rdoc-sources/FXMenuBar.rb +1 -1
  200. data/rdoc-sources/FXMenuButton.rb +7 -7
  201. data/rdoc-sources/FXMenuCaption.rb +10 -10
  202. data/rdoc-sources/FXMenuCheck.rb +1 -1
  203. data/rdoc-sources/FXMenuRadio.rb +1 -1
  204. data/rdoc-sources/FXMenuSeparator.rb +1 -1
  205. data/rdoc-sources/FXMessageBox.rb +3 -3
  206. data/rdoc-sources/FXOptionMenu.rb +9 -9
  207. data/rdoc-sources/FXPCXIcon.rb +2 -2
  208. data/rdoc-sources/FXPCXImage.rb +1 -1
  209. data/rdoc-sources/FXPNGIcon.rb +3 -3
  210. data/rdoc-sources/FXPNGImage.rb +1 -1
  211. data/rdoc-sources/FXPPMIcon.rb +2 -2
  212. data/rdoc-sources/FXPPMImage.rb +1 -1
  213. data/rdoc-sources/FXPacker.rb +13 -13
  214. data/rdoc-sources/FXPopup.rb +11 -11
  215. data/rdoc-sources/FXProgressBar.rb +7 -7
  216. data/rdoc-sources/FXProgressDialog.rb +3 -3
  217. data/rdoc-sources/FXQuatd.rb +17 -17
  218. data/rdoc-sources/FXQuatf.rb +18 -18
  219. data/rdoc-sources/FXRGBIcon.rb +3 -3
  220. data/rdoc-sources/FXRGBImage.rb +1 -1
  221. data/rdoc-sources/FXRadioButton.rb +4 -4
  222. data/rdoc-sources/FXRanged.rb +1 -1
  223. data/rdoc-sources/FXRangef.rb +1 -1
  224. data/rdoc-sources/FXRealSlider.rb +7 -7
  225. data/rdoc-sources/FXRealSpinner.rb +11 -11
  226. data/rdoc-sources/FXRecentFiles.rb +8 -8
  227. data/rdoc-sources/FXRectangle.rb +12 -12
  228. data/rdoc-sources/FXRegion.rb +15 -15
  229. data/rdoc-sources/FXRegistry.rb +4 -4
  230. data/rdoc-sources/FXReplaceDialog.rb +3 -3
  231. data/rdoc-sources/FXRuler.rb +18 -18
  232. data/rdoc-sources/FXRulerView.rb +38 -38
  233. data/rdoc-sources/FXScintilla.rb +16 -16
  234. data/rdoc-sources/FXScrollArea.rb +9 -9
  235. data/rdoc-sources/FXScrollBar.rb +8 -8
  236. data/rdoc-sources/FXScrollPane.rb +1 -1
  237. data/rdoc-sources/FXScrollWindow.rb +5 -5
  238. data/rdoc-sources/FXSeparator.rb +1 -1
  239. data/rdoc-sources/FXSettings.rb +1 -1
  240. data/rdoc-sources/FXShutter.rb +3 -3
  241. data/rdoc-sources/FXSize.rb +4 -4
  242. data/rdoc-sources/FXSlider.rb +7 -7
  243. data/rdoc-sources/FXSphered.rb +21 -21
  244. data/rdoc-sources/FXSpheref.rb +20 -20
  245. data/rdoc-sources/FXSpinner.rb +12 -12
  246. data/rdoc-sources/FXSplashWindow.rb +1 -1
  247. data/rdoc-sources/FXSplitter.rb +6 -6
  248. data/rdoc-sources/FXSpring.rb +2 -2
  249. data/rdoc-sources/FXStatusBar.rb +4 -4
  250. data/rdoc-sources/FXStatusLine.rb +5 -5
  251. data/rdoc-sources/FXStream.rb +8 -8
  252. data/rdoc-sources/FXStringDict.rb +5 -5
  253. data/rdoc-sources/FXSwitcher.rb +2 -2
  254. data/rdoc-sources/FXTGAIcon.rb +3 -3
  255. data/rdoc-sources/FXTGAImage.rb +1 -1
  256. data/rdoc-sources/FXTIFIcon.rb +2 -2
  257. data/rdoc-sources/FXTIFImage.rb +2 -2
  258. data/rdoc-sources/FXTabBar.rb +2 -2
  259. data/rdoc-sources/FXTable.rb +131 -131
  260. data/rdoc-sources/FXText.rb +48 -48
  261. data/rdoc-sources/FXTextField.rb +9 -9
  262. data/rdoc-sources/FXToolBar.rb +1 -1
  263. data/rdoc-sources/FXToolBarGrip.rb +1 -1
  264. data/rdoc-sources/FXToolBarShell.rb +7 -7
  265. data/rdoc-sources/FXToolBarTab.rb +3 -3
  266. data/rdoc-sources/FXToolTip.rb +1 -1
  267. data/rdoc-sources/FXTopWindow.rb +17 -17
  268. data/rdoc-sources/FXTranslator.rb +5 -5
  269. data/rdoc-sources/FXTreeList.rb +50 -50
  270. data/rdoc-sources/FXTreeListBox.rb +16 -16
  271. data/rdoc-sources/FXVec2d.rb +5 -5
  272. data/rdoc-sources/FXVec2f.rb +5 -5
  273. data/rdoc-sources/FXVec3d.rb +8 -8
  274. data/rdoc-sources/FXVec3f.rb +8 -8
  275. data/rdoc-sources/FXVec4d.rb +8 -8
  276. data/rdoc-sources/FXVec4f.rb +8 -8
  277. data/rdoc-sources/FXVisual.rb +3 -3
  278. data/rdoc-sources/FXWindow.rb +99 -99
  279. data/rdoc-sources/FXWizard.rb +8 -8
  280. data/rdoc-sources/FXXBMIcon.rb +2 -2
  281. data/rdoc-sources/FXXBMImage.rb +1 -1
  282. data/rdoc-sources/FXXPMIcon.rb +2 -2
  283. data/rdoc-sources/FXXPMImage.rb +1 -1
  284. data/rdoc-sources/fxdefs.rb +17 -17
  285. data/scripts/generate_kwargs_lib.rb +22 -22
  286. data/scripts/iface.rb +1 -1
  287. data/swig-interfaces/FX4Splitter.i +5 -5
  288. data/swig-interfaces/FX7Segment.i +5 -5
  289. data/swig-interfaces/FXApp.i +10 -10
  290. data/swig-interfaces/FXBMPIcon.i +2 -2
  291. data/swig-interfaces/FXBitmap.i +3 -3
  292. data/swig-interfaces/FXBitmapFrame.i +1 -1
  293. data/swig-interfaces/FXBitmapView.i +1 -1
  294. data/swig-interfaces/FXCanvas.i +1 -1
  295. data/swig-interfaces/FXCheckButton.i +2 -2
  296. data/swig-interfaces/FXChoiceBox.i +2 -2
  297. data/swig-interfaces/FXColorBar.i +7 -7
  298. data/swig-interfaces/FXColorList.i +5 -5
  299. data/swig-interfaces/FXColorWell.i +1 -1
  300. data/swig-interfaces/FXColorWheel.i +6 -6
  301. data/swig-interfaces/FXComboBox.i +4 -4
  302. data/swig-interfaces/FXCursor.i +4 -4
  303. data/swig-interfaces/FXDC.i +23 -23
  304. data/swig-interfaces/FXDCPrint.i +5 -5
  305. data/swig-interfaces/FXDCWindow.i +8 -8
  306. data/swig-interfaces/FXDataTarget.i +5 -5
  307. data/swig-interfaces/FXDebugTarget.i +1 -1
  308. data/swig-interfaces/FXDelegator.i +3 -3
  309. data/swig-interfaces/FXDial.i +8 -8
  310. data/swig-interfaces/FXDialogBox.i +3 -3
  311. data/swig-interfaces/FXDict.i +14 -14
  312. data/swig-interfaces/FXDirBox.i +1 -1
  313. data/swig-interfaces/FXDirDialog.i +2 -2
  314. data/swig-interfaces/FXDirList.i +16 -16
  315. data/swig-interfaces/FXDirSelector.i +2 -2
  316. data/swig-interfaces/FXDockBar.i +1 -1
  317. data/swig-interfaces/FXDockHandler.i +1 -1
  318. data/swig-interfaces/FXDockSite.i +1 -1
  319. data/swig-interfaces/FXDockTitle.i +1 -1
  320. data/swig-interfaces/FXDocument.i +1 -1
  321. data/swig-interfaces/FXDragCorner.i +3 -3
  322. data/swig-interfaces/FXDriveBox.i +1 -1
  323. data/swig-interfaces/FXFileDialog.i +8 -8
  324. data/swig-interfaces/FXFileDict.i +2 -2
  325. data/swig-interfaces/FXFileList.i +11 -11
  326. data/swig-interfaces/FXFileSelector.i +4 -4
  327. data/swig-interfaces/FXFoldingList.i +7 -7
  328. data/swig-interfaces/FXFont.i +20 -20
  329. data/swig-interfaces/FXFrame.i +3 -3
  330. data/swig-interfaces/FXGLCanvas.i +3 -3
  331. data/swig-interfaces/FXGLContext.i +7 -7
  332. data/swig-interfaces/FXGLObject.i +1 -1
  333. data/swig-interfaces/FXGLShape.i +6 -6
  334. data/swig-interfaces/FXGLViewer.i +40 -40
  335. data/swig-interfaces/FXGLVisual.i +2 -2
  336. data/swig-interfaces/FXGradientBar.i +4 -4
  337. data/swig-interfaces/FXGroupBox.i +3 -3
  338. data/swig-interfaces/FXHeader.i +7 -7
  339. data/swig-interfaces/FXIcon.i +4 -4
  340. data/swig-interfaces/FXIconDict.i +1 -1
  341. data/swig-interfaces/FXIconList.i +46 -46
  342. data/swig-interfaces/FXImage.i +2 -2
  343. data/swig-interfaces/FXImageView.i +1 -1
  344. data/swig-interfaces/FXInputDialog.i +3 -3
  345. data/swig-interfaces/FXJPGIcon.i +3 -3
  346. data/swig-interfaces/FXJPGImage.i +2 -2
  347. data/swig-interfaces/FXKnob.i +2 -2
  348. data/swig-interfaces/FXLabel.i +2 -2
  349. data/swig-interfaces/FXList.i +35 -35
  350. data/swig-interfaces/FXListBox.i +5 -5
  351. data/swig-interfaces/FXMDIButton.i +5 -5
  352. data/swig-interfaces/FXMDIChild.i +12 -12
  353. data/swig-interfaces/FXMDIClient.i +2 -2
  354. data/swig-interfaces/FXMat4d.i +2 -2
  355. data/swig-interfaces/FXMat4f.i +5 -5
  356. data/swig-interfaces/FXMatrix.i +12 -12
  357. data/swig-interfaces/FXMemoryBuffer.i +4 -4
  358. data/swig-interfaces/FXMenuBar.i +3 -3
  359. data/swig-interfaces/FXMenuButton.i +7 -7
  360. data/swig-interfaces/FXMenuCaption.i +4 -4
  361. data/swig-interfaces/FXMenuCommand.i +1 -1
  362. data/swig-interfaces/FXMenuPane.i +1 -1
  363. data/swig-interfaces/FXMenuRadio.i +1 -1
  364. data/swig-interfaces/FXMenuSeparator.i +1 -1
  365. data/swig-interfaces/FXMessageBox.i +1 -1
  366. data/swig-interfaces/FXOptionMenu.i +6 -6
  367. data/swig-interfaces/FXPNGIcon.i +2 -2
  368. data/swig-interfaces/FXPPMIcon.i +2 -2
  369. data/swig-interfaces/FXPacker.i +6 -6
  370. data/swig-interfaces/FXPopup.i +13 -13
  371. data/swig-interfaces/FXProgressBar.i +12 -12
  372. data/swig-interfaces/FXProgressDialog.i +5 -5
  373. data/swig-interfaces/FXQuatd.i +7 -7
  374. data/swig-interfaces/FXQuatf.i +1 -1
  375. data/swig-interfaces/FXRadioButton.i +4 -4
  376. data/swig-interfaces/FXRanged.i +4 -4
  377. data/swig-interfaces/FXRangef.i +5 -5
  378. data/swig-interfaces/FXRealSlider.i +10 -10
  379. data/swig-interfaces/FXRealSpinner.i +17 -17
  380. data/swig-interfaces/FXRecentFiles.i +1 -1
  381. data/swig-interfaces/FXRegion.i +4 -4
  382. data/swig-interfaces/FXRegistry.i +3 -3
  383. data/swig-interfaces/FXReplaceDialog.i +1 -1
  384. data/swig-interfaces/FXScintilla.i +3 -3
  385. data/swig-interfaces/FXScrollArea.i +7 -7
  386. data/swig-interfaces/FXScrollBar.i +3 -3
  387. data/swig-interfaces/FXScrollWindow.i +6 -6
  388. data/swig-interfaces/FXSearchDialog.i +1 -1
  389. data/swig-interfaces/FXSeparator.i +3 -3
  390. data/swig-interfaces/FXSettings.i +3 -3
  391. data/swig-interfaces/FXShell.i +1 -1
  392. data/swig-interfaces/FXSlider.i +11 -11
  393. data/swig-interfaces/FXSphered.i +1 -1
  394. data/swig-interfaces/FXSpheref.i +1 -1
  395. data/swig-interfaces/FXSpinner.i +15 -15
  396. data/swig-interfaces/FXSplitter.i +6 -6
  397. data/swig-interfaces/FXStatusBar.i +4 -4
  398. data/swig-interfaces/FXStatusLine.i +5 -5
  399. data/swig-interfaces/FXStream.i +1 -1
  400. data/swig-interfaces/FXSwitcher.i +5 -5
  401. data/swig-interfaces/FXTabBar.i +2 -2
  402. data/swig-interfaces/FXTabBook.i +1 -1
  403. data/swig-interfaces/FXTabItem.i +4 -4
  404. data/swig-interfaces/FXTable.i +37 -37
  405. data/swig-interfaces/FXText.i +13 -13
  406. data/swig-interfaces/FXTextField.i +1 -1
  407. data/swig-interfaces/FXToggleButton.i +6 -6
  408. data/swig-interfaces/FXToolBar.i +4 -4
  409. data/swig-interfaces/FXToolBarGrip.i +3 -3
  410. data/swig-interfaces/FXToolBarShell.i +3 -3
  411. data/swig-interfaces/FXToolBarTab.i +5 -5
  412. data/swig-interfaces/FXToolTip.i +1 -1
  413. data/swig-interfaces/FXTopWindow.i +10 -10
  414. data/swig-interfaces/FXTreeList.i +28 -28
  415. data/swig-interfaces/FXTreeListBox.i +36 -36
  416. data/swig-interfaces/FXVec3d.i +2 -2
  417. data/swig-interfaces/FXVec3f.i +2 -2
  418. data/swig-interfaces/FXVec4d.i +1 -1
  419. data/swig-interfaces/FXVec4f.i +9 -9
  420. data/swig-interfaces/FXVerticalFrame.i +1 -1
  421. data/swig-interfaces/FXVisual.i +1 -1
  422. data/swig-interfaces/FXWindow.i +46 -46
  423. data/swig-interfaces/FXXPMIcon.i +1 -1
  424. data/swig-interfaces/FXXPMImage.i +1 -1
  425. data/swig-interfaces/exceptions.i +1 -1
  426. data/swig-interfaces/freefuncs.i +1 -1
  427. data/swig-interfaces/fxdefs.i +13 -13
  428. data/swig-interfaces/macros.i +79 -79
  429. data/test/TC_FXAccelTable.rb +3 -3
  430. data/test/TC_FXButton.rb +9 -9
  431. data/test/TC_FXCheckButton.rb +4 -4
  432. data/test/TC_FXComboBox.rb +1 -1
  433. data/test/TC_FXDC.rb +42 -42
  434. data/test/TC_FXDialogBox.rb +1 -1
  435. data/test/TC_FXExtentd.rb +2 -2
  436. data/test/TC_FXExtentf.rb +2 -2
  437. data/test/TC_FXFileAssoc.rb +5 -5
  438. data/test/TC_FXFileStream.rb +5 -5
  439. data/test/TC_FXFoldingList.rb +3 -3
  440. data/test/TC_FXFont.rb +3 -3
  441. data/test/TC_FXGLGroup.rb +1 -1
  442. data/test/TC_FXHeader.rb +3 -3
  443. data/test/TC_FXIconDict.rb +5 -5
  444. data/test/TC_FXIconList.rb +12 -12
  445. data/test/TC_FXImage.rb +16 -16
  446. data/test/TC_FXList.rb +5 -5
  447. data/test/TC_FXListBox.rb +1 -1
  448. data/test/TC_FXMainWindow.rb +2 -2
  449. data/test/TC_FXMat4f.rb +33 -33
  450. data/test/TC_FXMaterial.rb +5 -5
  451. data/test/TC_FXMemoryStream.rb +2 -2
  452. data/test/TC_FXMenuCheck.rb +5 -5
  453. data/test/TC_FXMessageBox.rb +3 -3
  454. data/test/TC_FXPoint.rb +1 -1
  455. data/test/TC_FXRadioButton.rb +4 -4
  456. data/test/TC_FXRanged.rb +3 -3
  457. data/test/TC_FXRangef.rb +3 -3
  458. data/test/TC_FXRegion.rb +1 -1
  459. data/test/TC_FXScrollArea.rb +1 -1
  460. data/test/TC_FXScrollWindow.rb +1 -1
  461. data/test/TC_FXSettings.rb +2 -2
  462. data/test/TC_FXShell.rb +2 -2
  463. data/test/TC_FXTopWindow.rb +2 -2
  464. data/test/TC_FXTreeList.rb +4 -4
  465. data/test/TC_FXTreeListBox.rb +3 -3
  466. data/test/TC_FXVec2d.rb +3 -3
  467. data/test/TC_FXVec2f.rb +3 -3
  468. data/test/TC_FXVec3d.rb +5 -5
  469. data/test/TC_FXVec3f.rb +5 -5
  470. data/test/TC_FXVec4f.rb +6 -6
  471. data/test/TC_Misc.rb +6 -2
  472. data/test/TS_All.rb +1 -17
  473. data/test/stress1.rb +5 -5
  474. data/test/stress2.rb +3 -3
  475. data/test/stress3.rb +12 -12
  476. data/test/testcase.rb +4 -4
  477. metadata +76 -76
data/examples/pig.rb CHANGED
@@ -30,9 +30,9 @@ class PigBox < FXMainWindow
30
30
  def initialize(app)
31
31
  # Initialize base class
32
32
  super(app, "Pig")
33
-
33
+
34
34
  @text = FXDataTarget.new("")
35
-
35
+
36
36
  top = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) do |theFrame|
37
37
  theFrame.padLeft = 10
38
38
  theFrame.padRight = 10
@@ -40,29 +40,29 @@ class PigBox < FXMainWindow
40
40
  theFrame.padTop = 10
41
41
  theFrame.vSpacing = 20
42
42
  end
43
-
43
+
44
44
  p = proc { showPig }
45
-
45
+
46
46
  FXLabel.new(top, 'Enter Text:') do |theLabel|
47
47
  theLabel.layoutHints = LAYOUT_FILL_X
48
48
  end
49
-
49
+
50
50
  FXTextField.new(top, 20, @text, FXDataTarget::ID_VALUE) do |theTextField|
51
51
  theTextField.layoutHints = LAYOUT_FILL_X
52
52
  theTextField.setFocus()
53
53
  end
54
-
54
+
55
55
  FXButton.new(top, 'Pig It') do |pigButton|
56
56
  pigButton.connect(SEL_COMMAND, p)
57
57
  pigButton.layoutHints = LAYOUT_CENTER_X
58
58
  end
59
-
59
+
60
60
  FXButton.new(top, 'Exit') do |exitButton|
61
61
  exitButton.connect(SEL_COMMAND) { exit }
62
62
  exitButton.layoutHints = LAYOUT_CENTER_X
63
63
  end
64
64
  end
65
-
65
+
66
66
  def create
67
67
  super
68
68
  show(PLACEMENT_SCREEN)
@@ -5,7 +5,7 @@ require 'soap/wsdlDriver'
5
5
  include Fox
6
6
 
7
7
  class RAABrowserWindow < FXMainWindow
8
-
8
+
9
9
  def initialize(app)
10
10
  # Initialize base class
11
11
  super(app, "Ruby Application Archive", :opts => DECOR_ALL, :width => 600, :height => 600)
@@ -60,7 +60,7 @@ class RAABrowserWindow < FXMainWindow
60
60
  @download = FXDataTarget.new("")
61
61
  @license = FXDataTarget.new("")
62
62
  @description = FXDataTarget.new("")
63
-
63
+
64
64
  # Information appears on the right-hand side
65
65
  infoFrame = FXVerticalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT|FRAME_SUNKEN|FRAME_THICK)
66
66
 
@@ -88,10 +88,10 @@ class RAABrowserWindow < FXMainWindow
88
88
  descriptionBox = FXGroupBox.new(infoFrame, "Description", GROUPBOX_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE)
89
89
  descriptionFrame = FXHorizontalFrame.new(descriptionBox, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
90
90
  FXText.new(descriptionFrame, @description, FXDataTarget::ID_VALUE, TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
91
-
91
+
92
92
  # Initialize the service
93
93
  @raa = SOAP::WSDLDriverFactory.new("http://www2.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/").create_rpc_driver
94
-
94
+
95
95
  # Set up the product tree list
96
96
  @productTree = @raa.tree_by_category
97
97
  @productTree.keys.sort.each do |sectionName|
@@ -106,7 +106,7 @@ class RAABrowserWindow < FXMainWindow
106
106
  end
107
107
  end
108
108
  end
109
-
109
+
110
110
  def create
111
111
  super
112
112
  @treeList.parent.parent.setWidth(@treeList.font.getTextWidth('M'*24))
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