fxruby 1.6.16 → 1.6.17
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +53 -31
- data/doc/differences.html +9 -9
- data/doc/implementation.html +1 -1
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +4 -4
- data/doc/subversion.html +1 -1
- data/examples/dilbert.rb +1 -1
- data/ext/fox16/FXRbApp.cpp +5 -2
- data/ext/fox16/FXRbDataTarget.cpp +1 -1
- data/ext/fox16/FXRbGLViewer.cpp +1 -1
- data/ext/fox16/FXRuby.cpp +28 -22
- data/ext/fox16/core_wrap.cpp +6 -6
- data/ext/fox16/dc_wrap.cpp +60 -60
- data/ext/fox16/dialogs_wrap.cpp +17 -17
- data/ext/fox16/frames_wrap.cpp +3 -3
- data/ext/fox16/fx3d_wrap.cpp +18 -28
- data/ext/fox16/iconlist_wrap.cpp +6 -6
- data/ext/fox16/icons_wrap.cpp +26 -26
- data/ext/fox16/image_wrap.cpp +12 -12
- data/ext/fox16/include/FXMemoryBuffer.h +1 -1
- data/ext/fox16/include/FXRb4Splitter.h +1 -1
- data/ext/fox16/include/FXRb7Segment.h +1 -1
- data/ext/fox16/include/FXRbAccelTable.h +1 -1
- data/ext/fox16/include/FXRbApp.h +4 -4
- data/ext/fox16/include/FXRbArrowButton.h +1 -1
- data/ext/fox16/include/FXRbBMPIcon.h +1 -1
- data/ext/fox16/include/FXRbBMPImage.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +1 -1
- data/ext/fox16/include/FXRbBitmapView.h +1 -1
- data/ext/fox16/include/FXRbButton.h +1 -1
- data/ext/fox16/include/FXRbCURCursor.h +1 -1
- data/ext/fox16/include/FXRbCanvas.h +1 -1
- data/ext/fox16/include/FXRbCheckButton.h +1 -1
- data/ext/fox16/include/FXRbChoiceBox.h +1 -1
- data/ext/fox16/include/FXRbColorBar.h +1 -1
- data/ext/fox16/include/FXRbColorDialog.h +1 -1
- data/ext/fox16/include/FXRbColorList.h +1 -1
- data/ext/fox16/include/FXRbColorRing.h +1 -1
- data/ext/fox16/include/FXRbColorSelector.h +1 -1
- data/ext/fox16/include/FXRbColorWell.h +1 -1
- data/ext/fox16/include/FXRbColorWheel.h +1 -1
- data/ext/fox16/include/FXRbComboBox.h +1 -1
- data/ext/fox16/include/FXRbCommon.h +1 -1
- data/ext/fox16/include/FXRbComposite.h +1 -1
- data/ext/fox16/include/FXRbCursor.h +1 -1
- data/ext/fox16/include/FXRbDC.h +1 -1
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDataTarget.h +1 -1
- data/ext/fox16/include/FXRbDebugTarget.h +1 -1
- data/ext/fox16/include/FXRbDelegator.h +1 -1
- data/ext/fox16/include/FXRbDial.h +1 -1
- data/ext/fox16/include/FXRbDialogBox.h +1 -1
- data/ext/fox16/include/FXRbDict.h +1 -1
- data/ext/fox16/include/FXRbDirBox.h +1 -1
- data/ext/fox16/include/FXRbDirDialog.h +1 -1
- data/ext/fox16/include/FXRbDirList.h +1 -1
- data/ext/fox16/include/FXRbDirSelector.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbDockHandler.h +1 -1
- data/ext/fox16/include/FXRbDockSite.h +1 -1
- data/ext/fox16/include/FXRbDockTitle.h +1 -1
- data/ext/fox16/include/FXRbDocument.h +1 -1
- data/ext/fox16/include/FXRbDragCorner.h +1 -1
- data/ext/fox16/include/FXRbDrawable.h +1 -1
- data/ext/fox16/include/FXRbDriveBox.h +1 -1
- data/ext/fox16/include/FXRbFileDialog.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +1 -1
- data/ext/fox16/include/FXRbFileList.h +1 -1
- data/ext/fox16/include/FXRbFileSelector.h +1 -1
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFont.h +1 -1
- data/ext/fox16/include/FXRbFontDialog.h +1 -1
- data/ext/fox16/include/FXRbFontSelector.h +1 -1
- data/ext/fox16/include/FXRbFrame.h +1 -1
- data/ext/fox16/include/FXRbGIFCursor.h +1 -1
- data/ext/fox16/include/FXRbGIFIcon.h +1 -1
- data/ext/fox16/include/FXRbGIFImage.h +1 -1
- data/ext/fox16/include/FXRbGLCanvas.h +1 -1
- data/ext/fox16/include/FXRbGLContext.h +1 -1
- data/ext/fox16/include/FXRbGLObject.h +1 -1
- data/ext/fox16/include/FXRbGLShape.h +1 -1
- data/ext/fox16/include/FXRbGLViewer.h +1 -1
- data/ext/fox16/include/FXRbGLVisual.h +1 -1
- data/ext/fox16/include/FXRbGradientBar.h +1 -1
- data/ext/fox16/include/FXRbGroupBox.h +1 -1
- data/ext/fox16/include/FXRbHeader.h +1 -1
- data/ext/fox16/include/FXRbHorizontalFrame.h +1 -1
- data/ext/fox16/include/FXRbICOIcon.h +1 -1
- data/ext/fox16/include/FXRbICOImage.h +1 -1
- data/ext/fox16/include/FXRbIcon.h +1 -1
- data/ext/fox16/include/FXRbIconList.h +1 -1
- data/ext/fox16/include/FXRbIconSource.h +1 -1
- data/ext/fox16/include/FXRbId.h +1 -1
- data/ext/fox16/include/FXRbImage.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +1 -1
- data/ext/fox16/include/FXRbImageView.h +1 -1
- data/ext/fox16/include/FXRbInputDialog.h +1 -1
- data/ext/fox16/include/FXRbJPGIcon.h +1 -1
- data/ext/fox16/include/FXRbJPGImage.h +1 -1
- data/ext/fox16/include/FXRbKnob.h +1 -1
- data/ext/fox16/include/FXRbLabel.h +1 -1
- data/ext/fox16/include/FXRbList.h +1 -1
- data/ext/fox16/include/FXRbListBox.h +1 -1
- data/ext/fox16/include/FXRbMDIButton.h +1 -1
- data/ext/fox16/include/FXRbMDIChild.h +1 -1
- data/ext/fox16/include/FXRbMDIClient.h +1 -1
- data/ext/fox16/include/FXRbMainWindow.h +1 -1
- data/ext/fox16/include/FXRbMatrix.h +1 -1
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbMenuButton.h +1 -1
- data/ext/fox16/include/FXRbMenuCaption.h +1 -1
- data/ext/fox16/include/FXRbMenuCascade.h +1 -1
- data/ext/fox16/include/FXRbMenuCheck.h +1 -1
- data/ext/fox16/include/FXRbMenuCommand.h +1 -1
- data/ext/fox16/include/FXRbMenuPane.h +1 -1
- data/ext/fox16/include/FXRbMenuRadio.h +1 -1
- data/ext/fox16/include/FXRbMenuSeparator.h +1 -1
- data/ext/fox16/include/FXRbMenuTitle.h +1 -1
- data/ext/fox16/include/FXRbMessageBox.h +1 -1
- data/ext/fox16/include/FXRbObject.h +1 -1
- data/ext/fox16/include/FXRbOptionMenu.h +1 -1
- data/ext/fox16/include/FXRbPCXIcon.h +1 -1
- data/ext/fox16/include/FXRbPCXImage.h +1 -1
- data/ext/fox16/include/FXRbPNGIcon.h +1 -1
- data/ext/fox16/include/FXRbPNGImage.h +1 -1
- data/ext/fox16/include/FXRbPPMIcon.h +1 -1
- data/ext/fox16/include/FXRbPPMImage.h +1 -1
- data/ext/fox16/include/FXRbPacker.h +1 -1
- data/ext/fox16/include/FXRbPicker.h +1 -1
- data/ext/fox16/include/FXRbPopup.h +1 -1
- data/ext/fox16/include/FXRbPrintDialog.h +1 -1
- data/ext/fox16/include/FXRbProgressBar.h +1 -1
- data/ext/fox16/include/FXRbProgressDialog.h +1 -1
- data/ext/fox16/include/FXRbRGBIcon.h +1 -1
- data/ext/fox16/include/FXRbRGBImage.h +1 -1
- data/ext/fox16/include/FXRbRadioButton.h +1 -1
- data/ext/fox16/include/FXRbRealSlider.h +1 -1
- data/ext/fox16/include/FXRbRealSpinner.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRegistry.h +1 -1
- data/ext/fox16/include/FXRbReplaceDialog.h +1 -1
- data/ext/fox16/include/FXRbRootWindow.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +1 -1
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbScrollArea.h +1 -1
- data/ext/fox16/include/FXRbScrollBar.h +1 -1
- data/ext/fox16/include/FXRbScrollPane.h +1 -1
- data/ext/fox16/include/FXRbScrollWindow.h +1 -1
- data/ext/fox16/include/FXRbSearchDialog.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +1 -1
- data/ext/fox16/include/FXRbSettings.h +1 -1
- data/ext/fox16/include/FXRbShell.h +1 -1
- data/ext/fox16/include/FXRbShutter.h +1 -1
- data/ext/fox16/include/FXRbSlider.h +1 -1
- data/ext/fox16/include/FXRbSpinner.h +1 -1
- data/ext/fox16/include/FXRbSplashWindow.h +1 -1
- data/ext/fox16/include/FXRbSplitter.h +1 -1
- data/ext/fox16/include/FXRbSpring.h +1 -1
- data/ext/fox16/include/FXRbStatusBar.h +1 -1
- data/ext/fox16/include/FXRbStatusLine.h +1 -1
- data/ext/fox16/include/FXRbStream.h +1 -1
- data/ext/fox16/include/FXRbStringDict.h +1 -1
- data/ext/fox16/include/FXRbSwitcher.h +1 -1
- data/ext/fox16/include/FXRbTGAIcon.h +1 -1
- data/ext/fox16/include/FXRbTGAImage.h +1 -1
- data/ext/fox16/include/FXRbTIFIcon.h +1 -1
- data/ext/fox16/include/FXRbTIFImage.h +1 -1
- data/ext/fox16/include/FXRbTabBar.h +1 -1
- data/ext/fox16/include/FXRbTabBook.h +1 -1
- data/ext/fox16/include/FXRbTabItem.h +1 -1
- data/ext/fox16/include/FXRbTable.h +1 -1
- data/ext/fox16/include/FXRbText.h +1 -1
- data/ext/fox16/include/FXRbTextField.h +1 -1
- data/ext/fox16/include/FXRbToggleButton.h +1 -1
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarShell.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbToolTip.h +1 -1
- data/ext/fox16/include/FXRbTopWindow.h +1 -1
- data/ext/fox16/include/FXRbTranslator.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListBox.h +1 -1
- data/ext/fox16/include/FXRbTriStateButton.h +1 -1
- data/ext/fox16/include/FXRbVerticalFrame.h +1 -1
- data/ext/fox16/include/FXRbVisual.h +1 -1
- data/ext/fox16/include/FXRbWindow.h +1 -1
- data/ext/fox16/include/FXRbWizard.h +1 -1
- data/ext/fox16/include/FXRbXBMIcon.h +1 -1
- data/ext/fox16/include/FXRbXBMImage.h +1 -1
- data/ext/fox16/include/FXRbXPMIcon.h +1 -1
- data/ext/fox16/include/FXRbXPMImage.h +1 -1
- data/ext/fox16/include/FXRuby.h +1 -1
- data/ext/fox16/list_wrap.cpp +8 -8
- data/ext/fox16/markfuncs.cpp +8 -8
- data/ext/fox16/table_wrap.cpp +34 -16
- data/ext/fox16/text_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +7 -7
- data/ext/fox16/ui_wrap.cpp +10 -10
- data/ext/fox16/unregisterOwnedObjects.cpp +2 -2
- data/lib/fox16/kwargs.rb +4 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXTable.rb +24 -16
- data/tests/TC_FXRanged.rb +42 -0
- data/tests/TC_FXRangef.rb +12 -18
- data/tests/TC_FXTable.rb +193 -0
- 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.
|
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-
|
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.
|
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.
|