fxruby 1.6.22.pre2 → 1.6.22.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (475) hide show
  1. data/History.txt +1 -1
  2. data/README.txt +10 -10
  3. data/Rakefile +3 -2
  4. data/doap.rdf +2 -2
  5. data/examples/babelfish.rb +2 -2
  6. data/examples/bounce.rb +20 -20
  7. data/examples/charts.rb +2 -2
  8. data/examples/custom_table_item.rb +3 -3
  9. data/examples/datatarget.rb +2 -2
  10. data/examples/dctest.rb +51 -51
  11. data/examples/dialog.rb +14 -14
  12. data/examples/dilbert.rb +4 -4
  13. data/examples/dirlist.rb +6 -6
  14. data/examples/dragdrop.rb +7 -7
  15. data/examples/dragsource.rb +6 -6
  16. data/examples/dropsite.rb +5 -5
  17. data/examples/foursplit.rb +6 -6
  18. data/examples/gltest.rb +40 -40
  19. data/examples/glviewer.rb +16 -16
  20. data/examples/groupbox.rb +41 -41
  21. data/examples/header.rb +6 -6
  22. data/examples/hello2.rb +2 -2
  23. data/examples/iconlist.rb +10 -10
  24. data/examples/image.rb +26 -26
  25. data/examples/imageviewer.rb +31 -31
  26. data/examples/inputs.rb +2 -2
  27. data/examples/mditest.rb +12 -12
  28. data/examples/pig.rb +8 -8
  29. data/examples/raabrowser.rb +5 -5
  30. data/examples/ratio.rb +9 -9
  31. data/examples/rulerview.rb +2 -2
  32. data/examples/scintilla-test.rb +6 -6
  33. data/examples/scribble-orig.rb +3 -3
  34. data/examples/scribble.rb +3 -3
  35. data/examples/shutter.rb +6 -6
  36. data/examples/splitter.rb +15 -15
  37. data/examples/styledtext.rb +10 -10
  38. data/examples/tabbook.rb +14 -14
  39. data/examples/table.rb +21 -21
  40. data/examples/textedit/helpwindow.rb +6 -6
  41. data/examples/textedit/textedit.rb +72 -72
  42. data/ext/fox16/FXRuby.cpp +48 -5
  43. data/ext/fox16/core_wrap.cpp +1 -1
  44. data/ext/fox16/iconlist_wrap.cpp +1 -1
  45. data/ext/fox16/icons_wrap.cpp +1 -1
  46. data/ext/fox16/include/FXMemoryBuffer.h +3 -3
  47. data/ext/fox16/include/FXRbApp.h +1 -1
  48. data/ext/fox16/include/FXRbBitmap.h +1 -1
  49. data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
  50. data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
  51. data/ext/fox16/include/FXRbDCPrint.h +1 -1
  52. data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
  53. data/ext/fox16/include/FXRbDCWindow.h +1 -1
  54. data/ext/fox16/include/FXRbDockBar.h +1 -1
  55. data/ext/fox16/include/FXRbFileDict.h +2 -2
  56. data/ext/fox16/include/FXRbFoldingList.h +1 -1
  57. data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
  58. data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
  59. data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
  60. data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
  61. data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
  62. data/ext/fox16/include/FXRbImageFrame.h +2 -2
  63. data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
  64. data/ext/fox16/include/FXRbListVirtuals.h +4 -4
  65. data/ext/fox16/include/FXRbMenuBar.h +1 -1
  66. data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
  67. data/ext/fox16/include/FXRbRecentFiles.h +1 -1
  68. data/ext/fox16/include/FXRbRuler.h +3 -3
  69. data/ext/fox16/include/FXRbRulerView.h +3 -3
  70. data/ext/fox16/include/FXRbScintilla.h +1 -1
  71. data/ext/fox16/include/FXRbSeparator.h +2 -2
  72. data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
  73. data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
  74. data/ext/fox16/include/FXRbText.h +2 -2
  75. data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
  76. data/ext/fox16/include/FXRbToolBar.h +1 -1
  77. data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
  78. data/ext/fox16/include/FXRbToolBarTab.h +1 -1
  79. data/ext/fox16/include/FXRbTreeList.h +1 -1
  80. data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
  81. data/ext/fox16/include/FXRbWindow.h +3 -3
  82. data/ext/fox16/include/FXRbWizard.h +2 -2
  83. data/ext/fox16/include/FXRuby.h +8 -4
  84. data/ext/fox16/librb.c +12 -12
  85. data/ext/fox16/list_wrap.cpp +1 -1
  86. data/ext/fox16/make_impl.rb +5 -5
  87. data/ext/fox16/markfuncs.cpp +228 -220
  88. data/ext/fox16/scintilla_wrap.cpp +1 -1
  89. data/ext/fox16/treelist_wrap.cpp +4 -4
  90. data/ext/fox16/ui_wrap.cpp +2 -2
  91. data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
  92. data/lib/fox16/accel_table.rb +1 -1
  93. data/lib/fox16/aliases.rb +3 -3
  94. data/lib/fox16/calendar.rb +21 -21
  95. data/lib/fox16/chore.rb +2 -2
  96. data/lib/fox16/core.rb +70 -70
  97. data/lib/fox16/dict.rb +1 -1
  98. data/lib/fox16/execute_nonmodal.rb +1 -1
  99. data/lib/fox16/glgroup.rb +16 -16
  100. data/lib/fox16/glshapes.rb +26 -26
  101. data/lib/fox16/input.rb +4 -4
  102. data/lib/fox16/irb.rb +2 -2
  103. data/lib/fox16/iterators.rb +2 -2
  104. data/lib/fox16/keys.rb +34 -34
  105. data/lib/fox16/kwargs.rb +927 -927
  106. data/lib/fox16/pseudokeyboard.rb +1 -1
  107. data/lib/fox16/pseudomouse.rb +1 -1
  108. data/lib/fox16/responder2.rb +4 -4
  109. data/lib/fox16/scintilla.rb +2 -2
  110. data/lib/fox16/signal.rb +4 -4
  111. data/lib/fox16/splashscreen.rb +3 -3
  112. data/lib/fox16/timeout.rb +3 -3
  113. data/lib/fox16/undolist.rb +9 -9
  114. data/lib/fox16/version.rb +1 -1
  115. data/rdoc-sources/FX4Splitter.rb +9 -9
  116. data/rdoc-sources/FX7Segment.rb +9 -9
  117. data/rdoc-sources/FXAccelTable.rb +1 -1
  118. data/rdoc-sources/FXApp.rb +50 -50
  119. data/rdoc-sources/FXBMPIcon.rb +3 -3
  120. data/rdoc-sources/FXBMPImage.rb +2 -2
  121. data/rdoc-sources/FXBitmap.rb +11 -11
  122. data/rdoc-sources/FXBitmapFrame.rb +5 -5
  123. data/rdoc-sources/FXBitmapView.rb +2 -2
  124. data/rdoc-sources/FXButton.rb +2 -2
  125. data/rdoc-sources/FXCheckButton.rb +5 -5
  126. data/rdoc-sources/FXColorBar.rb +5 -5
  127. data/rdoc-sources/FXColorDialog.rb +2 -2
  128. data/rdoc-sources/FXColorList.rb +2 -2
  129. data/rdoc-sources/FXColorRing.rb +8 -8
  130. data/rdoc-sources/FXColorSelector.rb +4 -4
  131. data/rdoc-sources/FXColorWell.rb +4 -4
  132. data/rdoc-sources/FXColorWheel.rb +6 -6
  133. data/rdoc-sources/FXComboBox.rb +17 -17
  134. data/rdoc-sources/FXComposite.rb +2 -2
  135. data/rdoc-sources/FXCursor.rb +7 -7
  136. data/rdoc-sources/FXDC.rb +67 -67
  137. data/rdoc-sources/FXDCPrint.rb +22 -22
  138. data/rdoc-sources/FXDCWindow.rb +1 -1
  139. data/rdoc-sources/FXDataTarget.rb +2 -2
  140. data/rdoc-sources/FXDebugTarget.rb +1 -1
  141. data/rdoc-sources/FXDelegator.rb +1 -1
  142. data/rdoc-sources/FXDial.rb +8 -8
  143. data/rdoc-sources/FXDict.rb +7 -7
  144. data/rdoc-sources/FXDirBox.rb +3 -3
  145. data/rdoc-sources/FXDirDialog.rb +7 -7
  146. data/rdoc-sources/FXDirList.rb +21 -21
  147. data/rdoc-sources/FXDirSelector.rb +8 -8
  148. data/rdoc-sources/FXDockBar.rb +5 -5
  149. data/rdoc-sources/FXDockHandler.rb +3 -3
  150. data/rdoc-sources/FXDockSite.rb +2 -2
  151. data/rdoc-sources/FXDockTitle.rb +3 -3
  152. data/rdoc-sources/FXDocument.rb +3 -3
  153. data/rdoc-sources/FXDragCorner.rb +3 -3
  154. data/rdoc-sources/FXDrawable.rb +3 -3
  155. data/rdoc-sources/FXDriveBox.rb +4 -4
  156. data/rdoc-sources/FXExtentd.rb +2 -2
  157. data/rdoc-sources/FXExtentf.rb +2 -2
  158. data/rdoc-sources/FXFileDialog.rb +21 -21
  159. data/rdoc-sources/FXFileDict.rb +17 -17
  160. data/rdoc-sources/FXFileList.rb +32 -32
  161. data/rdoc-sources/FXFileSelector.rb +20 -20
  162. data/rdoc-sources/FXFileStream.rb +1 -1
  163. data/rdoc-sources/FXFoldingList.rb +53 -53
  164. data/rdoc-sources/FXFont.rb +38 -38
  165. data/rdoc-sources/FXFrame.rb +11 -11
  166. data/rdoc-sources/FXGIFCursor.rb +3 -3
  167. data/rdoc-sources/FXGLCanvas.rb +2 -2
  168. data/rdoc-sources/FXGLContext.rb +6 -6
  169. data/rdoc-sources/FXGLObject.rb +6 -6
  170. data/rdoc-sources/FXGLShape.rb +3 -3
  171. data/rdoc-sources/FXGLViewer.rb +54 -54
  172. data/rdoc-sources/FXGLVisual.rb +13 -13
  173. data/rdoc-sources/FXGradientBar.rb +15 -15
  174. data/rdoc-sources/FXGroupBox.rb +4 -4
  175. data/rdoc-sources/FXHeader.rb +44 -44
  176. data/rdoc-sources/FXICOIcon.rb +1 -1
  177. data/rdoc-sources/FXICOImage.rb +1 -1
  178. data/rdoc-sources/FXIconDict.rb +1 -1
  179. data/rdoc-sources/FXIconList.rb +69 -69
  180. data/rdoc-sources/FXIconSource.rb +2 -2
  181. data/rdoc-sources/FXId.rb +1 -1
  182. data/rdoc-sources/FXImage.rb +11 -11
  183. data/rdoc-sources/FXImageFrame.rb +3 -3
  184. data/rdoc-sources/FXImageView.rb +2 -2
  185. data/rdoc-sources/FXInputDialog.rb +6 -6
  186. data/rdoc-sources/FXJPGIcon.rb +3 -3
  187. data/rdoc-sources/FXJPGImage.rb +2 -2
  188. data/rdoc-sources/FXKnob.rb +9 -9
  189. data/rdoc-sources/FXLabel.rb +8 -8
  190. data/rdoc-sources/FXList.rb +28 -28
  191. data/rdoc-sources/FXListBox.rb +21 -21
  192. data/rdoc-sources/FXMDIChild.rb +11 -11
  193. data/rdoc-sources/FXMDIClient.rb +5 -5
  194. data/rdoc-sources/FXMatrix.rb +6 -6
  195. data/rdoc-sources/FXMemoryBuffer.rb +1 -1
  196. data/rdoc-sources/FXMemoryStream.rb +3 -3
  197. data/rdoc-sources/FXMenuBar.rb +1 -1
  198. data/rdoc-sources/FXMenuButton.rb +7 -7
  199. data/rdoc-sources/FXMenuCaption.rb +10 -10
  200. data/rdoc-sources/FXMenuCheck.rb +1 -1
  201. data/rdoc-sources/FXMenuRadio.rb +1 -1
  202. data/rdoc-sources/FXMenuSeparator.rb +1 -1
  203. data/rdoc-sources/FXMessageBox.rb +3 -3
  204. data/rdoc-sources/FXOptionMenu.rb +9 -9
  205. data/rdoc-sources/FXPCXIcon.rb +2 -2
  206. data/rdoc-sources/FXPCXImage.rb +1 -1
  207. data/rdoc-sources/FXPNGIcon.rb +3 -3
  208. data/rdoc-sources/FXPNGImage.rb +1 -1
  209. data/rdoc-sources/FXPPMIcon.rb +2 -2
  210. data/rdoc-sources/FXPPMImage.rb +1 -1
  211. data/rdoc-sources/FXPacker.rb +13 -13
  212. data/rdoc-sources/FXPopup.rb +11 -11
  213. data/rdoc-sources/FXProgressBar.rb +7 -7
  214. data/rdoc-sources/FXProgressDialog.rb +3 -3
  215. data/rdoc-sources/FXQuatd.rb +17 -17
  216. data/rdoc-sources/FXQuatf.rb +18 -18
  217. data/rdoc-sources/FXRGBIcon.rb +3 -3
  218. data/rdoc-sources/FXRGBImage.rb +1 -1
  219. data/rdoc-sources/FXRadioButton.rb +4 -4
  220. data/rdoc-sources/FXRanged.rb +1 -1
  221. data/rdoc-sources/FXRangef.rb +1 -1
  222. data/rdoc-sources/FXRealSlider.rb +7 -7
  223. data/rdoc-sources/FXRealSpinner.rb +11 -11
  224. data/rdoc-sources/FXRecentFiles.rb +8 -8
  225. data/rdoc-sources/FXRectangle.rb +12 -12
  226. data/rdoc-sources/FXRegion.rb +15 -15
  227. data/rdoc-sources/FXRegistry.rb +4 -4
  228. data/rdoc-sources/FXReplaceDialog.rb +3 -3
  229. data/rdoc-sources/FXRuler.rb +18 -18
  230. data/rdoc-sources/FXRulerView.rb +38 -38
  231. data/rdoc-sources/FXScintilla.rb +16 -16
  232. data/rdoc-sources/FXScrollArea.rb +9 -9
  233. data/rdoc-sources/FXScrollBar.rb +8 -8
  234. data/rdoc-sources/FXScrollPane.rb +1 -1
  235. data/rdoc-sources/FXScrollWindow.rb +5 -5
  236. data/rdoc-sources/FXSeparator.rb +1 -1
  237. data/rdoc-sources/FXSettings.rb +1 -1
  238. data/rdoc-sources/FXShutter.rb +3 -3
  239. data/rdoc-sources/FXSize.rb +4 -4
  240. data/rdoc-sources/FXSlider.rb +7 -7
  241. data/rdoc-sources/FXSphered.rb +21 -21
  242. data/rdoc-sources/FXSpheref.rb +20 -20
  243. data/rdoc-sources/FXSpinner.rb +12 -12
  244. data/rdoc-sources/FXSplashWindow.rb +1 -1
  245. data/rdoc-sources/FXSplitter.rb +6 -6
  246. data/rdoc-sources/FXSpring.rb +2 -2
  247. data/rdoc-sources/FXStatusBar.rb +4 -4
  248. data/rdoc-sources/FXStatusLine.rb +5 -5
  249. data/rdoc-sources/FXStream.rb +8 -8
  250. data/rdoc-sources/FXStringDict.rb +5 -5
  251. data/rdoc-sources/FXSwitcher.rb +2 -2
  252. data/rdoc-sources/FXTGAIcon.rb +3 -3
  253. data/rdoc-sources/FXTGAImage.rb +1 -1
  254. data/rdoc-sources/FXTIFIcon.rb +2 -2
  255. data/rdoc-sources/FXTIFImage.rb +2 -2
  256. data/rdoc-sources/FXTabBar.rb +2 -2
  257. data/rdoc-sources/FXTable.rb +131 -131
  258. data/rdoc-sources/FXText.rb +48 -48
  259. data/rdoc-sources/FXTextField.rb +9 -9
  260. data/rdoc-sources/FXToolBar.rb +1 -1
  261. data/rdoc-sources/FXToolBarGrip.rb +1 -1
  262. data/rdoc-sources/FXToolBarShell.rb +7 -7
  263. data/rdoc-sources/FXToolBarTab.rb +3 -3
  264. data/rdoc-sources/FXToolTip.rb +1 -1
  265. data/rdoc-sources/FXTopWindow.rb +17 -17
  266. data/rdoc-sources/FXTranslator.rb +5 -5
  267. data/rdoc-sources/FXTreeList.rb +50 -50
  268. data/rdoc-sources/FXTreeListBox.rb +16 -16
  269. data/rdoc-sources/FXVec2d.rb +5 -5
  270. data/rdoc-sources/FXVec2f.rb +5 -5
  271. data/rdoc-sources/FXVec3d.rb +8 -8
  272. data/rdoc-sources/FXVec3f.rb +8 -8
  273. data/rdoc-sources/FXVec4d.rb +8 -8
  274. data/rdoc-sources/FXVec4f.rb +8 -8
  275. data/rdoc-sources/FXVisual.rb +3 -3
  276. data/rdoc-sources/FXWindow.rb +99 -99
  277. data/rdoc-sources/FXWizard.rb +8 -8
  278. data/rdoc-sources/FXXBMIcon.rb +2 -2
  279. data/rdoc-sources/FXXBMImage.rb +1 -1
  280. data/rdoc-sources/FXXPMIcon.rb +2 -2
  281. data/rdoc-sources/FXXPMImage.rb +1 -1
  282. data/rdoc-sources/fxdefs.rb +17 -17
  283. data/scripts/generate_kwargs_lib.rb +22 -22
  284. data/scripts/iface.rb +1 -1
  285. data/swig-interfaces/FX4Splitter.i +5 -5
  286. data/swig-interfaces/FX7Segment.i +5 -5
  287. data/swig-interfaces/FXApp.i +10 -10
  288. data/swig-interfaces/FXBMPIcon.i +2 -2
  289. data/swig-interfaces/FXBitmap.i +3 -3
  290. data/swig-interfaces/FXBitmapFrame.i +1 -1
  291. data/swig-interfaces/FXBitmapView.i +1 -1
  292. data/swig-interfaces/FXCanvas.i +1 -1
  293. data/swig-interfaces/FXCheckButton.i +2 -2
  294. data/swig-interfaces/FXChoiceBox.i +2 -2
  295. data/swig-interfaces/FXColorBar.i +7 -7
  296. data/swig-interfaces/FXColorList.i +5 -5
  297. data/swig-interfaces/FXColorWell.i +1 -1
  298. data/swig-interfaces/FXColorWheel.i +6 -6
  299. data/swig-interfaces/FXComboBox.i +4 -4
  300. data/swig-interfaces/FXCursor.i +4 -4
  301. data/swig-interfaces/FXDC.i +23 -23
  302. data/swig-interfaces/FXDCPrint.i +5 -5
  303. data/swig-interfaces/FXDCWindow.i +8 -8
  304. data/swig-interfaces/FXDataTarget.i +5 -5
  305. data/swig-interfaces/FXDebugTarget.i +1 -1
  306. data/swig-interfaces/FXDelegator.i +3 -3
  307. data/swig-interfaces/FXDial.i +8 -8
  308. data/swig-interfaces/FXDialogBox.i +3 -3
  309. data/swig-interfaces/FXDict.i +14 -14
  310. data/swig-interfaces/FXDirBox.i +1 -1
  311. data/swig-interfaces/FXDirDialog.i +2 -2
  312. data/swig-interfaces/FXDirList.i +16 -16
  313. data/swig-interfaces/FXDirSelector.i +2 -2
  314. data/swig-interfaces/FXDockBar.i +1 -1
  315. data/swig-interfaces/FXDockHandler.i +1 -1
  316. data/swig-interfaces/FXDockSite.i +1 -1
  317. data/swig-interfaces/FXDockTitle.i +1 -1
  318. data/swig-interfaces/FXDocument.i +1 -1
  319. data/swig-interfaces/FXDragCorner.i +3 -3
  320. data/swig-interfaces/FXDriveBox.i +1 -1
  321. data/swig-interfaces/FXFileDialog.i +8 -8
  322. data/swig-interfaces/FXFileDict.i +2 -2
  323. data/swig-interfaces/FXFileList.i +11 -11
  324. data/swig-interfaces/FXFileSelector.i +4 -4
  325. data/swig-interfaces/FXFoldingList.i +7 -7
  326. data/swig-interfaces/FXFont.i +20 -20
  327. data/swig-interfaces/FXFrame.i +3 -3
  328. data/swig-interfaces/FXGLCanvas.i +3 -3
  329. data/swig-interfaces/FXGLContext.i +7 -7
  330. data/swig-interfaces/FXGLObject.i +1 -1
  331. data/swig-interfaces/FXGLShape.i +6 -6
  332. data/swig-interfaces/FXGLViewer.i +40 -40
  333. data/swig-interfaces/FXGLVisual.i +2 -2
  334. data/swig-interfaces/FXGradientBar.i +4 -4
  335. data/swig-interfaces/FXGroupBox.i +3 -3
  336. data/swig-interfaces/FXHeader.i +7 -7
  337. data/swig-interfaces/FXIcon.i +4 -4
  338. data/swig-interfaces/FXIconDict.i +1 -1
  339. data/swig-interfaces/FXIconList.i +46 -46
  340. data/swig-interfaces/FXImage.i +2 -2
  341. data/swig-interfaces/FXImageView.i +1 -1
  342. data/swig-interfaces/FXInputDialog.i +3 -3
  343. data/swig-interfaces/FXJPGIcon.i +3 -3
  344. data/swig-interfaces/FXJPGImage.i +2 -2
  345. data/swig-interfaces/FXKnob.i +2 -2
  346. data/swig-interfaces/FXLabel.i +2 -2
  347. data/swig-interfaces/FXList.i +35 -35
  348. data/swig-interfaces/FXListBox.i +5 -5
  349. data/swig-interfaces/FXMDIButton.i +5 -5
  350. data/swig-interfaces/FXMDIChild.i +12 -12
  351. data/swig-interfaces/FXMDIClient.i +2 -2
  352. data/swig-interfaces/FXMat4d.i +2 -2
  353. data/swig-interfaces/FXMat4f.i +5 -5
  354. data/swig-interfaces/FXMatrix.i +12 -12
  355. data/swig-interfaces/FXMemoryBuffer.i +4 -4
  356. data/swig-interfaces/FXMenuBar.i +3 -3
  357. data/swig-interfaces/FXMenuButton.i +7 -7
  358. data/swig-interfaces/FXMenuCaption.i +4 -4
  359. data/swig-interfaces/FXMenuCommand.i +1 -1
  360. data/swig-interfaces/FXMenuPane.i +1 -1
  361. data/swig-interfaces/FXMenuRadio.i +1 -1
  362. data/swig-interfaces/FXMenuSeparator.i +1 -1
  363. data/swig-interfaces/FXMessageBox.i +1 -1
  364. data/swig-interfaces/FXOptionMenu.i +6 -6
  365. data/swig-interfaces/FXPNGIcon.i +2 -2
  366. data/swig-interfaces/FXPPMIcon.i +2 -2
  367. data/swig-interfaces/FXPacker.i +6 -6
  368. data/swig-interfaces/FXPopup.i +13 -13
  369. data/swig-interfaces/FXProgressBar.i +12 -12
  370. data/swig-interfaces/FXProgressDialog.i +5 -5
  371. data/swig-interfaces/FXQuatd.i +7 -7
  372. data/swig-interfaces/FXQuatf.i +1 -1
  373. data/swig-interfaces/FXRadioButton.i +4 -4
  374. data/swig-interfaces/FXRanged.i +4 -4
  375. data/swig-interfaces/FXRangef.i +5 -5
  376. data/swig-interfaces/FXRealSlider.i +10 -10
  377. data/swig-interfaces/FXRealSpinner.i +17 -17
  378. data/swig-interfaces/FXRecentFiles.i +1 -1
  379. data/swig-interfaces/FXRegion.i +4 -4
  380. data/swig-interfaces/FXRegistry.i +3 -3
  381. data/swig-interfaces/FXReplaceDialog.i +1 -1
  382. data/swig-interfaces/FXScintilla.i +3 -3
  383. data/swig-interfaces/FXScrollArea.i +7 -7
  384. data/swig-interfaces/FXScrollBar.i +3 -3
  385. data/swig-interfaces/FXScrollWindow.i +6 -6
  386. data/swig-interfaces/FXSearchDialog.i +1 -1
  387. data/swig-interfaces/FXSeparator.i +3 -3
  388. data/swig-interfaces/FXSettings.i +3 -3
  389. data/swig-interfaces/FXShell.i +1 -1
  390. data/swig-interfaces/FXSlider.i +11 -11
  391. data/swig-interfaces/FXSphered.i +1 -1
  392. data/swig-interfaces/FXSpheref.i +1 -1
  393. data/swig-interfaces/FXSpinner.i +15 -15
  394. data/swig-interfaces/FXSplitter.i +6 -6
  395. data/swig-interfaces/FXStatusBar.i +4 -4
  396. data/swig-interfaces/FXStatusLine.i +5 -5
  397. data/swig-interfaces/FXStream.i +1 -1
  398. data/swig-interfaces/FXSwitcher.i +5 -5
  399. data/swig-interfaces/FXTabBar.i +2 -2
  400. data/swig-interfaces/FXTabBook.i +1 -1
  401. data/swig-interfaces/FXTabItem.i +4 -4
  402. data/swig-interfaces/FXTable.i +37 -37
  403. data/swig-interfaces/FXText.i +13 -13
  404. data/swig-interfaces/FXTextField.i +1 -1
  405. data/swig-interfaces/FXToggleButton.i +6 -6
  406. data/swig-interfaces/FXToolBar.i +4 -4
  407. data/swig-interfaces/FXToolBarGrip.i +3 -3
  408. data/swig-interfaces/FXToolBarShell.i +3 -3
  409. data/swig-interfaces/FXToolBarTab.i +5 -5
  410. data/swig-interfaces/FXToolTip.i +1 -1
  411. data/swig-interfaces/FXTopWindow.i +10 -10
  412. data/swig-interfaces/FXTreeList.i +28 -28
  413. data/swig-interfaces/FXTreeListBox.i +36 -36
  414. data/swig-interfaces/FXVec3d.i +2 -2
  415. data/swig-interfaces/FXVec3f.i +2 -2
  416. data/swig-interfaces/FXVec4d.i +1 -1
  417. data/swig-interfaces/FXVec4f.i +9 -9
  418. data/swig-interfaces/FXVerticalFrame.i +1 -1
  419. data/swig-interfaces/FXVisual.i +1 -1
  420. data/swig-interfaces/FXWindow.i +46 -46
  421. data/swig-interfaces/FXXPMIcon.i +1 -1
  422. data/swig-interfaces/FXXPMImage.i +1 -1
  423. data/swig-interfaces/exceptions.i +1 -1
  424. data/swig-interfaces/freefuncs.i +1 -1
  425. data/swig-interfaces/fxdefs.i +13 -13
  426. data/swig-interfaces/macros.i +79 -79
  427. data/test/TC_FXAccelTable.rb +3 -3
  428. data/test/TC_FXButton.rb +9 -9
  429. data/test/TC_FXCheckButton.rb +4 -4
  430. data/test/TC_FXComboBox.rb +1 -1
  431. data/test/TC_FXDC.rb +42 -42
  432. data/test/TC_FXDialogBox.rb +1 -1
  433. data/test/TC_FXExtentd.rb +2 -2
  434. data/test/TC_FXExtentf.rb +2 -2
  435. data/test/TC_FXFileAssoc.rb +5 -5
  436. data/test/TC_FXFileStream.rb +5 -5
  437. data/test/TC_FXFoldingList.rb +3 -3
  438. data/test/TC_FXFont.rb +3 -3
  439. data/test/TC_FXGLGroup.rb +1 -1
  440. data/test/TC_FXHeader.rb +3 -3
  441. data/test/TC_FXIconDict.rb +5 -5
  442. data/test/TC_FXIconList.rb +12 -12
  443. data/test/TC_FXImage.rb +16 -16
  444. data/test/TC_FXList.rb +5 -5
  445. data/test/TC_FXListBox.rb +1 -1
  446. data/test/TC_FXMainWindow.rb +2 -2
  447. data/test/TC_FXMat4f.rb +33 -33
  448. data/test/TC_FXMaterial.rb +5 -5
  449. data/test/TC_FXMemoryStream.rb +2 -2
  450. data/test/TC_FXMenuCheck.rb +5 -5
  451. data/test/TC_FXMessageBox.rb +3 -3
  452. data/test/TC_FXPoint.rb +1 -1
  453. data/test/TC_FXRadioButton.rb +4 -4
  454. data/test/TC_FXRanged.rb +3 -3
  455. data/test/TC_FXRangef.rb +3 -3
  456. data/test/TC_FXRegion.rb +1 -1
  457. data/test/TC_FXScrollArea.rb +1 -1
  458. data/test/TC_FXScrollWindow.rb +1 -1
  459. data/test/TC_FXSettings.rb +2 -2
  460. data/test/TC_FXShell.rb +2 -2
  461. data/test/TC_FXTopWindow.rb +2 -2
  462. data/test/TC_FXTreeList.rb +4 -4
  463. data/test/TC_FXTreeListBox.rb +3 -3
  464. data/test/TC_FXVec2d.rb +3 -3
  465. data/test/TC_FXVec2f.rb +3 -3
  466. data/test/TC_FXVec3d.rb +5 -5
  467. data/test/TC_FXVec3f.rb +5 -5
  468. data/test/TC_FXVec4f.rb +6 -6
  469. data/test/TC_Misc.rb +6 -2
  470. data/test/TS_All.rb +1 -17
  471. data/test/stress1.rb +5 -5
  472. data/test/stress2.rb +3 -3
  473. data/test/stress3.rb +12 -12
  474. data/test/testcase.rb +4 -4
  475. metadata +76 -76
data/lib/fox16/kwargs.rb CHANGED
@@ -7,7 +7,7 @@ module Fox
7
7
  alias old_initialize initialize
8
8
  def initialize(p, *args, &blk)
9
9
  argument_names = %w{opts x y width height}
10
- default_params = { :opts => FOURSPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
10
+ default_params = { :opts => FOURSPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
11
11
  params = {}
12
12
  params = args.pop if args.last.is_a? Hash
13
13
  if args.length > 0 && (args.first.nil? || args.first.is_a?(FXObject))
@@ -29,7 +29,7 @@ module Fox
29
29
  alias old_initialize initialize
30
30
  def initialize(p, *args, &blk)
31
31
  argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
32
- default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
32
+ default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
33
33
  params = {}
34
34
  params = args.pop if args.last.is_a? Hash
35
35
  if args.length > 0 && (args.first.nil? || args.first.is_a?(FXComposite))
@@ -54,16 +54,16 @@ module Fox
54
54
  end
55
55
  end
56
56
  end
57
-
57
+
58
58
  class FXFont
59
59
 
60
60
  alias old_initialize initialize
61
-
61
+
62
62
  def initialize(a, arg1, *args, &blk)
63
63
  if args.length > 0
64
64
  face, size = arg1, args[0]
65
65
  argument_names = %w{weight slant encoding setWidth hints}
66
- default_params = { :weight => FXFont::Normal, :slant => FXFont::Straight, :encoding => FONTENCODING_DEFAULT, :setWidth => FXFont::NonExpanded, :hints => 0 }
66
+ default_params = { :weight => FXFont::Normal, :slant => FXFont::Straight, :encoding => FONTENCODING_DEFAULT, :setWidth => FXFont::NonExpanded, :hints => 0 }
67
67
  params = {}
68
68
  params = args.pop if args.last.is_a? Hash
69
69
  args.each_with_index { |e, i| params[argument_names[i-1].intern] = e if i >= 1 }
@@ -78,10 +78,10 @@ module Fox
78
78
  class << self
79
79
  alias old_listFonts listFonts
80
80
  end
81
-
81
+
82
82
  def FXFont.listFonts(face, *args)
83
83
  argument_names = %w{weight slant setWidth encoding hints}
84
- default_params = { :weight => 0, :slant => 0, :setWidth => 0, :encoding => 0, :hints => 0 }
84
+ default_params = { :weight => 0, :slant => 0, :setWidth => 0, :encoding => 0, :hints => 0 }
85
85
  params = {}
86
86
  params = args.pop if args.last.is_a? Hash
87
87
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -91,7 +91,7 @@ module Fox
91
91
  end
92
92
 
93
93
  end
94
-
94
+
95
95
  class FXGLCanvas
96
96
  alias old_initialize initialize
97
97
  def initialize(parent, vis, *args, &blk)
@@ -135,7 +135,7 @@ module Fox
135
135
  end
136
136
  end
137
137
  end
138
-
138
+
139
139
  class FXMenuBar
140
140
  alias old_initialize initialize
141
141
  def initialize(p, *args, &blk)
@@ -170,7 +170,7 @@ module Fox
170
170
  alias old_initialize initialize
171
171
  def initialize(p, *args, &blk)
172
172
  argument_names = %w{opts x y width height}
173
- default_params = { :opts => SPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
173
+ default_params = { :opts => SPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
174
174
  params = {}
175
175
  params = args.pop if args.last.is_a? Hash
176
176
  if args.length > 0 && (args.first.nil? || args.first.is_a?(FXObject))
@@ -192,7 +192,7 @@ module Fox
192
192
  alias old_initialize initialize
193
193
  def initialize(p, *args, &blk)
194
194
  argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
195
- default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
195
+ default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
196
196
  params = {}
197
197
  params = args.pop if args.last.is_a? Hash
198
198
  if args.length > 0 && (args[0].nil? || args[0].is_a?(FXComposite))
@@ -217,7 +217,7 @@ module Fox
217
217
  end
218
218
  end
219
219
  end
220
-
220
+
221
221
  class FXWindow
222
222
  alias old_initialize initialize
223
223
  def initialize(p, *args, &blk)
@@ -236,11 +236,11 @@ module Fox
236
236
  end
237
237
  end
238
238
 
239
- class FXSpring
239
+ class FXMenuButton
240
240
  alias old_initialize initialize
241
- def initialize(p, *args, &blk)
242
- argument_names = %w{opts relw relh x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
243
- default_params = { :opts => 0, :relw => 0, :relh => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
241
+ def initialize(parent, text, *args, &blk)
242
+ argument_names = %w{icon popupMenu opts x y width height padLeft padRight padTop padBottom}
243
+ default_params = { :icon => nil, :popupMenu => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
244
244
  params = {}
245
245
  params = args.pop if args.last.is_a? Hash
246
246
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -250,103 +250,107 @@ module Fox
250
250
  end
251
251
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
252
252
  params = default_params.merge(params)
253
- old_initialize(p, params[:opts], params[:relw], params[:relh], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
253
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
254
254
  end
255
255
  end
256
256
 
257
- class FXTGAImage
257
+ class FXToolBarTab
258
258
  alias old_initialize initialize
259
- def initialize(a, *args, &blk)
260
- argument_names = %w{pix opts width height}
261
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
259
+ def initialize(p, *args, &blk)
260
+ argument_names = %w{target selector opts x y width height}
261
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
262
262
  params = {}
263
263
  params = args.pop if args.last.is_a? Hash
264
264
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
265
265
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
266
266
  params = default_params.merge(params)
267
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
267
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
268
268
  end
269
269
  end
270
270
 
271
- class FXColorItem
271
+ class FXBMPIcon
272
272
  alias old_initialize initialize
273
- def initialize(text, clr, *args, &blk)
274
- argument_names = %w{data}
275
- default_params = { :data => nil }
273
+ def initialize(a, *args, &blk)
274
+ argument_names = %w{pix clr opts width height}
275
+ default_params = { :pix => nil, :clr => FXRGB(192,192,192), :opts => 0, :width => 1, :height => 1 }
276
276
  params = {}
277
277
  params = args.pop if args.last.is_a? Hash
278
278
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
279
279
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
280
280
  params = default_params.merge(params)
281
- old_initialize(text, clr, params[:data], &blk)
281
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
282
282
  end
283
283
  end
284
284
 
285
- class FXColorList
285
+ class FXXBMIcon
286
286
  alias old_initialize initialize
287
- def initialize(p, *args, &blk)
288
- argument_names = %w{target selector opts x y width height}
289
- default_params = { :target => nil, :selector => 0, :opts => LIST_BROWSESELECT, :x => 0, :y => 0, :width => 0, :height => 0 }
287
+ def initialize(a, *args, &blk)
288
+ argument_names = %w{pixels mask clr opts width height}
289
+ default_params = { :pixels => nil, :mask => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
290
290
  params = {}
291
291
  params = args.pop if args.last.is_a? Hash
292
292
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
293
293
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
294
294
  params = default_params.merge(params)
295
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
295
+ old_initialize(a, params[:pixels], params[:mask], params[:clr], params[:opts], params[:width], params[:height], &blk)
296
296
  end
297
297
  end
298
298
 
299
- class FXApp
299
+ class FXMatrix
300
300
  alias old_initialize initialize
301
- def initialize(*args, &blk)
302
- argument_names = %w{appName vendorName}
303
- default_params = { :appName => "Application", :vendorName => "FoxDefault" }
301
+ def initialize(parent, *args, &blk)
302
+ argument_names = %w{n opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
303
+ default_params = { :n => 1, :opts => MATRIX_BY_ROWS, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
304
304
  params = {}
305
305
  params = args.pop if args.last.is_a? Hash
306
306
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
307
+ if params.key? :padding
308
+ value = params.delete(:padding)
309
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
310
+ end
307
311
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
308
312
  params = default_params.merge(params)
309
- old_initialize(params[:appName], params[:vendorName], &blk)
313
+ old_initialize(parent, params[:n], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
310
314
  end
311
315
  end
312
316
 
313
- class FXColorBar
317
+ class FXFontDialog
314
318
  alias old_initialize initialize
315
- def initialize(parent, *args, &blk)
316
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
317
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
319
+ def initialize(owner, name, *args, &blk)
320
+ argument_names = %w{opts x y width height}
321
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 600, :height => 380 }
318
322
  params = {}
319
323
  params = args.pop if args.last.is_a? Hash
320
324
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
321
- if params.key? :padding
322
- value = params.delete(:padding)
323
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
324
- end
325
325
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
326
326
  params = default_params.merge(params)
327
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
327
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
328
328
  end
329
329
  end
330
330
 
331
- class FXTreeItem
331
+ class FXTriStateButton
332
332
  alias old_initialize initialize
333
- def initialize(text, *args, &blk)
334
- argument_names = %w{openIcon closedIcon data}
335
- default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
333
+ def initialize(p, text1, text2, text3, *args, &blk)
334
+ argument_names = %w{icon1 icon2 icon3 target selector opts x y width height padLeft padRight padTop padBottom}
335
+ default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
336
336
  params = {}
337
337
  params = args.pop if args.last.is_a? Hash
338
338
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
339
+ if params.key? :padding
340
+ value = params.delete(:padding)
341
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
342
+ end
339
343
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
340
344
  params = default_params.merge(params)
341
- old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
345
+ old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
342
346
  end
343
347
  end
344
348
 
345
- class FXTreeList
349
+ class FXToolBarGrip
346
350
  alias old_initialize initialize
347
351
  def initialize(p, *args, &blk)
348
352
  argument_names = %w{target selector opts x y width height}
349
- default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
353
+ default_params = { :target => nil, :selector => 0, :opts => TOOLBARGRIP_SINGLE, :x => 0, :y => 0, :width => 0, :height => 0 }
350
354
  params = {}
351
355
  params = args.pop if args.last.is_a? Hash
352
356
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -356,123 +360,135 @@ module Fox
356
360
  end
357
361
  end
358
362
 
359
- class FXInputDialog
363
+ class FXMainWindow
360
364
  alias old_initialize initialize
361
- def initialize(owner, caption, label, *args, &blk)
362
- argument_names = %w{icon opts x y width height}
363
- default_params = { :icon => nil, :opts => INPUTDIALOG_STRING, :x => 0, :y => 0, :width => 0, :height => 0 }
365
+ def initialize(app, title, *args, &blk)
366
+ argument_names = %w{icon miniIcon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
367
+ default_params = { :icon => nil, :miniIcon => nil, :opts => DECOR_ALL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 4, :vSpacing => 4 }
364
368
  params = {}
365
369
  params = args.pop if args.last.is_a? Hash
366
370
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
371
+ if params.key? :padding
372
+ value = params.delete(:padding)
373
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
374
+ end
367
375
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
368
376
  params = default_params.merge(params)
369
- old_initialize(owner, caption, label, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
377
+ old_initialize(app, title, params[:icon], params[:miniIcon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
370
378
  end
371
379
  end
372
380
 
373
- class FXReplaceDialog
381
+ class FXFileStream
374
382
  alias old_initialize initialize
375
- def initialize(owner, caption, *args, &blk)
376
- argument_names = %w{ic opts x y width height}
377
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
383
+ def initialize(*args, &blk)
384
+ argument_names = %w{cont}
385
+ default_params = { :cont => nil }
378
386
  params = {}
379
387
  params = args.pop if args.last.is_a? Hash
380
388
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
381
389
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
382
390
  params = default_params.merge(params)
383
- old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
391
+ old_initialize(params[:cont], &blk)
384
392
  end
385
393
  end
386
394
 
387
- class FXScrollPane
395
+ class FXHeaderItem
388
396
  alias old_initialize initialize
389
- def initialize(owner, nvis, *args, &blk)
390
- argument_names = %w{opts}
391
- default_params = { :opts => 0 }
397
+ def initialize(text, *args, &blk)
398
+ argument_names = %w{ic s ptr}
399
+ default_params = { :ic => nil, :s => 0, :ptr => nil }
392
400
  params = {}
393
401
  params = args.pop if args.last.is_a? Hash
394
402
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
395
403
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
396
404
  params = default_params.merge(params)
397
- old_initialize(owner, nvis, params[:opts], &blk)
405
+ old_initialize(text, params[:ic], params[:s], params[:ptr], &blk)
398
406
  end
399
407
  end
400
408
 
401
- class FXMenuTitle
409
+ class FXHeader
402
410
  alias old_initialize initialize
403
- def initialize(parent, text, *args, &blk)
404
- argument_names = %w{icon popupMenu opts}
405
- default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
411
+ def initialize(p, *args, &blk)
412
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
413
+ default_params = { :target => nil, :selector => 0, :opts => HEADER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
406
414
  params = {}
407
415
  params = args.pop if args.last.is_a? Hash
408
416
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
417
+ if params.key? :padding
418
+ value = params.delete(:padding)
419
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
420
+ end
409
421
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
410
422
  params = default_params.merge(params)
411
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
423
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
412
424
  end
413
425
  end
414
426
 
415
- class FXFileStream
427
+ class FXRGBImage
416
428
  alias old_initialize initialize
417
- def initialize(*args, &blk)
418
- argument_names = %w{cont}
419
- default_params = { :cont => nil }
429
+ def initialize(a, *args, &blk)
430
+ argument_names = %w{pix opts width height}
431
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
420
432
  params = {}
421
433
  params = args.pop if args.last.is_a? Hash
422
434
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
423
435
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
424
436
  params = default_params.merge(params)
425
- old_initialize(params[:cont], &blk)
437
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
426
438
  end
427
439
  end
428
440
 
429
- class FXStream
441
+ class FXPopup
430
442
  alias old_initialize initialize
431
- def initialize(*args, &blk)
432
- argument_names = %w{cont}
433
- default_params = { :cont => nil }
443
+ def initialize(owner, *args, &blk)
444
+ argument_names = %w{opts x y width height}
445
+ default_params = { :opts => POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0 }
434
446
  params = {}
435
447
  params = args.pop if args.last.is_a? Hash
436
448
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
437
449
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
438
450
  params = default_params.merge(params)
439
- old_initialize(params[:cont], &blk)
451
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
440
452
  end
441
453
  end
442
454
 
443
- class FXFontDialog
455
+ class FXTextField
444
456
  alias old_initialize initialize
445
- def initialize(owner, name, *args, &blk)
446
- argument_names = %w{opts x y width height}
447
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 600, :height => 380 }
457
+ def initialize(p, ncols, *args, &blk)
458
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
459
+ default_params = { :target => nil, :selector => 0, :opts => TEXTFIELD_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
448
460
  params = {}
449
461
  params = args.pop if args.last.is_a? Hash
450
462
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
463
+ if params.key? :padding
464
+ value = params.delete(:padding)
465
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
466
+ end
451
467
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
452
468
  params = default_params.merge(params)
453
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
469
+ old_initialize(p, ncols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
454
470
  end
455
471
  end
456
472
 
457
- class FXBMPImage
473
+ class FXRGBIcon
458
474
  alias old_initialize initialize
459
475
  def initialize(a, *args, &blk)
460
- argument_names = %w{pix opts width height}
461
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
476
+ argument_names = %w{pix clr opts width height}
477
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
462
478
  params = {}
463
479
  params = args.pop if args.last.is_a? Hash
464
480
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
465
481
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
466
482
  params = default_params.merge(params)
467
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
483
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
468
484
  end
469
485
  end
470
486
 
471
- class FXTabBook
487
+ class FXTabItem
472
488
  alias old_initialize initialize
473
- def initialize(p, *args, &blk)
474
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
475
- default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
489
+ def initialize(p, text, *args, &blk)
490
+ argument_names = %w{ic opts x y width height padLeft padRight padTop padBottom}
491
+ default_params = { :ic => nil, :opts => TAB_TOP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
476
492
  params = {}
477
493
  params = args.pop if args.last.is_a? Hash
478
494
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -482,15 +498,15 @@ module Fox
482
498
  end
483
499
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
484
500
  params = default_params.merge(params)
485
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
501
+ old_initialize(p, text, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
486
502
  end
487
503
  end
488
504
 
489
- class FXSpinner
505
+ class FXTabBar
490
506
  alias old_initialize initialize
491
- def initialize(p, cols, *args, &blk)
507
+ def initialize(p, *args, &blk)
492
508
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
493
- default_params = { :target => nil, :selector => 0, :opts => SPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
509
+ default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
494
510
  params = {}
495
511
  params = args.pop if args.last.is_a? Hash
496
512
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -500,57 +516,61 @@ module Fox
500
516
  end
501
517
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
502
518
  params = default_params.merge(params)
503
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
519
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
504
520
  end
505
521
  end
506
522
 
507
- class FXMDIClient
523
+ class FXToolBarShell
508
524
  alias old_initialize initialize
509
- def initialize(p, *args, &blk)
510
- argument_names = %w{opts x y width height}
511
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
525
+ def initialize(owner, *args, &blk)
526
+ argument_names = %w{opts x y width height hSpacing vSpacing}
527
+ default_params = { :opts => FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :hSpacing => 4, :vSpacing => 4 }
512
528
  params = {}
513
529
  params = args.pop if args.last.is_a? Hash
514
530
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
515
531
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
516
532
  params = default_params.merge(params)
517
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
533
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:hSpacing], params[:vSpacing], &blk)
518
534
  end
519
535
  end
520
536
 
521
- class FXColorSelector
537
+ class FXProgressDialog
522
538
  alias old_initialize initialize
523
- def initialize(parent, *args, &blk)
524
- argument_names = %w{target selector opts x y width height}
525
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
539
+ def initialize(owner, caption, label, *args, &blk)
540
+ argument_names = %w{opts x y width height}
541
+ default_params = { :opts => PROGRESSDIALOG_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
526
542
  params = {}
527
543
  params = args.pop if args.last.is_a? Hash
528
544
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
529
545
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
530
546
  params = default_params.merge(params)
531
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
547
+ old_initialize(owner, caption, label, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
532
548
  end
533
549
  end
534
550
 
535
- class FXToolBarTab
551
+ class FXSeparator
536
552
  alias old_initialize initialize
537
553
  def initialize(p, *args, &blk)
538
- argument_names = %w{target selector opts x y width height}
539
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
554
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
555
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
540
556
  params = {}
541
557
  params = args.pop if args.last.is_a? Hash
542
558
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
559
+ if params.key? :padding
560
+ value = params.delete(:padding)
561
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
562
+ end
543
563
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
544
564
  params = default_params.merge(params)
545
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
565
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
546
566
  end
547
567
  end
548
568
 
549
- class FXDockTitle
569
+ class FXHorizontalSeparator
550
570
  alias old_initialize initialize
551
- def initialize(p, text, *args, &blk)
552
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
553
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL|JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
571
+ def initialize(p, *args, &blk)
572
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
573
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 1, :padRight => 1, :padTop => 0, :padBottom => 0 }
554
574
  params = {}
555
575
  params = args.pop if args.last.is_a? Hash
556
576
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -560,47 +580,89 @@ module Fox
560
580
  end
561
581
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
562
582
  params = default_params.merge(params)
563
- old_initialize(p, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
583
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
564
584
  end
565
585
  end
566
586
 
567
- class FXRGBIcon
587
+ class FXVerticalSeparator
568
588
  alias old_initialize initialize
569
- def initialize(a, *args, &blk)
570
- argument_names = %w{pix clr opts width height}
571
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
589
+ def initialize(p, *args, &blk)
590
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
591
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 1, :padBottom => 1 }
572
592
  params = {}
573
593
  params = args.pop if args.last.is_a? Hash
574
594
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
595
+ if params.key? :padding
596
+ value = params.delete(:padding)
597
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
598
+ end
575
599
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
576
600
  params = default_params.merge(params)
577
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
601
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
578
602
  end
579
603
  end
580
604
 
581
- class FXCheckButton
605
+ class FXVisual
582
606
  alias old_initialize initialize
583
- def initialize(parent, text, *args, &blk)
584
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
585
- default_params = { :target => nil, :selector => 0, :opts => CHECKBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
607
+ def initialize(a, flgs, *args, &blk)
608
+ argument_names = %w{d}
609
+ default_params = { :d => 32 }
586
610
  params = {}
587
611
  params = args.pop if args.last.is_a? Hash
588
612
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
589
- if params.key? :padding
590
- value = params.delete(:padding)
591
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
592
- end
593
613
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
594
614
  params = default_params.merge(params)
595
- old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
615
+ old_initialize(a, flgs, params[:d], &blk)
596
616
  end
597
617
  end
598
618
 
599
- class FXBitmapFrame
619
+ class FXMenuPane
600
620
  alias old_initialize initialize
601
- def initialize(p, bmp, *args, &blk)
602
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
603
- default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
621
+ def initialize(owner, *args, &blk)
622
+ argument_names = %w{opts}
623
+ default_params = { :opts => 0 }
624
+ params = {}
625
+ params = args.pop if args.last.is_a? Hash
626
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
627
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
628
+ params = default_params.merge(params)
629
+ old_initialize(owner, params[:opts], &blk)
630
+ end
631
+ end
632
+
633
+ class FXIconDict
634
+ alias old_initialize initialize
635
+ def initialize(app, *args, &blk)
636
+ argument_names = %w{path}
637
+ default_params = { :path => FXIconDict.defaultIconPath }
638
+ params = {}
639
+ params = args.pop if args.last.is_a? Hash
640
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
641
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
642
+ params = default_params.merge(params)
643
+ old_initialize(app, params[:path], &blk)
644
+ end
645
+ end
646
+
647
+ class FXColorSelector
648
+ alias old_initialize initialize
649
+ def initialize(parent, *args, &blk)
650
+ argument_names = %w{target selector opts x y width height}
651
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
652
+ params = {}
653
+ params = args.pop if args.last.is_a? Hash
654
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
655
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
656
+ params = default_params.merge(params)
657
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
658
+ end
659
+ end
660
+
661
+ class FXPicker
662
+ alias old_initialize initialize
663
+ def initialize(p, text, *args, &blk)
664
+ argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
665
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
604
666
  params = {}
605
667
  params = args.pop if args.last.is_a? Hash
606
668
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -610,15 +672,15 @@ module Fox
610
672
  end
611
673
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
612
674
  params = default_params.merge(params)
613
- old_initialize(p, bmp, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
675
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
614
676
  end
615
677
  end
616
678
 
617
- class FXArrowButton
679
+ class FXColorWell
618
680
  alias old_initialize initialize
619
681
  def initialize(parent, *args, &blk)
620
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
621
- default_params = { :target => nil, :selector => 0, :opts => ARROW_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
682
+ argument_names = %w{color target selector opts x y width height padLeft padRight padTop padBottom}
683
+ default_params = { :color => 0, :target => nil, :selector => 0, :opts => COLORWELL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
622
684
  params = {}
623
685
  params = args.pop if args.last.is_a? Hash
624
686
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -628,29 +690,29 @@ module Fox
628
690
  end
629
691
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
630
692
  params = default_params.merge(params)
631
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
693
+ old_initialize(parent, params[:color], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
632
694
  end
633
695
  end
634
696
 
635
- class FXXBMImage
697
+ class FXImageView
636
698
  alias old_initialize initialize
637
- def initialize(a, *args, &blk)
638
- argument_names = %w{pixels mask opts width height}
639
- default_params = { :pixels => nil, :mask => nil, :opts => 0, :width => 1, :height => 1 }
699
+ def initialize(p, *args, &blk)
700
+ argument_names = %w{img target selector opts x y width height}
701
+ default_params = { :img => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
640
702
  params = {}
641
703
  params = args.pop if args.last.is_a? Hash
642
704
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
643
705
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
644
706
  params = default_params.merge(params)
645
- old_initialize(a, params[:pixels], params[:mask], params[:opts], params[:width], params[:height], &blk)
707
+ old_initialize(p, params[:img], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
646
708
  end
647
709
  end
648
710
 
649
- class FXComboBox
711
+ class FXSpring
650
712
  alias old_initialize initialize
651
- def initialize(p, cols, *args, &blk)
652
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
653
- default_params = { :target => nil, :selector => 0, :opts => COMBOBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
713
+ def initialize(p, *args, &blk)
714
+ argument_names = %w{opts relw relh x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
715
+ default_params = { :opts => 0, :relw => 0, :relh => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
654
716
  params = {}
655
717
  params = args.pop if args.last.is_a? Hash
656
718
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -660,57 +722,57 @@ module Fox
660
722
  end
661
723
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
662
724
  params = default_params.merge(params)
663
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
725
+ old_initialize(p, params[:opts], params[:relw], params[:relh], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
664
726
  end
665
727
  end
666
728
 
667
- class FXFileItem
729
+ class FXRulerView
668
730
  alias old_initialize initialize
669
- def initialize(text, *args, &blk)
670
- argument_names = %w{bi mi ptr}
671
- default_params = { :bi => nil, :mi => nil, :ptr => nil }
731
+ def initialize(p, *args, &blk)
732
+ argument_names = %w{target selector opts x y width height}
733
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
672
734
  params = {}
673
735
  params = args.pop if args.last.is_a? Hash
674
736
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
675
737
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
676
738
  params = default_params.merge(params)
677
- old_initialize(text, params[:bi], params[:mi], params[:ptr], &blk)
739
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
678
740
  end
679
741
  end
680
742
 
681
- class FXFileList
743
+ class FXListItem
682
744
  alias old_initialize initialize
683
- def initialize(p, *args, &blk)
684
- argument_names = %w{target selector opts x y width height}
685
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
745
+ def initialize(text, *args, &blk)
746
+ argument_names = %w{icon data}
747
+ default_params = { :icon => nil, :data => nil }
686
748
  params = {}
687
749
  params = args.pop if args.last.is_a? Hash
688
750
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
689
751
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
690
752
  params = default_params.merge(params)
691
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
753
+ old_initialize(text, params[:icon], params[:data], &blk)
692
754
  end
693
755
  end
694
756
 
695
- class FXPPMIcon
757
+ class FXList
696
758
  alias old_initialize initialize
697
- def initialize(a, *args, &blk)
698
- argument_names = %w{pix clr opts width height}
699
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
759
+ def initialize(p, *args, &blk)
760
+ argument_names = %w{target selector opts x y width height}
761
+ default_params = { :target => nil, :selector => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
700
762
  params = {}
701
763
  params = args.pop if args.last.is_a? Hash
702
764
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
703
765
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
704
766
  params = default_params.merge(params)
705
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
767
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
706
768
  end
707
769
  end
708
770
 
709
- class FXSwitcher
771
+ class FXDockSite
710
772
  alias old_initialize initialize
711
773
  def initialize(p, *args, &blk)
712
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
713
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
774
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
775
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 0, :vSpacing => 0 }
714
776
  params = {}
715
777
  params = args.pop if args.last.is_a? Hash
716
778
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -720,40 +782,53 @@ module Fox
720
782
  end
721
783
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
722
784
  params = default_params.merge(params)
723
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
785
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
724
786
  end
725
787
  end
726
788
 
727
- class FXText
789
+ class FXJPGImage
728
790
  alias old_initialize initialize
729
- def initialize(p, *args, &blk)
730
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
731
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2 }
791
+ def initialize(a, *args, &blk)
792
+ argument_names = %w{pix opts width height}
793
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
732
794
  params = {}
733
795
  params = args.pop if args.last.is_a? Hash
734
796
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
735
- if params.key? :padding
736
- value = params.delete(:padding)
737
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
738
- end
739
797
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
740
798
  params = default_params.merge(params)
741
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
799
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
742
800
  end
743
- alias old_findText findText
744
- def findText(string, *args)
745
- argument_names = %w{start flags}
746
- default_params = { :start => 0, :flags => SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT }
801
+ end
802
+
803
+ class FXJPGIcon
804
+ alias old_initialize initialize
805
+ def initialize(a, *args, &blk)
806
+ argument_names = %w{pix clr opts width height}
807
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
747
808
  params = {}
748
809
  params = args.pop if args.last.is_a? Hash
749
810
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
750
811
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
751
812
  params = default_params.merge(params)
752
- old_findText(string, params[:start], params[:flags])
813
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
753
814
  end
754
815
  end
755
816
 
756
- class FXGIFImage
817
+ class FXFontSelector
818
+ alias old_initialize initialize
819
+ def initialize(p, *args, &blk)
820
+ argument_names = %w{target selector opts x y width height}
821
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
822
+ params = {}
823
+ params = args.pop if args.last.is_a? Hash
824
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
825
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
826
+ params = default_params.merge(params)
827
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
828
+ end
829
+ end
830
+
831
+ class FXXPMImage
757
832
  alias old_initialize initialize
758
833
  def initialize(a, *args, &blk)
759
834
  argument_names = %w{pix opts width height}
@@ -767,11 +842,11 @@ module Fox
767
842
  end
768
843
  end
769
844
 
770
- class FXSeparator
845
+ class FXVerticalFrame
771
846
  alias old_initialize initialize
772
847
  def initialize(p, *args, &blk)
773
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
774
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
848
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
849
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
775
850
  params = {}
776
851
  params = args.pop if args.last.is_a? Hash
777
852
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -781,15 +856,15 @@ module Fox
781
856
  end
782
857
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
783
858
  params = default_params.merge(params)
784
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
859
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
785
860
  end
786
861
  end
787
862
 
788
- class FXHorizontalSeparator
863
+ class FXOption
789
864
  alias old_initialize initialize
790
- def initialize(p, *args, &blk)
791
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
792
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 1, :padRight => 1, :padTop => 0, :padBottom => 0 }
865
+ def initialize(p, text, *args, &blk)
866
+ argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
867
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
793
868
  params = {}
794
869
  params = args.pop if args.last.is_a? Hash
795
870
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -799,15 +874,15 @@ module Fox
799
874
  end
800
875
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
801
876
  params = default_params.merge(params)
802
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
877
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
803
878
  end
804
879
  end
805
880
 
806
- class FXVerticalSeparator
881
+ class FXOptionMenu
807
882
  alias old_initialize initialize
808
883
  def initialize(p, *args, &blk)
809
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
810
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 1, :padBottom => 1 }
884
+ argument_names = %w{pup opts x y width height padLeft padRight padTop padBottom}
885
+ default_params = { :pup => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
811
886
  params = {}
812
887
  params = args.pop if args.last.is_a? Hash
813
888
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -817,15 +892,15 @@ module Fox
817
892
  end
818
893
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
819
894
  params = default_params.merge(params)
820
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
895
+ old_initialize(p, params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
821
896
  end
822
897
  end
823
898
 
824
- class FXRuler
899
+ class FXToggleButton
825
900
  alias old_initialize initialize
826
- def initialize(p, *args, &blk)
827
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
828
- default_params = { :target => nil, :selector => 0, :opts => RULER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
901
+ def initialize(p, text1, text2, *args, &blk)
902
+ argument_names = %w{icon1 icon2 target selector opts x y width height padLeft padRight padTop padBottom}
903
+ default_params = { :icon1 => nil, :icon2 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
829
904
  params = {}
830
905
  params = args.pop if args.last.is_a? Hash
831
906
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -835,89 +910,85 @@ module Fox
835
910
  end
836
911
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
837
912
  params = default_params.merge(params)
838
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
913
+ old_initialize(p, text1, text2, params[:icon1], params[:icon2], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
839
914
  end
840
915
  end
841
916
 
842
- class FXFoldingItem
917
+ class FXMDIChild
843
918
  alias old_initialize initialize
844
- def initialize(text, *args, &blk)
845
- argument_names = %w{openIcon closedIcon data}
846
- default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
919
+ def initialize(p, name, *args, &blk)
920
+ argument_names = %w{ic pup opts x y width height}
921
+ default_params = { :ic => nil, :pup => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
847
922
  params = {}
848
923
  params = args.pop if args.last.is_a? Hash
849
924
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
850
925
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
851
926
  params = default_params.merge(params)
852
- old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
927
+ old_initialize(p, name, params[:ic], params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
853
928
  end
854
929
  end
855
930
 
856
- class FXFoldingList
931
+ class FXStream
857
932
  alias old_initialize initialize
858
- def initialize(p, *args, &blk)
859
- argument_names = %w{target selector opts x y width height}
860
- default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
933
+ def initialize(*args, &blk)
934
+ argument_names = %w{cont}
935
+ default_params = { :cont => nil }
861
936
  params = {}
862
937
  params = args.pop if args.last.is_a? Hash
863
938
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
864
939
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
865
940
  params = default_params.merge(params)
866
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
941
+ old_initialize(params[:cont], &blk)
867
942
  end
868
943
  end
869
944
 
870
- class FXDialogBox
945
+ class FXMDIClient
871
946
  alias old_initialize initialize
872
- def initialize(owner, title, *args, &blk)
873
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
874
- default_params = { :opts => DECOR_TITLE|DECOR_BORDER, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 4, :vSpacing => 4 }
947
+ def initialize(p, *args, &blk)
948
+ argument_names = %w{opts x y width height}
949
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
875
950
  params = {}
876
951
  params = args.pop if args.last.is_a? Hash
877
952
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
878
- if params.key? :padding
879
- value = params.delete(:padding)
880
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
881
- end
882
953
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
883
954
  params = default_params.merge(params)
884
- old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
955
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
885
956
  end
886
957
  end
887
958
 
888
- class FXRulerView
959
+ class FXGIFImage
889
960
  alias old_initialize initialize
890
- def initialize(p, *args, &blk)
891
- argument_names = %w{target selector opts x y width height}
892
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
961
+ def initialize(a, *args, &blk)
962
+ argument_names = %w{pix opts width height}
963
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
893
964
  params = {}
894
965
  params = args.pop if args.last.is_a? Hash
895
966
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
896
967
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
897
968
  params = default_params.merge(params)
898
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
969
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
899
970
  end
900
971
  end
901
972
 
902
- class FXScrollWindow
973
+ class FXImage
903
974
  alias old_initialize initialize
904
- def initialize(p, *args, &blk)
905
- argument_names = %w{opts x y width height}
906
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
975
+ def initialize(a, *args, &blk)
976
+ argument_names = %w{pixels opts width height}
977
+ default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
907
978
  params = {}
908
979
  params = args.pop if args.last.is_a? Hash
909
980
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
910
981
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
911
982
  params = default_params.merge(params)
912
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
983
+ old_initialize(a, params[:pixels], params[:opts], params[:width], params[:height], &blk)
913
984
  end
914
985
  end
915
986
 
916
- class FXMainWindow
987
+ class FXRealSpinner
917
988
  alias old_initialize initialize
918
- def initialize(app, title, *args, &blk)
919
- argument_names = %w{icon miniIcon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
920
- default_params = { :icon => nil, :miniIcon => nil, :opts => DECOR_ALL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 4, :vSpacing => 4 }
989
+ def initialize(p, cols, *args, &blk)
990
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
991
+ default_params = { :target => nil, :selector => 0, :opts => REALSPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
921
992
  params = {}
922
993
  params = args.pop if args.last.is_a? Hash
923
994
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -927,15 +998,15 @@ module Fox
927
998
  end
928
999
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
929
1000
  params = default_params.merge(params)
930
- old_initialize(app, title, params[:icon], params[:miniIcon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1001
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
931
1002
  end
932
1003
  end
933
1004
 
934
- class FXHorizontalFrame
1005
+ class FXWizard
935
1006
  alias old_initialize initialize
936
- def initialize(p, *args, &blk)
1007
+ def initialize(owner, name, image, *args, &blk)
937
1008
  argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
938
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1009
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 10, :vSpacing => 10 }
939
1010
  params = {}
940
1011
  params = args.pop if args.last.is_a? Hash
941
1012
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -945,43 +1016,15 @@ module Fox
945
1016
  end
946
1017
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
947
1018
  params = default_params.merge(params)
948
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
949
- end
950
- end
951
-
952
- class FXScrollBar
953
- alias old_initialize initialize
954
- def initialize(p, *args, &blk)
955
- argument_names = %w{target selector opts x y width height}
956
- default_params = { :target => nil, :selector => 0, :opts => SCROLLBAR_VERTICAL, :x => 0, :y => 0, :width => 0, :height => 0 }
957
- params = {}
958
- params = args.pop if args.last.is_a? Hash
959
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
960
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
961
- params = default_params.merge(params)
962
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
963
- end
964
- end
965
-
966
- class FXBitmapView
967
- alias old_initialize initialize
968
- def initialize(p, *args, &blk)
969
- argument_names = %w{bmp target selector opts x y width height}
970
- default_params = { :bmp => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
971
- params = {}
972
- params = args.pop if args.last.is_a? Hash
973
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
974
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
975
- params = default_params.merge(params)
976
- old_initialize(p, params[:bmp], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1019
+ old_initialize(owner, name, image, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
977
1020
  end
978
1021
  end
979
1022
 
980
- class FXColorRing
1023
+ class FXComboBox
981
1024
  alias old_initialize initialize
982
- def initialize(p, *args, &blk)
1025
+ def initialize(p, cols, *args, &blk)
983
1026
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
984
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1027
+ default_params = { :target => nil, :selector => 0, :opts => COMBOBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
985
1028
  params = {}
986
1029
  params = args.pop if args.last.is_a? Hash
987
1030
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -991,15 +1034,15 @@ module Fox
991
1034
  end
992
1035
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
993
1036
  params = default_params.merge(params)
994
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1037
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
995
1038
  end
996
1039
  end
997
1040
 
998
- class FXButton
1041
+ class FXRadioButton
999
1042
  alias old_initialize initialize
1000
1043
  def initialize(parent, text, *args, &blk)
1001
- argument_names = %w{icon target selector opts x y width height padLeft padRight padTop padBottom}
1002
- default_params = { :icon => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1044
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1045
+ default_params = { :target => nil, :selector => 0, :opts => RADIOBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1003
1046
  params = {}
1004
1047
  params = args.pop if args.last.is_a? Hash
1005
1048
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1009,113 +1052,113 @@ module Fox
1009
1052
  end
1010
1053
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1011
1054
  params = default_params.merge(params)
1012
- old_initialize(parent, text, params[:icon], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1055
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1013
1056
  end
1014
1057
  end
1015
1058
 
1016
- class FXIconItem
1059
+ class FXTableItem
1017
1060
  alias old_initialize initialize
1018
1061
  def initialize(text, *args, &blk)
1019
- argument_names = %w{bigIcon miniIcon data}
1020
- default_params = { :bigIcon => nil, :miniIcon => nil, :data => nil }
1062
+ argument_names = %w{icon data}
1063
+ default_params = { :icon => nil, :data => nil }
1021
1064
  params = {}
1022
1065
  params = args.pop if args.last.is_a? Hash
1023
1066
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1024
1067
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1025
1068
  params = default_params.merge(params)
1026
- old_initialize(text, params[:bigIcon], params[:miniIcon], params[:data], &blk)
1069
+ old_initialize(text, params[:icon], params[:data], &blk)
1027
1070
  end
1028
1071
  end
1029
1072
 
1030
- class FXIconList
1073
+ class FXTable
1031
1074
  alias old_initialize initialize
1032
1075
  def initialize(p, *args, &blk)
1033
- argument_names = %w{target selector opts x y width height}
1034
- default_params = { :target => nil, :selector => 0, :opts => ICONLIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1076
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1077
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_MARGIN, :padRight => DEFAULT_MARGIN, :padTop => DEFAULT_MARGIN, :padBottom => DEFAULT_MARGIN }
1035
1078
  params = {}
1036
1079
  params = args.pop if args.last.is_a? Hash
1037
1080
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1081
+ if params.key? :padding
1082
+ value = params.delete(:padding)
1083
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1084
+ end
1038
1085
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1039
1086
  params = default_params.merge(params)
1040
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1087
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1041
1088
  end
1042
1089
  end
1043
1090
 
1044
- class FXVerticalFrame
1091
+ class FXPPMIcon
1045
1092
  alias old_initialize initialize
1046
- def initialize(p, *args, &blk)
1047
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1048
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1093
+ def initialize(a, *args, &blk)
1094
+ argument_names = %w{pix clr opts width height}
1095
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1049
1096
  params = {}
1050
1097
  params = args.pop if args.last.is_a? Hash
1051
1098
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1052
- if params.key? :padding
1053
- value = params.delete(:padding)
1054
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1055
- end
1056
1099
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1057
1100
  params = default_params.merge(params)
1058
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1101
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1059
1102
  end
1060
1103
  end
1061
1104
 
1062
- class FXProgressDialog
1105
+ class FXMenuSeparator
1063
1106
  alias old_initialize initialize
1064
- def initialize(owner, caption, label, *args, &blk)
1065
- argument_names = %w{opts x y width height}
1066
- default_params = { :opts => PROGRESSDIALOG_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1107
+ def initialize(parent, *args, &blk)
1108
+ argument_names = %w{opts}
1109
+ default_params = { :opts => 0 }
1067
1110
  params = {}
1068
1111
  params = args.pop if args.last.is_a? Hash
1069
1112
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1070
1113
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1071
1114
  params = default_params.merge(params)
1072
- old_initialize(owner, caption, label, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1115
+ old_initialize(parent, params[:opts], &blk)
1073
1116
  end
1074
1117
  end
1075
1118
 
1076
- class FXToolBarShell
1119
+ class FXPCXIcon
1077
1120
  alias old_initialize initialize
1078
- def initialize(owner, *args, &blk)
1079
- argument_names = %w{opts x y width height hSpacing vSpacing}
1080
- default_params = { :opts => FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :hSpacing => 4, :vSpacing => 4 }
1121
+ def initialize(a, *args, &blk)
1122
+ argument_names = %w{pix clr opts width height}
1123
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1081
1124
  params = {}
1082
1125
  params = args.pop if args.last.is_a? Hash
1083
1126
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1084
1127
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1085
1128
  params = default_params.merge(params)
1086
- old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:hSpacing], params[:vSpacing], &blk)
1129
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1087
1130
  end
1088
1131
  end
1089
1132
 
1090
- class FXListItem
1133
+ class FXICOImage
1091
1134
  alias old_initialize initialize
1092
- def initialize(text, *args, &blk)
1093
- argument_names = %w{icon data}
1094
- default_params = { :icon => nil, :data => nil }
1135
+ def initialize(a, *args, &blk)
1136
+ argument_names = %w{pix opts width height}
1137
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1095
1138
  params = {}
1096
1139
  params = args.pop if args.last.is_a? Hash
1097
1140
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1098
1141
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1099
1142
  params = default_params.merge(params)
1100
- old_initialize(text, params[:icon], params[:data], &blk)
1143
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1101
1144
  end
1102
1145
  end
1103
1146
 
1104
- class FXList
1147
+ class FXRegistry
1105
1148
  alias old_initialize initialize
1106
- def initialize(p, *args, &blk)
1107
- argument_names = %w{target selector opts x y width height}
1108
- default_params = { :target => nil, :selector => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1149
+ def initialize(*args, &blk)
1150
+ argument_names = %w{appKey vendorKey}
1151
+ default_params = { :appKey => "", :vendorKey => "" }
1109
1152
  params = {}
1110
1153
  params = args.pop if args.last.is_a? Hash
1111
1154
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1112
1155
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1113
1156
  params = default_params.merge(params)
1114
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1157
+ old_initialize(params[:appKey], params[:vendorKey], &blk)
1115
1158
  end
1116
1159
  end
1117
1160
 
1118
- class FXXPMImage
1161
+ class FXPNGImage
1119
1162
  alias old_initialize initialize
1120
1163
  def initialize(a, *args, &blk)
1121
1164
  argument_names = %w{pix opts width height}
@@ -1129,107 +1172,113 @@ module Fox
1129
1172
  end
1130
1173
  end
1131
1174
 
1132
- class FXRGBImage
1175
+ class FXPacker
1133
1176
  alias old_initialize initialize
1134
- def initialize(a, *args, &blk)
1135
- argument_names = %w{pix opts width height}
1136
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1177
+ def initialize(parent, *args, &blk)
1178
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1179
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1137
1180
  params = {}
1138
1181
  params = args.pop if args.last.is_a? Hash
1139
1182
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1183
+ if params.key? :padding
1184
+ value = params.delete(:padding)
1185
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1186
+ end
1140
1187
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1141
1188
  params = default_params.merge(params)
1142
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1189
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1143
1190
  end
1144
1191
  end
1145
1192
 
1146
- class FXXPMIcon
1193
+ class FXApp
1147
1194
  alias old_initialize initialize
1148
- def initialize(a, *args, &blk)
1149
- argument_names = %w{pix clr opts width height}
1150
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1195
+ def initialize(*args, &blk)
1196
+ argument_names = %w{appName vendorName}
1197
+ default_params = { :appName => "Application", :vendorName => "FoxDefault" }
1151
1198
  params = {}
1152
1199
  params = args.pop if args.last.is_a? Hash
1153
1200
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1154
1201
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1155
1202
  params = default_params.merge(params)
1156
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1203
+ old_initialize(params[:appName], params[:vendorName], &blk)
1157
1204
  end
1158
1205
  end
1159
1206
 
1160
- class FXColorWell
1207
+ class FXMenuCascade
1161
1208
  alias old_initialize initialize
1162
- def initialize(parent, *args, &blk)
1163
- argument_names = %w{color target selector opts x y width height padLeft padRight padTop padBottom}
1164
- default_params = { :color => 0, :target => nil, :selector => 0, :opts => COLORWELL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1209
+ def initialize(parent, text, *args, &blk)
1210
+ argument_names = %w{icon popupMenu opts}
1211
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1165
1212
  params = {}
1166
1213
  params = args.pop if args.last.is_a? Hash
1167
1214
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1168
- if params.key? :padding
1169
- value = params.delete(:padding)
1170
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1171
- end
1172
1215
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1173
1216
  params = default_params.merge(params)
1174
- old_initialize(parent, params[:color], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1217
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1175
1218
  end
1176
1219
  end
1177
1220
 
1178
- class FXDockSite
1221
+ class FXTGAImage
1179
1222
  alias old_initialize initialize
1180
- def initialize(p, *args, &blk)
1181
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1182
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 0, :vSpacing => 0 }
1223
+ def initialize(a, *args, &blk)
1224
+ argument_names = %w{pix opts width height}
1225
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1183
1226
  params = {}
1184
1227
  params = args.pop if args.last.is_a? Hash
1185
1228
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1186
- if params.key? :padding
1187
- value = params.delete(:padding)
1188
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1189
- end
1190
1229
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1191
1230
  params = default_params.merge(params)
1192
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1231
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1193
1232
  end
1194
1233
  end
1195
1234
 
1196
- class FXLabel
1235
+ class FXSplashWindow
1197
1236
  alias old_initialize initialize
1198
- def initialize(parent, text, *args, &blk)
1199
- argument_names = %w{icon opts x y width height padLeft padRight padTop padBottom}
1200
- default_params = { :icon => nil, :opts => LABEL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1237
+ def initialize(owner, icon, *args, &blk)
1238
+ argument_names = %w{opts ms}
1239
+ default_params = { :opts => SPLASH_SIMPLE, :ms => 5000 }
1201
1240
  params = {}
1202
1241
  params = args.pop if args.last.is_a? Hash
1203
1242
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1204
- if params.key? :padding
1205
- value = params.delete(:padding)
1206
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1207
- end
1208
1243
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1209
1244
  params = default_params.merge(params)
1210
- old_initialize(parent, text, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1245
+ old_initialize(owner, icon, params[:opts], params[:ms], &blk)
1211
1246
  end
1212
1247
  end
1213
1248
 
1214
- class FXTGAIcon
1249
+ class FXScrollPane
1215
1250
  alias old_initialize initialize
1216
- def initialize(a, *args, &blk)
1217
- argument_names = %w{pix clr opts width height}
1218
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1251
+ def initialize(owner, nvis, *args, &blk)
1252
+ argument_names = %w{opts}
1253
+ default_params = { :opts => 0 }
1219
1254
  params = {}
1220
1255
  params = args.pop if args.last.is_a? Hash
1221
1256
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1222
1257
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1223
1258
  params = default_params.merge(params)
1224
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1259
+ old_initialize(owner, nvis, params[:opts], &blk)
1225
1260
  end
1226
1261
  end
1227
1262
 
1228
- class FXFontSelector
1263
+ class FXColorItem
1264
+ alias old_initialize initialize
1265
+ def initialize(text, clr, *args, &blk)
1266
+ argument_names = %w{data}
1267
+ default_params = { :data => nil }
1268
+ params = {}
1269
+ params = args.pop if args.last.is_a? Hash
1270
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1271
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1272
+ params = default_params.merge(params)
1273
+ old_initialize(text, clr, params[:data], &blk)
1274
+ end
1275
+ end
1276
+
1277
+ class FXColorList
1229
1278
  alias old_initialize initialize
1230
1279
  def initialize(p, *args, &blk)
1231
1280
  argument_names = %w{target selector opts x y width height}
1232
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1281
+ default_params = { :target => nil, :selector => 0, :opts => LIST_BROWSESELECT, :x => 0, :y => 0, :width => 0, :height => 0 }
1233
1282
  params = {}
1234
1283
  params = args.pop if args.last.is_a? Hash
1235
1284
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1239,11 +1288,11 @@ module Fox
1239
1288
  end
1240
1289
  end
1241
1290
 
1242
- class FXDial
1291
+ class FXColorRing
1243
1292
  alias old_initialize initialize
1244
1293
  def initialize(p, *args, &blk)
1245
1294
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1246
- default_params = { :target => nil, :selector => 0, :opts => DIAL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1295
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1247
1296
  params = {}
1248
1297
  params = args.pop if args.last.is_a? Hash
1249
1298
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1257,71 +1306,21 @@ module Fox
1257
1306
  end
1258
1307
  end
1259
1308
 
1260
- class FXGIFCursor
1309
+ class FXIcon
1261
1310
  alias old_initialize initialize
1262
- def initialize(a, pix, *args, &blk)
1263
- argument_names = %w{hx hy}
1264
- default_params = { :hx => -1, :hy => -1 }
1311
+ def initialize(app, *args, &blk)
1312
+ argument_names = %w{pix clr opts width height}
1313
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1265
1314
  params = {}
1266
1315
  params = args.pop if args.last.is_a? Hash
1267
1316
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1268
1317
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1269
1318
  params = default_params.merge(params)
1270
- old_initialize(a, pix, params[:hx], params[:hy], &blk)
1271
- end
1272
- end
1273
-
1274
- class FXSlider
1275
- alias old_initialize initialize
1276
- def initialize(p, *args, &blk)
1277
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1278
- default_params = { :target => nil, :selector => 0, :opts => SLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1279
- params = {}
1280
- params = args.pop if args.last.is_a? Hash
1281
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1282
- if params.key? :padding
1283
- value = params.delete(:padding)
1284
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1285
- end
1286
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1287
- params = default_params.merge(params)
1288
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1289
- end
1290
- end
1291
-
1292
- class FXTableItem
1293
- alias old_initialize initialize
1294
- def initialize(text, *args, &blk)
1295
- argument_names = %w{icon data}
1296
- default_params = { :icon => nil, :data => nil }
1297
- params = {}
1298
- params = args.pop if args.last.is_a? Hash
1299
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1300
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1301
- params = default_params.merge(params)
1302
- old_initialize(text, params[:icon], params[:data], &blk)
1303
- end
1304
- end
1305
-
1306
- class FXTable
1307
- alias old_initialize initialize
1308
- def initialize(p, *args, &blk)
1309
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1310
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_MARGIN, :padRight => DEFAULT_MARGIN, :padTop => DEFAULT_MARGIN, :padBottom => DEFAULT_MARGIN }
1311
- params = {}
1312
- params = args.pop if args.last.is_a? Hash
1313
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1314
- if params.key? :padding
1315
- value = params.delete(:padding)
1316
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1317
- end
1318
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1319
- params = default_params.merge(params)
1320
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1319
+ old_initialize(app, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1321
1320
  end
1322
1321
  end
1323
1322
 
1324
- class FXPNGImage
1323
+ class FXPCXImage
1325
1324
  alias old_initialize initialize
1326
1325
  def initialize(a, *args, &blk)
1327
1326
  argument_names = %w{pix opts width height}
@@ -1335,43 +1334,25 @@ module Fox
1335
1334
  end
1336
1335
  end
1337
1336
 
1338
- class FXStatusBar
1339
- alias old_initialize initialize
1340
- def initialize(p, *args, &blk)
1341
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1342
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => 4, :vSpacing => 0 }
1343
- params = {}
1344
- params = args.pop if args.last.is_a? Hash
1345
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1346
- if params.key? :padding
1347
- value = params.delete(:padding)
1348
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1349
- end
1350
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1351
- params = default_params.merge(params)
1352
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1353
- end
1354
- end
1355
-
1356
- class FXRegistry
1337
+ class FXMessageBox
1357
1338
  alias old_initialize initialize
1358
- def initialize(*args, &blk)
1359
- argument_names = %w{appKey vendorKey}
1360
- default_params = { :appKey => "", :vendorKey => "" }
1339
+ def initialize(owner, caption, text, *args, &blk)
1340
+ argument_names = %w{ic opts x y}
1341
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0 }
1361
1342
  params = {}
1362
1343
  params = args.pop if args.last.is_a? Hash
1363
1344
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1364
1345
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1365
1346
  params = default_params.merge(params)
1366
- old_initialize(params[:appKey], params[:vendorKey], &blk)
1347
+ old_initialize(owner, caption, text, params[:ic], params[:opts], params[:x], params[:y], &blk)
1367
1348
  end
1368
1349
  end
1369
1350
 
1370
- class FXMatrix
1351
+ class FXDirBox
1371
1352
  alias old_initialize initialize
1372
- def initialize(parent, *args, &blk)
1373
- argument_names = %w{n opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1374
- default_params = { :n => 1, :opts => MATRIX_BY_ROWS, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1353
+ def initialize(p, *args, &blk)
1354
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1355
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1375
1356
  params = {}
1376
1357
  params = args.pop if args.last.is_a? Hash
1377
1358
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1381,121 +1362,113 @@ module Fox
1381
1362
  end
1382
1363
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1383
1364
  params = default_params.merge(params)
1384
- old_initialize(parent, params[:n], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1365
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1385
1366
  end
1386
1367
  end
1387
1368
 
1388
- class FXWizard
1369
+ class FXPrintDialog
1389
1370
  alias old_initialize initialize
1390
- def initialize(owner, name, image, *args, &blk)
1391
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1392
- default_params = { :opts => DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 10, :vSpacing => 10 }
1371
+ def initialize(owner, name, *args, &blk)
1372
+ argument_names = %w{opts x y width height}
1373
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1393
1374
  params = {}
1394
1375
  params = args.pop if args.last.is_a? Hash
1395
1376
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1396
- if params.key? :padding
1397
- value = params.delete(:padding)
1398
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1399
- end
1400
1377
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1401
1378
  params = default_params.merge(params)
1402
- old_initialize(owner, name, image, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1379
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1403
1380
  end
1404
1381
  end
1405
1382
 
1406
- class FXGradientBar
1383
+ class FXGLContext
1407
1384
  alias old_initialize initialize
1408
- def initialize(p, *args, &blk)
1409
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1410
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1385
+ def initialize(app, visual, *args, &blk)
1386
+ argument_names = %w{other}
1387
+ default_params = { :other => nil }
1411
1388
  params = {}
1412
1389
  params = args.pop if args.last.is_a? Hash
1413
1390
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1414
- if params.key? :padding
1415
- value = params.delete(:padding)
1416
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1417
- end
1418
1391
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1419
1392
  params = default_params.merge(params)
1420
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1393
+ old_initialize(app, visual, params[:other], &blk)
1421
1394
  end
1422
1395
  end
1423
1396
 
1424
- class FXXBMIcon
1397
+ class FXXBMImage
1425
1398
  alias old_initialize initialize
1426
1399
  def initialize(a, *args, &blk)
1427
- argument_names = %w{pixels mask clr opts width height}
1428
- default_params = { :pixels => nil, :mask => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1400
+ argument_names = %w{pixels mask opts width height}
1401
+ default_params = { :pixels => nil, :mask => nil, :opts => 0, :width => 1, :height => 1 }
1429
1402
  params = {}
1430
1403
  params = args.pop if args.last.is_a? Hash
1431
1404
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1432
1405
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1433
1406
  params = default_params.merge(params)
1434
- old_initialize(a, params[:pixels], params[:mask], params[:clr], params[:opts], params[:width], params[:height], &blk)
1407
+ old_initialize(a, params[:pixels], params[:mask], params[:opts], params[:width], params[:height], &blk)
1435
1408
  end
1436
1409
  end
1437
1410
 
1438
- class FXMenuPane
1411
+ class FXFileSelector
1439
1412
  alias old_initialize initialize
1440
- def initialize(owner, *args, &blk)
1441
- argument_names = %w{opts}
1442
- default_params = { :opts => 0 }
1413
+ def initialize(p, *args, &blk)
1414
+ argument_names = %w{target selector opts x y width height}
1415
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1443
1416
  params = {}
1444
1417
  params = args.pop if args.last.is_a? Hash
1445
1418
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1446
1419
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1447
1420
  params = default_params.merge(params)
1448
- old_initialize(owner, params[:opts], &blk)
1421
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1449
1422
  end
1450
1423
  end
1451
1424
 
1452
- class FXVisual
1425
+ class FXTGAIcon
1453
1426
  alias old_initialize initialize
1454
- def initialize(a, flgs, *args, &blk)
1455
- argument_names = %w{d}
1456
- default_params = { :d => 32 }
1427
+ def initialize(a, *args, &blk)
1428
+ argument_names = %w{pix clr opts width height}
1429
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1457
1430
  params = {}
1458
1431
  params = args.pop if args.last.is_a? Hash
1459
1432
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1460
1433
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1461
1434
  params = default_params.merge(params)
1462
- old_initialize(a, flgs, params[:d], &blk)
1435
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1463
1436
  end
1464
1437
  end
1465
1438
 
1466
- class FXColorDialog
1439
+ class FXToolTip
1467
1440
  alias old_initialize initialize
1468
- def initialize(owner, title, *args, &blk)
1441
+ def initialize(app, *args, &blk)
1469
1442
  argument_names = %w{opts x y width height}
1470
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1443
+ default_params = { :opts => TOOLTIP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1471
1444
  params = {}
1472
1445
  params = args.pop if args.last.is_a? Hash
1473
1446
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1474
1447
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1475
1448
  params = default_params.merge(params)
1476
- old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1449
+ old_initialize(app, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1477
1450
  end
1478
1451
  end
1479
1452
 
1480
- class FXMDIChild
1453
+ class FXDirSelector
1481
1454
  alias old_initialize initialize
1482
- def initialize(p, name, *args, &blk)
1483
- argument_names = %w{ic pup opts x y width height}
1484
- default_params = { :ic => nil, :pup => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1455
+ def initialize(p, *args, &blk)
1456
+ argument_names = %w{target selector opts x y width height}
1457
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1485
1458
  params = {}
1486
1459
  params = args.pop if args.last.is_a? Hash
1487
1460
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1488
1461
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1489
1462
  params = default_params.merge(params)
1490
- old_initialize(p, name, params[:ic], params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1463
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1491
1464
  end
1492
1465
  end
1493
1466
 
1494
- class FXPacker
1467
+ class FXDialogBox
1495
1468
  alias old_initialize initialize
1496
- def initialize(parent, *args, &blk)
1469
+ def initialize(owner, title, *args, &blk)
1497
1470
  argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1498
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1471
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 4, :vSpacing => 4 }
1499
1472
  params = {}
1500
1473
  params = args.pop if args.last.is_a? Hash
1501
1474
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1505,29 +1478,29 @@ module Fox
1505
1478
  end
1506
1479
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1507
1480
  params = default_params.merge(params)
1508
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1481
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1509
1482
  end
1510
1483
  end
1511
1484
 
1512
- class FXMessageBox
1485
+ class FXDirDialog
1513
1486
  alias old_initialize initialize
1514
- def initialize(owner, caption, text, *args, &blk)
1515
- argument_names = %w{ic opts x y}
1516
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0 }
1487
+ def initialize(owner, name, *args, &blk)
1488
+ argument_names = %w{opts x y width height}
1489
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
1517
1490
  params = {}
1518
1491
  params = args.pop if args.last.is_a? Hash
1519
1492
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1520
1493
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1521
1494
  params = default_params.merge(params)
1522
- old_initialize(owner, caption, text, params[:ic], params[:opts], params[:x], params[:y], &blk)
1495
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1523
1496
  end
1524
1497
  end
1525
1498
 
1526
- class FXShutterItem
1499
+ class FXRuler
1527
1500
  alias old_initialize initialize
1528
1501
  def initialize(p, *args, &blk)
1529
- argument_names = %w{text icon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1530
- default_params = { :text => "", :icon => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1502
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1503
+ default_params = { :target => nil, :selector => 0, :opts => RULER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1531
1504
  params = {}
1532
1505
  params = args.pop if args.last.is_a? Hash
1533
1506
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1537,61 +1510,29 @@ module Fox
1537
1510
  end
1538
1511
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1539
1512
  params = default_params.merge(params)
1540
- old_initialize(p, params[:text], params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1513
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1541
1514
  end
1542
1515
  end
1543
1516
 
1544
- class FXShutter
1517
+ class FXBitmapView
1545
1518
  alias old_initialize initialize
1546
1519
  def initialize(p, *args, &blk)
1547
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1548
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1549
- params = {}
1550
- params = args.pop if args.last.is_a? Hash
1551
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1552
- if params.key? :padding
1553
- value = params.delete(:padding)
1554
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1555
- end
1556
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1557
- params = default_params.merge(params)
1558
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1559
- end
1560
- end
1561
-
1562
- class FXFileDict
1563
- alias old_initialize initialize
1564
- def initialize(app, *args, &blk)
1565
- argument_names = %w{db}
1566
- default_params = { :db => nil }
1567
- params = {}
1568
- params = args.pop if args.last.is_a? Hash
1569
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1570
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1571
- params = default_params.merge(params)
1572
- old_initialize(app, params[:db], &blk)
1573
- end
1574
- end
1575
-
1576
- class FXGIFIcon
1577
- alias old_initialize initialize
1578
- def initialize(a, *args, &blk)
1579
- argument_names = %w{pix clr opts width height}
1580
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1520
+ argument_names = %w{bmp target selector opts x y width height}
1521
+ default_params = { :bmp => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1581
1522
  params = {}
1582
1523
  params = args.pop if args.last.is_a? Hash
1583
1524
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1584
1525
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1585
1526
  params = default_params.merge(params)
1586
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1527
+ old_initialize(p, params[:bmp], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1587
1528
  end
1588
1529
  end
1589
1530
 
1590
- class FXDriveBox
1531
+ class FXText
1591
1532
  alias old_initialize initialize
1592
1533
  def initialize(p, *args, &blk)
1593
1534
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1594
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1535
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2 }
1595
1536
  params = {}
1596
1537
  params = args.pop if args.last.is_a? Hash
1597
1538
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1603,237 +1544,222 @@ module Fox
1603
1544
  params = default_params.merge(params)
1604
1545
  old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1605
1546
  end
1606
- end
1607
-
1608
- class FXScrollArea
1609
- alias old_initialize initialize
1610
- def initialize(parent, *args, &blk)
1611
- argument_names = %w{opts x y width height}
1612
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1613
- params = {}
1614
- params = args.pop if args.last.is_a? Hash
1615
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1616
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1617
- params = default_params.merge(params)
1618
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1619
- end
1620
- end
1621
-
1622
- class FXICOImage
1623
- alias old_initialize initialize
1624
- def initialize(a, *args, &blk)
1625
- argument_names = %w{pix opts width height}
1626
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1627
- params = {}
1628
- params = args.pop if args.last.is_a? Hash
1629
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1630
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1631
- params = default_params.merge(params)
1632
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1633
- end
1634
- end
1635
-
1636
- class FXDirSelector
1637
- alias old_initialize initialize
1638
- def initialize(p, *args, &blk)
1639
- argument_names = %w{target selector opts x y width height}
1640
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1547
+ alias old_findText findText
1548
+ def findText(string, *args)
1549
+ argument_names = %w{start flags}
1550
+ default_params = { :start => 0, :flags => SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT }
1641
1551
  params = {}
1642
1552
  params = args.pop if args.last.is_a? Hash
1643
1553
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1644
1554
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1645
1555
  params = default_params.merge(params)
1646
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1556
+ old_findText(string, params[:start], params[:flags])
1647
1557
  end
1648
1558
  end
1649
1559
 
1650
- class FXToolBarGrip
1560
+ class FXInputDialog
1651
1561
  alias old_initialize initialize
1652
- def initialize(p, *args, &blk)
1653
- argument_names = %w{target selector opts x y width height}
1654
- default_params = { :target => nil, :selector => 0, :opts => TOOLBARGRIP_SINGLE, :x => 0, :y => 0, :width => 0, :height => 0 }
1562
+ def initialize(owner, caption, label, *args, &blk)
1563
+ argument_names = %w{icon opts x y width height}
1564
+ default_params = { :icon => nil, :opts => INPUTDIALOG_STRING, :x => 0, :y => 0, :width => 0, :height => 0 }
1655
1565
  params = {}
1656
1566
  params = args.pop if args.last.is_a? Hash
1657
1567
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1658
1568
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1659
1569
  params = default_params.merge(params)
1660
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1570
+ old_initialize(owner, caption, label, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1661
1571
  end
1662
1572
  end
1663
1573
 
1664
- class FXMDIDeleteButton
1574
+ class FXXPMIcon
1665
1575
  alias old_initialize initialize
1666
- def initialize(p, *args, &blk)
1667
- argument_names = %w{target selector opts x y width height}
1668
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1576
+ def initialize(a, *args, &blk)
1577
+ argument_names = %w{pix clr opts width height}
1578
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1669
1579
  params = {}
1670
1580
  params = args.pop if args.last.is_a? Hash
1671
1581
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1672
1582
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1673
1583
  params = default_params.merge(params)
1674
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1584
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1675
1585
  end
1676
1586
  end
1677
1587
 
1678
- class FXMDIRestoreButton
1679
- alias old_initialize initialize
1680
- def initialize(p, *args, &blk)
1681
- argument_names = %w{target selector opts x y width height}
1682
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1588
+ class FXICOIcon
1589
+ alias old_initialize initialize
1590
+ def initialize(a, *args, &blk)
1591
+ argument_names = %w{pix clr opts width height}
1592
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1683
1593
  params = {}
1684
1594
  params = args.pop if args.last.is_a? Hash
1685
1595
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1686
1596
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1687
1597
  params = default_params.merge(params)
1688
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1598
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1689
1599
  end
1690
1600
  end
1691
1601
 
1692
- class FXMDIMaximizeButton
1602
+ class FXStatusLine
1693
1603
  alias old_initialize initialize
1694
1604
  def initialize(p, *args, &blk)
1695
- argument_names = %w{target selector opts x y width height}
1696
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1605
+ argument_names = %w{target selector}
1606
+ default_params = { :target => nil, :selector => 0 }
1697
1607
  params = {}
1698
1608
  params = args.pop if args.last.is_a? Hash
1699
1609
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1700
1610
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1701
1611
  params = default_params.merge(params)
1702
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1612
+ old_initialize(p, params[:target], params[:selector], &blk)
1703
1613
  end
1704
1614
  end
1705
1615
 
1706
- class FXMDIMinimizeButton
1616
+ class FXCanvas
1707
1617
  alias old_initialize initialize
1708
- def initialize(p, *args, &blk)
1618
+ def initialize(parent, *args, &blk)
1709
1619
  argument_names = %w{target selector opts x y width height}
1710
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1620
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1711
1621
  params = {}
1712
1622
  params = args.pop if args.last.is_a? Hash
1713
1623
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1714
1624
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1715
1625
  params = default_params.merge(params)
1716
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1626
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1717
1627
  end
1718
1628
  end
1719
1629
 
1720
- class FXMDIWindowButton
1630
+ class FXRealSlider
1721
1631
  alias old_initialize initialize
1722
- def initialize(p, pup, *args, &blk)
1723
- argument_names = %w{target selector opts x y width height}
1724
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1632
+ def initialize(p, *args, &blk)
1633
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1634
+ default_params = { :target => nil, :selector => 0, :opts => REALSLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1725
1635
  params = {}
1726
1636
  params = args.pop if args.last.is_a? Hash
1727
1637
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1638
+ if params.key? :padding
1639
+ value = params.delete(:padding)
1640
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1641
+ end
1728
1642
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1729
1643
  params = default_params.merge(params)
1730
- old_initialize(p, pup, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1644
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1731
1645
  end
1732
1646
  end
1733
1647
 
1734
- class FXMDIMenu
1648
+ class FXScrollBar
1735
1649
  alias old_initialize initialize
1736
- def initialize(owner, *args, &blk)
1737
- argument_names = %w{target}
1738
- default_params = { :target => nil }
1650
+ def initialize(p, *args, &blk)
1651
+ argument_names = %w{target selector opts x y width height}
1652
+ default_params = { :target => nil, :selector => 0, :opts => SCROLLBAR_VERTICAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1739
1653
  params = {}
1740
1654
  params = args.pop if args.last.is_a? Hash
1741
1655
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1742
1656
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1743
1657
  params = default_params.merge(params)
1744
- old_initialize(owner, params[:target], &blk)
1658
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1745
1659
  end
1746
1660
  end
1747
1661
 
1748
- class FXTIFIcon
1662
+ class FXSwitcher
1749
1663
  alias old_initialize initialize
1750
- def initialize(a, *args, &blk)
1751
- argument_names = %w{pix clr opts width height}
1752
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1664
+ def initialize(p, *args, &blk)
1665
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1666
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1753
1667
  params = {}
1754
1668
  params = args.pop if args.last.is_a? Hash
1755
1669
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1670
+ if params.key? :padding
1671
+ value = params.delete(:padding)
1672
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1673
+ end
1756
1674
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1757
1675
  params = default_params.merge(params)
1758
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1676
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1759
1677
  end
1760
1678
  end
1761
1679
 
1762
- class FXDirItem
1680
+ class FXDockTitle
1763
1681
  alias old_initialize initialize
1764
- def initialize(text, *args, &blk)
1765
- argument_names = %w{oi ci data}
1766
- default_params = { :oi => nil, :ci => nil, :data => nil }
1682
+ def initialize(p, text, *args, &blk)
1683
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1684
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL|JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1767
1685
  params = {}
1768
1686
  params = args.pop if args.last.is_a? Hash
1769
1687
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1688
+ if params.key? :padding
1689
+ value = params.delete(:padding)
1690
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1691
+ end
1770
1692
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1771
1693
  params = default_params.merge(params)
1772
- old_initialize(text, params[:oi], params[:ci], params[:data], &blk)
1694
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1773
1695
  end
1774
1696
  end
1775
1697
 
1776
- class FXDirList
1698
+ class FXColorDialog
1777
1699
  alias old_initialize initialize
1778
- def initialize(p, *args, &blk)
1779
- argument_names = %w{target selector opts x y width height}
1780
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1700
+ def initialize(owner, title, *args, &blk)
1701
+ argument_names = %w{opts x y width height}
1702
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1781
1703
  params = {}
1782
1704
  params = args.pop if args.last.is_a? Hash
1783
1705
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1784
1706
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1785
1707
  params = default_params.merge(params)
1786
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1708
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1787
1709
  end
1788
1710
  end
1789
1711
 
1790
- class FXPCXImage
1712
+ class FXMemoryStream
1791
1713
  alias old_initialize initialize
1792
- def initialize(a, *args, &blk)
1793
- argument_names = %w{pix opts width height}
1794
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1714
+ def initialize(*args, &blk)
1715
+ argument_names = %w{cont}
1716
+ default_params = { :cont => nil }
1795
1717
  params = {}
1796
1718
  params = args.pop if args.last.is_a? Hash
1797
1719
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1798
1720
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1799
1721
  params = default_params.merge(params)
1800
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1722
+ old_initialize(params[:cont], &blk)
1801
1723
  end
1802
1724
  end
1803
1725
 
1804
- class FXCanvas
1726
+ class FXProgressBar
1805
1727
  alias old_initialize initialize
1806
- def initialize(parent, *args, &blk)
1807
- argument_names = %w{target selector opts x y width height}
1808
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1728
+ def initialize(p, *args, &blk)
1729
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1730
+ default_params = { :target => nil, :selector => 0, :opts => PROGRESSBAR_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1809
1731
  params = {}
1810
1732
  params = args.pop if args.last.is_a? Hash
1811
1733
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1734
+ if params.key? :padding
1735
+ value = params.delete(:padding)
1736
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1737
+ end
1812
1738
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1813
1739
  params = default_params.merge(params)
1814
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1740
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1815
1741
  end
1816
1742
  end
1817
1743
 
1818
- class FXDataTarget
1744
+ class FXMenuRadio
1819
1745
  alias old_initialize initialize
1820
- def initialize(*args, &blk)
1821
- argument_names = %w{value target selector}
1822
- default_params = { :value => nil, :target => nil, :selector => 0 }
1746
+ def initialize(p, text, *args, &blk)
1747
+ argument_names = %w{target selector opts}
1748
+ default_params = { :target => nil, :selector => 0, :opts => 0 }
1823
1749
  params = {}
1824
1750
  params = args.pop if args.last.is_a? Hash
1825
1751
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1826
1752
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1827
1753
  params = default_params.merge(params)
1828
- old_initialize(params[:value], params[:target], params[:selector], &blk)
1754
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
1829
1755
  end
1830
1756
  end
1831
1757
 
1832
- class FXTabBar
1758
+ class FXGradientBar
1833
1759
  alias old_initialize initialize
1834
1760
  def initialize(p, *args, &blk)
1835
1761
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1836
- default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1762
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1837
1763
  params = {}
1838
1764
  params = args.pop if args.last.is_a? Hash
1839
1765
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1847,7 +1773,7 @@ module Fox
1847
1773
  end
1848
1774
  end
1849
1775
 
1850
- class FXPCXIcon
1776
+ class FXGIFIcon
1851
1777
  alias old_initialize initialize
1852
1778
  def initialize(a, *args, &blk)
1853
1779
  argument_names = %w{pix clr opts width height}
@@ -1861,11 +1787,11 @@ module Fox
1861
1787
  end
1862
1788
  end
1863
1789
 
1864
- class FXToggleButton
1790
+ class FXKnob
1865
1791
  alias old_initialize initialize
1866
- def initialize(p, text1, text2, *args, &blk)
1867
- argument_names = %w{icon1 icon2 target selector opts x y width height padLeft padRight padTop padBottom}
1868
- default_params = { :icon1 => nil, :icon2 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1792
+ def initialize(p, *args, &blk)
1793
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1794
+ default_params = { :target => nil, :selector => 0, :opts => KNOB_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1869
1795
  params = {}
1870
1796
  params = args.pop if args.last.is_a? Hash
1871
1797
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1875,15 +1801,15 @@ module Fox
1875
1801
  end
1876
1802
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1877
1803
  params = default_params.merge(params)
1878
- old_initialize(p, text1, text2, params[:icon1], params[:icon2], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1804
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1879
1805
  end
1880
1806
  end
1881
1807
 
1882
- class FXFrame
1808
+ class FXDriveBox
1883
1809
  alias old_initialize initialize
1884
- def initialize(parent, *args, &blk)
1885
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1886
- default_params = { :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1810
+ def initialize(p, *args, &blk)
1811
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1812
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1887
1813
  params = {}
1888
1814
  params = args.pop if args.last.is_a? Hash
1889
1815
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1893,89 +1819,85 @@ module Fox
1893
1819
  end
1894
1820
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1895
1821
  params = default_params.merge(params)
1896
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1822
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1897
1823
  end
1898
1824
  end
1899
1825
 
1900
- class FXToolTip
1826
+ class FXBitmap
1901
1827
  alias old_initialize initialize
1902
1828
  def initialize(app, *args, &blk)
1903
- argument_names = %w{opts x y width height}
1904
- default_params = { :opts => TOOLTIP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1829
+ argument_names = %w{pixels opts width height}
1830
+ default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
1905
1831
  params = {}
1906
1832
  params = args.pop if args.last.is_a? Hash
1907
1833
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1908
1834
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1909
1835
  params = default_params.merge(params)
1910
- old_initialize(app, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1836
+ old_initialize(app, params[:pixels], params[:opts], params[:width], params[:height], &blk)
1911
1837
  end
1912
1838
  end
1913
1839
 
1914
- class FXMenuCaption
1840
+ class FXIconItem
1915
1841
  alias old_initialize initialize
1916
- def initialize(parent, text, *args, &blk)
1917
- argument_names = %w{icon opts}
1918
- default_params = { :icon => nil, :opts => 0 }
1842
+ def initialize(text, *args, &blk)
1843
+ argument_names = %w{bigIcon miniIcon data}
1844
+ default_params = { :bigIcon => nil, :miniIcon => nil, :data => nil }
1919
1845
  params = {}
1920
1846
  params = args.pop if args.last.is_a? Hash
1921
1847
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1922
1848
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1923
1849
  params = default_params.merge(params)
1924
- old_initialize(parent, text, params[:icon], params[:opts], &blk)
1850
+ old_initialize(text, params[:bigIcon], params[:miniIcon], params[:data], &blk)
1925
1851
  end
1926
1852
  end
1927
1853
 
1928
- class FXBitmap
1854
+ class FXIconList
1929
1855
  alias old_initialize initialize
1930
- def initialize(app, *args, &blk)
1931
- argument_names = %w{pixels opts width height}
1932
- default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
1856
+ def initialize(p, *args, &blk)
1857
+ argument_names = %w{target selector opts x y width height}
1858
+ default_params = { :target => nil, :selector => 0, :opts => ICONLIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1933
1859
  params = {}
1934
1860
  params = args.pop if args.last.is_a? Hash
1935
1861
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1936
1862
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1937
1863
  params = default_params.merge(params)
1938
- old_initialize(app, params[:pixels], params[:opts], params[:width], params[:height], &blk)
1864
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1939
1865
  end
1940
1866
  end
1941
1867
 
1942
- class FX7Segment
1868
+ class FXBMPImage
1943
1869
  alias old_initialize initialize
1944
- def initialize(p, text, *args, &blk)
1945
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1946
- default_params = { :opts => SEVENSEGMENT_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1870
+ def initialize(a, *args, &blk)
1871
+ argument_names = %w{pix opts width height}
1872
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1947
1873
  params = {}
1948
1874
  params = args.pop if args.last.is_a? Hash
1949
1875
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1950
- if params.key? :padding
1951
- value = params.delete(:padding)
1952
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1953
- end
1954
1876
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1955
1877
  params = default_params.merge(params)
1956
- old_initialize(p, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1878
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1957
1879
  end
1958
1880
  end
1959
1881
 
1960
- class FXPopup
1882
+ class FXSearchDialog
1961
1883
  alias old_initialize initialize
1962
- def initialize(owner, *args, &blk)
1963
- argument_names = %w{opts x y width height}
1964
- default_params = { :opts => POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0 }
1884
+ def initialize(owner, caption, *args, &blk)
1885
+ argument_names = %w{ic opts x y width height}
1886
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1965
1887
  params = {}
1966
1888
  params = args.pop if args.last.is_a? Hash
1967
1889
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1968
1890
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1969
1891
  params = default_params.merge(params)
1970
- old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1892
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1971
1893
  end
1972
1894
  end
1973
1895
 
1974
- class FXListBox
1896
+ class FXTabBook
1975
1897
  alias old_initialize initialize
1976
1898
  def initialize(p, *args, &blk)
1977
1899
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1978
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1900
+ default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1979
1901
  params = {}
1980
1902
  params = args.pop if args.last.is_a? Hash
1981
1903
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1989,31 +1911,57 @@ module Fox
1989
1911
  end
1990
1912
  end
1991
1913
 
1992
- class FXMenuCheck
1914
+ class FXBitmapFrame
1993
1915
  alias old_initialize initialize
1994
- def initialize(p, text, *args, &blk)
1995
- argument_names = %w{target selector opts}
1996
- default_params = { :target => nil, :selector => 0, :opts => 0 }
1916
+ def initialize(p, bmp, *args, &blk)
1917
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1918
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1997
1919
  params = {}
1998
1920
  params = args.pop if args.last.is_a? Hash
1999
1921
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1922
+ if params.key? :padding
1923
+ value = params.delete(:padding)
1924
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1925
+ end
2000
1926
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2001
1927
  params = default_params.merge(params)
2002
- old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
1928
+ old_initialize(p, bmp, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2003
1929
  end
2004
1930
  end
2005
1931
 
2006
- class FXMenuCascade
1932
+ class FXLabel
2007
1933
  alias old_initialize initialize
2008
1934
  def initialize(parent, text, *args, &blk)
2009
- argument_names = %w{icon popupMenu opts}
2010
- default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1935
+ argument_names = %w{icon opts x y width height padLeft padRight padTop padBottom}
1936
+ default_params = { :icon => nil, :opts => LABEL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1937
+ params = {}
1938
+ params = args.pop if args.last.is_a? Hash
1939
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1940
+ if params.key? :padding
1941
+ value = params.delete(:padding)
1942
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1943
+ end
1944
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1945
+ params = default_params.merge(params)
1946
+ old_initialize(parent, text, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1947
+ end
1948
+ end
1949
+
1950
+ class FXGroupBox
1951
+ alias old_initialize initialize
1952
+ def initialize(parent, text, *args, &blk)
1953
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1954
+ default_params = { :opts => GROUPBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2011
1955
  params = {}
2012
1956
  params = args.pop if args.last.is_a? Hash
2013
1957
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1958
+ if params.key? :padding
1959
+ value = params.delete(:padding)
1960
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1961
+ end
2014
1962
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2015
1963
  params = default_params.merge(params)
2016
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1964
+ old_initialize(parent, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2017
1965
  end
2018
1966
  end
2019
1967
 
@@ -2031,43 +1979,43 @@ module Fox
2031
1979
  end
2032
1980
  end
2033
1981
 
2034
- class FXTextField
1982
+ class FXMenuCheck
2035
1983
  alias old_initialize initialize
2036
- def initialize(p, ncols, *args, &blk)
2037
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2038
- default_params = { :target => nil, :selector => 0, :opts => TEXTFIELD_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1984
+ def initialize(p, text, *args, &blk)
1985
+ argument_names = %w{target selector opts}
1986
+ default_params = { :target => nil, :selector => 0, :opts => 0 }
2039
1987
  params = {}
2040
1988
  params = args.pop if args.last.is_a? Hash
2041
1989
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2042
- if params.key? :padding
2043
- value = params.delete(:padding)
2044
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2045
- end
2046
1990
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2047
1991
  params = default_params.merge(params)
2048
- old_initialize(p, ncols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1992
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
2049
1993
  end
2050
1994
  end
2051
1995
 
2052
- class FXHeaderItem
1996
+ class FXSlider
2053
1997
  alias old_initialize initialize
2054
- def initialize(text, *args, &blk)
2055
- argument_names = %w{ic s ptr}
2056
- default_params = { :ic => nil, :s => 0, :ptr => nil }
1998
+ def initialize(p, *args, &blk)
1999
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2000
+ default_params = { :target => nil, :selector => 0, :opts => SLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2057
2001
  params = {}
2058
2002
  params = args.pop if args.last.is_a? Hash
2059
2003
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2004
+ if params.key? :padding
2005
+ value = params.delete(:padding)
2006
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2007
+ end
2060
2008
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2061
2009
  params = default_params.merge(params)
2062
- old_initialize(text, params[:ic], params[:s], params[:ptr], &blk)
2010
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2063
2011
  end
2064
2012
  end
2065
2013
 
2066
- class FXHeader
2014
+ class FXShutterItem
2067
2015
  alias old_initialize initialize
2068
2016
  def initialize(p, *args, &blk)
2069
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2070
- default_params = { :target => nil, :selector => 0, :opts => HEADER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2017
+ argument_names = %w{text icon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2018
+ default_params = { :text => "", :icon => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2071
2019
  params = {}
2072
2020
  params = args.pop if args.last.is_a? Hash
2073
2021
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2077,43 +2025,51 @@ module Fox
2077
2025
  end
2078
2026
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2079
2027
  params = default_params.merge(params)
2080
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2028
+ old_initialize(p, params[:text], params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2081
2029
  end
2082
2030
  end
2083
2031
 
2084
- class FXDelegator
2032
+ class FXShutter
2085
2033
  alias old_initialize initialize
2086
- def initialize(*args, &blk)
2087
- argument_names = %w{delegate}
2088
- default_params = { :delegate => nil }
2034
+ def initialize(p, *args, &blk)
2035
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2036
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2089
2037
  params = {}
2090
2038
  params = args.pop if args.last.is_a? Hash
2091
2039
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2040
+ if params.key? :padding
2041
+ value = params.delete(:padding)
2042
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2043
+ end
2092
2044
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2093
2045
  params = default_params.merge(params)
2094
- old_initialize(params[:delegate], &blk)
2046
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2095
2047
  end
2096
2048
  end
2097
2049
 
2098
- class FXDirDialog
2050
+ class FXImageFrame
2099
2051
  alias old_initialize initialize
2100
- def initialize(owner, name, *args, &blk)
2101
- argument_names = %w{opts x y width height}
2102
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
2052
+ def initialize(p, img, *args, &blk)
2053
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2054
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2103
2055
  params = {}
2104
2056
  params = args.pop if args.last.is_a? Hash
2105
2057
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2058
+ if params.key? :padding
2059
+ value = params.delete(:padding)
2060
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2061
+ end
2106
2062
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2107
2063
  params = default_params.merge(params)
2108
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2064
+ old_initialize(p, img, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2109
2065
  end
2110
2066
  end
2111
2067
 
2112
- class FXRealSpinner
2068
+ class FXTreeListBox
2113
2069
  alias old_initialize initialize
2114
- def initialize(p, cols, *args, &blk)
2070
+ def initialize(p, *args, &blk)
2115
2071
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2116
- default_params = { :target => nil, :selector => 0, :opts => REALSPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2072
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2117
2073
  params = {}
2118
2074
  params = args.pop if args.last.is_a? Hash
2119
2075
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2123,35 +2079,35 @@ module Fox
2123
2079
  end
2124
2080
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2125
2081
  params = default_params.merge(params)
2126
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2082
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2127
2083
  end
2128
2084
  end
2129
2085
 
2130
- class FXFileDialog
2086
+ class FXReplaceDialog
2131
2087
  alias old_initialize initialize
2132
- def initialize(owner, name, *args, &blk)
2133
- argument_names = %w{opts x y width height}
2134
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
2088
+ def initialize(owner, caption, *args, &blk)
2089
+ argument_names = %w{ic opts x y width height}
2090
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2135
2091
  params = {}
2136
2092
  params = args.pop if args.last.is_a? Hash
2137
2093
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2138
2094
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2139
2095
  params = default_params.merge(params)
2140
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2096
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2141
2097
  end
2142
2098
  end
2143
2099
 
2144
- class FXIconDict
2100
+ class FXMenuCaption
2145
2101
  alias old_initialize initialize
2146
- def initialize(app, *args, &blk)
2147
- argument_names = %w{path}
2148
- default_params = { :path => FXIconDict.defaultIconPath }
2102
+ def initialize(parent, text, *args, &blk)
2103
+ argument_names = %w{icon opts}
2104
+ default_params = { :icon => nil, :opts => 0 }
2149
2105
  params = {}
2150
2106
  params = args.pop if args.last.is_a? Hash
2151
2107
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2152
2108
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2153
2109
  params = default_params.merge(params)
2154
- old_initialize(app, params[:path], &blk)
2110
+ old_initialize(parent, text, params[:icon], params[:opts], &blk)
2155
2111
  end
2156
2112
  end
2157
2113
 
@@ -2169,53 +2125,61 @@ module Fox
2169
2125
  end
2170
2126
  end
2171
2127
 
2172
- class FXIcon
2128
+ class FXHorizontalFrame
2173
2129
  alias old_initialize initialize
2174
- def initialize(app, *args, &blk)
2175
- argument_names = %w{pix clr opts width height}
2176
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2130
+ def initialize(p, *args, &blk)
2131
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2132
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2177
2133
  params = {}
2178
2134
  params = args.pop if args.last.is_a? Hash
2179
2135
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2136
+ if params.key? :padding
2137
+ value = params.delete(:padding)
2138
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2139
+ end
2180
2140
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2181
2141
  params = default_params.merge(params)
2182
- old_initialize(app, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2142
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2183
2143
  end
2184
2144
  end
2185
2145
 
2186
- class FXJPGIcon
2146
+ class FXTIFImage
2187
2147
  alias old_initialize initialize
2188
2148
  def initialize(a, *args, &blk)
2189
- argument_names = %w{pix clr opts width height}
2190
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2149
+ argument_names = %w{pix opts width height}
2150
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2191
2151
  params = {}
2192
2152
  params = args.pop if args.last.is_a? Hash
2193
2153
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2194
2154
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2195
2155
  params = default_params.merge(params)
2196
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2156
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2197
2157
  end
2198
2158
  end
2199
2159
 
2200
- class FXMenuRadio
2160
+ class FXColorBar
2201
2161
  alias old_initialize initialize
2202
- def initialize(p, text, *args, &blk)
2203
- argument_names = %w{target selector opts}
2204
- default_params = { :target => nil, :selector => 0, :opts => 0 }
2162
+ def initialize(parent, *args, &blk)
2163
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2164
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2205
2165
  params = {}
2206
2166
  params = args.pop if args.last.is_a? Hash
2207
2167
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2168
+ if params.key? :padding
2169
+ value = params.delete(:padding)
2170
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2171
+ end
2208
2172
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2209
2173
  params = default_params.merge(params)
2210
- old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
2174
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2211
2175
  end
2212
2176
  end
2213
2177
 
2214
- class FXBMPIcon
2178
+ class FXPNGIcon
2215
2179
  alias old_initialize initialize
2216
2180
  def initialize(a, *args, &blk)
2217
2181
  argument_names = %w{pix clr opts width height}
2218
- default_params = { :pix => nil, :clr => FXRGB(192,192,192), :opts => 0, :width => 1, :height => 1 }
2182
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2219
2183
  params = {}
2220
2184
  params = args.pop if args.last.is_a? Hash
2221
2185
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2225,11 +2189,11 @@ module Fox
2225
2189
  end
2226
2190
  end
2227
2191
 
2228
- class FXPicker
2192
+ class FXButton
2229
2193
  alias old_initialize initialize
2230
- def initialize(p, text, *args, &blk)
2231
- argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
2232
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2194
+ def initialize(parent, text, *args, &blk)
2195
+ argument_names = %w{icon target selector opts x y width height padLeft padRight padTop padBottom}
2196
+ default_params = { :icon => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2233
2197
  params = {}
2234
2198
  params = args.pop if args.last.is_a? Hash
2235
2199
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2239,29 +2203,47 @@ module Fox
2239
2203
  end
2240
2204
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2241
2205
  params = default_params.merge(params)
2242
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2206
+ old_initialize(parent, text, params[:icon], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2243
2207
  end
2244
2208
  end
2245
2209
 
2246
- class FXChoiceBox
2210
+ class FXColorWheel
2247
2211
  alias old_initialize initialize
2248
- def initialize(owner, caption, text, icon, choices, *args, &blk)
2249
- argument_names = %w{opts x y width height}
2250
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2212
+ def initialize(p, *args, &blk)
2213
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2214
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2251
2215
  params = {}
2252
2216
  params = args.pop if args.last.is_a? Hash
2253
2217
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2218
+ if params.key? :padding
2219
+ value = params.delete(:padding)
2220
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2221
+ end
2254
2222
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2255
2223
  params = default_params.merge(params)
2256
- old_initialize(owner, caption, text, icon, choices, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2224
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2257
2225
  end
2258
2226
  end
2259
2227
 
2260
- class FXDirBox
2228
+ class FXMenuCommand
2229
+ alias old_initialize initialize
2230
+ def initialize(p, text, *args, &blk)
2231
+ argument_names = %w{ic target selector opts}
2232
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => 0 }
2233
+ params = {}
2234
+ params = args.pop if args.last.is_a? Hash
2235
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2236
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2237
+ params = default_params.merge(params)
2238
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], &blk)
2239
+ end
2240
+ end
2241
+
2242
+ class FXDial
2261
2243
  alias old_initialize initialize
2262
2244
  def initialize(p, *args, &blk)
2263
2245
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2264
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2246
+ default_params = { :target => nil, :selector => 0, :opts => DIAL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2265
2247
  params = {}
2266
2248
  params = args.pop if args.last.is_a? Hash
2267
2249
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2275,39 +2257,43 @@ module Fox
2275
2257
  end
2276
2258
  end
2277
2259
 
2278
- class FXICOIcon
2260
+ class FXDataTarget
2279
2261
  alias old_initialize initialize
2280
- def initialize(a, *args, &blk)
2281
- argument_names = %w{pix clr opts width height}
2282
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2262
+ def initialize(*args, &blk)
2263
+ argument_names = %w{value target selector}
2264
+ default_params = { :value => nil, :target => nil, :selector => 0 }
2283
2265
  params = {}
2284
2266
  params = args.pop if args.last.is_a? Hash
2285
2267
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2286
2268
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2287
2269
  params = default_params.merge(params)
2288
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2270
+ old_initialize(params[:value], params[:target], params[:selector], &blk)
2289
2271
  end
2290
2272
  end
2291
2273
 
2292
- class FXPNGIcon
2274
+ class FXArrowButton
2293
2275
  alias old_initialize initialize
2294
- def initialize(a, *args, &blk)
2295
- argument_names = %w{pix clr opts width height}
2296
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2276
+ def initialize(parent, *args, &blk)
2277
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2278
+ default_params = { :target => nil, :selector => 0, :opts => ARROW_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2297
2279
  params = {}
2298
2280
  params = args.pop if args.last.is_a? Hash
2299
2281
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2282
+ if params.key? :padding
2283
+ value = params.delete(:padding)
2284
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2285
+ end
2300
2286
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2301
2287
  params = default_params.merge(params)
2302
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2288
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2303
2289
  end
2304
2290
  end
2305
2291
 
2306
- class FXRealSlider
2292
+ class FXStatusBar
2307
2293
  alias old_initialize initialize
2308
2294
  def initialize(p, *args, &blk)
2309
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2310
- default_params = { :target => nil, :selector => 0, :opts => REALSLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2295
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2296
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => 4, :vSpacing => 0 }
2311
2297
  params = {}
2312
2298
  params = args.pop if args.last.is_a? Hash
2313
2299
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2317,57 +2303,99 @@ module Fox
2317
2303
  end
2318
2304
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2319
2305
  params = default_params.merge(params)
2320
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2306
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2321
2307
  end
2322
2308
  end
2323
2309
 
2324
- class FXImageView
2310
+ class FXTreeItem
2311
+ alias old_initialize initialize
2312
+ def initialize(text, *args, &blk)
2313
+ argument_names = %w{openIcon closedIcon data}
2314
+ default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
2315
+ params = {}
2316
+ params = args.pop if args.last.is_a? Hash
2317
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2318
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2319
+ params = default_params.merge(params)
2320
+ old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
2321
+ end
2322
+ end
2323
+
2324
+ class FXTreeList
2325
2325
  alias old_initialize initialize
2326
2326
  def initialize(p, *args, &blk)
2327
- argument_names = %w{img target selector opts x y width height}
2328
- default_params = { :img => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2327
+ argument_names = %w{target selector opts x y width height}
2328
+ default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
2329
2329
  params = {}
2330
2330
  params = args.pop if args.last.is_a? Hash
2331
2331
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2332
2332
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2333
2333
  params = default_params.merge(params)
2334
- old_initialize(p, params[:img], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2334
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2335
2335
  end
2336
2336
  end
2337
2337
 
2338
- class FXStatusLine
2338
+ class FXFoldingItem
2339
+ alias old_initialize initialize
2340
+ def initialize(text, *args, &blk)
2341
+ argument_names = %w{openIcon closedIcon data}
2342
+ default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
2343
+ params = {}
2344
+ params = args.pop if args.last.is_a? Hash
2345
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2346
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2347
+ params = default_params.merge(params)
2348
+ old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
2349
+ end
2350
+ end
2351
+
2352
+ class FXFoldingList
2339
2353
  alias old_initialize initialize
2340
2354
  def initialize(p, *args, &blk)
2341
- argument_names = %w{target selector}
2342
- default_params = { :target => nil, :selector => 0 }
2355
+ argument_names = %w{target selector opts x y width height}
2356
+ default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
2343
2357
  params = {}
2344
2358
  params = args.pop if args.last.is_a? Hash
2345
2359
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2346
2360
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2347
2361
  params = default_params.merge(params)
2348
- old_initialize(p, params[:target], params[:selector], &blk)
2362
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2349
2363
  end
2350
2364
  end
2351
2365
 
2352
- class FXSearchDialog
2366
+ class FXFileItem
2353
2367
  alias old_initialize initialize
2354
- def initialize(owner, caption, *args, &blk)
2355
- argument_names = %w{ic opts x y width height}
2356
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2368
+ def initialize(text, *args, &blk)
2369
+ argument_names = %w{bi mi ptr}
2370
+ default_params = { :bi => nil, :mi => nil, :ptr => nil }
2371
+ params = {}
2372
+ params = args.pop if args.last.is_a? Hash
2373
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2374
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2375
+ params = default_params.merge(params)
2376
+ old_initialize(text, params[:bi], params[:mi], params[:ptr], &blk)
2377
+ end
2378
+ end
2379
+
2380
+ class FXFileList
2381
+ alias old_initialize initialize
2382
+ def initialize(p, *args, &blk)
2383
+ argument_names = %w{target selector opts x y width height}
2384
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2357
2385
  params = {}
2358
2386
  params = args.pop if args.last.is_a? Hash
2359
2387
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2360
2388
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2361
2389
  params = default_params.merge(params)
2362
- old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2390
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2363
2391
  end
2364
2392
  end
2365
2393
 
2366
- class FXProgressBar
2394
+ class FXCheckButton
2367
2395
  alias old_initialize initialize
2368
- def initialize(p, *args, &blk)
2396
+ def initialize(parent, text, *args, &blk)
2369
2397
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2370
- default_params = { :target => nil, :selector => 0, :opts => PROGRESSBAR_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2398
+ default_params = { :target => nil, :selector => 0, :opts => CHECKBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2371
2399
  params = {}
2372
2400
  params = args.pop if args.last.is_a? Hash
2373
2401
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2377,205 +2405,181 @@ module Fox
2377
2405
  end
2378
2406
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2379
2407
  params = default_params.merge(params)
2380
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2408
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2381
2409
  end
2382
2410
  end
2383
2411
 
2384
- class FXComposite
2412
+ class FXMDIDeleteButton
2385
2413
  alias old_initialize initialize
2386
- def initialize(parent, *args, &blk)
2387
- argument_names = %w{opts x y width height}
2388
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2414
+ def initialize(p, *args, &blk)
2415
+ argument_names = %w{target selector opts x y width height}
2416
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
2389
2417
  params = {}
2390
2418
  params = args.pop if args.last.is_a? Hash
2391
2419
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2392
2420
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2393
2421
  params = default_params.merge(params)
2394
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2422
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2395
2423
  end
2396
2424
  end
2397
2425
 
2398
- class FXSplashWindow
2426
+ class FXMDIRestoreButton
2399
2427
  alias old_initialize initialize
2400
- def initialize(owner, icon, *args, &blk)
2401
- argument_names = %w{opts ms}
2402
- default_params = { :opts => SPLASH_SIMPLE, :ms => 5000 }
2428
+ def initialize(p, *args, &blk)
2429
+ argument_names = %w{target selector opts x y width height}
2430
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
2403
2431
  params = {}
2404
2432
  params = args.pop if args.last.is_a? Hash
2405
2433
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2406
2434
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2407
2435
  params = default_params.merge(params)
2408
- old_initialize(owner, icon, params[:opts], params[:ms], &blk)
2436
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2409
2437
  end
2410
2438
  end
2411
2439
 
2412
- class FXMenuCommand
2440
+ class FXMDIMaximizeButton
2413
2441
  alias old_initialize initialize
2414
- def initialize(p, text, *args, &blk)
2415
- argument_names = %w{ic target selector opts}
2416
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => 0 }
2442
+ def initialize(p, *args, &blk)
2443
+ argument_names = %w{target selector opts x y width height}
2444
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
2417
2445
  params = {}
2418
2446
  params = args.pop if args.last.is_a? Hash
2419
2447
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2420
2448
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2421
2449
  params = default_params.merge(params)
2422
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], &blk)
2450
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2423
2451
  end
2424
2452
  end
2425
2453
 
2426
- class FXTabItem
2454
+ class FXMDIMinimizeButton
2427
2455
  alias old_initialize initialize
2428
- def initialize(p, text, *args, &blk)
2429
- argument_names = %w{ic opts x y width height padLeft padRight padTop padBottom}
2430
- default_params = { :ic => nil, :opts => TAB_TOP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2456
+ def initialize(p, *args, &blk)
2457
+ argument_names = %w{target selector opts x y width height}
2458
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
2431
2459
  params = {}
2432
2460
  params = args.pop if args.last.is_a? Hash
2433
2461
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2434
- if params.key? :padding
2435
- value = params.delete(:padding)
2436
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2437
- end
2438
2462
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2439
2463
  params = default_params.merge(params)
2440
- old_initialize(p, text, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2464
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2441
2465
  end
2442
2466
  end
2443
2467
 
2444
- class FXColorWheel
2468
+ class FXMDIWindowButton
2445
2469
  alias old_initialize initialize
2446
- def initialize(p, *args, &blk)
2447
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2448
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2470
+ def initialize(p, pup, *args, &blk)
2471
+ argument_names = %w{target selector opts x y width height}
2472
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2449
2473
  params = {}
2450
2474
  params = args.pop if args.last.is_a? Hash
2451
2475
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2452
- if params.key? :padding
2453
- value = params.delete(:padding)
2454
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2455
- end
2456
2476
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2457
2477
  params = default_params.merge(params)
2458
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2478
+ old_initialize(p, pup, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2459
2479
  end
2460
2480
  end
2461
2481
 
2462
- class FXMemoryStream
2482
+ class FXMDIMenu
2463
2483
  alias old_initialize initialize
2464
- def initialize(*args, &blk)
2465
- argument_names = %w{cont}
2466
- default_params = { :cont => nil }
2484
+ def initialize(owner, *args, &blk)
2485
+ argument_names = %w{target}
2486
+ default_params = { :target => nil }
2467
2487
  params = {}
2468
2488
  params = args.pop if args.last.is_a? Hash
2469
2489
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2470
2490
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2471
2491
  params = default_params.merge(params)
2472
- old_initialize(params[:cont], &blk)
2492
+ old_initialize(owner, params[:target], &blk)
2473
2493
  end
2474
2494
  end
2475
2495
 
2476
- class FXImageFrame
2496
+ class FXScrollWindow
2477
2497
  alias old_initialize initialize
2478
- def initialize(p, img, *args, &blk)
2479
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2480
- default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2498
+ def initialize(p, *args, &blk)
2499
+ argument_names = %w{opts x y width height}
2500
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2481
2501
  params = {}
2482
2502
  params = args.pop if args.last.is_a? Hash
2483
2503
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2484
- if params.key? :padding
2485
- value = params.delete(:padding)
2486
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2487
- end
2488
2504
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2489
2505
  params = default_params.merge(params)
2490
- old_initialize(p, img, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2506
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2491
2507
  end
2492
2508
  end
2493
2509
 
2494
- class FXImage
2510
+ class FXGIFCursor
2495
2511
  alias old_initialize initialize
2496
- def initialize(a, *args, &blk)
2497
- argument_names = %w{pixels opts width height}
2498
- default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
2512
+ def initialize(a, pix, *args, &blk)
2513
+ argument_names = %w{hx hy}
2514
+ default_params = { :hx => -1, :hy => -1 }
2499
2515
  params = {}
2500
2516
  params = args.pop if args.last.is_a? Hash
2501
2517
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2502
2518
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2503
2519
  params = default_params.merge(params)
2504
- old_initialize(a, params[:pixels], params[:opts], params[:width], params[:height], &blk)
2520
+ old_initialize(a, pix, params[:hx], params[:hy], &blk)
2505
2521
  end
2506
2522
  end
2507
2523
 
2508
- class FXTriStateButton
2524
+ class FXScrollArea
2509
2525
  alias old_initialize initialize
2510
- def initialize(p, text1, text2, text3, *args, &blk)
2511
- argument_names = %w{icon1 icon2 icon3 target selector opts x y width height padLeft padRight padTop padBottom}
2512
- default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2526
+ def initialize(parent, *args, &blk)
2527
+ argument_names = %w{opts x y width height}
2528
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2513
2529
  params = {}
2514
2530
  params = args.pop if args.last.is_a? Hash
2515
2531
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2516
- if params.key? :padding
2517
- value = params.delete(:padding)
2518
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2519
- end
2520
2532
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2521
2533
  params = default_params.merge(params)
2522
- old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2534
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2523
2535
  end
2524
2536
  end
2525
2537
 
2526
- class FXJPGImage
2538
+ class FXFileDialog
2527
2539
  alias old_initialize initialize
2528
- def initialize(a, *args, &blk)
2529
- argument_names = %w{pix opts width height}
2530
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2540
+ def initialize(owner, name, *args, &blk)
2541
+ argument_names = %w{opts x y width height}
2542
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
2531
2543
  params = {}
2532
2544
  params = args.pop if args.last.is_a? Hash
2533
2545
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2534
2546
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2535
2547
  params = default_params.merge(params)
2536
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2548
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2537
2549
  end
2538
2550
  end
2539
2551
 
2540
- class FXKnob
2552
+ class FXComposite
2541
2553
  alias old_initialize initialize
2542
- def initialize(p, *args, &blk)
2543
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2544
- default_params = { :target => nil, :selector => 0, :opts => KNOB_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2554
+ def initialize(parent, *args, &blk)
2555
+ argument_names = %w{opts x y width height}
2556
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2545
2557
  params = {}
2546
2558
  params = args.pop if args.last.is_a? Hash
2547
2559
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2548
- if params.key? :padding
2549
- value = params.delete(:padding)
2550
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2551
- end
2552
2560
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2553
2561
  params = default_params.merge(params)
2554
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2562
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2555
2563
  end
2556
2564
  end
2557
2565
 
2558
- class FXTreeListBox
2566
+ class FXMenuTitle
2559
2567
  alias old_initialize initialize
2560
- def initialize(p, *args, &blk)
2561
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2562
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2568
+ def initialize(parent, text, *args, &blk)
2569
+ argument_names = %w{icon popupMenu opts}
2570
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
2563
2571
  params = {}
2564
2572
  params = args.pop if args.last.is_a? Hash
2565
2573
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2566
- if params.key? :padding
2567
- value = params.delete(:padding)
2568
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2569
- end
2570
2574
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2571
2575
  params = default_params.merge(params)
2572
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2576
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
2573
2577
  end
2574
2578
  end
2575
2579
 
2576
- class FXPrintDialog
2580
+ class FXChoiceBox
2577
2581
  alias old_initialize initialize
2578
- def initialize(owner, name, *args, &blk)
2582
+ def initialize(owner, caption, text, icon, choices, *args, &blk)
2579
2583
  argument_names = %w{opts x y width height}
2580
2584
  default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2581
2585
  params = {}
@@ -2583,29 +2587,29 @@ module Fox
2583
2587
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2584
2588
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2585
2589
  params = default_params.merge(params)
2586
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2590
+ old_initialize(owner, caption, text, icon, choices, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2587
2591
  end
2588
2592
  end
2589
2593
 
2590
- class FXTIFImage
2594
+ class FXDelegator
2591
2595
  alias old_initialize initialize
2592
- def initialize(a, *args, &blk)
2593
- argument_names = %w{pix opts width height}
2594
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2596
+ def initialize(*args, &blk)
2597
+ argument_names = %w{delegate}
2598
+ default_params = { :delegate => nil }
2595
2599
  params = {}
2596
2600
  params = args.pop if args.last.is_a? Hash
2597
2601
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2598
2602
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2599
2603
  params = default_params.merge(params)
2600
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2604
+ old_initialize(params[:delegate], &blk)
2601
2605
  end
2602
2606
  end
2603
2607
 
2604
- class FXRadioButton
2608
+ class FXFrame
2605
2609
  alias old_initialize initialize
2606
- def initialize(parent, text, *args, &blk)
2607
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2608
- default_params = { :target => nil, :selector => 0, :opts => RADIOBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2610
+ def initialize(parent, *args, &blk)
2611
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2612
+ default_params = { :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2609
2613
  params = {}
2610
2614
  params = args.pop if args.last.is_a? Hash
2611
2615
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2615,61 +2619,57 @@ module Fox
2615
2619
  end
2616
2620
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2617
2621
  params = default_params.merge(params)
2618
- old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2622
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2619
2623
  end
2620
2624
  end
2621
2625
 
2622
- class FXFileSelector
2626
+ class FXTIFIcon
2623
2627
  alias old_initialize initialize
2624
- def initialize(p, *args, &blk)
2625
- argument_names = %w{target selector opts x y width height}
2626
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2628
+ def initialize(a, *args, &blk)
2629
+ argument_names = %w{pix clr opts width height}
2630
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2627
2631
  params = {}
2628
2632
  params = args.pop if args.last.is_a? Hash
2629
2633
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2630
2634
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2631
2635
  params = default_params.merge(params)
2632
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2636
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2633
2637
  end
2634
2638
  end
2635
2639
 
2636
- class FXMenuSeparator
2640
+ class FXDirItem
2637
2641
  alias old_initialize initialize
2638
- def initialize(parent, *args, &blk)
2639
- argument_names = %w{opts}
2640
- default_params = { :opts => 0 }
2642
+ def initialize(text, *args, &blk)
2643
+ argument_names = %w{oi ci data}
2644
+ default_params = { :oi => nil, :ci => nil, :data => nil }
2641
2645
  params = {}
2642
2646
  params = args.pop if args.last.is_a? Hash
2643
2647
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2644
2648
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2645
2649
  params = default_params.merge(params)
2646
- old_initialize(parent, params[:opts], &blk)
2650
+ old_initialize(text, params[:oi], params[:ci], params[:data], &blk)
2647
2651
  end
2648
2652
  end
2649
2653
 
2650
- class FXGroupBox
2654
+ class FXDirList
2651
2655
  alias old_initialize initialize
2652
- def initialize(parent, text, *args, &blk)
2653
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2654
- default_params = { :opts => GROUPBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2656
+ def initialize(p, *args, &blk)
2657
+ argument_names = %w{target selector opts x y width height}
2658
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2655
2659
  params = {}
2656
2660
  params = args.pop if args.last.is_a? Hash
2657
2661
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2658
- if params.key? :padding
2659
- value = params.delete(:padding)
2660
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2661
- end
2662
2662
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2663
2663
  params = default_params.merge(params)
2664
- old_initialize(parent, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2664
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2665
2665
  end
2666
2666
  end
2667
2667
 
2668
- class FXMenuButton
2668
+ class FX7Segment
2669
2669
  alias old_initialize initialize
2670
- def initialize(parent, text, *args, &blk)
2671
- argument_names = %w{icon popupMenu opts x y width height padLeft padRight padTop padBottom}
2672
- default_params = { :icon => nil, :popupMenu => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
2670
+ def initialize(p, text, *args, &blk)
2671
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2672
+ default_params = { :opts => SEVENSEGMENT_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2673
2673
  params = {}
2674
2674
  params = args.pop if args.last.is_a? Hash
2675
2675
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2679,29 +2679,29 @@ module Fox
2679
2679
  end
2680
2680
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2681
2681
  params = default_params.merge(params)
2682
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2682
+ old_initialize(p, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2683
2683
  end
2684
2684
  end
2685
2685
 
2686
- class FXGLContext
2686
+ class FXFileDict
2687
2687
  alias old_initialize initialize
2688
- def initialize(app, visual, *args, &blk)
2689
- argument_names = %w{other}
2690
- default_params = { :other => nil }
2688
+ def initialize(app, *args, &blk)
2689
+ argument_names = %w{db}
2690
+ default_params = { :db => nil }
2691
2691
  params = {}
2692
2692
  params = args.pop if args.last.is_a? Hash
2693
2693
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2694
2694
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2695
2695
  params = default_params.merge(params)
2696
- old_initialize(app, visual, params[:other], &blk)
2696
+ old_initialize(app, params[:db], &blk)
2697
2697
  end
2698
2698
  end
2699
2699
 
2700
- class FXOption
2700
+ class FXSpinner
2701
2701
  alias old_initialize initialize
2702
- def initialize(p, text, *args, &blk)
2703
- argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
2704
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2702
+ def initialize(p, cols, *args, &blk)
2703
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2704
+ default_params = { :target => nil, :selector => 0, :opts => SPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2705
2705
  params = {}
2706
2706
  params = args.pop if args.last.is_a? Hash
2707
2707
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2711,15 +2711,15 @@ module Fox
2711
2711
  end
2712
2712
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2713
2713
  params = default_params.merge(params)
2714
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2714
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2715
2715
  end
2716
2716
  end
2717
2717
 
2718
- class FXOptionMenu
2718
+ class FXListBox
2719
2719
  alias old_initialize initialize
2720
2720
  def initialize(p, *args, &blk)
2721
- argument_names = %w{pup opts x y width height padLeft padRight padTop padBottom}
2722
- default_params = { :pup => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2721
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2722
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2723
2723
  params = {}
2724
2724
  params = args.pop if args.last.is_a? Hash
2725
2725
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2729,7 +2729,7 @@ module Fox
2729
2729
  end
2730
2730
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2731
2731
  params = default_params.merge(params)
2732
- old_initialize(p, params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2732
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2733
2733
  end
2734
2734
  end
2735
2735