fxruby 1.6.16 → 1.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. data/doc/apes02.html +2 -2
  2. data/doc/apes03.html +1 -1
  3. data/doc/book.html +1 -1
  4. data/doc/changes.html +53 -31
  5. data/doc/differences.html +9 -9
  6. data/doc/implementation.html +1 -1
  7. data/doc/library.html +5 -5
  8. data/doc/opengl.html +5 -5
  9. data/doc/pt02.html +1 -1
  10. data/doc/scintilla.html +4 -4
  11. data/doc/subversion.html +1 -1
  12. data/examples/dilbert.rb +1 -1
  13. data/ext/fox16/FXRbApp.cpp +5 -2
  14. data/ext/fox16/FXRbDataTarget.cpp +1 -1
  15. data/ext/fox16/FXRbGLViewer.cpp +1 -1
  16. data/ext/fox16/FXRuby.cpp +28 -22
  17. data/ext/fox16/core_wrap.cpp +6 -6
  18. data/ext/fox16/dc_wrap.cpp +60 -60
  19. data/ext/fox16/dialogs_wrap.cpp +17 -17
  20. data/ext/fox16/frames_wrap.cpp +3 -3
  21. data/ext/fox16/fx3d_wrap.cpp +18 -28
  22. data/ext/fox16/iconlist_wrap.cpp +6 -6
  23. data/ext/fox16/icons_wrap.cpp +26 -26
  24. data/ext/fox16/image_wrap.cpp +12 -12
  25. data/ext/fox16/include/FXMemoryBuffer.h +1 -1
  26. data/ext/fox16/include/FXRb4Splitter.h +1 -1
  27. data/ext/fox16/include/FXRb7Segment.h +1 -1
  28. data/ext/fox16/include/FXRbAccelTable.h +1 -1
  29. data/ext/fox16/include/FXRbApp.h +4 -4
  30. data/ext/fox16/include/FXRbArrowButton.h +1 -1
  31. data/ext/fox16/include/FXRbBMPIcon.h +1 -1
  32. data/ext/fox16/include/FXRbBMPImage.h +1 -1
  33. data/ext/fox16/include/FXRbBitmap.h +1 -1
  34. data/ext/fox16/include/FXRbBitmapFrame.h +1 -1
  35. data/ext/fox16/include/FXRbBitmapView.h +1 -1
  36. data/ext/fox16/include/FXRbButton.h +1 -1
  37. data/ext/fox16/include/FXRbCURCursor.h +1 -1
  38. data/ext/fox16/include/FXRbCanvas.h +1 -1
  39. data/ext/fox16/include/FXRbCheckButton.h +1 -1
  40. data/ext/fox16/include/FXRbChoiceBox.h +1 -1
  41. data/ext/fox16/include/FXRbColorBar.h +1 -1
  42. data/ext/fox16/include/FXRbColorDialog.h +1 -1
  43. data/ext/fox16/include/FXRbColorList.h +1 -1
  44. data/ext/fox16/include/FXRbColorRing.h +1 -1
  45. data/ext/fox16/include/FXRbColorSelector.h +1 -1
  46. data/ext/fox16/include/FXRbColorWell.h +1 -1
  47. data/ext/fox16/include/FXRbColorWheel.h +1 -1
  48. data/ext/fox16/include/FXRbComboBox.h +1 -1
  49. data/ext/fox16/include/FXRbCommon.h +1 -1
  50. data/ext/fox16/include/FXRbComposite.h +1 -1
  51. data/ext/fox16/include/FXRbCursor.h +1 -1
  52. data/ext/fox16/include/FXRbDC.h +1 -1
  53. data/ext/fox16/include/FXRbDCPrint.h +1 -1
  54. data/ext/fox16/include/FXRbDCWindow.h +1 -1
  55. data/ext/fox16/include/FXRbDataTarget.h +1 -1
  56. data/ext/fox16/include/FXRbDebugTarget.h +1 -1
  57. data/ext/fox16/include/FXRbDelegator.h +1 -1
  58. data/ext/fox16/include/FXRbDial.h +1 -1
  59. data/ext/fox16/include/FXRbDialogBox.h +1 -1
  60. data/ext/fox16/include/FXRbDict.h +1 -1
  61. data/ext/fox16/include/FXRbDirBox.h +1 -1
  62. data/ext/fox16/include/FXRbDirDialog.h +1 -1
  63. data/ext/fox16/include/FXRbDirList.h +1 -1
  64. data/ext/fox16/include/FXRbDirSelector.h +1 -1
  65. data/ext/fox16/include/FXRbDockBar.h +1 -1
  66. data/ext/fox16/include/FXRbDockHandler.h +1 -1
  67. data/ext/fox16/include/FXRbDockSite.h +1 -1
  68. data/ext/fox16/include/FXRbDockTitle.h +1 -1
  69. data/ext/fox16/include/FXRbDocument.h +1 -1
  70. data/ext/fox16/include/FXRbDragCorner.h +1 -1
  71. data/ext/fox16/include/FXRbDrawable.h +1 -1
  72. data/ext/fox16/include/FXRbDriveBox.h +1 -1
  73. data/ext/fox16/include/FXRbFileDialog.h +1 -1
  74. data/ext/fox16/include/FXRbFileDict.h +1 -1
  75. data/ext/fox16/include/FXRbFileList.h +1 -1
  76. data/ext/fox16/include/FXRbFileSelector.h +1 -1
  77. data/ext/fox16/include/FXRbFoldingList.h +1 -1
  78. data/ext/fox16/include/FXRbFont.h +1 -1
  79. data/ext/fox16/include/FXRbFontDialog.h +1 -1
  80. data/ext/fox16/include/FXRbFontSelector.h +1 -1
  81. data/ext/fox16/include/FXRbFrame.h +1 -1
  82. data/ext/fox16/include/FXRbGIFCursor.h +1 -1
  83. data/ext/fox16/include/FXRbGIFIcon.h +1 -1
  84. data/ext/fox16/include/FXRbGIFImage.h +1 -1
  85. data/ext/fox16/include/FXRbGLCanvas.h +1 -1
  86. data/ext/fox16/include/FXRbGLContext.h +1 -1
  87. data/ext/fox16/include/FXRbGLObject.h +1 -1
  88. data/ext/fox16/include/FXRbGLShape.h +1 -1
  89. data/ext/fox16/include/FXRbGLViewer.h +1 -1
  90. data/ext/fox16/include/FXRbGLVisual.h +1 -1
  91. data/ext/fox16/include/FXRbGradientBar.h +1 -1
  92. data/ext/fox16/include/FXRbGroupBox.h +1 -1
  93. data/ext/fox16/include/FXRbHeader.h +1 -1
  94. data/ext/fox16/include/FXRbHorizontalFrame.h +1 -1
  95. data/ext/fox16/include/FXRbICOIcon.h +1 -1
  96. data/ext/fox16/include/FXRbICOImage.h +1 -1
  97. data/ext/fox16/include/FXRbIcon.h +1 -1
  98. data/ext/fox16/include/FXRbIconList.h +1 -1
  99. data/ext/fox16/include/FXRbIconSource.h +1 -1
  100. data/ext/fox16/include/FXRbId.h +1 -1
  101. data/ext/fox16/include/FXRbImage.h +1 -1
  102. data/ext/fox16/include/FXRbImageFrame.h +1 -1
  103. data/ext/fox16/include/FXRbImageView.h +1 -1
  104. data/ext/fox16/include/FXRbInputDialog.h +1 -1
  105. data/ext/fox16/include/FXRbJPGIcon.h +1 -1
  106. data/ext/fox16/include/FXRbJPGImage.h +1 -1
  107. data/ext/fox16/include/FXRbKnob.h +1 -1
  108. data/ext/fox16/include/FXRbLabel.h +1 -1
  109. data/ext/fox16/include/FXRbList.h +1 -1
  110. data/ext/fox16/include/FXRbListBox.h +1 -1
  111. data/ext/fox16/include/FXRbMDIButton.h +1 -1
  112. data/ext/fox16/include/FXRbMDIChild.h +1 -1
  113. data/ext/fox16/include/FXRbMDIClient.h +1 -1
  114. data/ext/fox16/include/FXRbMainWindow.h +1 -1
  115. data/ext/fox16/include/FXRbMatrix.h +1 -1
  116. data/ext/fox16/include/FXRbMenuBar.h +1 -1
  117. data/ext/fox16/include/FXRbMenuButton.h +1 -1
  118. data/ext/fox16/include/FXRbMenuCaption.h +1 -1
  119. data/ext/fox16/include/FXRbMenuCascade.h +1 -1
  120. data/ext/fox16/include/FXRbMenuCheck.h +1 -1
  121. data/ext/fox16/include/FXRbMenuCommand.h +1 -1
  122. data/ext/fox16/include/FXRbMenuPane.h +1 -1
  123. data/ext/fox16/include/FXRbMenuRadio.h +1 -1
  124. data/ext/fox16/include/FXRbMenuSeparator.h +1 -1
  125. data/ext/fox16/include/FXRbMenuTitle.h +1 -1
  126. data/ext/fox16/include/FXRbMessageBox.h +1 -1
  127. data/ext/fox16/include/FXRbObject.h +1 -1
  128. data/ext/fox16/include/FXRbOptionMenu.h +1 -1
  129. data/ext/fox16/include/FXRbPCXIcon.h +1 -1
  130. data/ext/fox16/include/FXRbPCXImage.h +1 -1
  131. data/ext/fox16/include/FXRbPNGIcon.h +1 -1
  132. data/ext/fox16/include/FXRbPNGImage.h +1 -1
  133. data/ext/fox16/include/FXRbPPMIcon.h +1 -1
  134. data/ext/fox16/include/FXRbPPMImage.h +1 -1
  135. data/ext/fox16/include/FXRbPacker.h +1 -1
  136. data/ext/fox16/include/FXRbPicker.h +1 -1
  137. data/ext/fox16/include/FXRbPopup.h +1 -1
  138. data/ext/fox16/include/FXRbPrintDialog.h +1 -1
  139. data/ext/fox16/include/FXRbProgressBar.h +1 -1
  140. data/ext/fox16/include/FXRbProgressDialog.h +1 -1
  141. data/ext/fox16/include/FXRbRGBIcon.h +1 -1
  142. data/ext/fox16/include/FXRbRGBImage.h +1 -1
  143. data/ext/fox16/include/FXRbRadioButton.h +1 -1
  144. data/ext/fox16/include/FXRbRealSlider.h +1 -1
  145. data/ext/fox16/include/FXRbRealSpinner.h +1 -1
  146. data/ext/fox16/include/FXRbRecentFiles.h +1 -1
  147. data/ext/fox16/include/FXRbRegistry.h +1 -1
  148. data/ext/fox16/include/FXRbReplaceDialog.h +1 -1
  149. data/ext/fox16/include/FXRbRootWindow.h +1 -1
  150. data/ext/fox16/include/FXRbRuler.h +1 -1
  151. data/ext/fox16/include/FXRbScintilla.h +1 -1
  152. data/ext/fox16/include/FXRbScrollArea.h +1 -1
  153. data/ext/fox16/include/FXRbScrollBar.h +1 -1
  154. data/ext/fox16/include/FXRbScrollPane.h +1 -1
  155. data/ext/fox16/include/FXRbScrollWindow.h +1 -1
  156. data/ext/fox16/include/FXRbSearchDialog.h +1 -1
  157. data/ext/fox16/include/FXRbSeparator.h +1 -1
  158. data/ext/fox16/include/FXRbSettings.h +1 -1
  159. data/ext/fox16/include/FXRbShell.h +1 -1
  160. data/ext/fox16/include/FXRbShutter.h +1 -1
  161. data/ext/fox16/include/FXRbSlider.h +1 -1
  162. data/ext/fox16/include/FXRbSpinner.h +1 -1
  163. data/ext/fox16/include/FXRbSplashWindow.h +1 -1
  164. data/ext/fox16/include/FXRbSplitter.h +1 -1
  165. data/ext/fox16/include/FXRbSpring.h +1 -1
  166. data/ext/fox16/include/FXRbStatusBar.h +1 -1
  167. data/ext/fox16/include/FXRbStatusLine.h +1 -1
  168. data/ext/fox16/include/FXRbStream.h +1 -1
  169. data/ext/fox16/include/FXRbStringDict.h +1 -1
  170. data/ext/fox16/include/FXRbSwitcher.h +1 -1
  171. data/ext/fox16/include/FXRbTGAIcon.h +1 -1
  172. data/ext/fox16/include/FXRbTGAImage.h +1 -1
  173. data/ext/fox16/include/FXRbTIFIcon.h +1 -1
  174. data/ext/fox16/include/FXRbTIFImage.h +1 -1
  175. data/ext/fox16/include/FXRbTabBar.h +1 -1
  176. data/ext/fox16/include/FXRbTabBook.h +1 -1
  177. data/ext/fox16/include/FXRbTabItem.h +1 -1
  178. data/ext/fox16/include/FXRbTable.h +1 -1
  179. data/ext/fox16/include/FXRbText.h +1 -1
  180. data/ext/fox16/include/FXRbTextField.h +1 -1
  181. data/ext/fox16/include/FXRbToggleButton.h +1 -1
  182. data/ext/fox16/include/FXRbToolBar.h +1 -1
  183. data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
  184. data/ext/fox16/include/FXRbToolBarShell.h +1 -1
  185. data/ext/fox16/include/FXRbToolBarTab.h +1 -1
  186. data/ext/fox16/include/FXRbToolTip.h +1 -1
  187. data/ext/fox16/include/FXRbTopWindow.h +1 -1
  188. data/ext/fox16/include/FXRbTranslator.h +1 -1
  189. data/ext/fox16/include/FXRbTreeList.h +1 -1
  190. data/ext/fox16/include/FXRbTreeListBox.h +1 -1
  191. data/ext/fox16/include/FXRbTriStateButton.h +1 -1
  192. data/ext/fox16/include/FXRbVerticalFrame.h +1 -1
  193. data/ext/fox16/include/FXRbVisual.h +1 -1
  194. data/ext/fox16/include/FXRbWindow.h +1 -1
  195. data/ext/fox16/include/FXRbWizard.h +1 -1
  196. data/ext/fox16/include/FXRbXBMIcon.h +1 -1
  197. data/ext/fox16/include/FXRbXBMImage.h +1 -1
  198. data/ext/fox16/include/FXRbXPMIcon.h +1 -1
  199. data/ext/fox16/include/FXRbXPMImage.h +1 -1
  200. data/ext/fox16/include/FXRuby.h +1 -1
  201. data/ext/fox16/list_wrap.cpp +8 -8
  202. data/ext/fox16/markfuncs.cpp +8 -8
  203. data/ext/fox16/table_wrap.cpp +34 -16
  204. data/ext/fox16/text_wrap.cpp +1 -1
  205. data/ext/fox16/treelist_wrap.cpp +7 -7
  206. data/ext/fox16/ui_wrap.cpp +10 -10
  207. data/ext/fox16/unregisterOwnedObjects.cpp +2 -2
  208. data/lib/fox16/kwargs.rb +4 -0
  209. data/lib/fox16/version.rb +1 -1
  210. data/rdoc-sources/FXTable.rb +24 -16
  211. data/tests/TC_FXRanged.rb +42 -0
  212. data/tests/TC_FXRangef.rb +12 -18
  213. data/tests/TC_FXTable.rb +193 -0
  214. metadata +4 -3
data/tests/TC_FXTable.rb CHANGED
@@ -365,4 +365,197 @@ public
365
365
  assert_equal("(1, 0)", @table.getItemText(1, 0))
366
366
  assert_equal("(1, 1)", @table.getItemText(1, 1))
367
367
  end
368
+
369
+ def test_set_column_icon_negative_index_raises_index_error
370
+ assert_raises(IndexError) {
371
+ @table.setColumnIcon(-1, nil)
372
+ }
373
+ end
374
+
375
+ def test_set_column_icon_large_index_raises_index_error
376
+ assert_raises(IndexError) {
377
+ @table.setColumnIcon(@table.numColumns, nil)
378
+ }
379
+ end
380
+
381
+ def test_get_column_icon_negative_index_raises_index_error
382
+ assert_raises(IndexError) {
383
+ @table.getColumnIcon(-1)
384
+ }
385
+ end
386
+
387
+ def test_get_column_icon_large_index_raises_index_error
388
+ assert_raises(IndexError) {
389
+ @table.getColumnIcon(@table.numColumns)
390
+ }
391
+ end
392
+
393
+ def test_set_column_icon_position_negative_index_raises_index_error
394
+ assert_raises(IndexError) {
395
+ @table.setColumnIconPosition(-1, 0)
396
+ }
397
+ end
398
+
399
+ def test_set_column_icon_position_large_index_raises_index_error
400
+ assert_raises(IndexError) {
401
+ @table.setColumnIconPosition(@table.numColumns, 0)
402
+ }
403
+ end
404
+
405
+ def test_get_column_icon_position_negative_index_raises_index_error
406
+ assert_raises(IndexError) {
407
+ @table.getColumnIconPosition(-1)
408
+ }
409
+ end
410
+
411
+ def test_get_column_icon_position_large_index_raises_index_error
412
+ assert_raises(IndexError) {
413
+ @table.getColumnIconPosition(@table.numColumns)
414
+ }
415
+ end
416
+
417
+ def test_set_column_justify_negative_index_raises_index_error
418
+ assert_raises(IndexError) {
419
+ @table.setColumnJustify(-1, 0)
420
+ }
421
+ end
422
+
423
+ def test_set_column_justify_large_index_raises_index_error
424
+ assert_raises(IndexError) {
425
+ @table.setColumnJustify(@table.numColumns, 0)
426
+ }
427
+ end
428
+
429
+ def test_get_column_justify_negative_index_raises_index_error
430
+ assert_raises(IndexError) {
431
+ @table.getColumnJustify(-1)
432
+ }
433
+ end
434
+
435
+ def test_get_column_justify_large_index_raises_index_error
436
+ assert_raises(IndexError) {
437
+ @table.getColumnJustify(@table.numColumns)
438
+ }
439
+ end
440
+
441
+ def test_set_column_text_negative_index_raises_index_error
442
+ assert_raises(IndexError) {
443
+ @table.setColumnText(-1, "")
444
+ }
445
+ end
446
+
447
+ def test_set_column_text_large_index_raises_index_error
448
+ assert_raises(IndexError) {
449
+ @table.setColumnText(@table.numColumns, "")
450
+ }
451
+ end
452
+
453
+ def test_get_column_text_negative_index_raises_index_error
454
+ assert_raises(IndexError) {
455
+ @table.getColumnText(-1)
456
+ }
457
+ end
458
+
459
+ def test_get_column_text_large_index_raises_index_error
460
+ assert_raises(IndexError) {
461
+ @table.getColumnText(@table.numColumns)
462
+ }
463
+ end
464
+
465
+ def test_set_row_icon_negative_index_raises_index_error
466
+ assert_raises(IndexError) {
467
+ @table.setRowIcon(-1, nil)
468
+ }
469
+ end
470
+
471
+ def test_set_row_icon_large_index_raises_index_error
472
+ assert_raises(IndexError) {
473
+ @table.setRowIcon(@table.numRows, nil)
474
+ }
475
+ end
476
+
477
+ def test_get_row_icon_negative_index_raises_index_error
478
+ assert_raises(IndexError) {
479
+ @table.getRowIcon(-1)
480
+ }
481
+ end
482
+
483
+ def test_get_row_icon_large_index_raises_index_error
484
+ assert_raises(IndexError) {
485
+ @table.getRowIcon(@table.numRows)
486
+ }
487
+ end
488
+
489
+ def test_set_row_icon_position_negative_index_raises_index_error
490
+ assert_raises(IndexError) {
491
+ @table.setRowIconPosition(-1, 0)
492
+ }
493
+ end
494
+
495
+ def test_set_row_icon_position_large_index_raises_index_error
496
+ assert_raises(IndexError) {
497
+ @table.setRowIconPosition(@table.numRows, 0)
498
+ }
499
+ end
500
+
501
+ def test_get_row_icon_position_negative_index_raises_index_error
502
+ assert_raises(IndexError) {
503
+ @table.getRowIconPosition(-1)
504
+ }
505
+ end
506
+
507
+ def test_get_row_icon_position_large_index_raises_index_error
508
+ assert_raises(IndexError) {
509
+ @table.getRowIconPosition(@table.numRows)
510
+ }
511
+ end
512
+
513
+ def test_set_row_justify_negative_index_raises_index_error
514
+ assert_raises(IndexError) {
515
+ @table.setRowJustify(-1, 0)
516
+ }
517
+ end
518
+
519
+ def test_set_row_justify_large_index_raises_index_error
520
+ assert_raises(IndexError) {
521
+ @table.setRowJustify(@table.numRows, 0)
522
+ }
523
+ end
524
+
525
+ def test_get_row_justify_negative_index_raises_index_error
526
+ assert_raises(IndexError) {
527
+ @table.getRowJustify(-1)
528
+ }
529
+ end
530
+
531
+ def test_get_row_justify_large_index_raises_index_error
532
+ assert_raises(IndexError) {
533
+ @table.getRowJustify(@table.numRows)
534
+ }
535
+ end
536
+
537
+ def test_set_row_text_negative_index_raises_index_error
538
+ assert_raises(IndexError) {
539
+ @table.setRowText(-1, "")
540
+ }
541
+ end
542
+
543
+ def test_set_row_text_large_index_raises_index_error
544
+ assert_raises(IndexError) {
545
+ @table.setRowText(@table.numRows, "")
546
+ }
547
+ end
548
+
549
+ def test_get_row_text_negative_index_raises_index_error
550
+ assert_raises(IndexError) {
551
+ @table.getRowText(-1)
552
+ }
553
+ end
554
+
555
+ def test_get_row_text_large_index_raises_index_error
556
+ assert_raises(IndexError) {
557
+ @table.getRowText(@table.numRows)
558
+ }
559
+ end
560
+
368
561
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.16
4
+ version: 1.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyle Johnson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-03 00:00:00 -05:00
12
+ date: 2008-12-23 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -283,6 +283,7 @@ files:
283
283
  - tests/TC_FXPoint.rb
284
284
  - tests/TC_FXQuatf.rb
285
285
  - tests/TC_FXRadioButton.rb
286
+ - tests/TC_FXRanged.rb
286
287
  - tests/TC_FXRangef.rb
287
288
  - tests/TC_FXRectangle.rb
288
289
  - tests/TC_FXRegion.rb
@@ -797,7 +798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
797
798
  requirements:
798
799
  - FOX library version 1.6.0 or higher
799
800
  rubyforge_project:
800
- rubygems_version: 1.2.0
801
+ rubygems_version: 1.3.1
801
802
  signing_key:
802
803
  specification_version: 2
803
804
  summary: FXRuby is the Ruby binding to the FOX GUI toolkit.