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/glviewer.rb CHANGED
@@ -146,10 +146,10 @@ end
146
146
  class GLViewWindow < FXMainWindow
147
147
 
148
148
  include Responder
149
-
149
+
150
150
  ID_QUERY_MODE = FXMainWindow::ID_LAST
151
151
  ID_GLVIEWER = ID_QUERY_MODE + 1
152
-
152
+
153
153
  # Load the named PNG icon from a file
154
154
  def loadIcon(filename)
155
155
  begin
@@ -300,7 +300,7 @@ class GLViewWindow < FXMainWindow
300
300
  FXButton.new(toolbar, "\tPrint Image\tPrint shapshot image.",
301
301
  loadIcon("printicon"), @mdiclient, FXGLViewer::ID_PRINT_IMAGE,
302
302
  BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
303
-
303
+
304
304
  # Editing
305
305
  FXFrame.new(toolbar,
306
306
  LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 4, :height => 20)
@@ -313,7 +313,7 @@ class GLViewWindow < FXMainWindow
313
313
  FXButton.new(toolbar, "\tPaste", loadIcon("paste"), @mdiclient,
314
314
  FXGLViewer::ID_PASTE_SEL, (BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|
315
315
  LAYOUT_TOP|LAYOUT_LEFT))
316
-
316
+
317
317
  # Projections
318
318
  FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|
319
319
  LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT), :width => 8, :height => 20)
@@ -323,7 +323,7 @@ class GLViewWindow < FXMainWindow
323
323
  FXButton.new(toolbar, "\tParallel\tSwitch to parallel projection.",
324
324
  loadIcon("parallel"), @mdiclient, FXGLViewer::ID_PARALLEL,
325
325
  BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
326
-
326
+
327
327
  # Shading model
328
328
  FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|
329
329
  LAYOUT_FIX_HEIGHT), :width => 8, :height => 20)
@@ -341,7 +341,7 @@ class GLViewWindow < FXMainWindow
341
341
  FXToggleButton.new(toolbar, "\tToggle Light\tToggle light source.", nil,
342
342
  loadIcon("nolight"), loadIcon("light"), nil, 0,
343
343
  FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
344
-
344
+
345
345
  # View orientation
346
346
  FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|
347
347
  LAYOUT_FIX_HEIGHT), :width => 8, :height => 20)
@@ -363,7 +363,7 @@ class GLViewWindow < FXMainWindow
363
363
  FXButton.new(toolbar, "\tBottom View\tView objects from below.",
364
364
  loadIcon("bottomview"), @mdiclient, FXGLViewer::ID_BOTTOM,
365
365
  BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
366
-
366
+
367
367
  # Miscellaneous buttons
368
368
  FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|
369
369
  LAYOUT_FIX_HEIGHT), :width => 8, :height => 20)
@@ -376,14 +376,14 @@ class GLViewWindow < FXMainWindow
376
376
  FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
377
377
  FXButton.new(toolbar, nil, loadIcon("foxicon"), nil, 0,
378
378
  FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
379
-
379
+
380
380
  # Dangerous delete a bit on the side
381
381
  FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|
382
382
  LAYOUT_FIX_HEIGHT), :width => 10, :height => 20)
383
383
  FXButton.new(toolbar, "\tDelete\tDelete the selected object.",
384
384
  loadIcon("kill"), @mdiclient, FXGLViewer::ID_DELETE_SEL,
385
385
  BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)
386
-
386
+
387
387
  # View menu
388
388
  viewmenu = FXMenuPane.new(self)
389
389
  FXMenuTitle.new(menubar, "&View", nil, viewmenu)
@@ -414,7 +414,7 @@ class GLViewWindow < FXMainWindow
414
414
  @mdiclient, FXGLViewer::ID_LASSO_ZOOM, MENU_AUTOGRAY)
415
415
  FXMenuCommand.new(viewmenu, "Select...\t\tZoom in on area", nil,
416
416
  @mdiclient, FXGLViewer::ID_LASSO_SELECT, MENU_AUTOGRAY)
417
-
417
+
418
418
  # Rendering menu
419
419
  rendermenu = FXMenuPane.new(self)
420
420
  FXMenuTitle.new(menubar, "&Rendering", nil, rendermenu)
@@ -427,7 +427,7 @@ class GLViewWindow < FXMainWindow
427
427
  FXMenuCommand.new(rendermenu,
428
428
  "Bounding Box\t\tRender bounding box only.", nil,
429
429
  @mdiclient, FXGLShape::ID_STYLE_BOUNDINGBOX, MENU_AUTOGRAY)
430
-
430
+
431
431
  # Window menu
432
432
  windowmenu = FXMenuPane.new(self)
433
433
  FXMenuTitle.new(menubar,"&Windows", nil, windowmenu)
@@ -462,7 +462,7 @@ class GLViewWindow < FXMainWindow
462
462
  FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_2)
463
463
  FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_3)
464
464
  FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_4)
465
-
465
+
466
466
  # Help menu
467
467
  helpmenu = FXMenuPane.new(self)
468
468
  FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT)
@@ -472,14 +472,14 @@ class GLViewWindow < FXMainWindow
472
472
  FXMessageBox.information(self, MBOX_OK, "About FOX",
473
473
  "FOX OpenGL Example.\nCopyright (C) 1998 Jeroen van der Zijp")
474
474
  }
475
-
475
+
476
476
  # Make a tool tip
477
477
  FXToolTip.new(getApp(), 0)
478
-
478
+
479
479
  # The status bar shows our mode
480
480
  statusbar.statusLine.target = self
481
481
  statusbar.statusLine.selector = ID_QUERY_MODE
482
-
482
+
483
483
  # Make a scene!
484
484
  @scene = FXGLGroup.new
485
485
  gp2 = FXGLGroup.new
@@ -495,7 +495,7 @@ class GLViewWindow < FXMainWindow
495
495
  gp2.append(FXGLCylinder.new(-1.0, 0.5, 0.0, 1.0, 0.5))
496
496
  gp2.append(sphere)
497
497
  gp2.append(sphere2)
498
-
498
+
499
499
  # Add scene to GL viewer
500
500
  viewer.scene = @scene
501
501
  end
data/examples/groupbox.rb CHANGED
@@ -77,7 +77,7 @@ class GroupWindow < FXMainWindow
77
77
  resize(getDefaultWidth(), getDefaultHeight())
78
78
  }
79
79
  FXMenuCommand.new(filemenu, "Dump Widgets", nil, getApp(), FXApp::ID_DUMP)
80
-
80
+
81
81
  # Make edit popup menu
82
82
  editmenu = FXMenuPane.new(self)
83
83
  FXMenuCommand.new(editmenu, "Undo")
@@ -88,11 +88,11 @@ class GroupWindow < FXMainWindow
88
88
  FXMenuCommand.new(submenu1, "Th&ree")
89
89
  FXMenuCommand.new(submenu1, "&Four")
90
90
  FXMenuCascade.new(editmenu, "&Submenu1", nil, submenu1)
91
-
91
+
92
92
  FXMenuCascade.new(filemenu, "&Edit", nil, editmenu)
93
93
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
94
94
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
95
-
95
+
96
96
  helpmenu = FXMenuPane.new(self)
97
97
  FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) {
98
98
  FXMessageBox.information(self, MBOX_OK,
@@ -100,28 +100,28 @@ class GroupWindow < FXMainWindow
100
100
  "FOX is a really, really cool C++ library!\nExample written by Jeroen")
101
101
  }
102
102
  FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT)
103
-
103
+
104
104
  @popupmenu = FXMenuPane.new(self)
105
105
  poptext = FXTextField.new(@popupmenu, 10, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP)
106
106
  poptext.setText("Popup with text")
107
-
107
+
108
108
  # Status bar
109
109
  status = FXStatusBar.new(self,
110
110
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
111
111
  @clockLabel = FXLabel.new(status, Time.now().strftime("%I:%M:%S %p"), nil,
112
112
  LAYOUT_FILL_Y|LAYOUT_RIGHT|FRAME_SUNKEN)
113
-
113
+
114
114
  # Content
115
115
  contents = FXHorizontalFrame.new(self,
116
116
  LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
117
-
117
+
118
118
  group1 = FXGroupBox.new(contents, "Title Left",
119
119
  GROUPBOX_TITLE_LEFT|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
120
120
  group2 = FXGroupBox.new(contents, "Slider Tests",
121
121
  GROUPBOX_TITLE_CENTER|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
122
122
  group3 = FXGroupBox.new(contents, "Title Right",
123
123
  GROUPBOX_TITLE_RIGHT|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
124
-
124
+
125
125
  testlabel = FXLabel.new(group1,
126
126
  "&This is a multi-line\nlabel widget\nwith a big font", nil,
127
127
  LAYOUT_CENTER_X|JUSTIFY_CENTER_X)
@@ -134,7 +134,7 @@ class GroupWindow < FXMainWindow
134
134
  "O&pen\nState\tTooltip for open\tHelp for open",
135
135
  folder_closed, folder_open, nil, 0,
136
136
  ICON_BEFORE_TEXT|JUSTIFY_LEFT|FRAME_RAISED|FRAME_THICK)
137
-
137
+
138
138
  pop = FXPopup.new(self)
139
139
  numbers =%w{first second third fourth}
140
140
  0.upto(3) do |idx|
@@ -142,10 +142,10 @@ class GroupWindow < FXMainWindow
142
142
  FXMessageBox.information(self, MBOX_OK, "Option Menu", "Chose option #{idx+1}")
143
143
  }
144
144
  end
145
-
145
+
146
146
  FXOptionMenu.new(group1, pop,
147
147
  LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|JUSTIFY_HZ_APART|ICON_AFTER_TEXT)
148
-
148
+
149
149
  FXLabel.new(group1, "Te&kstje", nil, LAYOUT_TOP|JUSTIFY_LEFT)
150
150
  FXButton.new(group1,
151
151
  "Add an `&&' by doubling\tTooltip\tHelp text for status", :opts => LAYOUT_TOP|FRAME_RAISED|FRAME_THICK)
@@ -153,10 +153,10 @@ class GroupWindow < FXMainWindow
153
153
  x, y, buttons = getRoot().getCursorPosition()
154
154
  @popupmenu.popup(nil, x, y)
155
155
  }
156
-
156
+
157
157
  FXMenuButton.new(group1, "&Menu", :opts => MENUBUTTON_ATTACH_BOTH|MENUBUTTON_DOWN|JUSTIFY_HZ_APART|LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|ICON_AFTER_TEXT)
158
158
  FXMenuButton.new(group1, "&Menu", nil, filemenu, MENUBUTTON_UP|LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|ICON_AFTER_TEXT)
159
-
159
+
160
160
  coolpop = FXPopup.new(self, POPUP_HORIZONTAL)
161
161
  FXButton.new(coolpop, "A\tTipA",
162
162
  :opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 30, :height => 30)
@@ -169,37 +169,37 @@ class GroupWindow < FXMainWindow
169
169
  FXMenuButton.new(group1, "&S\tSideways", nil, coolpop,
170
170
  (MENUBUTTON_ATTACH_BOTH|MENUBUTTON_LEFT|MENUBUTTON_NOARROWS|LAYOUT_TOP|
171
171
  FRAME_RAISED|FRAME_THICK|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT), :width => 30, :height => 30)
172
-
172
+
173
173
  matrix = FXMatrix.new(group1, 3,
174
174
  FRAME_RAISED|LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
175
-
175
+
176
176
  FXButton.new(matrix, "A", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW)
177
177
  FXButton.new(matrix, "&Wide button", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
178
178
  FXButton.new(matrix, "A", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
179
-
179
+
180
180
  FXButton.new(matrix, "BBBB", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW|LAYOUT_FILL_COLUMN)
181
181
  FXButton.new(matrix, "B", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
182
182
  FXButton.new(matrix, "BB", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
183
-
183
+
184
184
  FXButton.new(matrix, "C", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_Y|LAYOUT_CENTER_X|LAYOUT_FILL_ROW)
185
185
  FXButton.new(matrix, "&wide", :opts => FRAME_RAISED|FRAME_THICK)
186
186
  FXButton.new(matrix, "CC", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT)
187
-
187
+
188
188
  FXLabel.new(group2, "No Arrow")
189
189
  FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL, :width => 200, :height => 30)
190
-
190
+
191
191
  FXLabel.new(group2, "Up Arrow")
192
192
  FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_ARROW_UP, :width => 200, :height => 30)
193
-
193
+
194
194
  FXLabel.new(group2, "Down Arrow")
195
195
  FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_ARROW_DOWN, :width => 200, :height => 30)
196
-
196
+
197
197
  FXLabel.new(group2, "Inside Bar")
198
- slider = FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_INSIDE_BAR, :width => 200, :height => 20)
198
+ slider = FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_INSIDE_BAR, :width => 200, :height => 20)
199
199
  slider.range = 0..3
200
-
200
+
201
201
  frame = FXHorizontalFrame.new(group2, LAYOUT_FILL_X|LAYOUT_FILL_Y)
202
-
202
+
203
203
  FXSlider.new(frame, nil, 0,
204
204
  LAYOUT_FIX_HEIGHT|SLIDER_VERTICAL, 0, 0, 30, 200)
205
205
  FXSlider.new(frame, nil, 0,
@@ -210,7 +210,7 @@ class GroupWindow < FXMainWindow
210
210
  LAYOUT_FIX_HEIGHT|SLIDER_VERTICAL|SLIDER_INSIDE_BAR, 0, 0, 20, 200)
211
211
  FXScrollBar.new(frame, nil, 0,
212
212
  SCROLLBAR_VERTICAL|LAYOUT_FIX_HEIGHT|LAYOUT_FIX_WIDTH, 0, 0, 20, 300)
213
-
213
+
214
214
  vframe1 = FXVerticalFrame.new(frame, LAYOUT_FILL_X|LAYOUT_FILL_Y)
215
215
  FXArrowButton.new(vframe1, nil, 0,
216
216
  LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_UP)
@@ -220,7 +220,7 @@ class GroupWindow < FXMainWindow
220
220
  LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_LEFT)
221
221
  FXArrowButton.new(vframe1, nil, 0,
222
222
  LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_RIGHT)
223
-
223
+
224
224
  vframe2 = FXVerticalFrame.new(frame, LAYOUT_FILL_X|LAYOUT_FILL_Y)
225
225
  FXArrowButton.new(vframe2, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_UP|ARROW_TOOLBAR)
226
226
  FXArrowButton.new(vframe2, nil, 0, (LAYOUT_FILL_X|LAYOUT_FILL_Y|
@@ -229,7 +229,7 @@ class GroupWindow < FXMainWindow
229
229
  FRAME_RAISED|FRAME_THICK|ARROW_LEFT|ARROW_TOOLBAR))
230
230
  FXArrowButton.new(vframe2, nil, 0, (LAYOUT_FILL_X|LAYOUT_FILL_Y|
231
231
  FRAME_RAISED|FRAME_THICK|ARROW_RIGHT|ARROW_TOOLBAR))
232
-
232
+
233
233
  gp_datatarget = FXDataTarget.new(0)
234
234
  gp = FXGroupBox.new(group3, "Group Box",
235
235
  LAYOUT_SIDE_TOP|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)
@@ -241,7 +241,7 @@ class GroupWindow < FXMainWindow
241
241
  JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
242
242
  FXRadioButton.new(gp, "Radio Stad Amsterdam", gp_datatarget, FXDataTarget::ID_OPTION+3,
243
243
  ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
244
-
244
+
245
245
  vv = FXGroupBox.new(group3, "Group Box",
246
246
  LAYOUT_SIDE_TOP|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0)
247
247
  FXCheckButton.new(vv, "Hilversum 1", nil, 0,
@@ -252,25 +252,25 @@ class GroupWindow < FXMainWindow
252
252
  JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
253
253
  FXCheckButton.new(vv, "Radio Stad Amsterdam", nil, 0,
254
254
  ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP)
255
-
255
+
256
256
  spinner = FXSpinner.new(group3, 20, nil, 0,
257
257
  SPIN_NORMAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP)
258
258
  spinner.range = 1..20
259
-
259
+
260
260
  combobox = FXComboBox.new(group3, 5, nil, 0,
261
261
  COMBOBOX_INSERT_LAST|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP)
262
262
  combobox.appendItem("Very Wide Item")
263
263
  for i in 0...3
264
264
  combobox.appendItem("%04d" % i)
265
265
  end
266
-
266
+
267
267
  treebox = FXTreeListBox.new(group3, nil, 0,
268
268
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP, 0, 0, 200, 0)
269
-
269
+
270
270
  topmost = treebox.appendItem(nil, "Top", folder_open, folder_closed)
271
271
  topmost2 = treebox.appendItem(nil, "Top2", folder_open, folder_closed)
272
272
  treebox.appendItem(topmost2, "First", doc, doc)
273
-
273
+
274
274
  treebox.appendItem(topmost, "First", doc, doc)
275
275
  treebox.appendItem(topmost, "Second", doc, doc)
276
276
  treebox.appendItem(topmost, "Third", doc, doc)
@@ -289,7 +289,7 @@ class GroupWindow < FXMainWindow
289
289
  treebox.appendItem(twig, "Fourth-Fourth-First", doc, doc)
290
290
  treebox.appendItem(twig, "Fourth-Fourth-Second", doc, doc)
291
291
  treebox.appendItem(twig, "Fourth-Fourth-Third", doc, doc)
292
-
292
+
293
293
  FXLabel.new(group3, "H&it the hotkey", nil,
294
294
  LAYOUT_CENTER_X|JUSTIFY_CENTER_X|FRAME_RAISED)
295
295
  textfield1 = FXTextField.new(group3, 20, nil, 0,
@@ -305,7 +305,7 @@ class GroupWindow < FXMainWindow
305
305
  TEXTFIELD_READONLY|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP)
306
306
  textfield4.text = "Grayed out"
307
307
  textfield4.disable
308
-
308
+
309
309
  realnumber = FXTextField.new(group3, 20, nil, 0,
310
310
  TEXTFIELD_REAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FIX_HEIGHT,
311
311
  0, 0, 0, 30)
@@ -314,12 +314,12 @@ class GroupWindow < FXMainWindow
314
314
  TEXTFIELD_INTEGER|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FIX_HEIGHT,
315
315
  0, 0, 0, 30)
316
316
  intnumber.text = "1000"
317
-
317
+
318
318
  dial2 = FXDial.new(group3, nil, 0, (DIAL_CYCLIC|DIAL_HAS_NOTCH|
319
319
  DIAL_HORIZONTAL|LAYOUT_FILL_X|FRAME_RAISED|FRAME_THICK), 0, 0, 120, 0)
320
320
  FXScrollBar.new(group3, nil, 0,
321
321
  SCROLLBAR_HORIZONTAL|LAYOUT_FIX_HEIGHT|LAYOUT_FIX_WIDTH, 0, 0, 300, 20)
322
-
322
+
323
323
  pbar = FXProgressBar.new(group3, nil, 0,
324
324
  LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK|PROGRESSBAR_PERCENTAGE)
325
325
  pbar.progress = 48
@@ -334,7 +334,7 @@ class GroupWindow < FXMainWindow
334
334
  dial1.selector = FXWindow::ID_SETVALUE
335
335
  dial2.target = pbar
336
336
  dial2.selector = FXWindow::ID_SETVALUE
337
-
337
+
338
338
  # Currently selected choice from the radio buttons
339
339
  @choice = 0
340
340
 
@@ -379,13 +379,13 @@ end
379
379
  if __FILE__ == $0
380
380
  # Make application
381
381
  application = FXApp.new("Groupbox", "FoxTest")
382
-
382
+
383
383
  # Make window
384
384
  GroupWindow.new(application)
385
-
385
+
386
386
  # Create app
387
387
  application.create
388
-
388
+
389
389
  # Run
390
390
  application.run
391
391
  end
data/examples/header.rb CHANGED
@@ -20,7 +20,7 @@ class HeaderWindow < FXMainWindow
20
20
 
21
21
  # Status bar, stretched along the bottom
22
22
  FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
23
-
23
+
24
24
  # File menu
25
25
  filemenu = FXMenuPane.new(self)
26
26
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application", nil,
@@ -40,9 +40,9 @@ class HeaderWindow < FXMainWindow
40
40
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
41
41
  :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0,
42
42
  :hSpacing => 0, :vSpacing => 0)
43
-
43
+
44
44
  # Make header control
45
- @header1 = FXHeader.new(contents,
45
+ @header1 = FXHeader.new(contents,
46
46
  :opts => HEADER_BUTTON|HEADER_RESIZE|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
47
47
  @header1.connect(SEL_CHANGED) do |sender, sel, which|
48
48
  @lists[which].width = @header1.getItemSize(which)
@@ -51,19 +51,19 @@ class HeaderWindow < FXMainWindow
51
51
  @lists[which].numItems.times do |i|
52
52
  @lists[which].selectItem(i)
53
53
  end
54
- end
54
+ end
55
55
 
56
56
  # Document icon
57
57
  doc = nil
58
58
  File.open(File.join("icons", "minidoc.png"), "rb") do |f|
59
59
  doc = FXPNGIcon.new(getApp(), f.read)
60
60
  end
61
-
61
+
62
62
  @header1.appendItem("Name", doc, 150)
63
63
  @header1.appendItem("Type", nil, 140)
64
64
  @header1.appendItem("Layout Option", doc, 230)
65
65
  @header1.appendItem("Attributes", nil, 80)
66
-
66
+
67
67
  # Below header
68
68
  panes = FXHorizontalFrame.new(contents,
69
69
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
data/examples/hello2.rb CHANGED
@@ -7,13 +7,13 @@ include Fox
7
7
  =begin
8
8
  This is the "Cadillac" version of the classic "Hello, World" example;
9
9
  it has not only an icon, but also a tooltip, and an accelerator.
10
-
10
+
11
11
  Executing an FXIcon's constructor will cause it to deserialize the pixel-
12
12
  data by associating a memory stream with the data array; the resulting icon
13
13
  object will contain a pixel-array, which will be converted to an off-screen
14
14
  X pixmap when the icons create() method is called. At that point, the
15
15
  temporary (client-side) pixel storage will be freed.
16
- =end
16
+ =end
17
17
 
18
18
  # Construct the application object, with application name "Hello2"
19
19
  # and vendor key "FoxTest". These strings are primarily used for
data/examples/iconlist.rb CHANGED
@@ -3,7 +3,7 @@ require 'fox16'
3
3
  include Fox
4
4
 
5
5
  class IconListWindow < FXMainWindow
6
-
6
+
7
7
  # Load the named PNG icon from a file
8
8
  def loadIcon(filename)
9
9
  begin
@@ -22,18 +22,18 @@ class IconListWindow < FXMainWindow
22
22
  def initialize(app)
23
23
  # Initialize base class first
24
24
  super(app, "Icon List Test", :opts => DECOR_ALL, :width => 800, :height => 600)
25
-
25
+
26
26
  # Menu bar
27
27
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
28
-
28
+
29
29
  # File menu
30
30
  filemenu = FXMenuPane.new(self)
31
31
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
32
32
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
33
-
33
+
34
34
  # Status bar
35
35
  status = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
36
-
36
+
37
37
  # Main window interior
38
38
  group = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y,
39
39
  :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
@@ -42,20 +42,20 @@ class IconListWindow < FXMainWindow
42
42
  FXLabel.new(group, "Icon List Widget", nil, LAYOUT_TOP|LAYOUT_FILL_X|FRAME_SUNKEN)
43
43
  subgroup = FXVerticalFrame.new(group, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y,
44
44
  :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
45
-
45
+
46
46
  # Icon list on the right
47
47
  iconlist = FXIconList.new(subgroup, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|ICONLIST_BIG_ICONS|ICONLIST_EXTENDEDSELECT)
48
-
48
+
49
49
  iconlist.appendHeader("Name", nil, 200)
50
50
  iconlist.appendHeader("Type", nil, 100)
51
51
  iconlist.appendHeader("Size", nil, 60)
52
52
  iconlist.appendHeader("Modified Date", nil, 150)
53
53
  iconlist.appendHeader("User", nil, 50)
54
54
  iconlist.appendHeader("Group", nil, 50)
55
-
55
+
56
56
  big_folder = loadIcon("bigfolder.png")
57
57
  mini_folder = loadIcon("minifolder.png")
58
-
58
+
59
59
  iconlist.appendItem("Really BIG and wide item to test\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder)
60
60
  1.upto(400) do |i|
61
61
  iconlist.appendItem("Filename_#{i}\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder)
@@ -74,7 +74,7 @@ class IconListWindow < FXMainWindow
74
74
  # Let's see a tooltip
75
75
  FXToolTip.new(getApp())
76
76
  end
77
-
77
+
78
78
  # Overrides base class version
79
79
  def create
80
80
  super