fxruby 1.6.22.pre2 → 1.6.22.pre3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -1
- data/README.txt +10 -10
- data/Rakefile +3 -2
- data/doap.rdf +2 -2
- data/examples/babelfish.rb +2 -2
- data/examples/bounce.rb +20 -20
- data/examples/charts.rb +2 -2
- data/examples/custom_table_item.rb +3 -3
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +51 -51
- data/examples/dialog.rb +14 -14
- data/examples/dilbert.rb +4 -4
- data/examples/dirlist.rb +6 -6
- data/examples/dragdrop.rb +7 -7
- data/examples/dragsource.rb +6 -6
- data/examples/dropsite.rb +5 -5
- data/examples/foursplit.rb +6 -6
- data/examples/gltest.rb +40 -40
- data/examples/glviewer.rb +16 -16
- data/examples/groupbox.rb +41 -41
- data/examples/header.rb +6 -6
- data/examples/hello2.rb +2 -2
- data/examples/iconlist.rb +10 -10
- data/examples/image.rb +26 -26
- data/examples/imageviewer.rb +31 -31
- data/examples/inputs.rb +2 -2
- data/examples/mditest.rb +12 -12
- data/examples/pig.rb +8 -8
- data/examples/raabrowser.rb +5 -5
- data/examples/ratio.rb +9 -9
- data/examples/rulerview.rb +2 -2
- data/examples/scintilla-test.rb +6 -6
- data/examples/scribble-orig.rb +3 -3
- data/examples/scribble.rb +3 -3
- data/examples/shutter.rb +6 -6
- data/examples/splitter.rb +15 -15
- data/examples/styledtext.rb +10 -10
- data/examples/tabbook.rb +14 -14
- data/examples/table.rb +21 -21
- data/examples/textedit/helpwindow.rb +6 -6
- data/examples/textedit/textedit.rb +72 -72
- data/ext/fox16/FXRuby.cpp +48 -5
- data/ext/fox16/core_wrap.cpp +1 -1
- data/ext/fox16/iconlist_wrap.cpp +1 -1
- data/ext/fox16/icons_wrap.cpp +1 -1
- data/ext/fox16/include/FXMemoryBuffer.h +3 -3
- data/ext/fox16/include/FXRbApp.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
- data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +2 -2
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
- data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
- data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +2 -2
- data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
- data/ext/fox16/include/FXRbListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +3 -3
- data/ext/fox16/include/FXRbRulerView.h +3 -3
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +2 -2
- data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
- data/ext/fox16/include/FXRbText.h +2 -2
- data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbWindow.h +3 -3
- data/ext/fox16/include/FXRbWizard.h +2 -2
- data/ext/fox16/include/FXRuby.h +8 -4
- data/ext/fox16/librb.c +12 -12
- data/ext/fox16/list_wrap.cpp +1 -1
- data/ext/fox16/make_impl.rb +5 -5
- data/ext/fox16/markfuncs.cpp +228 -220
- data/ext/fox16/scintilla_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +4 -4
- data/ext/fox16/ui_wrap.cpp +2 -2
- data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
- data/lib/fox16/accel_table.rb +1 -1
- data/lib/fox16/aliases.rb +3 -3
- data/lib/fox16/calendar.rb +21 -21
- data/lib/fox16/chore.rb +2 -2
- data/lib/fox16/core.rb +70 -70
- data/lib/fox16/dict.rb +1 -1
- data/lib/fox16/execute_nonmodal.rb +1 -1
- data/lib/fox16/glgroup.rb +16 -16
- data/lib/fox16/glshapes.rb +26 -26
- data/lib/fox16/input.rb +4 -4
- data/lib/fox16/irb.rb +2 -2
- data/lib/fox16/iterators.rb +2 -2
- data/lib/fox16/keys.rb +34 -34
- data/lib/fox16/kwargs.rb +927 -927
- data/lib/fox16/pseudokeyboard.rb +1 -1
- data/lib/fox16/pseudomouse.rb +1 -1
- data/lib/fox16/responder2.rb +4 -4
- data/lib/fox16/scintilla.rb +2 -2
- data/lib/fox16/signal.rb +4 -4
- data/lib/fox16/splashscreen.rb +3 -3
- data/lib/fox16/timeout.rb +3 -3
- data/lib/fox16/undolist.rb +9 -9
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +9 -9
- data/rdoc-sources/FX7Segment.rb +9 -9
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +50 -50
- data/rdoc-sources/FXBMPIcon.rb +3 -3
- data/rdoc-sources/FXBMPImage.rb +2 -2
- data/rdoc-sources/FXBitmap.rb +11 -11
- data/rdoc-sources/FXBitmapFrame.rb +5 -5
- data/rdoc-sources/FXBitmapView.rb +2 -2
- data/rdoc-sources/FXButton.rb +2 -2
- data/rdoc-sources/FXCheckButton.rb +5 -5
- data/rdoc-sources/FXColorBar.rb +5 -5
- data/rdoc-sources/FXColorDialog.rb +2 -2
- data/rdoc-sources/FXColorList.rb +2 -2
- data/rdoc-sources/FXColorRing.rb +8 -8
- data/rdoc-sources/FXColorSelector.rb +4 -4
- data/rdoc-sources/FXColorWell.rb +4 -4
- data/rdoc-sources/FXColorWheel.rb +6 -6
- data/rdoc-sources/FXComboBox.rb +17 -17
- data/rdoc-sources/FXComposite.rb +2 -2
- data/rdoc-sources/FXCursor.rb +7 -7
- data/rdoc-sources/FXDC.rb +67 -67
- data/rdoc-sources/FXDCPrint.rb +22 -22
- data/rdoc-sources/FXDCWindow.rb +1 -1
- data/rdoc-sources/FXDataTarget.rb +2 -2
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +1 -1
- data/rdoc-sources/FXDial.rb +8 -8
- data/rdoc-sources/FXDict.rb +7 -7
- data/rdoc-sources/FXDirBox.rb +3 -3
- data/rdoc-sources/FXDirDialog.rb +7 -7
- data/rdoc-sources/FXDirList.rb +21 -21
- data/rdoc-sources/FXDirSelector.rb +8 -8
- data/rdoc-sources/FXDockBar.rb +5 -5
- data/rdoc-sources/FXDockHandler.rb +3 -3
- data/rdoc-sources/FXDockSite.rb +2 -2
- data/rdoc-sources/FXDockTitle.rb +3 -3
- data/rdoc-sources/FXDocument.rb +3 -3
- data/rdoc-sources/FXDragCorner.rb +3 -3
- data/rdoc-sources/FXDrawable.rb +3 -3
- data/rdoc-sources/FXDriveBox.rb +4 -4
- data/rdoc-sources/FXExtentd.rb +2 -2
- data/rdoc-sources/FXExtentf.rb +2 -2
- data/rdoc-sources/FXFileDialog.rb +21 -21
- data/rdoc-sources/FXFileDict.rb +17 -17
- data/rdoc-sources/FXFileList.rb +32 -32
- data/rdoc-sources/FXFileSelector.rb +20 -20
- data/rdoc-sources/FXFileStream.rb +1 -1
- data/rdoc-sources/FXFoldingList.rb +53 -53
- data/rdoc-sources/FXFont.rb +38 -38
- data/rdoc-sources/FXFrame.rb +11 -11
- data/rdoc-sources/FXGIFCursor.rb +3 -3
- data/rdoc-sources/FXGLCanvas.rb +2 -2
- data/rdoc-sources/FXGLContext.rb +6 -6
- data/rdoc-sources/FXGLObject.rb +6 -6
- data/rdoc-sources/FXGLShape.rb +3 -3
- data/rdoc-sources/FXGLViewer.rb +54 -54
- data/rdoc-sources/FXGLVisual.rb +13 -13
- data/rdoc-sources/FXGradientBar.rb +15 -15
- data/rdoc-sources/FXGroupBox.rb +4 -4
- data/rdoc-sources/FXHeader.rb +44 -44
- data/rdoc-sources/FXICOIcon.rb +1 -1
- data/rdoc-sources/FXICOImage.rb +1 -1
- data/rdoc-sources/FXIconDict.rb +1 -1
- data/rdoc-sources/FXIconList.rb +69 -69
- data/rdoc-sources/FXIconSource.rb +2 -2
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +11 -11
- data/rdoc-sources/FXImageFrame.rb +3 -3
- data/rdoc-sources/FXImageView.rb +2 -2
- data/rdoc-sources/FXInputDialog.rb +6 -6
- data/rdoc-sources/FXJPGIcon.rb +3 -3
- data/rdoc-sources/FXJPGImage.rb +2 -2
- data/rdoc-sources/FXKnob.rb +9 -9
- data/rdoc-sources/FXLabel.rb +8 -8
- data/rdoc-sources/FXList.rb +28 -28
- data/rdoc-sources/FXListBox.rb +21 -21
- data/rdoc-sources/FXMDIChild.rb +11 -11
- data/rdoc-sources/FXMDIClient.rb +5 -5
- data/rdoc-sources/FXMatrix.rb +6 -6
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +3 -3
- data/rdoc-sources/FXMenuBar.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +7 -7
- data/rdoc-sources/FXMenuCaption.rb +10 -10
- data/rdoc-sources/FXMenuCheck.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +1 -1
- data/rdoc-sources/FXMenuSeparator.rb +1 -1
- data/rdoc-sources/FXMessageBox.rb +3 -3
- data/rdoc-sources/FXOptionMenu.rb +9 -9
- data/rdoc-sources/FXPCXIcon.rb +2 -2
- data/rdoc-sources/FXPCXImage.rb +1 -1
- data/rdoc-sources/FXPNGIcon.rb +3 -3
- data/rdoc-sources/FXPNGImage.rb +1 -1
- data/rdoc-sources/FXPPMIcon.rb +2 -2
- data/rdoc-sources/FXPPMImage.rb +1 -1
- data/rdoc-sources/FXPacker.rb +13 -13
- data/rdoc-sources/FXPopup.rb +11 -11
- data/rdoc-sources/FXProgressBar.rb +7 -7
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +17 -17
- data/rdoc-sources/FXQuatf.rb +18 -18
- data/rdoc-sources/FXRGBIcon.rb +3 -3
- data/rdoc-sources/FXRGBImage.rb +1 -1
- data/rdoc-sources/FXRadioButton.rb +4 -4
- data/rdoc-sources/FXRanged.rb +1 -1
- data/rdoc-sources/FXRangef.rb +1 -1
- data/rdoc-sources/FXRealSlider.rb +7 -7
- data/rdoc-sources/FXRealSpinner.rb +11 -11
- data/rdoc-sources/FXRecentFiles.rb +8 -8
- data/rdoc-sources/FXRectangle.rb +12 -12
- data/rdoc-sources/FXRegion.rb +15 -15
- data/rdoc-sources/FXRegistry.rb +4 -4
- data/rdoc-sources/FXReplaceDialog.rb +3 -3
- data/rdoc-sources/FXRuler.rb +18 -18
- data/rdoc-sources/FXRulerView.rb +38 -38
- data/rdoc-sources/FXScintilla.rb +16 -16
- data/rdoc-sources/FXScrollArea.rb +9 -9
- data/rdoc-sources/FXScrollBar.rb +8 -8
- data/rdoc-sources/FXScrollPane.rb +1 -1
- data/rdoc-sources/FXScrollWindow.rb +5 -5
- data/rdoc-sources/FXSeparator.rb +1 -1
- data/rdoc-sources/FXSettings.rb +1 -1
- data/rdoc-sources/FXShutter.rb +3 -3
- data/rdoc-sources/FXSize.rb +4 -4
- data/rdoc-sources/FXSlider.rb +7 -7
- data/rdoc-sources/FXSphered.rb +21 -21
- data/rdoc-sources/FXSpheref.rb +20 -20
- data/rdoc-sources/FXSpinner.rb +12 -12
- data/rdoc-sources/FXSplashWindow.rb +1 -1
- data/rdoc-sources/FXSplitter.rb +6 -6
- data/rdoc-sources/FXSpring.rb +2 -2
- data/rdoc-sources/FXStatusBar.rb +4 -4
- data/rdoc-sources/FXStatusLine.rb +5 -5
- data/rdoc-sources/FXStream.rb +8 -8
- data/rdoc-sources/FXStringDict.rb +5 -5
- data/rdoc-sources/FXSwitcher.rb +2 -2
- data/rdoc-sources/FXTGAIcon.rb +3 -3
- data/rdoc-sources/FXTGAImage.rb +1 -1
- data/rdoc-sources/FXTIFIcon.rb +2 -2
- data/rdoc-sources/FXTIFImage.rb +2 -2
- data/rdoc-sources/FXTabBar.rb +2 -2
- data/rdoc-sources/FXTable.rb +131 -131
- data/rdoc-sources/FXText.rb +48 -48
- data/rdoc-sources/FXTextField.rb +9 -9
- data/rdoc-sources/FXToolBar.rb +1 -1
- data/rdoc-sources/FXToolBarGrip.rb +1 -1
- data/rdoc-sources/FXToolBarShell.rb +7 -7
- data/rdoc-sources/FXToolBarTab.rb +3 -3
- data/rdoc-sources/FXToolTip.rb +1 -1
- data/rdoc-sources/FXTopWindow.rb +17 -17
- data/rdoc-sources/FXTranslator.rb +5 -5
- data/rdoc-sources/FXTreeList.rb +50 -50
- data/rdoc-sources/FXTreeListBox.rb +16 -16
- data/rdoc-sources/FXVec2d.rb +5 -5
- data/rdoc-sources/FXVec2f.rb +5 -5
- data/rdoc-sources/FXVec3d.rb +8 -8
- data/rdoc-sources/FXVec3f.rb +8 -8
- data/rdoc-sources/FXVec4d.rb +8 -8
- data/rdoc-sources/FXVec4f.rb +8 -8
- data/rdoc-sources/FXVisual.rb +3 -3
- data/rdoc-sources/FXWindow.rb +99 -99
- data/rdoc-sources/FXWizard.rb +8 -8
- data/rdoc-sources/FXXBMIcon.rb +2 -2
- data/rdoc-sources/FXXBMImage.rb +1 -1
- data/rdoc-sources/FXXPMIcon.rb +2 -2
- data/rdoc-sources/FXXPMImage.rb +1 -1
- data/rdoc-sources/fxdefs.rb +17 -17
- data/scripts/generate_kwargs_lib.rb +22 -22
- data/scripts/iface.rb +1 -1
- data/swig-interfaces/FX4Splitter.i +5 -5
- data/swig-interfaces/FX7Segment.i +5 -5
- data/swig-interfaces/FXApp.i +10 -10
- data/swig-interfaces/FXBMPIcon.i +2 -2
- data/swig-interfaces/FXBitmap.i +3 -3
- data/swig-interfaces/FXBitmapFrame.i +1 -1
- data/swig-interfaces/FXBitmapView.i +1 -1
- data/swig-interfaces/FXCanvas.i +1 -1
- data/swig-interfaces/FXCheckButton.i +2 -2
- data/swig-interfaces/FXChoiceBox.i +2 -2
- data/swig-interfaces/FXColorBar.i +7 -7
- data/swig-interfaces/FXColorList.i +5 -5
- data/swig-interfaces/FXColorWell.i +1 -1
- data/swig-interfaces/FXColorWheel.i +6 -6
- data/swig-interfaces/FXComboBox.i +4 -4
- data/swig-interfaces/FXCursor.i +4 -4
- data/swig-interfaces/FXDC.i +23 -23
- data/swig-interfaces/FXDCPrint.i +5 -5
- data/swig-interfaces/FXDCWindow.i +8 -8
- data/swig-interfaces/FXDataTarget.i +5 -5
- data/swig-interfaces/FXDebugTarget.i +1 -1
- data/swig-interfaces/FXDelegator.i +3 -3
- data/swig-interfaces/FXDial.i +8 -8
- data/swig-interfaces/FXDialogBox.i +3 -3
- data/swig-interfaces/FXDict.i +14 -14
- data/swig-interfaces/FXDirBox.i +1 -1
- data/swig-interfaces/FXDirDialog.i +2 -2
- data/swig-interfaces/FXDirList.i +16 -16
- data/swig-interfaces/FXDirSelector.i +2 -2
- data/swig-interfaces/FXDockBar.i +1 -1
- data/swig-interfaces/FXDockHandler.i +1 -1
- data/swig-interfaces/FXDockSite.i +1 -1
- data/swig-interfaces/FXDockTitle.i +1 -1
- data/swig-interfaces/FXDocument.i +1 -1
- data/swig-interfaces/FXDragCorner.i +3 -3
- data/swig-interfaces/FXDriveBox.i +1 -1
- data/swig-interfaces/FXFileDialog.i +8 -8
- data/swig-interfaces/FXFileDict.i +2 -2
- data/swig-interfaces/FXFileList.i +11 -11
- data/swig-interfaces/FXFileSelector.i +4 -4
- data/swig-interfaces/FXFoldingList.i +7 -7
- data/swig-interfaces/FXFont.i +20 -20
- data/swig-interfaces/FXFrame.i +3 -3
- data/swig-interfaces/FXGLCanvas.i +3 -3
- data/swig-interfaces/FXGLContext.i +7 -7
- data/swig-interfaces/FXGLObject.i +1 -1
- data/swig-interfaces/FXGLShape.i +6 -6
- data/swig-interfaces/FXGLViewer.i +40 -40
- data/swig-interfaces/FXGLVisual.i +2 -2
- data/swig-interfaces/FXGradientBar.i +4 -4
- data/swig-interfaces/FXGroupBox.i +3 -3
- data/swig-interfaces/FXHeader.i +7 -7
- data/swig-interfaces/FXIcon.i +4 -4
- data/swig-interfaces/FXIconDict.i +1 -1
- data/swig-interfaces/FXIconList.i +46 -46
- data/swig-interfaces/FXImage.i +2 -2
- data/swig-interfaces/FXImageView.i +1 -1
- data/swig-interfaces/FXInputDialog.i +3 -3
- data/swig-interfaces/FXJPGIcon.i +3 -3
- data/swig-interfaces/FXJPGImage.i +2 -2
- data/swig-interfaces/FXKnob.i +2 -2
- data/swig-interfaces/FXLabel.i +2 -2
- data/swig-interfaces/FXList.i +35 -35
- data/swig-interfaces/FXListBox.i +5 -5
- data/swig-interfaces/FXMDIButton.i +5 -5
- data/swig-interfaces/FXMDIChild.i +12 -12
- data/swig-interfaces/FXMDIClient.i +2 -2
- data/swig-interfaces/FXMat4d.i +2 -2
- data/swig-interfaces/FXMat4f.i +5 -5
- data/swig-interfaces/FXMatrix.i +12 -12
- data/swig-interfaces/FXMemoryBuffer.i +4 -4
- data/swig-interfaces/FXMenuBar.i +3 -3
- data/swig-interfaces/FXMenuButton.i +7 -7
- data/swig-interfaces/FXMenuCaption.i +4 -4
- data/swig-interfaces/FXMenuCommand.i +1 -1
- data/swig-interfaces/FXMenuPane.i +1 -1
- data/swig-interfaces/FXMenuRadio.i +1 -1
- data/swig-interfaces/FXMenuSeparator.i +1 -1
- data/swig-interfaces/FXMessageBox.i +1 -1
- data/swig-interfaces/FXOptionMenu.i +6 -6
- data/swig-interfaces/FXPNGIcon.i +2 -2
- data/swig-interfaces/FXPPMIcon.i +2 -2
- data/swig-interfaces/FXPacker.i +6 -6
- data/swig-interfaces/FXPopup.i +13 -13
- data/swig-interfaces/FXProgressBar.i +12 -12
- data/swig-interfaces/FXProgressDialog.i +5 -5
- data/swig-interfaces/FXQuatd.i +7 -7
- data/swig-interfaces/FXQuatf.i +1 -1
- data/swig-interfaces/FXRadioButton.i +4 -4
- data/swig-interfaces/FXRanged.i +4 -4
- data/swig-interfaces/FXRangef.i +5 -5
- data/swig-interfaces/FXRealSlider.i +10 -10
- data/swig-interfaces/FXRealSpinner.i +17 -17
- data/swig-interfaces/FXRecentFiles.i +1 -1
- data/swig-interfaces/FXRegion.i +4 -4
- data/swig-interfaces/FXRegistry.i +3 -3
- data/swig-interfaces/FXReplaceDialog.i +1 -1
- data/swig-interfaces/FXScintilla.i +3 -3
- data/swig-interfaces/FXScrollArea.i +7 -7
- data/swig-interfaces/FXScrollBar.i +3 -3
- data/swig-interfaces/FXScrollWindow.i +6 -6
- data/swig-interfaces/FXSearchDialog.i +1 -1
- data/swig-interfaces/FXSeparator.i +3 -3
- data/swig-interfaces/FXSettings.i +3 -3
- data/swig-interfaces/FXShell.i +1 -1
- data/swig-interfaces/FXSlider.i +11 -11
- data/swig-interfaces/FXSphered.i +1 -1
- data/swig-interfaces/FXSpheref.i +1 -1
- data/swig-interfaces/FXSpinner.i +15 -15
- data/swig-interfaces/FXSplitter.i +6 -6
- data/swig-interfaces/FXStatusBar.i +4 -4
- data/swig-interfaces/FXStatusLine.i +5 -5
- data/swig-interfaces/FXStream.i +1 -1
- data/swig-interfaces/FXSwitcher.i +5 -5
- data/swig-interfaces/FXTabBar.i +2 -2
- data/swig-interfaces/FXTabBook.i +1 -1
- data/swig-interfaces/FXTabItem.i +4 -4
- data/swig-interfaces/FXTable.i +37 -37
- data/swig-interfaces/FXText.i +13 -13
- data/swig-interfaces/FXTextField.i +1 -1
- data/swig-interfaces/FXToggleButton.i +6 -6
- data/swig-interfaces/FXToolBar.i +4 -4
- data/swig-interfaces/FXToolBarGrip.i +3 -3
- data/swig-interfaces/FXToolBarShell.i +3 -3
- data/swig-interfaces/FXToolBarTab.i +5 -5
- data/swig-interfaces/FXToolTip.i +1 -1
- data/swig-interfaces/FXTopWindow.i +10 -10
- data/swig-interfaces/FXTreeList.i +28 -28
- data/swig-interfaces/FXTreeListBox.i +36 -36
- data/swig-interfaces/FXVec3d.i +2 -2
- data/swig-interfaces/FXVec3f.i +2 -2
- data/swig-interfaces/FXVec4d.i +1 -1
- data/swig-interfaces/FXVec4f.i +9 -9
- data/swig-interfaces/FXVerticalFrame.i +1 -1
- data/swig-interfaces/FXVisual.i +1 -1
- data/swig-interfaces/FXWindow.i +46 -46
- data/swig-interfaces/FXXPMIcon.i +1 -1
- data/swig-interfaces/FXXPMImage.i +1 -1
- data/swig-interfaces/exceptions.i +1 -1
- data/swig-interfaces/freefuncs.i +1 -1
- data/swig-interfaces/fxdefs.i +13 -13
- data/swig-interfaces/macros.i +79 -79
- data/test/TC_FXAccelTable.rb +3 -3
- data/test/TC_FXButton.rb +9 -9
- data/test/TC_FXCheckButton.rb +4 -4
- data/test/TC_FXComboBox.rb +1 -1
- data/test/TC_FXDC.rb +42 -42
- data/test/TC_FXDialogBox.rb +1 -1
- data/test/TC_FXExtentd.rb +2 -2
- data/test/TC_FXExtentf.rb +2 -2
- data/test/TC_FXFileAssoc.rb +5 -5
- data/test/TC_FXFileStream.rb +5 -5
- data/test/TC_FXFoldingList.rb +3 -3
- data/test/TC_FXFont.rb +3 -3
- data/test/TC_FXGLGroup.rb +1 -1
- data/test/TC_FXHeader.rb +3 -3
- data/test/TC_FXIconDict.rb +5 -5
- data/test/TC_FXIconList.rb +12 -12
- data/test/TC_FXImage.rb +16 -16
- data/test/TC_FXList.rb +5 -5
- data/test/TC_FXListBox.rb +1 -1
- data/test/TC_FXMainWindow.rb +2 -2
- data/test/TC_FXMat4f.rb +33 -33
- data/test/TC_FXMaterial.rb +5 -5
- data/test/TC_FXMemoryStream.rb +2 -2
- data/test/TC_FXMenuCheck.rb +5 -5
- data/test/TC_FXMessageBox.rb +3 -3
- data/test/TC_FXPoint.rb +1 -1
- data/test/TC_FXRadioButton.rb +4 -4
- data/test/TC_FXRanged.rb +3 -3
- data/test/TC_FXRangef.rb +3 -3
- data/test/TC_FXRegion.rb +1 -1
- data/test/TC_FXScrollArea.rb +1 -1
- data/test/TC_FXScrollWindow.rb +1 -1
- data/test/TC_FXSettings.rb +2 -2
- data/test/TC_FXShell.rb +2 -2
- data/test/TC_FXTopWindow.rb +2 -2
- data/test/TC_FXTreeList.rb +4 -4
- data/test/TC_FXTreeListBox.rb +3 -3
- data/test/TC_FXVec2d.rb +3 -3
- data/test/TC_FXVec2f.rb +3 -3
- data/test/TC_FXVec3d.rb +5 -5
- data/test/TC_FXVec3f.rb +5 -5
- data/test/TC_FXVec4f.rb +6 -6
- data/test/TC_Misc.rb +6 -2
- data/test/TS_All.rb +1 -17
- data/test/stress1.rb +5 -5
- data/test/stress2.rb +3 -3
- data/test/stress3.rb +12 -12
- data/test/testcase.rb +4 -4
- metadata +76 -76
data/examples/header.rb
CHANGED
@@ -20,7 +20,7 @@ class HeaderWindow < FXMainWindow
|
|
20
20
|
|
21
21
|
# Status bar, stretched along the bottom
|
22
22
|
FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
|
23
|
-
|
23
|
+
|
24
24
|
# File menu
|
25
25
|
filemenu = FXMenuPane.new(self)
|
26
26
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application", nil,
|
@@ -40,9 +40,9 @@ class HeaderWindow < FXMainWindow
|
|
40
40
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
41
41
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0,
|
42
42
|
:hSpacing => 0, :vSpacing => 0)
|
43
|
-
|
43
|
+
|
44
44
|
# Make header control
|
45
|
-
@header1 = FXHeader.new(contents,
|
45
|
+
@header1 = FXHeader.new(contents,
|
46
46
|
:opts => HEADER_BUTTON|HEADER_RESIZE|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X)
|
47
47
|
@header1.connect(SEL_CHANGED) do |sender, sel, which|
|
48
48
|
@lists[which].width = @header1.getItemSize(which)
|
@@ -51,19 +51,19 @@ class HeaderWindow < FXMainWindow
|
|
51
51
|
@lists[which].numItems.times do |i|
|
52
52
|
@lists[which].selectItem(i)
|
53
53
|
end
|
54
|
-
end
|
54
|
+
end
|
55
55
|
|
56
56
|
# Document icon
|
57
57
|
doc = nil
|
58
58
|
File.open(File.join("icons", "minidoc.png"), "rb") do |f|
|
59
59
|
doc = FXPNGIcon.new(getApp(), f.read)
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
@header1.appendItem("Name", doc, 150)
|
63
63
|
@header1.appendItem("Type", nil, 140)
|
64
64
|
@header1.appendItem("Layout Option", doc, 230)
|
65
65
|
@header1.appendItem("Attributes", nil, 80)
|
66
|
-
|
66
|
+
|
67
67
|
# Below header
|
68
68
|
panes = FXHorizontalFrame.new(contents,
|
69
69
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
data/examples/hello2.rb
CHANGED
@@ -7,13 +7,13 @@ include Fox
|
|
7
7
|
=begin
|
8
8
|
This is the "Cadillac" version of the classic "Hello, World" example;
|
9
9
|
it has not only an icon, but also a tooltip, and an accelerator.
|
10
|
-
|
10
|
+
|
11
11
|
Executing an FXIcon's constructor will cause it to deserialize the pixel-
|
12
12
|
data by associating a memory stream with the data array; the resulting icon
|
13
13
|
object will contain a pixel-array, which will be converted to an off-screen
|
14
14
|
X pixmap when the icons create() method is called. At that point, the
|
15
15
|
temporary (client-side) pixel storage will be freed.
|
16
|
-
=end
|
16
|
+
=end
|
17
17
|
|
18
18
|
# Construct the application object, with application name "Hello2"
|
19
19
|
# and vendor key "FoxTest". These strings are primarily used for
|
data/examples/iconlist.rb
CHANGED
@@ -3,7 +3,7 @@ require 'fox16'
|
|
3
3
|
include Fox
|
4
4
|
|
5
5
|
class IconListWindow < FXMainWindow
|
6
|
-
|
6
|
+
|
7
7
|
# Load the named PNG icon from a file
|
8
8
|
def loadIcon(filename)
|
9
9
|
begin
|
@@ -22,18 +22,18 @@ class IconListWindow < FXMainWindow
|
|
22
22
|
def initialize(app)
|
23
23
|
# Initialize base class first
|
24
24
|
super(app, "Icon List Test", :opts => DECOR_ALL, :width => 800, :height => 600)
|
25
|
-
|
25
|
+
|
26
26
|
# Menu bar
|
27
27
|
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
28
|
-
|
28
|
+
|
29
29
|
# File menu
|
30
30
|
filemenu = FXMenuPane.new(self)
|
31
31
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
|
32
32
|
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
33
|
-
|
33
|
+
|
34
34
|
# Status bar
|
35
35
|
status = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
|
36
|
-
|
36
|
+
|
37
37
|
# Main window interior
|
38
38
|
group = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
39
39
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
|
@@ -42,20 +42,20 @@ class IconListWindow < FXMainWindow
|
|
42
42
|
FXLabel.new(group, "Icon List Widget", nil, LAYOUT_TOP|LAYOUT_FILL_X|FRAME_SUNKEN)
|
43
43
|
subgroup = FXVerticalFrame.new(group, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
44
44
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
|
45
|
-
|
45
|
+
|
46
46
|
# Icon list on the right
|
47
47
|
iconlist = FXIconList.new(subgroup, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|ICONLIST_BIG_ICONS|ICONLIST_EXTENDEDSELECT)
|
48
|
-
|
48
|
+
|
49
49
|
iconlist.appendHeader("Name", nil, 200)
|
50
50
|
iconlist.appendHeader("Type", nil, 100)
|
51
51
|
iconlist.appendHeader("Size", nil, 60)
|
52
52
|
iconlist.appendHeader("Modified Date", nil, 150)
|
53
53
|
iconlist.appendHeader("User", nil, 50)
|
54
54
|
iconlist.appendHeader("Group", nil, 50)
|
55
|
-
|
55
|
+
|
56
56
|
big_folder = loadIcon("bigfolder.png")
|
57
57
|
mini_folder = loadIcon("minifolder.png")
|
58
|
-
|
58
|
+
|
59
59
|
iconlist.appendItem("Really BIG and wide item to test\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder)
|
60
60
|
1.upto(400) do |i|
|
61
61
|
iconlist.appendItem("Filename_#{i}\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder)
|
@@ -74,7 +74,7 @@ class IconListWindow < FXMainWindow
|
|
74
74
|
# Let's see a tooltip
|
75
75
|
FXToolTip.new(getApp())
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
# Overrides base class version
|
79
79
|
def create
|
80
80
|
super
|
data/examples/image.rb
CHANGED
@@ -13,19 +13,19 @@ class ImageWindow < FXMainWindow
|
|
13
13
|
|
14
14
|
# Create a color dialog for later use
|
15
15
|
colordlg = FXColorDialog.new(self, "Color Dialog")
|
16
|
-
|
16
|
+
|
17
17
|
contents = FXHorizontalFrame.new(self,
|
18
18
|
LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
19
19
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
|
20
|
-
|
20
|
+
|
21
21
|
# LEFT pane to contain the canvas
|
22
22
|
canvasFrame = FXVerticalFrame.new(contents,
|
23
23
|
FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT,
|
24
24
|
:padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10)
|
25
|
-
|
26
|
-
# Label above the canvas
|
25
|
+
|
26
|
+
# Label above the canvas
|
27
27
|
FXLabel.new(canvasFrame, "Canvas Frame", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X)
|
28
|
-
|
28
|
+
|
29
29
|
# Horizontal divider line
|
30
30
|
FXHorizontalSeparator.new(canvasFrame, SEPARATOR_GROOVE|LAYOUT_FILL_X)
|
31
31
|
|
@@ -38,12 +38,12 @@ class ImageWindow < FXMainWindow
|
|
38
38
|
buttonFrame = FXVerticalFrame.new(contents,
|
39
39
|
:opts => FRAME_SUNKEN|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT,
|
40
40
|
:padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10)
|
41
|
-
|
42
41
|
|
43
|
-
|
42
|
+
|
43
|
+
# Label above the buttons
|
44
44
|
FXLabel.new(buttonFrame, "Button Frame", nil,
|
45
45
|
JUSTIFY_CENTER_X|LAYOUT_FILL_X);
|
46
|
-
|
46
|
+
|
47
47
|
# Horizontal divider line
|
48
48
|
FXHorizontalSeparator.new(buttonFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X)
|
49
49
|
|
@@ -52,19 +52,19 @@ class ImageWindow < FXMainWindow
|
|
52
52
|
:opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT,
|
53
53
|
:width => 100, :height => 30)
|
54
54
|
@backwell.connect(SEL_COMMAND, method(:onCmdWell))
|
55
|
-
|
55
|
+
|
56
56
|
FXLabel.new(buttonFrame, "B&order\nColor well", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X)
|
57
57
|
@borderwell = FXColorWell.new(buttonFrame, FXColor::Black,
|
58
58
|
:opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT,
|
59
59
|
:width => 100, :height => 30)
|
60
60
|
@borderwell.connect(SEL_COMMAND, method(:onCmdWell))
|
61
|
-
|
61
|
+
|
62
62
|
FXLabel.new(buttonFrame, "&Text\nColor well", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X)
|
63
63
|
@textwell = FXColorWell.new(buttonFrame, FXColor::Black,
|
64
64
|
:opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT,
|
65
65
|
:width => 100, :height => 30)
|
66
66
|
@textwell.connect(SEL_COMMAND, method(:onCmdWell))
|
67
|
-
|
67
|
+
|
68
68
|
# Button to draw
|
69
69
|
FXButton.new(buttonFrame, "&Colors...\tPop the color dialog", nil,
|
70
70
|
colordlg, FXWindow::ID_SHOW,
|
@@ -77,7 +77,7 @@ class ImageWindow < FXMainWindow
|
|
77
77
|
:opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT,
|
78
78
|
:padLeft => 10, :padRight => 10, :padTop => 5, :padBottom => 5)
|
79
79
|
saveBtn.connect(SEL_COMMAND, method(:onCmdRestore))
|
80
|
-
|
80
|
+
|
81
81
|
# Exit button
|
82
82
|
FXButton.new(buttonFrame, "E&xit\tQuit ImageApp", nil,
|
83
83
|
getApp(), FXApp::ID_QUIT,
|
@@ -97,7 +97,7 @@ class ImageWindow < FXMainWindow
|
|
97
97
|
IMAGE_OWNED|IMAGE_DITHER|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight)
|
98
98
|
@blue = FXImage.new(getApp(), nil,
|
99
99
|
IMAGE_OWNED|IMAGE_DITHER|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight)
|
100
|
-
|
100
|
+
|
101
101
|
# Create image with nearest color instead of dithering
|
102
102
|
@grey_nodither = FXImage.new(getApp(), nil,
|
103
103
|
IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight)
|
@@ -107,7 +107,7 @@ class ImageWindow < FXMainWindow
|
|
107
107
|
IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight)
|
108
108
|
@blue_nodither = FXImage.new(getApp(), nil,
|
109
109
|
IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight)
|
110
|
-
|
110
|
+
|
111
111
|
# Result image
|
112
112
|
@picture = FXBMPImage.new(getApp(), nil, IMAGE_SHMI|IMAGE_SHMP, 850, 600)
|
113
113
|
|
@@ -137,7 +137,7 @@ class ImageWindow < FXMainWindow
|
|
137
137
|
|
138
138
|
# Make font
|
139
139
|
@font = FXFont.new(getApp(), "times", 36, FONTWEIGHT_BOLD)
|
140
|
-
|
140
|
+
|
141
141
|
# Make a tip
|
142
142
|
FXToolTip.new(getApp())
|
143
143
|
end
|
@@ -171,7 +171,7 @@ class ImageWindow < FXMainWindow
|
|
171
171
|
def onCanvasRepaint(sender, sel, event)
|
172
172
|
if event.synthetic?
|
173
173
|
dc = FXDCWindow.new(@picture)
|
174
|
-
|
174
|
+
|
175
175
|
# Erase the canvas, color comes from well
|
176
176
|
dc.foreground = @backwell.rgba
|
177
177
|
|
@@ -201,18 +201,18 @@ class ImageWindow < FXMainWindow
|
|
201
201
|
dc.foreground = @borderwell.rgba
|
202
202
|
dc.drawRectangle(10, 10, 512, 50)
|
203
203
|
dc.drawRectangle(10, 60, 512, 50)
|
204
|
-
|
204
|
+
|
205
205
|
dc.drawRectangle(10, 130, 512, 50)
|
206
206
|
dc.drawRectangle(10, 180, 512, 50)
|
207
|
-
|
207
|
+
|
208
208
|
dc.drawRectangle(10, 250, 512, 50)
|
209
209
|
dc.drawRectangle(10, 300, 512, 50)
|
210
|
-
|
210
|
+
|
211
211
|
dc.drawRectangle(10, 370, 512, 50)
|
212
212
|
dc.drawRectangle(10, 420, 512, 50)
|
213
|
-
|
213
|
+
|
214
214
|
dc.drawRectangle(10, 490, 512, 50)
|
215
|
-
|
215
|
+
|
216
216
|
# Draw text
|
217
217
|
dc.font = @font
|
218
218
|
dc.foreground = @textwell.rgba
|
@@ -222,24 +222,24 @@ class ImageWindow < FXMainWindow
|
|
222
222
|
dc.drawText(540, 420, "Blue")
|
223
223
|
dc.drawText(540, 540, "Patterns")
|
224
224
|
|
225
|
-
#
|
225
|
+
#
|
226
226
|
# Call end() to unlock the drawing surface and flush out
|
227
227
|
# the pending drawing commands.
|
228
228
|
#
|
229
229
|
dc.end
|
230
230
|
end
|
231
|
-
|
231
|
+
|
232
232
|
# Now repaint the screen
|
233
233
|
sdc = FXDCWindow.new(@canvas, event)
|
234
|
-
|
234
|
+
|
235
235
|
# Clear whole thing
|
236
236
|
sdc.foreground = @backwell.rgba
|
237
237
|
sdc.fillRectangle(0, 0, @canvas.width, @canvas.height)
|
238
|
-
|
238
|
+
|
239
239
|
# Paint image
|
240
240
|
sdc.drawImage(@picture, 0, 0)
|
241
241
|
|
242
|
-
#
|
242
|
+
#
|
243
243
|
# Call end() to unlock the drawing surface and flush out
|
244
244
|
# the pending drawing commands.
|
245
245
|
#
|
data/examples/imageviewer.rb
CHANGED
@@ -26,14 +26,14 @@ class ImageWindow < FXMainWindow
|
|
26
26
|
|
27
27
|
# Make color dialog
|
28
28
|
colordlg = FXColorDialog.new(self, "Color Dialog")
|
29
|
-
|
29
|
+
|
30
30
|
# Make menu bar
|
31
31
|
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|FRAME_RAISED)
|
32
|
-
|
32
|
+
|
33
33
|
# Status bar
|
34
34
|
statusbar = FXStatusBar.new(self,
|
35
35
|
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
|
36
|
-
|
36
|
+
|
37
37
|
# Docking sites
|
38
38
|
topDockSite = FXDockSite.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
39
39
|
FXDockSite.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
|
@@ -43,7 +43,7 @@ class ImageWindow < FXMainWindow
|
|
43
43
|
# Splitter
|
44
44
|
splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X|
|
45
45
|
LAYOUT_FILL_Y| SPLITTER_TRACKING|SPLITTER_VERTICAL|SPLITTER_REVERSED))
|
46
|
-
|
46
|
+
|
47
47
|
# Tool bar is docked inside the top one for starters
|
48
48
|
toolbarShell = FXToolBarShell.new(self)
|
49
49
|
toolbar = FXToolBar.new(topDockSite, toolbarShell,
|
@@ -53,19 +53,19 @@ class ImageWindow < FXMainWindow
|
|
53
53
|
# File menu
|
54
54
|
filemenu = FXMenuPane.new(self)
|
55
55
|
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
56
|
-
|
56
|
+
|
57
57
|
# Edit Menu
|
58
58
|
editmenu = FXMenuPane.new(self)
|
59
59
|
FXMenuTitle.new(menubar, "&Edit", nil, editmenu)
|
60
|
-
|
60
|
+
|
61
61
|
# Manipulation Menu
|
62
62
|
manipmenu = FXMenuPane.new(self)
|
63
63
|
FXMenuTitle.new(menubar,"&Manipulation", nil, manipmenu)
|
64
|
-
|
64
|
+
|
65
65
|
# View menu
|
66
66
|
viewmenu = FXMenuPane.new(self)
|
67
67
|
FXMenuTitle.new(menubar, "&View", nil, viewmenu)
|
68
|
-
|
68
|
+
|
69
69
|
# Help menu
|
70
70
|
helpmenu = FXMenuPane.new(self)
|
71
71
|
FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT)
|
@@ -74,15 +74,15 @@ class ImageWindow < FXMainWindow
|
|
74
74
|
imagebox = FXHorizontalFrame.new(splitter,
|
75
75
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
76
76
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
|
77
|
-
|
77
|
+
|
78
78
|
# Make image widget
|
79
79
|
@imageview = FXImageView.new(imagebox, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
80
|
-
|
80
|
+
|
81
81
|
# Sunken border for file list
|
82
82
|
@filebox = FXHorizontalFrame.new(splitter,
|
83
83
|
LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
84
84
|
:padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0)
|
85
|
-
|
85
|
+
|
86
86
|
# Make file list
|
87
87
|
fileframe = FXHorizontalFrame.new(@filebox,
|
88
88
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
@@ -93,7 +93,7 @@ class ImageWindow < FXMainWindow
|
|
93
93
|
FXButton.new(@filebox, "\tUp one level\tGo up to higher directory.",
|
94
94
|
uplevelicon, @filelist, FXFileList::ID_DIRECTORY_UP,
|
95
95
|
BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_FILL_Y)
|
96
|
-
|
96
|
+
|
97
97
|
# Toobar buttons: File manipulation
|
98
98
|
openBtn = FXButton.new(toolbar, "&Open\tOpen Image\tOpen image file.", fileopenicon,
|
99
99
|
:opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED)
|
@@ -101,7 +101,7 @@ class ImageWindow < FXMainWindow
|
|
101
101
|
saveBtn = FXButton.new(toolbar, "&Save\tSave Image\tSave image file.", filesaveicon,
|
102
102
|
:opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED)
|
103
103
|
saveBtn.connect(SEL_COMMAND, method(:onCmdSave))
|
104
|
-
|
104
|
+
|
105
105
|
# Toobar buttons: Editing
|
106
106
|
FXButton.new(toolbar, "Cut\tCut", cuticon,
|
107
107
|
:opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED)
|
@@ -109,17 +109,17 @@ class ImageWindow < FXMainWindow
|
|
109
109
|
:opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED)
|
110
110
|
FXButton.new(toolbar, "Paste\tPaste", pasteicon,
|
111
111
|
:opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED)
|
112
|
-
|
112
|
+
|
113
113
|
# Color
|
114
114
|
FXButton.new(toolbar, "&Colors\tColors\tDisplay color dialog.", paletteicon,
|
115
115
|
colordlg, FXWindow::ID_SHOW,
|
116
116
|
ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_RIGHT)
|
117
|
-
|
117
|
+
|
118
118
|
# File Menu entries
|
119
119
|
FXMenuCommand.new(filemenu, "&Open...\tCtl-O\tOpen image file.", fileopenicon).connect(SEL_COMMAND, method(:onCmdOpen))
|
120
120
|
FXMenuCommand.new(filemenu, "&Save...\tCtl-S\tSave image file.", filesaveicon).connect(SEL_COMMAND, method(:onCmdSave))
|
121
121
|
FXMenuCommand.new(filemenu, "Dump", nil, getApp(), FXApp::ID_DUMP)
|
122
|
-
|
122
|
+
|
123
123
|
# Recent file menu; this automatically hides if there are no files
|
124
124
|
sep1 = FXMenuSeparator.new(filemenu)
|
125
125
|
sep1.target = @mrufiles
|
@@ -140,7 +140,7 @@ class ImageWindow < FXMainWindow
|
|
140
140
|
sep2.target = @mrufiles
|
141
141
|
sep2.selector = FXRecentFiles::ID_ANYFILES
|
142
142
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q").connect(SEL_COMMAND, method(:onCmdQuit))
|
143
|
-
|
143
|
+
|
144
144
|
# Edit Menu entries
|
145
145
|
FXMenuCommand.new(editmenu, "&Undo\tCtl-Z\tUndo last change.")
|
146
146
|
FXMenuCommand.new(editmenu, "&Redo\tCtl-R\tRedo last undo.")
|
@@ -148,16 +148,16 @@ class ImageWindow < FXMainWindow
|
|
148
148
|
FXMenuCommand.new(editmenu, "C&ut\tCtl-X\tCut selection to clipboard.", cuticon)
|
149
149
|
FXMenuCommand.new(editmenu, "&Paste\tCtl-V\tPaste from clipboard.", pasteicon)
|
150
150
|
FXMenuCommand.new(editmenu, "&Delete\t\tDelete selection.")
|
151
|
-
|
151
|
+
|
152
152
|
# Manipulation Menu entries
|
153
153
|
rotate90Cmd = FXMenuCommand.new(manipmenu, "Rotate 90\t\tRotate 90 degrees.")
|
154
154
|
rotate90Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(90) }
|
155
155
|
rotate90Cmd.connect(SEL_UPDATE, method(:onUpdImage))
|
156
|
-
|
156
|
+
|
157
157
|
rotate180Cmd = FXMenuCommand.new(manipmenu, "Rotate 180\t\tRotate 180 degrees.")
|
158
158
|
rotate180Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(180) }
|
159
159
|
rotate180Cmd.connect(SEL_UPDATE, method(:onUpdImage))
|
160
|
-
|
160
|
+
|
161
161
|
rotate270Cmd = FXMenuCommand.new(manipmenu, "Rotate -90\t\tRotate -90 degrees.")
|
162
162
|
rotate270Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(270) }
|
163
163
|
rotate270Cmd.connect(SEL_UPDATE, method(:onUpdImage))
|
@@ -165,19 +165,19 @@ class ImageWindow < FXMainWindow
|
|
165
165
|
mirrorHorCmd = FXMenuCommand.new(manipmenu, "Mirror Hor.\t\tMirror Horizontally.")
|
166
166
|
mirrorHorCmd.connect(SEL_COMMAND) { @imageview.image.mirror(true, false) }
|
167
167
|
mirrorHorCmd.connect(SEL_UPDATE, method(:onUpdImage))
|
168
|
-
|
168
|
+
|
169
169
|
mirrorVerCmd = FXMenuCommand.new(manipmenu, "Mirror Ver.\t\tMirror Vertically.")
|
170
170
|
mirrorVerCmd.connect(SEL_COMMAND) { @imageview.image.mirror(false, true) }
|
171
171
|
mirrorVerCmd.connect(SEL_UPDATE, method(:onUpdImage))
|
172
|
-
|
172
|
+
|
173
173
|
scaleCmd = FXMenuCommand.new(manipmenu, "Scale...\t\tScale image.")
|
174
174
|
scaleCmd.connect(SEL_COMMAND, method(:onCmdScale))
|
175
175
|
scaleCmd.connect(SEL_UPDATE, method(:onUpdImage))
|
176
|
-
|
176
|
+
|
177
177
|
cropCmd = FXMenuCommand.new(manipmenu, "Crop...\t\tCrop image.")
|
178
178
|
cropCmd.connect(SEL_COMMAND, method(:onCmdCrop))
|
179
179
|
cropCmd.connect(SEL_UPDATE, method(:onUpdImage))
|
180
|
-
|
180
|
+
|
181
181
|
# View Menu entries
|
182
182
|
FXMenuCheck.new(viewmenu, "File list\t\tDisplay file list.",
|
183
183
|
@filebox, FXWindow::ID_TOGGLESHOWN)
|
@@ -202,18 +202,18 @@ class ImageWindow < FXMainWindow
|
|
202
202
|
FXMenuSeparator.new(viewmenu)
|
203
203
|
FXMenuCheck.new(viewmenu, "Toolbar\t\tDisplay toolbar.",
|
204
204
|
toolbar, FXWindow::ID_TOGGLESHOWN)
|
205
|
-
|
205
|
+
|
206
206
|
FXMenuCommand.new(viewmenu, "Float toolbar\t\tUndock the toolbar.", nil, toolbar, FXToolBar::ID_DOCK_FLOAT)
|
207
207
|
FXMenuCommand.new(viewmenu, "Dock toolbar top\t\tDock the toolbar on the top.", nil, toolbar, FXToolBar::ID_DOCK_TOP)
|
208
208
|
FXMenuCommand.new(viewmenu, "Dock toolbar left\t\tDock the toolbar on the left.", nil, toolbar, FXToolBar::ID_DOCK_LEFT)
|
209
209
|
FXMenuCommand.new(viewmenu, "Dock toolbar right\t\tDock the toolbar on the right.", nil, toolbar, FXToolBar::ID_DOCK_RIGHT)
|
210
210
|
FXMenuCommand.new(viewmenu, "Dock toolbar bottom\t\tDock the toolbar on the bottom.", nil, toolbar, FXToolBar::ID_DOCK_BOTTOM)
|
211
|
-
|
211
|
+
|
212
212
|
FXMenuSeparator.new(viewmenu)
|
213
|
-
|
213
|
+
|
214
214
|
FXMenuCheck.new(viewmenu, "Status line\t\tDisplay status line.",
|
215
215
|
statusbar, FXWindow::ID_TOGGLESHOWN)
|
216
|
-
|
216
|
+
|
217
217
|
# Help Menu entries
|
218
218
|
FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) {
|
219
219
|
FXMessageBox.new(self, "About Image Viewer",
|
@@ -222,10 +222,10 @@ class ImageWindow < FXMainWindow
|
|
222
222
|
"Copyright (C) 2000 Jeroen van der Zijp (jeroen@fox-toolkit.org)", nil,
|
223
223
|
MBOX_OK|DECOR_TITLE|DECOR_BORDER).execute
|
224
224
|
}
|
225
|
-
|
225
|
+
|
226
226
|
# Make a tool tip
|
227
227
|
FXToolTip.new(getApp(), TOOLTIP_NORMAL)
|
228
|
-
|
228
|
+
|
229
229
|
# Recent files
|
230
230
|
@mrufiles.connect(SEL_COMMAND) do |sender, sel, filename|
|
231
231
|
@filename = filename
|
@@ -475,7 +475,7 @@ class ImageWindow < FXMainWindow
|
|
475
475
|
if !fs
|
476
476
|
@filebox.hide
|
477
477
|
end
|
478
|
-
|
478
|
+
|
479
479
|
# Reposition window to specified x, y, w and h
|
480
480
|
position(xx, yy, ww, hh)
|
481
481
|
|
data/examples/inputs.rb
CHANGED
@@ -13,7 +13,7 @@ class InputHandlerWindow < FXMainWindow
|
|
13
13
|
# Text area plus a button
|
14
14
|
commands = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
|
15
15
|
FXLabel.new(commands, "Command:")
|
16
|
-
@cmdInput = FXTextField.new(commands, 30, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X)
|
16
|
+
@cmdInput = FXTextField.new(commands, 30, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X)
|
17
17
|
@cmdInput.connect(SEL_COMMAND, method(:onCmdText))
|
18
18
|
FXHorizontalSeparator.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
|
19
19
|
textFrame = FXVerticalFrame.new(self,
|
@@ -39,7 +39,7 @@ class InputHandlerWindow < FXMainWindow
|
|
39
39
|
@pipe = nil
|
40
40
|
end
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
def onCmdText(sender, sel, ptr)
|
44
44
|
# Stop previous command
|
45
45
|
closePipe
|
data/examples/mditest.rb
CHANGED
@@ -51,17 +51,17 @@ class MDITestWindow < FXMainWindow
|
|
51
51
|
|
52
52
|
# Create the font
|
53
53
|
@font = FXFont.new(getApp(), "courier", 15, FONTWEIGHT_BOLD)
|
54
|
-
|
54
|
+
|
55
55
|
# Menubar
|
56
56
|
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
57
|
-
|
57
|
+
|
58
58
|
# Status bar
|
59
59
|
FXStatusBar.new(self,
|
60
60
|
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
|
61
|
-
|
61
|
+
|
62
62
|
# MDI Client
|
63
63
|
@mdiclient = FXMDIClient.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
64
|
-
|
64
|
+
|
65
65
|
# Icon for MDI Child
|
66
66
|
@mdiicon = nil
|
67
67
|
File.open(File.join("icons", "penguin.png"), "rb") do |f|
|
@@ -70,7 +70,7 @@ class MDITestWindow < FXMainWindow
|
|
70
70
|
|
71
71
|
# Make MDI Menu
|
72
72
|
@mdimenu = FXMDIMenu.new(self, @mdiclient)
|
73
|
-
|
73
|
+
|
74
74
|
# MDI buttons in menu:- note the message ID's!!!!!
|
75
75
|
# Normally, MDI commands are simply sensitized or desensitized;
|
76
76
|
# Under the menubar, however, they're hidden if the MDI Client is
|
@@ -83,13 +83,13 @@ class MDITestWindow < FXMainWindow
|
|
83
83
|
FRAME_RAISED|LAYOUT_RIGHT)
|
84
84
|
FXMDIMinimizeButton.new(menubar, @mdiclient,
|
85
85
|
FXMDIClient::ID_MDI_MENUMINIMIZE, FRAME_RAISED|LAYOUT_RIGHT)
|
86
|
-
|
86
|
+
|
87
87
|
# Create a few test windows to get started
|
88
88
|
mdichild = createTestWindow(10, 10, 400, 300)
|
89
89
|
@mdiclient.setActiveChild(mdichild)
|
90
90
|
createTestWindow(20, 20, 400, 300)
|
91
91
|
createTestWindow(30, 30, 400, 300)
|
92
|
-
|
92
|
+
|
93
93
|
# File menu
|
94
94
|
filemenu = FXMenuPane.new(self)
|
95
95
|
newCmd = FXMenuCommand.new(filemenu, "&New\tCtl-N\tCreate new document.")
|
@@ -97,7 +97,7 @@ class MDITestWindow < FXMainWindow
|
|
97
97
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit application.", nil,
|
98
98
|
getApp(), FXApp::ID_QUIT, 0)
|
99
99
|
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
100
|
-
|
100
|
+
|
101
101
|
# Window menu
|
102
102
|
windowmenu = FXMenuPane.new(self)
|
103
103
|
FXMenuCommand.new(windowmenu, "Tile &Horizontally", nil,
|
@@ -117,7 +117,7 @@ class MDITestWindow < FXMainWindow
|
|
117
117
|
FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_4)
|
118
118
|
FXMenuCommand.new(windowmenu, "&Others...", nil, @mdiclient, FXMDIClient::ID_MDI_OVER_5)
|
119
119
|
FXMenuTitle.new(menubar,"&Window", nil, windowmenu)
|
120
|
-
|
120
|
+
|
121
121
|
# Help menu
|
122
122
|
helpmenu = FXMenuPane.new(self)
|
123
123
|
FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) {
|
@@ -168,13 +168,13 @@ end
|
|
168
168
|
if __FILE__ == $0
|
169
169
|
# Make application
|
170
170
|
application = FXApp.new("MDIApp", "FoxTest")
|
171
|
-
|
171
|
+
|
172
172
|
# Make window
|
173
173
|
MDITestWindow.new(application)
|
174
|
-
|
174
|
+
|
175
175
|
# Create app
|
176
176
|
application.create
|
177
|
-
|
177
|
+
|
178
178
|
# Run
|
179
179
|
application.run
|
180
180
|
end
|
data/examples/pig.rb
CHANGED
@@ -30,9 +30,9 @@ class PigBox < FXMainWindow
|
|
30
30
|
def initialize(app)
|
31
31
|
# Initialize base class
|
32
32
|
super(app, "Pig")
|
33
|
-
|
33
|
+
|
34
34
|
@text = FXDataTarget.new("")
|
35
|
-
|
35
|
+
|
36
36
|
top = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) do |theFrame|
|
37
37
|
theFrame.padLeft = 10
|
38
38
|
theFrame.padRight = 10
|
@@ -40,29 +40,29 @@ class PigBox < FXMainWindow
|
|
40
40
|
theFrame.padTop = 10
|
41
41
|
theFrame.vSpacing = 20
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
p = proc { showPig }
|
45
|
-
|
45
|
+
|
46
46
|
FXLabel.new(top, 'Enter Text:') do |theLabel|
|
47
47
|
theLabel.layoutHints = LAYOUT_FILL_X
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
FXTextField.new(top, 20, @text, FXDataTarget::ID_VALUE) do |theTextField|
|
51
51
|
theTextField.layoutHints = LAYOUT_FILL_X
|
52
52
|
theTextField.setFocus()
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
FXButton.new(top, 'Pig It') do |pigButton|
|
56
56
|
pigButton.connect(SEL_COMMAND, p)
|
57
57
|
pigButton.layoutHints = LAYOUT_CENTER_X
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
FXButton.new(top, 'Exit') do |exitButton|
|
61
61
|
exitButton.connect(SEL_COMMAND) { exit }
|
62
62
|
exitButton.layoutHints = LAYOUT_CENTER_X
|
63
63
|
end
|
64
64
|
end
|
65
|
-
|
65
|
+
|
66
66
|
def create
|
67
67
|
super
|
68
68
|
show(PLACEMENT_SCREEN)
|
data/examples/raabrowser.rb
CHANGED
@@ -5,7 +5,7 @@ require 'soap/wsdlDriver'
|
|
5
5
|
include Fox
|
6
6
|
|
7
7
|
class RAABrowserWindow < FXMainWindow
|
8
|
-
|
8
|
+
|
9
9
|
def initialize(app)
|
10
10
|
# Initialize base class
|
11
11
|
super(app, "Ruby Application Archive", :opts => DECOR_ALL, :width => 600, :height => 600)
|
@@ -60,7 +60,7 @@ class RAABrowserWindow < FXMainWindow
|
|
60
60
|
@download = FXDataTarget.new("")
|
61
61
|
@license = FXDataTarget.new("")
|
62
62
|
@description = FXDataTarget.new("")
|
63
|
-
|
63
|
+
|
64
64
|
# Information appears on the right-hand side
|
65
65
|
infoFrame = FXVerticalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT|FRAME_SUNKEN|FRAME_THICK)
|
66
66
|
|
@@ -88,10 +88,10 @@ class RAABrowserWindow < FXMainWindow
|
|
88
88
|
descriptionBox = FXGroupBox.new(infoFrame, "Description", GROUPBOX_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE)
|
89
89
|
descriptionFrame = FXHorizontalFrame.new(descriptionBox, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
90
90
|
FXText.new(descriptionFrame, @description, FXDataTarget::ID_VALUE, TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
91
|
-
|
91
|
+
|
92
92
|
# Initialize the service
|
93
93
|
@raa = SOAP::WSDLDriverFactory.new("http://www2.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/").create_rpc_driver
|
94
|
-
|
94
|
+
|
95
95
|
# Set up the product tree list
|
96
96
|
@productTree = @raa.tree_by_category
|
97
97
|
@productTree.keys.sort.each do |sectionName|
|
@@ -106,7 +106,7 @@ class RAABrowserWindow < FXMainWindow
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
109
|
-
|
109
|
+
|
110
110
|
def create
|
111
111
|
super
|
112
112
|
@treeList.parent.parent.setWidth(@treeList.font.getTextWidth('M'*24))
|