fxruby 1.2.6 → 1.4.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/ChangeLog +0 -90
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/build.html +26 -26
- data/doc/ch03s02.html +1 -2
- data/doc/ch03s03.html +1 -2
- data/doc/ch03s04.html +1 -2
- data/doc/ch03s05.html +1 -2
- data/doc/changes.html +12 -7
- data/doc/cvs.html +2 -2
- data/doc/differences.html +3 -3
- data/doc/gems.html +44 -44
- 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 +6 -6
- data/doc/tutorial1.html +8 -15
- data/examples/babelfish.rb +6 -16
- data/examples/bounce.rb +1 -1
- data/examples/browser.rb +1 -1
- data/examples/button.rb +1 -1
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +1 -1
- 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 +2 -2
- data/examples/header.rb +3 -3
- data/examples/hello.rb +1 -1
- data/examples/hello2.rb +1 -1
- data/examples/iconlist.rb +16 -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 +1 -1
- data/examples/styledtext.rb +2 -2
- data/examples/tabbook.rb +1 -1
- data/examples/table.rb +1 -1
- data/ext/{fox12 → fox14}/FXRbApp.cpp +7 -13
- data/ext/{fox12 → fox14}/FXRbDataTarget.cpp +5 -1
- data/ext/{fox12 → fox14}/FXRbGLViewer.cpp +1 -1
- data/ext/{fox12 → fox14}/FXRuby.cpp +49 -14
- data/ext/{fox12 → fox14}/MANIFEST +0 -0
- data/ext/{fox12 → fox14}/core_wrap.cpp +1098 -390
- data/ext/{fox12 → fox14}/dc_wrap.cpp +61 -1
- data/ext/{fox12 → fox14}/dialogs_wrap.cpp +2293 -939
- data/ext/{fox12 → fox14}/extconf.rb +8 -8
- data/ext/{fox12 → fox14}/frames_wrap.cpp +1396 -395
- data/ext/{fox12 → fox14}/fx3d_wrap.cpp +884 -363
- data/ext/{fox12 → fox14}/iconlist_wrap.cpp +338 -117
- data/ext/{fox12 → fox14}/icons_wrap.cpp +668 -61
- data/ext/{fox12 → fox14}/image_wrap.cpp +245 -164
- data/ext/{fox12 → fox14}/impl.cpp +58 -2
- data/ext/{fox12 → fox14}/include/FXMemoryBuffer.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRb4Splitter.h +1 -1
- data/ext/fox14/include/FXRb7Segment.h +51 -0
- data/ext/{fox12 → fox14}/include/FXRbAccelTable.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbApp.h +1 -2
- data/ext/{fox12 → fox14}/include/FXRbAppVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbArrowButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbBMPIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbBMPImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbBitmap.h +5 -5
- data/ext/{fox12 → fox14}/include/FXRbBitmapFrame.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbBitmapView.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbBitmapVirtuals.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCURCursor.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCanvas.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCheckButton.h +1 -1
- data/ext/fox14/include/FXRbChoiceBox.h +56 -0
- data/ext/{fox12 → fox14}/include/FXRbColorBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbColorDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbColorSelector.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbColorWell.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbColorWheel.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbComboBox.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCommon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbComposite.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCursor.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbCursorVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbDC.h +25 -1
- data/ext/{fox12 → fox14}/include/FXRbDCPrint.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDCVirtuals.h +12 -0
- data/ext/{fox12 → fox14}/include/FXRbDCWindow.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDataTarget.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDebugTarget.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDelegator.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDial.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDialogBox.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDialogBoxVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbDict.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDirBox.h +2 -1
- data/ext/{fox12 → fox14}/include/FXRbDirDialog.h +4 -1
- data/ext/{fox12 → fox14}/include/FXRbDirList.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDirSelector.h +1 -1
- data/ext/fox14/include/FXRbDockBar.h +86 -0
- data/ext/fox14/include/FXRbDockBarVirtuals.h +10 -0
- data/ext/fox14/include/FXRbDockHandler.h +51 -0
- data/ext/fox14/include/FXRbDockSite.h +85 -0
- data/ext/fox14/include/FXRbDockSiteVirtuals.h +13 -0
- data/ext/fox14/include/FXRbDockTitle.h +51 -0
- data/ext/{fox12 → fox14}/include/FXRbDocument.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDragCorner.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDrawable.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbDrawableVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbDriveBox.h +2 -1
- data/ext/{fox12 → fox14}/include/FXRbFileDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFileDict.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFileDictVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbFileList.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFileSelector.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFoldingItemVirtuals.h +2 -5
- data/ext/{fox12 → fox14}/include/FXRbFoldingList.h +98 -15
- data/ext/fox14/include/FXRbFoldingListVirtuals.h +43 -0
- data/ext/{fox12 → fox14}/include/FXRbFont.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFontDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFontSelector.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbFrame.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGIFCursor.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGIFIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGIFImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGLCanvas.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGLCanvasVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbGLContext.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGLObject.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGLObjectVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbGLShape.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGLShapeVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbGLViewer.h +7 -1
- data/ext/{fox12 → fox14}/include/FXRbGLViewerVirtuals.h +4 -0
- data/ext/{fox12 → fox14}/include/FXRbGLVisual.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGradientBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbGroupBox.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbHeader.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbHeaderItemVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbHorizontalFrame.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbICOIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbICOImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbIconItemVirtuals.h +2 -5
- data/ext/{fox12 → fox14}/include/FXRbIconList.h +33 -15
- data/ext/{fox12 → fox14}/include/FXRbIconListVirtuals.h +14 -0
- data/ext/fox14/include/FXRbIconSource.h +127 -0
- data/ext/fox14/include/FXRbIconSourceVirtuals.h +37 -0
- data/ext/{fox12 → fox14}/include/FXRbId.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbIdVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbImage.h +5 -5
- data/ext/{fox12 → fox14}/include/FXRbImageFrame.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbImageView.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbImageVirtuals.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbInputDialog.h +4 -1
- data/ext/{fox12 → fox14}/include/FXRbJPGIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbJPGImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbLabel.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbList.h +29 -11
- data/ext/{fox12 → fox14}/include/FXRbListBox.h +12 -1
- data/ext/fox14/include/FXRbListBoxVirtuals.h +4 -0
- data/ext/{fox12 → fox14}/include/FXRbListItemVirtuals.h +1 -4
- data/ext/{fox12 → fox14}/include/FXRbListVirtuals.h +12 -0
- data/ext/{fox12 → fox14}/include/FXRbMDIButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMDIChild.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMDIChildVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbMDIClient.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMDIClientVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbMainWindow.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMatrix.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuBar.h +2 -2
- data/ext/{fox12 → fox14}/include/FXRbMenuButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuCaption.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuCascade.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuCheck.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuCommand.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuPane.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuRadio.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuSeparator.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMenuTitle.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbMessageBox.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbObject.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbObjectVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbOptionMenu.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPCXIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPCXImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPNGIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPNGImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPPMIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPPMImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPacker.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPicker.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPopup.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbPopupVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbPrintDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbProgressBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbProgressDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRGBIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRGBImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRadioButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRealSlider.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRealSpinner.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRealSpinnerVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbRecentFiles.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRegistry.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbReplaceDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRootWindow.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbRuler.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbScintilla.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbScrollArea.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbScrollAreaVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbScrollBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbScrollPane.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbScrollWindow.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSearchDialog.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSeparator.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSettings.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbShell.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbShutter.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbShutterVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbSlider.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSpinner.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSpinnerVirtuals.h +0 -0
- data/ext/fox14/include/FXRbSplashWindow.h +57 -0
- data/ext/{fox12 → fox14}/include/FXRbSplitter.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSpring.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbStatusBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbStatusLine.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbStream.h +3 -3
- data/ext/{fox12 → fox14}/include/FXRbStreamVirtuals.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbStringDict.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbSwitcher.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTGAIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTGAImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTIFIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTIFImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTabBar.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTabBarVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbTabBook.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTabItem.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTable.h +96 -36
- data/ext/{fox12 → fox14}/include/FXRbTableItemVirtuals.h +24 -3
- data/ext/{fox12 → fox14}/include/FXRbTableVirtuals.h +19 -6
- data/ext/{fox12 → fox14}/include/FXRbText.h +2 -2
- data/ext/{fox12 → fox14}/include/FXRbTextField.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTextVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbToggleButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbToolBar.h +2 -19
- data/ext/{fox12 → fox14}/include/FXRbToolBarGrip.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbToolBarShell.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbToolBarTab.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbToolTip.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTopWindow.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbTopWindowVirtuals.h +0 -0
- data/ext/{fox12 → fox14}/include/FXRbTreeItemVirtuals.h +2 -2
- data/ext/{fox12 → fox14}/include/FXRbTreeList.h +33 -9
- data/ext/{fox12 → fox14}/include/FXRbTreeListBox.h +12 -1
- data/ext/fox14/include/FXRbTreeListBoxVirtuals.h +4 -0
- data/ext/{fox12 → fox14}/include/FXRbTreeListVirtuals.h +12 -0
- data/ext/{fox12 → fox14}/include/FXRbTriStateButton.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbVerticalFrame.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbVisual.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbWindow.h +35 -5
- data/ext/{fox12 → fox14}/include/FXRbWindowVirtuals.h +17 -1
- data/ext/{fox12 → fox14}/include/FXRbWizard.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbXBMIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbXBMImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbXPMIcon.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRbXPMImage.h +1 -1
- data/ext/{fox12 → fox14}/include/FXRuby.h +78 -7
- data/ext/{fox12 → fox14}/include/impl.h +7 -0
- data/ext/{fox12 → fox14}/include/inlinestubs.h +58 -2
- data/ext/{fox12 → fox14}/label_wrap.cpp +524 -68
- data/ext/{fox12 → fox14}/layout_wrap.cpp +1025 -90
- data/ext/{fox12 → fox14}/librb.c +0 -0
- data/ext/{fox12 → fox14}/list_wrap.cpp +328 -234
- data/ext/{fox12 → fox14}/markfuncs.cpp +29 -4
- data/ext/{fox12 → fox14}/mdi_wrap.cpp +553 -99
- data/ext/{fox12 → fox14}/menu_wrap.cpp +967 -404
- data/ext/{fox12 → fox14}/scintilla_wrap.cpp +754 -635
- data/ext/{fox12 → fox14}/table_wrap.cpp +501 -284
- data/ext/{fox12 → fox14}/text_wrap.cpp +765 -629
- data/ext/{fox12 → fox14}/treelist_wrap.cpp +859 -661
- data/ext/{fox12 → fox14}/ui_wrap.cpp +3025 -627
- data/ext/{fox12 → fox14}/unregisterOwnedObjects.cpp +1 -1
- data/lib/{fox12 → fox14}/aliases.rb +252 -45
- data/lib/{fox12 → fox14}/calendar.rb +2 -2
- data/lib/{fox12 → fox14}/chore.rb +1 -1
- data/lib/{fox12 → fox14}/colors.rb +1 -1
- data/lib/{fox12 → fox14}/core.rb +126 -52
- data/lib/{fox12 → fox14}/dict.rb +0 -0
- data/lib/{fox12 → fox14}/execute_nonmodal.rb +0 -0
- data/lib/{fox12 → fox14}/glgroup.rb +1 -1
- data/lib/{fox12 → fox14}/glshapes.rb +1 -1
- data/lib/{fox12 → fox14}/input.rb +1 -1
- data/lib/{fox12 → fox14}/irb.rb +1 -1
- data/lib/{fox12 → fox14}/iterators.rb +1 -1
- data/lib/{fox12 → fox14}/keys.rb +1 -1
- data/lib/{fox12 → fox14}/missingdep.rb +1 -1
- data/lib/{fox12 → fox14}/pseudokeyboard.rb +1 -1
- data/lib/{fox12 → fox14}/pseudomouse.rb +1 -1
- data/lib/{fox12 → fox14}/responder.rb +1 -1
- data/lib/{fox12 → fox14}/responder2.rb +5 -5
- data/lib/{fox12 → fox14}/scintilla.rb +0 -0
- data/lib/{fox12 → fox14}/settings.rb +0 -0
- data/lib/{fox12 → fox14}/signal.rb +1 -1
- data/lib/{fox12 → fox14}/splashscreen.rb +2 -2
- data/lib/{fox12 → fox14}/timeout.rb +1 -1
- data/lib/{fox12 → fox14}/undolist.rb +2 -2
- data/lib/{fox12 → fox14}/version.rb +2 -2
- data/rdoc-sources/FX7Segment.rb +48 -0
- data/rdoc-sources/FXApp.rb +51 -31
- data/rdoc-sources/FXBMPIcon.rb +18 -1
- data/rdoc-sources/FXBMPImage.rb +5 -0
- data/rdoc-sources/FXBitmap.rb +18 -3
- data/rdoc-sources/FXBitmapFrame.rb +3 -1
- data/rdoc-sources/FXBitmapView.rb +4 -1
- data/rdoc-sources/FXButton.rb +16 -0
- data/rdoc-sources/FXCheckButton.rb +25 -1
- data/rdoc-sources/FXChoiceBox.rb +82 -0
- data/rdoc-sources/FXColorBar.rb +6 -1
- data/rdoc-sources/FXColorDialog.rb +1 -0
- data/rdoc-sources/FXColorWell.rb +14 -6
- data/rdoc-sources/FXColorWheel.rb +6 -4
- data/rdoc-sources/FXComboBox.rb +53 -5
- data/rdoc-sources/FXCursor.rb +2 -2
- data/rdoc-sources/FXDC.rb +36 -2
- data/rdoc-sources/FXDial.rb +10 -4
- data/rdoc-sources/FXDirBox.rb +7 -1
- data/rdoc-sources/FXDirDialog.rb +33 -0
- data/rdoc-sources/FXDirList.rb +8 -3
- data/rdoc-sources/FXDirSelector.rb +36 -2
- data/rdoc-sources/FXDockBar.rb +136 -0
- data/rdoc-sources/FXDockHandler.rb +19 -0
- data/rdoc-sources/FXDockSite.rb +86 -0
- data/rdoc-sources/FXDockTitle.rb +26 -0
- data/rdoc-sources/FXFileDialog.rb +33 -0
- data/rdoc-sources/FXFileDict.rb +29 -56
- data/rdoc-sources/FXFileList.rb +39 -16
- data/rdoc-sources/FXFileSelector.rb +28 -2
- data/rdoc-sources/FXFileStream.rb +3 -0
- data/rdoc-sources/FXFoldingList.rb +104 -62
- data/rdoc-sources/FXFont.rb +2 -9
- data/rdoc-sources/FXFrame.rb +7 -1
- data/rdoc-sources/FXGIFCursor.rb +17 -5
- data/rdoc-sources/FXGIFIcon.rb +5 -0
- data/rdoc-sources/FXGIFImage.rb +5 -0
- data/rdoc-sources/FXHeader.rb +24 -4
- data/rdoc-sources/FXICOIcon.rb +10 -0
- data/rdoc-sources/FXICOImage.rb +5 -0
- data/rdoc-sources/FXIconList.rb +37 -13
- data/rdoc-sources/FXIconSource.rb +100 -0
- data/rdoc-sources/FXImage.rb +8 -2
- data/rdoc-sources/FXInputDialog.rb +6 -0
- data/rdoc-sources/FXJPGIcon.rb +13 -0
- data/rdoc-sources/FXJPGImage.rb +8 -0
- data/rdoc-sources/FXLabel.rb +4 -1
- data/rdoc-sources/FXList.rb +19 -9
- data/rdoc-sources/FXListBox.rb +22 -4
- data/rdoc-sources/FXMDIChild.rb +21 -2
- data/rdoc-sources/FXMDIClient.rb +15 -11
- data/rdoc-sources/FXMainWindow.rb +7 -1
- data/rdoc-sources/FXMemoryStream.rb +2 -0
- data/rdoc-sources/FXMenuBar.rb +1 -1
- data/rdoc-sources/FXMessageBox.rb +17 -7
- data/rdoc-sources/FXObject.rb +7 -1
- data/rdoc-sources/FXPCXIcon.rb +10 -0
- data/rdoc-sources/FXPCXImage.rb +5 -0
- data/rdoc-sources/FXPNGIcon.rb +15 -2
- data/rdoc-sources/FXPNGImage.rb +8 -0
- data/rdoc-sources/FXPPMIcon.rb +10 -0
- data/rdoc-sources/FXPPMImage.rb +5 -0
- data/rdoc-sources/FXQuatd.rb +1 -1
- data/rdoc-sources/FXQuatf.rb +1 -1
- data/rdoc-sources/FXRGBIcon.rb +12 -2
- data/rdoc-sources/FXRGBImage.rb +5 -0
- data/rdoc-sources/FXRegistry.rb +19 -2
- data/rdoc-sources/FXRuler.rb +47 -5
- data/rdoc-sources/FXScrollArea.rb +4 -4
- data/rdoc-sources/FXScrollPane.rb +3 -1
- data/rdoc-sources/FXSeparator.rb +20 -10
- data/rdoc-sources/FXSettings.rb +3 -3
- data/rdoc-sources/FXShell.rb +2 -1
- data/rdoc-sources/FXShutter.rb +7 -2
- data/rdoc-sources/FXSphered.rb +5 -2
- data/rdoc-sources/FXSpheref.rb +5 -2
- data/rdoc-sources/FXSplashWindow.rb +31 -0
- data/rdoc-sources/FXSplitter.rb +2 -1
- data/rdoc-sources/FXStream.rb +11 -2
- data/rdoc-sources/FXTGAIcon.rb +12 -2
- data/rdoc-sources/FXTGAImage.rb +5 -0
- data/rdoc-sources/FXTIFIcon.rb +15 -2
- data/rdoc-sources/FXTIFImage.rb +8 -0
- data/rdoc-sources/FXTable.rb +92 -15
- data/rdoc-sources/FXText.rb +11 -2
- data/rdoc-sources/FXTextField.rb +6 -2
- data/rdoc-sources/FXToolBar.rb +5 -65
- data/rdoc-sources/FXToolBarGrip.rb +5 -10
- data/rdoc-sources/FXToolBarTab.rb +8 -3
- data/rdoc-sources/FXTopWindow.rb +4 -0
- data/rdoc-sources/FXTreeList.rb +56 -50
- data/rdoc-sources/FXTreeListBox.rb +49 -30
- data/rdoc-sources/FXWindow.rb +30 -11
- data/rdoc-sources/FXXBMIcon.rb +10 -0
- data/rdoc-sources/FXXBMImage.rb +5 -0
- data/rdoc-sources/FXXPMIcon.rb +11 -1
- data/rdoc-sources/FXXPMImage.rb +5 -0
- data/rdoc-sources/README.rdoc +1 -1
- data/tests/TC_FXBMPIcon.rb +15 -0
- data/tests/TC_FXBMPImage.rb +15 -0
- data/tests/TC_FXFont.rb +0 -10
- data/tests/TC_FXXBMIcon.rb +15 -0
- data/tests/TC_FXXBMImage.rb +15 -0
- data/tests/TC_FXXPMIcon.rb +15 -0
- data/tests/TC_FXXPMImage.rb +15 -0
- data/web/downloads.html +3 -1
- data/web/home.html +3 -1
- metadata +290 -268
- data/ANNOUNCE +0 -25
- data/examples/mditest2.rb +0 -195
- data/ext/fox12/include/FXRbToolBarVirtuals.h +0 -6
- data/lib/fox12/dialogs.rb +0 -72
- data/tests/TC_FXSettings.rb +0 -34
- data/tests/doit.rb +0 -5
data/ANNOUNCE
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
I am pleased to announce the latest release of FXRuby, the Ruby language bindings for the FOX GUI toolkit. FOX is a C++-based toolkit for developing graphical user interfaces easily and effectively. It offers a wide, and growing, collection of widgets, and provides state-of-the-art facilities such as drag-and-drop, selection, as well as OpenGL widgets for 3-D graphical manipulation. FOX also implements icons, images, and user-convenience features such as status line help and tooltips.
|
|
2
|
-
|
|
3
|
-
Please see the comments on the home page concerning any problems with this release, or the change log:
|
|
4
|
-
|
|
5
|
-
http://www.fxruby.org/doc/changes.html
|
|
6
|
-
|
|
7
|
-
to see what has changed since the previous release.
|
|
8
|
-
|
|
9
|
-
The FXRuby home page is here:
|
|
10
|
-
|
|
11
|
-
http://www.fxruby.org
|
|
12
|
-
|
|
13
|
-
and the source tarball can be downloaded from the RubyForge site:
|
|
14
|
-
|
|
15
|
-
http://rubyforge.org/frs/?group_id=300
|
|
16
|
-
|
|
17
|
-
A binary installer for Windows, compatible with the latest one-click Ruby installer, is also available at the download site.
|
|
18
|
-
|
|
19
|
-
Note that this release of FXRuby depends on FOX version 1.2.x, which can be downloaded from the FOX downloads page here:
|
|
20
|
-
|
|
21
|
-
http://www.fox-toolkit.com/download.html
|
|
22
|
-
|
|
23
|
-
Please feel free to send me any questions or comments, and watch this space for future announcements!
|
|
24
|
-
|
|
25
|
-
Lyle
|
data/examples/mditest2.rb
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require 'fox12'
|
|
4
|
-
require 'fox12/colors'
|
|
5
|
-
|
|
6
|
-
include Fox
|
|
7
|
-
|
|
8
|
-
TYGER = <<END_OF_POEM
|
|
9
|
-
The Tyger
|
|
10
|
-
|
|
11
|
-
Tyger! Tyger! burning bright
|
|
12
|
-
In the forests of the night
|
|
13
|
-
What immortal hand or eye
|
|
14
|
-
Could frame thy fearful symmetry?
|
|
15
|
-
|
|
16
|
-
In what distant deeps or skies
|
|
17
|
-
Burnt the fire of thine eyes?
|
|
18
|
-
On what wings dare he aspire?
|
|
19
|
-
What the hand dare seize the fire?
|
|
20
|
-
|
|
21
|
-
And what shoulder, and what art,
|
|
22
|
-
Could twist the sinews of thy heart,
|
|
23
|
-
And when thy heart began to beat,
|
|
24
|
-
What dread hand? and what dread feet?
|
|
25
|
-
|
|
26
|
-
What the hammer? what the chain?
|
|
27
|
-
In what furnace was thy brain?
|
|
28
|
-
What the anvil? what dread grasp
|
|
29
|
-
Dare its deadly terrors clasp?
|
|
30
|
-
|
|
31
|
-
When the stars threw down their spears,
|
|
32
|
-
And water'd heaven with their tears,
|
|
33
|
-
Did he smile his work to see?
|
|
34
|
-
Did he who made the Lamb make thee?
|
|
35
|
-
|
|
36
|
-
Tyger! Tyger! burning bright
|
|
37
|
-
In the forests of the night,
|
|
38
|
-
What immortal hand or eye,
|
|
39
|
-
Dare frame thy fearful symmetry?
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- William Blake
|
|
44
|
-
END_OF_POEM
|
|
45
|
-
|
|
46
|
-
class MDITestWindow < FXMainWindow
|
|
47
|
-
|
|
48
|
-
def initialize(app)
|
|
49
|
-
# Invoke base class initialize method first
|
|
50
|
-
super(app, "MDI Widget Test", nil, nil, DECOR_ALL, 0, 0, 800, 600)
|
|
51
|
-
|
|
52
|
-
# Create the font
|
|
53
|
-
@font = FXFont.new(getApp(), "courier", 15, FONTWEIGHT_BOLD)
|
|
54
|
-
|
|
55
|
-
# Menubar
|
|
56
|
-
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
|
57
|
-
|
|
58
|
-
# Status bar
|
|
59
|
-
FXStatusBar.new(self,
|
|
60
|
-
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
|
|
61
|
-
|
|
62
|
-
# MDI Client
|
|
63
|
-
@mdiclient = FXMDIClient.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
|
64
|
-
|
|
65
|
-
# Icon for MDI Child
|
|
66
|
-
@mdiicon = nil
|
|
67
|
-
File.open(File.join("icons", "penguin.png"), "rb") { |f|
|
|
68
|
-
@mdiicon = FXPNGIcon.new(getApp(), f.read)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
# Make MDI Menu
|
|
72
|
-
@mdimenu = FXMDIMenu.new(self, @mdiclient)
|
|
73
|
-
|
|
74
|
-
# MDI buttons in menu:- note the message ID's!!!!!
|
|
75
|
-
# Normally, MDI commands are simply sensitized or desensitized;
|
|
76
|
-
# Under the menubar, however, they're hidden if the MDI Client is
|
|
77
|
-
# not maximized. To do this, they must have different ID's.
|
|
78
|
-
FXMDIWindowButton.new(menubar, @mdimenu, @mdiclient, FXMDIClient::ID_MDI_MENUWINDOW,
|
|
79
|
-
LAYOUT_LEFT)
|
|
80
|
-
FXMDIDeleteButton.new(menubar, @mdiclient, FXMDIClient::ID_MDI_MENUCLOSE,
|
|
81
|
-
FRAME_RAISED|LAYOUT_RIGHT)
|
|
82
|
-
FXMDIRestoreButton.new(menubar, @mdiclient, FXMDIClient::ID_MDI_MENURESTORE,
|
|
83
|
-
FRAME_RAISED|LAYOUT_RIGHT)
|
|
84
|
-
FXMDIMinimizeButton.new(menubar, @mdiclient,
|
|
85
|
-
FXMDIClient::ID_MDI_MENUMINIMIZE, FRAME_RAISED|LAYOUT_RIGHT)
|
|
86
|
-
|
|
87
|
-
# Create a few test windows to get started
|
|
88
|
-
mdichild = createTestWindow(10, 10, 400, 300)
|
|
89
|
-
@mdiclient.setActiveChild(mdichild)
|
|
90
|
-
createTestWindow(20, 20, 400, 300)
|
|
91
|
-
createTestWindow(30, 30, 400, 300)
|
|
92
|
-
|
|
93
|
-
# File menu
|
|
94
|
-
filemenu = FXMenuPane.new(self)
|
|
95
|
-
newCmd = FXMenuCommand.new(filemenu, "&New\tCtl-N\tCreate new document.")
|
|
96
|
-
newCmd.connect(SEL_COMMAND, method(:onCmdNew))
|
|
97
|
-
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit application.", nil,
|
|
98
|
-
getApp(), FXApp::ID_QUIT, 0)
|
|
99
|
-
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
|
100
|
-
|
|
101
|
-
# Window menu
|
|
102
|
-
windowmenu = FXMenuPane.new(self)
|
|
103
|
-
FXMenuCommand.new(windowmenu, "Tile &Horizontally", nil,
|
|
104
|
-
@mdiclient, FXMDIClient::ID_MDI_TILEHORIZONTAL)
|
|
105
|
-
FXMenuCommand.new(windowmenu, "Tile &Vertically", nil,
|
|
106
|
-
@mdiclient, FXMDIClient::ID_MDI_TILEVERTICAL)
|
|
107
|
-
FXMenuCommand.new(windowmenu, "C&ascade", nil,
|
|
108
|
-
@mdiclient, FXMDIClient::ID_MDI_CASCADE)
|
|
109
|
-
FXMenuCommand.new(windowmenu, "&Close", nil,
|
|
110
|
-
@mdiclient, FXMDIClient::ID_MDI_CLOSE)
|
|
111
|
-
sep1 = FXMenuSeparator.new(windowmenu)
|
|
112
|
-
sep1.setTarget(@mdiclient)
|
|
113
|
-
sep1.setSelector(FXMDIClient::ID_MDI_ANY)
|
|
114
|
-
FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_1)
|
|
115
|
-
FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_2)
|
|
116
|
-
FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_3)
|
|
117
|
-
FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_4)
|
|
118
|
-
FXMenuCommand.new(windowmenu, "&Others...", nil, @mdiclient, FXMDIClient::ID_MDI_OVER_5)
|
|
119
|
-
FXMenuTitle.new(menubar,"&Window", nil, windowmenu)
|
|
120
|
-
|
|
121
|
-
# Help menu
|
|
122
|
-
helpmenu = FXMenuPane.new(self)
|
|
123
|
-
FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) {
|
|
124
|
-
FXMessageBox.information(self, MBOX_OK, "About MDI Test",
|
|
125
|
-
"Test of the FOX MDI Widgets\nWritten by Jeroen van der Zijp")
|
|
126
|
-
}
|
|
127
|
-
FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT)
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
#
|
|
131
|
-
# Create a new MDI child window.
|
|
132
|
-
#
|
|
133
|
-
# When Ruby's GC is marking the FXTable, we also call FXRbGcMark() on all of
|
|
134
|
-
# the table's items (see FXRbTable::markfunc in markfuncs.cpp).
|
|
135
|
-
#
|
|
136
|
-
def createTestWindow(x, y, w, h)
|
|
137
|
-
mdichild = FXMDIChild.new(@mdiclient, "Child", nil, nil,0, x, y, w, h)
|
|
138
|
-
scrollwindow = FXScrollWindow.new(mdichild, 0)
|
|
139
|
-
scrollwindow.verticalScrollBar.setLine(@font.fontHeight)
|
|
140
|
-
tbl = FXTable.new(scrollwindow, nil, 0, TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 2, 2, 2, 2)
|
|
141
|
-
nr, nc = 200, 200
|
|
142
|
-
tbl.setTableSize(nr, nc)
|
|
143
|
-
(0...nc).each { |c|
|
|
144
|
-
tbl.setColumnText(c,c.to_s)
|
|
145
|
-
}
|
|
146
|
-
(0...nr).each { |r|
|
|
147
|
-
tbl.setRowText(r,r.to_s)
|
|
148
|
-
}
|
|
149
|
-
(0...nr).each { |r|
|
|
150
|
-
(0...nc).each { |c|
|
|
151
|
-
tbl.setItemText(r,c,"#{r},#{c}")
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
mdichild
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# New
|
|
158
|
-
def onCmdNew(sender, sel, ptr)
|
|
159
|
-
mdichild = createTestWindow(20, 20, 300, 200)
|
|
160
|
-
mdichild.create
|
|
161
|
-
return 1
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
# Start
|
|
165
|
-
def create
|
|
166
|
-
super
|
|
167
|
-
|
|
168
|
-
# At the time the first three MDI windows are constructed, we don't
|
|
169
|
-
# yet know the font height and so we cannot accurately set the line
|
|
170
|
-
# height for the vertical scrollbar. Now that the real font has been
|
|
171
|
-
# created, we can go back and fix the scrollbar line heights for these
|
|
172
|
-
# windows.
|
|
173
|
-
@font.create
|
|
174
|
-
@mdiclient.each_child do |mdichild|
|
|
175
|
-
mdichild.contentWindow.verticalScrollBar.setLine(@font.fontHeight)
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
show(PLACEMENT_SCREEN)
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if __FILE__ == $0
|
|
183
|
-
# Make application
|
|
184
|
-
application = FXApp.new("MDIApp", "FoxTest")
|
|
185
|
-
application.init(ARGV)
|
|
186
|
-
|
|
187
|
-
# Make window
|
|
188
|
-
MDITestWindow.new(application)
|
|
189
|
-
|
|
190
|
-
# Create app
|
|
191
|
-
application.create
|
|
192
|
-
|
|
193
|
-
# Run
|
|
194
|
-
application.run
|
|
195
|
-
end
|
data/lib/fox12/dialogs.rb
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
module Fox
|
|
2
|
-
# Module to include in FXDialogBox to provide an easy nonmodal version
|
|
3
|
-
# of execute.
|
|
4
|
-
module FTNonModal
|
|
5
|
-
include Responder
|
|
6
|
-
|
|
7
|
-
def initialize(*args)
|
|
8
|
-
super if defined?(super)
|
|
9
|
-
FXMAPFUNC(SEL_COMMAND, FXDialogBox::ID_CANCEL, :onCmdCancel)
|
|
10
|
-
FXMAPFUNC(SEL_COMMAND, FXDialogBox::ID_ACCEPT, :onCmdAccept)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
#
|
|
14
|
-
# Creates and shows the dialog, and registers the associated block to be
|
|
15
|
-
# called when the dialog is closed. The block is passed a boolean argument
|
|
16
|
-
# which is true if and only if the dialog was accepted.
|
|
17
|
-
#
|
|
18
|
-
# For example:
|
|
19
|
-
#
|
|
20
|
-
# dialogBox.execute_modal do |accepted|
|
|
21
|
-
# if accepted
|
|
22
|
-
# puts "Dialog accepted"
|
|
23
|
-
# else
|
|
24
|
-
# puts "Dialog cancelled"
|
|
25
|
-
# end
|
|
26
|
-
#
|
|
27
|
-
def execute_modal(placement = PLACEMENT_CURSOR, &block)
|
|
28
|
-
@__FTNonModal_block = block
|
|
29
|
-
execute(placement)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
#
|
|
33
|
-
# Creates and shows the dialog, and registers the associated block to be
|
|
34
|
-
# called when the dialog is closed. The block is passed a boolean argument
|
|
35
|
-
# which is true if and only if the dialog was accepted.
|
|
36
|
-
#
|
|
37
|
-
# For example:
|
|
38
|
-
#
|
|
39
|
-
# dialogBox.execute_nonmodal do |accepted|
|
|
40
|
-
# if accepted
|
|
41
|
-
# puts "Dialog accepted"
|
|
42
|
-
# else
|
|
43
|
-
# puts "Dialog cancelled"
|
|
44
|
-
# end
|
|
45
|
-
#
|
|
46
|
-
def execute_nonmodal(placement = PLACEMENT_CURSOR, &block)
|
|
47
|
-
@__FTNonModal_block = block
|
|
48
|
-
create
|
|
49
|
-
show placement
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def onCmdCancel(*args) # :nodoc:
|
|
53
|
-
on_nonmodal_close(false)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def onCmdAccept(*args) # :nodoc:
|
|
57
|
-
on_nonmodal_close(true)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# Called when dialog is closed, with _accepted_ equal to true if and only if
|
|
61
|
-
# the user accepted the dialog.
|
|
62
|
-
def on_nonmodal_close(accepted)
|
|
63
|
-
@__FTNonModal_block[accepted]
|
|
64
|
-
|
|
65
|
-
##return 0 -- why isn't this enough to close window?
|
|
66
|
-
## oh well, let's immitate FXTopWindow:
|
|
67
|
-
getApp().stopModal(self, accepted ? 1 : 0)
|
|
68
|
-
hide()
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
data/tests/TC_FXSettings.rb
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
require 'test/unit'
|
|
2
|
-
require 'fox12'
|
|
3
|
-
require 'testcase'
|
|
4
|
-
|
|
5
|
-
include Fox
|
|
6
|
-
|
|
7
|
-
class TC_FXSettings < TestCase
|
|
8
|
-
|
|
9
|
-
def setup
|
|
10
|
-
super(self.class.name)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def test_each_section_empty_settings
|
|
14
|
-
empty = FXSettings.new
|
|
15
|
-
num_sections = 0
|
|
16
|
-
empty.each_section do |sect|
|
|
17
|
-
num_sections = num_sections + 1
|
|
18
|
-
end
|
|
19
|
-
assert_equal(0, num_sections)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def test_each_section
|
|
23
|
-
settings = FXSettings.new
|
|
24
|
-
settings.writeStringEntry('sect1', 'key1', 'value1')
|
|
25
|
-
settings.writeStringEntry('sect2', 'key2', 'value2')
|
|
26
|
-
keys = []
|
|
27
|
-
settings.each_section do |sect|
|
|
28
|
-
sect.each_key do |key|
|
|
29
|
-
keys << key
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
assert_equal(['key1', 'key2'], keys.sort)
|
|
33
|
-
end
|
|
34
|
-
end
|