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
@@ -11,21 +11,21 @@ class FourSplitWindow < FXMainWindow
11
11
 
12
12
  # Menu bar, along the top
13
13
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
14
-
14
+
15
15
  # Status bar, along the bottom
16
16
  FXStatusBar.new(self,
17
17
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
18
-
18
+
19
19
  # The top-level splitter takes up the rest of the space
20
20
  splitter = FX4Splitter.new(self,
21
21
  LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING)
22
-
22
+
23
23
  # File menu
24
24
  filemenu = FXMenuPane.new(self)
25
25
  FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application.", nil,
26
26
  getApp(), FXApp::ID_QUIT)
27
27
  FXMenuTitle.new(menubar, "&File", nil, filemenu)
28
-
28
+
29
29
  # Expand menu
30
30
  expandmenu = FXMenuPane.new(self)
31
31
  FXMenuCommand.new(expandmenu, "All four", nil,
@@ -39,7 +39,7 @@ class FourSplitWindow < FXMainWindow
39
39
  FXMenuCommand.new(expandmenu, "Bottom/right", nil,
40
40
  splitter, FX4Splitter::ID_EXPAND_BOTTOMRIGHT)
41
41
  FXMenuTitle.new(menubar, "&Expand", nil, expandmenu)
42
-
42
+
43
43
  # The 4-splitter accepts exactly four child widgets, and the
44
44
  # order in which they are added matters (top left, top right,
45
45
  # bottom left and bottom right, in that order). For our case,
@@ -76,7 +76,7 @@ class FourSplitWindow < FXMainWindow
76
76
  "&arbitrarily!\tThis splitter does NOT track", :opts => FRAME_SUNKEN|FRAME_THICK)
77
77
  button.backColor = FXRGB(128, 128, 0)
78
78
  button.textColor = FXRGB(255, 255, 255)
79
-
79
+
80
80
  # Finally, create the tool tip object
81
81
  FXToolTip.new(getApp())
82
82
  end
data/examples/gltest.rb CHANGED
@@ -30,7 +30,7 @@ class GLTestWindow < FXMainWindow
30
30
  GL.Vertex(xmax, ymin, zmin)
31
31
  GL.Vertex(xmax, ymax, zmin)
32
32
  GL.End()
33
-
33
+
34
34
  GL.Begin(GL::TRIANGLE_STRIP)
35
35
  GL.Normal(1.0, 0.0, 0.0)
36
36
  GL.Vertex(xmax, ymin, zmin)
@@ -38,7 +38,7 @@ class GLTestWindow < FXMainWindow
38
38
  GL.Vertex(xmax, ymin, zmax)
39
39
  GL.Vertex(xmax, ymax, zmax)
40
40
  GL.End()
41
-
41
+
42
42
  GL.Begin(GL::TRIANGLE_STRIP)
43
43
  GL.Normal(0.0, 0.0, 1.0)
44
44
  GL.Vertex(xmax, ymin, zmax)
@@ -46,7 +46,7 @@ class GLTestWindow < FXMainWindow
46
46
  GL.Vertex(xmin, ymin, zmax)
47
47
  GL.Vertex(xmin, ymax, zmax)
48
48
  GL.End()
49
-
49
+
50
50
  GL.Begin(GL::TRIANGLE_STRIP)
51
51
  GL.Normal(-1.0, 0.0, 0.0)
52
52
  GL.Vertex(xmin, ymin, zmax)
@@ -54,7 +54,7 @@ class GLTestWindow < FXMainWindow
54
54
  GL.Vertex(xmin, ymin, zmin)
55
55
  GL.Vertex(xmin, ymax, zmin)
56
56
  GL.End()
57
-
57
+
58
58
  GL.Begin(GL::TRIANGLE_STRIP)
59
59
  GL.Normal(0.0, 1.0, 0.0)
60
60
  GL.Vertex(xmin, ymax, zmin)
@@ -62,7 +62,7 @@ class GLTestWindow < FXMainWindow
62
62
  GL.Vertex(xmax, ymax, zmin)
63
63
  GL.Vertex(xmax, ymax, zmax)
64
64
  GL.End()
65
-
65
+
66
66
  GL.Begin(GL::TRIANGLE_STRIP)
67
67
  GL.Normal(0.0, -1.0, 0.0)
68
68
  GL.Vertex(xmax, ymin, zmax)
@@ -79,94 +79,94 @@ class GLTestWindow < FXMainWindow
79
79
  lightDiffuse = [ 0.9, 0.9, 0.9, 1.0]
80
80
  redMaterial = [ 1.0, 0.0, 0.0, 1.0]
81
81
  blueMaterial = [ 0.0, 0.0, 1.0, 1.0]
82
-
82
+
83
83
  width = @glcanvas.width.to_f
84
84
  height = @glcanvas.height.to_f
85
85
  aspect = width/height
86
-
86
+
87
87
  # Make context current
88
88
  @glcanvas.makeCurrent()
89
-
89
+
90
90
  GL.Viewport(0, 0, @glcanvas.width, @glcanvas.height)
91
-
91
+
92
92
  GL.ClearColor(1.0, 1.0, 1.0, 1.0)
93
93
  GL.Clear(GL::COLOR_BUFFER_BIT|GL::DEPTH_BUFFER_BIT)
94
94
  GL.Enable(GL::DEPTH_TEST)
95
-
95
+
96
96
  GL.Disable(GL::DITHER)
97
-
97
+
98
98
  GL.MatrixMode(GL::PROJECTION)
99
99
  GL.LoadIdentity()
100
100
  GLU.Perspective(30.0, aspect, 1.0, 100.0)
101
-
101
+
102
102
  GL.MatrixMode(GL::MODELVIEW)
103
103
  GL.LoadIdentity()
104
104
  GLU.LookAt(5.0, 10.0, 15.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)
105
-
105
+
106
106
  GL.ShadeModel(GL::SMOOTH)
107
107
  GL.Light(GL::LIGHT0, GL::POSITION, lightPosition)
108
108
  GL.Light(GL::LIGHT0, GL::AMBIENT, lightAmbient)
109
109
  GL.Light(GL::LIGHT0, GL::DIFFUSE, lightDiffuse)
110
110
  GL.Enable(GL::LIGHT0)
111
111
  GL.Enable(GL::LIGHTING)
112
-
112
+
113
113
  GL.Material(GL::FRONT, GL::AMBIENT, blueMaterial)
114
114
  GL.Material(GL::FRONT, GL::DIFFUSE, blueMaterial)
115
-
115
+
116
116
  GL.PushMatrix()
117
117
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
118
118
  drawBox(-1, -1, -1, 1, 1, 1)
119
-
119
+
120
120
  GL.Material(GL::FRONT, GL::AMBIENT, redMaterial)
121
121
  GL.Material(GL::FRONT, GL::DIFFUSE, redMaterial)
122
-
122
+
123
123
  GL.PushMatrix()
124
124
  GL.Translated(0.0, 1.75, 0.0)
125
125
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
126
126
  drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5)
127
127
  GL.PopMatrix()
128
-
128
+
129
129
  GL.PushMatrix()
130
130
  GL.Translated(0.0, -1.75, 0.0)
131
131
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
132
132
  drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5)
133
133
  GL.PopMatrix()
134
-
134
+
135
135
  GL.PushMatrix()
136
136
  GL.Rotated(90.0, 1.0, 0.0, 0.0)
137
137
  GL.Translated(0.0, 1.75, 0.0)
138
138
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
139
139
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
140
140
  GL.PopMatrix()
141
-
141
+
142
142
  GL.PushMatrix()
143
143
  GL.Rotated(90.0, -1.0, 0.0, 0.0)
144
144
  GL.Translated(0.0,1.75,0.0)
145
145
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
146
146
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
147
147
  GL.PopMatrix()
148
-
148
+
149
149
  GL.PushMatrix()
150
150
  GL.Rotated(90.0, 0.0, 0.0, 1.0)
151
151
  GL.Translated(0.0,1.75,0.0)
152
152
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
153
153
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
154
154
  GL.PopMatrix()
155
-
155
+
156
156
  GL.PushMatrix()
157
157
  GL.Rotated(90.0, 0.0, 0.0, -1.0)
158
158
  GL.Translated(0.0,1.75,0.0)
159
159
  GL.Rotated(@angle, 0.0, 1.0, 0.0)
160
160
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
161
161
  GL.PopMatrix()
162
-
162
+
163
163
  GL.PopMatrix()
164
-
164
+
165
165
  # Swap if it is double-buffered
166
166
  if @glvisual.isDoubleBuffer
167
167
  @glcanvas.swapBuffers
168
168
  end
169
-
169
+
170
170
  # Make context non-current
171
171
  @glcanvas.makeNonCurrent
172
172
  end
@@ -185,23 +185,23 @@ class GLTestWindow < FXMainWindow
185
185
  LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT)
186
186
  glcanvasFrame.padLeft, glcanvasFrame.padRight = 10, 10
187
187
  glcanvasFrame.padTop, glcanvasFrame.padBottom = 10, 10
188
-
188
+
189
189
  # Label above the glcanvas
190
190
  FXLabel.new(glcanvasFrame, "OpenGL Canvas Frame", nil,
191
191
  JUSTIFY_CENTER_X|LAYOUT_FILL_X)
192
-
192
+
193
193
  # Horizontal divider line
194
194
  FXHorizontalSeparator.new(glcanvasFrame, SEPARATOR_GROOVE|LAYOUT_FILL_X)
195
-
195
+
196
196
  # Drawing glcanvas
197
197
  glpanel = FXVerticalFrame.new(glcanvasFrame, (FRAME_SUNKEN|FRAME_THICK|
198
198
  LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT))
199
199
  glpanel.padLeft, glpanel.padRight = 0, 0
200
200
  glpanel.padTop, glpanel.padBottom = 0, 0
201
-
201
+
202
202
  # A visual to draw OpenGL
203
203
  @glvisual = FXGLVisual.new(getApp(), VISUAL_DOUBLEBUFFER)
204
-
204
+
205
205
  # Drawing glcanvas
206
206
  @glcanvas = FXGLCanvas.new(glpanel, @glvisual, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT)
207
207
  @glcanvas.connect(SEL_PAINT) { drawScene }
@@ -211,19 +211,19 @@ class GLTestWindow < FXMainWindow
211
211
  @glcanvas.makeNonCurrent
212
212
  end
213
213
  end
214
-
214
+
215
215
  # Right pane for the buttons
216
216
  buttonFrame = FXVerticalFrame.new(frame, LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT)
217
217
  buttonFrame.padLeft, buttonFrame.padRight = 10, 10
218
218
  buttonFrame.padTop, buttonFrame.padBottom = 10, 10
219
-
219
+
220
220
  # Label above the buttons
221
221
  FXLabel.new(buttonFrame, "Button Frame", nil,
222
222
  JUSTIFY_CENTER_X|LAYOUT_FILL_X)
223
-
223
+
224
224
  # Horizontal divider line
225
225
  FXHorizontalSeparator.new(buttonFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X)
226
-
226
+
227
227
  # Spin according to timer
228
228
  spinTimerBtn = FXButton.new(buttonFrame, "Spin &Timer\tSpin using interval timers\nNote the app blocks until the interal has elapsed...",nil,nil,0,FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT)
229
229
  spinTimerBtn.padLeft, spinTimerBtn.padRight = 10, 10
@@ -262,7 +262,7 @@ class GLTestWindow < FXMainWindow
262
262
  spinChoreBtn.connect(SEL_UPDATE) do |sender, sel, ptr|
263
263
  @spinning ? sender.disable : sender.enable
264
264
  end
265
-
265
+
266
266
  # Stop spinning
267
267
  stopBtn = FXButton.new(buttonFrame,
268
268
  "&Stop Spin\tStop this mad spinning, I'm getting dizzy",
@@ -283,17 +283,17 @@ class GLTestWindow < FXMainWindow
283
283
  stopBtn.connect(SEL_UPDATE) do |sender, sel, ptr|
284
284
  @spinning ? sender.enable : sender.disable
285
285
  end
286
-
286
+
287
287
  # Exit button
288
288
  exitBtn = FXButton.new(buttonFrame, "&Exit\tExit the application", nil,
289
289
  getApp(), FXApp::ID_QUIT,
290
290
  FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT)
291
291
  exitBtn.padLeft, exitBtn.padRight = 10, 10
292
292
  exitBtn.padTop, exitBtn.padBottom = 5, 5
293
-
293
+
294
294
  # Make a tooltip
295
295
  FXToolTip.new(getApp())
296
-
296
+
297
297
  # Initialize private variables
298
298
  @spinning = false
299
299
  @chore = nil
@@ -311,12 +311,12 @@ end
311
311
  if __FILE__ == $0
312
312
  # Construct the application
313
313
  application = FXApp.new("GLTest", "FoxTest")
314
-
314
+
315
315
  # To ensure that the chores-based spin will run as fast as possible,
316
316
  # we can disable the chore in FXRuby's event loop that tries to schedule
317
317
  # other threads. This is OK for this program because there aren't any
318
318
  # other Ruby threads running.
319
-
319
+
320
320
  application.disableThreads
321
321
 
322
322
  # Construct the main window
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