fxruby 1.4.7 → 1.6.0
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.
- data/doc/apes02.html +6 -6
- data/doc/apes03.html +11 -11
- data/doc/book.html +1 -1
- data/doc/build.html +65 -67
- data/doc/ch03s02.html +7 -7
- data/doc/ch03s03.html +18 -18
- data/doc/ch03s04.html +11 -11
- data/doc/ch03s05.html +14 -14
- data/doc/ch04s02.html +14 -14
- data/doc/ch04s03.html +15 -15
- data/doc/ch04s04.html +28 -28
- data/doc/ch05s02.html +49 -49
- data/doc/ch05s03.html +8 -8
- data/doc/clipboardtut.html +45 -57
- data/doc/cvs.html +10 -10
- data/doc/differences.html +4 -4
- data/doc/dragdroptut.html +50 -50
- data/doc/events.html +11 -11
- data/doc/examples.html +48 -48
- data/doc/gems.html +38 -38
- data/doc/goals.html +4 -4
- data/doc/implementation.html +4 -4
- data/doc/infosources.html +9 -9
- data/doc/library.html +19 -19
- data/doc/opengl.html +31 -31
- data/doc/pt01.html +1 -1
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +15 -15
- data/doc/todo.html +6 -6
- data/doc/tutorial1.html +34 -34
- data/examples/babelfish.rb +1 -1
- data/examples/bounce.rb +1 -1
- data/examples/browser.rb +2 -2
- data/examples/button.rb +1 -1
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +12 -12
- data/examples/dialog.rb +1 -1
- data/examples/dilbert.rb +2 -2
- data/examples/dirlist.rb +1 -1
- data/examples/dragdrop.rb +1 -1
- data/examples/dragsource.rb +1 -1
- data/examples/dropsite.rb +1 -1
- data/examples/foursplit.rb +1 -1
- data/examples/gltest.rb +2 -2
- data/examples/glviewer.rb +4 -4
- data/examples/groupbox.rb +22 -22
- data/examples/header.rb +1 -1
- data/examples/hello.rb +1 -1
- data/examples/hello2.rb +1 -1
- data/examples/iconlist.rb +1 -1
- data/examples/image.rb +2 -2
- data/examples/imageviewer.rb +1 -1
- data/examples/inputs.rb +1 -1
- data/examples/mditest.rb +2 -2
- data/examples/pig.rb +1 -1
- data/examples/raabrowser.rb +2 -2
- data/examples/ratio.rb +2 -2
- data/examples/scintilla-test.rb +2 -2
- data/examples/scribble-orig.rb +3 -3
- data/examples/scribble.rb +1 -1
- data/examples/shutter.rb +1 -1
- data/examples/splitter.rb +36 -36
- data/examples/styledtext.rb +2 -2
- data/examples/tabbook.rb +1 -1
- data/examples/table.rb +1 -1
- data/examples/textedit/commands.rb +2 -2
- data/examples/textedit/helpwindow.rb +1 -1
- data/examples/textedit/prefdialog.rb +1 -1
- data/examples/textedit/textedit.rb +5 -3
- data/ext/{fox14 → fox16}/FXRbApp.cpp +1 -1
- data/ext/{fox14 → fox16}/FXRbDataTarget.cpp +1 -1
- data/ext/{fox14 → fox16}/FXRbGLViewer.cpp +1 -1
- data/ext/{fox14 → fox16}/FXRuby.cpp +137 -39
- data/ext/{fox14 → fox16}/MANIFEST +0 -0
- data/ext/{fox14 → fox16}/core_wrap.cpp +1177 -659
- data/ext/{fox14 → fox16}/dc_wrap.cpp +110 -3
- data/ext/{fox14 → fox16}/dialogs_wrap.cpp +381 -153
- data/ext/{fox14 → fox16}/extconf.rb +8 -8
- data/ext/{fox14 → fox16}/frames_wrap.cpp +1590 -1219
- data/ext/{fox14 → fox16}/fx3d_wrap.cpp +1060 -403
- data/ext/{fox14 → fox16}/iconlist_wrap.cpp +80 -25
- data/ext/{fox14 → fox16}/icons_wrap.cpp +296 -316
- data/ext/{fox14 → fox16}/image_wrap.cpp +267 -153
- data/ext/{fox14 → fox16}/impl.cpp +29 -0
- data/ext/{fox14 → fox16}/include/FXMemoryBuffer.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRb4Splitter.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRb7Segment.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbAccelTable.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbApp.h +3 -3
- data/ext/{fox14 → fox16}/include/FXRbAppVirtuals.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbArrowButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbBMPIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbBMPImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbBitmap.h +23 -5
- data/ext/{fox14 → fox16}/include/FXRbBitmapFrame.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbBitmapView.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbBitmapVirtuals.h +12 -2
- data/ext/{fox14 → fox16}/include/FXRbButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbCURCursor.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbCanvas.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbCheckButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbChoiceBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbColorBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbColorDialog.h +1 -1
- data/ext/fox16/include/FXRbColorList.h +84 -0
- data/ext/fox16/include/FXRbColorRing.h +51 -0
- data/ext/{fox14 → fox16}/include/FXRbColorSelector.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbColorWell.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbColorWheel.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbComboBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbCommon.h +4 -1
- data/ext/{fox14 → fox16}/include/FXRbComposite.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbCursor.h +5 -5
- data/ext/{fox14 → fox16}/include/FXRbCursorVirtuals.h +2 -2
- data/ext/{fox14 → fox16}/include/FXRbDC.h +18 -0
- data/ext/{fox14 → fox16}/include/FXRbDCPrint.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbDCVirtuals.h +9 -0
- data/ext/{fox14 → fox16}/include/FXRbDCWindow.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbDataTarget.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDebugTarget.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDelegator.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDial.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDialogBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDialogBoxVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbDict.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDirBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDirDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDirList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDirSelector.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDockBar.h +13 -13
- data/ext/{fox14 → fox16}/include/FXRbDockBarVirtuals.h +3 -3
- data/ext/{fox14 → fox16}/include/FXRbDockHandler.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDockSite.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDockSiteVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbDockTitle.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDocument.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDragCorner.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDrawable.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbDrawableVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbDriveBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFileDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFileDict.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFileDictVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbFileList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFileSelector.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFoldingItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbFoldingList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFoldingListVirtuals.h +0 -0
- data/ext/fox16/include/FXRbFont.h +183 -0
- data/ext/{fox14 → fox16}/include/FXRbFontDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbFontSelector.h +1 -1
- data/ext/fox16/include/FXRbFontVirtuals.h +55 -0
- data/ext/{fox14 → fox16}/include/FXRbFrame.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGIFCursor.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGIFIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGIFImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLCanvas.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLCanvasVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbGLContext.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLObject.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLObjectVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbGLShape.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLShapeVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbGLViewer.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGLViewerVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbGLVisual.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGradientBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbGroupBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbHeader.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbHeaderItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbHorizontalFrame.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbICOIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbICOImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbIconItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbIconList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbIconListVirtuals.h +0 -0
- data/ext/fox16/include/FXRbIconSource.h +127 -0
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +37 -0
- data/ext/{fox14 → fox16}/include/FXRbId.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbIdVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbImage.h +7 -7
- data/ext/{fox14 → fox16}/include/FXRbImageFrame.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbImageView.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbImageVirtuals.h +3 -3
- data/ext/{fox14 → fox16}/include/FXRbInputDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbJPGIcon.h +2 -2
- data/ext/{fox14 → fox16}/include/FXRbJPGImage.h +2 -2
- data/ext/fox16/include/FXRbKnob.h +51 -0
- data/ext/{fox14 → fox16}/include/FXRbLabel.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbListBox.h +5 -5
- data/ext/{fox14 → fox16}/include/FXRbListBoxVirtuals.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbListItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbListVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbMDIButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMDIChild.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMDIChildVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbMDIClient.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMDIClientVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbMainWindow.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMatrix.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuCaption.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuCascade.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuCheck.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuCommand.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuPane.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuRadio.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuSeparator.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMenuTitle.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbMessageBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbObject.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbObjectVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbOptionMenu.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPCXIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPCXImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPNGIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPNGImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPPMIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPPMImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPacker.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPicker.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPopup.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbPopupVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbPrintDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbProgressBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbProgressDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRGBIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRGBImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRadioButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRealSlider.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRealSpinner.h +5 -5
- data/ext/fox16/include/FXRbRealSpinnerVirtuals.h +3 -0
- data/ext/{fox14 → fox16}/include/FXRbRecentFiles.h +6 -3
- data/ext/{fox14 → fox16}/include/FXRbRegistry.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbReplaceDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRootWindow.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbRuler.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbScintilla.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbScrollArea.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbScrollAreaVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbScrollBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbScrollPane.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbScrollWindow.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSearchDialog.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSeparator.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSettings.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbShell.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbShutter.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbShutterVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbSlider.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSpinner.h +5 -5
- data/ext/{fox14 → fox16}/include/FXRbSpinnerVirtuals.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSplashWindow.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSplitter.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSpring.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbStatusBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbStatusLine.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbStream.h +7 -7
- data/ext/{fox14 → fox16}/include/FXRbStreamVirtuals.h +3 -3
- data/ext/{fox14 → fox16}/include/FXRbStringDict.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbSwitcher.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTGAIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTGAImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTIFIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTIFImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTabBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTabBarVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbTabBook.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTabItem.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTable.h +9 -3
- data/ext/{fox14 → fox16}/include/FXRbTableItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbTableVirtuals.h +3 -0
- data/ext/fox16/include/FXRbText.h +187 -0
- data/ext/{fox14 → fox16}/include/FXRbTextField.h +1 -1
- data/ext/fox16/include/FXRbTextVirtuals.h +52 -0
- data/ext/{fox14 → fox16}/include/FXRbToggleButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbToolBar.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbToolBarGrip.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbToolBarShell.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbToolBarTab.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbToolTip.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTopWindow.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTopWindowVirtuals.h +0 -0
- data/ext/fox16/include/FXRbTranslator.h +61 -0
- data/ext/fox16/include/FXRbTranslatorVirtuals.h +4 -0
- data/ext/{fox14 → fox16}/include/FXRbTreeItemVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbTreeList.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTreeListBox.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbTreeListBoxVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbTreeListVirtuals.h +0 -0
- data/ext/{fox14 → fox16}/include/FXRbTriStateButton.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbVerticalFrame.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbVisual.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbWindow.h +27 -9
- data/ext/{fox14 → fox16}/include/FXRbWindowVirtuals.h +13 -4
- data/ext/{fox14 → fox16}/include/FXRbWizard.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbXBMIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbXBMImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbXPMIcon.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRbXPMImage.h +1 -1
- data/ext/{fox14 → fox16}/include/FXRuby.h +43 -18
- data/ext/{fox14 → fox16}/include/impl.h +5 -0
- data/ext/{fox14 → fox16}/include/inlinestubs.h +29 -0
- data/ext/{fox14 → fox16}/label_wrap.cpp +319 -122
- data/ext/{fox14 → fox16}/layout_wrap.cpp +443 -153
- data/ext/{fox14 → fox16}/librb.c +0 -0
- data/ext/{fox14 → fox16}/list_wrap.cpp +660 -44
- data/ext/{fox14 → fox16}/markfuncs.cpp +38 -8
- data/ext/{fox14 → fox16}/mdi_wrap.cpp +253 -109
- data/ext/{fox14 → fox16}/menu_wrap.cpp +342 -146
- data/ext/{fox14 → fox16}/scintilla_wrap.cpp +58 -39
- data/ext/{fox14 → fox16}/table_wrap.cpp +294 -82
- data/ext/{fox14 → fox16}/text_wrap.cpp +203 -193
- data/ext/{fox14 → fox16}/treelist_wrap.cpp +125 -60
- data/ext/{fox14 → fox16}/ui_wrap.cpp +993 -714
- data/ext/{fox14 → fox16}/unregisterOwnedObjects.cpp +6 -1
- data/lib/{fox14 → fox16}/aliases.rb +119 -46
- data/lib/{fox14 → fox16}/calendar.rb +2 -2
- data/lib/{fox14 → fox16}/chore.rb +6 -22
- data/lib/{fox14 → fox16}/colors.rb +1 -1
- data/lib/{fox14 → fox16}/core.rb +122 -4
- data/lib/{fox14 → fox16}/dict.rb +0 -0
- data/lib/{fox14 → fox16}/execute_nonmodal.rb +0 -0
- data/lib/{fox14 → fox16}/glgroup.rb +4 -2
- data/lib/{fox14 → fox16}/glshapes.rb +1 -1
- data/lib/{fox14 → fox16}/input.rb +1 -1
- data/lib/{fox14 → fox16}/irb.rb +1 -1
- data/lib/{fox14 → fox16}/iterators.rb +1 -1
- data/lib/{fox14 → fox16}/keys.rb +2 -2
- data/lib/{fox14 → fox16}/missingdep.rb +1 -1
- data/lib/{fox14 → fox16}/pseudokeyboard.rb +1 -1
- data/lib/{fox14 → fox16}/pseudomouse.rb +1 -1
- data/lib/{fox14 → fox16}/responder.rb +1 -1
- data/lib/{fox14 → fox16}/responder2.rb +5 -5
- data/lib/{fox14 → fox16}/scintilla.rb +249 -12
- data/lib/{fox14 → fox16}/settings.rb +0 -0
- data/lib/{fox14 → fox16}/signal.rb +1 -1
- data/lib/{fox14 → fox16}/splashscreen.rb +2 -2
- data/lib/{fox14 → fox16}/timeout.rb +10 -37
- data/lib/{fox14 → fox16}/undolist.rb +2 -2
- data/lib/{fox14 → fox16}/version.rb +2 -2
- data/rdoc-sources/FX4Splitter.rb +24 -6
- data/rdoc-sources/FX7Segment.rb +6 -0
- data/rdoc-sources/FXAccelTable.rb +35 -0
- data/rdoc-sources/FXApp.rb +113 -1
- data/rdoc-sources/FXBMPIcon.rb +5 -0
- data/rdoc-sources/FXBMPImage.rb +5 -0
- data/rdoc-sources/FXBitmap.rb +23 -1
- data/rdoc-sources/FXCheckButton.rb +7 -0
- data/rdoc-sources/FXColorList.rb +55 -0
- data/rdoc-sources/FXColorRing.rb +49 -0
- data/rdoc-sources/FXColorWheel.rb +22 -2
- data/rdoc-sources/FXComboBox.rb +10 -0
- data/rdoc-sources/FXDC.rb +18 -0
- data/rdoc-sources/FXDial.rb +34 -1
- data/rdoc-sources/FXDirList.rb +1 -0
- data/rdoc-sources/FXDockBar.rb +21 -6
- data/rdoc-sources/FXDockHandler.rb +7 -0
- data/rdoc-sources/FXDockSite.rb +18 -0
- data/rdoc-sources/FXExtentd.rb +85 -0
- data/rdoc-sources/FXExtentf.rb +85 -0
- data/rdoc-sources/FXFileDialog.rb +11 -0
- data/rdoc-sources/FXFileDict.rb +7 -7
- data/rdoc-sources/FXFileList.rb +22 -0
- data/rdoc-sources/FXFileSelector.rb +10 -0
- data/rdoc-sources/FXFoldingList.rb +13 -2
- data/rdoc-sources/FXFont.rb +68 -62
- data/rdoc-sources/FXGIFIcon.rb +5 -0
- data/rdoc-sources/FXGIFImage.rb +5 -0
- data/rdoc-sources/FXGLViewer.rb +23 -0
- data/rdoc-sources/FXGradientBar.rb +10 -0
- data/rdoc-sources/FXHeader.rb +11 -0
- data/rdoc-sources/FXICOIcon.rb +5 -0
- data/rdoc-sources/FXICOImage.rb +5 -0
- data/rdoc-sources/FXIconList.rb +8 -0
- data/rdoc-sources/FXIconSource.rb +12 -12
- data/rdoc-sources/FXImage.rb +0 -4
- data/rdoc-sources/FXInputDialog.rb +19 -6
- data/rdoc-sources/FXJPGIcon.rb +5 -0
- data/rdoc-sources/FXJPGImage.rb +5 -0
- data/rdoc-sources/FXKnob.rb +76 -0
- data/rdoc-sources/FXList.rb +8 -0
- data/rdoc-sources/FXListBox.rb +7 -1
- data/rdoc-sources/FXMenuCaption.rb +3 -0
- data/rdoc-sources/FXMenuCheck.rb +2 -2
- data/rdoc-sources/FXMenuCommand.rb +1 -2
- data/rdoc-sources/FXMenuRadio.rb +5 -2
- data/rdoc-sources/FXOptionMenu.rb +7 -0
- data/rdoc-sources/FXPCXIcon.rb +5 -0
- data/rdoc-sources/FXPCXImage.rb +5 -0
- data/rdoc-sources/FXPNGIcon.rb +5 -0
- data/rdoc-sources/FXPNGImage.rb +5 -0
- data/rdoc-sources/FXPPMIcon.rb +5 -0
- data/rdoc-sources/FXPPMImage.rb +5 -0
- data/rdoc-sources/FXQuatd.rb +5 -12
- data/rdoc-sources/FXQuatf.rb +5 -7
- data/rdoc-sources/FXRGBIcon.rb +5 -0
- data/rdoc-sources/FXRGBImage.rb +5 -0
- data/rdoc-sources/FXRadioButton.rb +6 -0
- data/rdoc-sources/FXRanged.rb +3 -0
- data/rdoc-sources/FXRangef.rb +3 -0
- data/rdoc-sources/FXRealSlider.rb +3 -1
- data/rdoc-sources/FXRealSpinner.rb +11 -4
- data/rdoc-sources/FXRecentFiles.rb +10 -6
- data/rdoc-sources/FXRectangle.rb +12 -0
- data/rdoc-sources/FXRuler.rb +28 -0
- data/rdoc-sources/FXScrollBar.rb +9 -3
- data/rdoc-sources/FXScrollPane.rb +3 -0
- data/rdoc-sources/FXSettings.rb +26 -0
- data/rdoc-sources/FXSize.rb +65 -0
- data/rdoc-sources/FXSlider.rb +2 -0
- data/rdoc-sources/FXSphered.rb +12 -0
- data/rdoc-sources/FXSpheref.rb +12 -0
- data/rdoc-sources/FXSpinner.rb +8 -4
- data/rdoc-sources/FXTGAIcon.rb +5 -0
- data/rdoc-sources/FXTGAImage.rb +5 -0
- data/rdoc-sources/FXTIFIcon.rb +5 -0
- data/rdoc-sources/FXTIFImage.rb +5 -0
- data/rdoc-sources/FXTabBar.rb +5 -1
- data/rdoc-sources/FXTabBook.rb +3 -0
- data/rdoc-sources/FXTabItem.rb +7 -0
- data/rdoc-sources/FXTable.rb +96 -18
- data/rdoc-sources/FXText.rb +47 -12
- data/rdoc-sources/FXTextField.rb +6 -0
- data/rdoc-sources/FXToggleButton.rb +0 -1
- data/rdoc-sources/FXTopWindow.rb +44 -2
- data/rdoc-sources/FXTranslator.rb +32 -0
- data/rdoc-sources/FXTreeList.rb +8 -0
- data/rdoc-sources/FXTreeListBox.rb +20 -0
- data/rdoc-sources/{FXVec.rb → FXVec2d.rb} +28 -29
- data/rdoc-sources/FXVec2f.rb +96 -0
- data/rdoc-sources/FXVec3d.rb +113 -0
- data/rdoc-sources/FXVec3f.rb +113 -0
- data/rdoc-sources/FXVec4d.rb +129 -0
- data/rdoc-sources/FXVec4f.rb +129 -0
- data/rdoc-sources/FXWindow.rb +89 -14
- data/rdoc-sources/FXXBMIcon.rb +5 -0
- data/rdoc-sources/FXXBMImage.rb +5 -0
- data/rdoc-sources/FXXPMIcon.rb +5 -0
- data/rdoc-sources/FXXPMImage.rb +5 -0
- data/rdoc-sources/README.rdoc +1 -1
- data/tests/TC_FXAccelTable.rb +1 -1
- data/tests/TC_FXApp.rb +1 -1
- data/tests/TC_FXArc.rb +1 -1
- data/tests/TC_FXBMPIcon.rb +1 -1
- data/tests/TC_FXBMPImage.rb +1 -1
- data/tests/TC_FXButton.rb +1 -1
- data/tests/TC_FXCheckButton.rb +1 -1
- data/tests/TC_FXComboBox.rb +2 -1
- data/tests/TC_FXDC.rb +1 -1
- data/tests/TC_FXDCPrint.rb +1 -1
- data/tests/TC_FXDCWindow.rb +1 -1
- data/tests/TC_FXDataTarget.rb +1 -1
- data/tests/TC_FXDirList.rb +2 -2
- data/tests/TC_FXFileAssoc.rb +1 -1
- data/tests/TC_FXFileStream.rb +1 -1
- data/tests/TC_FXFont.rb +2 -2
- data/tests/TC_FXFontDesc.rb +15 -19
- data/tests/TC_FXGLGroup.rb +1 -1
- data/tests/TC_FXGLShape.rb +1 -1
- data/tests/TC_FXGLViewer.rb +1 -3
- data/tests/TC_FXGradientBar.rb +1 -1
- data/tests/TC_FXHeader.rb +2 -2
- data/tests/TC_FXIconDict.rb +1 -1
- data/tests/TC_FXIconList.rb +2 -2
- data/tests/TC_FXId.rb +2 -2
- data/tests/TC_FXImage.rb +1 -1
- data/tests/TC_FXLight.rb +1 -1
- data/tests/TC_FXList.rb +2 -12
- data/tests/TC_FXListBox.rb +2 -2
- data/tests/TC_FXMat4f.rb +1 -1
- data/tests/TC_FXMaterial.rb +2 -2
- data/tests/TC_FXMemoryStream.rb +1 -1
- data/tests/TC_FXMenuCheck.rb +1 -1
- data/tests/TC_FXMenuCommand.rb +15 -1
- data/tests/TC_FXMenuRadio.rb +1 -1
- data/tests/TC_FXPoint.rb +1 -1
- data/tests/TC_FXQuatf.rb +1 -1
- data/tests/TC_FXRadioButton.rb +1 -1
- data/tests/TC_FXRangef.rb +1 -1
- data/tests/TC_FXRectangle.rb +1 -1
- data/tests/TC_FXRegion.rb +1 -1
- data/tests/TC_FXRegistry.rb +1 -1
- data/tests/TC_FXScrollArea.rb +1 -1
- data/tests/TC_FXScrollWindow.rb +1 -1
- data/tests/TC_FXSegment.rb +1 -1
- data/tests/TC_FXSettings.rb +1 -1
- data/tests/TC_FXShell.rb +1 -1
- data/tests/TC_FXSize.rb +1 -1
- data/tests/TC_FXStream.rb +1 -1
- data/tests/TC_FXTable.rb +33 -1
- data/tests/TC_FXTableItem.rb +2 -2
- data/tests/TC_FXText.rb +2 -2
- data/tests/TC_FXTopWindow.rb +1 -1
- data/tests/TC_FXTreeList.rb +2 -2
- data/tests/TC_FXTreeListBox.rb +2 -2
- data/tests/TC_FXUndoList.rb +2 -2
- data/tests/TC_FXVec2d.rb +6 -6
- data/tests/TC_FXVec2f.rb +5 -5
- data/tests/TC_FXVec3d.rb +5 -5
- data/tests/TC_FXVec3f.rb +5 -5
- data/tests/TC_FXVec4f.rb +3 -3
- data/tests/TC_FXViewport.rb +1 -1
- data/tests/TC_FXXBMIcon.rb +1 -1
- data/tests/TC_FXXBMImage.rb +1 -1
- data/tests/TC_FXXPMIcon.rb +1 -1
- data/tests/TC_FXXPMImage.rb +1 -1
- data/tests/TC_Misc.rb +1 -1
- data/tests/TC_downcast.rb +1 -1
- data/tests/TS_All.rb +1 -2
- data/tests/stress1.rb +5 -5
- data/tests/stress2.rb +1 -1
- data/tests/stress3.rb +1 -1
- data/tests/testcase.rb +1 -1
- metadata +294 -280
- data/doc/changes.html +0 -433
- data/ext/fox14/include/FXRbFont.h +0 -70
- data/ext/fox14/include/FXRbIconSource.h +0 -127
- data/ext/fox14/include/FXRbIconSourceVirtuals.h +0 -37
- data/ext/fox14/include/FXRbRealSpinnerVirtuals.h +0 -3
- data/ext/fox14/include/FXRbText.h +0 -94
- data/ext/fox14/include/FXRbTextVirtuals.h +0 -9
- data/rdoc-sources/FXMat4.rb +0 -171
- data/rdoc-sources/FXVec4.rb +0 -91
data/examples/styledtext.rb
CHANGED
data/examples/tabbook.rb
CHANGED
data/examples/table.rb
CHANGED
|
@@ -261,7 +261,7 @@ and is associated with two icons, a big icon "c_src.xpm" and a small icon "mini/
|
|
|
261
261
|
which are to be found in either directory "/usr/share/icons" or "/home/jeroen/icons".
|
|
262
262
|
END_OF_HELP
|
|
263
263
|
|
|
264
|
-
require '
|
|
264
|
+
require 'fox16'
|
|
265
265
|
|
|
266
266
|
include Fox
|
|
267
267
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
require '
|
|
4
|
-
require '
|
|
5
|
-
require '
|
|
3
|
+
require 'fox16'
|
|
4
|
+
require 'fox16/responder'
|
|
5
|
+
require 'fox16/undolist'
|
|
6
6
|
require 'prefdialog'
|
|
7
7
|
require 'helpwindow'
|
|
8
8
|
require 'commands'
|
|
@@ -712,6 +712,7 @@ class TextWindow < FXMainWindow
|
|
|
712
712
|
delimiters = getApp().reg().readStringEntry("SETTINGS", "delimiters", '~.,/\\`\'!@#$%^&*()-=+{}|[]":;<>?')
|
|
713
713
|
|
|
714
714
|
# Font
|
|
715
|
+
=begin
|
|
715
716
|
fontspec = getApp().reg().readStringEntry("SETTINGS", "font", "")
|
|
716
717
|
if fontspec != ""
|
|
717
718
|
fontdesc = fxparsefontdesc(fontspec)
|
|
@@ -720,6 +721,7 @@ class TextWindow < FXMainWindow
|
|
|
720
721
|
@editor.font = font
|
|
721
722
|
end
|
|
722
723
|
end
|
|
724
|
+
=end
|
|
723
725
|
|
|
724
726
|
# Get size
|
|
725
727
|
xx = getApp().reg().readIntEntry("SETTINGS", "x", 5)
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id: FXRbApp.cpp
|
|
24
|
+
* $Id: FXRbApp.cpp 2190 2005-08-24 07:58:47Z lyle $
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id: FXRbDataTarget.cpp
|
|
24
|
+
* $Id: FXRbDataTarget.cpp 2190 2005-08-24 07:58:47Z lyle $
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id: FXRbGLViewer.cpp
|
|
24
|
+
* $Id: FXRbGLViewer.cpp 2190 2005-08-24 07:58:47Z lyle $
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id: FXRuby.cpp
|
|
24
|
+
* $Id: FXRuby.cpp 2387 2006-04-21 13:25:17Z lyle $
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#ifdef _MSC_VER
|
|
@@ -489,7 +489,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
489
489
|
type==SEL_DND_DROP ||
|
|
490
490
|
type==SEL_DND_MOTION ||
|
|
491
491
|
type==SEL_DND_REQUEST ||
|
|
492
|
-
type==SEL_PICKED
|
|
492
|
+
type==SEL_PICKED ||
|
|
493
|
+
type==SEL_SESSION_NOTIFY ||
|
|
494
|
+
type==SEL_SESSION_CLOSED) {
|
|
493
495
|
return to_ruby(reinterpret_cast<FXEvent*>(ptr));
|
|
494
496
|
}
|
|
495
497
|
else if(type==SEL_DRAGGED && !sender->isMemberOf(FXMETACLASS(FXGLViewer))){
|
|
@@ -519,6 +521,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
519
521
|
FXASSERT(ptr==0);
|
|
520
522
|
return Qnil;
|
|
521
523
|
}
|
|
524
|
+
else if(sender->isMemberOf(FXMETACLASS(FX4Splitter))){
|
|
525
|
+
if(type==SEL_CHANGED||type==SEL_COMMAND) return Qnil;
|
|
526
|
+
}
|
|
522
527
|
else if(sender->isMemberOf(FXMETACLASS(FXArrowButton))){
|
|
523
528
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXuint>(reinterpret_cast<FXuval>(ptr)));
|
|
524
529
|
}
|
|
@@ -531,6 +536,21 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
531
536
|
else if(sender->isMemberOf(FXMETACLASS(FXCheckButton))){
|
|
532
537
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXuchar>(reinterpret_cast<FXuval>(ptr)));
|
|
533
538
|
}
|
|
539
|
+
else if(sender->isMemberOf(FXMETACLASS(FXColorBar))){
|
|
540
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND){
|
|
541
|
+
FXfloat* hsv=reinterpret_cast<FXfloat*>(ptr);
|
|
542
|
+
return rb_ary_new3(3,to_ruby(hsv[0]),to_ruby(hsv[1]),to_ruby(hsv[2]));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
else if(sender->isMemberOf(FXMETACLASS(FXColorDialog))){
|
|
546
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(static_cast<FXColor>(reinterpret_cast<unsigned long>(ptr)));
|
|
547
|
+
}
|
|
548
|
+
else if(sender->isMemberOf(FXMETACLASS(FXColorRing))){
|
|
549
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND){
|
|
550
|
+
FXfloat* hsv=reinterpret_cast<FXfloat*>(ptr);
|
|
551
|
+
return rb_ary_new3(3,to_ruby(hsv[0]),to_ruby(hsv[1]),to_ruby(hsv[2]));
|
|
552
|
+
}
|
|
553
|
+
}
|
|
534
554
|
else if(sender->isMemberOf(FXMETACLASS(FXColorSelector))){
|
|
535
555
|
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(static_cast<FXColor>(reinterpret_cast<unsigned long>(ptr)));
|
|
536
556
|
}
|
|
@@ -541,6 +561,12 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
541
561
|
type==SEL_DOUBLECLICKED ||
|
|
542
562
|
type==SEL_TRIPLECLICKED) return to_ruby(static_cast<FXColor>(reinterpret_cast<unsigned long>(ptr)));
|
|
543
563
|
}
|
|
564
|
+
else if(sender->isMemberOf(FXMETACLASS(FXColorWheel))){
|
|
565
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND){
|
|
566
|
+
FXfloat* hsv=reinterpret_cast<FXfloat*>(ptr);
|
|
567
|
+
return rb_ary_new3(3,to_ruby(hsv[0]),to_ruby(hsv[1]),to_ruby(hsv[2]));
|
|
568
|
+
}
|
|
569
|
+
}
|
|
544
570
|
else if(sender->isMemberOf(FXMETACLASS(FXComboBox))){
|
|
545
571
|
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(reinterpret_cast<FXchar*>(ptr));
|
|
546
572
|
}
|
|
@@ -576,6 +602,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
576
602
|
else if(sender->isMemberOf(FXMETACLASS(FXDirBox))){
|
|
577
603
|
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(reinterpret_cast<FXchar*>(ptr));
|
|
578
604
|
}
|
|
605
|
+
else if(sender->isMemberOf(FXMETACLASS(FXDockBar))){
|
|
606
|
+
if(type==SEL_DOCKED || type==SEL_FLOATED) return FXRbGetRubyObj(ptr,FXRbTypeQuery("FXDockSite *"));
|
|
607
|
+
}
|
|
579
608
|
else if(sender->isMemberOf(FXMETACLASS(FXFileList))){
|
|
580
609
|
if (type==SEL_CHANGED ||
|
|
581
610
|
type==SEL_CLICKED ||
|
|
@@ -619,12 +648,24 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
619
648
|
type==SEL_DELETED ||
|
|
620
649
|
type==SEL_SELECTED ||
|
|
621
650
|
type==SEL_DESELECTED){
|
|
622
|
-
|
|
651
|
+
VALUE ary=rb_ary_new();
|
|
652
|
+
FXGLObject** objlist=reinterpret_cast<FXGLObject**>(ptr);
|
|
653
|
+
// FIXME: objlist is a NULL-terminated array of pointers to FXGLObject
|
|
654
|
+
return ary;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
else if(sender->isMemberOf(FXMETACLASS(FXGradientBar))){
|
|
658
|
+
if(type==SEL_CHANGED){
|
|
659
|
+
return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
660
|
+
}
|
|
661
|
+
else if(type==SEL_SELECTED || type==SEL_DESELECTED){
|
|
662
|
+
return Qnil;
|
|
623
663
|
}
|
|
624
664
|
}
|
|
625
665
|
else if(sender->isMemberOf(FXMETACLASS(FXHeader))){
|
|
626
666
|
if(type==SEL_COMMAND ||
|
|
627
667
|
type==SEL_CHANGED ||
|
|
668
|
+
type==SEL_CLICKED ||
|
|
628
669
|
type==SEL_REPLACED ||
|
|
629
670
|
type==SEL_INSERTED ||
|
|
630
671
|
type==SEL_DELETED) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
@@ -641,6 +682,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
641
682
|
type==SEL_INSERTED ||
|
|
642
683
|
type==SEL_DELETED) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
643
684
|
}
|
|
685
|
+
else if(sender->isMemberOf(FXMETACLASS(FXKnob))){
|
|
686
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
687
|
+
}
|
|
644
688
|
else if(sender->isMemberOf(FXMETACLASS(FXList))){
|
|
645
689
|
if(type==SEL_CHANGED ||
|
|
646
690
|
type==SEL_CLICKED ||
|
|
@@ -658,7 +702,16 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
658
702
|
else if(type==SEL_CHANGED) return Qnil;
|
|
659
703
|
}
|
|
660
704
|
else if(sender->isMemberOf(FXMETACLASS(FXMDIChild))){
|
|
661
|
-
if(type==
|
|
705
|
+
if(type==SEL_MINIMIZE ||
|
|
706
|
+
type==SEL_MAXIMIZE ||
|
|
707
|
+
type==SEL_CLOSE ||
|
|
708
|
+
type==SEL_RESTORE){
|
|
709
|
+
return Qnil;
|
|
710
|
+
}
|
|
711
|
+
else if(type==SEL_SELECTED ||
|
|
712
|
+
type==SEL_DESELECTED){
|
|
713
|
+
return FXRbGetRubyObj(ptr,FXRbTypeQuery("FXMDIChild *"));
|
|
714
|
+
}
|
|
662
715
|
}
|
|
663
716
|
else if(sender->isMemberOf(FXMETACLASS(FXMDIClient))){
|
|
664
717
|
if(type==SEL_CHANGED) return FXRbGetRubyObj(ptr,FXRbTypeQuery("FXMDIChild *"));
|
|
@@ -675,6 +728,12 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
675
728
|
else if(sender->isMemberOf(FXMETACLASS(FXOption))){
|
|
676
729
|
if(type==SEL_COMMAND) return to_ruby(reinterpret_cast<FXEvent*>(ptr));
|
|
677
730
|
}
|
|
731
|
+
else if(sender->isMemberOf(FXMETACLASS(FXOptionMenu))){
|
|
732
|
+
if(type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
733
|
+
}
|
|
734
|
+
else if(sender->isMemberOf(FXMETACLASS(FXPicker))){
|
|
735
|
+
if(type==SEL_COMMAND || type==SEL_CHANGED) return to_ruby(reinterpret_cast<FXPoint*>(ptr));
|
|
736
|
+
}
|
|
678
737
|
else if(sender->isMemberOf(FXMETACLASS(FXRadioButton))){
|
|
679
738
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXuchar>(reinterpret_cast<FXuval>(ptr)));
|
|
680
739
|
}
|
|
@@ -688,6 +747,9 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
688
747
|
else if(sender->isMemberOf(FXMETACLASS(FXRecentFiles))){
|
|
689
748
|
if(type==SEL_COMMAND) return to_ruby(reinterpret_cast<FXchar*>(ptr));
|
|
690
749
|
}
|
|
750
|
+
else if(sender->isMemberOf(FXMETACLASS(FXRuler))){
|
|
751
|
+
if(type==SEL_CHANGED) return Qnil;
|
|
752
|
+
}
|
|
691
753
|
else if(sender->isMemberOf(FXMETACLASS(FXScrollBar))){
|
|
692
754
|
if(type==SEL_CHANGED || type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
693
755
|
}
|
|
@@ -702,15 +764,16 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
702
764
|
if(type==SEL_CHANGED || type==SEL_COMMAND)
|
|
703
765
|
return to_ruby(static_cast<FXint>(reinterpret_cast<long>(ptr)));
|
|
704
766
|
}
|
|
767
|
+
else if(sender->isMemberOf(FXMETACLASS(FXSplitter))){
|
|
768
|
+
if(type==SEL_CHANGED || type==SEL_COMMAND)
|
|
769
|
+
return to_ruby(reinterpret_cast<FXWindow *>(ptr));
|
|
770
|
+
}
|
|
705
771
|
else if(sender->isMemberOf(FXMETACLASS(FXSwitcher))){
|
|
706
772
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
707
773
|
}
|
|
708
774
|
else if(sender->isMemberOf(FXMETACLASS(FXTabBar))){
|
|
709
775
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
710
776
|
}
|
|
711
|
-
else if(sender->isMemberOf(FXMETACLASS(FXTabBook))){
|
|
712
|
-
if(type==SEL_COMMAND) return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
713
|
-
}
|
|
714
777
|
else if(sender->isMemberOf(FXMETACLASS(FXTable))){
|
|
715
778
|
if(type==SEL_CLICKED ||
|
|
716
779
|
type==SEL_DOUBLECLICKED ||
|
|
@@ -718,10 +781,10 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
718
781
|
type==SEL_CHANGED ||
|
|
719
782
|
type==SEL_COMMAND ||
|
|
720
783
|
type==SEL_SELECTED ||
|
|
721
|
-
type==SEL_DESELECTED) return to_ruby(reinterpret_cast<FXTablePos*>(ptr));
|
|
784
|
+
type == SEL_DESELECTED) return to_ruby(reinterpret_cast<FXTablePos*>(ptr));
|
|
722
785
|
else if(type == SEL_INSERTED ||
|
|
723
786
|
type == SEL_DELETED ||
|
|
724
|
-
|
|
787
|
+
type == SEL_REPLACED){
|
|
725
788
|
return to_ruby(reinterpret_cast<FXTableRange*>(ptr));
|
|
726
789
|
}
|
|
727
790
|
}
|
|
@@ -742,9 +805,7 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
742
805
|
return to_ruby(static_cast<FXint>(reinterpret_cast<FXival>(ptr)));
|
|
743
806
|
}
|
|
744
807
|
else if(type==SEL_SELECTED ||
|
|
745
|
-
type == SEL_DESELECTED
|
|
746
|
-
type == SEL_INSERTED ||
|
|
747
|
-
type == SEL_DELETED) {
|
|
808
|
+
type == SEL_DESELECTED) {
|
|
748
809
|
FXint* what=reinterpret_cast<FXint*>(ptr);
|
|
749
810
|
FXASSERT(what!=0);
|
|
750
811
|
VALUE ary=rb_ary_new();
|
|
@@ -752,14 +813,8 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
752
813
|
rb_ary_push(ary,to_ruby(what[1])); // length of text
|
|
753
814
|
return ary;
|
|
754
815
|
}
|
|
755
|
-
else if(type==SEL_REPLACED) {
|
|
756
|
-
|
|
757
|
-
FXASSERT(what!=0);
|
|
758
|
-
VALUE ary=rb_ary_new();
|
|
759
|
-
rb_ary_push(ary,to_ruby(what[0])); // start position for replace
|
|
760
|
-
rb_ary_push(ary,to_ruby(what[1])); // length of old text
|
|
761
|
-
rb_ary_push(ary,to_ruby(what[2])); // length of new text
|
|
762
|
-
return ary;
|
|
816
|
+
else if(type==SEL_INSERTED || type==SEL_DELETED || type==SEL_REPLACED) {
|
|
817
|
+
return to_ruby(reinterpret_cast<FXTextChange*>(ptr));
|
|
763
818
|
}
|
|
764
819
|
}
|
|
765
820
|
else if(sender->isMemberOf(FXMETACLASS(FXTextField))){
|
|
@@ -771,10 +826,19 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
771
826
|
if(type==SEL_COMMAND) return to_ruby(static_cast<FXuchar>(reinterpret_cast<FXuval>(ptr)));
|
|
772
827
|
}
|
|
773
828
|
else if(sender->isMemberOf(FXMETACLASS(FXToolBarTab))){
|
|
774
|
-
if (type==
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
829
|
+
if (type==SEL_COMMAND) return to_ruby(static_cast<FXbool>(reinterpret_cast<FXuval>(ptr)));
|
|
830
|
+
}
|
|
831
|
+
else if(sender->isMemberOf(FXMETACLASS(FXTopWindow))){
|
|
832
|
+
if(type==SEL_MINIMIZE ||
|
|
833
|
+
type==SEL_MAXIMIZE ||
|
|
834
|
+
type==SEL_RESTORE ||
|
|
835
|
+
type==SEL_CLOSE){
|
|
836
|
+
return Qnil;
|
|
837
|
+
}
|
|
838
|
+
else if (type==SEL_SESSION_NOTIFY ||
|
|
839
|
+
type==SEL_SESSION_CLOSED) {
|
|
840
|
+
return to_ruby(reinterpret_cast<FXEvent*>(ptr));
|
|
841
|
+
}
|
|
778
842
|
}
|
|
779
843
|
else if(sender->isMemberOf(FXMETACLASS(FXTreeList))){
|
|
780
844
|
if(type==SEL_COLLAPSED ||
|
|
@@ -951,7 +1015,7 @@ void* FXRbGetExpectedData(VALUE recv,FXSelector key,VALUE value){
|
|
|
951
1015
|
break;
|
|
952
1016
|
}
|
|
953
1017
|
}
|
|
954
|
-
|
|
1018
|
+
|
|
955
1019
|
// Handle FXTextField-specific message
|
|
956
1020
|
if(obj->isMemberOf(FXMETACLASS(FXTextField))){
|
|
957
1021
|
switch(id){
|
|
@@ -1260,17 +1324,17 @@ void FXRbCallVoidMethod(FXDC* recv,ID func) {
|
|
|
1260
1324
|
|
|
1261
1325
|
//----------------------------------------------------------------------
|
|
1262
1326
|
|
|
1263
|
-
|
|
1327
|
+
bool FXRbCallBoolMethod(const FXObject* recv,ID func){
|
|
1264
1328
|
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1265
1329
|
FXASSERT(!NIL_P(obj));
|
|
1266
1330
|
VALUE v=rb_funcall(obj,func,0,NULL);
|
|
1267
|
-
return (v==Qtrue)
|
|
1331
|
+
return (v==Qtrue);
|
|
1268
1332
|
}
|
|
1269
1333
|
|
|
1270
1334
|
//----------------------------------------------------------------------
|
|
1271
1335
|
|
|
1272
1336
|
// Call function with "FXint" return value
|
|
1273
|
-
FXint FXRbCallIntMethod(FXObject* recv,ID func){
|
|
1337
|
+
FXint FXRbCallIntMethod(const FXObject* recv,ID func){
|
|
1274
1338
|
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1275
1339
|
FXASSERT(!NIL_P(obj));
|
|
1276
1340
|
VALUE result=rb_funcall(obj,func,0,NULL);
|
|
@@ -1331,6 +1395,13 @@ FXTableItem* FXRbCallTableItemMethod(FXTable* recv,ID func,const FXString& text,
|
|
|
1331
1395
|
return NIL_P(result)?0:reinterpret_cast<FXTableItem*>(DATA_PTR(result));
|
|
1332
1396
|
}
|
|
1333
1397
|
|
|
1398
|
+
FXTableItem* FXRbCallTableItemMethod(FXTable* recv,ID func,FXint row,FXint col,FXbool notify){
|
|
1399
|
+
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1400
|
+
FXASSERT(!NIL_P(obj));
|
|
1401
|
+
VALUE result=rb_funcall(obj,func,3,to_ruby(row),to_ruby(col),to_ruby(notify));
|
|
1402
|
+
return NIL_P(result)?0:reinterpret_cast<FXTableItem*>(DATA_PTR(result));
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1334
1405
|
//----------------------------------------------------------------------
|
|
1335
1406
|
|
|
1336
1407
|
FXTreeItem* FXRbCallTreeItemMethod(const FXTreeList* recv,ID func,FXint x,FXint y){
|
|
@@ -1398,6 +1469,33 @@ FXString FXRbCallStringMethod(const FXObject* recv, ID func){
|
|
|
1398
1469
|
|
|
1399
1470
|
//----------------------------------------------------------------------
|
|
1400
1471
|
|
|
1472
|
+
// Call functions with const FXchar* return value
|
|
1473
|
+
const FXchar* FXRbCallCStringMethod(const FXObject* recv, ID func, const FXchar* message, const FXchar* hint){
|
|
1474
|
+
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1475
|
+
FXASSERT(!NIL_P(obj));
|
|
1476
|
+
VALUE result=rb_funcall(obj,func,2,rb_str_new2(message),rb_str_new2(hint));
|
|
1477
|
+
return STR2CSTR(result);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
// Call functions with const FXchar* return value
|
|
1481
|
+
const FXchar* FXRbCallCStringMethod(const FXObject* recv, ID func, const FXchar* context, const FXchar* message, const FXchar* hint){
|
|
1482
|
+
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1483
|
+
FXASSERT(!NIL_P(obj));
|
|
1484
|
+
VALUE result=rb_funcall(obj,func,3,rb_str_new2(context),rb_str_new2(message),rb_str_new2(hint));
|
|
1485
|
+
return STR2CSTR(result);
|
|
1486
|
+
}
|
|
1487
|
+
//----------------------------------------------------------------------
|
|
1488
|
+
|
|
1489
|
+
// Call functions with FXwchar return value
|
|
1490
|
+
FXwchar FXRbCallWCharMethod(const FXObject* recv, ID func){
|
|
1491
|
+
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1492
|
+
FXASSERT(!NIL_P(obj));
|
|
1493
|
+
VALUE result=rb_funcall(obj,func,0,NULL);
|
|
1494
|
+
return static_cast<FXwchar>(NUM2ULONG(result));
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
//----------------------------------------------------------------------
|
|
1498
|
+
|
|
1401
1499
|
// Special destructors to handle order dependencies
|
|
1402
1500
|
FXRbMenuCommand::~FXRbMenuCommand(){
|
|
1403
1501
|
FXAccelTable *table;
|
|
@@ -1877,7 +1975,7 @@ extern "C" void Init_ui(void);
|
|
|
1877
1975
|
#define REQUIRE(fname) rb_funcall(rb_mKernel,rb_intern("require"),1,rb_str_new2((fname)))
|
|
1878
1976
|
#endif
|
|
1879
1977
|
|
|
1880
|
-
extern "C" void
|
|
1978
|
+
extern "C" void Init_fox16(void) {
|
|
1881
1979
|
Init_core();
|
|
1882
1980
|
Init_dc();
|
|
1883
1981
|
Init_frames();
|
|
@@ -1898,16 +1996,16 @@ extern "C" void Init_fox14(void) {
|
|
|
1898
1996
|
Init_table();
|
|
1899
1997
|
Init_text();
|
|
1900
1998
|
Init_treelist();
|
|
1901
|
-
REQUIRE("
|
|
1902
|
-
REQUIRE("
|
|
1903
|
-
REQUIRE("
|
|
1904
|
-
REQUIRE("
|
|
1905
|
-
REQUIRE("
|
|
1906
|
-
REQUIRE("
|
|
1907
|
-
REQUIRE("
|
|
1908
|
-
REQUIRE("
|
|
1909
|
-
REQUIRE("
|
|
1910
|
-
REQUIRE("
|
|
1999
|
+
REQUIRE("fox16/core");
|
|
2000
|
+
REQUIRE("fox16/dict");
|
|
2001
|
+
REQUIRE("fox16/settings");
|
|
2002
|
+
REQUIRE("fox16/iterators");
|
|
2003
|
+
REQUIRE("fox16/keys");
|
|
2004
|
+
REQUIRE("fox16/aliases");
|
|
2005
|
+
REQUIRE("fox16/responder2");
|
|
2006
|
+
REQUIRE("fox16/glgroup");
|
|
2007
|
+
REQUIRE("fox16/execute_nonmodal");
|
|
2008
|
+
REQUIRE("fox16/version");
|
|
1911
2009
|
|
|
1912
2010
|
id_assocs=rb_intern("@assocs");
|
|
1913
2011
|
id_backtrace=rb_intern("backtrace");
|