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/rdoc-sources/FXDC.rb
CHANGED
|
@@ -193,7 +193,7 @@ module Fox
|
|
|
193
193
|
attr_reader :clipHeight
|
|
194
194
|
|
|
195
195
|
# Font to draw text with [FXFont]
|
|
196
|
-
attr_accessor :
|
|
196
|
+
attr_accessor :textFont
|
|
197
197
|
|
|
198
198
|
# Construct dummy DC
|
|
199
199
|
def initialize(app) ; end
|
|
@@ -323,6 +323,18 @@ module Fox
|
|
|
323
323
|
#
|
|
324
324
|
def drawRectangles(rectangles) ; end
|
|
325
325
|
|
|
326
|
+
#
|
|
327
|
+
# Draw a rounded rectangle with ellipse width _ew_ and ellipse height _eh_.
|
|
328
|
+
#
|
|
329
|
+
# === Parameters:
|
|
330
|
+
#
|
|
331
|
+
# <tt>x</tt>:: x-coordinate of the upper left corner of the bounding rectangle [Integer]
|
|
332
|
+
# <tt>y</tt>:: y-coordinate of the upper left corner of the bounding rectangle [Integer]
|
|
333
|
+
# <tt>w</tt>:: width of the bounding rectangle, in pixels [Integer]
|
|
334
|
+
# <tt>h</tt>:: height of the bounding rectangle, in pixels [Integer]
|
|
335
|
+
#
|
|
336
|
+
def drawRoundRectangle(x, y, w, h, ew, eh); end
|
|
337
|
+
|
|
326
338
|
#
|
|
327
339
|
# Draw an arc.
|
|
328
340
|
# The argument <em>start</em> specifies the start of the arc relative to
|
|
@@ -355,7 +367,12 @@ module Fox
|
|
|
355
367
|
# See also #drawArc, #fillArc and #fillArcs.
|
|
356
368
|
#
|
|
357
369
|
def drawArcs(arcs) ; end
|
|
358
|
-
|
|
370
|
+
|
|
371
|
+
#
|
|
372
|
+
# Draw an ellipse.
|
|
373
|
+
#
|
|
374
|
+
def drawEllipse(x, y, w, h); end
|
|
375
|
+
|
|
359
376
|
#
|
|
360
377
|
# Draw filled rectangle with upper-left corner at (_x_, _y_) and with width and height (_w_, _h_).
|
|
361
378
|
#
|
|
@@ -381,6 +398,18 @@ module Fox
|
|
|
381
398
|
#
|
|
382
399
|
def fillRectangles(rectangles) ; end
|
|
383
400
|
|
|
401
|
+
#
|
|
402
|
+
# Draw a filled rounded rectangle with ellipse width _ew_ and ellipse height _eh_.
|
|
403
|
+
#
|
|
404
|
+
# === Parameters:
|
|
405
|
+
#
|
|
406
|
+
# <tt>x</tt>:: x-coordinate of the upper left corner of the bounding rectangle [Integer]
|
|
407
|
+
# <tt>y</tt>:: y-coordinate of the upper left corner of the bounding rectangle [Integer]
|
|
408
|
+
# <tt>w</tt>:: width of the bounding rectangle, in pixels [Integer]
|
|
409
|
+
# <tt>h</tt>:: height of the bounding rectangle, in pixels [Integer]
|
|
410
|
+
#
|
|
411
|
+
def fillRoundRectangle(x, y, w, h, ew, eh); end
|
|
412
|
+
|
|
384
413
|
def fillChord(x, y, w, h, ang1, ang2) ; end
|
|
385
414
|
def fillChords(chords, nchords) ; end
|
|
386
415
|
|
|
@@ -411,6 +440,11 @@ module Fox
|
|
|
411
440
|
#
|
|
412
441
|
def fillArcs(arcs) ; end
|
|
413
442
|
|
|
443
|
+
#
|
|
444
|
+
# Draw a filled ellipse.
|
|
445
|
+
#
|
|
446
|
+
def fillEllipse(x, y, w, h); end
|
|
447
|
+
|
|
414
448
|
#
|
|
415
449
|
# Draw filled polygon, where _points_ is an array of FXPoint instances.
|
|
416
450
|
#
|
data/rdoc-sources/FXDial.rb
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
module Fox
|
|
2
2
|
#
|
|
3
|
-
# Dial
|
|
3
|
+
# The Dial widget is a valuator widget which is able to provide a cyclic
|
|
4
|
+
# value range when the <tt>DIAL_CYCLIC</tt> is passed, or a simple linear value range.
|
|
5
|
+
# While being turned, the dial sends a <tt>SEL_CHANGED</tt> message to its target;
|
|
6
|
+
# at the end of the interaction, a <tt>SEL_COMMAND</tt> message is sent.
|
|
7
|
+
# The message data represents the current value (an integer). The options
|
|
8
|
+
# <tt>DIAL_VERTICAL</tt> and <tt>DIAL_HORIZONTAL</tt> control the orientation of the dial.
|
|
9
|
+
# An optional notch can be used to indicate the zero-position of
|
|
10
|
+
# the dial; display of the notch is controlled by the <tt>DIAL_HAS_NOTCH</tt> option.
|
|
4
11
|
#
|
|
5
12
|
# === Events
|
|
6
13
|
#
|
|
@@ -8,9 +15,8 @@ module Fox
|
|
|
8
15
|
#
|
|
9
16
|
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
|
10
17
|
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
|
11
|
-
# +SEL_CHANGED+:: sent when the dial's value changes; the message data is the new value.
|
|
12
|
-
# +SEL_COMMAND+::
|
|
13
|
-
# sent when the user stops changing the dial's value and releases the mouse button; the message data is the new value.
|
|
18
|
+
# +SEL_CHANGED+:: sent when the dial's value changes; the message data is the new value (an integer).
|
|
19
|
+
# +SEL_COMMAND+:: sent when the user stops changing the dial's value and releases the mouse button; the message data is the new value (an integer).
|
|
14
20
|
#
|
|
15
21
|
# === Dial style options
|
|
16
22
|
#
|
data/rdoc-sources/FXDirBox.rb
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
module Fox
|
|
2
2
|
#
|
|
3
|
-
# Directory Box
|
|
3
|
+
# A Directory Box widget allows the user to select parts of a file path.
|
|
4
|
+
# First, it is filled with a string comprising a file path, like "/a/b/c".
|
|
5
|
+
# Then, the user can select "/a/b/c", "/a/b", "/a", and "/" from the drop-down
|
|
6
|
+
# list. The entries in the drop-down list are automatically provided with icons
|
|
7
|
+
# by consulting the file-associations registry settings.
|
|
8
|
+
# The Directory Box sends <tt>SEL_CHANGED</tt> and <tt>SEL_COMMAND</tt> messages, with the string
|
|
9
|
+
# containing the full path to the selected item.
|
|
4
10
|
#
|
|
5
11
|
# === Options
|
|
6
12
|
#
|
data/rdoc-sources/FXDirDialog.rb
CHANGED
|
@@ -7,12 +7,45 @@ module Fox
|
|
|
7
7
|
# Directory [String]
|
|
8
8
|
attr_accessor :directory
|
|
9
9
|
|
|
10
|
+
# Wildcard matching mode, some combination of file matching flags [Integer]
|
|
11
|
+
attr_accessor :matchMode
|
|
12
|
+
|
|
10
13
|
# Directory list style [Integer]
|
|
11
14
|
attr_accessor :dirBoxStyle
|
|
12
15
|
|
|
13
16
|
# Returns an initialized FXDirDialog instance.
|
|
14
17
|
def initialize(owner, name, opts=0, x=0, y=0, w=500, h=300) # :yields: theDirDialog
|
|
15
18
|
end
|
|
19
|
+
|
|
20
|
+
# Returns a free-floating initialized FXDirDialog instance.
|
|
21
|
+
def initialize(app, name, opts=0, x=0, y=0, w=500, h=300) # :yields: theDirDialog
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Return +true+ if showing files as well as directories
|
|
25
|
+
def filesShown?; end
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
# If _state_ is +true+, the directory list will show files as well as
|
|
29
|
+
# directories; otherwise, it will only show directories.
|
|
30
|
+
#
|
|
31
|
+
def filesShown=(state); end
|
|
32
|
+
|
|
33
|
+
# Return +true+ if showing hidden files and directories
|
|
34
|
+
def hiddenFilesShown?; end
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# If _state_ is +true+, the directory list will show hidden files and
|
|
38
|
+
# directories; otherwise, it won't.
|
|
39
|
+
#
|
|
40
|
+
def hiddenFilesShown=(state); end
|
|
41
|
+
|
|
42
|
+
#
|
|
43
|
+
# Display a directory dialog with the specified owner window, caption
|
|
44
|
+
# string and initial path string.
|
|
45
|
+
# Return the selected directory name (a string) or +nil+ if the dialog
|
|
46
|
+
# was cancelled.
|
|
47
|
+
#
|
|
48
|
+
def FXDirDialog.getOpenDirectory(owner, caption, path); end
|
|
16
49
|
end
|
|
17
50
|
end
|
|
18
51
|
|
data/rdoc-sources/FXDirList.rb
CHANGED
|
@@ -39,7 +39,12 @@ module Fox
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
#
|
|
42
|
-
#
|
|
42
|
+
# An FXDirList widget provides a tree-structured view of the file system.
|
|
43
|
+
# It automatically updates itself periodically by re-scanning the file system
|
|
44
|
+
# for any changes. As it scans the displayed directories and files, it automatically
|
|
45
|
+
# determines the icons to be displayed by consulting the file-associations registry
|
|
46
|
+
# settings. A number of messages can be sent to the FXDirList to control the
|
|
47
|
+
# filter pattern, sorting order, case sensitivity, and hidden file display mode.
|
|
43
48
|
#
|
|
44
49
|
# === Events
|
|
45
50
|
#
|
|
@@ -103,14 +108,14 @@ module Fox
|
|
|
103
108
|
|
|
104
109
|
#
|
|
105
110
|
# Set current file.
|
|
106
|
-
# If _notify_ is +true
|
|
111
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's
|
|
107
112
|
# message target to indicate that the current item has changed.
|
|
108
113
|
#
|
|
109
114
|
def setCurrentFile(file, notify=false); end
|
|
110
115
|
|
|
111
116
|
#
|
|
112
117
|
# Set current directory.
|
|
113
|
-
# If _notify_ is +true
|
|
118
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's
|
|
114
119
|
# message target to indicate that the current item has changed.
|
|
115
120
|
#
|
|
116
121
|
def setDirectory(path, notify=false); end
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
module Fox
|
|
2
2
|
#
|
|
3
|
-
#
|
|
3
|
+
# The FXDirSelector widget is the reusable mega-widget component which
|
|
4
|
+
# is the core of the FXDirDialog. The function of the directory selector widget
|
|
5
|
+
# is very similar to the file selector widget, except that the directory selector widget
|
|
6
|
+
# displays a tree-structured view of the file system, and thereby makes up and down
|
|
7
|
+
# navigation through the file system significantly easier.
|
|
4
8
|
#
|
|
5
9
|
# === Message identifiers
|
|
6
10
|
#
|
|
7
11
|
# +ID_DIRNAME+:: x
|
|
8
12
|
# +ID_DIRLIST+:: x
|
|
9
|
-
# +
|
|
13
|
+
# +ID_HOME+:: x
|
|
14
|
+
# +ID_WORK+:: x
|
|
15
|
+
# +ID_DIRECTORY_UP+:: x
|
|
16
|
+
# +ID_BOOKMARK+:: x
|
|
17
|
+
# +ID_VISIT+:: x
|
|
18
|
+
# +ID_NEW+:: x
|
|
19
|
+
# +ID_DELETE+:: x
|
|
20
|
+
# +ID_MOVE+:: x
|
|
21
|
+
# +ID_COPY+:: x
|
|
22
|
+
# +ID_LINK+:: x
|
|
10
23
|
#
|
|
11
24
|
class FXDirSelector < FXPacker
|
|
12
25
|
|
|
@@ -19,12 +32,33 @@ module Fox
|
|
|
19
32
|
# Directory [String]
|
|
20
33
|
attr_accessor :directory
|
|
21
34
|
|
|
35
|
+
# Wildcard matching mode, some combination of file matching flags [Integer]
|
|
36
|
+
attr_accessor :matchMode
|
|
37
|
+
|
|
22
38
|
# Directory list style [Integer]
|
|
23
39
|
attr_accessor :dirBoxStyle
|
|
24
40
|
|
|
25
41
|
# Return an initialized FXDirSelector instance
|
|
26
42
|
def initialize(p, tgt=nil, sel=0, opts=0, x=0, y=0, w=0, h=0) # :yields: theDirSelector
|
|
27
43
|
end
|
|
44
|
+
|
|
45
|
+
# Return +true+ if showing files as well as directories
|
|
46
|
+
def filesShown?; end
|
|
47
|
+
|
|
48
|
+
#
|
|
49
|
+
# If _state_ is +true+, the directory selector will show files as well as
|
|
50
|
+
# directories; otherwise, it will only show directories.
|
|
51
|
+
#
|
|
52
|
+
def filesShown=(state); end
|
|
53
|
+
|
|
54
|
+
# Return +true+ if showing hidden files and directories
|
|
55
|
+
def hiddenFilesShown?; end
|
|
56
|
+
|
|
57
|
+
#
|
|
58
|
+
# If _state_ is +true+, the directory selector will show hidden files and
|
|
59
|
+
# directories; otherwise, it won't.
|
|
60
|
+
#
|
|
61
|
+
def hiddenFilesShown=(state); end
|
|
28
62
|
end
|
|
29
63
|
end
|
|
30
64
|
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
module Fox
|
|
2
|
+
#
|
|
3
|
+
# A dock bar widget can be docked inside a dock site widget, or floated
|
|
4
|
+
# around freely. Users can move, undock, and dock the dock bar widget
|
|
5
|
+
# by means of a handle such as a tool bar grip.
|
|
6
|
+
#
|
|
7
|
+
# === Dock Bar Options
|
|
8
|
+
#
|
|
9
|
+
# +ALLOW_NOWHERE+:: Don't allow docking anywhere
|
|
10
|
+
# +ALLOW_TOP+:: Docking at the top only
|
|
11
|
+
# +ALLOW_BOTTOM+:: Docking at the bottom only
|
|
12
|
+
# +ALLOW_LEFT+:: Docking at the left only
|
|
13
|
+
# +ALLOW_RIGHT+:: Docking at the right only
|
|
14
|
+
# +ALLOW_HORIZONTAL+:: Docking at the top and bottom
|
|
15
|
+
# +ALLOW_VERTICAL+:: Docking at the left and right
|
|
16
|
+
# +ALLOW_EVERYWHERE+:: Docking can be everywhere
|
|
17
|
+
#
|
|
18
|
+
class FXDockBar < FXPacker
|
|
19
|
+
|
|
20
|
+
# Docking side, one of +LAYOUT_SIDE_LEFT+, +LAYOUT_SIDE_RIGHT+, +LAYOUT_SIDE_TOP+ or +LAYOUT_SIDE_BOTTOM+ [Integer]
|
|
21
|
+
attr_accessor :dockingSide
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Construct a floatable dock bar, with a default parent _p_ and an
|
|
25
|
+
# alternate parent _q_. To allow docking and dragging, the default parent
|
|
26
|
+
# _p_ must be of type FXDockSite, and the alternate parent _q_ must be of
|
|
27
|
+
# type FXToolBarShell.
|
|
28
|
+
# Normally, the dock bar is docked under a window _p_ of type FXDockSite.
|
|
29
|
+
# When floated, the toolbar can be docked under window _q_, which is
|
|
30
|
+
# usually an kind of FXToolBarShell window.
|
|
31
|
+
#
|
|
32
|
+
# ==== Parameters:
|
|
33
|
+
#
|
|
34
|
+
# +p+:: the "dry dock" window for this dock bar [FXComposite]
|
|
35
|
+
# +q+:: the "wet dock" window for this dock bar [FXComposite]
|
|
36
|
+
# +opts+:: dock bar options [Integer]
|
|
37
|
+
# +x+:: initial x-position [Integer]
|
|
38
|
+
# +y+:: initial y-position [Integer]
|
|
39
|
+
# +w+:: initial width [Integer]
|
|
40
|
+
# +h+:: initial height [Integer]
|
|
41
|
+
# +pl+:: internal padding on the left side, in pixels [Integer]
|
|
42
|
+
# +pr+:: internal padding on the right side, in pixels [Integer]
|
|
43
|
+
# +pt+:: internal padding on the top side, in pixels [Integer]
|
|
44
|
+
# +pb+:: internal padding on the bottom side, in pixels [Integer]
|
|
45
|
+
# +hs+:: horizontal spacing between widgets, in pixels [Integer]
|
|
46
|
+
# +vs+:: vertical spacing between widgets, in pixels [Integer]
|
|
47
|
+
#
|
|
48
|
+
def initialize(p, q, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, w=0, h=0, pl=3, pr=3, pt=2, pb=2, hs=DEFAULT_SPACING, vs=DEFAULT_SPACING) # :yields: theDockBar
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Construct a non-floatable dock bar.
|
|
53
|
+
# The dock bar can not be undocked.
|
|
54
|
+
#
|
|
55
|
+
# ==== Parameters:
|
|
56
|
+
#
|
|
57
|
+
# +p+:: the parent window for this dock bar [FXComposite]
|
|
58
|
+
# +opts+:: dock bar options [Integer]
|
|
59
|
+
# +x+:: initial x-position [Integer]
|
|
60
|
+
# +y+:: initial y-position [Integer]
|
|
61
|
+
# +w+:: initial width [Integer]
|
|
62
|
+
# +h+:: initial height [Integer]
|
|
63
|
+
# +pl+:: internal padding on the left side, in pixels [Integer]
|
|
64
|
+
# +pr+:: internal padding on the right side, in pixels [Integer]
|
|
65
|
+
# +pt+:: internal padding on the top side, in pixels [Integer]
|
|
66
|
+
# +pb+:: internal padding on the bottom side, in pixels [Integer]
|
|
67
|
+
# +hs+:: horizontal spacing between widgets, in pixels [Integer]
|
|
68
|
+
# +vs+:: vertical spacing between widgets, in pixels [Integer]
|
|
69
|
+
#
|
|
70
|
+
def initialize(p, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, w=0, h=0, pl=3, pr=3, pt=2, pb=2, hs=DEFAULT_SPACING, vs=DEFAULT_SPACING) # :yields: theDockBar
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Return +true+ if docked
|
|
74
|
+
def docked? ; end
|
|
75
|
+
|
|
76
|
+
#
|
|
77
|
+
# Set parent when docked.
|
|
78
|
+
# If it was docked, reparent under the new docking window.
|
|
79
|
+
#
|
|
80
|
+
def dryDock=(dry); end
|
|
81
|
+
|
|
82
|
+
# Return parent when docked.
|
|
83
|
+
def dryDock; end
|
|
84
|
+
|
|
85
|
+
#
|
|
86
|
+
# Set parent when floating.
|
|
87
|
+
# If it was undocked, then reparent under the new floating window.
|
|
88
|
+
#
|
|
89
|
+
def wetDock=(wet); end
|
|
90
|
+
|
|
91
|
+
# Return parent when floating.
|
|
92
|
+
def wetDock; end
|
|
93
|
+
|
|
94
|
+
#
|
|
95
|
+
# Search for dock against given side of main window.
|
|
96
|
+
#
|
|
97
|
+
def findDockAtSide(side=LAYOUT_SIDE_TOP); end
|
|
98
|
+
|
|
99
|
+
#
|
|
100
|
+
# Search for dock close to coordinates (<em>root_x</em>, <em>root_y</em>).
|
|
101
|
+
#
|
|
102
|
+
def findDockNear(root_x, root_y); end
|
|
103
|
+
|
|
104
|
+
#
|
|
105
|
+
# Dock the bar against the given side, after some other widget.
|
|
106
|
+
# However, if after is -1, it will be docked as the innermost bar just before
|
|
107
|
+
# the work-area, while if after is 0, if will be docked as the outermost bar.
|
|
108
|
+
#
|
|
109
|
+
def dock(docksite, before=nil); end
|
|
110
|
+
|
|
111
|
+
#
|
|
112
|
+
# Dock the bar against the given side, near the given position relative
|
|
113
|
+
# to the toolbar dock's origin.
|
|
114
|
+
#
|
|
115
|
+
def dock(docksite, local_x, local_y); end
|
|
116
|
+
|
|
117
|
+
#
|
|
118
|
+
# Undock or float the bar.
|
|
119
|
+
# The initial position of the wet dock is a few pixels
|
|
120
|
+
# below and to the right of the original docked position.
|
|
121
|
+
#
|
|
122
|
+
def undock(root_x, root_y); end
|
|
123
|
+
|
|
124
|
+
#
|
|
125
|
+
# Change set of sides where docking is allowed.
|
|
126
|
+
# The default is to allow docking on all sides.
|
|
127
|
+
#
|
|
128
|
+
def allowedSides=(allow=ALLOW_EVERYWHERE); end
|
|
129
|
+
|
|
130
|
+
#
|
|
131
|
+
# Return set of sides where docking is allowed
|
|
132
|
+
#
|
|
133
|
+
def allowedSides(); end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Fox
|
|
2
|
+
#
|
|
3
|
+
# The dock handler exists as a common base class for tool bar grip
|
|
4
|
+
# and dock title.
|
|
5
|
+
#
|
|
6
|
+
class FXDockHandler < FXFrame
|
|
7
|
+
# Status line help text [String]
|
|
8
|
+
attr_accessor :helpText
|
|
9
|
+
|
|
10
|
+
# Tool tip text [String]
|
|
11
|
+
attr_accessor :tipText
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Return an initialized FXDockHandler instance.
|
|
15
|
+
#
|
|
16
|
+
def initialize(p, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb) # :yields: aDockHandler
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
module Fox
|
|
2
|
+
#
|
|
3
|
+
# The dock site widget is a widget where dock bars can be docked.
|
|
4
|
+
# Dock site widgets are typically embedded inside the main window, placed
|
|
5
|
+
# against those sides where docking of toolbars is to be allowed.
|
|
6
|
+
# Dock bars placed inside a dock site are laid out in horizontal or vertical bands
|
|
7
|
+
# called galleys. A toolbar with the LAYOUT_DOCK_SAME hint is preferentially placed
|
|
8
|
+
# on the same galley as its previous sibling. A dock bar with the LAYOUT_DOCK_NEXT is
|
|
9
|
+
# always placed on the next galley.
|
|
10
|
+
# Each galley will have at least one dock bar shown in it. Several dock bars
|
|
11
|
+
# may be placed side-by-side inside one galley, unless there is insufficient
|
|
12
|
+
# room. If there is insufficient room to place another dock bar, that dock bar
|
|
13
|
+
# will be moved to the next galley, even though its LAYOUT_DOCK_NEXT option
|
|
14
|
+
# is not set. This implies that when the main window is resized and more room
|
|
15
|
+
# becomes available, it will jump back to its preferred galley.
|
|
16
|
+
# Within a galley, dock bars will be placed from left to right, at the given
|
|
17
|
+
# x and y coordinates, with the constraints that the dock bar will stay within
|
|
18
|
+
# the galley, and do not overlap each other. It is possible to use LAYOUT_FILL_X
|
|
19
|
+
# and/or LAYOUT_FILL_Y to stretch a toolbar to the available space on its galley.
|
|
20
|
+
# The galleys are oriented horizontally if the dock site is placed inside
|
|
21
|
+
# a top level window using LAYOUT_SIDE_TOP or LAYOUT_SIDE_BOTTOM, and
|
|
22
|
+
# vertically oriented if placed with LAYOUT_SIDE_LEFT or LAYOUT_SIDE_RIGHT.
|
|
23
|
+
#
|
|
24
|
+
class FXDockSite < FXPacker
|
|
25
|
+
#
|
|
26
|
+
# Construct a toolbar dock layout manager. Passing LAYOUT_SIDE_TOP or LAYOUT_SIDE_BOTTOM
|
|
27
|
+
# causes the toolbar dock to be oriented horizontally. Passing LAYOUT_SIDE_LEFT or
|
|
28
|
+
# LAYOUT_SIDE_RIGHT causes it to be oriented vertically.
|
|
29
|
+
#
|
|
30
|
+
def initialize(p, opts=0, x=0, y=0, w=0, h=0, pl=0, pr=0, pt=0, pb=0, hs=0, vs=0) # :yields: theDockSite
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
# Move tool bar, changing its options to suit the new position.
|
|
35
|
+
# Used by the toolbar dragging to rearrange the toolbars inside the
|
|
36
|
+
# toolbar dock.
|
|
37
|
+
#
|
|
38
|
+
# ==== Parameters:
|
|
39
|
+
#
|
|
40
|
+
# +bar+:: a reference to the dockbar that's being dragged [FXDockBar]
|
|
41
|
+
# +barx+:: current x-coordinate of the dockbar [Integer]
|
|
42
|
+
# +bary+ current y-coordinate of the dockbar [Integer]
|
|
43
|
+
#
|
|
44
|
+
def moveToolBar(bar, barx, bary); end
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# The dock site is notified that the given bar has been added
|
|
48
|
+
# logically before the given window, and is to placed on a new
|
|
49
|
+
# galley all by itself. The default implementation adjusts
|
|
50
|
+
# the layout options of the bars accordingly.
|
|
51
|
+
#
|
|
52
|
+
# ==== Parameters:
|
|
53
|
+
#
|
|
54
|
+
# +bar+:: a reference to the newly docked dockbar [FXDockBar]
|
|
55
|
+
# +before+:: a reference to the window that the dockbar was added before [FXWindow]
|
|
56
|
+
#
|
|
57
|
+
def dockToolBar(bar, before); end
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
# The dock site is informed that the given bar has been docked
|
|
61
|
+
# at the given coordinates. The default implementation determines
|
|
62
|
+
# where to insert the newly docked bar and adjusts the layout
|
|
63
|
+
# options of the bars accordingly.
|
|
64
|
+
#
|
|
65
|
+
# ==== Parameters:
|
|
66
|
+
#
|
|
67
|
+
# +bar+:: a reference to the newly docked dockbar [FXDockBar][FXDockBar]
|
|
68
|
+
# +barx+:: x-coordinate of the docking position [Integer]
|
|
69
|
+
# +bary+:: y-coordinate of the docking position [Integer]
|
|
70
|
+
#
|
|
71
|
+
def dockToolBar(bar, barx, bary); end
|
|
72
|
+
|
|
73
|
+
#
|
|
74
|
+
# The dock site is informed that the given bar has been removed.
|
|
75
|
+
# In the default implementation, the dock site fixes the layout
|
|
76
|
+
# options of the remaining bars so they stay in the same place
|
|
77
|
+
# if possible.
|
|
78
|
+
#
|
|
79
|
+
# ==== Parameters:
|
|
80
|
+
#
|
|
81
|
+
# +bar+:: a reference to the removed dockbar [FXDockBar]
|
|
82
|
+
#
|
|
83
|
+
def undockToolBar(bar); end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|