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.
- data/History.txt +1 -1
- data/README.txt +10 -10
- data/Rakefile +3 -2
- data/doap.rdf +2 -2
- data/examples/babelfish.rb +2 -2
- data/examples/bounce.rb +20 -20
- data/examples/charts.rb +2 -2
- data/examples/custom_table_item.rb +3 -3
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +51 -51
- data/examples/dialog.rb +14 -14
- data/examples/dilbert.rb +4 -4
- data/examples/dirlist.rb +6 -6
- data/examples/dragdrop.rb +7 -7
- data/examples/dragsource.rb +6 -6
- data/examples/dropsite.rb +5 -5
- data/examples/foursplit.rb +6 -6
- data/examples/gltest.rb +40 -40
- data/examples/glviewer.rb +16 -16
- data/examples/groupbox.rb +41 -41
- data/examples/header.rb +6 -6
- data/examples/hello2.rb +2 -2
- data/examples/iconlist.rb +10 -10
- data/examples/image.rb +26 -26
- data/examples/imageviewer.rb +31 -31
- data/examples/inputs.rb +2 -2
- data/examples/mditest.rb +12 -12
- data/examples/pig.rb +8 -8
- data/examples/raabrowser.rb +5 -5
- data/examples/ratio.rb +9 -9
- data/examples/rulerview.rb +2 -2
- data/examples/scintilla-test.rb +6 -6
- data/examples/scribble-orig.rb +3 -3
- data/examples/scribble.rb +3 -3
- data/examples/shutter.rb +6 -6
- data/examples/splitter.rb +15 -15
- data/examples/styledtext.rb +10 -10
- data/examples/tabbook.rb +14 -14
- data/examples/table.rb +21 -21
- data/examples/textedit/helpwindow.rb +6 -6
- data/examples/textedit/textedit.rb +72 -72
- data/ext/fox16/FXRuby.cpp +48 -5
- data/ext/fox16/core_wrap.cpp +1 -1
- data/ext/fox16/iconlist_wrap.cpp +1 -1
- data/ext/fox16/icons_wrap.cpp +1 -1
- data/ext/fox16/include/FXMemoryBuffer.h +3 -3
- data/ext/fox16/include/FXRbApp.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
- data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +2 -2
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
- data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
- data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +2 -2
- data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
- data/ext/fox16/include/FXRbListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +3 -3
- data/ext/fox16/include/FXRbRulerView.h +3 -3
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +2 -2
- data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
- data/ext/fox16/include/FXRbText.h +2 -2
- data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbWindow.h +3 -3
- data/ext/fox16/include/FXRbWizard.h +2 -2
- data/ext/fox16/include/FXRuby.h +8 -4
- data/ext/fox16/librb.c +12 -12
- data/ext/fox16/list_wrap.cpp +1 -1
- data/ext/fox16/make_impl.rb +5 -5
- data/ext/fox16/markfuncs.cpp +228 -220
- data/ext/fox16/scintilla_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +4 -4
- data/ext/fox16/ui_wrap.cpp +2 -2
- data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
- data/lib/fox16/accel_table.rb +1 -1
- data/lib/fox16/aliases.rb +3 -3
- data/lib/fox16/calendar.rb +21 -21
- data/lib/fox16/chore.rb +2 -2
- data/lib/fox16/core.rb +70 -70
- data/lib/fox16/dict.rb +1 -1
- data/lib/fox16/execute_nonmodal.rb +1 -1
- data/lib/fox16/glgroup.rb +16 -16
- data/lib/fox16/glshapes.rb +26 -26
- data/lib/fox16/input.rb +4 -4
- data/lib/fox16/irb.rb +2 -2
- data/lib/fox16/iterators.rb +2 -2
- data/lib/fox16/keys.rb +34 -34
- data/lib/fox16/kwargs.rb +927 -927
- data/lib/fox16/pseudokeyboard.rb +1 -1
- data/lib/fox16/pseudomouse.rb +1 -1
- data/lib/fox16/responder2.rb +4 -4
- data/lib/fox16/scintilla.rb +2 -2
- data/lib/fox16/signal.rb +4 -4
- data/lib/fox16/splashscreen.rb +3 -3
- data/lib/fox16/timeout.rb +3 -3
- data/lib/fox16/undolist.rb +9 -9
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +9 -9
- data/rdoc-sources/FX7Segment.rb +9 -9
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +50 -50
- data/rdoc-sources/FXBMPIcon.rb +3 -3
- data/rdoc-sources/FXBMPImage.rb +2 -2
- data/rdoc-sources/FXBitmap.rb +11 -11
- data/rdoc-sources/FXBitmapFrame.rb +5 -5
- data/rdoc-sources/FXBitmapView.rb +2 -2
- data/rdoc-sources/FXButton.rb +2 -2
- data/rdoc-sources/FXCheckButton.rb +5 -5
- data/rdoc-sources/FXColorBar.rb +5 -5
- data/rdoc-sources/FXColorDialog.rb +2 -2
- data/rdoc-sources/FXColorList.rb +2 -2
- data/rdoc-sources/FXColorRing.rb +8 -8
- data/rdoc-sources/FXColorSelector.rb +4 -4
- data/rdoc-sources/FXColorWell.rb +4 -4
- data/rdoc-sources/FXColorWheel.rb +6 -6
- data/rdoc-sources/FXComboBox.rb +17 -17
- data/rdoc-sources/FXComposite.rb +2 -2
- data/rdoc-sources/FXCursor.rb +7 -7
- data/rdoc-sources/FXDC.rb +67 -67
- data/rdoc-sources/FXDCPrint.rb +22 -22
- data/rdoc-sources/FXDCWindow.rb +1 -1
- data/rdoc-sources/FXDataTarget.rb +2 -2
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +1 -1
- data/rdoc-sources/FXDial.rb +8 -8
- data/rdoc-sources/FXDict.rb +7 -7
- data/rdoc-sources/FXDirBox.rb +3 -3
- data/rdoc-sources/FXDirDialog.rb +7 -7
- data/rdoc-sources/FXDirList.rb +21 -21
- data/rdoc-sources/FXDirSelector.rb +8 -8
- data/rdoc-sources/FXDockBar.rb +5 -5
- data/rdoc-sources/FXDockHandler.rb +3 -3
- data/rdoc-sources/FXDockSite.rb +2 -2
- data/rdoc-sources/FXDockTitle.rb +3 -3
- data/rdoc-sources/FXDocument.rb +3 -3
- data/rdoc-sources/FXDragCorner.rb +3 -3
- data/rdoc-sources/FXDrawable.rb +3 -3
- data/rdoc-sources/FXDriveBox.rb +4 -4
- data/rdoc-sources/FXExtentd.rb +2 -2
- data/rdoc-sources/FXExtentf.rb +2 -2
- data/rdoc-sources/FXFileDialog.rb +21 -21
- data/rdoc-sources/FXFileDict.rb +17 -17
- data/rdoc-sources/FXFileList.rb +32 -32
- data/rdoc-sources/FXFileSelector.rb +20 -20
- data/rdoc-sources/FXFileStream.rb +1 -1
- data/rdoc-sources/FXFoldingList.rb +53 -53
- data/rdoc-sources/FXFont.rb +38 -38
- data/rdoc-sources/FXFrame.rb +11 -11
- data/rdoc-sources/FXGIFCursor.rb +3 -3
- data/rdoc-sources/FXGLCanvas.rb +2 -2
- data/rdoc-sources/FXGLContext.rb +6 -6
- data/rdoc-sources/FXGLObject.rb +6 -6
- data/rdoc-sources/FXGLShape.rb +3 -3
- data/rdoc-sources/FXGLViewer.rb +54 -54
- data/rdoc-sources/FXGLVisual.rb +13 -13
- data/rdoc-sources/FXGradientBar.rb +15 -15
- data/rdoc-sources/FXGroupBox.rb +4 -4
- data/rdoc-sources/FXHeader.rb +44 -44
- data/rdoc-sources/FXICOIcon.rb +1 -1
- data/rdoc-sources/FXICOImage.rb +1 -1
- data/rdoc-sources/FXIconDict.rb +1 -1
- data/rdoc-sources/FXIconList.rb +69 -69
- data/rdoc-sources/FXIconSource.rb +2 -2
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +11 -11
- data/rdoc-sources/FXImageFrame.rb +3 -3
- data/rdoc-sources/FXImageView.rb +2 -2
- data/rdoc-sources/FXInputDialog.rb +6 -6
- data/rdoc-sources/FXJPGIcon.rb +3 -3
- data/rdoc-sources/FXJPGImage.rb +2 -2
- data/rdoc-sources/FXKnob.rb +9 -9
- data/rdoc-sources/FXLabel.rb +8 -8
- data/rdoc-sources/FXList.rb +28 -28
- data/rdoc-sources/FXListBox.rb +21 -21
- data/rdoc-sources/FXMDIChild.rb +11 -11
- data/rdoc-sources/FXMDIClient.rb +5 -5
- data/rdoc-sources/FXMatrix.rb +6 -6
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +3 -3
- data/rdoc-sources/FXMenuBar.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +7 -7
- data/rdoc-sources/FXMenuCaption.rb +10 -10
- data/rdoc-sources/FXMenuCheck.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +1 -1
- data/rdoc-sources/FXMenuSeparator.rb +1 -1
- data/rdoc-sources/FXMessageBox.rb +3 -3
- data/rdoc-sources/FXOptionMenu.rb +9 -9
- data/rdoc-sources/FXPCXIcon.rb +2 -2
- data/rdoc-sources/FXPCXImage.rb +1 -1
- data/rdoc-sources/FXPNGIcon.rb +3 -3
- data/rdoc-sources/FXPNGImage.rb +1 -1
- data/rdoc-sources/FXPPMIcon.rb +2 -2
- data/rdoc-sources/FXPPMImage.rb +1 -1
- data/rdoc-sources/FXPacker.rb +13 -13
- data/rdoc-sources/FXPopup.rb +11 -11
- data/rdoc-sources/FXProgressBar.rb +7 -7
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +17 -17
- data/rdoc-sources/FXQuatf.rb +18 -18
- data/rdoc-sources/FXRGBIcon.rb +3 -3
- data/rdoc-sources/FXRGBImage.rb +1 -1
- data/rdoc-sources/FXRadioButton.rb +4 -4
- data/rdoc-sources/FXRanged.rb +1 -1
- data/rdoc-sources/FXRangef.rb +1 -1
- data/rdoc-sources/FXRealSlider.rb +7 -7
- data/rdoc-sources/FXRealSpinner.rb +11 -11
- data/rdoc-sources/FXRecentFiles.rb +8 -8
- data/rdoc-sources/FXRectangle.rb +12 -12
- data/rdoc-sources/FXRegion.rb +15 -15
- data/rdoc-sources/FXRegistry.rb +4 -4
- data/rdoc-sources/FXReplaceDialog.rb +3 -3
- data/rdoc-sources/FXRuler.rb +18 -18
- data/rdoc-sources/FXRulerView.rb +38 -38
- data/rdoc-sources/FXScintilla.rb +16 -16
- data/rdoc-sources/FXScrollArea.rb +9 -9
- data/rdoc-sources/FXScrollBar.rb +8 -8
- data/rdoc-sources/FXScrollPane.rb +1 -1
- data/rdoc-sources/FXScrollWindow.rb +5 -5
- data/rdoc-sources/FXSeparator.rb +1 -1
- data/rdoc-sources/FXSettings.rb +1 -1
- data/rdoc-sources/FXShutter.rb +3 -3
- data/rdoc-sources/FXSize.rb +4 -4
- data/rdoc-sources/FXSlider.rb +7 -7
- data/rdoc-sources/FXSphered.rb +21 -21
- data/rdoc-sources/FXSpheref.rb +20 -20
- data/rdoc-sources/FXSpinner.rb +12 -12
- data/rdoc-sources/FXSplashWindow.rb +1 -1
- data/rdoc-sources/FXSplitter.rb +6 -6
- data/rdoc-sources/FXSpring.rb +2 -2
- data/rdoc-sources/FXStatusBar.rb +4 -4
- data/rdoc-sources/FXStatusLine.rb +5 -5
- data/rdoc-sources/FXStream.rb +8 -8
- data/rdoc-sources/FXStringDict.rb +5 -5
- data/rdoc-sources/FXSwitcher.rb +2 -2
- data/rdoc-sources/FXTGAIcon.rb +3 -3
- data/rdoc-sources/FXTGAImage.rb +1 -1
- data/rdoc-sources/FXTIFIcon.rb +2 -2
- data/rdoc-sources/FXTIFImage.rb +2 -2
- data/rdoc-sources/FXTabBar.rb +2 -2
- data/rdoc-sources/FXTable.rb +131 -131
- data/rdoc-sources/FXText.rb +48 -48
- data/rdoc-sources/FXTextField.rb +9 -9
- data/rdoc-sources/FXToolBar.rb +1 -1
- data/rdoc-sources/FXToolBarGrip.rb +1 -1
- data/rdoc-sources/FXToolBarShell.rb +7 -7
- data/rdoc-sources/FXToolBarTab.rb +3 -3
- data/rdoc-sources/FXToolTip.rb +1 -1
- data/rdoc-sources/FXTopWindow.rb +17 -17
- data/rdoc-sources/FXTranslator.rb +5 -5
- data/rdoc-sources/FXTreeList.rb +50 -50
- data/rdoc-sources/FXTreeListBox.rb +16 -16
- data/rdoc-sources/FXVec2d.rb +5 -5
- data/rdoc-sources/FXVec2f.rb +5 -5
- data/rdoc-sources/FXVec3d.rb +8 -8
- data/rdoc-sources/FXVec3f.rb +8 -8
- data/rdoc-sources/FXVec4d.rb +8 -8
- data/rdoc-sources/FXVec4f.rb +8 -8
- data/rdoc-sources/FXVisual.rb +3 -3
- data/rdoc-sources/FXWindow.rb +99 -99
- data/rdoc-sources/FXWizard.rb +8 -8
- data/rdoc-sources/FXXBMIcon.rb +2 -2
- data/rdoc-sources/FXXBMImage.rb +1 -1
- data/rdoc-sources/FXXPMIcon.rb +2 -2
- data/rdoc-sources/FXXPMImage.rb +1 -1
- data/rdoc-sources/fxdefs.rb +17 -17
- data/scripts/generate_kwargs_lib.rb +22 -22
- data/scripts/iface.rb +1 -1
- data/swig-interfaces/FX4Splitter.i +5 -5
- data/swig-interfaces/FX7Segment.i +5 -5
- data/swig-interfaces/FXApp.i +10 -10
- data/swig-interfaces/FXBMPIcon.i +2 -2
- data/swig-interfaces/FXBitmap.i +3 -3
- data/swig-interfaces/FXBitmapFrame.i +1 -1
- data/swig-interfaces/FXBitmapView.i +1 -1
- data/swig-interfaces/FXCanvas.i +1 -1
- data/swig-interfaces/FXCheckButton.i +2 -2
- data/swig-interfaces/FXChoiceBox.i +2 -2
- data/swig-interfaces/FXColorBar.i +7 -7
- data/swig-interfaces/FXColorList.i +5 -5
- data/swig-interfaces/FXColorWell.i +1 -1
- data/swig-interfaces/FXColorWheel.i +6 -6
- data/swig-interfaces/FXComboBox.i +4 -4
- data/swig-interfaces/FXCursor.i +4 -4
- data/swig-interfaces/FXDC.i +23 -23
- data/swig-interfaces/FXDCPrint.i +5 -5
- data/swig-interfaces/FXDCWindow.i +8 -8
- data/swig-interfaces/FXDataTarget.i +5 -5
- data/swig-interfaces/FXDebugTarget.i +1 -1
- data/swig-interfaces/FXDelegator.i +3 -3
- data/swig-interfaces/FXDial.i +8 -8
- data/swig-interfaces/FXDialogBox.i +3 -3
- data/swig-interfaces/FXDict.i +14 -14
- data/swig-interfaces/FXDirBox.i +1 -1
- data/swig-interfaces/FXDirDialog.i +2 -2
- data/swig-interfaces/FXDirList.i +16 -16
- data/swig-interfaces/FXDirSelector.i +2 -2
- data/swig-interfaces/FXDockBar.i +1 -1
- data/swig-interfaces/FXDockHandler.i +1 -1
- data/swig-interfaces/FXDockSite.i +1 -1
- data/swig-interfaces/FXDockTitle.i +1 -1
- data/swig-interfaces/FXDocument.i +1 -1
- data/swig-interfaces/FXDragCorner.i +3 -3
- data/swig-interfaces/FXDriveBox.i +1 -1
- data/swig-interfaces/FXFileDialog.i +8 -8
- data/swig-interfaces/FXFileDict.i +2 -2
- data/swig-interfaces/FXFileList.i +11 -11
- data/swig-interfaces/FXFileSelector.i +4 -4
- data/swig-interfaces/FXFoldingList.i +7 -7
- data/swig-interfaces/FXFont.i +20 -20
- data/swig-interfaces/FXFrame.i +3 -3
- data/swig-interfaces/FXGLCanvas.i +3 -3
- data/swig-interfaces/FXGLContext.i +7 -7
- data/swig-interfaces/FXGLObject.i +1 -1
- data/swig-interfaces/FXGLShape.i +6 -6
- data/swig-interfaces/FXGLViewer.i +40 -40
- data/swig-interfaces/FXGLVisual.i +2 -2
- data/swig-interfaces/FXGradientBar.i +4 -4
- data/swig-interfaces/FXGroupBox.i +3 -3
- data/swig-interfaces/FXHeader.i +7 -7
- data/swig-interfaces/FXIcon.i +4 -4
- data/swig-interfaces/FXIconDict.i +1 -1
- data/swig-interfaces/FXIconList.i +46 -46
- data/swig-interfaces/FXImage.i +2 -2
- data/swig-interfaces/FXImageView.i +1 -1
- data/swig-interfaces/FXInputDialog.i +3 -3
- data/swig-interfaces/FXJPGIcon.i +3 -3
- data/swig-interfaces/FXJPGImage.i +2 -2
- data/swig-interfaces/FXKnob.i +2 -2
- data/swig-interfaces/FXLabel.i +2 -2
- data/swig-interfaces/FXList.i +35 -35
- data/swig-interfaces/FXListBox.i +5 -5
- data/swig-interfaces/FXMDIButton.i +5 -5
- data/swig-interfaces/FXMDIChild.i +12 -12
- data/swig-interfaces/FXMDIClient.i +2 -2
- data/swig-interfaces/FXMat4d.i +2 -2
- data/swig-interfaces/FXMat4f.i +5 -5
- data/swig-interfaces/FXMatrix.i +12 -12
- data/swig-interfaces/FXMemoryBuffer.i +4 -4
- data/swig-interfaces/FXMenuBar.i +3 -3
- data/swig-interfaces/FXMenuButton.i +7 -7
- data/swig-interfaces/FXMenuCaption.i +4 -4
- data/swig-interfaces/FXMenuCommand.i +1 -1
- data/swig-interfaces/FXMenuPane.i +1 -1
- data/swig-interfaces/FXMenuRadio.i +1 -1
- data/swig-interfaces/FXMenuSeparator.i +1 -1
- data/swig-interfaces/FXMessageBox.i +1 -1
- data/swig-interfaces/FXOptionMenu.i +6 -6
- data/swig-interfaces/FXPNGIcon.i +2 -2
- data/swig-interfaces/FXPPMIcon.i +2 -2
- data/swig-interfaces/FXPacker.i +6 -6
- data/swig-interfaces/FXPopup.i +13 -13
- data/swig-interfaces/FXProgressBar.i +12 -12
- data/swig-interfaces/FXProgressDialog.i +5 -5
- data/swig-interfaces/FXQuatd.i +7 -7
- data/swig-interfaces/FXQuatf.i +1 -1
- data/swig-interfaces/FXRadioButton.i +4 -4
- data/swig-interfaces/FXRanged.i +4 -4
- data/swig-interfaces/FXRangef.i +5 -5
- data/swig-interfaces/FXRealSlider.i +10 -10
- data/swig-interfaces/FXRealSpinner.i +17 -17
- data/swig-interfaces/FXRecentFiles.i +1 -1
- data/swig-interfaces/FXRegion.i +4 -4
- data/swig-interfaces/FXRegistry.i +3 -3
- data/swig-interfaces/FXReplaceDialog.i +1 -1
- data/swig-interfaces/FXScintilla.i +3 -3
- data/swig-interfaces/FXScrollArea.i +7 -7
- data/swig-interfaces/FXScrollBar.i +3 -3
- data/swig-interfaces/FXScrollWindow.i +6 -6
- data/swig-interfaces/FXSearchDialog.i +1 -1
- data/swig-interfaces/FXSeparator.i +3 -3
- data/swig-interfaces/FXSettings.i +3 -3
- data/swig-interfaces/FXShell.i +1 -1
- data/swig-interfaces/FXSlider.i +11 -11
- data/swig-interfaces/FXSphered.i +1 -1
- data/swig-interfaces/FXSpheref.i +1 -1
- data/swig-interfaces/FXSpinner.i +15 -15
- data/swig-interfaces/FXSplitter.i +6 -6
- data/swig-interfaces/FXStatusBar.i +4 -4
- data/swig-interfaces/FXStatusLine.i +5 -5
- data/swig-interfaces/FXStream.i +1 -1
- data/swig-interfaces/FXSwitcher.i +5 -5
- data/swig-interfaces/FXTabBar.i +2 -2
- data/swig-interfaces/FXTabBook.i +1 -1
- data/swig-interfaces/FXTabItem.i +4 -4
- data/swig-interfaces/FXTable.i +37 -37
- data/swig-interfaces/FXText.i +13 -13
- data/swig-interfaces/FXTextField.i +1 -1
- data/swig-interfaces/FXToggleButton.i +6 -6
- data/swig-interfaces/FXToolBar.i +4 -4
- data/swig-interfaces/FXToolBarGrip.i +3 -3
- data/swig-interfaces/FXToolBarShell.i +3 -3
- data/swig-interfaces/FXToolBarTab.i +5 -5
- data/swig-interfaces/FXToolTip.i +1 -1
- data/swig-interfaces/FXTopWindow.i +10 -10
- data/swig-interfaces/FXTreeList.i +28 -28
- data/swig-interfaces/FXTreeListBox.i +36 -36
- data/swig-interfaces/FXVec3d.i +2 -2
- data/swig-interfaces/FXVec3f.i +2 -2
- data/swig-interfaces/FXVec4d.i +1 -1
- data/swig-interfaces/FXVec4f.i +9 -9
- data/swig-interfaces/FXVerticalFrame.i +1 -1
- data/swig-interfaces/FXVisual.i +1 -1
- data/swig-interfaces/FXWindow.i +46 -46
- data/swig-interfaces/FXXPMIcon.i +1 -1
- data/swig-interfaces/FXXPMImage.i +1 -1
- data/swig-interfaces/exceptions.i +1 -1
- data/swig-interfaces/freefuncs.i +1 -1
- data/swig-interfaces/fxdefs.i +13 -13
- data/swig-interfaces/macros.i +79 -79
- data/test/TC_FXAccelTable.rb +3 -3
- data/test/TC_FXButton.rb +9 -9
- data/test/TC_FXCheckButton.rb +4 -4
- data/test/TC_FXComboBox.rb +1 -1
- data/test/TC_FXDC.rb +42 -42
- data/test/TC_FXDialogBox.rb +1 -1
- data/test/TC_FXExtentd.rb +2 -2
- data/test/TC_FXExtentf.rb +2 -2
- data/test/TC_FXFileAssoc.rb +5 -5
- data/test/TC_FXFileStream.rb +5 -5
- data/test/TC_FXFoldingList.rb +3 -3
- data/test/TC_FXFont.rb +3 -3
- data/test/TC_FXGLGroup.rb +1 -1
- data/test/TC_FXHeader.rb +3 -3
- data/test/TC_FXIconDict.rb +5 -5
- data/test/TC_FXIconList.rb +12 -12
- data/test/TC_FXImage.rb +16 -16
- data/test/TC_FXList.rb +5 -5
- data/test/TC_FXListBox.rb +1 -1
- data/test/TC_FXMainWindow.rb +2 -2
- data/test/TC_FXMat4f.rb +33 -33
- data/test/TC_FXMaterial.rb +5 -5
- data/test/TC_FXMemoryStream.rb +2 -2
- data/test/TC_FXMenuCheck.rb +5 -5
- data/test/TC_FXMessageBox.rb +3 -3
- data/test/TC_FXPoint.rb +1 -1
- data/test/TC_FXRadioButton.rb +4 -4
- data/test/TC_FXRanged.rb +3 -3
- data/test/TC_FXRangef.rb +3 -3
- data/test/TC_FXRegion.rb +1 -1
- data/test/TC_FXScrollArea.rb +1 -1
- data/test/TC_FXScrollWindow.rb +1 -1
- data/test/TC_FXSettings.rb +2 -2
- data/test/TC_FXShell.rb +2 -2
- data/test/TC_FXTopWindow.rb +2 -2
- data/test/TC_FXTreeList.rb +4 -4
- data/test/TC_FXTreeListBox.rb +3 -3
- data/test/TC_FXVec2d.rb +3 -3
- data/test/TC_FXVec2f.rb +3 -3
- data/test/TC_FXVec3d.rb +5 -5
- data/test/TC_FXVec3f.rb +5 -5
- data/test/TC_FXVec4f.rb +6 -6
- data/test/TC_Misc.rb +6 -2
- data/test/TS_All.rb +1 -17
- data/test/stress1.rb +5 -5
- data/test/stress2.rb +3 -3
- data/test/stress3.rb +12 -12
- data/test/testcase.rb +4 -4
- metadata +76 -76
data/test/TC_FXImage.rb
CHANGED
@@ -16,7 +16,7 @@ class TC_FXImage < Fox::TestCase
|
|
16
16
|
assert_equal(1, img.width)
|
17
17
|
assert_equal(1, img.height)
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def test_default_constructor_args_2
|
21
21
|
img = FXImage.new(app, nil)
|
22
22
|
assert_same(nil, img.data)
|
@@ -96,7 +96,7 @@ class TC_FXImage < Fox::TestCase
|
|
96
96
|
assert_not_nil(img.data)
|
97
97
|
assert_not_equal(0, img.options&IMAGE_OWNED)
|
98
98
|
end
|
99
|
-
|
99
|
+
|
100
100
|
# Render client-side pixel buffer into pixmap
|
101
101
|
def test_render
|
102
102
|
# Test without client-side pixel buffer
|
@@ -110,46 +110,46 @@ class TC_FXImage < Fox::TestCase
|
|
110
110
|
img.scale(2, 2, 0)
|
111
111
|
img.scale(2, 2, 1)
|
112
112
|
end
|
113
|
-
|
113
|
+
|
114
114
|
def test_mirror
|
115
115
|
end
|
116
|
-
|
116
|
+
|
117
117
|
def test_rotate
|
118
118
|
end
|
119
|
-
|
119
|
+
|
120
120
|
def test_crop
|
121
121
|
end
|
122
|
-
|
122
|
+
|
123
123
|
def test_fill
|
124
124
|
end
|
125
|
-
|
125
|
+
|
126
126
|
def test_fade
|
127
127
|
end
|
128
|
-
|
128
|
+
|
129
129
|
def test_xshear
|
130
130
|
end
|
131
|
-
|
131
|
+
|
132
132
|
def test_yshear
|
133
133
|
end
|
134
|
-
|
134
|
+
|
135
135
|
def test_hgradient
|
136
136
|
end
|
137
|
-
|
137
|
+
|
138
138
|
def test_vgradient
|
139
139
|
end
|
140
|
-
|
140
|
+
|
141
141
|
def test_gradient
|
142
142
|
end
|
143
|
-
|
143
|
+
|
144
144
|
def test_blend
|
145
145
|
end
|
146
|
-
|
146
|
+
|
147
147
|
def test_savePixels
|
148
148
|
end
|
149
|
-
|
149
|
+
|
150
150
|
def test_loadPixels
|
151
151
|
end
|
152
|
-
|
152
|
+
|
153
153
|
=end
|
154
154
|
|
155
155
|
end
|
data/test/TC_FXList.rb
CHANGED
@@ -9,12 +9,12 @@ class TC_FXList < Fox::TestCase
|
|
9
9
|
super(self.class.name)
|
10
10
|
@list = FXList.new(mainWindow)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def test_numVisible
|
14
14
|
@list.numVisible = 7
|
15
15
|
assert_equal(7, @list.numVisible)
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def test_appendItem_byItem
|
19
19
|
items = []
|
20
20
|
0.upto(4) do |i|
|
@@ -42,7 +42,7 @@ class TC_FXList < Fox::TestCase
|
|
42
42
|
@list << FXListItem.new("item3")
|
43
43
|
assert_equal(3, @list.numItems)
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
def test_appendItem_byText
|
47
47
|
assert_equal(0, @list.numItems)
|
48
48
|
itemIndex = @list.appendItem("")
|
@@ -62,7 +62,7 @@ class TC_FXList < Fox::TestCase
|
|
62
62
|
end
|
63
63
|
assert_equal(6, @list.numItems)
|
64
64
|
end
|
65
|
-
|
65
|
+
|
66
66
|
def test_getItem
|
67
67
|
assert_raises(IndexError) {
|
68
68
|
@list.getItem(0)
|
@@ -100,7 +100,7 @@ class TC_FXList < Fox::TestCase
|
|
100
100
|
assert_equal(0, @list.moveItem(0, 1))
|
101
101
|
assert_equal(1, @list.moveItem(1, 0))
|
102
102
|
end
|
103
|
-
|
103
|
+
|
104
104
|
def test_makeItemVisible
|
105
105
|
items = []
|
106
106
|
0.upto(2) { |i|
|
data/test/TC_FXListBox.rb
CHANGED
data/test/TC_FXMainWindow.rb
CHANGED
@@ -9,11 +9,11 @@ class TC_FXMainWindow < Test::Unit::TestCase
|
|
9
9
|
FXMainWindow.new(nil, "title")
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def test_non_created_app_raises_runtime_error
|
14
14
|
app = FXApp.new
|
15
15
|
assert_raise RuntimeError do
|
16
16
|
FXMainWindow.new(app, "title").create
|
17
17
|
end
|
18
18
|
end
|
19
|
-
end
|
19
|
+
end
|
data/test/TC_FXMat4f.rb
CHANGED
@@ -7,18 +7,18 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
7
7
|
def setup
|
8
8
|
@hmat = FXMat4f.new
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def test_initialize
|
12
12
|
h = FXMat4f.new
|
13
13
|
assert_instance_of(FXMat4f, h)
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def test_from_w
|
17
17
|
w = 0.0
|
18
18
|
h = FXMat4f.new(w)
|
19
19
|
assert_instance_of(FXMat4f, h)
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def test_from_elements
|
23
23
|
a00, a01, a02, a03 = 0.0, 0.0, 0.0, 0.0
|
24
24
|
a10, a11, a12, a13 = 0.0, 0.0, 0.0, 0.0
|
@@ -30,7 +30,7 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
30
30
|
a30, a31, a32, a33)
|
31
31
|
assert_instance_of(FXMat4f, h)
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
def test_from_row_vectors
|
35
35
|
a = FXVec4f.new(0.0, 0.0, 0.0, 0.0)
|
36
36
|
b = FXVec4f.new(0.0, 0.0, 0.0, 0.0)
|
@@ -39,14 +39,14 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
39
39
|
h = FXMat4f.new(a, b, c, d)
|
40
40
|
assert_instance_of(FXMat4f, h)
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
def test_copy
|
44
44
|
anotherHMat = FXMat4f.new(@hmat)
|
45
45
|
assert_instance_of(FXMat4f, anotherHMat)
|
46
46
|
assert_not_same(@hmat, anotherHMat)
|
47
47
|
# assert_equal(@hmat, anotherHMat)
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
def test_add
|
51
51
|
anotherMat = FXMat4f.new
|
52
52
|
sum1 = anotherMat + @hmat
|
@@ -55,12 +55,12 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
55
55
|
assert_instance_of(FXMat4f, sum2)
|
56
56
|
# assert_equal(sum1, sum2)
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
def test_neg
|
60
60
|
neg = -@hmat
|
61
61
|
assert_instance_of(FXMat4f, neg)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
def test_sub
|
65
65
|
anotherMat = FXMat4f.new
|
66
66
|
diff1 = anotherMat - @hmat
|
@@ -69,7 +69,7 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
69
69
|
assert_instance_of(FXMat4f, diff2)
|
70
70
|
# assert_equal(diff1, -diff2)
|
71
71
|
end
|
72
|
-
|
72
|
+
|
73
73
|
def test_mul_matrices
|
74
74
|
a = FXMat4f.new
|
75
75
|
b = FXMat4f.new
|
@@ -77,7 +77,7 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
77
77
|
assert_instance_of(FXMat4f, product)
|
78
78
|
# assert_equal(product, b*a)
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
def test_mul_by_scalar
|
82
82
|
p = FXMat4f.new.eye
|
83
83
|
q = FXMat4f.new(4.0, 0.0, 0.0, 0.0,
|
@@ -88,106 +88,106 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
88
88
|
assert_instance_of(FXMat4f, r)
|
89
89
|
# assert_equal(q, r)
|
90
90
|
end
|
91
|
-
|
91
|
+
|
92
92
|
def test_div
|
93
93
|
quotient = @hmat/2.0
|
94
94
|
assert_instance_of(FXMat4f, quotient)
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def test_det
|
98
98
|
det = @hmat.det
|
99
99
|
assert_instance_of(Float, det)
|
100
100
|
end
|
101
|
-
|
101
|
+
|
102
102
|
def test_transpose
|
103
103
|
transposed = @hmat.transpose
|
104
104
|
assert_instance_of(FXMat4f, transposed)
|
105
105
|
end
|
106
|
-
|
106
|
+
|
107
107
|
def test_invert
|
108
108
|
identity = FXMat4f.new.eye
|
109
109
|
inverted = identity.invert
|
110
110
|
assert_instance_of(FXMat4f, inverted)
|
111
111
|
end
|
112
|
-
|
112
|
+
|
113
113
|
def test_eye
|
114
114
|
eye = @hmat.eye
|
115
115
|
assert_same(@hmat, eye)
|
116
116
|
end
|
117
|
-
|
117
|
+
|
118
118
|
def test_ortho
|
119
119
|
left, right, bottom, top, hither, yon = 0.0, 1.0, 0.0, 1.0, 0.0, 1.0
|
120
120
|
ortho = @hmat.ortho(left, right, bottom, top, hither, yon)
|
121
121
|
assert_same(@hmat, ortho)
|
122
122
|
end
|
123
|
-
|
123
|
+
|
124
124
|
def test_frustum
|
125
125
|
left, right, bottom, top, hither, yon = 0.0, 1.0, 0.0, 1.0, 0.1, 1.0
|
126
126
|
frustum = @hmat.frustum(left, right, bottom, top, hither, yon)
|
127
127
|
assert_same(@hmat, frustum)
|
128
128
|
end
|
129
|
-
|
129
|
+
|
130
130
|
def test_left
|
131
131
|
left = @hmat.left
|
132
132
|
assert_same(@hmat, left)
|
133
133
|
end
|
134
|
-
|
134
|
+
|
135
135
|
def test_rot_q
|
136
136
|
q = FXQuatf.new
|
137
137
|
rot = @hmat.rot(q)
|
138
138
|
assert_same(@hmat, rot)
|
139
139
|
end
|
140
|
-
|
140
|
+
|
141
141
|
def test_rot_c_s_axis
|
142
142
|
axis = FXVec3f.new
|
143
143
|
c, s = 0.0, 0.0
|
144
144
|
rot = @hmat.rot(axis, c, s)
|
145
145
|
assert_same(@hmat, rot)
|
146
146
|
end
|
147
|
-
|
147
|
+
|
148
148
|
def test_rot_phi_axis
|
149
149
|
axis = FXVec3f.new
|
150
150
|
phi = 45.0
|
151
151
|
rot = @hmat.rot(axis, phi)
|
152
152
|
assert_same(@hmat, rot)
|
153
153
|
end
|
154
|
-
|
154
|
+
|
155
155
|
def test_xrot_c_s
|
156
156
|
c, s = 0.0, 0.0
|
157
157
|
xrot = @hmat.xrot(c, s)
|
158
158
|
assert_same(@hmat, xrot)
|
159
159
|
end
|
160
|
-
|
160
|
+
|
161
161
|
def test_xrot_phi
|
162
162
|
phi = 22.5
|
163
163
|
xrot = @hmat.xrot(phi)
|
164
164
|
assert_same(@hmat, xrot)
|
165
165
|
end
|
166
|
-
|
166
|
+
|
167
167
|
def test_yrot_c_s
|
168
168
|
c, s = 0.0, 0.0
|
169
169
|
yrot = @hmat.yrot(c, s)
|
170
170
|
assert_same(@hmat, yrot)
|
171
171
|
end
|
172
|
-
|
172
|
+
|
173
173
|
def test_yrot_phi
|
174
174
|
phi = 22.5
|
175
175
|
yrot = @hmat.yrot(phi)
|
176
176
|
assert_same(@hmat, yrot)
|
177
177
|
end
|
178
|
-
|
178
|
+
|
179
179
|
def test_zrot_c_s
|
180
180
|
c, s = 0.0, 0.0
|
181
181
|
zrot = @hmat.zrot(c, s)
|
182
182
|
assert_same(@hmat, zrot)
|
183
183
|
end
|
184
|
-
|
184
|
+
|
185
185
|
def test_zrot_phi
|
186
186
|
phi = 22.5
|
187
187
|
zrot = @hmat.zrot(phi)
|
188
188
|
assert_same(@hmat, zrot)
|
189
189
|
end
|
190
|
-
|
190
|
+
|
191
191
|
def test_look
|
192
192
|
eye = FXVec3f.new
|
193
193
|
cntr = FXVec3f.new
|
@@ -195,31 +195,31 @@ class TC_FXMat4f < Test::Unit::TestCase
|
|
195
195
|
look = @hmat.look(eye, cntr, vup)
|
196
196
|
assert_same(@hmat, look)
|
197
197
|
end
|
198
|
-
|
198
|
+
|
199
199
|
def test_trans_txyz
|
200
200
|
tx, ty, tz = 0.0, 0.0, 0.0
|
201
201
|
translated = @hmat.trans(tx, ty, tz)
|
202
202
|
assert_same(@hmat, translated)
|
203
203
|
end
|
204
|
-
|
204
|
+
|
205
205
|
def test_trans_vec
|
206
206
|
v = FXVec3f.new(0.0, 0.0, 0.0)
|
207
207
|
translated = @hmat.trans(v)
|
208
208
|
assert_same(@hmat, translated)
|
209
209
|
end
|
210
|
-
|
210
|
+
|
211
211
|
def test_scale_sxyz
|
212
212
|
sx, sy, sz = 1.0, 1.0, 1.0
|
213
213
|
scaled = @hmat.scale(sx, sy, sz)
|
214
214
|
assert_same(@hmat, scaled)
|
215
215
|
end
|
216
|
-
|
216
|
+
|
217
217
|
def test_scale_s
|
218
218
|
s = 1.0
|
219
219
|
scaled = @hmat.scale(s)
|
220
220
|
assert_same(@hmat, scaled)
|
221
221
|
end
|
222
|
-
|
222
|
+
|
223
223
|
def test_scale_vec
|
224
224
|
v = FXVec3f.new(1.0, 1.0, 1.0)
|
225
225
|
scaled = @hmat.scale(v)
|
data/test/TC_FXMaterial.rb
CHANGED
@@ -8,11 +8,11 @@ class TC_FXMaterial < Test::Unit::TestCase
|
|
8
8
|
|
9
9
|
|
10
10
|
DELTA = 1.0e-6
|
11
|
-
|
11
|
+
|
12
12
|
def setup
|
13
13
|
@mat = FXMaterial.new
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def test_ambient
|
17
17
|
@mat.ambient = [0.5, 0.6, 0.7, 0.8]
|
18
18
|
assert_in_delta(0.5, @mat.ambient[0], DELTA)
|
@@ -26,7 +26,7 @@ class TC_FXMaterial < Test::Unit::TestCase
|
|
26
26
|
assert_in_delta(0.7, @mat.ambient[2], DELTA)
|
27
27
|
assert_in_delta(0.8, @mat.ambient[3], DELTA)
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
def test_diffuse
|
31
31
|
@mat.diffuse = [0.5, 0.6, 0.7, 0.8]
|
32
32
|
assert_in_delta(0.5, @mat.diffuse[0], DELTA)
|
@@ -40,7 +40,7 @@ class TC_FXMaterial < Test::Unit::TestCase
|
|
40
40
|
assert_in_delta(0.7, @mat.diffuse[2], DELTA)
|
41
41
|
assert_in_delta(0.8, @mat.diffuse[3], DELTA)
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def test_emission
|
45
45
|
@mat.emission = [0.5, 0.6, 0.7, 0.8]
|
46
46
|
assert_in_delta(0.5, @mat.emission[0], DELTA)
|
@@ -54,7 +54,7 @@ class TC_FXMaterial < Test::Unit::TestCase
|
|
54
54
|
assert_in_delta(0.7, @mat.emission[2], DELTA)
|
55
55
|
assert_in_delta(0.8, @mat.emission[3], DELTA)
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
def test_shininess
|
59
59
|
@mat.shininess = 0.5
|
60
60
|
assert_in_delta(0.5, @mat.shininess, DELTA)
|
data/test/TC_FXMemoryStream.rb
CHANGED
@@ -8,7 +8,7 @@ class TC_FXMemoryStream < Test::Unit::TestCase
|
|
8
8
|
DEFAULT_BUFFER_SIZE = 16
|
9
9
|
|
10
10
|
private
|
11
|
-
|
11
|
+
|
12
12
|
def assert_closed(stream)
|
13
13
|
stream.open(FXStreamSave, nil) == false
|
14
14
|
end
|
@@ -89,7 +89,7 @@ class TC_FXMemoryStream < Test::Unit::TestCase
|
|
89
89
|
|
90
90
|
def test_giveBuffer
|
91
91
|
FXMemoryStream.open(FXStreamLoad, nil) do |stream|
|
92
|
-
assert_equal(DEFAULT_BUFFER_SIZE, stream.space)
|
92
|
+
assert_equal(DEFAULT_BUFFER_SIZE, stream.space)
|
93
93
|
stream.giveBuffer("foo")
|
94
94
|
assert_equal(3, stream.space)
|
95
95
|
end
|
data/test/TC_FXMenuCheck.rb
CHANGED
@@ -9,7 +9,7 @@ class TC_FXMenuCheck < Fox::TestCase
|
|
9
9
|
super(self.class.name)
|
10
10
|
@menuCheck = FXMenuCheck.new(mainWindow, "menuCheck")
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def test_setCheck_TRUE
|
14
14
|
@menuCheck.check = Fox::TRUE
|
15
15
|
assert_equal(true, @menuCheck.check)
|
@@ -18,7 +18,7 @@ class TC_FXMenuCheck < Fox::TestCase
|
|
18
18
|
assert(!@menuCheck.unchecked?)
|
19
19
|
assert(!@menuCheck.maybe?)
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def test_setCheck_FALSE
|
23
23
|
@menuCheck.check = Fox::FALSE
|
24
24
|
assert_equal(false, @menuCheck.check)
|
@@ -27,7 +27,7 @@ class TC_FXMenuCheck < Fox::TestCase
|
|
27
27
|
assert(@menuCheck.unchecked?)
|
28
28
|
assert(!@menuCheck.maybe?)
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def test_setCheck_MAYBE
|
32
32
|
@menuCheck.check = Fox::MAYBE
|
33
33
|
assert_equal(true, @menuCheck.check) # this is not a typo!
|
@@ -36,7 +36,7 @@ class TC_FXMenuCheck < Fox::TestCase
|
|
36
36
|
assert(!@menuCheck.unchecked?)
|
37
37
|
assert(@menuCheck.maybe?)
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
def test_setCheck_true
|
41
41
|
@menuCheck.check = true
|
42
42
|
assert_equal(true, @menuCheck.check)
|
@@ -45,7 +45,7 @@ class TC_FXMenuCheck < Fox::TestCase
|
|
45
45
|
assert(!@menuCheck.unchecked?)
|
46
46
|
assert(!@menuCheck.maybe?)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def test_setCheck_false
|
50
50
|
@menuCheck.check = false
|
51
51
|
assert_equal(false, @menuCheck.check)
|
data/test/TC_FXMessageBox.rb
CHANGED
@@ -8,17 +8,17 @@ class TC_FXMessageBox < Fox::TestCase
|
|
8
8
|
def setup
|
9
9
|
super(self.class.name)
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def test_construct_with_save_cancel_dontsave
|
13
13
|
assert_nothing_raised(RangeError) do
|
14
14
|
FXMessageBox.new(mainWindow, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE)
|
15
15
|
end
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def test_mbox_clicked_dontsave_defined
|
19
19
|
assert(Fox.const_defined?(:MBOX_CLICKED_DONTSAVE))
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def test_mbox_clicked_dontsave_equal_to_mbox_clicked_no
|
23
23
|
assert_equal(MBOX_CLICKED_NO, MBOX_CLICKED_DONTSAVE)
|
24
24
|
end
|
data/test/TC_FXPoint.rb
CHANGED
data/test/TC_FXRadioButton.rb
CHANGED
@@ -18,7 +18,7 @@ class TC_FXRadioButton < Fox::TestCase
|
|
18
18
|
assert(!@radioButton.unchecked?)
|
19
19
|
assert(!@radioButton.maybe?)
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def test_setCheck_FALSE
|
23
23
|
@radioButton.check = Fox::FALSE
|
24
24
|
assert_equal(false, @radioButton.check)
|
@@ -27,7 +27,7 @@ class TC_FXRadioButton < Fox::TestCase
|
|
27
27
|
assert(@radioButton.unchecked?)
|
28
28
|
assert(!@radioButton.maybe?)
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def test_setCheck_MAYBE
|
32
32
|
@radioButton.check = Fox::MAYBE
|
33
33
|
assert_equal(true, @radioButton.check) # this is not a typo!
|
@@ -36,7 +36,7 @@ class TC_FXRadioButton < Fox::TestCase
|
|
36
36
|
assert(!@radioButton.unchecked?)
|
37
37
|
assert(@radioButton.maybe?)
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
def test_setCheck_true
|
41
41
|
@radioButton.check = true
|
42
42
|
assert_equal(true, @radioButton.check)
|
@@ -45,7 +45,7 @@ class TC_FXRadioButton < Fox::TestCase
|
|
45
45
|
assert(!@radioButton.unchecked?)
|
46
46
|
assert(!@radioButton.maybe?)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def test_setCheck_false
|
50
50
|
@radioButton.check = false
|
51
51
|
assert_equal(false, @radioButton.check)
|
data/test/TC_FXRanged.rb
CHANGED
@@ -11,11 +11,11 @@ class TC_FXRanged < Test::Unit::TestCase
|
|
11
11
|
def setup
|
12
12
|
@range = FXRanged.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def test_lower_is_a_vector
|
16
16
|
assert_instance_of(FXVec3d, @range.lower)
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def test_upper_is_a_vector
|
20
20
|
assert_instance_of(FXVec3d, @range.upper)
|
21
21
|
end
|
@@ -23,7 +23,7 @@ class TC_FXRanged < Test::Unit::TestCase
|
|
23
23
|
def test_width
|
24
24
|
assert_equal(@range.width, WIDTH)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def test_height
|
28
28
|
assert_equal(@range.height, HEIGHT)
|
29
29
|
end
|
data/test/TC_FXRangef.rb
CHANGED
@@ -11,11 +11,11 @@ class TC_FXRangef < Test::Unit::TestCase
|
|
11
11
|
def setup
|
12
12
|
@range = FXRangef.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def test_lower_is_a_vector
|
16
16
|
assert_instance_of(FXVec3f, @range.lower)
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def test_upper_is_a_vector
|
20
20
|
assert_instance_of(FXVec3f, @range.upper)
|
21
21
|
end
|
@@ -23,7 +23,7 @@ class TC_FXRangef < Test::Unit::TestCase
|
|
23
23
|
def test_width
|
24
24
|
assert_equal(@range.width, WIDTH)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def test_height
|
28
28
|
assert_equal(@range.height, HEIGHT)
|
29
29
|
end
|
data/test/TC_FXRegion.rb
CHANGED
data/test/TC_FXScrollArea.rb
CHANGED
data/test/TC_FXScrollWindow.rb
CHANGED
data/test/TC_FXSettings.rb
CHANGED
@@ -9,7 +9,7 @@ class TC_FXSettings < Fox::TestCase
|
|
9
9
|
def setup
|
10
10
|
super(self.class.name)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def test_each_section_empty_settings
|
14
14
|
empty = FXSettings.new
|
15
15
|
num_sections = 0
|
@@ -18,7 +18,7 @@ class TC_FXSettings < Fox::TestCase
|
|
18
18
|
end
|
19
19
|
assert_equal(0, num_sections)
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
def test_each_section
|
23
23
|
settings = FXSettings.new
|
24
24
|
settings.writeStringEntry('sect1', 'key1', 'value1')
|
data/test/TC_FXShell.rb
CHANGED
@@ -14,11 +14,11 @@ class TC_FXShell < Test::Unit::TestCase
|
|
14
14
|
end
|
15
15
|
@mainWin = FXMainWindow.new(@app, 'TC_FXShell')
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def test_new
|
19
19
|
# Free-floating
|
20
20
|
shell1 = FXShell.new(@app, 0, 0, 0, 0, 0)
|
21
|
-
|
21
|
+
|
22
22
|
# Owned
|
23
23
|
shell2 = FXShell.new(@mainWin, 0, 0, 0, 0, 0)
|
24
24
|
assert_same(@mainWin, shell2.owner)
|
data/test/TC_FXTopWindow.rb
CHANGED
@@ -14,14 +14,14 @@ class TC_FXTopWindow < Test::Unit::TestCase
|
|
14
14
|
end
|
15
15
|
@mainWin = FXMainWindow.new(@app, 'TC_FXButton')
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def test_new
|
19
19
|
# Free-floating
|
20
20
|
top1 = FXTopWindow.new(@app, "top1", nil, nil, DECOR_ALL, 0, 0, 0, 0,
|
21
21
|
DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD,
|
22
22
|
DEFAULT_SPACING, DEFAULT_SPACING)
|
23
23
|
assert_equal("top1", top1.title)
|
24
|
-
|
24
|
+
|
25
25
|
# Owned
|
26
26
|
top2 = FXTopWindow.new(@mainWin, "top2", nil, nil, DECOR_ALL, 0, 0, 0, 0,
|
27
27
|
DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD,
|