From bea4cade8f6d9d0c794b65897228eef0b688293c Mon Sep 17 00:00:00 2001 From: Lars Kanis <kanis@comcard.de> Date: Thu, 2 Feb 2012 18:14:51 +0100 Subject: [PATCH] Strip all whitespaces on line endings --- History.txt | 2 +- README.txt | 20 +- examples/WhatAQuietStiff.rb | 16 +- examples/babelfish.rb | 4 +- examples/bounce.rb | 40 ++-- examples/canvasdemo.rb | 20 +- examples/charts.rb | 4 +- examples/custom_table_item.rb | 6 +- examples/datatarget.rb | 4 +- examples/dctest.rb | 102 ++++---- examples/dialog.rb | 28 +-- examples/dilbert.rb | 8 +- examples/dirlist.rb | 12 +- examples/dragdrop.rb | 14 +- examples/dragsource.rb | 12 +- examples/dropsite.rb | 10 +- examples/foursplit.rb | 12 +- examples/gdchart.rb | 12 +- examples/gembrowser.rb | 16 +- examples/gltest.rb | 80 +++---- examples/glviewer.rb | 32 +-- examples/groupbox.rb | 82 +++---- examples/header.rb | 12 +- examples/hello2.rb | 4 +- examples/iconlist.rb | 20 +- examples/image.rb | 52 ++-- examples/imageviewer.rb | 62 ++--- examples/inputs.rb | 4 +- examples/mditest.rb | 24 +- examples/pig.rb | 16 +- examples/raabrowser.rb | 10 +- examples/ratio.rb | 18 +- examples/rmagick.rb | 16 +- examples/rulerview.rb | 4 +- examples/scintilla-test.rb | 12 +- examples/scribble-orig.rb | 6 +- examples/scribble.rb | 6 +- examples/shutter.rb | 12 +- examples/splitter.rb | 30 +-- examples/styledtext.rb | 20 +- examples/tabbook.rb | 28 +-- examples/table.rb | 42 ++-- examples/textedit/helpwindow.rb | 12 +- examples/textedit/textedit.rb | 144 +++++------ ext/fox16/include/FXMemoryBuffer.h | 6 +- ext/fox16/include/FXRbApp.h | 2 +- ext/fox16/include/FXRbBitmap.h | 2 +- ext/fox16/include/FXRbBitmapFrame.h | 4 +- ext/fox16/include/FXRbBitmapVirtuals.h | 4 +- ext/fox16/include/FXRbDCPrint.h | 2 +- ext/fox16/include/FXRbDCVirtuals.h | 48 ++-- ext/fox16/include/FXRbDCWindow.h | 2 +- ext/fox16/include/FXRbDockBar.h | 2 +- ext/fox16/include/FXRbFileDict.h | 4 +- ext/fox16/include/FXRbFoldingList.h | 2 +- ext/fox16/include/FXRbFontVirtuals.h | 18 +- ext/fox16/include/FXRbGLViewerVirtuals.h | 4 +- ext/fox16/include/FXRbIconItemVirtuals.h | 16 +- ext/fox16/include/FXRbIconListVirtuals.h | 14 +- ext/fox16/include/FXRbIconSourceVirtuals.h | 2 +- ext/fox16/include/FXRbImageFrame.h | 4 +- ext/fox16/include/FXRbImageVirtuals.h | 2 +- ext/fox16/include/FXRbListVirtuals.h | 8 +- ext/fox16/include/FXRbMenuBar.h | 2 +- ext/fox16/include/FXRbPopupVirtuals.h | 2 +- ext/fox16/include/FXRbRecentFiles.h | 2 +- ext/fox16/include/FXRbRuler.h | 6 +- ext/fox16/include/FXRbRulerView.h | 6 +- ext/fox16/include/FXRbScintilla.h | 2 +- ext/fox16/include/FXRbSeparator.h | 4 +- ext/fox16/include/FXRbTableItemVirtuals.h | 16 +- ext/fox16/include/FXRbTableVirtuals.h | 26 +- ext/fox16/include/FXRbText.h | 4 +- ext/fox16/include/FXRbTextVirtuals.h | 6 +- ext/fox16/include/FXRbToolBar.h | 2 +- ext/fox16/include/FXRbToolBarGrip.h | 2 +- ext/fox16/include/FXRbToolBarTab.h | 2 +- ext/fox16/include/FXRbTreeList.h | 2 +- ext/fox16/include/FXRbTreeListVirtuals.h | 8 +- ext/fox16/include/FXRbWindow.h | 2 +- ext/fox16/include/FXRbWizard.h | 4 +- ext/fox16/include/FXRuby.h | 8 +- ext/fox16/make_impl.rb | 10 +- ext/fox16/markfuncs.cpp | 16 +- ext/fox16/unregisterOwnedObjects.cpp | 6 +- fox-includes/FX7Segment.h | 8 +- fox-includes/FXChoiceBox.h | 2 +- fox-includes/FXDC.h | 2 +- fox-includes/FXDCPrint.h | 2 +- fox-includes/FXDCWindow.h | 2 +- fox-includes/FXFileDialog.h | 2 +- fox-includes/FXFileDict.h | 2 +- fox-includes/FXInputDialog.h | 2 +- fox-includes/FXProgressDialog.h | 2 +- fox-includes/FXScrollBar.h | 4 +- fox-includes/FXScrollWindow.h | 10 +- fox-includes/FXTabBar.h | 2 +- fox-includes/FXText.h | 2 +- fox-includes/FXThread.h | 2 +- lib/fox16/accel_table.rb | 2 +- lib/fox16/aliases.rb | 6 +- lib/fox16/calendar.rb | 42 ++-- lib/fox16/chore.rb | 4 +- lib/fox16/core.rb | 136 +++++------ lib/fox16/dict.rb | 2 +- lib/fox16/execute_nonmodal.rb | 2 +- lib/fox16/glgroup.rb | 32 +-- lib/fox16/glshapes.rb | 52 ++-- lib/fox16/input.rb | 8 +- lib/fox16/irb.rb | 4 +- lib/fox16/iterators.rb | 4 +- lib/fox16/keys.rb | 68 +++--- lib/fox16/pseudokeyboard.rb | 2 +- lib/fox16/pseudomouse.rb | 2 +- lib/fox16/responder2.rb | 8 +- lib/fox16/scintilla.rb | 4 +- lib/fox16/signal.rb | 8 +- lib/fox16/splashscreen.rb | 6 +- lib/fox16/timeout.rb | 6 +- lib/fox16/undolist.rb | 18 +- rdoc-sources/FX4Splitter.rb | 18 +- rdoc-sources/FX7Segment.rb | 18 +- rdoc-sources/FXAccelTable.rb | 2 +- rdoc-sources/FXApp.rb | 100 ++++---- rdoc-sources/FXBMPIcon.rb | 6 +- rdoc-sources/FXBMPImage.rb | 4 +- rdoc-sources/FXBitmap.rb | 22 +- rdoc-sources/FXBitmapFrame.rb | 10 +- rdoc-sources/FXBitmapView.rb | 4 +- rdoc-sources/FXButton.rb | 4 +- rdoc-sources/FXCheckButton.rb | 10 +- rdoc-sources/FXColorBar.rb | 10 +- rdoc-sources/FXColorDialog.rb | 4 +- rdoc-sources/FXColorList.rb | 4 +- rdoc-sources/FXColorRing.rb | 16 +- rdoc-sources/FXColorSelector.rb | 8 +- rdoc-sources/FXColorWell.rb | 8 +- rdoc-sources/FXColorWheel.rb | 12 +- rdoc-sources/FXComboBox.rb | 34 +-- rdoc-sources/FXComposite.rb | 4 +- rdoc-sources/FXCursor.rb | 14 +- rdoc-sources/FXDC.rb | 134 +++++------ rdoc-sources/FXDCPrint.rb | 44 ++-- rdoc-sources/FXDCWindow.rb | 2 +- rdoc-sources/FXDataTarget.rb | 4 +- rdoc-sources/FXDebugTarget.rb | 2 +- rdoc-sources/FXDelegator.rb | 2 +- rdoc-sources/FXDial.rb | 16 +- rdoc-sources/FXDict.rb | 14 +- rdoc-sources/FXDirBox.rb | 6 +- rdoc-sources/FXDirDialog.rb | 14 +- rdoc-sources/FXDirList.rb | 42 ++-- rdoc-sources/FXDirSelector.rb | 16 +- rdoc-sources/FXDockBar.rb | 10 +- rdoc-sources/FXDockHandler.rb | 6 +- rdoc-sources/FXDockSite.rb | 4 +- rdoc-sources/FXDockTitle.rb | 6 +- rdoc-sources/FXDocument.rb | 6 +- rdoc-sources/FXDragCorner.rb | 6 +- rdoc-sources/FXDrawable.rb | 6 +- rdoc-sources/FXDriveBox.rb | 8 +- rdoc-sources/FXExtentd.rb | 4 +- rdoc-sources/FXExtentf.rb | 4 +- rdoc-sources/FXFileDialog.rb | 42 ++-- rdoc-sources/FXFileDict.rb | 34 +-- rdoc-sources/FXFileList.rb | 64 ++--- rdoc-sources/FXFileSelector.rb | 40 ++-- rdoc-sources/FXFileStream.rb | 2 +- rdoc-sources/FXFoldingList.rb | 106 ++++----- rdoc-sources/FXFont.rb | 76 +++--- rdoc-sources/FXFrame.rb | 22 +- rdoc-sources/FXGIFCursor.rb | 6 +- rdoc-sources/FXGLCanvas.rb | 4 +- rdoc-sources/FXGLContext.rb | 12 +- rdoc-sources/FXGLObject.rb | 12 +- rdoc-sources/FXGLShape.rb | 6 +- rdoc-sources/FXGLViewer.rb | 108 ++++----- rdoc-sources/FXGLVisual.rb | 26 +- rdoc-sources/FXGradientBar.rb | 30 +-- rdoc-sources/FXGroupBox.rb | 8 +- rdoc-sources/FXHeader.rb | 88 +++---- rdoc-sources/FXICOIcon.rb | 2 +- rdoc-sources/FXICOImage.rb | 2 +- rdoc-sources/FXIconDict.rb | 2 +- rdoc-sources/FXIconList.rb | 138 +++++------ rdoc-sources/FXIconSource.rb | 4 +- rdoc-sources/FXId.rb | 2 +- rdoc-sources/FXImage.rb | 22 +- rdoc-sources/FXImageFrame.rb | 6 +- rdoc-sources/FXImageView.rb | 4 +- rdoc-sources/FXInputDialog.rb | 12 +- rdoc-sources/FXJPGIcon.rb | 6 +- rdoc-sources/FXJPGImage.rb | 4 +- rdoc-sources/FXKnob.rb | 18 +- rdoc-sources/FXLabel.rb | 16 +- rdoc-sources/FXList.rb | 56 ++--- rdoc-sources/FXListBox.rb | 42 ++-- rdoc-sources/FXMDIChild.rb | 22 +- rdoc-sources/FXMDIClient.rb | 10 +- rdoc-sources/FXMatrix.rb | 12 +- rdoc-sources/FXMemoryBuffer.rb | 2 +- rdoc-sources/FXMemoryStream.rb | 6 +- rdoc-sources/FXMenuBar.rb | 2 +- rdoc-sources/FXMenuButton.rb | 14 +- rdoc-sources/FXMenuCaption.rb | 20 +- rdoc-sources/FXMenuCheck.rb | 2 +- rdoc-sources/FXMenuRadio.rb | 2 +- rdoc-sources/FXMenuSeparator.rb | 2 +- rdoc-sources/FXMessageBox.rb | 6 +- rdoc-sources/FXOptionMenu.rb | 18 +- rdoc-sources/FXPCXIcon.rb | 4 +- rdoc-sources/FXPCXImage.rb | 2 +- rdoc-sources/FXPNGIcon.rb | 6 +- rdoc-sources/FXPNGImage.rb | 2 +- rdoc-sources/FXPPMIcon.rb | 4 +- rdoc-sources/FXPPMImage.rb | 2 +- rdoc-sources/FXPacker.rb | 26 +- rdoc-sources/FXPopup.rb | 22 +- rdoc-sources/FXProgressBar.rb | 14 +- rdoc-sources/FXProgressDialog.rb | 6 +- rdoc-sources/FXQuatd.rb | 34 +-- rdoc-sources/FXQuatf.rb | 36 +-- rdoc-sources/FXRGBIcon.rb | 6 +- rdoc-sources/FXRGBImage.rb | 2 +- rdoc-sources/FXRadioButton.rb | 8 +- rdoc-sources/FXRanged.rb | 2 +- rdoc-sources/FXRangef.rb | 2 +- rdoc-sources/FXRealSlider.rb | 14 +- rdoc-sources/FXRealSpinner.rb | 22 +- rdoc-sources/FXRecentFiles.rb | 16 +- rdoc-sources/FXRectangle.rb | 24 +- rdoc-sources/FXRegion.rb | 30 +-- rdoc-sources/FXRegistry.rb | 8 +- rdoc-sources/FXReplaceDialog.rb | 6 +- rdoc-sources/FXRuler.rb | 36 +-- rdoc-sources/FXRulerView.rb | 76 +++--- rdoc-sources/FXScintilla.rb | 32 +-- rdoc-sources/FXScrollArea.rb | 18 +- rdoc-sources/FXScrollBar.rb | 16 +- rdoc-sources/FXScrollPane.rb | 2 +- rdoc-sources/FXScrollWindow.rb | 10 +- rdoc-sources/FXSeparator.rb | 2 +- rdoc-sources/FXSettings.rb | 2 +- rdoc-sources/FXShutter.rb | 6 +- rdoc-sources/FXSize.rb | 8 +- rdoc-sources/FXSlider.rb | 14 +- rdoc-sources/FXSphered.rb | 42 ++-- rdoc-sources/FXSpheref.rb | 40 ++-- rdoc-sources/FXSpinner.rb | 24 +- rdoc-sources/FXSplashWindow.rb | 2 +- rdoc-sources/FXSplitter.rb | 12 +- rdoc-sources/FXSpring.rb | 4 +- rdoc-sources/FXStatusBar.rb | 8 +- rdoc-sources/FXStatusLine.rb | 10 +- rdoc-sources/FXStream.rb | 16 +- rdoc-sources/FXStringDict.rb | 10 +- rdoc-sources/FXSwitcher.rb | 4 +- rdoc-sources/FXTGAIcon.rb | 6 +- rdoc-sources/FXTGAImage.rb | 2 +- rdoc-sources/FXTIFIcon.rb | 4 +- rdoc-sources/FXTIFImage.rb | 4 +- rdoc-sources/FXTabBar.rb | 4 +- rdoc-sources/FXTable.rb | 262 ++++++++++----------- rdoc-sources/FXText.rb | 96 ++++---- rdoc-sources/FXTextField.rb | 18 +- rdoc-sources/FXToolBar.rb | 2 +- rdoc-sources/FXToolBarGrip.rb | 2 +- rdoc-sources/FXToolBarShell.rb | 14 +- rdoc-sources/FXToolBarTab.rb | 6 +- rdoc-sources/FXToolTip.rb | 2 +- rdoc-sources/FXTopWindow.rb | 34 +-- rdoc-sources/FXTranslator.rb | 10 +- rdoc-sources/FXTreeList.rb | 100 ++++---- rdoc-sources/FXTreeListBox.rb | 32 +-- rdoc-sources/FXVec2d.rb | 10 +- rdoc-sources/FXVec2f.rb | 10 +- rdoc-sources/FXVec3d.rb | 16 +- rdoc-sources/FXVec3f.rb | 16 +- rdoc-sources/FXVec4d.rb | 16 +- rdoc-sources/FXVec4f.rb | 16 +- rdoc-sources/FXVisual.rb | 6 +- rdoc-sources/FXWindow.rb | 198 ++++++++-------- rdoc-sources/FXWizard.rb | 16 +- rdoc-sources/FXXBMIcon.rb | 4 +- rdoc-sources/FXXBMImage.rb | 2 +- rdoc-sources/FXXPMIcon.rb | 4 +- rdoc-sources/FXXPMImage.rb | 2 +- rdoc-sources/fxdefs.rb | 34 +-- scripts/generate_kwargs_lib.rb | 44 ++-- scripts/iface.rb | 2 +- swig-interfaces/FX4Splitter.i | 10 +- swig-interfaces/FX7Segment.i | 10 +- swig-interfaces/FXApp.i | 20 +- swig-interfaces/FXBMPIcon.i | 4 +- swig-interfaces/FXBitmap.i | 6 +- swig-interfaces/FXBitmapFrame.i | 2 +- swig-interfaces/FXBitmapView.i | 2 +- swig-interfaces/FXCanvas.i | 2 +- swig-interfaces/FXCheckButton.i | 4 +- swig-interfaces/FXChoiceBox.i | 4 +- swig-interfaces/FXColorBar.i | 14 +- swig-interfaces/FXColorList.i | 10 +- swig-interfaces/FXColorWell.i | 2 +- swig-interfaces/FXColorWheel.i | 12 +- swig-interfaces/FXComboBox.i | 8 +- swig-interfaces/FXCursor.i | 8 +- swig-interfaces/FXDC.i | 46 ++-- swig-interfaces/FXDCPrint.i | 10 +- swig-interfaces/FXDCWindow.i | 16 +- swig-interfaces/FXDataTarget.i | 10 +- swig-interfaces/FXDebugTarget.i | 2 +- swig-interfaces/FXDelegator.i | 6 +- swig-interfaces/FXDial.i | 16 +- swig-interfaces/FXDialogBox.i | 6 +- swig-interfaces/FXDict.i | 28 +-- swig-interfaces/FXDirBox.i | 2 +- swig-interfaces/FXDirDialog.i | 4 +- swig-interfaces/FXDirList.i | 32 +-- swig-interfaces/FXDirSelector.i | 4 +- swig-interfaces/FXDockBar.i | 2 +- swig-interfaces/FXDockHandler.i | 2 +- swig-interfaces/FXDockSite.i | 2 +- swig-interfaces/FXDockTitle.i | 2 +- swig-interfaces/FXDocument.i | 2 +- swig-interfaces/FXDragCorner.i | 6 +- swig-interfaces/FXDriveBox.i | 2 +- swig-interfaces/FXFileDialog.i | 16 +- swig-interfaces/FXFileDict.i | 4 +- swig-interfaces/FXFileList.i | 22 +- swig-interfaces/FXFileSelector.i | 8 +- swig-interfaces/FXFoldingList.i | 14 +- swig-interfaces/FXFont.i | 40 ++-- swig-interfaces/FXFrame.i | 6 +- swig-interfaces/FXGLCanvas.i | 6 +- swig-interfaces/FXGLContext.i | 14 +- swig-interfaces/FXGLObject.i | 2 +- swig-interfaces/FXGLShape.i | 12 +- swig-interfaces/FXGLViewer.i | 80 +++---- swig-interfaces/FXGLVisual.i | 4 +- swig-interfaces/FXGradientBar.i | 8 +- swig-interfaces/FXGroupBox.i | 6 +- swig-interfaces/FXHeader.i | 14 +- swig-interfaces/FXIcon.i | 8 +- swig-interfaces/FXIconDict.i | 2 +- swig-interfaces/FXIconList.i | 92 ++++---- swig-interfaces/FXImage.i | 4 +- swig-interfaces/FXImageView.i | 2 +- swig-interfaces/FXInputDialog.i | 6 +- swig-interfaces/FXJPGIcon.i | 6 +- swig-interfaces/FXJPGImage.i | 4 +- swig-interfaces/FXKnob.i | 4 +- swig-interfaces/FXLabel.i | 4 +- swig-interfaces/FXList.i | 70 +++--- swig-interfaces/FXListBox.i | 10 +- swig-interfaces/FXMDIButton.i | 10 +- swig-interfaces/FXMDIChild.i | 24 +- swig-interfaces/FXMDIClient.i | 4 +- swig-interfaces/FXMat4d.i | 4 +- swig-interfaces/FXMat4f.i | 10 +- swig-interfaces/FXMatrix.i | 24 +- swig-interfaces/FXMemoryBuffer.i | 8 +- swig-interfaces/FXMenuBar.i | 6 +- swig-interfaces/FXMenuButton.i | 14 +- swig-interfaces/FXMenuCaption.i | 8 +- swig-interfaces/FXMenuCommand.i | 2 +- swig-interfaces/FXMenuPane.i | 2 +- swig-interfaces/FXMenuRadio.i | 2 +- swig-interfaces/FXMenuSeparator.i | 2 +- swig-interfaces/FXMessageBox.i | 2 +- swig-interfaces/FXOptionMenu.i | 12 +- swig-interfaces/FXPNGIcon.i | 4 +- swig-interfaces/FXPPMIcon.i | 4 +- swig-interfaces/FXPacker.i | 12 +- swig-interfaces/FXPopup.i | 26 +- swig-interfaces/FXProgressBar.i | 24 +- swig-interfaces/FXProgressDialog.i | 10 +- swig-interfaces/FXQuatd.i | 14 +- swig-interfaces/FXQuatf.i | 2 +- swig-interfaces/FXRadioButton.i | 8 +- swig-interfaces/FXRanged.i | 8 +- swig-interfaces/FXRangef.i | 10 +- swig-interfaces/FXRealSlider.i | 20 +- swig-interfaces/FXRealSpinner.i | 34 +-- swig-interfaces/FXRecentFiles.i | 2 +- swig-interfaces/FXRegion.i | 8 +- swig-interfaces/FXRegistry.i | 6 +- swig-interfaces/FXReplaceDialog.i | 2 +- swig-interfaces/FXScintilla.i | 6 +- swig-interfaces/FXScrollArea.i | 14 +- swig-interfaces/FXScrollBar.i | 6 +- swig-interfaces/FXScrollWindow.i | 12 +- swig-interfaces/FXSearchDialog.i | 2 +- swig-interfaces/FXSeparator.i | 6 +- swig-interfaces/FXSettings.i | 6 +- swig-interfaces/FXShell.i | 2 +- swig-interfaces/FXSlider.i | 22 +- swig-interfaces/FXSphered.i | 2 +- swig-interfaces/FXSpheref.i | 2 +- swig-interfaces/FXSpinner.i | 30 +-- swig-interfaces/FXSplitter.i | 12 +- swig-interfaces/FXStatusBar.i | 8 +- swig-interfaces/FXStatusLine.i | 10 +- swig-interfaces/FXStream.i | 2 +- swig-interfaces/FXSwitcher.i | 10 +- swig-interfaces/FXTabBar.i | 4 +- swig-interfaces/FXTabBook.i | 2 +- swig-interfaces/FXTabItem.i | 8 +- swig-interfaces/FXTable.i | 74 +++--- swig-interfaces/FXText.i | 26 +- swig-interfaces/FXTextField.i | 2 +- swig-interfaces/FXToggleButton.i | 12 +- swig-interfaces/FXToolBar.i | 8 +- swig-interfaces/FXToolBarGrip.i | 6 +- swig-interfaces/FXToolBarShell.i | 6 +- swig-interfaces/FXToolBarTab.i | 10 +- swig-interfaces/FXToolTip.i | 2 +- swig-interfaces/FXTopWindow.i | 20 +- swig-interfaces/FXTreeList.i | 56 ++--- swig-interfaces/FXTreeListBox.i | 72 +++--- swig-interfaces/FXVec3d.i | 4 +- swig-interfaces/FXVec3f.i | 4 +- swig-interfaces/FXVec4d.i | 2 +- swig-interfaces/FXVec4f.i | 18 +- swig-interfaces/FXVerticalFrame.i | 2 +- swig-interfaces/FXVisual.i | 2 +- swig-interfaces/FXWindow.i | 92 ++++---- swig-interfaces/FXXPMIcon.i | 2 +- swig-interfaces/FXXPMImage.i | 2 +- swig-interfaces/exceptions.i | 2 +- swig-interfaces/freefuncs.i | 2 +- swig-interfaces/fxdefs.i | 26 +- swig-interfaces/macros.i | 158 ++++++------- test/TC_FXAccelTable.rb | 6 +- test/TC_FXButton.rb | 18 +- test/TC_FXCheckButton.rb | 8 +- test/TC_FXComboBox.rb | 2 +- test/TC_FXDC.rb | 84 +++---- test/TC_FXDialogBox.rb | 2 +- test/TC_FXExtentd.rb | 4 +- test/TC_FXExtentf.rb | 4 +- test/TC_FXFileAssoc.rb | 10 +- test/TC_FXFileStream.rb | 10 +- test/TC_FXFoldingList.rb | 6 +- test/TC_FXFont.rb | 6 +- test/TC_FXGLGroup.rb | 2 +- test/TC_FXHeader.rb | 6 +- test/TC_FXIconDict.rb | 10 +- test/TC_FXIconList.rb | 24 +- test/TC_FXImage.rb | 32 +-- test/TC_FXList.rb | 10 +- test/TC_FXListBox.rb | 2 +- test/TC_FXMainWindow.rb | 4 +- test/TC_FXMat4f.rb | 66 +++--- test/TC_FXMaterial.rb | 10 +- test/TC_FXMemoryStream.rb | 4 +- test/TC_FXMenuCheck.rb | 10 +- test/TC_FXMessageBox.rb | 6 +- test/TC_FXPoint.rb | 2 +- test/TC_FXRadioButton.rb | 8 +- test/TC_FXRanged.rb | 6 +- test/TC_FXRangef.rb | 6 +- test/TC_FXRegion.rb | 2 +- test/TC_FXScrollArea.rb | 2 +- test/TC_FXScrollWindow.rb | 2 +- test/TC_FXSettings.rb | 4 +- test/TC_FXShell.rb | 4 +- test/TC_FXTopWindow.rb | 4 +- test/TC_FXTreeList.rb | 8 +- test/TC_FXTreeListBox.rb | 6 +- test/TC_FXVec2d.rb | 6 +- test/TC_FXVec2f.rb | 6 +- test/TC_FXVec3d.rb | 10 +- test/TC_FXVec3f.rb | 10 +- test/TC_FXVec4f.rb | 12 +- test/stress1.rb | 10 +- test/stress2.rb | 6 +- test/stress3.rb | 24 +- test/testcase.rb | 8 +- 478 files changed, 3855 insertions(+), 3855 deletions(-) diff --git a/History.txt b/History.txt index 58de03f..f9b2402 100644 --- a/History.txt +++ b/History.txt @@ -7,4 +7,4 @@ === 1.6.19 / 2009-03-06 * Please see http://www.fxruby.org/doc/changes.html - for a complete list of the changes in this release. \ No newline at end of file + for a complete list of the changes in this release. diff --git a/README.txt b/README.txt index 35e87f0..218e885 100644 --- a/README.txt +++ b/README.txt @@ -82,7 +82,7 @@ modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. - + Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a @@ -138,7 +138,7 @@ modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. - + GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION @@ -173,7 +173,7 @@ such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. - + 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an @@ -185,7 +185,7 @@ Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. - + 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 @@ -243,7 +243,7 @@ instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. - + Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. @@ -294,7 +294,7 @@ Library will still fall under Section 6.) distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. - + 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work @@ -356,7 +356,7 @@ restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. - + 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined @@ -397,7 +397,7 @@ subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. - + 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or @@ -449,7 +449,7 @@ conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. - + 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is @@ -480,4 +480,4 @@ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. \ No newline at end of file +DAMAGES. diff --git a/examples/WhatAQuietStiff.rb b/examples/WhatAQuietStiff.rb index 35b504c..8d70f77 100755 --- a/examples/WhatAQuietStiff.rb +++ b/examples/WhatAQuietStiff.rb @@ -40,11 +40,11 @@ class WhatAQuietWindow < FXMainWindow # Icons for list items File.open("icons/bluebullet14x14.gif", "rb") do |f| bytes = f.read - @itemIcon = FXGIFIcon.new(getApp(), bytes) + @itemIcon = FXGIFIcon.new(getApp(), bytes) end File.open("icons/transpbullet14x14.gif", "rb") do |f| bytes = f.read - @transpIcon = FXGIFIcon.new(getApp(), bytes) + @transpIcon = FXGIFIcon.new(getApp(), bytes) end # Menubar @@ -89,12 +89,12 @@ class WhatAQuietWindow < FXMainWindow @itemList.setItemIcon(itemIndex, @transpIcon) end end - + # Sunken border for image widget imagebox = FXHorizontalFrame.new(splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0) - + # Make image widget @imageview = FXImageView.new(imagebox, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) @imageview.enable @@ -234,7 +234,7 @@ class WhatAQuietWindow < FXMainWindow rssItem.description =~ /src="(.*?)"/ return $1 end - + # Return the URL listed in the href tag of the description's HTML text. def getLinkURL(rssItem) rssItem.description =~ /href="(.*?)"/ @@ -282,7 +282,7 @@ class WhatAQuietWindow < FXMainWindow def refreshList # Grab the latest RSS feed @rss = getRSSFeed(RSS_FEED_URL) - + # Repopulate the list with this set of items populateItemList(@rss) end @@ -325,14 +325,14 @@ class WhatAQuietWindow < FXMainWindow # Make the item list wide enough to show the longest item resizeItemList - + # Resize main window # Resize main window client area to fit image size # resize(@imageview.contentWidth, @imageview.contentHeight) # Now show it show(PLACEMENT_SCREEN) - + # Start the updates timer getApp().addTimeout(1000*60*@refreshDelay, method(:onRefreshList)) end diff --git a/examples/babelfish.rb b/examples/babelfish.rb index 81b4d2b..7184429 100755 --- a/examples/babelfish.rb +++ b/examples/babelfish.rb @@ -16,7 +16,7 @@ class Babelfish < FXMainWindow super(app, "Babelfish", :opts => DECOR_ALL, :width => 600, :height => 400) @translator = Tranexp::Http.new - + # Controls area along the bottom controlsFrame = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) @@ -56,7 +56,7 @@ class Babelfish < FXMainWindow FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) @translatedText = FXText.new(sunkenFrame, :opts => TEXT_READONLY|LAYOUT_FILL_X|LAYOUT_FILL_Y) end - + def create super show(PLACEMENT_SCREEN) diff --git a/examples/bounce.rb b/examples/bounce.rb index f93cf95..e556adb 100755 --- a/examples/bounce.rb +++ b/examples/bounce.rb @@ -28,7 +28,7 @@ class Ball @dir = FXPoint.new(-1, 0) setWorldSize(1000, 1000) end - + # Draw the ball into this device context def draw(dc) dc.setForeground(color) @@ -37,11 +37,11 @@ class Ball dc.fillArc(x, y, w, h, 64*180, 64*270) dc.fillArc(x, y, w, h, 64*270, 64*360) end - + def bounce @dir = -@dir end - + def collision? (x < 0) || (x+w > worldWidth) || (y < 0) || (y+h > worldHeight) end @@ -50,7 +50,7 @@ class Ball @worldWidth = ww @worldHeight = wh end - + def move(units) dx = dir.x*units dy = dir.y*units @@ -68,24 +68,24 @@ end class BounceWindow < FXMainWindow include Responder - + def initialize(app) # Initialize base class first super(app, "Bounce", :opts => DECOR_ALL, :width => 400, :height => 300) - + # Set up the canvas @canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Set up the back buffer @backBuffer = FXImage.new(app, nil, IMAGE_KEEP) - + # Handle expose events (by blitting the image to the canvas) @canvas.connect(SEL_PAINT) { |sender, sel, evt| FXDCWindow.new(sender, evt) { |dc| dc.drawImage(@backBuffer, 0, 0) } } - + # Handle resize events @canvas.connect(SEL_CONFIGURE) { |sender, sel, evt| @backBuffer.create unless @backBuffer.created? @@ -93,10 +93,10 @@ class BounceWindow < FXMainWindow @ball.setWorldSize(sender.width, sender.height) drawScene(@backBuffer) } - + @ball = Ball.new(20) end - + # # Draws the scene into the back buffer # @@ -107,43 +107,43 @@ class BounceWindow < FXMainWindow @ball.draw(dc) } end - + def updateCanvas @ball.move(10) drawScene(@backBuffer) @canvas.update end - + # # Handle timeout events # def onTimeout(sender, sel, ptr) # Move the ball and re-draw the scene updateCanvas - + # Re-register the timeout getApp().addTimeout(ANIMATION_TIME, method(:onTimeout)) - + # Done return 1 end - + # # Create server-side resources # def create # Create base class super - + # Create the image used as the back-buffer @backBuffer.create - + # Draw the initial scene into the back-buffer drawScene(@backBuffer) - + # Register the timer used for animation getApp().addTimeout(ANIMATION_TIME, method(:onTimeout)) - + # Show the main window show(PLACEMENT_SCREEN) end diff --git a/examples/canvasdemo.rb b/examples/canvasdemo.rb index bab3a36..17175aa 100755 --- a/examples/canvasdemo.rb +++ b/examples/canvasdemo.rb @@ -8,10 +8,10 @@ class CanvasDemo < FXMainWindow def initialize(app) # Initialize base class first super(app, "Canvas Demo", nil, nil, DECOR_ALL, 0, 0, 800, 600) - + # Menu bar menu_bar = FXMenubar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # File menu file_menu = FXMenuPane.new(self) FXMenuCommand.new(file_menu, "&New...") @@ -25,7 +25,7 @@ class CanvasDemo < FXMainWindow FXMenuCommand.new(file_menu, "Print Pre&view") FXMenuSeparator.new(file_menu) FXMenuCommand.new(file_menu, "E&xit", nil, app, FXApp::ID_QUIT) - + # Edit menu edit_menu = FXMenuPane.new(self) FXMenuCommand.new(edit_menu, "&Undo") @@ -35,10 +35,10 @@ class CanvasDemo < FXMainWindow FXMenuSeparator.new(edit_menu) FXMenuCommand.new(edit_menu, "Change &background color") FXMenuCommand.new(edit_menu, "Edit &label") - + # Recently used files @mru_files = FXRecentFiles.new - + # Help menu help_menu = FXMenuPane.new(self) aboutBox = FXMenuCommand.new(help_menu, "&About...") @@ -46,16 +46,16 @@ class CanvasDemo < FXMainWindow FXMessageBox.information(self, MBOX_OK, "About Canvas", "Canvas Demo\nTo draw a shape, select a shape on the toolbar and left-click on the canvas.\nTo draw a line, right-drag between shapes.") end - + # Attach menus to menu bar titles FXMenuTitle.new(menu_bar, "&File", nil, file_menu) FXMenuTitle.new(menu_bar, "&Edit", nil, edit_menu) FXMenuTitle.new(menu_bar, "&Help", nil, help_menu) - + # Status bar FXStatusbar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # Shapes canvas fills the remainder frame = FXHorizontalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK, @@ -63,7 +63,7 @@ class CanvasDemo < FXMainWindow canvas = ShapeCanvas.new(frame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) canvas.scene = get_scene(canvas) end - + def get_scene(canvas) scene = ShapeGroup.new scene.addShape(CircleShape.new(5, 5, 10)) @@ -73,7 +73,7 @@ class CanvasDemo < FXMainWindow scene.addShape(TextShape.new(60, 60, 30, 40, "Hello!")) scene end - + def create super show(PLACEMENT_SCREEN) diff --git a/examples/charts.rb b/examples/charts.rb index dfb42d4..b3e1720 100644 --- a/examples/charts.rb +++ b/examples/charts.rb @@ -11,7 +11,7 @@ class ChartsWindow < FXMainWindow f.image = FXPNGImage.new(app, open(bar_chart.to_escaped_url, "rb").read) end end - + def bar_chart GoogleChart::BarChart.new('600x200', 'My Chart', :vertical) do |bc| bc.data 'Trend 1', [5,4,3,1,3,5], '0000ff' @@ -32,4 +32,4 @@ if __FILE__ == $0 app.create app.run end -end \ No newline at end of file +end diff --git a/examples/custom_table_item.rb b/examples/custom_table_item.rb index acbf7cb..fb8650b 100644 --- a/examples/custom_table_item.rb +++ b/examples/custom_table_item.rb @@ -19,7 +19,7 @@ class CustomTableItem < FXTableItem beg, tw, th = 0, 0, 0 begin _end = beg; - _end += 1 while _end < lbl.length && lbl[_end].chr != '\n' + _end += 1 while _end < lbl.length && lbl[_end].chr != '\n' t = font.getTextWidth(lbl[beg..._end]) tw = t if t > tw th += font.fontHeight @@ -117,7 +117,7 @@ class CustomTableItem < FXTableItem # Paint icon dc.drawIcon(icn, ix, iy) unless icn.nil? - + # Text color if selected? dc.foreground = table.selTextColor @@ -131,7 +131,7 @@ class CustomTableItem < FXTableItem beg = 0 begin _end = beg - _end += 1 while _end < lbl.length && lbl[_end].chr != '\n' + _end += 1 while _end < lbl.length && lbl[_end].chr != '\n' if justify & LEFT == 1 xx = tx elsif justify & RIGHT == 1 diff --git a/examples/datatarget.rb b/examples/datatarget.rb index 816ce42..d96036e 100755 --- a/examples/datatarget.rb +++ b/examples/datatarget.rb @@ -46,7 +46,7 @@ class DataTargetWindow < FXMainWindow # Menubar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "Progress dialog...").connect(SEL_COMMAND) do @@ -179,7 +179,7 @@ class DataTargetWindow < FXMainWindow def onTimeout(sender, sel, ptr) # Increment the progress modulo 100 @progressTarget.value = (@progressTarget.value + 1) % 100 - + # Reset the timer for next time getApp().addTimeout(80, method(:onTimeout)) end diff --git a/examples/dctest.rb b/examples/dctest.rb index 8e16d2e..9237699 100755 --- a/examples/dctest.rb +++ b/examples/dctest.rb @@ -46,9 +46,9 @@ $bitmap_bits = [ 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff] - + $bitmap_bits = $bitmap_bits.pack("c*") - + $blit_modes = { BLT_CLR => "Clear\tBLT_CLR", BLT_SRC_AND_DST => "And\tBLT_SRC_AND_DST", @@ -108,14 +108,14 @@ class DCTestWindow < FXMainWindow def initialize(app) # Initialize base class first super(app, "Device Context Test", :opts => DECOR_ALL, :width => 850, :height => 740) - + opts = FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y - + # Preferred line attributes @lineStyle = LINE_SOLID @capStyle = CAP_BUTT @joinStyle = JOIN_MITER - + # Create a tooltip tooltip = FXToolTip.new(getApp()) @@ -135,7 +135,7 @@ class DCTestWindow < FXMainWindow FXLabel.new(controls, "BLIT Function:", nil, LAYOUT_LEFT) blitgrid = FXMatrix.new(controls, 4, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH, :padLeft => 2, :padRight => 2, :padTop => 2, :padBottom => 2) - + # One button for each mode $blit_modes.each do |blit_mode, desc| btn = FXButton.new(blitgrid, desc, :opts => BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_COLUMN) @@ -152,7 +152,7 @@ class DCTestWindow < FXMainWindow end end end - + # Line dash style FXLabel.new(controls, "Line Style:", nil, LAYOUT_LEFT) linestyle = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X, @@ -193,7 +193,7 @@ class DCTestWindow < FXMainWindow sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil) end end - + # Line cap style FXLabel.new(controls, "Cap Style:", nil, LAYOUT_LEFT) capstyle = FXMatrix.new(controls, 4, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) @@ -249,7 +249,7 @@ class DCTestWindow < FXMainWindow sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil) end end - + # Line join style FXLabel.new(controls, "Join Style:", nil, LAYOUT_LEFT) joinstyle = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) @@ -293,7 +293,7 @@ class DCTestWindow < FXMainWindow sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil) end end - + # Colors FXLabel.new(controls, "Colors:", nil, LAYOUT_LEFT) pairs = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) @@ -303,7 +303,7 @@ class DCTestWindow < FXMainWindow pairs.padBottom = 2 pairs.hSpacing = 5 pairs.vSpacing = 5 - + # Back Color FXLabel.new(pairs, "Back Color:") @backWell = FXColorWell.new(pairs, FXRGB(0, 0, 255), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) @@ -322,7 +322,7 @@ class DCTestWindow < FXMainWindow @backWell.connect(SEL_UPDATE) do |sender, sel, ptr| sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @backcolor) end - + # Fore Color FXLabel.new(pairs, "Fore Color:") @foreWell = FXColorWell.new(pairs, FXRGB(255, 0, 0), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) @@ -341,7 +341,7 @@ class DCTestWindow < FXMainWindow @foreWell.connect(SEL_UPDATE) do |sender, sel, ptr| sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @forecolor) end - + # Erase Color FXLabel.new(pairs, "Erase Color:") @eraseWell = FXColorWell.new(pairs, FXRGB(255, 255, 255), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) @@ -360,19 +360,19 @@ class DCTestWindow < FXMainWindow @eraseWell.connect(SEL_UPDATE) do |sender, sel, ptr| sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @erasecolor) end - + # Line width linew = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) linew.padLeft = 2 linew.padRight = 2 linew.padTop = 2 - linew.padBottom = 2 + linew.padBottom = 2 FXLabel.new(linew, "Line Width:") @lineWidthSpinner = FXSpinner.new(linew, 4, nil, 0, SPIN_NORMAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) @lineWidthSpinner.connect(SEL_COMMAND) { @linesCanvas.update(0, 0, @linesCanvas.width, @linesCanvas.height) } @lineWidthSpinner.range = 1..255 @lineWidthSpinner.value = 1 - + # Stipple stip = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) stip.padLeft = 2 @@ -381,7 +381,7 @@ class DCTestWindow < FXMainWindow stip.padBottom = 2 FXLabel.new(stip, "Stipples:") pop = FXPopup.new(self) - + $stipples.each do |pat, desc| opt = FXOption.new(pop, desc, nil, nil, 0, JUSTIFY_HZ_APART|ICON_AFTER_TEXT) opt.userData = pat @@ -391,7 +391,7 @@ class DCTestWindow < FXMainWindow end end FXOptionMenu.new(stip, pop, LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|JUSTIFY_HZ_APART|ICON_AFTER_TEXT) - + # Fill Style FXLabel.new(controls, "Fill Style:", nil, LAYOUT_LEFT) fillstyle = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) @@ -414,7 +414,7 @@ class DCTestWindow < FXMainWindow end end end - + # Angles for arcs FXLabel.new(controls, "Arc angles:", nil, LAYOUT_LEFT) arcangles = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X) @@ -430,13 +430,13 @@ class DCTestWindow < FXMainWindow FXTextField.new(arcangles, 4, @ang1, FXDataTarget::ID_VALUE, TEXTFIELD_INTEGER|JUSTIFY_RIGHT|FRAME_SUNKEN|FRAME_THICK) sang1 = FXSlider.new(arcangles, @ang1, FXDataTarget::ID_VALUE, LAYOUT_CENTER_Y|LAYOUT_FILL_X|SLIDER_INSIDE_BAR|LAYOUT_FILL_COLUMN) sang1.range = -360..360 - + @ang2 = FXDataTarget.new(90) FXLabel.new(arcangles, "Ang2:", nil, LAYOUT_LEFT) FXTextField.new(arcangles, 4, @ang2, FXDataTarget::ID_VALUE, TEXTFIELD_INTEGER|JUSTIFY_RIGHT|FRAME_SUNKEN|FRAME_THICK) sang2 = FXSlider.new(arcangles, @ang2, FXDataTarget::ID_VALUE, LAYOUT_CENTER_Y|LAYOUT_FILL_X|SLIDER_INSIDE_BAR|LAYOUT_FILL_COLUMN) sang2.range = -360..360 - + # Font fonts = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH) fonts.padLeft = 2 @@ -445,7 +445,7 @@ class DCTestWindow < FXMainWindow fonts.padBottom = 2 btn = FXButton.new(fonts, "Font Dialog...\tChange the text font", nil, nil, 0, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y) btn.connect(SEL_COMMAND, method(:onCmdFont)) - + # Printing printer = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH) printer.padLeft = 2 @@ -454,7 +454,7 @@ class DCTestWindow < FXMainWindow printer.padBottom = 2 btn = FXButton.new(printer, "Print Dialog...\tPrint it out", nil, nil, 0, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y) btn.connect(SEL_COMMAND, method(:onCmdPrint)) - + # Quit quitter = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH) quitter.padLeft = 2 @@ -462,10 +462,10 @@ class DCTestWindow < FXMainWindow quitter.padTop = 2 quitter.padBottom = 2 FXButton.new(quitter, "Bye Bye!\tHasta la vista, baby!", nil, getApp(), FXApp::ID_QUIT, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Switcher tabbook = FXTabBook.new(contents, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT) - + # First page shows various line styles linesTab = FXTabItem.new(tabbook, "&Lines", nil) linesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED) @@ -479,7 +479,7 @@ class DCTestWindow < FXMainWindow dc = FXDCWindow.new(canvas, ev) drawPage(dc, canvas.width, canvas.height) end - + # Second page shows various shapes shapesTab = FXTabItem.new(tabbook, "&Shapes", nil) shapesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED) @@ -493,22 +493,22 @@ class DCTestWindow < FXMainWindow dc = FXDCWindow.new(canvas, ev) dc.foreground = @eraseWell.rgba dc.fillRectangle(0, 0, canvas.width, canvas.height) - + dc.foreground = @foreWell.rgba dc.background = @backWell.rgba dc.drawRectangle(5, 5, 50, 50) dc.fillRectangle(60, 5, 50, 50) - + dc.foreground = @foreWell.rgba dc.background = @backWell.rgba dc.drawArc(5, 60, 50, 50, 0, 64*90) dc.fillArc(60, 60, 50, 50, 64*90, 64*180) - + dc.foreground = @foreWell.rgba dc.background = @backWell.rgba dc.drawBitmap(@bitmap, 115, 5) end - + # Third page shows images imagesTab = FXTabItem.new(tabbook, "&Images", nil) imagesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED) @@ -524,17 +524,17 @@ class DCTestWindow < FXMainWindow dc.fillRectangle(0, 0, canvas.width, canvas.height) dc.drawImage(@birdImage, 0, 0) end - + # File menu @filemenu = FXMenuPane.new(self) FXMenuCommand.new(@filemenu, "&Print...\tCtl-P").connect(SEL_COMMAND, method(:onCmdPrint)) FXMenuCommand.new(@filemenu, "&Font...\tCtl-F").connect(SEL_COMMAND, method(:onCmdFont)) FXMenuCommand.new(@filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, @filemenu) - + @birdImage = FXPNGImage.new(getApp(), File.open("icons/dippy.png", "rb").read) @bitmap = FXBitmap.new(getApp(), $bitmap_bits, 0, 64, 64) - + @function = BLT_SRC @lineStyle = LINE_SOLID @capStyle = CAP_BUTT @@ -547,7 +547,7 @@ class DCTestWindow < FXMainWindow @erasecolor = FXRGB(255, 255, 255) # white @testFont = FXFont.new(getApp(), "helvetica", 20) end - + def create super @birdImage.create @@ -555,33 +555,33 @@ class DCTestWindow < FXMainWindow @bitmap.create show(PLACEMENT_SCREEN) end - + def detach super @birdImage.detach @testFont.detach @bitmap.detach end - + def drawPage(dc, w, h) dc.foreground = @erasecolor dc.fillRectangle(0, 0, w, h) - + dc.foreground = @forecolor dc.background = @backcolor - + dc.lineStyle = @lineStyle dc.lineCap = @capStyle dc.lineJoin = @joinStyle dc.function = @function - + dc.stipple = @stipple dc.fillStyle = @fillStyle dc.lineWidth = @lineWidthSpinner.value - + # Here's a single line dc.drawLine(20, 200, w - 20, 200) - + # Here are some connected lines (to show join styles) points = [] points << FXPoint.new(10, 3*h/4) @@ -591,22 +591,22 @@ class DCTestWindow < FXMainWindow points << FXPoint.new(points[3].x+w/6, points[0].y) points << FXPoint.new(points[4].x+w/6, points[1].y) dc.drawLines(points) - + dc.font = @testFont dc.foreground = @forecolor dc.background = @backcolor s = "Font: #{@testFont.name} Size: #{@testFont.size/10}" dc.drawText(30, h-70, s) dc.drawImageText(30, h-30, s) - + dc.foreground = @forecolor dc.background = @backcolor dc.drawRectangle(20, 20, 200, 100) dc.fillRectangle(300, 20, 200, 100) - + dc.drawArc(20, 120, 100, 100, 64*@ang1.value, 64*@ang2.value) dc.fillArc(300, 120, 100, 100, 64*@ang1.value, 64*@ang2.value) - + poly = [] poly << FXPoint.new(200, 230) poly << FXPoint.new(poly[0].x+40, poly[0].y+20) @@ -614,7 +614,7 @@ class DCTestWindow < FXMainWindow poly << FXPoint.new(poly[0].x-30, poly[0].y+60) poly << FXPoint.new(poly[0].x-40, poly[0].y+20) dc.fillPolygon(poly) - + poly = [] poly << FXPoint.new(300, 230) poly << FXPoint.new(poly[0].x+30, poly[0].y+60) @@ -631,19 +631,19 @@ class DCTestWindow < FXMainWindow poly << FXPoint.new(poly[0].x-30, poly[0].y+60) dc.fillRule = RULE_WINDING dc.fillComplexPolygon(poly) - + concave = [] concave << FXPoint.new(w-100, h-100) concave << FXPoint.new(concave[0].x+40, concave[0].y-20) concave << FXPoint.new(concave[0].x , concave[0].y+40) concave << FXPoint.new(concave[0].x-40, concave[0].y-20) dc.fillConcavePolygon(concave) - + # Draw a pale blue dot ;) dc.foreground = FXRGB(128, 128, 255) dc.drawPoint(w-20, h-20) end - + def onCmdFont(sender, sel, ptr) fontdlg = FXFontDialog.new(self, "Change Font", DECOR_BORDER|DECOR_TITLE) fontdlg.fontSelection = @testFont.fontDesc @@ -654,7 +654,7 @@ class DCTestWindow < FXMainWindow end return 1 end - + def onCmdPrint(sender, sel, ptr) dlg = FXPrintDialog.new(self, "Print Graphics") if dlg.execute != 0 @@ -671,7 +671,7 @@ class DCTestWindow < FXMainWindow end return 1 end - + # Load the named icon from a file def loadIcon(filename, clr = FXRGB(192, 192, 192), opts = 0) begin diff --git a/examples/dialog.rb b/examples/dialog.rb index c352c0d..1d82fb8 100755 --- a/examples/dialog.rb +++ b/examples/dialog.rb @@ -19,29 +19,29 @@ class FXTestDialog < FXDialogBox # Separator FXHorizontalSeparator.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|SEPARATOR_GROOVE) - + # Contents contents = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDTH) - + submenu = FXMenuPane.new(self) FXMenuCommand.new(submenu, "One") FXMenuCommand.new(submenu, "Two") FXMenuCommand.new(submenu, "Three") - + # Menu menu = FXMenuPane.new(self) FXMenuCommand.new(menu, "&Accept", nil, self, ID_ACCEPT) FXMenuCommand.new(menu, "&Cancel", nil, self, ID_CANCEL) FXMenuCascade.new(menu, "Submenu", nil, submenu) FXMenuCommand.new(menu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) - + # Popup menu pane = FXPopup.new(self) %w{One Two Three Four Five Six Seven Eight Nine Ten}.each do |s| FXOption.new(pane, s, :opts => JUSTIFY_HZ_APART|ICON_AFTER_TEXT) end - + # Option menu FXOptionMenu.new(contents, pane, (FRAME_RAISED|FRAME_THICK| JUSTIFY_HZ_APART|ICON_AFTER_TEXT|LAYOUT_CENTER_X|LAYOUT_CENTER_Y)) @@ -54,15 +54,15 @@ class FXTestDialog < FXDialogBox # Accept accept = FXButton.new(buttons, "&Accept", nil, self, ID_ACCEPT, FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y) - + # Cancel FXButton.new(buttons, "&Cancel", nil, self, ID_CANCEL, FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y) - - accept.setDefault + + accept.setDefault accept.setFocus end - + end # Subclassed main window @@ -74,10 +74,10 @@ class DialogTester < FXMainWindow # Tooltip FXToolTip.new(getApp()) - + # Menubar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Separator FXHorizontalSeparator.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE) @@ -86,7 +86,7 @@ class DialogTester < FXMainWindow filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit", nil, getApp(), FXApp::ID_QUIT, 0) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Contents contents = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDTH) @@ -96,13 +96,13 @@ class DialogTester < FXMainWindow "&Non-Modal Dialog...\tDisplay normal dialog", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_X|LAYOUT_CENTER_Y) nonModalButton.connect(SEL_COMMAND, method(:onCmdShowDialog)) - + # Button to pop modal dialog modalButton = FXButton.new(contents, "&Modal Dialog...\tDisplay modal dialog", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_X|LAYOUT_CENTER_Y) modalButton.connect(SEL_COMMAND, method(:onCmdShowDialogModal)) - + # Build a dialog box @dialog = FXTestDialog.new(self) diff --git a/examples/dilbert.rb b/examples/dilbert.rb index 955c6be..0a4eea2 100755 --- a/examples/dilbert.rb +++ b/examples/dilbert.rb @@ -27,24 +27,24 @@ class DailyDilbert < FXMainWindow # Sunken border for image widget imagebox = FXHorizontalFrame.new(self, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Make image widget @imageview = FXImageView.new(imagebox, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|HSCROLLER_NEVER|VSCROLLER_NEVER) - + # Construct a GIF image and store it in the image viewer @imageview.image = FXGIFImage.new(getApp(), image_data) # Resize main window client area to fit image size resize(@imageview.contentWidth, @imageview.contentHeight) end - + def image_data doc = Hpricot(open("http://www.dilbert.com/")) url = doc.search("img").find { |e| e['src'] =~ /\/dyn\/str_strip\/.*\.gif/ } open("http://www.dilbert.com" + url['src'], "rb").read end - + def create super show(PLACEMENT_SCREEN) diff --git a/examples/dirlist.rb b/examples/dirlist.rb index 3c7f38f..4af6458 100755 --- a/examples/dirlist.rb +++ b/examples/dirlist.rb @@ -26,12 +26,12 @@ class DirListWindow < FXMainWindow # Text field at bottom text = FXTextField.new(self, 10, :opts => LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK) - + # Make contents dirlist = FXDirList.new(self, :opts => (HSCROLLING_OFF| TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES|FRAME_SUNKEN|FRAME_THICK| LAYOUT_FILL_X|LAYOUT_FILL_Y)) - + # Now make the directory list widget (dirlist) the message target # for the text field. If you type a new directory name in the text # field the directory list should navigate to that directory. @@ -49,13 +49,13 @@ end def run # Make application application = FXApp.new("DirList", "FoxTest") - + # Make window DirListWindow.new(application) - - # Create app + + # Create app application.create - + # Run application.run end diff --git a/examples/dragdrop.rb b/examples/dragdrop.rb index 08f0d60..22c54a8 100755 --- a/examples/dragdrop.rb +++ b/examples/dragdrop.rb @@ -3,18 +3,18 @@ require 'fox16' include Fox class DragDropWindow < FXMainWindow - + def initialize(anApp) # Initialize base class super(anApp, "Drag and Drop", :opts => DECOR_ALL, :width => 400, :height => 300) - + # Fill main window with canvas @canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) @canvas.backColor = "red" - + # Enable canvas for drag-and-drop messages @canvas.dropEnable - + # Handle expose events on the canvas @canvas.connect(SEL_PAINT) do |sender, sel, event| FXDCWindow.new(@canvas, event) do |dc| @@ -36,7 +36,7 @@ class DragDropWindow < FXMainWindow dragTypes = [FXWindow.colorType] @canvas.beginDrag(dragTypes) end - + # Handle mouse motion events @canvas.connect(SEL_MOTION) do |sender, sel, event| if @canvas.dragging? @@ -59,7 +59,7 @@ class DragDropWindow < FXMainWindow @canvas.ungrab @canvas.endDrag end - + # Handle SEL_DND_DROP message from the canvas @canvas.connect(SEL_DND_DROP) do # Try to obtain the data as color values first @@ -78,7 +78,7 @@ class DragDropWindow < FXMainWindow def create # Create the main window and canvas super - + # Register the drag type for colors FXWindow.colorType = getApp().registerDragType(FXWindow.colorTypeName) diff --git a/examples/dragsource.rb b/examples/dragsource.rb index f7406b0..06179a4 100755 --- a/examples/dragsource.rb +++ b/examples/dragsource.rb @@ -3,15 +3,15 @@ require 'fox16' include Fox class DragSource < FXMainWindow - + def initialize(anApp) # Initialize base class super(anApp, "Drag Source", :opts => DECOR_ALL, :width => 400, :height => 300) - + # Fill main window with canvas @canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) @canvas.backColor = "red" - + # Handle expose events on the canvas @canvas.connect(SEL_PAINT) do |sender, sel, event| FXDCWindow.new(@canvas, event) do |dc| @@ -33,7 +33,7 @@ class DragSource < FXMainWindow dragTypes = [FXWindow.colorType] @canvas.beginDrag(dragTypes) end - + # Handle mouse motion events @canvas.connect(SEL_MOTION) do |sender, sel, event| if @canvas.dragging? @@ -51,7 +51,7 @@ class DragSource < FXMainWindow @canvas.ungrab @canvas.endDrag end - + # Handle request for DND data @canvas.connect(SEL_DND_REQUEST) do |sender, sel, event| @canvas.setDNDData(FROM_DRAGNDROP, FXWindow.colorType, Fox.fxencodeColorData(@canvas.backColor)) if event.target == FXWindow.colorType @@ -61,7 +61,7 @@ class DragSource < FXMainWindow def create # Create the main window and canvas super - + # Register the drag type for colors FXWindow.colorType = getApp().registerDragType(FXWindow.colorTypeName) diff --git a/examples/dropsite.rb b/examples/dropsite.rb index fd2ba48..8edb17f 100755 --- a/examples/dropsite.rb +++ b/examples/dropsite.rb @@ -3,14 +3,14 @@ require 'fox16' include Fox class DropSite < FXMainWindow - + def initialize(anApp) # Initialize base class super(anApp, "Drop Site", :opts => DECOR_ALL, :width => 400, :height => 300) - + # Fill main window with canvas @canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Handle expose events on the canvas @canvas.connect(SEL_PAINT) do |sender, sel, event| FXDCWindow.new(@canvas, event) do |dc| @@ -21,7 +21,7 @@ class DropSite < FXMainWindow # Enable canvas for drag-and-drop messages @canvas.dropEnable - + # Handle SEL_DND_MOTION messages from the canvas @canvas.connect(SEL_DND_MOTION) do @canvas.acceptDrop if @canvas.offeredDNDType?(FROM_DRAGNDROP, FXWindow.colorType) @@ -40,7 +40,7 @@ class DropSite < FXMainWindow def create # Create the main window and canvas super - + # Register the drag type for colors FXWindow.colorType = getApp().registerDragType(FXWindow.colorTypeName) diff --git a/examples/foursplit.rb b/examples/foursplit.rb index 3761c05..0190a96 100755 --- a/examples/foursplit.rb +++ b/examples/foursplit.rb @@ -11,21 +11,21 @@ class FourSplitWindow < FXMainWindow # Menu bar, along the top menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Status bar, along the bottom FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # The top-level splitter takes up the rest of the space splitter = FX4Splitter.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FOURSPLITTER_TRACKING) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application.", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Expand menu expandmenu = FXMenuPane.new(self) FXMenuCommand.new(expandmenu, "All four", nil, @@ -39,7 +39,7 @@ class FourSplitWindow < FXMainWindow FXMenuCommand.new(expandmenu, "Bottom/right", nil, splitter, FX4Splitter::ID_EXPAND_BOTTOMRIGHT) FXMenuTitle.new(menubar, "&Expand", nil, expandmenu) - + # The 4-splitter accepts exactly four child widgets, and the # order in which they are added matters (top left, top right, # bottom left and bottom right, in that order). For our case, @@ -76,7 +76,7 @@ class FourSplitWindow < FXMainWindow "&arbitrarily!\tThis splitter does NOT track", :opts => FRAME_SUNKEN|FRAME_THICK) button.backColor = FXRGB(128, 128, 0) button.textColor = FXRGB(255, 255, 255) - + # Finally, create the tool tip object FXToolTip.new(getApp()) end diff --git a/examples/gdchart.rb b/examples/gdchart.rb index 5375826..a965a1f 100755 --- a/examples/gdchart.rb +++ b/examples/gdchart.rb @@ -22,18 +22,18 @@ class GDChartViewer < FXMainWindow # Sunken border for image widget imagebox = FXHorizontalFrame.new(self, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Make image widget @imageview = FXImageView.new(imagebox, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|HSCROLLER_NEVER|VSCROLLER_NEVER) - + # Construct a PNG image and store it in the image viewer @imageview.image = createChart # Resize main window client area to fit image size resize(@imageview.contentWidth, @imageview.contentHeight) end - + def createChart # Create a simple chart GDChart.title = "A Chart" @@ -41,12 +41,12 @@ class GDChartViewer < FXMainWindow GDChart.ytitle = "Y-axis" data = [1, 2, 3, 4, 5, 6] labels = ["label 1", "label 2", "label 3", "label 4", "label 5", "label 6"] - + # Write chart data out as GIF to a temporary file File.open('gdchart.gif', 'w') do |f| GDChart.out_graph(200, 200, f, GDChart::LINE, labels.length, labels, 1, data) end - + # Reopen it and construct image img = nil File.open('gdchart.gif', 'rb') do |f| @@ -54,7 +54,7 @@ class GDChartViewer < FXMainWindow end img end - + def create super show(PLACEMENT_SCREEN) diff --git a/examples/gembrowser.rb b/examples/gembrowser.rb index 04d9fef..77df8b3 100755 --- a/examples/gembrowser.rb +++ b/examples/gembrowser.rb @@ -103,7 +103,7 @@ class GemsPanel < FXVerticalFrame def initialize(p, br, opts) # Initialize base class super(p, opts) - + # Save a reference to the browser @browser = br @@ -154,11 +154,11 @@ class GemsPanel < FXVerticalFrame def getItem(*args) @iconList.getItem(*args) end - + def selectItem(index) @iconList.selectItem(index, true) end - + def numItems @iconList.numItems end @@ -206,7 +206,7 @@ class GemBrowserWindow < FXMainWindow # Main window interior contents = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) - + @browser = GemBrowser.new # Horizontal splitter with info pane on the left, icon list on the right @@ -214,7 +214,7 @@ class GemBrowserWindow < FXMainWindow infoPanel = GemInfoPanel.new(splitter, @browser, LAYOUT_FILL_X|LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK) @gemsPanel = GemsPanel.new(splitter, @browser, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK) end - + # Catch these too self.connect(SEL_CLOSE) { quit } anApp.addSignal("SIGINT") { quit } @@ -226,11 +226,11 @@ class GemBrowserWindow < FXMainWindow dlg.patternList = ["Gem Files (*.gem)", "All Files (*)"] if dlg.execute != 0 @directory = dlg.directory - begin + begin spec = browser.install(dlg.filename) @gemsPanel.appendItem(spec) rescue => ex - FXMessageBox.error(self, MBOX_OK, "Installation Failed", ex.to_s) + FXMessageBox.error(self, MBOX_OK, "Installation Failed", ex.to_s) end end } @@ -270,7 +270,7 @@ class GemBrowserWindow < FXMainWindow if rightPaneSize >= 0 @splitter.first.next.width = rightPaneSize end - + # Last directory for Gem files @directory = getApp().reg().readStringEntry("SETTINGS", "directory", "") diff --git a/examples/gltest.rb b/examples/gltest.rb index 7333c90..409d7e9 100755 --- a/examples/gltest.rb +++ b/examples/gltest.rb @@ -30,7 +30,7 @@ class GLTestWindow < FXMainWindow GL.Vertex(xmax, ymin, zmin) GL.Vertex(xmax, ymax, zmin) GL.End() - + GL.Begin(GL::TRIANGLE_STRIP) GL.Normal(1.0, 0.0, 0.0) GL.Vertex(xmax, ymin, zmin) @@ -38,7 +38,7 @@ class GLTestWindow < FXMainWindow GL.Vertex(xmax, ymin, zmax) GL.Vertex(xmax, ymax, zmax) GL.End() - + GL.Begin(GL::TRIANGLE_STRIP) GL.Normal(0.0, 0.0, 1.0) GL.Vertex(xmax, ymin, zmax) @@ -46,7 +46,7 @@ class GLTestWindow < FXMainWindow GL.Vertex(xmin, ymin, zmax) GL.Vertex(xmin, ymax, zmax) GL.End() - + GL.Begin(GL::TRIANGLE_STRIP) GL.Normal(-1.0, 0.0, 0.0) GL.Vertex(xmin, ymin, zmax) @@ -54,7 +54,7 @@ class GLTestWindow < FXMainWindow GL.Vertex(xmin, ymin, zmin) GL.Vertex(xmin, ymax, zmin) GL.End() - + GL.Begin(GL::TRIANGLE_STRIP) GL.Normal(0.0, 1.0, 0.0) GL.Vertex(xmin, ymax, zmin) @@ -62,7 +62,7 @@ class GLTestWindow < FXMainWindow GL.Vertex(xmax, ymax, zmin) GL.Vertex(xmax, ymax, zmax) GL.End() - + GL.Begin(GL::TRIANGLE_STRIP) GL.Normal(0.0, -1.0, 0.0) GL.Vertex(xmax, ymin, zmax) @@ -79,94 +79,94 @@ class GLTestWindow < FXMainWindow lightDiffuse = [ 0.9, 0.9, 0.9, 1.0] redMaterial = [ 1.0, 0.0, 0.0, 1.0] blueMaterial = [ 0.0, 0.0, 1.0, 1.0] - + width = @glcanvas.width.to_f height = @glcanvas.height.to_f aspect = width/height - + # Make context current @glcanvas.makeCurrent() - + GL.Viewport(0, 0, @glcanvas.width, @glcanvas.height) - + GL.ClearColor(1.0, 1.0, 1.0, 1.0) GL.Clear(GL::COLOR_BUFFER_BIT|GL::DEPTH_BUFFER_BIT) GL.Enable(GL::DEPTH_TEST) - + GL.Disable(GL::DITHER) - + GL.MatrixMode(GL::PROJECTION) GL.LoadIdentity() GLU.Perspective(30.0, aspect, 1.0, 100.0) - + GL.MatrixMode(GL::MODELVIEW) GL.LoadIdentity() GLU.LookAt(5.0, 10.0, 15.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0) - + GL.ShadeModel(GL::SMOOTH) GL.Light(GL::LIGHT0, GL::POSITION, lightPosition) GL.Light(GL::LIGHT0, GL::AMBIENT, lightAmbient) GL.Light(GL::LIGHT0, GL::DIFFUSE, lightDiffuse) GL.Enable(GL::LIGHT0) GL.Enable(GL::LIGHTING) - + GL.Material(GL::FRONT, GL::AMBIENT, blueMaterial) GL.Material(GL::FRONT, GL::DIFFUSE, blueMaterial) - + GL.PushMatrix() GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-1, -1, -1, 1, 1, 1) - + GL.Material(GL::FRONT, GL::AMBIENT, redMaterial) GL.Material(GL::FRONT, GL::DIFFUSE, redMaterial) - + GL.PushMatrix() GL.Translated(0.0, 1.75, 0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5) GL.PopMatrix() - + GL.PushMatrix() GL.Translated(0.0, -1.75, 0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5) GL.PopMatrix() - + GL.PushMatrix() GL.Rotated(90.0, 1.0, 0.0, 0.0) GL.Translated(0.0, 1.75, 0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5) GL.PopMatrix() - + GL.PushMatrix() GL.Rotated(90.0, -1.0, 0.0, 0.0) GL.Translated(0.0,1.75,0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5) GL.PopMatrix() - + GL.PushMatrix() GL.Rotated(90.0, 0.0, 0.0, 1.0) GL.Translated(0.0,1.75,0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5) GL.PopMatrix() - + GL.PushMatrix() GL.Rotated(90.0, 0.0, 0.0, -1.0) GL.Translated(0.0,1.75,0.0) GL.Rotated(@angle, 0.0, 1.0, 0.0) drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5) GL.PopMatrix() - + GL.PopMatrix() - + # Swap if it is double-buffered if @glvisual.isDoubleBuffer @glcanvas.swapBuffers end - + # Make context non-current @glcanvas.makeNonCurrent end @@ -185,23 +185,23 @@ class GLTestWindow < FXMainWindow LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT) glcanvasFrame.padLeft, glcanvasFrame.padRight = 10, 10 glcanvasFrame.padTop, glcanvasFrame.padBottom = 10, 10 - + # Label above the glcanvas FXLabel.new(glcanvasFrame, "OpenGL Canvas Frame", nil, JUSTIFY_CENTER_X|LAYOUT_FILL_X) - + # Horizontal divider line FXHorizontalSeparator.new(glcanvasFrame, SEPARATOR_GROOVE|LAYOUT_FILL_X) - + # Drawing glcanvas glpanel = FXVerticalFrame.new(glcanvasFrame, (FRAME_SUNKEN|FRAME_THICK| LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT)) glpanel.padLeft, glpanel.padRight = 0, 0 glpanel.padTop, glpanel.padBottom = 0, 0 - + # A visual to draw OpenGL @glvisual = FXGLVisual.new(getApp(), VISUAL_DOUBLEBUFFER) - + # Drawing glcanvas @glcanvas = FXGLCanvas.new(glpanel, @glvisual, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT) @glcanvas.connect(SEL_PAINT) { drawScene } @@ -211,19 +211,19 @@ class GLTestWindow < FXMainWindow @glcanvas.makeNonCurrent end end - + # Right pane for the buttons buttonFrame = FXVerticalFrame.new(frame, LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT) buttonFrame.padLeft, buttonFrame.padRight = 10, 10 buttonFrame.padTop, buttonFrame.padBottom = 10, 10 - + # Label above the buttons FXLabel.new(buttonFrame, "Button Frame", nil, JUSTIFY_CENTER_X|LAYOUT_FILL_X) - + # Horizontal divider line FXHorizontalSeparator.new(buttonFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X) - + # Spin according to timer spinTimerBtn = FXButton.new(buttonFrame, "Spin &Timer\tSpin using interval timers\nNote the app blocks until the interal has elapsed...",nil,nil,0,FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT) spinTimerBtn.padLeft, spinTimerBtn.padRight = 10, 10 @@ -262,7 +262,7 @@ class GLTestWindow < FXMainWindow spinChoreBtn.connect(SEL_UPDATE) do |sender, sel, ptr| @spinning ? sender.disable : sender.enable end - + # Stop spinning stopBtn = FXButton.new(buttonFrame, "&Stop Spin\tStop this mad spinning, I'm getting dizzy", @@ -283,17 +283,17 @@ class GLTestWindow < FXMainWindow stopBtn.connect(SEL_UPDATE) do |sender, sel, ptr| @spinning ? sender.enable : sender.disable end - + # Exit button exitBtn = FXButton.new(buttonFrame, "&Exit\tExit the application", nil, getApp(), FXApp::ID_QUIT, FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT) exitBtn.padLeft, exitBtn.padRight = 10, 10 exitBtn.padTop, exitBtn.padBottom = 5, 5 - + # Make a tooltip FXToolTip.new(getApp()) - + # Initialize private variables @spinning = false @chore = nil @@ -311,12 +311,12 @@ end if __FILE__ == $0 # Construct the application application = FXApp.new("GLTest", "FoxTest") - + # To ensure that the chores-based spin will run as fast as possible, # we can disable the chore in FXRuby's event loop that tries to schedule # other threads. This is OK for this program because there aren't any # other Ruby threads running. - + application.disableThreads # Construct the main window diff --git a/examples/glviewer.rb b/examples/glviewer.rb index 6a4c28a..f1ab317 100755 --- a/examples/glviewer.rb +++ b/examples/glviewer.rb @@ -146,10 +146,10 @@ end class GLViewWindow < FXMainWindow include Responder - + ID_QUERY_MODE = FXMainWindow::ID_LAST ID_GLVIEWER = ID_QUERY_MODE + 1 - + # Load the named PNG icon from a file def loadIcon(filename) begin @@ -300,7 +300,7 @@ class GLViewWindow < FXMainWindow FXButton.new(toolbar, "\tPrint Image\tPrint shapshot image.", loadIcon("printicon"), @mdiclient, FXGLViewer::ID_PRINT_IMAGE, BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # Editing FXFrame.new(toolbar, LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 4, :height => 20) @@ -313,7 +313,7 @@ class GLViewWindow < FXMainWindow FXButton.new(toolbar, "\tPaste", loadIcon("paste"), @mdiclient, FXGLViewer::ID_PASTE_SEL, (BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED| LAYOUT_TOP|LAYOUT_LEFT)) - + # Projections FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT| LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT), :width => 8, :height => 20) @@ -323,7 +323,7 @@ class GLViewWindow < FXMainWindow FXButton.new(toolbar, "\tParallel\tSwitch to parallel projection.", loadIcon("parallel"), @mdiclient, FXGLViewer::ID_PARALLEL, BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # Shading model FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH| LAYOUT_FIX_HEIGHT), :width => 8, :height => 20) @@ -341,7 +341,7 @@ class GLViewWindow < FXMainWindow FXToggleButton.new(toolbar, "\tToggle Light\tToggle light source.", nil, loadIcon("nolight"), loadIcon("light"), nil, 0, FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # View orientation FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH| LAYOUT_FIX_HEIGHT), :width => 8, :height => 20) @@ -363,7 +363,7 @@ class GLViewWindow < FXMainWindow FXButton.new(toolbar, "\tBottom View\tView objects from below.", loadIcon("bottomview"), @mdiclient, FXGLViewer::ID_BOTTOM, BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # Miscellaneous buttons FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH| LAYOUT_FIX_HEIGHT), :width => 8, :height => 20) @@ -376,14 +376,14 @@ class GLViewWindow < FXMainWindow FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) FXButton.new(toolbar, nil, loadIcon("foxicon"), nil, 0, FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # Dangerous delete a bit on the side FXFrame.new(toolbar, (LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH| LAYOUT_FIX_HEIGHT), :width => 10, :height => 20) FXButton.new(toolbar, "\tDelete\tDelete the selected object.", loadIcon("kill"), @mdiclient, FXGLViewer::ID_DELETE_SEL, BUTTON_AUTOGRAY|FRAME_THICK|FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT) - + # View menu viewmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&View", nil, viewmenu) @@ -414,7 +414,7 @@ class GLViewWindow < FXMainWindow @mdiclient, FXGLViewer::ID_LASSO_ZOOM, MENU_AUTOGRAY) FXMenuCommand.new(viewmenu, "Select...\t\tZoom in on area", nil, @mdiclient, FXGLViewer::ID_LASSO_SELECT, MENU_AUTOGRAY) - + # Rendering menu rendermenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Rendering", nil, rendermenu) @@ -427,7 +427,7 @@ class GLViewWindow < FXMainWindow FXMenuCommand.new(rendermenu, "Bounding Box\t\tRender bounding box only.", nil, @mdiclient, FXGLShape::ID_STYLE_BOUNDINGBOX, MENU_AUTOGRAY) - + # Window menu windowmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar,"&Windows", nil, windowmenu) @@ -462,7 +462,7 @@ class GLViewWindow < FXMainWindow FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_2) FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_3) FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_4) - + # Help menu helpmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT) @@ -472,14 +472,14 @@ class GLViewWindow < FXMainWindow FXMessageBox.information(self, MBOX_OK, "About FOX", "FOX OpenGL Example.\nCopyright (C) 1998 Jeroen van der Zijp") } - + # Make a tool tip FXToolTip.new(getApp(), 0) - + # The status bar shows our mode statusbar.statusLine.target = self statusbar.statusLine.selector = ID_QUERY_MODE - + # Make a scene! @scene = FXGLGroup.new gp2 = FXGLGroup.new @@ -495,7 +495,7 @@ class GLViewWindow < FXMainWindow gp2.append(FXGLCylinder.new(-1.0, 0.5, 0.0, 1.0, 0.5)) gp2.append(sphere) gp2.append(sphere2) - + # Add scene to GL viewer viewer.scene = @scene end diff --git a/examples/groupbox.rb b/examples/groupbox.rb index f988521..7f80a18 100755 --- a/examples/groupbox.rb +++ b/examples/groupbox.rb @@ -77,7 +77,7 @@ class GroupWindow < FXMainWindow resize(getDefaultWidth(), getDefaultHeight()) } FXMenuCommand.new(filemenu, "Dump Widgets", nil, getApp(), FXApp::ID_DUMP) - + # Make edit popup menu editmenu = FXMenuPane.new(self) FXMenuCommand.new(editmenu, "Undo") @@ -88,11 +88,11 @@ class GroupWindow < FXMainWindow FXMenuCommand.new(submenu1, "Th&ree") FXMenuCommand.new(submenu1, "&Four") FXMenuCascade.new(editmenu, "&Submenu1", nil, submenu1) - + FXMenuCascade.new(filemenu, "&Edit", nil, editmenu) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + helpmenu = FXMenuPane.new(self) FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) { FXMessageBox.information(self, MBOX_OK, @@ -100,28 +100,28 @@ class GroupWindow < FXMainWindow "FOX is a really, really cool C++ library!\nExample written by Jeroen") } FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT) - + @popupmenu = FXMenuPane.new(self) poptext = FXTextField.new(@popupmenu, 10, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP) poptext.setText("Popup with text") - + # Status bar status = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) @clockLabel = FXLabel.new(status, Time.now().strftime("%I:%M:%S %p"), nil, LAYOUT_FILL_Y|LAYOUT_RIGHT|FRAME_SUNKEN) - + # Content contents = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + group1 = FXGroupBox.new(contents, "Title Left", GROUPBOX_TITLE_LEFT|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y) group2 = FXGroupBox.new(contents, "Slider Tests", GROUPBOX_TITLE_CENTER|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y) group3 = FXGroupBox.new(contents, "Title Right", GROUPBOX_TITLE_RIGHT|FRAME_RIDGE|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + testlabel = FXLabel.new(group1, "&This is a multi-line\nlabel widget\nwith a big font", nil, LAYOUT_CENTER_X|JUSTIFY_CENTER_X) @@ -134,7 +134,7 @@ class GroupWindow < FXMainWindow "O&pen\nState\tTooltip for open\tHelp for open", folder_closed, folder_open, nil, 0, ICON_BEFORE_TEXT|JUSTIFY_LEFT|FRAME_RAISED|FRAME_THICK) - + pop = FXPopup.new(self) numbers =%w{first second third fourth} 0.upto(3) do |idx| @@ -142,10 +142,10 @@ class GroupWindow < FXMainWindow FXMessageBox.information(self, MBOX_OK, "Option Menu", "Chose option #{idx+1}") } end - + FXOptionMenu.new(group1, pop, LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|JUSTIFY_HZ_APART|ICON_AFTER_TEXT) - + FXLabel.new(group1, "Te&kstje", nil, LAYOUT_TOP|JUSTIFY_LEFT) FXButton.new(group1, "Add an `&&' by doubling\tTooltip\tHelp text for status", :opts => LAYOUT_TOP|FRAME_RAISED|FRAME_THICK) @@ -153,10 +153,10 @@ class GroupWindow < FXMainWindow x, y, buttons = getRoot().getCursorPosition() @popupmenu.popup(nil, x, y) } - + FXMenuButton.new(group1, "&Menu", :opts => MENUBUTTON_ATTACH_BOTH|MENUBUTTON_DOWN|JUSTIFY_HZ_APART|LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|ICON_AFTER_TEXT) FXMenuButton.new(group1, "&Menu", nil, filemenu, MENUBUTTON_UP|LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|ICON_AFTER_TEXT) - + coolpop = FXPopup.new(self, POPUP_HORIZONTAL) FXButton.new(coolpop, "A\tTipA", :opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 30, :height => 30) @@ -169,37 +169,37 @@ class GroupWindow < FXMainWindow FXMenuButton.new(group1, "&S\tSideways", nil, coolpop, (MENUBUTTON_ATTACH_BOTH|MENUBUTTON_LEFT|MENUBUTTON_NOARROWS|LAYOUT_TOP| FRAME_RAISED|FRAME_THICK|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT), :width => 30, :height => 30) - + matrix = FXMatrix.new(group1, 3, FRAME_RAISED|LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + FXButton.new(matrix, "A", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW) FXButton.new(matrix, "&Wide button", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X) FXButton.new(matrix, "A", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X) - + FXButton.new(matrix, "BBBB", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW|LAYOUT_FILL_COLUMN) FXButton.new(matrix, "B", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) FXButton.new(matrix, "BB", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN) - + FXButton.new(matrix, "C", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_Y|LAYOUT_CENTER_X|LAYOUT_FILL_ROW) FXButton.new(matrix, "&wide", :opts => FRAME_RAISED|FRAME_THICK) FXButton.new(matrix, "CC", :opts => FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT) - + FXLabel.new(group2, "No Arrow") FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL, :width => 200, :height => 30) - + FXLabel.new(group2, "Up Arrow") FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_ARROW_UP, :width => 200, :height => 30) - + FXLabel.new(group2, "Down Arrow") FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_ARROW_DOWN, :width => 200, :height => 30) - + FXLabel.new(group2, "Inside Bar") - slider = FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_INSIDE_BAR, :width => 200, :height => 20) + slider = FXSlider.new(group2, :opts => LAYOUT_TOP|LAYOUT_FILL_X|LAYOUT_FIX_HEIGHT|SLIDER_HORIZONTAL|SLIDER_INSIDE_BAR, :width => 200, :height => 20) slider.range = 0..3 - + frame = FXHorizontalFrame.new(group2, LAYOUT_FILL_X|LAYOUT_FILL_Y) - + FXSlider.new(frame, nil, 0, LAYOUT_FIX_HEIGHT|SLIDER_VERTICAL, 0, 0, 30, 200) FXSlider.new(frame, nil, 0, @@ -210,7 +210,7 @@ class GroupWindow < FXMainWindow LAYOUT_FIX_HEIGHT|SLIDER_VERTICAL|SLIDER_INSIDE_BAR, 0, 0, 20, 200) FXScrollBar.new(frame, nil, 0, SCROLLBAR_VERTICAL|LAYOUT_FIX_HEIGHT|LAYOUT_FIX_WIDTH, 0, 0, 20, 300) - + vframe1 = FXVerticalFrame.new(frame, LAYOUT_FILL_X|LAYOUT_FILL_Y) FXArrowButton.new(vframe1, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_UP) @@ -220,7 +220,7 @@ class GroupWindow < FXMainWindow LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_LEFT) FXArrowButton.new(vframe1, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_RIGHT) - + vframe2 = FXVerticalFrame.new(frame, LAYOUT_FILL_X|LAYOUT_FILL_Y) FXArrowButton.new(vframe2, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_RAISED|FRAME_THICK|ARROW_UP|ARROW_TOOLBAR) FXArrowButton.new(vframe2, nil, 0, (LAYOUT_FILL_X|LAYOUT_FILL_Y| @@ -229,7 +229,7 @@ class GroupWindow < FXMainWindow FRAME_RAISED|FRAME_THICK|ARROW_LEFT|ARROW_TOOLBAR)) FXArrowButton.new(vframe2, nil, 0, (LAYOUT_FILL_X|LAYOUT_FILL_Y| FRAME_RAISED|FRAME_THICK|ARROW_RIGHT|ARROW_TOOLBAR)) - + gp_datatarget = FXDataTarget.new(0) gp = FXGroupBox.new(group3, "Group Box", LAYOUT_SIDE_TOP|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0) @@ -241,7 +241,7 @@ class GroupWindow < FXMainWindow JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP) FXRadioButton.new(gp, "Radio Stad Amsterdam", gp_datatarget, FXDataTarget::ID_OPTION+3, ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP) - + vv = FXGroupBox.new(group3, "Group Box", LAYOUT_SIDE_TOP|FRAME_GROOVE|LAYOUT_FILL_X, 0, 0, 0, 0) FXCheckButton.new(vv, "Hilversum 1", nil, 0, @@ -252,25 +252,25 @@ class GroupWindow < FXMainWindow JUSTIFY_LEFT|JUSTIFY_TOP|ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP) FXCheckButton.new(vv, "Radio Stad Amsterdam", nil, 0, ICON_BEFORE_TEXT|LAYOUT_SIDE_TOP) - + spinner = FXSpinner.new(group3, 20, nil, 0, SPIN_NORMAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP) spinner.range = 1..20 - + combobox = FXComboBox.new(group3, 5, nil, 0, COMBOBOX_INSERT_LAST|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP) combobox.appendItem("Very Wide Item") for i in 0...3 combobox.appendItem("%04d" % i) end - + treebox = FXTreeListBox.new(group3, nil, 0, FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP, 0, 0, 200, 0) - + topmost = treebox.appendItem(nil, "Top", folder_open, folder_closed) topmost2 = treebox.appendItem(nil, "Top2", folder_open, folder_closed) treebox.appendItem(topmost2, "First", doc, doc) - + treebox.appendItem(topmost, "First", doc, doc) treebox.appendItem(topmost, "Second", doc, doc) treebox.appendItem(topmost, "Third", doc, doc) @@ -289,7 +289,7 @@ class GroupWindow < FXMainWindow treebox.appendItem(twig, "Fourth-Fourth-First", doc, doc) treebox.appendItem(twig, "Fourth-Fourth-Second", doc, doc) treebox.appendItem(twig, "Fourth-Fourth-Third", doc, doc) - + FXLabel.new(group3, "H&it the hotkey", nil, LAYOUT_CENTER_X|JUSTIFY_CENTER_X|FRAME_RAISED) textfield1 = FXTextField.new(group3, 20, nil, 0, @@ -305,7 +305,7 @@ class GroupWindow < FXMainWindow TEXTFIELD_READONLY|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP) textfield4.text = "Grayed out" textfield4.disable - + realnumber = FXTextField.new(group3, 20, nil, 0, TEXTFIELD_REAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FIX_HEIGHT, 0, 0, 0, 30) @@ -314,12 +314,12 @@ class GroupWindow < FXMainWindow TEXTFIELD_INTEGER|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FIX_HEIGHT, 0, 0, 0, 30) intnumber.text = "1000" - + dial2 = FXDial.new(group3, nil, 0, (DIAL_CYCLIC|DIAL_HAS_NOTCH| DIAL_HORIZONTAL|LAYOUT_FILL_X|FRAME_RAISED|FRAME_THICK), 0, 0, 120, 0) FXScrollBar.new(group3, nil, 0, SCROLLBAR_HORIZONTAL|LAYOUT_FIX_HEIGHT|LAYOUT_FIX_WIDTH, 0, 0, 300, 20) - + pbar = FXProgressBar.new(group3, nil, 0, LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK|PROGRESSBAR_PERCENTAGE) pbar.progress = 48 @@ -334,7 +334,7 @@ class GroupWindow < FXMainWindow dial1.selector = FXWindow::ID_SETVALUE dial2.target = pbar dial2.selector = FXWindow::ID_SETVALUE - + # Currently selected choice from the radio buttons @choice = 0 @@ -379,13 +379,13 @@ end if __FILE__ == $0 # Make application application = FXApp.new("Groupbox", "FoxTest") - + # Make window GroupWindow.new(application) - + # Create app application.create - + # Run application.run end diff --git a/examples/header.rb b/examples/header.rb index 7f44807..18e58df 100755 --- a/examples/header.rb +++ b/examples/header.rb @@ -20,7 +20,7 @@ class HeaderWindow < FXMainWindow # Status bar, stretched along the bottom FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application", nil, @@ -40,9 +40,9 @@ class HeaderWindow < FXMainWindow FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 0, :vSpacing => 0) - + # Make header control - @header1 = FXHeader.new(contents, + @header1 = FXHeader.new(contents, :opts => HEADER_BUTTON|HEADER_RESIZE|FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X) @header1.connect(SEL_CHANGED) do |sender, sel, which| @lists[which].width = @header1.getItemSize(which) @@ -51,19 +51,19 @@ class HeaderWindow < FXMainWindow @lists[which].numItems.times do |i| @lists[which].selectItem(i) end - end + end # Document icon doc = nil File.open(File.join("icons", "minidoc.png"), "rb") do |f| doc = FXPNGIcon.new(getApp(), f.read) end - + @header1.appendItem("Name", doc, 150) @header1.appendItem("Type", nil, 140) @header1.appendItem("Layout Option", doc, 230) @header1.appendItem("Attributes", nil, 80) - + # Below header panes = FXHorizontalFrame.new(contents, FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y, diff --git a/examples/hello2.rb b/examples/hello2.rb index 3b0d87f..9dc0e8e 100755 --- a/examples/hello2.rb +++ b/examples/hello2.rb @@ -7,13 +7,13 @@ include Fox =begin This is the "Cadillac" version of the classic "Hello, World" example; it has not only an icon, but also a tooltip, and an accelerator. - + Executing an FXIcon's constructor will cause it to deserialize the pixel- data by associating a memory stream with the data array; the resulting icon object will contain a pixel-array, which will be converted to an off-screen X pixmap when the icons create() method is called. At that point, the temporary (client-side) pixel storage will be freed. -=end +=end # Construct the application object, with application name "Hello2" # and vendor key "FoxTest". These strings are primarily used for diff --git a/examples/iconlist.rb b/examples/iconlist.rb index 399ba95..ab262d9 100755 --- a/examples/iconlist.rb +++ b/examples/iconlist.rb @@ -3,7 +3,7 @@ require 'fox16' include Fox class IconListWindow < FXMainWindow - + # Load the named PNG icon from a file def loadIcon(filename) begin @@ -22,18 +22,18 @@ class IconListWindow < FXMainWindow def initialize(app) # Initialize base class first super(app, "Icon List Test", :opts => DECOR_ALL, :width => 800, :height => 600) - + # Menu bar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Status bar status = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # Main window interior group = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0) @@ -42,20 +42,20 @@ class IconListWindow < FXMainWindow FXLabel.new(group, "Icon List Widget", nil, LAYOUT_TOP|LAYOUT_FILL_X|FRAME_SUNKEN) subgroup = FXVerticalFrame.new(group, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0) - + # Icon list on the right iconlist = FXIconList.new(subgroup, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|ICONLIST_BIG_ICONS|ICONLIST_EXTENDEDSELECT) - + iconlist.appendHeader("Name", nil, 200) iconlist.appendHeader("Type", nil, 100) iconlist.appendHeader("Size", nil, 60) iconlist.appendHeader("Modified Date", nil, 150) iconlist.appendHeader("User", nil, 50) iconlist.appendHeader("Group", nil, 50) - + big_folder = loadIcon("bigfolder.png") mini_folder = loadIcon("minifolder.png") - + iconlist.appendItem("Really BIG and wide item to test\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder) 1.upto(400) do |i| iconlist.appendItem("Filename_#{i}\tDocument\t10000\tJune 13, 1999\tUser\tSoftware", big_folder, mini_folder) @@ -74,7 +74,7 @@ class IconListWindow < FXMainWindow # Let's see a tooltip FXToolTip.new(getApp()) end - + # Overrides base class version def create super diff --git a/examples/image.rb b/examples/image.rb index 4401036..df3cb3e 100755 --- a/examples/image.rb +++ b/examples/image.rb @@ -13,19 +13,19 @@ class ImageWindow < FXMainWindow # Create a color dialog for later use colordlg = FXColorDialog.new(self, "Color Dialog") - + contents = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0) - + # LEFT pane to contain the canvas canvasFrame = FXVerticalFrame.new(contents, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10) - - # Label above the canvas + + # Label above the canvas FXLabel.new(canvasFrame, "Canvas Frame", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X) - + # Horizontal divider line FXHorizontalSeparator.new(canvasFrame, SEPARATOR_GROOVE|LAYOUT_FILL_X) @@ -38,12 +38,12 @@ class ImageWindow < FXMainWindow buttonFrame = FXVerticalFrame.new(contents, :opts => FRAME_SUNKEN|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_LEFT, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10) - - # Label above the buttons + + # Label above the buttons FXLabel.new(buttonFrame, "Button Frame", nil, JUSTIFY_CENTER_X|LAYOUT_FILL_X); - + # Horizontal divider line FXHorizontalSeparator.new(buttonFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X) @@ -52,19 +52,19 @@ class ImageWindow < FXMainWindow :opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 100, :height => 30) @backwell.connect(SEL_COMMAND, method(:onCmdWell)) - + FXLabel.new(buttonFrame, "B&order\nColor well", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X) @borderwell = FXColorWell.new(buttonFrame, FXColor::Black, :opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 100, :height => 30) @borderwell.connect(SEL_COMMAND, method(:onCmdWell)) - + FXLabel.new(buttonFrame, "&Text\nColor well", :opts => JUSTIFY_CENTER_X|LAYOUT_FILL_X) @textwell = FXColorWell.new(buttonFrame, FXColor::Black, :opts => LAYOUT_CENTER_X|LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, :width => 100, :height => 30) @textwell.connect(SEL_COMMAND, method(:onCmdWell)) - + # Button to draw FXButton.new(buttonFrame, "&Colors...\tPop the color dialog", nil, colordlg, FXWindow::ID_SHOW, @@ -77,7 +77,7 @@ class ImageWindow < FXMainWindow :opts => FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT, :padLeft => 10, :padRight => 10, :padTop => 5, :padBottom => 5) saveBtn.connect(SEL_COMMAND, method(:onCmdRestore)) - + # Exit button FXButton.new(buttonFrame, "E&xit\tQuit ImageApp", nil, getApp(), FXApp::ID_QUIT, @@ -97,7 +97,7 @@ class ImageWindow < FXMainWindow IMAGE_OWNED|IMAGE_DITHER|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight) @blue = FXImage.new(getApp(), nil, IMAGE_OWNED|IMAGE_DITHER|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight) - + # Create image with nearest color instead of dithering @grey_nodither = FXImage.new(getApp(), nil, IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight) @@ -107,7 +107,7 @@ class ImageWindow < FXMainWindow IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight) @blue_nodither = FXImage.new(getApp(), nil, IMAGE_OWNED|IMAGE_NEAREST|IMAGE_SHMI|IMAGE_SHMP, imgWidth, imgHeight) - + # Result image @picture = FXBMPImage.new(getApp(), nil, IMAGE_SHMI|IMAGE_SHMP, 850, 600) @@ -137,7 +137,7 @@ class ImageWindow < FXMainWindow # Make font @font = FXFont.new(getApp(), "times", 36, FONTWEIGHT_BOLD) - + # Make a tip FXToolTip.new(getApp()) end @@ -171,7 +171,7 @@ class ImageWindow < FXMainWindow def onCanvasRepaint(sender, sel, event) if event.synthetic? dc = FXDCWindow.new(@picture) - + # Erase the canvas, color comes from well dc.foreground = @backwell.rgba @@ -201,18 +201,18 @@ class ImageWindow < FXMainWindow dc.foreground = @borderwell.rgba dc.drawRectangle(10, 10, 512, 50) dc.drawRectangle(10, 60, 512, 50) - + dc.drawRectangle(10, 130, 512, 50) dc.drawRectangle(10, 180, 512, 50) - + dc.drawRectangle(10, 250, 512, 50) dc.drawRectangle(10, 300, 512, 50) - + dc.drawRectangle(10, 370, 512, 50) dc.drawRectangle(10, 420, 512, 50) - + dc.drawRectangle(10, 490, 512, 50) - + # Draw text dc.font = @font dc.foreground = @textwell.rgba @@ -222,24 +222,24 @@ class ImageWindow < FXMainWindow dc.drawText(540, 420, "Blue") dc.drawText(540, 540, "Patterns") - # + # # Call end() to unlock the drawing surface and flush out # the pending drawing commands. # dc.end end - + # Now repaint the screen sdc = FXDCWindow.new(@canvas, event) - + # Clear whole thing sdc.foreground = @backwell.rgba sdc.fillRectangle(0, 0, @canvas.width, @canvas.height) - + # Paint image sdc.drawImage(@picture, 0, 0) - # + # # Call end() to unlock the drawing surface and flush out # the pending drawing commands. # diff --git a/examples/imageviewer.rb b/examples/imageviewer.rb index 27d2319..2d3f508 100755 --- a/examples/imageviewer.rb +++ b/examples/imageviewer.rb @@ -26,14 +26,14 @@ class ImageWindow < FXMainWindow # Make color dialog colordlg = FXColorDialog.new(self, "Color Dialog") - + # Make menu bar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|FRAME_RAISED) - + # Status bar statusbar = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # Docking sites topDockSite = FXDockSite.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) FXDockSite.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) @@ -43,7 +43,7 @@ class ImageWindow < FXMainWindow # Splitter splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| LAYOUT_FILL_Y| SPLITTER_TRACKING|SPLITTER_VERTICAL|SPLITTER_REVERSED)) - + # Tool bar is docked inside the top one for starters toolbarShell = FXToolBarShell.new(self) toolbar = FXToolBar.new(topDockSite, toolbarShell, @@ -53,19 +53,19 @@ class ImageWindow < FXMainWindow # File menu filemenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Edit Menu editmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Edit", nil, editmenu) - + # Manipulation Menu manipmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar,"&Manipulation", nil, manipmenu) - + # View menu viewmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&View", nil, viewmenu) - + # Help menu helpmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT) @@ -74,15 +74,15 @@ class ImageWindow < FXMainWindow imagebox = FXHorizontalFrame.new(splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0) - + # Make image widget @imageview = FXImageView.new(imagebox, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Sunken border for file list @filebox = FXHorizontalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0) - + # Make file list fileframe = FXHorizontalFrame.new(@filebox, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, @@ -93,7 +93,7 @@ class ImageWindow < FXMainWindow FXButton.new(@filebox, "\tUp one level\tGo up to higher directory.", uplevelicon, @filelist, FXFileList::ID_DIRECTORY_UP, BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_FILL_Y) - + # Toobar buttons: File manipulation openBtn = FXButton.new(toolbar, "&Open\tOpen Image\tOpen image file.", fileopenicon, :opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED) @@ -101,7 +101,7 @@ class ImageWindow < FXMainWindow saveBtn = FXButton.new(toolbar, "&Save\tSave Image\tSave image file.", filesaveicon, :opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED) saveBtn.connect(SEL_COMMAND, method(:onCmdSave)) - + # Toobar buttons: Editing FXButton.new(toolbar, "Cut\tCut", cuticon, :opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED) @@ -109,17 +109,17 @@ class ImageWindow < FXMainWindow :opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED) FXButton.new(toolbar, "Paste\tPaste", pasteicon, :opts => ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED) - + # Color FXButton.new(toolbar, "&Colors\tColors\tDisplay color dialog.", paletteicon, colordlg, FXWindow::ID_SHOW, ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_RIGHT) - + # File Menu entries FXMenuCommand.new(filemenu, "&Open...\tCtl-O\tOpen image file.", fileopenicon).connect(SEL_COMMAND, method(:onCmdOpen)) FXMenuCommand.new(filemenu, "&Save...\tCtl-S\tSave image file.", filesaveicon).connect(SEL_COMMAND, method(:onCmdSave)) FXMenuCommand.new(filemenu, "Dump", nil, getApp(), FXApp::ID_DUMP) - + # Recent file menu; this automatically hides if there are no files sep1 = FXMenuSeparator.new(filemenu) sep1.target = @mrufiles @@ -140,7 +140,7 @@ class ImageWindow < FXMainWindow sep2.target = @mrufiles sep2.selector = FXRecentFiles::ID_ANYFILES FXMenuCommand.new(filemenu, "&Quit\tCtl-Q").connect(SEL_COMMAND, method(:onCmdQuit)) - + # Edit Menu entries FXMenuCommand.new(editmenu, "&Undo\tCtl-Z\tUndo last change.") FXMenuCommand.new(editmenu, "&Redo\tCtl-R\tRedo last undo.") @@ -148,16 +148,16 @@ class ImageWindow < FXMainWindow FXMenuCommand.new(editmenu, "C&ut\tCtl-X\tCut selection to clipboard.", cuticon) FXMenuCommand.new(editmenu, "&Paste\tCtl-V\tPaste from clipboard.", pasteicon) FXMenuCommand.new(editmenu, "&Delete\t\tDelete selection.") - + # Manipulation Menu entries rotate90Cmd = FXMenuCommand.new(manipmenu, "Rotate 90\t\tRotate 90 degrees.") rotate90Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(90) } rotate90Cmd.connect(SEL_UPDATE, method(:onUpdImage)) - + rotate180Cmd = FXMenuCommand.new(manipmenu, "Rotate 180\t\tRotate 180 degrees.") rotate180Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(180) } rotate180Cmd.connect(SEL_UPDATE, method(:onUpdImage)) - + rotate270Cmd = FXMenuCommand.new(manipmenu, "Rotate -90\t\tRotate -90 degrees.") rotate270Cmd.connect(SEL_COMMAND) { @imageview.image.rotate(270) } rotate270Cmd.connect(SEL_UPDATE, method(:onUpdImage)) @@ -165,19 +165,19 @@ class ImageWindow < FXMainWindow mirrorHorCmd = FXMenuCommand.new(manipmenu, "Mirror Hor.\t\tMirror Horizontally.") mirrorHorCmd.connect(SEL_COMMAND) { @imageview.image.mirror(true, false) } mirrorHorCmd.connect(SEL_UPDATE, method(:onUpdImage)) - + mirrorVerCmd = FXMenuCommand.new(manipmenu, "Mirror Ver.\t\tMirror Vertically.") mirrorVerCmd.connect(SEL_COMMAND) { @imageview.image.mirror(false, true) } mirrorVerCmd.connect(SEL_UPDATE, method(:onUpdImage)) - + scaleCmd = FXMenuCommand.new(manipmenu, "Scale...\t\tScale image.") scaleCmd.connect(SEL_COMMAND, method(:onCmdScale)) scaleCmd.connect(SEL_UPDATE, method(:onUpdImage)) - + cropCmd = FXMenuCommand.new(manipmenu, "Crop...\t\tCrop image.") cropCmd.connect(SEL_COMMAND, method(:onCmdCrop)) cropCmd.connect(SEL_UPDATE, method(:onUpdImage)) - + # View Menu entries FXMenuCheck.new(viewmenu, "File list\t\tDisplay file list.", @filebox, FXWindow::ID_TOGGLESHOWN) @@ -202,18 +202,18 @@ class ImageWindow < FXMainWindow FXMenuSeparator.new(viewmenu) FXMenuCheck.new(viewmenu, "Toolbar\t\tDisplay toolbar.", toolbar, FXWindow::ID_TOGGLESHOWN) - + FXMenuCommand.new(viewmenu, "Float toolbar\t\tUndock the toolbar.", nil, toolbar, FXToolBar::ID_DOCK_FLOAT) FXMenuCommand.new(viewmenu, "Dock toolbar top\t\tDock the toolbar on the top.", nil, toolbar, FXToolBar::ID_DOCK_TOP) FXMenuCommand.new(viewmenu, "Dock toolbar left\t\tDock the toolbar on the left.", nil, toolbar, FXToolBar::ID_DOCK_LEFT) FXMenuCommand.new(viewmenu, "Dock toolbar right\t\tDock the toolbar on the right.", nil, toolbar, FXToolBar::ID_DOCK_RIGHT) FXMenuCommand.new(viewmenu, "Dock toolbar bottom\t\tDock the toolbar on the bottom.", nil, toolbar, FXToolBar::ID_DOCK_BOTTOM) - + FXMenuSeparator.new(viewmenu) - + FXMenuCheck.new(viewmenu, "Status line\t\tDisplay status line.", statusbar, FXWindow::ID_TOGGLESHOWN) - + # Help Menu entries FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) { FXMessageBox.new(self, "About Image Viewer", @@ -222,10 +222,10 @@ class ImageWindow < FXMainWindow "Copyright (C) 2000 Jeroen van der Zijp (jeroen@fox-toolkit.org)", nil, MBOX_OK|DECOR_TITLE|DECOR_BORDER).execute } - + # Make a tool tip FXToolTip.new(getApp(), TOOLTIP_NORMAL) - + # Recent files @mrufiles.connect(SEL_COMMAND) do |sender, sel, filename| @filename = filename @@ -475,7 +475,7 @@ class ImageWindow < FXMainWindow if !fs @filebox.hide end - + # Reposition window to specified x, y, w and h position(xx, yy, ww, hh) diff --git a/examples/inputs.rb b/examples/inputs.rb index 7657625..af64aa3 100755 --- a/examples/inputs.rb +++ b/examples/inputs.rb @@ -13,7 +13,7 @@ class InputHandlerWindow < FXMainWindow # Text area plus a button commands = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) FXLabel.new(commands, "Command:") - @cmdInput = FXTextField.new(commands, 30, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X) + @cmdInput = FXTextField.new(commands, 30, :opts => FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X) @cmdInput.connect(SEL_COMMAND, method(:onCmdText)) FXHorizontalSeparator.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) textFrame = FXVerticalFrame.new(self, @@ -39,7 +39,7 @@ class InputHandlerWindow < FXMainWindow @pipe = nil end end - + def onCmdText(sender, sel, ptr) # Stop previous command closePipe diff --git a/examples/mditest.rb b/examples/mditest.rb index 0899a78..e744176 100755 --- a/examples/mditest.rb +++ b/examples/mditest.rb @@ -51,17 +51,17 @@ class MDITestWindow < FXMainWindow # Create the font @font = FXFont.new(getApp(), "courier", 15, FONTWEIGHT_BOLD) - + # Menubar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Status bar FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # MDI Client @mdiclient = FXMDIClient.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Icon for MDI Child @mdiicon = nil File.open(File.join("icons", "penguin.png"), "rb") do |f| @@ -70,7 +70,7 @@ class MDITestWindow < FXMainWindow # Make MDI Menu @mdimenu = FXMDIMenu.new(self, @mdiclient) - + # MDI buttons in menu:- note the message ID's!!!!! # Normally, MDI commands are simply sensitized or desensitized; # Under the menubar, however, they're hidden if the MDI Client is @@ -83,13 +83,13 @@ class MDITestWindow < FXMainWindow FRAME_RAISED|LAYOUT_RIGHT) FXMDIMinimizeButton.new(menubar, @mdiclient, FXMDIClient::ID_MDI_MENUMINIMIZE, FRAME_RAISED|LAYOUT_RIGHT) - + # Create a few test windows to get started mdichild = createTestWindow(10, 10, 400, 300) @mdiclient.setActiveChild(mdichild) createTestWindow(20, 20, 400, 300) createTestWindow(30, 30, 400, 300) - + # File menu filemenu = FXMenuPane.new(self) newCmd = FXMenuCommand.new(filemenu, "&New\tCtl-N\tCreate new document.") @@ -97,7 +97,7 @@ class MDITestWindow < FXMainWindow FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit application.", nil, getApp(), FXApp::ID_QUIT, 0) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Window menu windowmenu = FXMenuPane.new(self) FXMenuCommand.new(windowmenu, "Tile &Horizontally", nil, @@ -117,7 +117,7 @@ class MDITestWindow < FXMainWindow FXMenuCommand.new(windowmenu, nil, nil, @mdiclient, FXMDIClient::ID_MDI_4) FXMenuCommand.new(windowmenu, "&Others...", nil, @mdiclient, FXMDIClient::ID_MDI_OVER_5) FXMenuTitle.new(menubar,"&Window", nil, windowmenu) - + # Help menu helpmenu = FXMenuPane.new(self) FXMenuCommand.new(helpmenu, "&About FOX...").connect(SEL_COMMAND) { @@ -168,13 +168,13 @@ end if __FILE__ == $0 # Make application application = FXApp.new("MDIApp", "FoxTest") - + # Make window MDITestWindow.new(application) - + # Create app application.create - + # Run application.run end diff --git a/examples/pig.rb b/examples/pig.rb index 2eadc9b..32c92b9 100755 --- a/examples/pig.rb +++ b/examples/pig.rb @@ -30,9 +30,9 @@ class PigBox < FXMainWindow def initialize(app) # Initialize base class super(app, "Pig") - + @text = FXDataTarget.new("") - + top = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) do |theFrame| theFrame.padLeft = 10 theFrame.padRight = 10 @@ -40,29 +40,29 @@ class PigBox < FXMainWindow theFrame.padTop = 10 theFrame.vSpacing = 20 end - + p = proc { showPig } - + FXLabel.new(top, 'Enter Text:') do |theLabel| theLabel.layoutHints = LAYOUT_FILL_X end - + FXTextField.new(top, 20, @text, FXDataTarget::ID_VALUE) do |theTextField| theTextField.layoutHints = LAYOUT_FILL_X theTextField.setFocus() end - + FXButton.new(top, 'Pig It') do |pigButton| pigButton.connect(SEL_COMMAND, p) pigButton.layoutHints = LAYOUT_CENTER_X end - + FXButton.new(top, 'Exit') do |exitButton| exitButton.connect(SEL_COMMAND) { exit } exitButton.layoutHints = LAYOUT_CENTER_X end end - + def create super show(PLACEMENT_SCREEN) diff --git a/examples/raabrowser.rb b/examples/raabrowser.rb index ec3ba2a..4ba7888 100755 --- a/examples/raabrowser.rb +++ b/examples/raabrowser.rb @@ -5,7 +5,7 @@ require 'soap/wsdlDriver' include Fox class RAABrowserWindow < FXMainWindow - + def initialize(app) # Initialize base class super(app, "Ruby Application Archive", :opts => DECOR_ALL, :width => 600, :height => 600) @@ -60,7 +60,7 @@ class RAABrowserWindow < FXMainWindow @download = FXDataTarget.new("") @license = FXDataTarget.new("") @description = FXDataTarget.new("") - + # Information appears on the right-hand side infoFrame = FXVerticalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT|FRAME_SUNKEN|FRAME_THICK) @@ -88,10 +88,10 @@ class RAABrowserWindow < FXMainWindow descriptionBox = FXGroupBox.new(infoFrame, "Description", GROUPBOX_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE) descriptionFrame = FXHorizontalFrame.new(descriptionBox, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) FXText.new(descriptionFrame, @description, FXDataTarget::ID_VALUE, TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Initialize the service @raa = SOAP::WSDLDriverFactory.new("http://www2.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/").create_rpc_driver - + # Set up the product tree list @productTree = @raa.tree_by_category @productTree.keys.sort.each do |sectionName| @@ -106,7 +106,7 @@ class RAABrowserWindow < FXMainWindow end end end - + def create super @treeList.parent.parent.setWidth(@treeList.font.getTextWidth('M'*24)) diff --git a/examples/ratio.rb b/examples/ratio.rb index 6bca0b3..5fdebd4 100644 --- a/examples/ratio.rb +++ b/examples/ratio.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# ratio.rb +# ratio.rb # Translated from FOX C++ version to Ruby (Dec 2004) by Brett Hallett. # Demonstrates the use of the FXSpring method to retain size ratios between widgets when form is resized. # @@ -10,7 +10,7 @@ require 'fox16/colors' include Fox class MainWindow < FXMainWindow - + def initialize(app) # Initialize base class first super(app, 'Ratio', :opts => DECOR_ALL, @@ -58,21 +58,21 @@ class MainWindow < FXMainWindow end def create - super - show(PLACEMENT_SCREEN) - end # create + super + show(PLACEMENT_SCREEN) + end # create -end # class MainWindow +end # class MainWindow if __FILE__ == $0 # Construct an application FXApp.new('Smithy', 'Max') do |theApp| # Construct the main window - MainWindow.new(theApp) + MainWindow.new(theApp) - # Create and show the application windows - theApp.create + # Create and show the application windows + theApp.create # Run the application theApp.run diff --git a/examples/rmagick.rb b/examples/rmagick.rb index 7632d2a..5bde55e 100755 --- a/examples/rmagick.rb +++ b/examples/rmagick.rb @@ -4,13 +4,13 @@ require 'RMagick' include Fox class RMagickExample < FXMainWindow - + def initialize(app) super(app, "RMagick Example", :width => 800, :height => 600) - + # Construct an ImageList dippy = Magick::ImageList.new(File.join("icons", "dippy.png")) - + # Manipulate the image text = Magick::Draw.new text.annotate(dippy, 0, 0, 0, 60, "Dippy Duck") do @@ -20,19 +20,19 @@ class RMagickExample < FXMainWindow self.fill = '#0000A9' self.font_weight = Magick::BoldWeight end - + # Extract image data and use it to construct FXPNGImage dippy_image = FXPNGImage.new(app, dippy.to_blob) - + # Display it inside an FXImageFrame FXImageFrame.new(self, dippy_image, :opts => LAYOUT_FILL) end - + def create super show(PLACEMENT_SCREEN) end - + end if __FILE__ == $0 @@ -41,4 +41,4 @@ if __FILE__ == $0 app.create app.run end -end \ No newline at end of file +end diff --git a/examples/rulerview.rb b/examples/rulerview.rb index 187d674..d22ec22 100644 --- a/examples/rulerview.rb +++ b/examples/rulerview.rb @@ -6,10 +6,10 @@ class RulerViewExample < FXMainWindow def initialize(app) # Initialize base class super(app, "Ruler View", :opts => DECOR_ALL, :width => 400, :height => 400) - + # Construct a ruler view inside ruler_view = FXRulerView.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # And put some content inside that contents = FXText.new(ruler_view, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) contents.text = "This is a test." diff --git a/examples/scintilla-test.rb b/examples/scintilla-test.rb index 8e13b4a..d5a5812 100755 --- a/examples/scintilla-test.rb +++ b/examples/scintilla-test.rb @@ -20,7 +20,7 @@ class ScintillaTest < FXMainWindow # Menubar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Status bar FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) @@ -29,7 +29,7 @@ class ScintillaTest < FXMainWindow sunkenFrame = FXHorizontalFrame.new(self, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) @scintilla = FXScintilla.new(sunkenFrame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Open\tCtl-O\tOpen...").connect(SEL_COMMAND) { @@ -43,7 +43,7 @@ class ScintillaTest < FXMainWindow FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit application.", nil, getApp(), FXApp::ID_QUIT, 0) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Help menu helpmenu = FXMenuPane.new(self) FXMenuCommand.new(helpmenu, "&About FXRuby...").connect(SEL_COMMAND) { @@ -69,13 +69,13 @@ end if __FILE__ == $0 # Make application application = FXApp.new("ScintillaTest", "FoxTest") - + # Make window ScintillaTest.new(application) - + # Create app application.create - + # Run application.run end diff --git a/examples/scribble-orig.rb b/examples/scribble-orig.rb index c695bc7..8e4c2f3 100755 --- a/examples/scribble-orig.rb +++ b/examples/scribble-orig.rb @@ -172,13 +172,13 @@ end def run # Construct the application object application = FXApp.new('Scribble', 'FoxTest') - + # Construct the main window scribble = ScribbleWindow.new(application) - + # Create the application application.create - + # Run the application application.run end diff --git a/examples/scribble.rb b/examples/scribble.rb index 343e605..8b693a1 100755 --- a/examples/scribble.rb +++ b/examples/scribble.rb @@ -150,13 +150,13 @@ end if __FILE__ == $0 # Construct the application object application = FXApp.new('Scribble', 'FoxTest') - + # Construct the main window scribble = ScribbleWindow.new(application) - + # Create the application application.create - + # Run the application application.run end diff --git a/examples/shutter.rb b/examples/shutter.rb index aefbac4..8386c7f 100755 --- a/examples/shutter.rb +++ b/examples/shutter.rb @@ -46,7 +46,7 @@ class ShutterWindow < FXMainWindow # Menubar along the top menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) @@ -88,7 +88,7 @@ class ShutterWindow < FXMainWindow @shutter = FXShutter.new(splitter, :opts => FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0, :hSpacing => 0, :vSpacing => 0) - + fatBot = loadIcon("FatBot.ico") angryGuy = loadIcon("AngryGuyInBunnySuit.ico") sawBlade = loadIcon("SawBlade.ico") @@ -96,7 +96,7 @@ class ShutterWindow < FXMainWindow leGoon = loadIcon("LeGoon.ico") flippedySwitch = loadIcon("FlippedySwitch.ico") net = loadIcon("Net.ico") - + shutterItem = ShutterItem.new(@shutter, "Lookout Shortcuts", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "Lookout Today", fatBot).connect(SEL_COMMAND) { @switcher.current = 0 } ShutterButton.new(shutterItem.content, "Inbox", angryGuy).connect(SEL_COMMAND) { @switcher.current = 1 } @@ -105,19 +105,19 @@ class ShutterWindow < FXMainWindow ShutterButton.new(shutterItem.content, "Tasks", leGoon).connect(SEL_COMMAND) { @switcher.current = 4 } ShutterButton.new(shutterItem.content, "Notes", flippedySwitch).connect(SEL_COMMAND) { @switcher.current = 5 } ShutterButton.new(shutterItem.content, "Deleted Items", net).connect(SEL_COMMAND) { @switcher.current = 6 } - + shutterItem = ShutterItem.new(@shutter, "My Shortcuts") ShutterButton.new(shutterItem.content, "Drafts", fatBot).connect(SEL_COMMAND) { @switcher.current = 7 } ShutterButton.new(shutterItem.content, "Outbox", angryGuy).connect(SEL_COMMAND) { @switcher.current = 8 } ShutterButton.new(shutterItem.content, "Sent Items", sawBlade).connect(SEL_COMMAND) { @switcher.current = 9 } ShutterButton.new(shutterItem.content, "Journal", redMacOS).connect(SEL_COMMAND) { @switcher.current = 10 } ShutterButton.new(shutterItem.content, "Lookout Update", flippedySwitch).connect(SEL_COMMAND) { @switcher.current = 11 } - + shutterItem = ShutterItem.new(@shutter, "Other Shortcuts") ShutterButton.new(shutterItem.content, "My Computer", angryGuy).connect(SEL_COMMAND) { @switcher.current = 12 } ShutterButton.new(shutterItem.content, "My Documents", net).connect(SEL_COMMAND) { @switcher.current = 13 } ShutterButton.new(shutterItem.content, "Favorites", leGoon).connect(SEL_COMMAND) { @switcher.current = 14 } - + # Right pane is a switcher # For a real application, each panel in the switcher would have real, working contents... @switcher = FXSwitcher.new(splitter, diff --git a/examples/splitter.rb b/examples/splitter.rb index f067e52..9ec6cc5 100755 --- a/examples/splitter.rb +++ b/examples/splitter.rb @@ -32,16 +32,16 @@ class SplitterWindow < FXMainWindow # Menu bar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Status bar status = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Main window interior @splitter = FXSplitter.new(self, (LAYOUT_SIDE_TOP|LAYOUT_FILL_X| LAYOUT_FILL_Y|SPLITTER_REVERSED|SPLITTER_TRACKING)) @@ -51,7 +51,7 @@ class SplitterWindow < FXMainWindow FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) group3 = FXVerticalFrame.new(@splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Mode menu modemenu = FXMenuPane.new(self) FXMenuCommand.new(modemenu, "Reverse\t\tReverse split order").connect(SEL_COMMAND) { @@ -72,13 +72,13 @@ class SplitterWindow < FXMainWindow FXMenuCheck.new(modemenu, "Toggle pane 1", group1, FXWindow::ID_TOGGLESHOWN) FXMenuCheck.new(modemenu, "Toggle pane 2", group2, FXWindow::ID_TOGGLESHOWN) FXMenuCheck.new(modemenu, "Toggle pane 3", group3, FXWindow::ID_TOGGLESHOWN) - + FXMenuTitle.new(menubar, "&Mode", nil, modemenu) - + tree = FXTreeList.new(group1, :opts => (LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_TOP|LAYOUT_RIGHT|TREELIST_SHOWS_LINES| TREELIST_SHOWS_BOXES|TREELIST_ROOT_BOXES|TREELIST_EXTENDEDSELECT)) - + topmost = tree.appendItem(nil, "Top", folder_open, folder_closed) tree.expandTree(topmost) tree.appendItem(topmost, "First", doc, doc) @@ -119,11 +119,11 @@ class SplitterWindow < FXMainWindow tree.appendItem(branch, "Seventh-Second", doc, doc) tree.appendItem(branch, "Seventh-Third", doc, doc) tree.appendItem(topmost, "Eighth", doc, doc) - + FXLabel.new(group2, "Matrix", nil, LAYOUT_CENTER_X) FXHorizontalSeparator.new(group2, SEPARATOR_GROOVE|LAYOUT_FILL_X) matrix = FXMatrix.new(group2, 2, MATRIX_BY_COLUMNS|LAYOUT_FILL_X) - + FXLabel.new(matrix, "Alpha:", nil, JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_CENTER_Y) FXTextField.new(matrix, 2, nil, 0, (FRAME_SUNKEN|FRAME_THICK| @@ -136,16 +136,16 @@ class SplitterWindow < FXMainWindow JUSTIFY_RIGHT|LAYOUT_FILL_X|LAYOUT_CENTER_Y) FXTextField.new(matrix, 2, nil, 0, (FRAME_SUNKEN|FRAME_THICK| LAYOUT_FILL_X|LAYOUT_CENTER_Y|LAYOUT_FILL_COLUMN)) - + continuousCheck = FXCheckButton.new(group2, "Continuous Tracking\tSplitter continuously tracks split changes") continuousCheck.connect(SEL_COMMAND, method(:onCmdTracking)) continuousCheck.connect(SEL_UPDATE, method(:onUpdTracking)) - + FXLabel.new(group3, "Quite a Stretch", nil, LAYOUT_CENTER_X) FXHorizontalSeparator.new(group3, SEPARATOR_GROOVE|LAYOUT_FILL_X) mat = FXMatrix.new(group3, 3, LAYOUT_FILL_X|LAYOUT_FILL_Y) - + FXButton.new(mat, "One\nStretch the row\nStretch in Y\nStretch in X\t" + "The possibilities are endless..", nil, nil, 0, FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW) @@ -154,7 +154,7 @@ class SplitterWindow < FXMainWindow FXButton.new(mat, "Three\nStretch the row\nStretch in Y\nStretch in X\t" + "The possibilities are endless..", nil, nil, 0, FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_ROW) - + FXButton.new(mat, "Four\nStretch the column\nStretch the row\n" + "Stretch in Y\nStretch in X\tThe possibilities are endless..", nil, nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y| @@ -166,7 +166,7 @@ class SplitterWindow < FXMainWindow "Stretch in Y\nStretch in X\tThe possibilities are endless..", nil, nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y| LAYOUT_FILL_COLUMN|LAYOUT_FILL_ROW)) - + FXButton.new(mat, "Seven\nStretch the column\nStretch the row\n" + "Center in Y\nCenter in X\tThe possibilities are endless..", nil, nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_CENTER_Y|LAYOUT_CENTER_X| @@ -178,7 +178,7 @@ class SplitterWindow < FXMainWindow "Stretch in Y\tThe possibilities are endless..", nil, nil, 0, (FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_FILL_Y| LAYOUT_FILL_ROW|LAYOUT_FILL_COLUMN)) - + # Make a tool tip FXToolTip.new(getApp(), 0) end diff --git a/examples/styledtext.rb b/examples/styledtext.rb index a0808b8..27e0488 100755 --- a/examples/styledtext.rb +++ b/examples/styledtext.rb @@ -11,7 +11,7 @@ establish justice, insure domestic tranquility, provide for the common defense, promote the general welfare, and secure the blessings of liberty to ourselves and our posterity, do ordain and establish this Constitution for the United States of America. EOM - + class StyledTextWindow < FXMainWindow def initialize(app) # Call the base class initialize() first @@ -21,24 +21,24 @@ class StyledTextWindow < FXMainWindow # Menu bar, along the top menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Button bar along the bottom buttons = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X) - + # The frame takes up the rest of the space textframe = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_SUNKEN|FRAME_THICK) - + # File menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application.", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Text window text = FXText.new(textframe, nil, 0, TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Construct some hilite styles hs1 = FXHiliteStyle.from_text(text) hs1.normalForeColor = FXColor::Red @@ -49,16 +49,16 @@ class StyledTextWindow < FXMainWindow hs2.normalForeColor = FXColor::Blue hs2.normalBackColor = FXColor::Yellow hs2.style = FXText::STYLE_UNDERLINE - + # Enable the style buffer for this text widget text.styled = true - + # Set the styles text.hiliteStyles = [hs1, hs2] - + # Set the text text.text = PREAMBLE.gsub!(/\n/, "") - + # Change the style for this phrase to hs1 [index 1] phrase = "a more perfect union" text.changeStyle(PREAMBLE.index(phrase), phrase.length, 1) diff --git a/examples/tabbook.rb b/examples/tabbook.rb index ea6bbe3..0658316 100755 --- a/examples/tabbook.rb +++ b/examples/tabbook.rb @@ -23,10 +23,10 @@ class TabBookWindow < FXMainWindow # Contents contents = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDTH) - + # Switcher @tabbook = FXTabBook.new(contents,:opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT) - + # First item is a list @tab1 = FXTabItem.new(@tabbook, "&Simple List", nil) listframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED) @@ -35,18 +35,18 @@ class TabBookWindow < FXMainWindow simplelist.appendItem("Second Entry") simplelist.appendItem("Third Entry") simplelist.appendItem("Fourth Entry") - + # Second item is a file list @tab2 = FXTabItem.new(@tabbook, "F&ile List", nil) @fileframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED) filelist = FXFileList.new(@fileframe, :opts => ICONLIST_EXTENDEDSELECT|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # Third item is a directory list @tab3 = FXTabItem.new(@tabbook, "T&ree List", nil) dirframe = FXHorizontalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED) dirlist = FXDirList.new(dirframe, :opts => DIRLIST_SHOWFILES|TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + # File Menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Simple List", nil, @@ -58,7 +58,7 @@ class TabBookWindow < FXMainWindow FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Tab side tabmenu = FXMenuPane.new(self) hideShow = FXMenuCheck.new(tabmenu, "Hide/Show Tab 2") @@ -74,9 +74,9 @@ class TabBookWindow < FXMainWindow @fileframe.recalc } hideShow.connect(SEL_UPDATE) { hideShow.check = @tab2.shown? } - + FXMenuSeparator.new(tabmenu) - + topTabsCmd = FXMenuRadio.new(tabmenu, "&Top Tabs") topTabsCmd.connect(SEL_COMMAND) do @tabbook.tabStyle = TABBOOK_TOPTABS @@ -87,7 +87,7 @@ class TabBookWindow < FXMainWindow topTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr| sender.check = (@tabbook.tabStyle == TABBOOK_TOPTABS) end - + bottomTabsCmd = FXMenuRadio.new(tabmenu, "&Bottom Tabs") bottomTabsCmd.connect(SEL_COMMAND) do @tabbook.tabStyle = TABBOOK_BOTTOMTABS @@ -98,7 +98,7 @@ class TabBookWindow < FXMainWindow bottomTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr| sender.check = (@tabbook.tabStyle == TABBOOK_BOTTOMTABS) end - + leftTabsCmd = FXMenuRadio.new(tabmenu, "&Left Tabs") leftTabsCmd.connect(SEL_COMMAND) do @tabbook.tabStyle = TABBOOK_LEFTTABS @@ -109,7 +109,7 @@ class TabBookWindow < FXMainWindow leftTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr| sender.check = (@tabbook.tabStyle == TABBOOK_LEFTTABS) end - + rightTabsCmd = FXMenuRadio.new(tabmenu, "&Right Tabs") rightTabsCmd.connect(SEL_COMMAND) do @tabbook.tabStyle = TABBOOK_RIGHTTABS @@ -120,9 +120,9 @@ class TabBookWindow < FXMainWindow rightTabsCmd.connect(SEL_UPDATE) do |sender, sel, ptr| sender.check = (@tabbook.tabStyle == TABBOOK_RIGHTTABS) end - + FXMenuSeparator.new(tabmenu) - + addTabCmd = FXMenuCommand.new(tabmenu, "Add Tab") addTabCmd.connect(SEL_COMMAND) do FXTabItem.new(@tabbook, "New Tab") @@ -132,7 +132,7 @@ class TabBookWindow < FXMainWindow @tabbook.create # realize widgets @tabbook.recalc # mark parent layout dirty end - + removeTabCmd = FXMenuCommand.new(tabmenu, "Remove Last Tab") removeTabCmd.connect(SEL_COMMAND) do numTabs = @tabbook.numChildren/2 diff --git a/examples/table.rb b/examples/table.rb index c98f1da..914a7b7 100755 --- a/examples/table.rb +++ b/examples/table.rb @@ -13,30 +13,30 @@ class TableWindow < FXMainWindow # Tooltip tooltip = FXToolTip.new(getApp()) - + # Icon used in some cells penguinicon = nil File.open(File.join('icons', 'penguin.png'), 'rb') do |f| penguinicon = FXPNGIcon.new(getApp(), f.read, 0, IMAGE_ALPHAGUESS) end - + # Menubar menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) - + # Separator FXHorizontalSeparator.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE) - + # Contents contents = FXVerticalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y) - + frame = FXVerticalFrame.new(contents, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0) - + # Table @table = FXTable.new(frame, :opts => TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 2) - + @table.visibleRows = 20 @table.visibleColumns = 8 @@ -47,7 +47,7 @@ class TableWindow < FXMainWindow @table.setCellColor(0, 1, FXRGB(255, 240, 240)) @table.setCellColor(1, 0, FXRGB(240, 255, 240)) @table.setCellColor(1, 1, FXRGB(240, 240, 255)) - + # Initialize the scrollable part of the table (0..49).each do |r| (0..13).each do |c| @@ -57,10 +57,10 @@ class TableWindow < FXMainWindow # Initialize column headers (0...12).each { |c| @table.setColumnText(c, Date::MONTHNAMES[c+1]) } - + # Initialize row headers (0...50).each { |r| @table.setRowText(r, "Row#{r}") } - + @table.setItemText(10, 10, "This is multi-\nline text") @table.setItemJustify(10, 10, FXTableItem::CENTER_X|FXTableItem::CENTER_Y) @@ -69,31 +69,31 @@ class TableWindow < FXMainWindow @table.setItem(5, 7, @table.getItem(5, 5)) @table.setItemText(5, 5, "Spanning Item") @table.setItemJustify(5, 5, FXTableItem::CENTER_X|FXTableItem::CENTER_Y) - + @table.getItem( 9, 9).borders = FXTableItem::TBORDER|FXTableItem::LBORDER|FXTableItem::BBORDER @table.getItem( 9, 10).borders = FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER - + @table.getItem(40, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER @table.getItem(49, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER @table.getItem( 5, 0).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER - + @table.getItem(6, 6).icon = penguinicon @table.getItem(6, 6).iconPosition = FXTableItem::ABOVE # icon above the text @table.getItem(6, 6).justify = FXTableItem::CENTER_X|FXTableItem::CENTER_Y - + @table.getItem(3, 4).stipple = STIPPLE_CROSSDIAG - + # File Menu filemenu = FXMenuPane.new(self) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Options Menu tablemenu = FXMenuPane.new(self) FXMenuCheck.new(tablemenu, "Horizontal grid", @table, FXTable::ID_HORZ_GRID) FXMenuCheck.new(tablemenu, "Vertical grid", @table, FXTable::ID_VERT_GRID) FXMenuTitle.new(menubar, "&Options", nil, tablemenu) - + # Manipulations Menu manipmenu = FXMenuPane.new(self) FXMenuCommand.new(manipmenu, "Delete Column\tCtl-C", nil, @@ -106,7 +106,7 @@ class TableWindow < FXMainWindow @table, FXTable::ID_INSERT_ROW) FXMenuCommand.new(manipmenu, "Resize table...").connect(SEL_COMMAND, method(:onCmdResizeTable)) FXMenuTitle.new(menubar, "&Manipulations", nil, manipmenu) - + # Selection Menu selectmenu = FXMenuPane.new(self) FXMenuCommand.new(selectmenu, "Select All", nil, @table, FXTable::ID_SELECT_ALL) @@ -170,13 +170,13 @@ end if __FILE__ == $0 # Make application application = FXApp.new("TableApp", "FoxTest") - + # Make window TableWindow.new(application) - + # Create app application.create - + # Run application.run end diff --git a/examples/textedit/helpwindow.rb b/examples/textedit/helpwindow.rb index 81fbe02..006b780 100755 --- a/examples/textedit/helpwindow.rb +++ b/examples/textedit/helpwindow.rb @@ -217,7 +217,7 @@ Changing Font. You can change font by invoking the Font Selection Dialog from the Font menu. The Font Dialog displays four list boxes showing the font Family, Weight, Style, -and Size of each font. +and Size of each font. You can narrow down the number of fonts displayed by selecting a specific character set, setwidth, pitch, and whether or not scalable fonts are to be listed only. The All Fonts checkbutton causes all fonts to be listed. Use this feature if you @@ -231,7 +231,7 @@ The four color wells on the status line determine the color of the selection background, selection foreground, and normal background and foreground respectively. Double clicking on a colorwell will bring up the Color Selection Dialog. -The Color Selection Dialog sypports several ways to select a color: +The Color Selection Dialog sypports several ways to select a color: 1\tBy means of Red, Green, and Blue mixing. 2\tBy means of Hue, Saturation, Value mixing. @@ -246,8 +246,8 @@ to hold your own custom color collections. Configuration Issues. The File Browser keeps an association list in the registry database to associate -a particular file extension to an icon and other descriptive information. -The following is an example of how this could be filled in: +a particular file extension to an icon and other descriptive information. +The following is an example of how this could be filled in: [SETTINGS] iconpath = /usr/share/icons:/home/jeroen/icons @@ -269,7 +269,7 @@ class HelpWindow < FXDialogBox def initialize(owner) super(owner, "Help on TextEdit", DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, 0, 0, 0, 0, 6, 6, 6, 6, 4, 4) - + # Bottom part closebox = FXHorizontalFrame.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH) @@ -291,7 +291,7 @@ class HelpWindow < FXDialogBox TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y) helptext.visibleRows = 50 helptext.visibleColumns = 60 - + # Fill with help helptext.text = HELP helptext.tabColumns = 35 diff --git a/examples/textedit/textedit.rb b/examples/textedit/textedit.rb index ed71d5b..55f0713 100755 --- a/examples/textedit/textedit.rb +++ b/examples/textedit/textedit.rb @@ -101,7 +101,7 @@ class TextWindow < FXMainWindow FXMAPFUNC(SEL_CLOSE, ID_TITLE, :onCmdQuit) FXMAPFUNC(SEL_COMMAND, ID_PRINT, :onCmdPrint) FXMAPFUNC(SEL_COMMAND, ID_TREELIST, :onCmdTreeList) - + FXMAPFUNC(SEL_COMMAND, ID_TEXT_BACK, :onCmdTextBackColor) FXMAPFUNC(SEL_CHANGED, ID_TEXT_BACK, :onCmdTextBackColor) FXMAPFUNC(SEL_UPDATE, ID_TEXT_BACK, :onUpdTextBackColor) @@ -117,7 +117,7 @@ class TextWindow < FXMainWindow FXMAPFUNC(SEL_COMMAND, ID_TEXT_CURSOR, :onCmdTextCursorColor) FXMAPFUNC(SEL_CHANGED, ID_TEXT_CURSOR, :onCmdTextCursorColor) FXMAPFUNC(SEL_UPDATE, ID_TEXT_CURSOR, :onUpdTextCursorColor) - + FXMAPFUNC(SEL_COMMAND, ID_DIR_BACK, :onCmdDirBackColor) FXMAPFUNC(SEL_CHANGED, ID_DIR_BACK, :onCmdDirBackColor) FXMAPFUNC(SEL_UPDATE, ID_DIR_BACK, :onUpdDirBackColor) @@ -133,7 +133,7 @@ class TextWindow < FXMainWindow FXMAPFUNC(SEL_COMMAND, ID_DIR_LINES, :onCmdDirLineColor) FXMAPFUNC(SEL_CHANGED, ID_DIR_LINES, :onCmdDirLineColor) FXMAPFUNC(SEL_UPDATE, ID_DIR_LINES, :onUpdDirLineColor) - + FXMAPFUNC(SEL_COMMAND, ID_RECENTFILE, :onCmdRecentFile) FXMAPFUNC(SEL_UPDATE, ID_TOGGLE_WRAP, :onUpdWrap) FXMAPFUNC(SEL_COMMAND, ID_TOGGLE_WRAP, :onCmdWrap) @@ -181,7 +181,7 @@ class TextWindow < FXMainWindow # Default font @font = nil - + # Make some icons @bigicon = loadIcon("big.png") @smallicon = loadIcon("small.png") @@ -203,71 +203,71 @@ class TextWindow < FXMainWindow # Application icons setIcon(@bigicon) setMiniIcon(@smallicon) - + # Make main window; set myself as the target setTarget(self) setSelector(ID_TITLE) - + # Help window @helpwindow = HelpWindow.new(self) - + # Make menu bar dragshell1 = FXToolBarShell.new(self, FRAME_RAISED|FRAME_THICK) menubar = FXMenuBar.new(self, dragshell1, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) FXToolBarGrip.new(menubar, menubar, FXMenuBar::ID_TOOLBARGRIP, TOOLBARGRIP_DOUBLE) - + # Tool bar dragshell2 = FXToolBarShell.new(self, FRAME_RAISED|FRAME_THICK) toolbar = FXToolBar.new(self, dragshell2, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH|PACK_UNIFORM_HEIGHT) FXToolBarGrip.new(toolbar, toolbar, FXToolBar::ID_TOOLBARGRIP, TOOLBARGRIP_DOUBLE) - + # Status bar statusbar = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) - + # Info about the editor FXButton.new(statusbar, "\tThe FOX Text Editor\tAbout the FOX Text Editor.", @smallicon, self, ID_ABOUT, LAYOUT_FILL_Y|LAYOUT_RIGHT) - + # File menu filemenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&File", nil, filemenu) - + # Edit Menu editmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Edit", nil, editmenu) - + # Goto Menu gotomenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Goto", nil, gotomenu) - + # Search Menu searchmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Search", nil, searchmenu) - + # Options Menu optionmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Options", nil, optionmenu) - + # View menu viewmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&View", nil, viewmenu) - + # Help menu helpmenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT) - + # Splitter splitter = FXSplitter.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|SPLITTER_TRACKING) - + # Sunken border for tree @treebox = FXVerticalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0) - + # Make tree treeframe = FXHorizontalFrame.new(@treebox, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, @@ -280,15 +280,15 @@ class TextWindow < FXMainWindow @filter = FXComboBox.new(filterframe, 25, self, ID_FILEFILTER, COMBOBOX_STATIC|LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK) @filter.numVisible = 4 - + # Sunken border for text widget textbox = FXHorizontalFrame.new(splitter, FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0,0,0,0, 0,0,0,0) - + # Make editor window @editor = FXText.new(textbox, self, ID_TEXT, LAYOUT_FILL_X|LAYOUT_FILL_Y) @editor.hiliteMatchTime = 300000 - + # Show readonly state in status bar readonly = FXLabel.new(statusbar, nil, nil, FRAME_SUNKEN|LAYOUT_RIGHT|LAYOUT_CENTER_Y) readonly.padLeft = 2 @@ -297,7 +297,7 @@ class TextWindow < FXMainWindow readonly.padBottom = 1 readonly.setTarget(self) readonly.setSelector(ID_READONLY) - + # Show insert mode in status bar overstrike = FXLabel.new(statusbar, nil, nil, FRAME_SUNKEN|LAYOUT_RIGHT|LAYOUT_CENTER_Y) overstrike.padLeft = 2 @@ -306,34 +306,34 @@ class TextWindow < FXMainWindow overstrike.padBottom = 1 overstrike.setTarget(self) overstrike.setSelector(ID_OVERSTRIKE) - + # Show size of text in status bar numchars = FXTextField.new(statusbar, 6, self, ID_NUMCHARS, FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y, 0, 0, 0, 0, 2, 2, 1, 1) numchars.backColor = statusbar.backColor - + # Caption before number FXLabel.new(statusbar, " Size:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y) - + # Show column number in status bar columnno = FXTextField.new(statusbar, 4, @editor, FXText::ID_CURSOR_COLUMN, FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y, 0, 0, 0, 0, 2, 2, 1, 1) columnno.backColor = statusbar.backColor - + # Caption before number FXLabel.new(statusbar, " Col:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y) - + # Show line number in status bar rowno = FXTextField.new(statusbar, 4, @editor, FXText::ID_CURSOR_ROW, FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y, 0, 0, 0, 0, 2, 2, 1, 1) rowno.backColor = statusbar.backColor - + # Caption before number FXLabel.new(statusbar, " Line:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y) - + # Toobar buttons: File manipulation FXButton.new(toolbar, "New\tNew\tCreate new document.", @newicon, self, ID_NEW, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED| @@ -347,14 +347,14 @@ class TextWindow < FXMainWindow FXButton.new(toolbar, "Save as\tSave As\tSave document to another file.", @saveasicon, self, ID_SAVEAS, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR| FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)) - + # Toobar buttons: Print FXFrame.new(toolbar, LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5) FXButton.new(toolbar, "Print\tPrint\tPrint document.", @printicon, self, ID_PRINT, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED| LAYOUT_TOP|LAYOUT_LEFT)) - + # Toobar buttons: Editing FXFrame.new(toolbar, LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5) @@ -373,18 +373,18 @@ class TextWindow < FXMainWindow FXButton.new(toolbar, "Redo\tRedo\tRedo last undo.", @redoicon, @undolist, FXUndoList::ID_REDO, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR| FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT)) - + # Color FXFrame.new(toolbar, LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5) FXButton.new(toolbar, "Fonts\tFonts\tDisplay font dialog.", @fontsicon, self, ID_FONT, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED| LAYOUT_TOP|LAYOUT_LEFT)) - + FXButton.new(toolbar, "Help\tHelp on editor\tDisplay help information.", @helpicon, self, ID_SHOW_HELP, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR| FRAME_RAISED|LAYOUT_TOP|LAYOUT_RIGHT)) - + # File Menu entries FXMenuCommand.new(filemenu, "&Open... \tCtl-O\tOpen document file.", @openicon, self, ID_OPEN) @@ -410,7 +410,7 @@ class TextWindow < FXMainWindow @editor, FXText::ID_TOGGLE_EDITABLE) iconifyCmd = FXMenuCommand.new(filemenu, "&Iconify...\t\tIconify editor.") iconifyCmd.connect(SEL_COMMAND) { self.minimize } - + # Recent file menu; this automatically hides if there are no files sep1 = FXMenuSeparator.new(filemenu) sep1.setTarget(@mrufiles) @@ -431,7 +431,7 @@ class TextWindow < FXMainWindow sep2.setTarget(@mrufiles) sep2.setSelector(FXRecentFiles::ID_ANYFILES) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, self, ID_QUIT) - + # Edit Menu entries FXMenuCommand.new(editmenu, "&Undo\tCtl-Z\tUndo last change.", @undoicon, @undolist, FXUndoList::ID_UNDO) @@ -471,7 +471,7 @@ class TextWindow < FXMainWindow FXMenuCommand.new(editmenu, "Shift tab right\t\tShift text right one tab position.", nil, @editor, FXText::ID_SHIFT_TABRIGHT) - + # Goto Menu entries FXMenuCommand.new(gotomenu, "&Goto...\tCtl-G\tGoto line number.", nil, @@ -496,7 +496,7 @@ class TextWindow < FXMainWindow FXMenuCommand.new(searchmenu, "Goto matching (..)\tCtl-M\tGoto matching brace or parenthesis.", nil, @editor, FXText::ID_GOTO_MATCHING) - + # Search Menu entries FXMenuCommand.new(searchmenu, "Select matching (..)\tShift-Ctl-M\tSelect matching brace or parenthesis.", nil, @@ -526,7 +526,7 @@ class TextWindow < FXMainWindow FXMenuCommand.new(searchmenu, "R&eplace...\tCtl-R\tSearch for a string.", nil, @editor, FXText::ID_REPLACE) - + # Options menu FXMenuCommand.new(optionmenu, "Preferences...\t\tChange preferences.", nil, @@ -542,7 +542,7 @@ class TextWindow < FXMainWindow FXMenuCommand.new(optionmenu, "Save Settings...\t\tSave settings now.", nil, self, TextWindow::ID_SAVE_SETTINGS) - + # View Menu entries FXMenuCommand.new(viewmenu, "Hidden files\t\tShow hidden files and directories.", nil, @@ -554,34 +554,34 @@ class TextWindow < FXMainWindow toolbar, FXWindow::ID_TOGGLESHOWN) FXMenuCommand.new(viewmenu, "Status line\t\tDisplay status line.", nil, statusbar, FXWindow::ID_TOGGLESHOWN) - + # Help Menu entries FXMenuCommand.new(helpmenu, "&Help...\t\tDisplay help information.", @helpicon, self, ID_SHOW_HELP, 0) FXMenuSeparator.new(helpmenu) FXMenuCommand.new(helpmenu, "&About TextEdit...\t\tDisplay about panel.", @smallicon, self, ID_ABOUT, 0) - + # Make a tool tip FXToolTip.new(getApp(), 0) - + # Recent files @mrufiles = FXRecentFiles.new @mrufiles.setTarget(self) @mrufiles.setSelector(ID_RECENTFILE) - + # Add some alternative accelerators if getAccelTable() getAccelTable().addAccel(MKUINT(KEY_Z, CONTROLMASK|SHIFTMASK), @undolist, MKUINT(FXUndoList::ID_REDO, SEL_COMMAND)) end - + # Initialize file name @filename = "untitled" @filetime = nil @filenameset = false - + # Initialize other stuff @searchpath = "/usr/include" setPatterns(["All Files (*)"]) @@ -752,7 +752,7 @@ class TextWindow < FXMainWindow # File patterns patterns = getApp().reg().readStringEntry("SETTINGS", "filepatterns", "All Files (*)") - setPatterns(patterns.split("\n")) + setPatterns(patterns.split("\n")) setCurrentPattern(getApp().reg().readIntEntry("SETTINGS", "filepatternno", 0)) # Search path @@ -764,57 +764,57 @@ class TextWindow < FXMainWindow @editor.selBackColor = textselback @editor.selTextColor = textselfore @editor.cursorColor = textcursor - + @dirlist.textColor = dirfore @dirlist.backColor = dirback @dirlist.selBackColor = dirselback @dirlist.selTextColor = dirselfore @dirlist.lineColor = dirlines - + # Change delimiters @editor.delimiters = delimiters - + # Hide tree if asked for @treebox.hide if hidetree - + # Set tree width @treebox.width = treewidth - + # Open toward file @dirlist.currentFile = @filename - + # Wrap mode if wrapping @editor.textStyle |= TEXT_WORDWRAP else @editor.textStyle &= ~TEXT_WORDWRAP end - + # Wrap fixed mode if fixedwrap @editor.textStyle |= TEXT_FIXEDWRAP else @editor.textStyle &= ~TEXT_FIXEDWRAP end - + # Autoindent if autoindent @editor.textStyle |= TEXT_AUTOINDENT else @editor.textStyle &= ~TEXT_AUTOINDENT end - + # Hard tabs if hardtabs @editor.textStyle &= ~TEXT_NO_TABS else @editor.textStyle |= TEXT_NO_TABS end - + # Wrap and tab columns @editor.wrapColumns = wrapcols @editor.tabColumns = tabcols - + # Reposition window position(xx, yy, ww, hh) end @@ -828,54 +828,54 @@ class TextWindow < FXMainWindow getApp().reg().writeColorEntry("SETTINGS", "textselbackground", @editor.selBackColor) getApp().reg().writeColorEntry("SETTINGS", "textselforeground", @editor.selTextColor) getApp().reg().writeColorEntry("SETTINGS", "textcursor", @editor.cursorColor) - + # Colors of directory getApp().reg().writeColorEntry("SETTINGS", "browserbackground", @dirlist.backColor) getApp().reg().writeColorEntry("SETTINGS", "browserforeground", @dirlist.textColor) getApp().reg().writeColorEntry("SETTINGS", "browserselbackground", @dirlist.selBackColor) getApp().reg().writeColorEntry("SETTINGS", "browserselforeground", @dirlist.selTextColor) getApp().reg().writeColorEntry("SETTINGS", "browserlines", @dirlist.lineColor) - + # Delimiters getApp().reg().writeStringEntry("SETTINGS", "delimiters", @editor.delimiters) - + # Write new window size back to registry getApp().reg().writeIntEntry("SETTINGS", "x", getX()) getApp().reg().writeIntEntry("SETTINGS", "y", getY()) getApp().reg().writeIntEntry("SETTINGS", "width", getWidth()) getApp().reg().writeIntEntry("SETTINGS", "height", getHeight()) - + # Were showing hidden files getApp().reg().writeIntEntry("SETTINGS", "showhiddenfiles", @dirlist.hiddenFilesShown? ? 1 : 0) - + # Was tree shown? getApp().reg().writeIntEntry("SETTINGS", "hidetree", @treebox.shown() ? 0 : 1) - + # Width of tree getApp().reg().writeIntEntry("SETTINGS", "treewidth", @treebox.getWidth()) - + # Wrap mode getApp().reg().writeIntEntry("SETTINGS", "wordwrap", (@editor.textStyle & TEXT_WORDWRAP) != 0 ? 1 : 0) getApp().reg().writeIntEntry("SETTINGS", "fixedwrap", (@editor.textStyle & TEXT_FIXEDWRAP) != 0 ? 1 : 0) getApp().reg().writeIntEntry("SETTINGS", "wrapcols", @editor.getWrapColumns()) - + # Tab settings, autoindent getApp().reg().writeIntEntry("SETTINGS", "autoindent", (@editor.textStyle & TEXT_AUTOINDENT) != 0 ? 1 : 0) getApp().reg().writeIntEntry("SETTINGS", "hardtabs", (@editor.textStyle & TEXT_NO_TABS) == 0 ? 1 : 0) getApp().reg().writeIntEntry("SETTINGS", "tabcols", @editor.getTabColumns()) - + # Strip returns getApp().reg().writeIntEntry("SETTINGS", "stripreturn", @stripcr ? 1 : 0) getApp().reg().writeIntEntry("SETTINGS", "stripspaces", @stripsp ? 1 : 0) - + # File patterns getApp().reg().writeIntEntry("SETTINGS", "filepatternno", getCurrentPattern()) patterns = getPatterns().join("\n") getApp().reg().writeStringEntry("SETTINGS", "filepatterns", patterns) - + # Search path getApp().reg().writeStringEntry("SETTINGS", "searchpath", @searchpath) - + # Font getApp().reg().writeStringEntry("SETTINGS", "font", @editor.font.font) end diff --git a/ext/fox16/include/FXMemoryBuffer.h b/ext/fox16/include/FXMemoryBuffer.h index 88766bf..b7be167 100644 --- a/ext/fox16/include/FXMemoryBuffer.h +++ b/ext/fox16/include/FXMemoryBuffer.h @@ -38,13 +38,13 @@ private: public: // Create an memory buffer object FXMemoryBuffer(FXColor *data,FXuint sz) : buffer(data),size(sz){} - + // Returns a pointer to the data FXColor* getData() const { return buffer; } - + // Returns the size (in bytes) FXuint getSize() const { return size; } - + // Destructor ~FXMemoryBuffer(){} }; diff --git a/ext/fox16/include/FXRbApp.h b/ext/fox16/include/FXRbApp.h index 5de000e..41fd1f5 100644 --- a/ext/fox16/include/FXRbApp.h +++ b/ext/fox16/include/FXRbApp.h @@ -129,7 +129,7 @@ public: public: // Constructor FXRbApp(const FXchar* name,const FXchar* vendor); - + // Construct and call init() static FXRbApp* constructAndInit(const FXchar* name,const FXchar* vendor); diff --git a/ext/fox16/include/FXRbBitmap.h b/ext/fox16/include/FXRbBitmap.h index d59b387..1ee6148 100644 --- a/ext/fox16/include/FXRbBitmap.h +++ b/ext/fox16/include/FXRbBitmap.h @@ -103,7 +103,7 @@ inline void cls ## _setData(cls* self,FXuchar* pix,FXuint opts,FXint w,FXint h){ void cls::setData(FXuchar* pix,FXuint opts,FXint w,FXint h){ \ FXRbCallVoidMethod(this,rb_intern("setData"),pix,opts,w,h); \ } - + class FXRbBitmap : public FXBitmap { diff --git a/ext/fox16/include/FXRbBitmapFrame.h b/ext/fox16/include/FXRbBitmapFrame.h index 65ac285..5065a3f 100644 --- a/ext/fox16/include/FXRbBitmapFrame.h +++ b/ext/fox16/include/FXRbBitmapFrame.h @@ -23,7 +23,7 @@ /*********************************************************************** * $Id: FXRbBitmapFrame.h 2190 2005-08-24 07:58:47Z lyle $ ***********************************************************************/ - + #ifndef FXRBBITMAPFRAME_H #define FXRBBITMAPFRAME_H @@ -46,7 +46,7 @@ public: // Mark dependencies for the GC static void markfunc(FXBitmapFrame* self); - + /// Destroy the widget, but do not destroy the bitmap virtual ~FXRbBitmapFrame(){ FXRbUnregisterRubyObj(this); diff --git a/ext/fox16/include/FXRbBitmapVirtuals.h b/ext/fox16/include/FXRbBitmapVirtuals.h index 4b1d118..f8676ab 100644 --- a/ext/fox16/include/FXRbBitmapVirtuals.h +++ b/ext/fox16/include/FXRbBitmapVirtuals.h @@ -4,7 +4,7 @@ public: // Overrides the base class version of render() virtual void render(); - + // Overrides the base class version of release() virtual void release(); @@ -28,7 +28,7 @@ public: /// Fill bitmap with uniform value virtual void fill(FXbool color); - + // Overrides the base class version of setData() virtual void setData(FXuchar *pix,FXuint opts=0); diff --git a/ext/fox16/include/FXRbDCPrint.h b/ext/fox16/include/FXRbDCPrint.h index 3425e81..a1c2121 100644 --- a/ext/fox16/include/FXRbDCPrint.h +++ b/ext/fox16/include/FXRbDCPrint.h @@ -45,5 +45,5 @@ public: FXRbUnregisterAppSensitiveObject(this); } }; - + #endif diff --git a/ext/fox16/include/FXRbDCVirtuals.h b/ext/fox16/include/FXRbDCVirtuals.h index a9dc673..5f3e890 100644 --- a/ext/fox16/include/FXRbDCVirtuals.h +++ b/ext/fox16/include/FXRbDCVirtuals.h @@ -22,7 +22,7 @@ public: // Overrides the base class version of drawLineSegments() virtual void drawLineSegments(const FXSegment* segments,FXuint nsegments); - + // Overrides the base class version of drawRectangle() virtual void drawRectangle(FXint x,FXint y,FXint w,FXint h); @@ -85,10 +85,10 @@ public: // Overrides the base class version of drawHashBox() virtual void drawHashBox(FXint x,FXint y,FXint w,FXint h,FXint b=1); - + // Overrides the base class version of drawFocusRectangle() virtual void drawFocusRectangle(FXint x,FXint y,FXint w,FXint h); - + // Overrides the base class version of drawArea() virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy); @@ -100,7 +100,7 @@ public: // Overrides the base class version of drawBitmap() virtual void drawBitmap(const FXBitmap* bitmap,FXint dx,FXint dy); - + // Overrides the base class version of drawIcon() virtual void drawIcon(const FXIcon* icon,FXint dx,FXint dy); @@ -124,64 +124,64 @@ public: // Overrides the base class version of setForeground() virtual void setForeground(FXColor clr); - + // Overrides the base class version of setBackground() virtual void setBackground(FXColor clr); - + // Overrides the base class version of setDashes() virtual void setDashes(FXuint dashoffset,const FXchar *dashpattern,FXuint dashlength); - + // Overrides the base class version of setLineWidth() virtual void setLineWidth(FXuint linewidth=0); - + // Overrides the base class version of setLineCap() virtual void setLineCap(FXCapStyle capstyle=CAP_BUTT); - + // Overrides the base class version of setLineJoin() virtual void setLineJoin(FXJoinStyle joinstyle=JOIN_MITER); - + // Overrides the base class version of setLineStyle() virtual void setLineStyle(FXLineStyle linestyle=LINE_SOLID); - + // Overrides the base class version of setFillStyle() virtual void setFillStyle(FXFillStyle fillstyle=FILL_SOLID); - + // Overrides the base class version of setFillRule() virtual void setFillRule(FXFillRule fillrule=RULE_EVEN_ODD); - + // Overrides the base class version of setFunction() virtual void setFunction(FXFunction func=BLT_SRC); - + // Overrides the base class version of setTile() virtual void setTile(FXImage* image,FXint dx=0,FXint dy=0); - + // Overrides the base class version of setStipple() virtual void setStipple(FXBitmap *bitmap,FXint dx=0,FXint dy=0); - + // Overrides the base class version of setStipple() virtual void setStipple(FXStipplePattern pat,FXint dx=0,FXint dy=0); - + // Overrides the base class version of setClipRegion() virtual void setClipRegion(const FXRegion& region); - + // Overrides the base class version of setClipRectangle() virtual void setClipRectangle(FXint x,FXint y,FXint w,FXint h); - + // Overrides the base class version of setClipRectangle() virtual void setClipRectangle(const FXRectangle& rectangle); - + // Overrides the base class version of clearClipRectangle() virtual void clearClipRectangle(); - + // Overrides the base class version of setClipMask() virtual void setClipMask(FXBitmap* bitmap,FXint dx=0,FXint dy=0); - + // Overrides the base class version of clearClipMask() virtual void clearClipMask(); - + // Overrides the base class version of setFont() virtual void setFont(FXFont *fnt); - + // Overrides the base class version of clipChildren() virtual void clipChildren(FXbool yes); diff --git a/ext/fox16/include/FXRbDCWindow.h b/ext/fox16/include/FXRbDCWindow.h index 23e670f..d2d0245 100644 --- a/ext/fox16/include/FXRbDCWindow.h +++ b/ext/fox16/include/FXRbDCWindow.h @@ -36,7 +36,7 @@ public: FXRbRegisterAppSensitiveObject(this); } - /// Construct for normal drawing; + /// Construct for normal drawing; /// This sets clip rectangle to the whole drawable FXRbDCWindow(FXDrawable* drawable) : FXDCWindow(drawable){ FXRbRegisterAppSensitiveObject(this); diff --git a/ext/fox16/include/FXRbDockBar.h b/ext/fox16/include/FXRbDockBar.h index 14de439..9644f7f 100644 --- a/ext/fox16/include/FXRbDockBar.h +++ b/ext/fox16/include/FXRbDockBar.h @@ -61,7 +61,7 @@ protected: #include "FXRbDockBarVirtuals.h" public: /** - * Construct a floatable Dockbar + * Construct a floatable Dockbar * Normally, the Dockbar is docked under window p. * When floated, the Dockbar can be docked under window q, which is * typically an FXToolBarShell window. diff --git a/ext/fox16/include/FXRbFileDict.h b/ext/fox16/include/FXRbFileDict.h index 995207c..ed43af8 100644 --- a/ext/fox16/include/FXRbFileDict.h +++ b/ext/fox16/include/FXRbFileDict.h @@ -70,7 +70,7 @@ inline FXFileAssoc* klass ## _findExecBinding(klass* self,const FXchar* pathname return FXRbCallFileAssocMethod(this,rb_intern("findExecBinding"),pathname); \ } - + /// File Association dictionary class FXRbFileDict : public FXFileDict { FXDECLARE(FXRbFileDict) @@ -99,6 +99,6 @@ public: FXRbUnregisterRubyObj(this); } }; - + #endif diff --git a/ext/fox16/include/FXRbFoldingList.h b/ext/fox16/include/FXRbFoldingList.h index 470533a..7859137 100644 --- a/ext/fox16/include/FXRbFoldingList.h +++ b/ext/fox16/include/FXRbFoldingList.h @@ -259,7 +259,7 @@ public: // Enumerate items static void enumerateItem(FXFoldingItem* item,FXObjectListOf<FXFoldingItem>& items); static void enumerateItems(FXFoldingItem* fm,FXFoldingItem* to,FXObjectListOf<FXFoldingItem>& items); - + // Destructor virtual ~FXRbFoldingList(){ FXRbFoldingList::unregisterOwnedObjects(this); diff --git a/ext/fox16/include/FXRbFontVirtuals.h b/ext/fox16/include/FXRbFontVirtuals.h index ed153ef..855555c 100644 --- a/ext/fox16/include/FXRbFontVirtuals.h +++ b/ext/fox16/include/FXRbFontVirtuals.h @@ -10,37 +10,37 @@ public: // Overrides the base class version of isFontMono() virtual FXbool isFontMono() const; - + // Overrides the base class version of hasChar() virtual FXbool hasChar(FXwchar ch) const; // Overrides the base class version of getMinChar() virtual FXwchar getMinChar() const; - + // Overrides the base class version of getMaxChar() virtual FXwchar getMaxChar() const; // Overrides the base class version of leftBearing() virtual FXint leftBearing(FXwchar ch) const; - + // Overrides the base class version of rightBearing() virtual FXint rightBearing(FXwchar ch) const; - + // Overrides the base class version of getFontWidth() virtual FXint getFontWidth() const; - + // Overrides the base class version of getFontHeight() virtual FXint getFontHeight() const; - + // Overrides the base class version of getFontAscent() virtual FXint getFontAscent() const; - + // Overrides the base class version of getFontDescent() virtual FXint getFontDescent() const; - + // Overrides the base class version of getFontLeading() virtual FXint getFontLeading() const; - + // Overrides the base class version of getFontSpacing() virtual FXint getFontSpacing() const; diff --git a/ext/fox16/include/FXRbGLViewerVirtuals.h b/ext/fox16/include/FXRbGLViewerVirtuals.h index e30a2d2..0d4fcec 100644 --- a/ext/fox16/include/FXRbGLViewerVirtuals.h +++ b/ext/fox16/include/FXRbGLViewerVirtuals.h @@ -1,10 +1,10 @@ public: // Overrides the base class version of select() virtual FXGLObject** select(FXint x,FXint y,FXint w,FXint h); - + // Overrides the base class version of pick() virtual FXGLObject* pick(FXint x,FXint y); - + // Overrides the base class version of setBounds() virtual FXbool setBounds(const FXRangef& box); diff --git a/ext/fox16/include/FXRbIconItemVirtuals.h b/ext/fox16/include/FXRbIconItemVirtuals.h index 768b347..9e1a060 100644 --- a/ext/fox16/include/FXRbIconItemVirtuals.h +++ b/ext/fox16/include/FXRbIconItemVirtuals.h @@ -1,32 +1,32 @@ protected: // Overrides the base class version of draw() virtual void draw(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Overrides the base class version of hitItem() virtual FXint hitItem(const FXIconList* list,FXint rx,FXint ry,FXint rw=1,FXint rh=1) const; - + // Overrides the base class version of drawBigIcon() virtual void drawBigIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Overrides the base class version of drawMiniIcon() virtual void drawMiniIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Overrides the base class version of drawDetails() virtual void drawDetails(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; public: // Publically accessible version of draw() void public_draw(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Publically accessible version of hitItem() FXint public_hitItem(const FXIconList* list,FXint rx,FXint ry,FXint rw=1,FXint rh=1) const; - + // Publically accessible version of drawBigIcon() void public_drawBigIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Publically accessible version of drawMiniIcon() void public_drawMiniIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Publically accessible version of drawDetails() void public_drawDetails(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; diff --git a/ext/fox16/include/FXRbIconListVirtuals.h b/ext/fox16/include/FXRbIconListVirtuals.h index bb90879..dfb618d 100644 --- a/ext/fox16/include/FXRbIconListVirtuals.h +++ b/ext/fox16/include/FXRbIconListVirtuals.h @@ -1,10 +1,10 @@ public: /// Overrides the base class version of selectItem() virtual FXbool selectItem(FXint index,FXbool notify=FALSE); - + /// Overrides the base class version of deselectItem() virtual FXbool deselectItem(FXint index,FXbool notify=FALSE); - + /// Overrides the base class version of toggleItem() virtual FXbool toggleItem(FXint index,FXbool notify=FALSE); @@ -19,17 +19,17 @@ public: /// Overrides the base class version of setCurrentItem() virtual void setCurrentItem(FXint index,FXbool notify=FALSE); - + /// Overrides the base class version of getItemAt() virtual FXint getItemAt(FXint x,FXint y) const; - + /// Overrides the base class version of makeItemVisible() virtual void makeItemVisible(FXint index); - + /// Overrides the base class version of enableItem() virtual FXbool enableItem(FXint index); - + /// Overrides the base class version of disableItem() virtual FXbool disableItem(FXint index); - + diff --git a/ext/fox16/include/FXRbIconSourceVirtuals.h b/ext/fox16/include/FXRbIconSourceVirtuals.h index 7800a98..1358062 100644 --- a/ext/fox16/include/FXRbIconSourceVirtuals.h +++ b/ext/fox16/include/FXRbIconSourceVirtuals.h @@ -13,7 +13,7 @@ public: // Overrides the base class version of loadImageData() virtual FXImage *loadImageData(const void *pixels,const FXString& type=FXString::null) const; - + // Overrides the base class version of loadImageStream() virtual FXImage *loadImageStream(FXStream& store,const FXString& type=FXString::null) const; diff --git a/ext/fox16/include/FXRbImageFrame.h b/ext/fox16/include/FXRbImageFrame.h index 9df8d16..f7b7ff0 100644 --- a/ext/fox16/include/FXRbImageFrame.h +++ b/ext/fox16/include/FXRbImageFrame.h @@ -23,7 +23,7 @@ /*********************************************************************** * $Id: FXRbImageFrame.h 2190 2005-08-24 07:58:47Z lyle $ ***********************************************************************/ - + #ifndef FXRBIMAGEFRAME_H #define FXRBIMAGEFRAME_H @@ -46,7 +46,7 @@ public: // Mark dependencies for the GC static void markfunc(FXImageFrame* self); - + /// Destroy the widget, but do not destroy the image virtual ~FXRbImageFrame(){ FXRbUnregisterRubyObj(this); diff --git a/ext/fox16/include/FXRbImageVirtuals.h b/ext/fox16/include/FXRbImageVirtuals.h index 944582d..dc79b66 100644 --- a/ext/fox16/include/FXRbImageVirtuals.h +++ b/ext/fox16/include/FXRbImageVirtuals.h @@ -4,7 +4,7 @@ public: // Overrides the base class version of render() virtual void render(); - + // Overrides the base class version of release() virtual void release(); diff --git a/ext/fox16/include/FXRbListVirtuals.h b/ext/fox16/include/FXRbListVirtuals.h index 0dccc7a..97fb117 100644 --- a/ext/fox16/include/FXRbListVirtuals.h +++ b/ext/fox16/include/FXRbListVirtuals.h @@ -7,16 +7,16 @@ public: /// Overrides the base class version of makeItemVisible() virtual void makeItemVisible(FXint index); - + /// Overrides the base class version of getItemAt() virtual FXint getItemAt(FXint x,FXint y) const; - + /// Overrides the base class version of selectItem() virtual FXbool selectItem(FXint index,FXbool notify=FALSE); - + /// Overrides the base class version of deselectItem() virtual FXbool deselectItem(FXint index,FXbool notify=FALSE); - + /// Overrides the base class version of toggleItem() virtual FXbool toggleItem(FXint index,FXbool notify=FALSE); diff --git a/ext/fox16/include/FXRbMenuBar.h b/ext/fox16/include/FXRbMenuBar.h index 54fdf78..14a666f 100644 --- a/ext/fox16/include/FXRbMenuBar.h +++ b/ext/fox16/include/FXRbMenuBar.h @@ -38,7 +38,7 @@ protected: #include "FXRbDockBarVirtuals.h" public: /** - * Construct a floatable menubar + * Construct a floatable menubar * Normally, the menubar is docked under window p. * When floated, the menubar can be docked under window q, which is * typically an FXToolbarShell window. diff --git a/ext/fox16/include/FXRbPopupVirtuals.h b/ext/fox16/include/FXRbPopupVirtuals.h index 3afdcc8..a370b2b 100644 --- a/ext/fox16/include/FXRbPopupVirtuals.h +++ b/ext/fox16/include/FXRbPopupVirtuals.h @@ -1,6 +1,6 @@ public: // Overrides the base class version of popup() virtual void popup(FXWindow* grabto,FXint x,FXint y,FXint w=0,FXint h=0); - + // Overrides the base class version of popdown() virtual void popdown(); diff --git a/ext/fox16/include/FXRbRecentFiles.h b/ext/fox16/include/FXRbRecentFiles.h index a7e40cf..762d464 100644 --- a/ext/fox16/include/FXRbRecentFiles.h +++ b/ext/fox16/include/FXRbRecentFiles.h @@ -36,7 +36,7 @@ public: /// Make new recent files group with default groupname FXRbRecentFiles(FXApp* a) : FXRecentFiles(a){} - + /// Make new Recent Files Group with groupname gp FXRbRecentFiles(FXApp* a,const FXString& gp,FXObject *tgt=NULL,FXSelector sel=0) : FXRecentFiles(a,gp,tgt,sel){} diff --git a/ext/fox16/include/FXRbRuler.h b/ext/fox16/include/FXRbRuler.h index 73660ba..7ac19a9 100644 --- a/ext/fox16/include/FXRbRuler.h +++ b/ext/fox16/include/FXRbRuler.h @@ -23,7 +23,7 @@ /*********************************************************************** * $Id: FXRbRuler.h 2190 2005-08-24 07:58:47Z lyle $ ***********************************************************************/ - + #ifndef FXRBRULER_H #define FXRBRULER_H @@ -43,10 +43,10 @@ public: /// Construct label with given text and icon FXRbRuler(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=RULER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD) : FXRuler(p,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb) {} - + // Mark dependencies for the GC static void markfunc(FXRuler* self); - + // Destructor virtual ~FXRbRuler(){ FXRbUnregisterRubyObj(this); diff --git a/ext/fox16/include/FXRbRulerView.h b/ext/fox16/include/FXRbRulerView.h index 8f42dfb..1e16402 100644 --- a/ext/fox16/include/FXRbRulerView.h +++ b/ext/fox16/include/FXRbRulerView.h @@ -23,7 +23,7 @@ /*********************************************************************** * $Id: FXRbRuler.h 2190 2005-08-24 07:58:47Z lyle $ ***********************************************************************/ - + #ifndef FXRBRULERVIEW_H #define FXRBRULERVIEW_H @@ -41,10 +41,10 @@ public: /// Construct label with given text and icon FXRbRulerView(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0) : FXRulerView(p,tgt,sel,opts,x,y,w,h) {} - + // Mark dependencies for the GC static void markfunc(FXRulerView* self); - + // Destructor virtual ~FXRbRulerView(){ FXRbUnregisterRubyObj(this); diff --git a/ext/fox16/include/FXRbScintilla.h b/ext/fox16/include/FXRbScintilla.h index 294a1f8..9e0c9f3 100644 --- a/ext/fox16/include/FXRbScintilla.h +++ b/ext/fox16/include/FXRbScintilla.h @@ -39,7 +39,7 @@ protected: public: /// Constructor FXRbScintilla(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0) : FXScintilla(p,tgt,sel,opts,x,y,w,h){} - + // Mark dependencies for garbage collector static void markfunc(FXScintilla* self); diff --git a/ext/fox16/include/FXRbSeparator.h b/ext/fox16/include/FXRbSeparator.h index 0e49158..e0211c7 100644 --- a/ext/fox16/include/FXRbSeparator.h +++ b/ext/fox16/include/FXRbSeparator.h @@ -47,8 +47,8 @@ public: // Mark dependencies for the GC static void markfunc(FXSeparator* self); }; - - + + class FXRbHorizontalSeparator : public FXHorizontalSeparator { FXDECLARE(FXRbHorizontalSeparator) protected: diff --git a/ext/fox16/include/FXRbTableItemVirtuals.h b/ext/fox16/include/FXRbTableItemVirtuals.h index bbaf689..d8be29c 100644 --- a/ext/fox16/include/FXRbTableItemVirtuals.h +++ b/ext/fox16/include/FXRbTableItemVirtuals.h @@ -33,16 +33,16 @@ public: public: // Overrides the base class version of setText() virtual void setText(const FXString& txt); - + // Overrides the base class of getText() virtual FXString getText() const; - + // Overrides the base class version of setIcon() virtual void setIcon(FXIcon* icn,FXbool owned=FALSE); - + // Overrides the base class version of getIcon() virtual FXIcon* getIcon() const; - + // Overrides the base class version of setFocus() virtual void setFocus(FXbool focus); @@ -54,16 +54,16 @@ public: // Overrides the base class version of setDraggable() virtual void setDraggable(FXbool draggable); - + // Overrides the base class version of setJustify() virtual void setJustify(FXuint justify=RIGHT|CENTER_Y); - + // Overrides the base class version of setIconPosition() virtual void setIconPosition(FXuint mode); - + // Overrides the base class version of setBorders() virtual void setBorders(FXuint borders=0); - + // Overrides the base class version of setStipple() virtual void setStipple(FXStipplePattern pattern); diff --git a/ext/fox16/include/FXRbTableVirtuals.h b/ext/fox16/include/FXRbTableVirtuals.h index 0a7de73..cbdc389 100644 --- a/ext/fox16/include/FXRbTableVirtuals.h +++ b/ext/fox16/include/FXRbTableVirtuals.h @@ -22,28 +22,28 @@ public: // Overrides the base class version of insertRows() virtual void insertRows(FXint row,FXint nr=1,FXbool notify=FALSE); - + // Overrides the base class version of insertColumns() virtual void insertColumns(FXint col,FXint nc=1,FXbool notify=FALSE); - + // Overrides the base class version of removeRows() virtual void removeRows(FXint row,FXint nr=1,FXbool notify=FALSE); - + // Overrides the base class version of removeColumns() virtual void removeColumns(FXint col,FXint nc=1,FXbool notify=FALSE); - + // Overrides the base class version of extractItem() virtual FXTableItem* extractItem(FXint row,FXint col,FXbool notify=FALSE); // Overrides the base class version of removeItem() virtual void removeItem(FXint row,FXint col,FXbool notify=FALSE); - + // Overrides the base class version of removeRange() virtual void removeRange(FXint startrow,FXint startcol,FXint endrow,FXint endcol,FXbool notify=FALSE); // Overrides the base class version of clearItems() virtual void clearItems(FXbool notify=FALSE); - + // Overrides the base class version of setColumnWidth() virtual void setColumnWidth(FXint col,FXint cwidth); @@ -67,23 +67,23 @@ public: // Overrides the base class version of killSelection() virtual FXbool killSelection(FXbool notify=FALSE); - + // Overrides base class version of startInput() virtual void startInput(FXint row,FXint col); - + // Overrides base class version of cancelInput() virtual void cancelInput(); - + // Overrides base class version of acceptInput() virtual void acceptInput(FXbool notify=FALSE); - + // Overrides the base class version of makePositionVisible() virtual void makePositionVisible(FXint r,FXint c); - + // Overrides the base class version of enableItem() virtual FXbool enableItem(FXint r,FXint c); - + // Overrides the base class version of disableItem() virtual FXbool disableItem(FXint r,FXint c); - + diff --git a/ext/fox16/include/FXRbText.h b/ext/fox16/include/FXRbText.h index 025f9e7..ec9e582 100644 --- a/ext/fox16/include/FXRbText.h +++ b/ext/fox16/include/FXRbText.h @@ -160,13 +160,13 @@ public: numStyles=0; styles=0; } - + // Number of styles in style array FXint numStyles; // Style array FXHiliteStyle *styles; - + // Mark dependencies for the GC static void markfunc(FXText* self); diff --git a/ext/fox16/include/FXRbTextVirtuals.h b/ext/fox16/include/FXRbTextVirtuals.h index 5fce636..ea848c5 100644 --- a/ext/fox16/include/FXRbTextVirtuals.h +++ b/ext/fox16/include/FXRbTextVirtuals.h @@ -7,7 +7,7 @@ public: // Overrides the base class version of killSelection() virtual FXbool killSelection(FXbool notify=FALSE); - + /// Overrides the base class versions of replaceText() virtual void replaceText(FXint pos,FXint m,const FXchar *text,FXint n,FXbool notify=FALSE); virtual void replaceText(FXint pos,FXint m,const FXString& text,FXbool notify=FALSE); @@ -37,7 +37,7 @@ public: /// Overrides the base class version of changeStyle() virtual void changeStyle(FXint pos,FXint n,FXint style); - + /// Overrides the base class versions of changeStyle() virtual void changeStyle(FXint pos,const FXchar* style,FXint n); virtual void changeStyle(FXint pos,const FXString& style); @@ -45,7 +45,7 @@ public: /// Overrides the base class versions of setText() virtual void setText(const FXchar* text,FXint n,FXbool notify=FALSE); virtual void setText(const FXString& text,FXbool notify=FALSE); - + /// Overrides the base class versions of setStyledText() virtual void setStyledText(const FXchar* text,FXint n,FXint style=0,FXbool notify=FALSE); virtual void setStyledText(const FXString& text,FXint style=0,FXbool notify=FALSE); diff --git a/ext/fox16/include/FXRbToolBar.h b/ext/fox16/include/FXRbToolBar.h index e6e0d83..0f9a2b4 100644 --- a/ext/fox16/include/FXRbToolBar.h +++ b/ext/fox16/include/FXRbToolBar.h @@ -38,7 +38,7 @@ protected: #include "FXRbDockBarVirtuals.h" public: /** - * Construct a floatable toolbar + * Construct a floatable toolbar * Normally, the toolbar is docked under window p. * When floated, the toolbar can be docked under window q, which is * typically an FXToolBarShell window. diff --git a/ext/fox16/include/FXRbToolBarGrip.h b/ext/fox16/include/FXRbToolBarGrip.h index 4ed0f34..9caa8bf 100644 --- a/ext/fox16/include/FXRbToolBarGrip.h +++ b/ext/fox16/include/FXRbToolBarGrip.h @@ -36,7 +36,7 @@ protected: #include "FXRbDrawableVirtuals.h" #include "FXRbWindowVirtuals.h" public: - /// Construct toolbar grip + /// Construct toolbar grip FXRbToolBarGrip(FXToolBar* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=TOOLBARGRIP_SINGLE,FXint x=0,FXint y=0,FXint w=0,FXint h=0) : FXToolBarGrip(p,tgt,sel,opts,x,y,w,h){} // Destructor diff --git a/ext/fox16/include/FXRbToolBarTab.h b/ext/fox16/include/FXRbToolBarTab.h index bdfd0c3..d3a0be8 100644 --- a/ext/fox16/include/FXRbToolBarTab.h +++ b/ext/fox16/include/FXRbToolBarTab.h @@ -36,7 +36,7 @@ protected: #include "FXRbDrawableVirtuals.h" #include "FXRbWindowVirtuals.h" public: - /// Construct toolbar tab + /// Construct toolbar tab FXRbToolBarTab(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0) : FXToolBarTab(p,tgt,sel,opts,x,y,w,h){} // Destructor diff --git a/ext/fox16/include/FXRbTreeList.h b/ext/fox16/include/FXRbTreeList.h index ea9aa91..9d12e1a 100644 --- a/ext/fox16/include/FXRbTreeList.h +++ b/ext/fox16/include/FXRbTreeList.h @@ -266,7 +266,7 @@ public: // Enumerate items static void enumerateItem(FXTreeItem* item,FXObjectListOf<FXTreeItem>& items); static void enumerateItems(FXTreeItem* fm,FXTreeItem* to,FXObjectListOf<FXTreeItem>& items); - + // Destructor virtual ~FXRbTreeList(){ FXRbTreeList::unregisterOwnedObjects(this); diff --git a/ext/fox16/include/FXRbTreeListVirtuals.h b/ext/fox16/include/FXRbTreeListVirtuals.h index 6cbbf98..3834fe3 100644 --- a/ext/fox16/include/FXRbTreeListVirtuals.h +++ b/ext/fox16/include/FXRbTreeListVirtuals.h @@ -10,7 +10,7 @@ public: // Overrides the base class version of extendSelection() virtual FXbool extendSelection(FXTreeItem* item,FXbool notify=FALSE); - + // Overrides the base class version of killSelection() virtual FXbool killSelection(FXbool notify=FALSE); @@ -28,15 +28,15 @@ public: // Overrides the base class version of setCurrentItem() virtual void setCurrentItem(FXTreeItem* item,FXbool notify=FALSE); - + // Overrides the base class version of getItemAt() virtual FXTreeItem* getItemAt(FXint x,FXint y) const; - + // Overrides the base class version of makeItemVisible() virtual void makeItemVisible(FXTreeItem* item); // Overrides the base class version of enableItem() virtual FXbool enableItem(FXTreeItem* item); - + // Overrides the base class version of disableItem() virtual FXbool disableItem(FXTreeItem* item); diff --git a/ext/fox16/include/FXRbWindow.h b/ext/fox16/include/FXRbWindow.h index 2fdd8f7..78099a9 100644 --- a/ext/fox16/include/FXRbWindow.h +++ b/ext/fox16/include/FXRbWindow.h @@ -232,7 +232,7 @@ public: // Another constructor FXRbWindow(FXApp* a,FXVisual *vis):FXWindow(a,vis){} - + // Yet another constructor FXRbWindow(FXApp* a,FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h):FXWindow(a,own,opts,x,y,w,h){} diff --git a/ext/fox16/include/FXRbWizard.h b/ext/fox16/include/FXRbWizard.h index 30f3cdb..1fd0442 100644 --- a/ext/fox16/include/FXRbWizard.h +++ b/ext/fox16/include/FXRbWizard.h @@ -47,10 +47,10 @@ public: /// Construct Wizard which will always float over the owner window FXRbWizard(FXWindow* owner,const FXString& name,FXImage *image,FXuint opts=DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=10,FXint vs=10) : FXWizard(owner,name,image,opts,x,y,w,h,pl,pr,pt,pb,hs,vs) {} - + // Mark dependencies for the GC static void markfunc(FXWizard* self); - + // Destructor virtual ~FXRbWizard(){ FXRbUnregisterRubyObj(this); diff --git a/ext/fox16/include/FXRuby.h b/ext/fox16/include/FXRuby.h index 5f729a8..1a1bd0e 100644 --- a/ext/fox16/include/FXRuby.h +++ b/ext/fox16/include/FXRuby.h @@ -69,7 +69,7 @@ VALUE showHelper(VALUE self, int argc, VALUE *argv, TYPE *p, swig_type_info *typ } return Qnil; } - + // Wrapper around SWIG_Ruby_NewPointerObj() VALUE FXRbNewPointerObj(void *ptr, swig_type_info *typeinfo); bool FXRbIsBorrowed(void* ptr); @@ -235,7 +235,7 @@ inline VALUE to_ruby(FXStream& store){ inline VALUE to_ruby(const FXPoint* point){ return FXRbNewPointerObj(static_cast<void*>(const_cast<FXPoint*>(point)),FXRbTypeQuery("FXPoint *")); } - + inline VALUE to_ruby(const FXSegment* segment){ return FXRbNewPointerObj(static_cast<void*>(const_cast<FXSegment*>(segment)),FXRbTypeQuery("FXSegment *")); } @@ -304,7 +304,7 @@ inline FXID int_to_fxid(VALUE value){ #ifndef WIN32 return static_cast<FXID>(NUM2UINT(value)); #else - return reinterpret_cast<FXID>(NUM2ULONG(value)); + return reinterpret_cast<FXID>(NUM2ULONG(value)); #endif } @@ -331,7 +331,7 @@ void FXRbCallVoidMethod(FXDC* recv,ID func,TYPE arg){ FXASSERT(!NIL_P(obj)); rb_funcall(obj,func,1,to_ruby(arg)); } - + template<class TYPE> void FXRbCallVoidMethod(const FXObject* recv, ID func, TYPE& arg){ VALUE obj=FXRbGetRubyObj(recv,false); diff --git a/ext/fox16/make_impl.rb b/ext/fox16/make_impl.rb index e424f7c..fabb113 100755 --- a/ext/fox16/make_impl.rb +++ b/ext/fox16/make_impl.rb @@ -11,7 +11,7 @@ class Processor @inside_class end - def getBaseClassName(klass) + def getBaseClassName(klass) klass.sub(/FXRb/, "FX") end @@ -55,7 +55,7 @@ class MyProcessor < Processor @classname = nil @baseclass = nil end - + def start_class(classname, baseclass) @classname = classname @baseclass = baseclass @@ -66,7 +66,7 @@ class MyProcessor < Processor @fcpp.printf("/* Start stub implementations for class %s */\n", classname) @finc.printf("/* Start stub declarations for class %s */\n", classname) end - + def implement_overrides(filename) stubclass = filename.gsub('"', '').sub("FXRb", "FX") stubclass = stubclass.sub(/Virtuals\.h/, "").upcase @@ -76,7 +76,7 @@ class MyProcessor < Processor @fcpp.printf("IMPLEMENT_%s_STUBS(%s,%s)\n", stubclass, @classname, @baseclass) end end - + def implement_stubs(filename) stubclass = filename.gsub('"', '').sub("FXRb", "FX") stubclass = stubclass.sub(/Virtuals\.h/, "").upcase @@ -95,7 +95,7 @@ class MyProcessor < Processor implement_stubs(incfile) end end - + def end_class if @classname == "FXRbScintilla" @fcpp.puts "\n#endif" diff --git a/ext/fox16/markfuncs.cpp b/ext/fox16/markfuncs.cpp index 464191b..0b5eb42 100644 --- a/ext/fox16/markfuncs.cpp +++ b/ext/fox16/markfuncs.cpp @@ -77,7 +77,7 @@ void FXRbObject::freefunc(FXObject* self){ void FXRbIconSource::markfunc(FXIconSource* iconSource){ FXRbObject::markfunc(iconSource); } - + void FXRbTranslator::markfunc(FXTranslator* translator){ FXRbObject::markfunc(translator); if(translator){ @@ -334,11 +334,11 @@ void FXRbApp::markfunc(FXApp *self){ FXRbGcMark(self->getDefaultCursor(DEF_CORNERSE_CURSOR)); FXRbGcMark(self->getDefaultCursor(DEF_CORNERSW_CURSOR)); FXRbGcMark(self->getDefaultCursor(DEF_ROTATE_CURSOR)); - + // Other windows FXRbGcMark(self->getFocusWindow()); FXRbGcMark(self->getCursorWindow()); - + /** * Root window is a special case; popups (like FXTooltip) can be created * without an "owner" by passing FXApp as the first argument to their @@ -350,7 +350,7 @@ void FXRbApp::markfunc(FXApp *self){ FXRbGcMark(self->getRootWindow()); FXRbRootWindow::markfunc(self->getRootWindow()); } - + // Registry FXRbGcMark(&(self->reg())); @@ -511,7 +511,7 @@ void FXRbColorList::markfunc(FXColorList* self){ FXRbList::markfunc(self); } - + void FXRbTableItem::markfunc(FXTableItem* self){ FXRbObject::markfunc(self); if(self){ @@ -988,8 +988,8 @@ void FXRbSeparator::markfunc(FXSeparator* self){ FXTRACE((100,"FXRbSeparator::markfunc() %p\n",self)); FXRbFrame::markfunc(self); } - - + + void FXRbHorizontalSeparator::markfunc(FXHorizontalSeparator *self){ FXTRACE((100,"FXRbHorizontalSeparator::markfunc() %p\n",self)); FXRbSeparator::markfunc(self); @@ -1637,7 +1637,7 @@ void FXRbRulerView::markfunc(FXRulerView* self){ } } - + void FXRbPPMIcon::markfunc(FXPPMIcon* self){ FXTRACE((100,"FXRbPPMIcon::markfunc() %p\n",self)); FXRbIcon::markfunc(self); diff --git a/ext/fox16/unregisterOwnedObjects.cpp b/ext/fox16/unregisterOwnedObjects.cpp index ca50c0a..5cad30f 100644 --- a/ext/fox16/unregisterOwnedObjects.cpp +++ b/ext/fox16/unregisterOwnedObjects.cpp @@ -22,7 +22,7 @@ * worry about the C++ objects that aren't subclasses of regular FOX classes, * but which have somehow been "exposed" to the Ruby layer. */ - + #include "FXRbCommon.h" void FXRbHeader::unregisterOwnedObjects(FXHeader *self) @@ -49,7 +49,7 @@ void FXRbFoldingList::unregisterOwnedObjects(FXFoldingList *self) { FXRbScrollArea::unregisterOwnedObjects(self); FXRbUnregisterRubyObj(self->getHeader()); - + // Save pointer(s) to the soon-to-be-destroyed items FXObjectListOf<FXFoldingItem> items; FXRbFoldingList::enumerateItems(self->getFirstItem(),self->getLastItem(),items); @@ -109,7 +109,7 @@ void FXRbText::unregisterOwnedObjects(FXText *self) void FXRbTreeList::unregisterOwnedObjects(FXTreeList *self) { FXRbScrollArea::unregisterOwnedObjects(self); - + // Save pointer(s) to the soon-to-be-destroyed items FXObjectListOf<FXTreeItem> items; FXRbTreeList::enumerateItems(self->getFirstItem(), self->getLastItem(), items); diff --git a/fox-includes/FX7Segment.h b/fox-includes/FX7Segment.h index 00b1084..ebc4930 100644 --- a/fox-includes/FX7Segment.h +++ b/fox-includes/FX7Segment.h @@ -122,16 +122,16 @@ public: /// Get the current text-justification mode. FXuint getJustify() const; - /// Set the status line help text + /// Set the status line help text void setHelpText(const FXString& text){ help=text; } - /// Get the status line help text + /// Get the status line help text const FXString& getHelpText() const { return help; } - /// Set the tool tip message + /// Set the tool tip message void setTipText(const FXString& text){ tip=text; } - /// Get the tool tip message + /// Get the tool tip message const FXString& getTipText() const { return tip; } /// Save to a stream diff --git a/fox-includes/FXChoiceBox.h b/fox-includes/FXChoiceBox.h index 138433a..2efe35a 100644 --- a/fox-includes/FXChoiceBox.h +++ b/fox-includes/FXChoiceBox.h @@ -110,7 +110,7 @@ public: /// Load choice box from a stream virtual void load(FXStream& store); - + /// Destroy choice box virtual ~FXChoiceBox(); }; diff --git a/fox-includes/FXDC.h b/fox-includes/FXDC.h index 895a106..4aead6f 100755 --- a/fox-includes/FXDC.h +++ b/fox-includes/FXDC.h @@ -266,7 +266,7 @@ public: /// Draw area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy); - /// Draw area stretched area from source + /// Draw area stretched area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh); /// Draw image diff --git a/fox-includes/FXDCPrint.h b/fox-includes/FXDCPrint.h index a1ef728..925e9ef 100755 --- a/fox-includes/FXDCPrint.h +++ b/fox-includes/FXDCPrint.h @@ -201,7 +201,7 @@ public: /// Draw area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy); - /// Draw area stretched area from source + /// Draw area stretched area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh); /// Draw image diff --git a/fox-includes/FXDCWindow.h b/fox-includes/FXDCWindow.h index 2461cfd..e1cc1ed 100755 --- a/fox-includes/FXDCWindow.h +++ b/fox-includes/FXDCWindow.h @@ -161,7 +161,7 @@ public: /// Draw area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy); - /// Draw area stretched area from source + /// Draw area stretched area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh); /// Draw image diff --git a/fox-includes/FXFileDialog.h b/fox-includes/FXFileDialog.h index 5041340..7043c29 100755 --- a/fox-includes/FXFileDialog.h +++ b/fox-includes/FXFileDialog.h @@ -176,7 +176,7 @@ public: /// Allow or disallow navigation void allowNavigation(FXbool navigable); - + /// Is navigation allowed? FXbool allowNavigation() const; diff --git a/fox-includes/FXFileDict.h b/fox-includes/FXFileDict.h index b5e6df6..6019dd9 100755 --- a/fox-includes/FXFileDict.h +++ b/fox-includes/FXFileDict.h @@ -63,7 +63,7 @@ struct FXFileAssoc { * * For example, the binding for "jpg" could be: * -* xv %s &;JPEG Image;bigimage.xpm;miniimage.xpm;image/jpeg;term +* xv %s &;JPEG Image;bigimage.xpm;miniimage.xpm;image/jpeg;term * * The association for a file name is determined by first looking at the entire * file name, then at the whole extension, and then at sub-extensions. diff --git a/fox-includes/FXInputDialog.h b/fox-includes/FXInputDialog.h index 6b149ad..a1a7626 100755 --- a/fox-includes/FXInputDialog.h +++ b/fox-includes/FXInputDialog.h @@ -105,7 +105,7 @@ public: /** * Prompt for an integer number, start with the given initial value. * Return TRUE if the new value is accepted, and false otherwise. - * The input is constrained between lo and hi. + * The input is constrained between lo and hi. */ static FXbool getInteger(FXint& result,FXWindow* owner,const FXString& caption,const FXString& label,FXIcon* icon=NULL,FXint lo=-2147483647,FXint hi=2147483647); diff --git a/fox-includes/FXProgressDialog.h b/fox-includes/FXProgressDialog.h index 0ac2ab0..27ac983 100755 --- a/fox-includes/FXProgressDialog.h +++ b/fox-includes/FXProgressDialog.h @@ -81,7 +81,7 @@ public: /// Change style of the progress bar widget void setBarStyle(FXuint style); - + /// Get style of the progress bar widget FXuint getBarStyle() const; diff --git a/fox-includes/FXScrollBar.h b/fox-includes/FXScrollBar.h index 881d57c..2fbf011 100755 --- a/fox-includes/FXScrollBar.h +++ b/fox-includes/FXScrollBar.h @@ -48,9 +48,9 @@ enum { * of the document which is visible. The size of the scrollbar thumb is adjusted * to give feedback of the relative sizes of each. * The scroll bar may be manipulated by the left mouse button (normal scrolling), by the -* middle mouse button (same as the left mouse only the scroll position can jump to the +* middle mouse button (same as the left mouse only the scroll position can jump to the * place where the click is made), or by the right mouse button (vernier- or fine-scrolling). -* Holding down the control key while scrolling with the left or middle mouse button also +* Holding down the control key while scrolling with the left or middle mouse button also * enables vernier-scrolling mode. The vernier-scrolling mode is very useful for accurate * positioning in large documents. * Finally, if the mouse sports a wheel, the scroll bar can be manipulated by means diff --git a/fox-includes/FXScrollWindow.h b/fox-includes/FXScrollWindow.h index 328c489..4e91b97 100755 --- a/fox-includes/FXScrollWindow.h +++ b/fox-includes/FXScrollWindow.h @@ -35,14 +35,14 @@ namespace FX { * The scroll window widget scrolls an arbitrary child window. * Use the scroll window when parts of the user interface itself * need to be scrolled, for example when applications need to run -* on small screens. The scroll window observes some layout hints of -* its content-window; it observes LAYOUT_FIX_WIDTH, LAYOUT_FIX_HEIGHT -* at all times. The hints LAYOUT_FILL_X, LAYOUT_LEFT, LAYOUT_RIGHT, -* LAYOUT_CENTER_X, as well as LAYOUT_FILL_Y, LAYOUT_TOP, LAYOUT_BOTTOM, +* on small screens. The scroll window observes some layout hints of +* its content-window; it observes LAYOUT_FIX_WIDTH, LAYOUT_FIX_HEIGHT +* at all times. The hints LAYOUT_FILL_X, LAYOUT_LEFT, LAYOUT_RIGHT, +* LAYOUT_CENTER_X, as well as LAYOUT_FILL_Y, LAYOUT_TOP, LAYOUT_BOTTOM, * LAYOUT_CENTER_Y are however only interpreted if the content size * is smaller than the viewport size, because if the content size is * larger than the viewport size, then content must be scrolled. -* Note that this means that the content window's position is not +* Note that this means that the content window's position is not * necessarily equal to the scroll position of the scroll window! */ class FXAPI FXScrollWindow : public FXScrollArea { diff --git a/fox-includes/FXTabBar.h b/fox-includes/FXTabBar.h index 4feff6f..30b2b52 100755 --- a/fox-includes/FXTabBar.h +++ b/fox-includes/FXTabBar.h @@ -108,7 +108,7 @@ public: virtual void layout(); /** - * Change currently active tab item; this raises the active tab item + * Change currently active tab item; this raises the active tab item * slightly above the neighboring tab items. If notify=TRUE then the * tab bar will also send a SEL_COMMAND message to its target. */ diff --git a/fox-includes/FXText.h b/fox-includes/FXText.h index 1cc404c..213cde4 100755 --- a/fox-includes/FXText.h +++ b/fox-includes/FXText.h @@ -683,7 +683,7 @@ public: /// Return number of rows in buffer FXint getNumRows() const { return nrows; } - + /// Shift block of lines from position start up to end by given amount FXint shiftText(FXint start,FXint end,FXint amount,FXbool notify=FALSE); diff --git a/fox-includes/FXThread.h b/fox-includes/FXThread.h index 5300b91..d9d4c16 100755 --- a/fox-includes/FXThread.h +++ b/fox-includes/FXThread.h @@ -289,7 +289,7 @@ public: * Wake at appointed time specified in nanoseconds since Epoch. */ static void wakeat(FXlong nsec); - + /** * Return pointer to the FXThread instance associated * with the calling thread; it returns NULL for the main diff --git a/lib/fox16/accel_table.rb b/lib/fox16/accel_table.rb index f95e8ba..b73586a 100644 --- a/lib/fox16/accel_table.rb +++ b/lib/fox16/accel_table.rb @@ -80,4 +80,4 @@ module Fox removeAccelOrig(hotKey) end end -end \ No newline at end of file +end diff --git a/lib/fox16/aliases.rb b/lib/fox16/aliases.rb index a4d08c3..affa7d7 100755 --- a/lib/fox16/aliases.rb +++ b/lib/fox16/aliases.rb @@ -100,13 +100,13 @@ module Fox getExpanded() end end - + class FXAccelTable def hasAccel?(*args) # :nodoc: hasAccel(*args) end end - + class FXApp def mainloop # :nodoc: run @@ -1459,7 +1459,7 @@ module Fox getImageSize end end - + class FXFoldingItem def parent(*args) # :nodoc: getParent(*args) diff --git a/lib/fox16/calendar.rb b/lib/fox16/calendar.rb index 01af58e..251194e 100755 --- a/lib/fox16/calendar.rb +++ b/lib/fox16/calendar.rb @@ -44,10 +44,10 @@ module Fox # Currently selected date [Time] attr_reader :selected - + # Font used for days [FXFont] attr_reader :dayLabelFont - + # # Returns an initialized calendar widget # @@ -62,9 +62,9 @@ module Fox @headerBGColor = FXColor::Black @headerFGColor = FXColor::White @dayLabelFont = FXFont.new(getApp, "helvetica", 7) - + @date_showing = initial_date - + # Header row @header = FXHorizontalFrame.new(self, LAYOUT_FILL_X) @header.backColor = @headerBGColor @@ -73,7 +73,7 @@ module Fox @date_showing = _last_month _build_date_matrix @current_month.text = _header_date - end + end @current_month = FXLabel.new(@header, _header_date, nil, LAYOUT_FILL_X|JUSTIFY_CENTER_X|LAYOUT_FILL_Y) @current_month.backColor = @headerBGColor @@ -84,7 +84,7 @@ module Fox _build_date_matrix @current_month.text = _header_date end - + @matrix = FXMatrix.new(self, 7, MATRIX_BY_COLUMNS|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDTH|FRAME_RAISED, 0, 0, 0, 0, 0, 0, 0, 0) @@ -99,17 +99,17 @@ module Fox btn.connect(SEL_COMMAND) do |send, sel, ev| @selected = Time.local(@date_showing.year, @date_showing.month, send.text.to_i) - target.handle(self, MKUINT(selector, SEL_COMMAND), @selected) if target + target.handle(self, MKUINT(selector, SEL_COMMAND), @selected) if target end end _build_date_matrix() end - + # Return the current header background color def headerBackColor @headerBGColor end - + # Set the header background color def headerBackColor=(clr) @headerBGColor = clr @@ -117,19 +117,19 @@ module Fox @current_month.backColor = clr DAYS.each_index { |i| @matrix.childAtIndex(i).backColor = clr } end - + # Return the current header text color def headerTextColor @headerFGColor end - + # Set the header text color def headerTextColor=(clr) @headerFGColor = clr @current_month.textColor = clr DAYS.each_index { |i| @matrix.childAtIndex(i).textColor = clr } end - + # Change the font used for the days of the weeks def dayLabelFont=(font) if @dayLabelFont != font @@ -138,16 +138,16 @@ module Fox update end end - - private + + private def _header_date() @date_showing.strftime("%B, %Y") end - + def _first_day Time.local(@date_showing.year, @date_showing.month, 1) end - + def _last_day year = @date_showing.year month = @date_showing.month+1 @@ -157,7 +157,7 @@ module Fox end Time.local(year, month, 1) - (60*60*24) end - + def _last_month year = @date_showing.year month = @date_showing.month - 1 @@ -167,7 +167,7 @@ module Fox end Time.local(year, month) end - + def _next_month year = @date_showing.year month = @date_showing.month + 1 @@ -177,7 +177,7 @@ module Fox end Time.local(year, month) end - + def _build_date_matrix (0...6*7-1).each do |index| @matrix.childAtRowCol(index/7+1, index.modulo(7)).setCurrent(0) @@ -189,7 +189,7 @@ module Fox switcher.childAtIndex(1).text = day.to_s end end - + def _add_matrix_label(label) l = FXLabel.new(@matrix, label, nil, LAYOUT_FILL_X|LAYOUT_FILL_COLUMN|JUSTIFY_CENTER_X|FRAME_SUNKEN) @@ -198,7 +198,7 @@ module Fox l.font = @dayLabelFont end end -end +end if __FILE__ == $0 diff --git a/lib/fox16/chore.rb b/lib/fox16/chore.rb index 36c744b..2373aed 100755 --- a/lib/fox16/chore.rb +++ b/lib/fox16/chore.rb @@ -1,5 +1,5 @@ module Fox - + class FXApp alias addChoreOrig addChore # :nodoc: @@ -101,5 +101,5 @@ module Fox end end # class FXApp - + end # module Fox diff --git a/lib/fox16/core.rb b/lib/fox16/core.rb index 4b5cbaf..48ed0d4 100755 --- a/lib/fox16/core.rb +++ b/lib/fox16/core.rb @@ -1,5 +1,5 @@ module Fox - + class FXIconItem def <=>(otherItem) text <=> otherItem.text @@ -11,13 +11,13 @@ module Fox text <=> otherItem.text end end - + class FXTreeItem def <=>(otherItem) text <=> otherItem.text end end - + class FXTreeList def addItemFirst(*args) # :nodoc: warn "addItemFirst() is deprecated; use prependItem() instead" @@ -43,12 +43,12 @@ module Fox warn "reparentItem() is deprecated; use moveItem() instead" moveItem(nil, father, item) end - + def moveItemBefore(other, item) # :nodoc: warn "moveItemBefore() is deprecated; use moveItem() instead" moveItem(other, other.parent, item) end - + def moveItemAfter(other, item) # :nodoc: warn "moveItemAfter() is deprecated; use moveItem() instead" moveItem(other.next, other.parent, item) @@ -83,20 +83,20 @@ module Fox value.to_s end end - + class FXDockBar # Allow docking on the specified side, where _side_ is one of the +ALLOW+ # constants listed above. def allowSide(side) self.allowedSides = self.allowedSides | side end - + # Disallow docking on the specified side, where _side_ is one of the # +ALLOW+ constants listed above. def disallowSide(side) self.allowedSides = self.allowedSides & ~side end - + # Return +true+ if docking is allowed on the specified side, where _side_ # is one of the +ALLOW+ constants listed above. # @@ -104,19 +104,19 @@ module Fox (allowedSides & side) != 0 end end - + class FXFileDialog # Allow navigation for this file dialog def allowNavigation self.navigationAllowed = true end - + # Disallow navigation for this file dialog def disallowNavigation self.navigationAllowed = false end end - + class FXFileList # # Show parent directories. @@ -124,7 +124,7 @@ module Fox def showParentDirs self.parentDirsShown = true end - + # # Hide parent directories # @@ -132,13 +132,13 @@ module Fox self.parentDirsShown = false end end - + class FXFileSelector # Allow navigation for this file selector def allowNavigation self.navigationAllowed = true end - + # Disallow navigation for this file selector def disallowNavigation self.navigationAllowed = false @@ -151,7 +151,7 @@ module Fox # up. Raises IndexError if _index_ is out of bounds. # def arrowUp?(index) - if index < 0 || index >= numItems + if index < 0 || index >= numItems raise IndexError, "header item index out of bounds" else getArrowDir(index) == Fox::TRUE @@ -163,7 +163,7 @@ module Fox # down. Raises IndexError if _index_ is out of bounds. # def arrowDown?(index) - if index < 0 || index >= numItems + if index < 0 || index >= numItems raise IndexError, "header item index out of bounds" else getArrowDir(index) == Fox::FALSE @@ -175,14 +175,14 @@ module Fox # any arrow. Raises IndexError if _index_ is out of bounds. # def arrowMaybe?(index) - if index < 0 || index >= numItems + if index < 0 || index >= numItems raise IndexError, "header item index out of bounds" else getArrowDir(index) == Fox::MAYBE end end end - + class FXHiliteStyle # # Construct a new FXHiliteStyle instance, with fields initialized from @@ -218,7 +218,7 @@ module Fox default = default ? 1 : 0 readIntEntry(section, key, default) != 0 end - + # # Write a boolean registry _value_ to the specified _section_ and _key_. # @@ -226,68 +226,68 @@ module Fox writeIntEntry(section, key, value ? 1 : 0) end end - + class FXVec2d # Convert to array def to_a [x, y] end - + # Convert to string def to_s to_a.to_s end - + def inspect; to_a.inspect; end end - + class FXVec2f # Convert to array def to_a; [x, y]; end - + # Convert to string def to_s; to_a.to_s; end - + def inspect; to_a.inspect; end end - + class FXVec3d # Convert to array def to_a; [x, y, z]; end - + # Convert to string def to_s; to_a.to_s; end - + def inspect; to_a.inspect; end end - + class FXVec3f # Convert to array def to_a; [x, y, z]; end - + # Convert to string def to_s; to_a.to_s; end - + def inspect; to_a.inspect; end end - + class FXVec4d # Convert to array def to_a; [x, y, z, w]; end - + # Convert to string def to_s; to_a.to_s; end - + def inspect; to_a.inspect; end end - + class FXVec4f # Convert to array def to_a; [x, y, z, w]; end - + # Convert to string def to_s; to_a.to_s; end - + def inspect; to_a.inspect; end end @@ -306,11 +306,11 @@ module Fox child = next_child end end - + # # Traverse the widget tree starting from this window # using depth-first traversal. - # + # def each_child_recursive # :yields: child each_child do |child| yield child @@ -319,7 +319,7 @@ module Fox end end end - + # Returns an array containing all child windows of this window def children @@ -327,7 +327,7 @@ module Fox each_child { |kid| kids << kid } kids end - + # Return +true+ if this window (self) comes before sibling window _other_. def before?(other) FXWindow.before?(other) @@ -342,12 +342,12 @@ module Fox def linkBefore(other) reparent(self.parent, other) end - + # Relink this window after sibling window _other_, in the parent's window list. def linkAfter(other) reparent(self.parent, other.next) end - + # Setting visible to +true+ calls #show, setting it to +false+ calls #hide. def visible=(vis) if vis @@ -442,48 +442,48 @@ module Fox end end end - + # Tried to read past the end of a stream class FXStreamEndError < FXStreamError ; end - + # Filled up a stream's internal buffer, or the disk is full class FXStreamFullError < FXStreamError ; end - + # Unable to open for write class FXStreamNoWriteError < FXStreamError ; end - + # Unable to open for read class FXStreamNoReadError < FXStreamError ; end - + # Stream format error class FXStreamFormatError < FXStreamError ; end - + # Trying to read unknown class class FXStreamUnknownError < FXStreamError ; end - + # Alloc failed class FXStreamAllocError < FXStreamError ; end - + # General failure class FXStreamFailureError < FXStreamError ; end - + class FXCheckButton # Return +true+ if this check button is in the checked state. def checked? self.checkState == TRUE end - + # Return +true+ if this check button is in the unchecked state. def unchecked? self.checkState == FALSE end - + # Return +true+ if this check button is in the indeterminate, or "maybe", state. def maybe? self.checkState == MAYBE end end - + class FXComboTableItem < FXTableItem # # Construct new combobox table item @@ -518,7 +518,7 @@ module Fox def setFromControl(comboBox) self.text = comboBox.text end - + # Set selections as an array of strings def selections=(strings) @selections = strings @@ -528,30 +528,30 @@ module Fox self.text = @selections[0] end end - + # Return selections def selections @selections end end - + class FXMenuCheck # Return +true+ if this menu check button is in the checked state. def checked? self.checkState == TRUE end - + # Return +true+ if this menu check button is in the unchecked state. def unchecked? self.checkState == FALSE end - + # Return +true+ if this menu check button is in the indeterminate, or "maybe", state. def maybe? self.checkState == MAYBE end end - + class FXRadioButton # Return +true+ if this radio button is in the checked state. def checked? @@ -568,7 +568,7 @@ module Fox self.checkState == MAYBE end end - + class FXMenuRadio # Return +true+ if this menu radio button is in the checked state. def checked? @@ -585,7 +585,7 @@ module Fox self.checkState == MAYBE end end - + class FXObject require 'enumerator' def self.subclasses @@ -624,7 +624,7 @@ module Fox fillArc(x-r, y-r, 2*r, 2*r, 0, 360*64) end end - + class FXHVec def normalize! normalized = self.normalize @@ -632,7 +632,7 @@ module Fox self end end - + class FXTable # # Append _numColumns_ columns to the right of the table.. @@ -642,7 +642,7 @@ module Fox def appendColumns(numColumns=1, notify=false) insertColumns(self.numColumns, numColumns, notify) end - + # # Append _numRows_ rows to the bottom of the table.. # If _notify_ is +true+, a <tt>SEL_INSERTED</tt> message is sent to the @@ -651,7 +651,7 @@ module Fox def appendRows(numRows=1, notify=false) insertRows(self.numRows, numRows, notify) end - + # Select cell at (_row_, _col_). # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the table's message target # after the item is selected. @@ -692,7 +692,7 @@ module Fox end changes end - + =end end diff --git a/lib/fox16/dict.rb b/lib/fox16/dict.rb index 433c9a0..b9bc71f 100755 --- a/lib/fox16/dict.rb +++ b/lib/fox16/dict.rb @@ -23,7 +23,7 @@ module Fox pos = self.next(pos) end end - + # # Returns +true+ if this dictionary contains no key-value pairs. # diff --git a/lib/fox16/execute_nonmodal.rb b/lib/fox16/execute_nonmodal.rb index 51c9418..f8ae985 100644 --- a/lib/fox16/execute_nonmodal.rb +++ b/lib/fox16/execute_nonmodal.rb @@ -27,7 +27,7 @@ module Fox @__FTNonModal_block = block execute(placement) end - + # # Creates and shows the dialog, and registers the associated block to be # called when the dialog is closed. The block is passed a boolean argument diff --git a/lib/fox16/glgroup.rb b/lib/fox16/glgroup.rb index 00d08dd..eb8c6ab 100755 --- a/lib/fox16/glgroup.rb +++ b/lib/fox16/glgroup.rb @@ -14,7 +14,7 @@ module Fox FLT_MAX = 1.0e+20 FLT_MIN = -1.0e+20 - + # # Returns an initialized FXGLGroup instance # @@ -22,21 +22,21 @@ module Fox super @list = [] end - + # # Return number of objects in this group. # def size @list.size end - + # # Return child at position _pos_. # def [](pos) @list[pos] end - + # # Set child at position _pos_ to _obj_. # @@ -67,14 +67,14 @@ module Fox end box end - + # # Draw this group into _viewer_ (an FXGLViewer instance). # def draw(viewer) @list.each { |obj| obj.draw(viewer) } end - + # # Perform hit test in _viewer_ (an FXGLViewer instance). # @@ -87,7 +87,7 @@ module Fox end GL.PopName end - + # # Identify object by means of _path_. # @@ -102,7 +102,7 @@ module Fox def canDrag true end - + # # Drag group object around in _viewer_ (an FXGLViewer instance), # from (_fx_, _fy_) to (_tx_, _ty_). @@ -110,37 +110,37 @@ module Fox def drag(viewer, fx, fy, tx, ty) @list.each { |obj| obj.drag(viewer, fx, fy, tx, ty) } end - + # # Insert child object (_obj_) at position _pos_. # def insert(pos, obj) raise NotImplementedError end - + # # Prepend child object (_obj_). # def prepend(obj) @list.unshift(obj) end - + # # Append child object # def append(obj) @list << obj end - + alias << append - + # # Replace child object at position _pos_ with _obj_. # def replace(pos, obj) @list[pos] = obj end - + # # If _obj_ is a reference to an FXGLObject in this group, remove the # child object from the list. If _obj_ is an integer, remove the child @@ -153,9 +153,9 @@ module Fox @list.delete_at(obj) end end - + alias erase remove - + # # Remove all children from this group. # diff --git a/lib/fox16/glshapes.rb b/lib/fox16/glshapes.rb index c94872a..d612a12 100755 --- a/lib/fox16/glshapes.rb +++ b/lib/fox16/glshapes.rb @@ -8,10 +8,10 @@ module Fox # OpenGL point object # class FXGLPoint < FXGLObject - + # Point position, in model coordinates (a 3-element array) attr_accessor :pos - + # # Returns an initialized FXGLPoint instance. # If no arguments are passed to #new, the initial point position is @@ -34,14 +34,14 @@ module Fox @pos = args[0] end end - + # # Return the bounding box (an FXRangef instance) for this point. # def bounds FXRangef.new(@pos[0], @pos[0], @pos[1], @pos[1], @pos[2], @pos[2]) end - + # # Draw this point into _viewer_ (an FXGLViewer instance). # @@ -52,7 +52,7 @@ module Fox GL::Vertex(@pos) GL::End() end - + # # Perform hit test for this point in _viewer_ (an FXGLViewer instance). # @@ -67,13 +67,13 @@ module Fox # OpenGL line object # class FXGLLine < FXGLObject - + # Starting point for line [FXGLPoint] attr_accessor :fm - + # End point for line [FXGLPoint] attr_accessor :to - + # # Return an initialized FXGLLine instance. # @@ -102,7 +102,7 @@ module Fox @to = FXGLPoint.new(args[3], args[4], args[5]) end end - + # # Return the bounding box (an FXRangef instance) for this line. # @@ -114,7 +114,7 @@ module Fox [@fm.pos[2], @to.pos[2]].min, [@fm.pos[2], @to.pos[2]].max) end - + # # Draw this line into _viewer_ (an FXGLViewer instance). # @@ -126,7 +126,7 @@ module Fox GL::Vertex(@to.pos) GL::End() end - + # # Perform hit-test for this line in _viewer_ (an FXGLViewer instance). # @@ -145,10 +145,10 @@ module Fox # Cube width [Float] attr_accessor :width - + # Cube height [Float] attr_accessor :height - + # Cube depth [Float] attr_accessor :depth @@ -260,16 +260,16 @@ module Fox # Cone height [Float] attr_accessor :height - + # Cone base radius [Float] attr_accessor :radius - + # Number of slices (default is 20) [Integer] attr_accessor :slices - + # Number of stacks (default is 20) [Integer] attr_accessor :stacks - + # Number of loops (default is 4) [Integer] attr_accessor :loops @@ -304,7 +304,7 @@ module Fox @loops = LOOPS setRange(FXRangef.new(-@radius, @radius, 0, @height, -@radius, @radius)) end - + # # Draw this cone into _viewer_ (an FXGLViewer instance). # @@ -332,16 +332,16 @@ module Fox # Cylinder height [Float] attr_accessor :height - + # Cylinder radius [Float] attr_accessor :radius - + # Number of slices (default is 20) [Integer] attr_accessor :slices - + # Number of stacks (default is 20) [Integer] attr_accessor :stacks - + # Number of loops (default is 4) [Integer] attr_accessor :loops @@ -376,7 +376,7 @@ module Fox @loops = LOOPS setRange(FXRangef.new(-@radius, @radius, 0, @height, -@radius, @radius)) end - + # # Draw this cylinder into _viewer_ (an FXGLViewer instance). # @@ -406,10 +406,10 @@ module Fox # Sphere radius [Float] attr_accessor :radius - + # Number of slices (default is 20) [Integer] attr_accessor :slices - + # Number of stacks (default is 20) [Integer] attr_accessor :stacks @@ -442,7 +442,7 @@ module Fox @stacks = STACKS_NUMBER setRange(FXRangef.new(-@radius, @radius, -@radius, @radius, -@radius, @radius)) end - + # # Draw this sphere into _viewer_ (an FXGLViewer instance). # diff --git a/lib/fox16/input.rb b/lib/fox16/input.rb index 4fbd87b..1f69360 100755 --- a/lib/fox16/input.rb +++ b/lib/fox16/input.rb @@ -1,5 +1,5 @@ module Fox - + class FXApp alias addInputOrig addInput # :nodoc: @@ -7,7 +7,7 @@ module Fox # # Add a file descriptor _fileDesc_ to be watched for activity as determined # by _mode_, where _mode_ is a bitwise OR (+INPUT_READ+, +INPUT_WRITE+, +INPUT_EXCEPT+). - # A message of type +SEL_IO_READ+, +SEL_IO_WRITE+, or +SEL_IO_EXCEPT+ will be sent + # A message of type +SEL_IO_READ+, +SEL_IO_WRITE+, or +SEL_IO_EXCEPT+ will be sent # to the target when the specified activity is detected on the file descriptor. # # There are several forms for #addInput; the original form (from FOX) @@ -53,7 +53,7 @@ module Fox end addInputOrig(fd, mode, tgt, sel) end - + end # class FXApp - + end # module Fox diff --git a/lib/fox16/irb.rb b/lib/fox16/irb.rb index 875c3e4..5b7a346 100755 --- a/lib/fox16/irb.rb +++ b/lib/fox16/irb.rb @@ -29,7 +29,7 @@ module IRB trap("SIGINT") do irb.signal_handle end - + catch(:IRB_EXIT) do irb.eval_input end @@ -43,7 +43,7 @@ class Redirect < IRB::StdioInputMethod @dest = dest end - def gets + def gets close @dest.write(prompt) str = @dest.gets(@prompt) diff --git a/lib/fox16/iterators.rb b/lib/fox16/iterators.rb index 0135075..c4f83d9 100755 --- a/lib/fox16/iterators.rb +++ b/lib/fox16/iterators.rb @@ -10,7 +10,7 @@ module Fox def first getFirst end - + # # Calls block once for each item in the list, passing the item's text and # user data as parameters. @@ -374,7 +374,7 @@ module Fox end end end - + class FXDCPrint alias beginPrint0 beginPrint # :nodoc: diff --git a/lib/fox16/keys.rb b/lib/fox16/keys.rb index 3279cec..a5a6d2d 100755 --- a/lib/fox16/keys.rb +++ b/lib/fox16/keys.rb @@ -1,7 +1,7 @@ module Fox # Void symbol KEY_VoidSymbol = 0 - + # Miscellaneous KEY_BackSpace = 0xFF08 KEY_Tab = 0xFF09 @@ -14,7 +14,7 @@ module Fox KEY_Escape = 0xFF1B KEY_Delete = 0xFFFF KEY_Multi_key = 0xFF20 - + # Japanese KEY_Kanji = 0xFF21 KEY_Muhenkan = 0xFF22 @@ -33,7 +33,7 @@ module Fox KEY_Kana_Shift = 0xFF2E KEY_Eisu_Shift = 0xFF2F KEY_Eisu_toggle = 0xFF30 - + # Cursor KEY_Home = 0xFF50 KEY_Left = 0xFF51 @@ -46,7 +46,7 @@ module Fox KEY_Page_Down = 0xFF56 KEY_End = 0xFF57 KEY_Begin = 0xFF58 - + # Functions KEY_Select = 0xFF60 KEY_Print = 0xFF61 @@ -62,7 +62,7 @@ module Fox KEY_Mode_switch = 0xFF7E KEY_script_switch = 0xFF7E KEY_Num_Lock = 0xFF7F - + # Keypad KEY_KP_Space = 0xFF80 KEY_KP_Tab = 0xFF89 @@ -91,7 +91,7 @@ module Fox KEY_KP_Subtract = 0xFFAD KEY_KP_Decimal = 0xFFAE KEY_KP_Divide = 0xFFAF - + # Keypad numbers KEY_KP_0 = 0xFFB0 KEY_KP_1 = 0xFFB1 @@ -103,7 +103,7 @@ module Fox KEY_KP_7 = 0xFFB7 KEY_KP_8 = 0xFFB8 KEY_KP_9 = 0xFFB9 - + # Function keys KEY_F1 = 0xFFBE KEY_F2 = 0xFFBF @@ -165,7 +165,7 @@ module Fox KEY_R14 = 0xFFDF KEY_F35 = 0xFFE0 KEY_R15 = 0xFFE0 - + # Modifiers KEY_Shift_L = 0xFFE1 KEY_Shift_R = 0xFFE2 @@ -173,7 +173,7 @@ module Fox KEY_Control_R = 0xFFE4 KEY_Caps_Lock = 0xFFE5 KEY_Shift_Lock = 0xFFE6 - + KEY_Meta_L = 0xFFE7 KEY_Meta_R = 0xFFE8 KEY_Alt_L = 0xFFE9 @@ -182,8 +182,8 @@ module Fox KEY_Super_R = 0xFFEC KEY_Hyper_L = 0xFFED KEY_Hyper_R = 0xFFEE - - + + # ISO 9995 KEY_ISO_Lock = 0xFE01 KEY_ISO_Level2_Latch = 0xFE02 @@ -222,7 +222,7 @@ module Fox KEY_ISO_Emphasize = 0xFE32 KEY_ISO_Center_Object = 0xFE33 KEY_ISO_Enter = 0xFE34 - + KEY_dead_grave = 0xFE50 KEY_dead_acute = 0xFE51 KEY_dead_circumflex = 0xFE52 @@ -240,13 +240,13 @@ module Fox KEY_dead_voiced_sound = 0xFE5E KEY_dead_semivoiced_sound = 0xFE5F KEY_dead_belowdot = 0xFE60 - + KEY_First_Virtual_Screen = 0xFED0 KEY_Prev_Virtual_Screen = 0xFED1 KEY_Next_Virtual_Screen = 0xFED2 KEY_Last_Virtual_Screen = 0xFED4 KEY_Terminate_Server = 0xFED5 - + KEY_AccessX_Enable = 0xFE70 KEY_AccessX_Feedback_Enable = 0xFE71 KEY_RepeatKeys_Enable = 0xFE72 @@ -258,7 +258,7 @@ module Fox KEY_Overlay1_Enable = 0xFE78 KEY_Overlay2_Enable = 0xFE79 KEY_AudibleBell_Enable = 0xFE7A - + KEY_Pointer_Left = 0xFEE0 KEY_Pointer_Right = 0xFEE1 KEY_Pointer_Up = 0xFEE2 @@ -285,12 +285,12 @@ module Fox KEY_Pointer_Drag3 = 0xFEF7 KEY_Pointer_Drag4 = 0xFEF8 KEY_Pointer_Drag5 = 0xFEFD - + KEY_Pointer_EnableKeys = 0xFEF9 KEY_Pointer_Accelerate = 0xFEFA KEY_Pointer_DfltBtnNext = 0xFEFB KEY_Pointer_DfltBtnPrev = 0xFEFC - + # 3270 Terminal KEY_3270_Duplicate = 0xFD01 KEY_3270_FieldMark = 0xFD02 @@ -322,7 +322,7 @@ module Fox KEY_3270_CursorSelect = 0xFD1C KEY_3270_PrintScreen = 0xFD1D KEY_3270_Enter = 0xFD1E - + # Latin 1 KEY_space = 0x0020 KEY_exclam = 0x0021 @@ -421,7 +421,7 @@ module Fox KEY_bar = 0x007C KEY_braceright = 0x007D KEY_asciitilde = 0x007E - + KEY_nobreakspace = 0x00A0 KEY_exclamdown = 0x00A1 KEY_cent = 0x00A2 @@ -520,7 +520,7 @@ module Fox KEY_yacute = 0x00FD KEY_thorn = 0x00FE KEY_ydiaeresis = 0x00FF - + # Latin 2 KEY_Aogonek = 0x01A1 KEY_breve = 0x01A2 @@ -579,7 +579,7 @@ module Fox KEY_uring = 0x01F9 KEY_tcedilla = 0x01FE KEY_abovedot = 0x01FF - + # Latin 3 KEY_Hstroke = 0x02A1 KEY_Hcircumflex = 0x02A6 @@ -603,8 +603,8 @@ module Fox KEY_gcircumflex = 0x02F8 KEY_ubreve = 0x02FD KEY_scircumflex = 0x02FE - - + + # Latin 4 KEY_kra = 0x03A2 KEY_kappa = 0x03A2 @@ -642,7 +642,7 @@ module Fox KEY_uogonek = 0x03F9 KEY_utilde = 0x03FD KEY_umacron = 0x03FE - + # Katakana KEY_overline = 0x047E KEY_kana_fullstop = 0x04A1 @@ -714,7 +714,7 @@ module Fox KEY_voicedsound = 0x04DE KEY_semivoicedsound = 0x04DF KEY_kana_switch = 0x0FF7 - + # Arabic KEY_Arabic_comma = 0x05AC KEY_Arabic_semicolon = 0x05BB @@ -766,7 +766,7 @@ module Fox KEY_Arabic_shadda = 0x05F1 KEY_Arabic_sukun = 0x05F2 KEY_Arabic_switch = 0xFF7E - + # Cyrillic KEY_Serbian_dje = 0x06A1 KEY_Macedonia_gje = 0x06A2 @@ -875,7 +875,7 @@ module Fox KEY_Cyrillic_SHCHA = 0x06FD KEY_Cyrillic_CHE = 0x06FE KEY_Cyrillic_HARDSIGN = 0x06FF - + # Greek KEY_Greek_ALPHAaccent = 0x07A1 KEY_Greek_EPSILONaccent = 0x07A2 @@ -951,7 +951,7 @@ module Fox KEY_Greek_psi = 0x07F8 KEY_Greek_omega = 0x07F9 KEY_Greek_switch = 0xFF7E - + # Technical KEY_leftradical = 0x08A1 KEY_topleftradical = 0x08A2 @@ -1002,7 +1002,7 @@ module Fox KEY_uparrow = 0x08FC KEY_rightarrow = 0x08FD KEY_downarrow = 0x08FE - + # Special KEY_blank = 0x09DF KEY_soliddiamond = 0x09E0 @@ -1028,7 +1028,7 @@ module Fox KEY_bott = 0x09F6 KEY_topt = 0x09F7 KEY_vertbar = 0x09F8 - + # Publishing KEY_emspace = 0x0AA1 KEY_enspace = 0x0AA2 @@ -1113,7 +1113,7 @@ module Fox KEY_singlelowquotemark = 0x0AFD KEY_doublelowquotemark = 0x0AFE KEY_cursor = 0x0AFF - + # APL KEY_leftcaret = 0x0BA3 KEY_rightcaret = 0x0BA6 @@ -1134,7 +1134,7 @@ module Fox KEY_leftshoe = 0x0BDA KEY_lefttack = 0x0BDC KEY_righttack = 0x0BFC - + # Hebrew KEY_hebrew_doublelowline = 0x0CDF KEY_hebrew_aleph = 0x0CE0 @@ -1176,7 +1176,7 @@ module Fox KEY_hebrew_taw = 0x0CFA KEY_hebrew_taf = 0x0CFA KEY_Hebrew_switch = 0xFF7E - + # Thai KEY_Thai_kokai = 0x0DA1 KEY_Thai_khokhai = 0x0DA2 @@ -1262,7 +1262,7 @@ module Fox KEY_Thai_lekchet = 0x0DF7 KEY_Thai_lekpaet = 0x0DF8 KEY_Thai_lekkao = 0x0DF9 - + # Korean KEY_Hangul = 0xFF31 KEY_Hangul_Start = 0xFF32 diff --git a/lib/fox16/pseudokeyboard.rb b/lib/fox16/pseudokeyboard.rb index 40792e8..cfa1dcc 100755 --- a/lib/fox16/pseudokeyboard.rb +++ b/lib/fox16/pseudokeyboard.rb @@ -19,7 +19,7 @@ module Fox def initialize(tgt=nil) @target = tgt end - + def doKeyPress unless @target.nil? evt = FXEvent.new diff --git a/lib/fox16/pseudomouse.rb b/lib/fox16/pseudomouse.rb index 471524c..0061a02 100755 --- a/lib/fox16/pseudomouse.rb +++ b/lib/fox16/pseudomouse.rb @@ -18,7 +18,7 @@ module Fox def initialize(tgt=nil) @target = tgt end - + def doMotion unless @target.nil? evt = FXEvent.new diff --git a/lib/fox16/responder2.rb b/lib/fox16/responder2.rb index 2b18422..7fc418f 100755 --- a/lib/fox16/responder2.rb +++ b/lib/fox16/responder2.rb @@ -69,9 +69,9 @@ module Fox end result end - + end # class FXPseudoTarget - + end # module Fox # @@ -79,7 +79,7 @@ end # module Fox # which is mixed-in to all classes that have a message # target (i.e. Fox::FXDataTarget, Fox::FXRecentFiles # and Fox::FXWindow). -# +# module Responder2 # # Assign a "handler" for all FOX messages of type _messageType_ @@ -110,7 +110,7 @@ module Responder2 end @pseudoTarget.pconnect(message_type, callable_object ? callable_object : block) end - + end module Fox diff --git a/lib/fox16/scintilla.rb b/lib/fox16/scintilla.rb index 42147a2..983ba73 100755 --- a/lib/fox16/scintilla.rb +++ b/lib/fox16/scintilla.rb @@ -3,7 +3,7 @@ module Fox class FXScintilla - # + # @@ -3238,7 +3238,7 @@ module Fox sendMessage(2626, markerNumber, pixels) end - # Register an RGBA image for use in autocompletion lists. + # Register an RGBA image for use in autocompletion lists. # It has the width and height from RGBAImageSetWidth/Height def registerRGBAImage(type, pixels) sendMessage(2627, type, pixels) diff --git a/lib/fox16/signal.rb b/lib/fox16/signal.rb index 513f706..ce4c2f4 100755 --- a/lib/fox16/signal.rb +++ b/lib/fox16/signal.rb @@ -1,11 +1,11 @@ module Fox - + class FXApp alias addSignalOrig addSignal # :nodoc: # - # Register a signal processing message to be sent to target object when + # Register a signal processing message to be sent to target object when # the specified signal is raised. # # There are several forms for #addSignal; the original form (from FOX) @@ -65,7 +65,7 @@ module Fox end addSignalOrig(sig, tgt, sel, immediate, flags) end - + end # class FXApp - + end # module Fox diff --git a/lib/fox16/splashscreen.rb b/lib/fox16/splashscreen.rb index 5cfbe57..059e02c 100644 --- a/lib/fox16/splashscreen.rb +++ b/lib/fox16/splashscreen.rb @@ -26,7 +26,7 @@ module Fox # Store the action block @action = action - + # Construct the window contents FXVerticalFrame.new( self ) do |frame| text.each_line do |line| @@ -49,7 +49,7 @@ module Fox end super end - + def update_status(msg) @status.text = msg end @@ -65,7 +65,7 @@ if $0 == __FILE__ end end fake_site = FakeSite.new - + include Fox FXApp.new( "Test SplashScreen" ) do |theApp| diff --git a/lib/fox16/timeout.rb b/lib/fox16/timeout.rb index 6aae9b6..67eac64 100755 --- a/lib/fox16/timeout.rb +++ b/lib/fox16/timeout.rb @@ -1,5 +1,5 @@ module Fox - + class FXApp alias addTimeoutOrig addTimeout # :nodoc: @@ -130,7 +130,7 @@ module Fox remainingTimeoutOrig(hsh[:target], hsh[:selector]) end end - + end # class FXApp - + end # module Fox diff --git a/lib/fox16/undolist.rb b/lib/fox16/undolist.rb index 09445a3..4908067 100755 --- a/lib/fox16/undolist.rb +++ b/lib/fox16/undolist.rb @@ -3,9 +3,9 @@ # FXCommand classes from the standard FOX distribution. Since those # classes are independent of the rest of FOX this is a simpler (and probably # more efficient) approach than trying to wrap the original C++ classes. -# +# # Notes (by Jeroen, lifted from FXUndoList.cpp): -# +# # * When a command is undone, it's moved to the redo list. # * When a command is redone, it's moved back to the undo list. # * Whenever adding a new command, the redo list is deleted. @@ -16,16 +16,16 @@ # can be set. The <em>mark</em> is basically a counter which is incremented # with every undo record added, and decremented when undoing a command. # When we get back to 0, we are back to the unmodified state. -# +# # If, after setting the mark, we have called FXUndoList#undo, then # the mark can be reached by calling FXUndoList#redo. -# +# # If the marked position is in the redo-list, then adding a new undo # record will cause the redo-list to be deleted, and the marked position # will become unreachable. -# +# # The marked state may also become unreachable when the undo list is trimmed. -# +# # * You can call also kill the redo list without adding a new command # to the undo list, although this may cause the marked position to # become unreachable. @@ -44,9 +44,9 @@ module Fox # code should implement any number of command classes and then add then to an # FXUndoList instance. For an example of how this works, see the textedit # example program from the FXRuby distribution. - # + # # == Class Constants - # + # # [FXUndoList::ID_UNDO] Message identifier for the undo method. # When a +SEL_COMMAND+ message with this identifier # is sent to an undo list, it undoes the last command. @@ -251,7 +251,7 @@ module Fox nil end end - + # # Return the name of the first available redo command. # If no redo command is available, returns +nil+. diff --git a/rdoc-sources/FX4Splitter.rb b/rdoc-sources/FX4Splitter.rb index 72b5b45..d24c544 100755 --- a/rdoc-sources/FX4Splitter.rb +++ b/rdoc-sources/FX4Splitter.rb @@ -55,28 +55,28 @@ module Fox # Horizontal split fraction [Integer] attr_accessor :hSplit - + # Vertical split fraction [Integer] attr_accessor :vSplit - + # Current splitter style, either +FOURSPLITTER_TRACKING+ or +FOURSPLITTER_NORMAL+ attr_accessor :splitterStyle - + # Splitter bar width, in pixels [Integer] attr_accessor :barSize - + # Currently expanded child (some combination of the expansion flags, or zero if no panes are expanded) attr_accessor :expanded - + # Top left child window, if any [FXWindow] attr_reader :topLeft - + # Top right child window, if any [FXWindow] attr_reader :topRight - + # Bottom left child window, if any [FXWindow] attr_reader :bottomLeft - + # Bottom right child window, if any [FXWindow] attr_reader :bottomRight @@ -94,7 +94,7 @@ module Fox # def initialize(p, opts=FOURSPLITTER_NORMAL, x=0, y=0, width=0, height=0) # :yields: theSplitter end - + # # Return an initialized FX4Splitter instance, initially shown as four unexpanded panes; # notifies _tgt_ about size changes. diff --git a/rdoc-sources/FX7Segment.rb b/rdoc-sources/FX7Segment.rb index 521d1a5..98143e3 100644 --- a/rdoc-sources/FX7Segment.rb +++ b/rdoc-sources/FX7Segment.rb @@ -12,32 +12,32 @@ module Fox class FX7Segment < FXFrame # The text for this label [String] attr_accessor :text - + # The text color [FXColor] attr_accessor :textColor - + # Cell width, in pixels [Integer] attr_accessor :cellWidth - + # Cell height, in pixels [Integer] attr_accessor :cellHeight - + # Segment thickness, in pixels [Integer] attr_accessor :thickness - + # Current text-justification mode [Integer] attr_accessor :justify - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText - + # Create a seven segment display def initialize(p, text, opts=SEVENSEGMENT_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: the7Segment end - + # # Change 7 segment style, where _style_ is either +SEVENSEGMENT_NORMAL+ or # +SEVENSEGMENT_SHADOW+. diff --git a/rdoc-sources/FXAccelTable.rb b/rdoc-sources/FXAccelTable.rb index 1a42678..7d4dbdb 100755 --- a/rdoc-sources/FXAccelTable.rb +++ b/rdoc-sources/FXAccelTable.rb @@ -36,7 +36,7 @@ module Fox # doc = accelTable.targetofAccel(fxparseAccel("Ctrl+S")) # def targetOfAccel(hotKey) ; end - + # # Remove mapping for specified hot key. # Here, _hotKey_ is a code representing an accelerator key as returned diff --git a/rdoc-sources/FXApp.rb b/rdoc-sources/FXApp.rb index 1025c61..fd62bcd 100755 --- a/rdoc-sources/FXApp.rb +++ b/rdoc-sources/FXApp.rb @@ -1,61 +1,61 @@ module Fox - # FOX Event + # FOX Event class FXEvent - + # Event type [Integer] attr_reader :type - + # Time of last event [Integer] attr_reader :time - + # Window-relative x-coordinate [Integer] attr_reader :win_x - + # Window-relative y-coordinate [Integer] attr_reader :win_y - + # Root window x-coordinate [Integer] attr_reader :root_x - + # Root window y-coordinate [Integer] attr_reader :root_y - + # Keyboard/modifier state [Integer] attr_reader :state - + # Button, keysym or mode; DDE source [Integer] attr_reader :code - + # Text of keyboard event [String] attr_reader :text - + # Window-relative x-coordinate of previous mouse location [Integer] attr_reader :last_x - + # Window-relative y-coordinate of previous mouse location [Integer] attr_reader :last_y - + # Window-relative x-coordinate of mouse press [Integer] attr_reader :click_x - + # Window-relative y-coordinate of mouse press [Integer] attr_reader :click_y - + # Root window x-coordinate of mouse press [Integer] attr_reader :rootclick_x - + # Root window y-coordinate of mouse press [Integer] attr_reader :rootclick_y - + # Time of mouse button press [Integer] attr_reader :click_time - + # Mouse button pressed [Integer] attr_reader :click_button - + # Click count [Integer] attr_reader :click_count - + # Target drag type being requested [Integer] attr_reader :target @@ -93,7 +93,7 @@ module Fox # When a signal handler object is registered with the application using # the addSignal method, a +SEL_SIGNAL+ message may be sent to the message # target. - # + # # === File input modes for #addInput # # +INPUT_NONE+:: inactive @@ -153,10 +153,10 @@ module Fox # Vendor name [String] attr_reader :vendorName - + # Argument count [Integer] attr_reader :argc - + # Argument vector [Array] attr_reader :argv @@ -192,10 +192,10 @@ module Fox # Default background color for tooltips [FXColor] attr_accessor :tipbackColor - + # Default text color for selected menu items [FXColor] attr_accessor :selMenuTextColor - + # Default background color for selected menu items [FXColor] attr_accessor :selMenuBackColor @@ -219,7 +219,7 @@ module Fox # The window at the end of the focus chain, if any [FXWindow] attr_reader :focusWindow - + # The active top-level window, if any [FXWindow] attr_reader :activeWindow @@ -265,13 +265,13 @@ module Fox # Number of wheel lines [Integer] attr_accessor :wheelLines - + # Scroll bar size [Integer] attr_accessor :scrollBarSize # Amount of time (in milliseconds) to yield to Ruby's thread scheduler [Integer] attr_accessor :sleepTime - + # Message translator [FXTranslator] attr_accessor :translator @@ -290,7 +290,7 @@ module Fox # Open connection to display; this is called by #init. # def openDisplay(dpyname=nil) ; end - + # Close connection to the display def closeDisplay() ; end @@ -304,9 +304,9 @@ module Fox # Process any timeouts due at this time. # def handleTimeouts(); end - + # - # Add signal processing message to be sent to target object when + # Add signal processing message to be sent to target object when # the signal _sig_ is raised; flags are to be set as per POSIX definitions. # When _immediate_ is +true+, the message will be sent to the target right away; # this should be used with extreme care as the application is interrupted @@ -367,7 +367,7 @@ module Fox # Run event loop while there are events are available in the queue. # Returns 1 when all events in the queue have been handled, and 0 when # the event loop was terminated due to #stop or #stopModal. - # Except for the modal window and its children, user input to all windows + # Except for the modal window and its children, user input to all windows # is blocked; if the modal window is +nil+, all user input is blocked. # def runModalWhileEvents(window=nil); end @@ -376,20 +376,20 @@ module Fox # until #stopModal is called. def runModal(); end - # Run a modal event loop for the given window, until #stop or #stopModal is + # Run a modal event loop for the given window, until #stop or #stopModal is # called. Except for the modal window and its children, user input to all # windows is blocked; if the modal window is +nil+ all user input is blocked. def runModalFor(window); end - - # Run modal while window is shown, or until #stop or #stopModal is called. + + # Run modal while window is shown, or until #stop or #stopModal is called. # Except for the modal window and its children, user input to all windows # is blocked; if the modal window is +nil+ all user input is blocked. def runModalWhileShown(window); end - + # Run popup menu while shown, until #stop or #stopModal is called. # Also returns when entering previous cascading popup menu. def runPopup(window); end - + # Returns +true+ if the window is modal def modal?(window) ; end @@ -397,13 +397,13 @@ module Fox # All more deeper nested event loops will be terminated with code equal # to 0, while the outermost event loop will return code equal to _value_. def stop(value=0); end - + # # Break out of the matching modal loop, returning code equal to _value_. # All deeper nested event loops are terminated with code equal to 0. # def stopModal(window, value=0); end - + # # Break out of the innermost modal loop, returning code equal to _value_. # @@ -421,7 +421,7 @@ module Fox # Paint all windows marked for repainting. # On return all the applications windows have been painted. def repaint(); end - + # # Return a reference to the registry (an FXRegistry instance). # The registry keeps settings and configuration information for an application, @@ -438,7 +438,7 @@ module Fox # Exit application. # Closes the display and writes the registry. def exit(code=0); end - + # # Register a drag type with the given name and return the drag # drag type. If this drag type has already been registered, this @@ -461,25 +461,25 @@ module Fox # Beep def beep(); end - + # Return application instance def FXApp.instance(); end - + # End the most deeply nested wait-cursor block. # See also #beginWaitCursor. def endWaitCursor(); end - + # # Return a reference to one of the default application cursors (an # FXCursor instance), where _which_ is one of the default cursor # identifiers listed above, e.g. # # rotateCursor = app.getDefaultCursor(DEF_ROTATE_CURSOR) - # + # # See also #setDefaultCursor. # def getDefaultCursor(which) ; end - + # # Replace one of the default application cursors with _cursor_; e.g # @@ -488,7 +488,7 @@ module Fox # See also #getDefaultCursor. # def setDefaultCursor(which, cursor); end - + # # Write a window and its children, and all resources reachable from this # window, into the stream _store_ (an FXStream instance). @@ -529,13 +529,13 @@ module Fox # Dump widget information def dumpWidgets() ; end - + # Return the number of existing windows. def windowCount; end - + # Enable support for multithreaded applications def enableThreads(); end - + # Disable support for multithreaded applications def disableThreads(); end diff --git a/rdoc-sources/FXBMPIcon.rb b/rdoc-sources/FXBMPIcon.rb index 9f8e270..5bde492 100755 --- a/rdoc-sources/FXBMPIcon.rb +++ b/rdoc-sources/FXBMPIcon.rb @@ -12,12 +12,12 @@ module Fox # Return the suggested file extension for this image type ("bmp"). # def FXBMPIcon.fileExt; end - + # # Return the MIME type for this image type # def FXBMPIcon.mimeType; end - + # # Return an initialized FXBMPIcon instance. # @@ -59,7 +59,7 @@ module Fox # +height+:: height [Integer] # def Fox.fxsaveBMP(store, data, transp, width, height); end - + # # Return +true+ if _store_ (an FXStream instance) contains a BMP image. # diff --git a/rdoc-sources/FXBMPImage.rb b/rdoc-sources/FXBMPImage.rb index d881261..e34a8d1 100755 --- a/rdoc-sources/FXBMPImage.rb +++ b/rdoc-sources/FXBMPImage.rb @@ -7,12 +7,12 @@ module Fox # Return the suggested file extension for this image type ("bmp"). # def FXBMPImage.fileExt; end - + # # Return the MIME type for this image type # def FXBMPImage.mimeType; end - + # # Return an initialized FXBMPImage instance. # diff --git a/rdoc-sources/FXBitmap.rb b/rdoc-sources/FXBitmap.rb index c836564..eca2de3 100755 --- a/rdoc-sources/FXBitmap.rb +++ b/rdoc-sources/FXBitmap.rb @@ -8,7 +8,7 @@ module Fox # of the X server or GDI (on Microsoft Windows). # The client-side pixel array is of size height x (width+7)/8 bytes; in other # words, 8 pixels packed into a single byte, starting with bit zero on the left. - # + # # === Image rendering hints # # +BITMAP_KEEP+:: Keep pixel data in client @@ -17,7 +17,7 @@ module Fox # +BITMAP_SHMP+:: Using shared memory pixmap # class FXBitmap < FXDrawable - + alias data getData # @@ -51,10 +51,10 @@ module Fox # Return the pixel data. def getData(); end - + # Return the option flags. def options; end - + # Set the options. def options=(opts); end @@ -63,7 +63,7 @@ module Fox # Render the server-side representation of the bitmap from the client-side pixels. def render() ; end - + # # Release the client-side pixels buffer and free it if it was owned. # If it is not owned, the image just forgets about the buffer. @@ -79,7 +79,7 @@ module Fox # Save pixel data only def savePixels(stream); end - + # Load pixel data from a stream def loadPixels(stream); end @@ -88,19 +88,19 @@ module Fox # Change pixel at (_x_, _y_), where _color_ is either +true+ or +false+. def setPixel(x, y, color) ; end - + # # Rescale pixels image to the specified width and height; this calls # #resize to adjust the client and server side representations. # def scale(w, h); end - + # Mirror the bitmap horizontally and/or vertically def mirror(horizontal, vertical); end - + # Rotate bitmap by _degrees_ degrees (counter-clockwise) def rotate(degrees); end - + # # Crop bitmap to given rectangle; this calls #resize to adjust the client # and server side representations. The new bitmap may be smaller or larger @@ -108,7 +108,7 @@ module Fox # least one pixel of overlap between the old and the new bitmap. # def crop(x, y, w, h, color=false); end - + # Fill bitmap with uniform value def fill(color); end end diff --git a/rdoc-sources/FXBitmapFrame.rb b/rdoc-sources/FXBitmapFrame.rb index 895a73d..8bb855e 100755 --- a/rdoc-sources/FXBitmapFrame.rb +++ b/rdoc-sources/FXBitmapFrame.rb @@ -5,23 +5,23 @@ module Fox # deleted elsewhere. # class FXBitmapFrame < FXFrame - + # The current image being displayed [FXBitmap] attr_accessor :bitmap - + # The color used for the "on" bits in the bitmap [FXColor] attr_accessor :onColor - + # The color used for the "off" bits in the bitmap [FXColor] attr_accessor :offColor - + # # The current justification mode, some combination of the flags # +JUSTIFY_LEFT+, +JUSTIFY_RIGHT+, +JUSTIFY_TOP+ and +JUSTIFY_BOTTOM+ # [Integer] # attr_accessor :justify - + # # Return an initialized FXBitmapFrame instance. # diff --git a/rdoc-sources/FXBitmapView.rb b/rdoc-sources/FXBitmapView.rb index 3b6206c..7bfee68 100755 --- a/rdoc-sources/FXBitmapView.rb +++ b/rdoc-sources/FXBitmapView.rb @@ -21,10 +21,10 @@ module Fox # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance. # class FXBitmapView < FXScrollArea - + # The bitmap [FXBitmap] attr_accessor :bitmap - + # The color used for the "on" bits in the bitmap [FXColor] attr_accessor :onColor diff --git a/rdoc-sources/FXButton.rb b/rdoc-sources/FXButton.rb index 71da51f..1ec24de 100755 --- a/rdoc-sources/FXButton.rb +++ b/rdoc-sources/FXButton.rb @@ -45,10 +45,10 @@ module Fox # +BUTTON_NORMAL+:: Default button flags (<tt>FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT</tt>) # class FXButton < FXLabel - + # Button state (one of +STATE_UP+, +STATE_DOWN+, etc.) [Integer] attr_accessor :state - + # Button style flags (some combination of +BUTTON_AUTOGRAY+, +BUTTON_AUTOHIDE+, etc.) [Integer] attr_accessor :buttonStyle diff --git a/rdoc-sources/FXCheckButton.rb b/rdoc-sources/FXCheckButton.rb index 6c28f54..56779d6 100755 --- a/rdoc-sources/FXCheckButton.rb +++ b/rdoc-sources/FXCheckButton.rb @@ -29,25 +29,25 @@ module Fox # +CHECKBUTTON_AUTOHIDE+:: Automatically hide when not updated # +CHECKBUTTON_PLUS+:: Draw a plus sign for unchecked and minus sign for checked # +CHECKBUTTON_NORMAL+:: <tt>JUSTIFY_NORMAL|ICON_BEFORE_TEXT</tt> - + class FXCheckButton < FXLabel # Check button state (+TRUE+, +FALSE+ or +MAYBE+) [Integer] attr_accessor :checkState - + # Check button style [Integer] attr_accessor :checkButtonStyle - + # Box background color [FXColor] attr_accessor :boxColor - + # Box check color [FXColor] attr_accessor :checkColor # Construct new check button def initialize(parent, text, target=nil, selector=0, opts=CHECKBUTTON_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theCheckButton end - + # # Set the check button state to one of +TRUE+, +FALSE+ or +MAYBE+. # If _notify_ is +true+, send a +SEL_COMMAND+ message to the message target diff --git a/rdoc-sources/FXColorBar.rb b/rdoc-sources/FXColorBar.rb index 820994d..47c6afa 100755 --- a/rdoc-sources/FXColorBar.rb +++ b/rdoc-sources/FXColorBar.rb @@ -25,19 +25,19 @@ module Fox # Hue [Float] attr_accessor :hue - + # Saturation [Float] attr_accessor :sat - + # Value [Float] attr_accessor :val - + # Color bar style (one of +COLORBAR_HORIZONTAL+ or +COLORBAR_VERTICAL+) [Integer] attr_accessor :barStyle - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText diff --git a/rdoc-sources/FXColorDialog.rb b/rdoc-sources/FXColorDialog.rb index 8a996b1..873baba 100755 --- a/rdoc-sources/FXColorDialog.rb +++ b/rdoc-sources/FXColorDialog.rb @@ -23,14 +23,14 @@ module Fox # The color [FXColor] attr_accessor :rgba - + # Only opaque colors allowed [Boolean] attr_writer :opaqueOnly # Construct color dialog def initialize(owner, title, opts=0, x=0, y=0, width=0, height=0) # :yields: theColorDialog end - + # Return +true+ if only opaque colors allowed def opaqueOnly?() ; end end diff --git a/rdoc-sources/FXColorList.rb b/rdoc-sources/FXColorList.rb index 1901570..1942279 100644 --- a/rdoc-sources/FXColorList.rb +++ b/rdoc-sources/FXColorList.rb @@ -3,13 +3,13 @@ module Fox class FXColorItem < FXListItem # Item color [FXColor] attr_accessor :color - + # Return a new color item, initialized with the given text, color and # user data. def initialize(text, clr, data=nil) # :yields: theColorItem end end - + # Displays a list of colors class FXColorList < FXList diff --git a/rdoc-sources/FXColorRing.rb b/rdoc-sources/FXColorRing.rb index c1b520e..d2b7016 100644 --- a/rdoc-sources/FXColorRing.rb +++ b/rdoc-sources/FXColorRing.rb @@ -17,31 +17,31 @@ module Fox # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance. # class FXColorRing < FXFrame - + # Hue [Float] attr_accessor :hue - + # Saturation [Float] attr_accessor :sat - + # Value [Float] attr_accessor :val - + # Width of hue ring in pixels [Integer] attr_accessor :ringWidth - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText - + # # Return an initialized FXColorRing instance. # def initialize(p, target=nil, selector=0, opts=FRAME_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theColorRing end - + # Set the hue, saturation and value (all floating point values) def setHueSatVal(h, s, v); end end diff --git a/rdoc-sources/FXColorSelector.rb b/rdoc-sources/FXColorSelector.rb index 610a92c..ffdb2d6 100755 --- a/rdoc-sources/FXColorSelector.rb +++ b/rdoc-sources/FXColorSelector.rb @@ -40,18 +40,18 @@ module Fox # +ID_ALPHA_TEXT+:: x # +ID_ALPHA_LABEL+:: x # +ID_COLORPICK+:: x - + class FXColorSelector < FXPacker # The "Accept" button [FXButton] attr_reader :acceptButton - + # The "Cancel" button [FXButton] attr_reader :cancelButton - + # The color [FXColor] attr_accessor :rgba - + # Only opaque colors allowed [Boolean] attr_writer :opaqueOnly diff --git a/rdoc-sources/FXColorWell.rb b/rdoc-sources/FXColorWell.rb index c7df1e4..881469c 100755 --- a/rdoc-sources/FXColorWell.rb +++ b/rdoc-sources/FXColorWell.rb @@ -32,18 +32,18 @@ module Fox # === Message identifiers # # +ID_COLORDIALOG+:: x - + class FXColorWell < FXFrame # The color [FXColor] attr_accessor :rgba - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText - + # Only opaque colors allowed [Boolean] attr_writer :opaqueOnly diff --git a/rdoc-sources/FXColorWheel.rb b/rdoc-sources/FXColorWheel.rb index 6cb7b53..ccf4772 100755 --- a/rdoc-sources/FXColorWheel.rb +++ b/rdoc-sources/FXColorWheel.rb @@ -17,17 +17,17 @@ module Fox # Hue [Float] attr_accessor :hue - + # Saturation [Float] attr_accessor :sat - + # Value [Float] attr_accessor :val - - # Status line help text [String] + + # Status line help text [String] attr_accessor :helpText - - # Tool tip message [String] + + # Tool tip message [String] attr_accessor :tipText # diff --git a/rdoc-sources/FXComboBox.rb b/rdoc-sources/FXComboBox.rb index 42daa6a..c997a18 100755 --- a/rdoc-sources/FXComboBox.rb +++ b/rdoc-sources/FXComboBox.rb @@ -41,46 +41,46 @@ module Fox # Editable state [Boolean] attr_writer :editable - + # Text [String] attr_accessor :text - + # Number of columns [Integer] attr_accessor :numColumns - + # Text justification mode; default is +JUSTIFY_LEFT+ [Integer] attr_accessor :justify - + # Number of items in the list [Integer] attr_reader :numItems - + # Number of visible items in the drop-down list [Integer] attr_accessor :numVisible - + # Index of current item, or -1 if no current item [Integer] attr_accessor :currentItem - + # Text font [FXFont] attr_accessor :font - + # Combo box style [Integer] attr_accessor :comboStyle - + # Window background color [FXColor] attr_accessor :backColor - + # Text color [FXColor] attr_accessor :textColor - + # Background color for selected items [FXColor] attr_accessor :selBackColor - + # Text color for selected items [FXColor] attr_accessor :selTextColor - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText @@ -108,7 +108,7 @@ module Fox # Return the combo box text def to_s; end - + # Return +true+ if combobox is editable def editable?() ; end @@ -139,7 +139,7 @@ module Fox # Prepend an item to the list with the specified _text_ and user _data_ def prependItem(text, data=nil) ; end - + # # Move item from _oldIndex_ to _newIndex_ and return the new index of the item. # Raises IndexError if either _oldIndex_ or _newIndex_ is out of bounds. @@ -203,7 +203,7 @@ module Fox # Sort items using current sort function def sortItems() ; end - + # # Set current item to _index_, where _index_ is the zero-based index of # the item. If _notify_ is +true+, a +SEL_COMMAND+ message is sent diff --git a/rdoc-sources/FXComposite.rb b/rdoc-sources/FXComposite.rb index cfec452..e3c2fe8 100755 --- a/rdoc-sources/FXComposite.rb +++ b/rdoc-sources/FXComposite.rb @@ -19,12 +19,12 @@ module Fox # Constructor def initialize(parent, opts=0, x=0, y=0, width=0, height=0) # :yields: theComposite end - + # # Return the width of the widest child window. # def maxChildWidth() ; end - + # # Return the height of the tallest child window. # diff --git a/rdoc-sources/FXCursor.rb b/rdoc-sources/FXCursor.rb index 591d405..5abb140 100755 --- a/rdoc-sources/FXCursor.rb +++ b/rdoc-sources/FXCursor.rb @@ -22,13 +22,13 @@ module Fox # Width of cursor, in pixels (returns zero for stock cursors) [Integer] attr_reader :width - + # Height of cursor, in pixels (returns zero for stock cursors) [Integer] attr_reader :height - + # Hotspot x-coordinate (returns zero for stock cursors) [Integer] attr_accessor :hotX - + # Hotspot y-coordinate (returns zero for stock cursors) [Integer] attr_accessor :hotY @@ -38,13 +38,13 @@ module Fox # def initialize(a, curid=CURSOR_ARROW) # :yields: theCursor end - + # # Make cursor from _src_ and _msk_; cursor size should be 32x32 for portability! # def initialize(a, pix, width=32, height=32, hotX=-1, hotY=-1) # :yields: theCursor end - + # # Make cursor from FXColor pixels; cursor size should be 32x32 for portability! # @@ -55,12 +55,12 @@ module Fox # Save pixel data only. # def savePixels(stream) ; end - + # # Load pixel data only. # def loadPixels(stream) ; end - + # Return +true+ if there is color in the cursor. def color?; end end diff --git a/rdoc-sources/FXDC.rb b/rdoc-sources/FXDC.rb index 3d9fc23..4616c62 100755 --- a/rdoc-sources/FXDC.rb +++ b/rdoc-sources/FXDC.rb @@ -1,17 +1,17 @@ module Fox # # Line segment - # - class FXSegment + # + class FXSegment # x-coordinate of the starting point [Integer] attr_accessor :x1 - + # y-coordinate of the starting point [Integer] attr_accessor :y1 - + # x-coordinate of the endpoint [Integer] attr_accessor :x2 - + # y-coordinate of the endpoint [Integer] attr_accessor :y2 end @@ -19,24 +19,24 @@ module Fox # # Arc # - class FXArc + class FXArc # x-coordinate of center point [Integer] attr_accessor :x - + # y-coordinate of center point [Integer] attr_accessor :y - + # Width [Integer] attr_accessor :w - + # Height [Integer] attr_accessor :h - + # Start of the arc, relative to the three-o'clock position from the center, in units of degrees * 64 [Integer] attr_accessor :a - + # Path and extent of the arc, relative to the three-o'clock position from the center, in units of degrees * 64 [Integer] - attr_accessor :b + attr_accessor :b end # @@ -88,7 +88,7 @@ module Fox # === Fill Styles # # +FILL_SOLID+:: Fill with solid color - # +FILL_TILED+:: Fill with tiled bitmap + # +FILL_TILED+:: Fill with tiled bitmap # +FILL_STIPPLED+:: Fill where stipple mask is 1 # +FILL_OPAQUESTIPPLED+:: Fill with foreground where mask is 1, background otherwise # @@ -131,67 +131,67 @@ module Fox # Application [FXApp] attr_reader :app - + # Foreground drawing color [FXColor] attr_accessor :foreground - + # Background drawing color [FXColor] attr_accessor :background - + # Dash pattern [String] attr_reader :dashPattern - + # Dash offset [Integer] attr_reader :dashOffset - + # Dash length [Integer] attr_reader :dashLength - + # Line width; a line width of zero means thinnest and fastest possible [Integer] attr_accessor :lineWidth - + # Line cap style, one of +CAP_NOT_LAST+, +CAP_BUTT+, +CAP_ROUND+ or +CAP_PROJECTING+ [Integer] attr_accessor :lineCap - + # Line join style, one of +JOIN_MITER+, +JOIN_ROUND+ or +JOIN_BEVEL+ [Integer] attr_accessor :lineJoin - + # Line style, one of +LINE_SOLID+, +LINE_ONOFF_DASH+ or +LINE_DOUBLE_DASH+ [Integer] attr_accessor :lineStyle - + # Fill style, one of +FILL_SOLID+, +FILL_TILED+, +FILL_STIPPLED+ or +FILL_OPAQUESTIPPLED+ [Integer] attr_accessor :fillStyle - + # Fill rule, one of +RULE_EVEN_ODD+ or +RULE_WINDING+ [Integer] attr_accessor :fillRule - + # Raster op function, one of +BLT_CLR+, +BLT_SRC+, +BLT_DST+, etc. (see list above) [Integer] attr_accessor :function - + # Tile image [FXImage] attr_accessor :tile - + # Stipple pattern [FXBitmap or Integer] attr_accessor :stipple - + # Clip region [FXRegion] attr_writer :clipRegion - + # Clip rectangle [FXRectangle] attr_reader :clipRectangle - + # X-coordinate of clip rectangle [Integer] attr_reader :clipX - + # Y-coordinate of clip rectangle [Integer] attr_reader :clipY - + # Width of clip rectangle, in pixels [Integer] attr_reader :clipWidth - + # Height of clip rectangle, in pixels [Integer] attr_reader :clipHeight - + # Font to draw text with [FXFont] attr_accessor :font @@ -207,7 +207,7 @@ module Fox # +y+:: y-coordinate of the pixel of interest [Integer] # def readPixel(x, y) ; end - + # # Draw a point at (_x_, _y_) in the current foreground drawing color. # @@ -219,7 +219,7 @@ module Fox # See also #drawPoints and #drawPointsRel. # def drawPoint(x, y) ; end - + # # Draw multiple points, where _points_ is an array of FXPoint instances. # @@ -230,7 +230,7 @@ module Fox # See also #drawPoint and #drawPointsRel. # def drawPoints(points) ; end - + # # Draw multiple points, where _points_ is an array of FXPoint instances. # Unlike #drawPoints, where each of the points is drawn relative to the @@ -244,7 +244,7 @@ module Fox # See also #drawPoint and #drawPoints. # def drawPointsRel(points) ; end - + # # Draw the line from (<em>x1</em>, <em>y1</em>) to (<em>x2</em>, <em>y2</em>). # @@ -258,7 +258,7 @@ module Fox # See also #drawLines and #drawLinesRel. # def drawLine(x1, y1, x2, y2) ; end - + # # Draw connected lines, where _points_ is an array of FXPoint instances. # The number of lines drawn is equal to the size of the _points_ @@ -272,7 +272,7 @@ module Fox # See also #drawLine and #drawLinesRel. # def drawLines(points) ; end - + # # Draw connected lines, where _points_ is an array of FXPoint instances. # The number of lines drawn is equal to the size of the _points_ @@ -287,7 +287,7 @@ module Fox # See also #drawLine and #drawLines. # def drawLinesRel(points) ; end - + # # Draw mutiple, unconnected lines (i.e. line segments), where _segments_ is # an array of FXSegment instances. @@ -297,7 +297,7 @@ module Fox # +segments+:: an array of FXSegment instances [Array] # def drawLineSegments(segments) ; end - + # # Draw rectangle with upper-left corner at (_x_, _y_) and with width and height (_w_, _h_). # @@ -311,7 +311,7 @@ module Fox # See also #drawRectangles, #fillRectangle and #fillRectangles. # def drawRectangle(x, y, w, h) ; end - + # # Draw multiple rectangles, where _rectangles_ is an array of FXRectangle instances. # @@ -322,7 +322,7 @@ module Fox # See also #drawRectangle, #fillRectangle and #fillRectangles. # def drawRectangles(rectangles) ; end - + # # Draw a rounded rectangle with ellipse width _ew_ and ellipse height _eh_. # @@ -356,7 +356,7 @@ module Fox # See also #drawArcs, #fillArc and #fillArcs. # def drawArc(x, y, w, h, start, extent) ; end - + # # Draw arcs, where _arcs_ is an array of FXArc instances. # @@ -386,7 +386,7 @@ module Fox # See also #drawRectangle, #drawRectangles and #fillRectangles. # def fillRectangle(x, y, w, h) ; end - + # # Draw filled rectangles, where _rectangles_ is an array of FXRectangle instances. # @@ -412,7 +412,7 @@ module Fox def fillChord(x, y, w, h, ang1, ang2) ; end def fillChords(chords, nchords) ; end - + # # Draw filled arc (see documentation for #drawArc). # @@ -428,7 +428,7 @@ module Fox # See also #drawArc, #drawArcs and #fillArcs. # def fillArc(x, y, w, h, start, extent) ; end - + # # Draw filled arcs, where _arcs_ is an array of FXArc instances. # @@ -439,7 +439,7 @@ module Fox # See also #drawArc, #drawArcs and #fillArc. # def fillArcs(arcs) ; end - + # # Draw a filled ellipse. # @@ -471,7 +471,7 @@ module Fox # +points+:: an array of FXPoint instances [Array] # def fillComplexPolygon(points) ; end - + # # Draw filled polygon with relative points, where _points_ is an array of FXPoint instances. # @@ -498,7 +498,7 @@ module Fox # +points+:: an array of FXPoint instances [Array] # def fillComplexPolygonRel(points) ; end - + # # Draw hashed box with upper-left corner at (_x_, _y_) and with width and height (_w_, _h_). # @@ -511,7 +511,7 @@ module Fox # +b+:: border width, in pixels [Integer] # def drawHashBox(x, y, w, h, b=1) ; end - + # # Draw focus rectangle with upper-left corner at (_x_, _y_) and with width and height (_w_, _h_). # @@ -523,7 +523,7 @@ module Fox # +height+:: height of the rectangle, in pixels [Integer] # def drawFocusRectangle(x, y, w, h) ; end - + # # Copy some rectangular area from _source_ into the drawable attached to this # device context. @@ -539,7 +539,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawArea(source, sx, sy, sw, sh, dx, dy) ; end - + # # Copy some rectangular area from _source_ into the drawable attached to this # device context, stretching it to width _dw_ and height _dh_. @@ -568,7 +568,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawImage(image, dx, dy) ; end - + # # Draw _bitmap_ into the drawable attached to this device context. # @@ -579,7 +579,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawBitmap(bitmap, dx, dy) ; end - + # # Draw _icon_ into the drawable attached to this device context. # @@ -590,7 +590,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawIcon(icon, dx, dy) ; end - + # # Draw a shaded version of an icon into the drawable attached to this device context. # This is typically used for drawing disabled labels and buttons. @@ -602,7 +602,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawIconShaded(icon, dx, dy) ; end - + # # Draw a sunken version of an icon into the drawable attached to this device context. # @@ -613,7 +613,7 @@ module Fox # +dy+:: y-coordinate of the the destination point in this drawable [Integer] # def drawIconSunken(icon, dx, dy) ; end - + # # Draw _string_ at position (_x_, _y_). # @@ -626,7 +626,7 @@ module Fox # See also #drawImageText. # def drawText(x, y, string) ; end - + # # Draw _string_ at position (_x_, _y_). # @@ -639,10 +639,10 @@ module Fox # See also #drawText. # def drawImageText(x, y, string) ; end - + # # Set dash pattern and dash offset. - # A dash pattern of [1, 2, 3, 4] is a repeating pattern of 1 foreground pixel, + # A dash pattern of [1, 2, 3, 4] is a repeating pattern of 1 foreground pixel, # 2 background pixels, 3 foreground pixels, and 4 background pixels. # The offset is where in the pattern the system will start counting. # The maximum length of the dash pattern array is 32 elements. @@ -653,7 +653,7 @@ module Fox # +dashPattern+:: array of integers indicating the dash pattern [Array] # def setDashes(dashOffset, dashPattern) ; end - + # # Set clip rectangle. # @@ -667,7 +667,7 @@ module Fox # See also #setClipMask. # def setClipRectangle(x, y, w, h) ; end - + # # Set clip rectangle. # @@ -678,12 +678,12 @@ module Fox # See also #setClipMask. # def setClipRectangle(rectangle) ; end - + # # Clear clipping. # def clearClipRectangle() ; end - + # # Set clip mask to _bitmap_. # @@ -696,7 +696,7 @@ module Fox # See also #setClipRectangle. # def setClipMask(bitmap, dx=0, dy=0) ; end - + # # Clear clip mask. # diff --git a/rdoc-sources/FXDCPrint.rb b/rdoc-sources/FXDCPrint.rb index 51247af..de10b57 100755 --- a/rdoc-sources/FXDCPrint.rb +++ b/rdoc-sources/FXDCPrint.rb @@ -3,24 +3,24 @@ module Fox # Bounding box # class FXPSBounds - + # Minimum x-coordinate [Float] attr_accessor :xmin - + # Maximum x-coordinate [Float] attr_accessor :xmax - + # Minimum y-coordinate [Float] attr_accessor :ymin - + # Maximum y-coordinate attr_accessor :ymax - + # Returns an initialized FXPSBounds instance def initialize; end end - + # # Describes printer # @@ -51,49 +51,49 @@ module Fox class FXPrinter # Printer name [String] attr_accessor :name - + # First page that can be printed [Integer] attr_accessor :firstpage - + # Last page that can be printed [Integer] attr_accessor :lastpage - + # Current page to print [Integer] attr_accessor :currentpage - + # On output, this is the first page to print [Integer] attr_accessor :frompage - + # On output, last page to print [Integer] attr_accessor :topage - + # # Media size index, one of +MEDIA_CUSTOM+, +MEDIA_USLETTER+, +MEDIA_LEGAL+, # +MEDIA_A4+ or +MEDIA_ENVELOPE+ [Integer] # attr_accessor :mediasize - + # Width of paper in points (1/72 of an inch) [Float] attr_accessor :mediawidth - + # Height of paper in points [Float] attr_accessor :mediaheight - + # Left margin [Float] attr_accessor :leftmargin - + # Right margin [Float] attr_accessor :rightmargin - + # Top margin [Float] attr_accessor :topmargin - + # Bottom margin [Float] attr_accessor :bottommargin - + # Number of copies [Integer] attr_accessor :numcopies - + # Flags [Integer] attr_accessor :flags @@ -114,13 +114,13 @@ module Fox # See also #beginPrint. # def endPrint(); end - + # # Generate end of page. # See also #beginPage. # def endPage(); end - + def setContentRange(pxmin, pymin, pxmax, pymax); end end end diff --git a/rdoc-sources/FXDCWindow.rb b/rdoc-sources/FXDCWindow.rb index 86f0912..67c05f2 100755 --- a/rdoc-sources/FXDCWindow.rb +++ b/rdoc-sources/FXDCWindow.rb @@ -3,7 +3,7 @@ module Fox # A window device context allows drawing into an FXDrawable, such as an # on-screen window (i.e. FXWindow and its derivatives) or an off-screen image (FXImage # and its derivatives). - # Because certain hardware resources are locked down, only one FXDCWindow may be + # Because certain hardware resources are locked down, only one FXDCWindow may be # locked on a drawable at any one time. # class FXDCWindow < FXDC diff --git a/rdoc-sources/FXDataTarget.rb b/rdoc-sources/FXDataTarget.rb index e5a3f57..77cc605 100755 --- a/rdoc-sources/FXDataTarget.rb +++ b/rdoc-sources/FXDataTarget.rb @@ -4,7 +4,7 @@ module Fox # to be directly connected with a variable in the program. # Whenever the valuator control changes, the variable connected through # the data target is automatically updated; conversely, whenever the program - # changes a variable, all the connected valuator widgets will be updated + # changes a variable, all the connected valuator widgets will be updated # to reflect this new value on the display. For example: # # data = FXDataTarget.new("Some Text") @@ -43,7 +43,7 @@ module Fox # +ID_OPTION+:: +ID_OPTION++_i_ will set the value to _i_, where -10000 <= _i_ <= 10000 # class FXDataTarget < FXObject - + # The message target object for this data target [FXObject] attr_accessor :target diff --git a/rdoc-sources/FXDebugTarget.rb b/rdoc-sources/FXDebugTarget.rb index eacd095..894b3cb 100755 --- a/rdoc-sources/FXDebugTarget.rb +++ b/rdoc-sources/FXDebugTarget.rb @@ -14,7 +14,7 @@ module Fox # should print the text "SEL_COMMAND". # def FXDebugTarget.messageTypeName ; end - + # # Construct a debug target. # diff --git a/rdoc-sources/FXDelegator.rb b/rdoc-sources/FXDelegator.rb index 12cb14d..5c6713c 100755 --- a/rdoc-sources/FXDelegator.rb +++ b/rdoc-sources/FXDelegator.rb @@ -2,7 +2,7 @@ module Fox # # A delegator forwards messages to a delegate object. # Delegators are used when you need to multiplex messages - # toward any number of target objects. + # toward any number of target objects. # For example, many controls may be connected to FXDelegator, # instead of directly to the document object. Changing the # delegate in FXDelegator will then reconnect the controls with their diff --git a/rdoc-sources/FXDial.rb b/rdoc-sources/FXDial.rb index 8ad2692..8173d8b 100755 --- a/rdoc-sources/FXDial.rb +++ b/rdoc-sources/FXDial.rb @@ -32,7 +32,7 @@ module Fox # Dial value [Integer] attr_accessor :value - + # Dial range [Range] attr_accessor :range @@ -45,7 +45,7 @@ module Fox attr_accessor :revolutionIncrement # - # The spacing for the small notches; this should be set + # The spacing for the small notches; this should be set # in tenths of degrees in the range [1,3600], and the value should # be a divisor of 3600, so as to make the notches come out evenly. [Integer] # @@ -56,16 +56,16 @@ module Fox # be tenths of degrees in the range [-3600,3600]. [Integer] # attr_accessor :notchOffset - + # Current dial style [Integer] attr_accessor :dialStyle - + # Center notch color [FXColor] attr_accessor :notchColor - + # Status line help text for this dial [String] attr_accessor :helpText - + # Tool tip message for this dial attr_accessor :tipText @@ -89,13 +89,13 @@ module Fox # def initialize(p, target=nil, selector=0, opts=DIAL_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theDial end - + # # Set the dial value. If _notify_ is +true+, a +SEL_COMMAND+ message is # sent to the dial's message target after the value is changed. # def setValue(value, notify=false); end - + # # Set the dial's range. If _notify_ is +true+, and the range modification # causes the dial's value to change, a +SEL_COMMAND+ message is sent diff --git a/rdoc-sources/FXDict.rb b/rdoc-sources/FXDict.rb index cfc9895..2e914bc 100755 --- a/rdoc-sources/FXDict.rb +++ b/rdoc-sources/FXDict.rb @@ -1,13 +1,13 @@ module Fox # # The dictionary class maintains a fast-access hash table of entities - # indexed by a character string. + # indexed by a character string. # It is typically used to map strings to pointers; however, overloading # the #createData and #deleteData members allows any type of data to # be indexed by strings. # class FXDict < FXObject - + # Total number of entries in the table [Integer] attr_reader :length @@ -18,12 +18,12 @@ module Fox attr_reader :last alias size length - + # # Construct an empty dictionary. # def initialize ; end - + # # Return key at position _pos_. # @@ -36,7 +36,7 @@ module Fox # # Return position of next filled slot after _pos_ in the hash table, - # or a value greater than or equal to total if no filled + # or a value greater than or equal to total if no filled # slot was found. # def next(pos) ; end @@ -67,10 +67,10 @@ module Fox # Returns +true+ if the given _key_ is present. # def has_key?(key) ; end - + alias include? has_key? alias member? has_key? - + # # Returns +true+ if this dictionary contains no key-value pairs. # diff --git a/rdoc-sources/FXDirBox.rb b/rdoc-sources/FXDirBox.rb index 0dfffd4..4740aa3 100755 --- a/rdoc-sources/FXDirBox.rb +++ b/rdoc-sources/FXDirBox.rb @@ -35,17 +35,17 @@ module Fox # Set current directory # def setDirectory(pathname); end - + # # Return current directory # def getDirectory(); end - + # # Change file associations, where _assoc_ is an FXFileDict instance. # def setAssociations(assoc); end - + # # Return file associations (an FXFileDict instance). # diff --git a/rdoc-sources/FXDirDialog.rb b/rdoc-sources/FXDirDialog.rb index 8861f43..e394cc2 100755 --- a/rdoc-sources/FXDirDialog.rb +++ b/rdoc-sources/FXDirDialog.rb @@ -3,32 +3,32 @@ module Fox # Directory selection dialog # class FXDirDialog < FXDialogBox - + # Directory [String] attr_accessor :directory - + # Wildcard matching mode, some combination of file matching flags [Integer] attr_accessor :matchMode - + # Directory list style [Integer] attr_accessor :dirBoxStyle - + # Returns an initialized FXDirDialog instance. def initialize(owner, name, opts=0, x=0, y=0, width=500, height=300) # :yields: theDirDialog end # Return +true+ if showing files as well as directories def filesShown?; end - + # # If _state_ is +true+, the directory list will show files as well as # directories; otherwise, it will only show directories. # def filesShown=(state); end - + # Return +true+ if showing hidden files and directories def hiddenFilesShown?; end - + # # If _state_ is +true+, the directory list will show hidden files and # directories; otherwise, it won't. diff --git a/rdoc-sources/FXDirList.rb b/rdoc-sources/FXDirList.rb index a6e702f..da0d20a 100755 --- a/rdoc-sources/FXDirList.rb +++ b/rdoc-sources/FXDirList.rb @@ -8,36 +8,36 @@ module Fox # File size [Integer] attr_reader :size - + # File time [Integer] attr_reader :date # Returns an initialized FXDirItem instance def initialize(text, oi=nil, ci=nil, data=nil) # :yields: theDirItem end - + # Return +true+ if this is a directory def directory?; end # Return +true+ if this is an executable def executable?; end - + # Return +true+ if this is a symbolic link def symlink?; end - + # Return +true+ if this is a character device def chardev?; end - + # Return +true+ if this is a block device def blockdev?; end - + # Return +true+ if this is a FIFO (a named pipe) def fifo?; end - + # Return +true+ if this is a socket def socket?; end end - + # # An FXDirList widget provides a tree-structured view of the file system. # It automatically updates itself periodically by re-scanning the file system @@ -76,23 +76,23 @@ module Fox # Current file [String] attr_accessor :currentFile - + # Current directory [String] attr_accessor :directory - + # Wildcard pattern [String] attr_accessor :pattern - + # Wildcard matching mode, some combination of file matching flags [Integer] attr_accessor :matchMode - + # File associations [FXFileDict] attr_accessor :associations # Returns an initialized FXDirList instance def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theDirList end - + # # Scan the directories and update the items if needed, or if _force_ is +true+. # @@ -100,20 +100,20 @@ module Fox # Return +true+ if item is a directory def itemDirectory?(anItem); end - + # Return +true+ if item is a file def itemFile?(anItem); end - + # Return +true+ if item is executable def itemExecutable?(anItem); end - + # # Set current file. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's # message target to indicate that the current item has changed. # def setCurrentFile(file, notify=false); end - + # # Set current directory. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's @@ -123,22 +123,22 @@ module Fox # Return absolute pathname of item def itemPathname(anItem); end - + # Return the item from the absolute pathname def pathnameItem(path); end # Return +true+ if showing files as well as directories def filesShown?; end - + # # If _state_ is +true+, the directory list will show files as well as # directories; otherwise, it will only show directories. # def filesShown=(state); end - + # Return +true+ if showing hidden files and directories def hiddenFilesShown?; end - + # # If _state_ is +true+, the directory list will show hidden files and # directories; otherwise, it won't. diff --git a/rdoc-sources/FXDirSelector.rb b/rdoc-sources/FXDirSelector.rb index d4dac72..6519917 100755 --- a/rdoc-sources/FXDirSelector.rb +++ b/rdoc-sources/FXDirSelector.rb @@ -22,19 +22,19 @@ module Fox # +ID_LINK+:: x # class FXDirSelector < FXPacker - + # The "Accept" button [FXButton] attr_reader :acceptButton - + # The "Cancel" button [FXButton] attr_reader :cancelButton - + # Directory [String] attr_accessor :directory - + # Wildcard matching mode, some combination of file matching flags [Integer] attr_accessor :matchMode - + # Directory list style [Integer] attr_accessor :dirBoxStyle @@ -44,16 +44,16 @@ module Fox # Return +true+ if showing files as well as directories def filesShown?; end - + # # If _state_ is +true+, the directory selector will show files as well as # directories; otherwise, it will only show directories. # def filesShown=(state); end - + # Return +true+ if showing hidden files and directories def hiddenFilesShown?; end - + # # If _state_ is +true+, the directory selector will show hidden files and # directories; otherwise, it won't. diff --git a/rdoc-sources/FXDockBar.rb b/rdoc-sources/FXDockBar.rb index a0ab0bf..91b6b41 100755 --- a/rdoc-sources/FXDockBar.rb +++ b/rdoc-sources/FXDockBar.rb @@ -57,7 +57,7 @@ module Fox # def initialize(p, q, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theDockBar end - + # # Construct a non-floatable dock bar. # The dock bar can not be undocked. @@ -79,7 +79,7 @@ module Fox # def initialize(p, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theDockBar end - + # Return +true+ if docked def docked? ; end @@ -93,7 +93,7 @@ module Fox # If it was docked, reparent under the new docking window. # def dryDock=(dry); end - + # Return parent when docked. def dryDock; end @@ -102,7 +102,7 @@ module Fox # If it was undocked, then reparent under the new floating window. # def wetDock=(wet); end - + # Return parent when floating. def wetDock; end @@ -137,7 +137,7 @@ module Fox def undock(root_x, root_y, notify=false); end # - # Change set of sides (a combination of +ALLOW_TOP+, +ALLOW_LEFT+, etc.), + # Change set of sides (a combination of +ALLOW_TOP+, +ALLOW_LEFT+, etc.), # where docking is allowed. The default is to allow docking on all sides. # def allowedSides=(allowed); end diff --git a/rdoc-sources/FXDockHandler.rb b/rdoc-sources/FXDockHandler.rb index ba9c140..6f4c053 100755 --- a/rdoc-sources/FXDockHandler.rb +++ b/rdoc-sources/FXDockHandler.rb @@ -1,7 +1,7 @@ module Fox # # The dock handler exists as a common base class for tool bar grip - # and dock title. + # and dock title. # # === Events # @@ -13,10 +13,10 @@ module Fox class FXDockHandler < FXFrame # Status line help text [String] attr_accessor :helpText - + # Tool tip text [String] attr_accessor :tipText - + # # Return an initialized FXDockHandler instance. # diff --git a/rdoc-sources/FXDockSite.rb b/rdoc-sources/FXDockSite.rb index 3be940c..c7d2da5 100644 --- a/rdoc-sources/FXDockSite.rb +++ b/rdoc-sources/FXDockSite.rb @@ -86,13 +86,13 @@ module Fox # +bar+:: a reference to the removed dockbar [FXDockBar] # def undockToolBar(bar); end - + # # If _wrap_ is +true+, allow the wrapping of dockbars (i.e. set the # +DOCKSITE_WRAP+ option.) # def wrapGalleys=(wrap); end - + # # Return +true+ if the +DOCKSITE_WRAP+ option is set, indicating that # dockbars will be wrapped to another galley if there's not enough space on diff --git a/rdoc-sources/FXDockTitle.rb b/rdoc-sources/FXDockTitle.rb index 29fc724..2c43aa0 100755 --- a/rdoc-sources/FXDockTitle.rb +++ b/rdoc-sources/FXDockTitle.rb @@ -7,13 +7,13 @@ module Fox class FXDockTitle < FXDockHandler # Caption text for the grip [String] attr_accessor :caption - + # Caption font [FXFont] attr_accessor :font - + # Caption color [FXColor] attr_accessor :captionColor - + # Current justification mode [Integer] attr_accessor :justify diff --git a/rdoc-sources/FXDocument.rb b/rdoc-sources/FXDocument.rb index 45aad26..7961055 100755 --- a/rdoc-sources/FXDocument.rb +++ b/rdoc-sources/FXDocument.rb @@ -11,17 +11,17 @@ module Fox # Modified state for the document [Boolean] attr_writer :modified - + # Document title attr_accessor :title - + # Document filename attr_accessor :filename # Return an initialized FXDocument instance def initialize # :yields: theDocument end - + # Return +true+ if document is modified def modified?; end end diff --git a/rdoc-sources/FXDragCorner.rb b/rdoc-sources/FXDragCorner.rb index 7c7e275..f58a273 100755 --- a/rdoc-sources/FXDragCorner.rb +++ b/rdoc-sources/FXDragCorner.rb @@ -4,13 +4,13 @@ module Fox # so as to allow the window to be resized more easily. # class FXDragCorner < FXWindow - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Construct a drag corner def initialize(p) # :yields: theDragCorner end diff --git a/rdoc-sources/FXDrawable.rb b/rdoc-sources/FXDrawable.rb index 590230c..d53fa91 100755 --- a/rdoc-sources/FXDrawable.rb +++ b/rdoc-sources/FXDrawable.rb @@ -4,13 +4,13 @@ module Fox # drawn upon, such as an FXWindow or an FXImage. # class FXDrawable < FXId - + # Width of drawable, in pixels [Integer] attr_reader :width - + # Height of drawable, in pixels [Integer] attr_reader :height - + # Visual [FXVisual] attr_accessor :visual diff --git a/rdoc-sources/FXDriveBox.rb b/rdoc-sources/FXDriveBox.rb index 4d79808..0a82b24 100755 --- a/rdoc-sources/FXDriveBox.rb +++ b/rdoc-sources/FXDriveBox.rb @@ -13,7 +13,7 @@ module Fox # Current drive [String] attr_accessor :drive - + # File associations [FXFileDict] attr_accessor :associations @@ -26,17 +26,17 @@ module Fox # Returns +true+ on success, +false+ on failure. # def setDrive(drive); end - + # # Return current drive as a string. # def getDrive(); end - + # # Change file associations, where _assoc_ is an FXFileDict instance. # def setAssociations(assoc); end - + # # Return file associations (an FXFileDict instance). # diff --git a/rdoc-sources/FXExtentd.rb b/rdoc-sources/FXExtentd.rb index b5c9a89..1d253af 100644 --- a/rdoc-sources/FXExtentd.rb +++ b/rdoc-sources/FXExtentd.rb @@ -2,10 +2,10 @@ module Fox class FXExtentd # Lower corner of this extent (an FXVec2d instance). attr_reader :lower - + # Upper corner of this extent (an FXVec2d instance). attr_reader :upper - + # Default constructor def initialize; end diff --git a/rdoc-sources/FXExtentf.rb b/rdoc-sources/FXExtentf.rb index 752692d..30433f3 100644 --- a/rdoc-sources/FXExtentf.rb +++ b/rdoc-sources/FXExtentf.rb @@ -2,10 +2,10 @@ module Fox class FXExtentf # Lower corner of this extent (an FXVec2f instance). attr_reader :lower - + # Upper corner of this extent (an FXVec2f instance). attr_reader :upper - + # Default constructor def initialize; end diff --git a/rdoc-sources/FXFileDialog.rb b/rdoc-sources/FXFileDialog.rb index 6865943..4cbd732 100755 --- a/rdoc-sources/FXFileDialog.rb +++ b/rdoc-sources/FXFileDialog.rb @@ -34,31 +34,31 @@ module Fox # File name [String] attr_accessor :filename - + # List of selected filenames [Array] attr_reader :filenames - + # File pattern [String] attr_accessor :pattern - + # Current pattern number [Integer] attr_accessor :currentPattern - + # Directory [String] attr_accessor :directory - + # Inter-item spacing (in pixels) [Integer] attr_accessor :itemSpace - + # File list style [Integer] attr_accessor :fileBoxStyle - + # File selection mode [Integer] attr_accessor :selectMode - + # Wildcard matching mode [Integer] attr_accessor :matchMode - + # Image size for preview images [Integer] attr_accessor :imageSize @@ -102,7 +102,7 @@ module Fox # Change pattern text for pattern number def setPatternText(patno, text); end - + # # Return number of patterns # @@ -112,7 +112,7 @@ module Fox # Change whether this file dialog allows pattern entry or not. # def allowsPatternEntry=(allowed); end - + # # Return +true+ if this file dialog allows pattern entry # @@ -120,13 +120,13 @@ module Fox # Set visibility of the read-only button, where _shown_ is either +true+ or +false+ def showReadOnly=(shown); end - + # Return +true+ if read-only button is shown def readOnlyShown?; end - + # Return +true+ if showing hidden files and directories def hiddenFilesShown?; end - + # # If _state_ is +true+, the file dialog will show hidden files and # directories; otherwise, it won't. @@ -138,18 +138,18 @@ module Fox # otherwise it won't. # def imagesShown=(shown); end - + # # Return +true+ if the file dialog is showing preview images. # def imagesShown? ; end - + # Set initial state of read-only button, where _state_ is either +true+ or +false+ def readOnly=(state); end - + # Return +true+ if read-only def readOnly?; end - + # Return +true+ if navigation allowed. def navigationAllowed?; end @@ -170,7 +170,7 @@ module Fox # +initial+:: the initial pattern to be used (an index into the pattern list) [Integer] # def FXFileDialog.getOpenFilename(owner, caption, path, patterns="*", initial=0); end - + # # Display a dialog box that allows the user to select multiple existing file names # for opening. @@ -185,7 +185,7 @@ module Fox # +initial+:: the initial pattern to be used (an index into the pattern list) [Integer] # def FXFileDialog.getOpenFilenames(owner, caption, path, patterns="*", initial=0); end - + # # Display a dialog box that allows the user to select an existing file name, or # enter a new file name, for saving. @@ -200,7 +200,7 @@ module Fox # +initial+:: the initial pattern to be used (an index into the pattern list) [Integer] # def FXFileDialog.getSaveFilename(owner, caption, path, patterns="*", initial=0); end - + # # Display a dialog box that allows the user to select a directory. # Returns the directory name (a String). diff --git a/rdoc-sources/FXFileDict.rb b/rdoc-sources/FXFileDict.rb index f94d338..8b2ad40 100755 --- a/rdoc-sources/FXFileDict.rb +++ b/rdoc-sources/FXFileDict.rb @@ -5,31 +5,31 @@ module Fox class FXFileAssoc # Command to execute [String] attr_accessor :command - + # Full extension name [String] attr_accessor :extension - + # Mime type name [String] attr_accessor :mimetype - + # Big normal icon [FXIcon] attr_accessor :bigicon - + # Big open icon [FXIcon] attr_accessor :bigiconopen - + # Mini normal icon [FXIcon] attr_accessor :miniicon - + # Mini open icon [FXIcon] attr_accessor :miniiconopen - + # Registered drag type [FXDragType] attr_accessor :dragtype - + # Flags [Integer] attr_accessor :flags - + # Returns an initialized FXFileAssoc instance def initialize; end end @@ -64,25 +64,25 @@ module Fox # is used, and for executables the "defaultexecbinding" is used. # class FXFileDict < FXDict - + # Settings database [FXSettings] attr_accessor :settings - + # Current icon search path [FXIconDict] attr_accessor :iconDict # Current icon search path [String] attr_accessor :iconPath - + # Return the registry key used to find fallback executable icons. def FXFileDict.defaultExecBinding(); end - + # Return the registry key used to find fallback directory icons. def FXFileDict.defaultDirBinding(); end # Return the registry key used to find fallback document icons. def FXFileDict.defaultFileBinding(); end - + # # Construct a dictionary that maps file extensions to file associations. # If _db_ is not +nil+, the specified settings database is used as a @@ -95,7 +95,7 @@ module Fox # +db+:: Settings database [FXSettings] # def initialize(app, db=nil); end - + # # Replace file association for the specified extension; # returns a reference to the file association. @@ -106,13 +106,13 @@ module Fox # +str+:: String [String] # def replace(ext, str); end - + # # Remove file association for the specified extension # and return a reference to it. # def remove(ext); end - + # # Find file association from registry for the specified key. # diff --git a/rdoc-sources/FXFileList.rb b/rdoc-sources/FXFileList.rb index 704bbf3..d63a7fb 100755 --- a/rdoc-sources/FXFileList.rb +++ b/rdoc-sources/FXFileList.rb @@ -3,44 +3,44 @@ module Fox # File item # class FXFileItem < FXIconItem - + # The file association object for this item [FXFileAssoc] attr_reader :assoc - + # The file size for this item [Integer] attr_reader :size - + # Date for this item [Time] attr_reader :date # Returns an initialized FXFileItem instance def initialize(text, bi=nil, mi=nil, ptr=nil) # :yields: theFileItem end - + # Return +true+ if this is a file item def file?; end - + # Return +true+ if this is a directory item def directory?; end - + # Return +true+ if this is a share item def share?; end # Return +true+ if this is an executable item def executable?; end - + # Return +true+ if this is a symbolic link item def symlink?; end - + # Return +true+ if this is a character device item def chardev?; end - + # Return +true+ if this is a block device item def blockdev?; end - + # Return +true+ if this is an FIFO item def fifo?; end - + # Return +true+ if this is a socket def socket?; end end @@ -85,29 +85,29 @@ module Fox # +ID_REFRESH+:: Refresh immediately # class FXFileList < FXIconList - + # Current file [String] attr_accessor :currentFile - + # Current directory [String] attr_accessor :directory - + # Wildcard matching pattern [String] attr_accessor :pattern - + # Wildcard matching mode [Integer] attr_accessor :matchMode - + # File associations [FXFileDict] attr_accessor :associations - + # Image size for preview images [Integer] attr_accessor :imageSize # Construct a file list def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theFileList end - + # # Set the current file to _filename_. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the @@ -117,7 +117,7 @@ module Fox # +SEL_DESELECTED+ may be sent to the message target as well. # def setCurrentFile(filename, notify=false); end - + # # Scan the current directory and update the items if needed, or if _force_ is +true+. # @@ -128,7 +128,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def itemDirectory?(index); end - + # # Return +true+ if item is a share. # Raises IndexError if _index_ is out of bounds. @@ -140,46 +140,46 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def itemFile?(index); end - + # # Return +true+ if item is executable. # Raises IndexError if _index_ is out of bounds. # def itemExecutable?(index); end - + # # Return name of item at index. # Raises IndexError if _index_ is out of bounds. # def itemFilename(index); end - + # # Return full pathname of item at index. # Raises IndexError if _index_ is out of bounds. # def itemPathname(index); end - + # # Return file association of item at index. # Raises IndexError if _index_ is out of bounds. # def itemAssoc(index); end - + # Return +true+ if showing hidden files. def hiddenFilesShown?; end - + # Show or hide hidden files. def hiddenFilesShown=(shown); end - + # Return +true+ if showing directories only. def onlyDirectoriesShown?; end - + # Show directories only. def onlyDirectoriesShown=(shown); end # Return +true+ if showing files only. def onlyFilesShown?; end - + # Show files only. def onlyFilesShown=(shown); end @@ -188,17 +188,17 @@ module Fox # otherwise it won't. # def imagesShown=(shown); end - + # # Return +true+ if the file list is showing preview images. # def imagesShown? ; end - + # # Return +true+ if parent directories are shown. # def parentDirsShown? ; end - + # # Set whether parent directories are shown to +true+ or +false+. # diff --git a/rdoc-sources/FXFileSelector.rb b/rdoc-sources/FXFileSelector.rb index 05e8d93..41a905d 100755 --- a/rdoc-sources/FXFileSelector.rb +++ b/rdoc-sources/FXFileSelector.rb @@ -42,37 +42,37 @@ module Fox # +ID_LINK+:: x # class FXFileSelector < FXPacker - + # The "Accept" button [FXButton] attr_reader :acceptButton - + # The "Cancel" button [FXButton] attr_reader :cancelButton # File name [String] attr_accessor :filename - + # File pattern [String] attr_accessor :pattern - + # Directory [String] attr_accessor :directory - + # Current pattern number [Integer] attr_accessor :currentPattern # Inter-item spacing (in pixels) [Integer] attr_accessor :itemSpace - + # Change file list style [Integer] attr_accessor :fileBoxStyle - + # Change file selection mode [Integer] attr_accessor :selectMode - + # Wildcard matching mode [Integer] attr_accessor :matchMode - + # Image size for preview images [Integer] attr_accessor :imageSize @@ -81,12 +81,12 @@ module Fox # def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theFileSelector end - + # # Returns an array of the selected file names. # def filenames; end - + # # Change the list of file patterns shown in the file selector. # The _patterns_ argument is an array of strings, and each string @@ -112,7 +112,7 @@ module Fox # aFileSelector.setPatternList(patterns) # def setPatternList(patterns); end - + # # Returns the list of patterns (an Array of Strings). # @@ -120,28 +120,28 @@ module Fox # Get pattern text for given pattern number def getPatternText(patno); end - + # Change pattern text for pattern number def setPatternText(patno, text); end - + # Return number of patterns. def numPatterns; end # Show read-only button. def readOnlyShown=(shown); end - + # Return +true+ if the read-only button is shown. def readOnlyShown?; end - + # Set state of read-only button. def readOnly=(state); end - + # Return +true+ if in read-only mode. def readOnly?; end # Return +true+ if showing hidden files and directories def hiddenFilesShown?; end - + # # If _state_ is +true+, the file selector will show hidden files and # directories; otherwise, it won't. @@ -153,7 +153,7 @@ module Fox # otherwise it won't. # def imagesShown=(shown); end - + # # Return +true+ if the file selector is showing preview images. # @@ -172,7 +172,7 @@ module Fox # input pattern. # def FXFileSelector.patternFromText(pattern) ; end - + # # Given a pattern of the form "*.gif,*.GIF", return # the first extension of the pattern, i.e. "gif" in this diff --git a/rdoc-sources/FXFileStream.rb b/rdoc-sources/FXFileStream.rb index 5faa0d0..321d6cc 100755 --- a/rdoc-sources/FXFileStream.rb +++ b/rdoc-sources/FXFileStream.rb @@ -9,7 +9,7 @@ module Fox # def initialize(cont=nil) # :yields: theFileStream end - + # # Open binary data file stream; allocate a buffer of the given _size_ # for the file I/O; the buffer must be at least 16 bytes. Returns diff --git a/rdoc-sources/FXFoldingList.rb b/rdoc-sources/FXFoldingList.rb index 4b56091..84c8dd6 100755 --- a/rdoc-sources/FXFoldingList.rb +++ b/rdoc-sources/FXFoldingList.rb @@ -3,7 +3,7 @@ module Fox # An FXFoldingItem is an item in an FXFoldingList widget. # class FXFoldingItem < FXObject - + # Parent item [FXFoldingItem] attr_reader :parent @@ -58,31 +58,31 @@ module Fox # Construct a new folding item def initialize(text, openIcon=nil, closedIcon=nil, data=nil) # :yields: theItem end - + # Set the focus on this folding item (_focus_ is either +true+ or +false+) def setFocus(focus) ; end # Returns +true+ if this item has the focus def hasFocus? ; end - + # Returns +true+ if this item is selected def selected? ; end - + # Returns +true+ if this item is opened def opened? ; end - + # Returns +true+ if this item is expanded def expanded? ; end - + # Returns +true+ if this item is enabled def enabled? ; end - + # Returns +true+ if this item is draggable def draggable? ; end - + # Return +true+ if subitems, real or imagined def hasItems?; end - + # Change has items flag to +true+ or +false+. def hasItems=(flag); end @@ -100,13 +100,13 @@ module Fox def to_s text end - + # Get the width of this item def getWidth(foldingList) ; end - + # Get the height of this item def getHeight(foldingList) ; end - + # Create this folding item def create; end @@ -115,13 +115,13 @@ module Fox # Destroy this folding item def destroy; end - + # # Change open icon to _icn_, deleting old icon if it was owned. # If _owned_ is +true+, mark _icn_ as owned by this folding item. # def setOpenIcon(icn, owned=false); end - + # # Change closed icon to _icn_, deleting old icon if it was owned. # If _owned_ is +true+, mark _icn_ as owned by this folding item. @@ -129,7 +129,7 @@ module Fox def setClosedIcon(icn, owned=false); end end - # + # # An FXFoldingList widget resembles an FXTreeList, but it supports a # header control to provide each item with multiple columns of text. # Subtrees can be collapsed or expanded by double-clicking on an item @@ -190,10 +190,10 @@ module Fox # Header control [FXHeader] attr_reader :header - + # Number of header items [Integer] attr_reader :numHeaders - + # Number of items [Integer] attr_reader :numItems @@ -288,39 +288,39 @@ module Fox # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after each item is added. def fillItems(father, strings, oi=nil, ci=nil, ptr=nil, notify=false); end - + # Insert a (possibly subclassed) _item_ under _father_, before _other_. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def insertItem(other, father, item, notify=false); end - + # Insert item with given text and optional icons, and user-data pointer under _father_ before _other_ item.. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def insertItem(other, father, text, oi=nil, ci=nil, ptr=nil, notify=false); end - - # Append (possibly subclassed) _item_ as last child of _father_.. + + # Append (possibly subclassed) _item_ as last child of _father_.. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, item, notify=false); end - + # Append a new item with given _text_ and optional _openIcon_, _closedIcon_ and user _data_ - # as last child of _father_. + # as last child of _father_. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, text, oi=nil, ci=nil, ptr=nil, notify=false); end - - # Prepend (possibly subclassed) _item_ as first child of _father_. + + # Prepend (possibly subclassed) _item_ as first child of _father_. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def prependItem(father, item, notify=false); end - - # Prepend a new item with given _text_ and optional icons and user data as first child of _father_. + + # Prepend a new item with given _text_ and optional icons and user data as first child of _father_. # Returns a reference to the newly added item (an FXFoldingItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. @@ -354,10 +354,10 @@ module Fox # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message # target before each item is removed. def clearItems(notify=false); end - + # Return item width def getItemWidth(item); end - + # Return item height def getItemHeight(item); end @@ -381,36 +381,36 @@ module Fox # Scroll the list to make _item_ visible def makeItemVisible(item); end - + # Change item's text def setItemText(item, text); end - + # Return item's text def getItemText(item); end - + # Change item's open icon, deleting old icon if it was owned. # If _owned_ is +true+, mark _icn_ as owned by this folding item. def setItemOpenIcon(item, icn, owned=false); end - + # Return item's open icon def getItemOpenIcon(item); end - + # Change item's closed icon, deleting old icon if it was owned. # If _owned_ is +true+, mark _icn_ as owned by this folding item. def setItemClosedIcon(item, icn, owned=false); end - + # Return item's closed icon def getItemClosedIcon(item); end - + # Change item's user data def setItemData(item, data); end - + # Return item's user data def getItemData(item); end - + # Return +true+ if item is selected def itemSelected?(item); end - + # Return +true+ if item is current def itemCurrent?(item); end @@ -422,10 +422,10 @@ module Fox # Return +true+ if item expanded def itemExpanded?(item); end - + # Return +true+ if item is a leaf-item, i.e. has no children def itemLeaf?(item); end - + # Return +true+ if item is enabled def itemEnabled?(item); end @@ -434,13 +434,13 @@ module Fox # Repaint item def updateItem(item); end - + # Enable item def enableItem(item); end - + # Disable item def disableItem(item); end - + # Select item. # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's # message target after the item is selected. @@ -450,22 +450,22 @@ module Fox # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the list's # message target after the item is deselected. def deselectItem(item, notify=false); end - + # Toggle item selection. # If _notify_ is +true+, a +SEL_SELECTED+ or +SEL_DESELECTED+ message is # sent to the list's message target to indicate the change. def toggleItem(item, notify=false); end - + # Open item. # If _notify_ is +true+, a +SEL_OPENED+ message is sent to the list's # message target after the item is opened. def openItem(item, notify=false); end - + # Close item. # If _notify_ is +true+, a +SEL_CLOSED+ message is sent to the list's # message target after the item is closed. def closeItem(item, notify=false); end - + # Collapse sub-tree rooted at _tree_. # If _notify_ is +true+, a +SEL_COLLAPSED+ message is sent to the list's # message target after the sub-tree is collapsed. @@ -475,28 +475,28 @@ module Fox # If _notify_ is +true+, a +SEL_EXPANDED+ message is sent to the list's # message target after the sub-tree is expanded. def expandTree(tree, notify=false); end - + # Change current item. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's # message target after the current item changes. def setCurrentItem(item, notify=false); end - + # Extend selection from anchor item to _item_. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ # messages may be sent to the list's message target, indicating the changes. def extendSelection(item, notify=false); end - + # Deselect all items. # If _notify_ is +true+, +SEL_DESELECTED+ messages will be sent to the list's # message target indicating the affected items. def killSelection(notify=false); end - + # Sort all items recursively def sortItems(); end # Sort root items def sortRootItems(); end - + # Sort children of _item_ def sortChildItems(item); end end diff --git a/rdoc-sources/FXFont.rb b/rdoc-sources/FXFont.rb index ad895e9..248c1b5 100755 --- a/rdoc-sources/FXFont.rb +++ b/rdoc-sources/FXFont.rb @@ -6,26 +6,26 @@ module Fox # Typeface name, such as "helvetica" [String] attr_accessor :face - + # Font size in decipoints [Integer] attr_accessor :size - + # Font weight, such as +FONTWEIGHT_NORMAL+ or +FONTWEIGHT_BOLD+ [Integer]. # See FXFont documentation for the complete list of font weight values. attr_accessor :weight - + # Font slant, such as +FONTSLANT_REGULAR+ or +FONTSLANT_ITALIC+ [Integer]. # See FXFont documentation for the complete list of font slant values. attr_accessor :slant - + # Character set encoding, such as <tt>FONTENCODING_ISO_8859_1</tt> or <tt>FONTENCODING_LATIN1</tt> [Integer]. # See FXFont documentation for the complete list of character set encoding values. attr_accessor :encoding - + # Font set width, such as +FONTSETWIDTH_CONDENSED+ or +FONTSETWIDTH_WIDE+ [Integer]. # See FXFont documentation for the complete list of font set width values. attr_accessor :setwidth - + # Flags [Integer] attr_accessor :flags @@ -142,27 +142,27 @@ module Fox # <tt>FONTENCODING_UNICODE</tt>:: Unicode # # <tt>FONTENCODING_LATIN1</tt>:: same as <tt>FONTENCODING_ISO_8859_1</tt>, Latin 1 (West European) - # <tt>FONTENCODING_LATIN2</tt>:: same as <tt>FONTENCODING_ISO_8859_2</tt>, Latin 2 (East European) - # <tt>FONTENCODING_LATIN3</tt>:: same as <tt>FONTENCODING_ISO_8859_3</tt>, Latin 3 (South European) - # <tt>FONTENCODING_LATIN4</tt>:: same as <tt>FONTENCODING_ISO_8859_4</tt>, Latin 4 (North European) - # <tt>FONTENCODING_LATIN5</tt>:: same as <tt>FONTENCODING_ISO_8859_9</tt>, Latin 5 (Turkish) - # <tt>FONTENCODING_LATIN6</tt>:: same as <tt>FONTENCODING_ISO_8859_10</tt>, Latin 6 (Nordic) + # <tt>FONTENCODING_LATIN2</tt>:: same as <tt>FONTENCODING_ISO_8859_2</tt>, Latin 2 (East European) + # <tt>FONTENCODING_LATIN3</tt>:: same as <tt>FONTENCODING_ISO_8859_3</tt>, Latin 3 (South European) + # <tt>FONTENCODING_LATIN4</tt>:: same as <tt>FONTENCODING_ISO_8859_4</tt>, Latin 4 (North European) + # <tt>FONTENCODING_LATIN5</tt>:: same as <tt>FONTENCODING_ISO_8859_9</tt>, Latin 5 (Turkish) + # <tt>FONTENCODING_LATIN6</tt>:: same as <tt>FONTENCODING_ISO_8859_10</tt>, Latin 6 (Nordic) # <tt>FONTENCODING_LATIN7</tt>:: same as <tt>FONTENCODING_ISO_8859_13</tt>, Latin 7 (Baltic Rim) # <tt>FONTENCODING_LATIN8</tt>:: same as <tt>FONTENCODING_ISO_8859_14</tt>, Latin 8 (Celtic) # <tt>FONTENCODING_LATIN9</tt>:: same as <tt>FONTENCODING_ISO_8859_15</tt>, Latin 9 (a.k.a. Latin 0) # <tt>FONTENCODING_LATIN10</tt>:: same as <tt>FONTENCODING_ISO_8859_16</tt>, Latin 10 # <tt>FONTENCODING_USASCII</tt>:: same as <tt>FONTENCODING_ISO_8859_1</tt>, Latin 1 - # <tt>FONTENCODING_WESTEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_1</tt>, Latin 1 (West European) - # <tt>FONTENCODING_EASTEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_2</tt>, Latin 2 (East European) - # <tt>FONTENCODING_SOUTHEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_3</tt>, Latin 3 (South European) - # <tt>FONTENCODING_NORTHEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_4</tt>, Latin 4 (North European) + # <tt>FONTENCODING_WESTEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_1</tt>, Latin 1 (West European) + # <tt>FONTENCODING_EASTEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_2</tt>, Latin 2 (East European) + # <tt>FONTENCODING_SOUTHEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_3</tt>, Latin 3 (South European) + # <tt>FONTENCODING_NORTHEUROPE</tt>:: same as <tt>FONTENCODING_ISO_8859_4</tt>, Latin 4 (North European) # <tt>FONTENCODING_CYRILLIC</tt>:: same as <tt>FONTENCODING_ISO_8859_5</tt>, Cyrillic # <tt>FONTENCODING_RUSSIAN</tt>:: same as <tt>FONTENCODING_KOI8</tt>, Cyrillic # <tt>FONTENCODING_ARABIC</tt>:: same as <tt>FONTENCODING_ISO_8859_6</tt>, Arabic # <tt>FONTENCODING_GREEK</tt>:: same as <tt>FONTENCODING_ISO_8859_7</tt>, Greek # <tt>FONTENCODING_HEBREW</tt>:: same as <tt>FONTENCODING_ISO_8859_8</tt>, Hebrew - # <tt>FONTENCODING_TURKISH</tt>:: same as <tt>FONTENCODING_ISO_8859_9</tt>, Latin 5 (Turkish) - # <tt>FONTENCODING_NORDIC</tt>:: same as <tt>FONTENCODING_ISO_8859_10</tt>, Latin 6 (Nordic) + # <tt>FONTENCODING_TURKISH</tt>:: same as <tt>FONTENCODING_ISO_8859_9</tt>, Latin 5 (Turkish) + # <tt>FONTENCODING_NORDIC</tt>:: same as <tt>FONTENCODING_ISO_8859_10</tt>, Latin 6 (Nordic) # <tt>FONTENCODING_THAI</tt>:: same as <tt>FONTENCODING_ISO_8859_11</tt>, Thai # <tt>FONTENCODING_BALTIC</tt>:: same as <tt>FONTENCODING_ISO_8859_13</tt>, Latin 7 (Baltic Rim) # <tt>FONTENCODING_CELTIC</tt>:: same as <tt>FONTENCODING_ISO_8859_14, Latin 8 (Celtic) @@ -171,7 +171,7 @@ module Fox # Family part of name [String] attr_reader :family - + # Foundry part of name [String] attr_reader :foundry @@ -183,25 +183,25 @@ module Fox # Size in decipoints [Integer] attr_reader :size - + # Actual size in deci-points [Integer] attr_reader :actualSize # Font weight [Integer] attr_reader :weight - + # Actual font weight [Integer] attr_reader :actualWeight # Slant [Integer] attr_reader :slant - + # Actual slant [Integer] attr_reader :actualSlant # Encoding [Integer] attr_reader :encoding - + # Actual encoding [Integer] attr_reader :actualEncoding @@ -216,10 +216,10 @@ module Fox # Font description [FXFontDesc] attr_accessor :fontDesc - + # Font angle [Integer] attr_accessor :angle - + # Font description as a string [String] attr_accessor :font. @@ -257,11 +257,11 @@ module Fox # def initialize(a, fontDesc) # :yields: theFont end - + # # Return an FXFont instance initialized with the given face name, size in # points (pixels), weight, slant, character set encoding, set width, and hints. - # The font name may be comprised of a family name and optional foundry name enclosed in + # The font name may be comprised of a family name and optional foundry name enclosed in # square brackets, for example, "helvetica [bitstream]". # # ==== Parameters: @@ -276,22 +276,22 @@ module Fox # def initialize(a, face, size, weight=FXFont::Normal, slant=Font::Straight, encoding=FONTENCODING_DEFAULT, setWidth=FXFont::NonExpanded, hints=0) # :yields: theFont end - + # # Construct a font with given font description of the form: - # + # # fontname [ "[" foundry "]" ] ["," size ["," weight ["," slant ["," setwidth ["," encoding ["," hints]]]]]] - # + # # For example: - # + # # "helvetica [bitstream],120,bold,italic,normal,iso8859-1,0" - # + # # Typically, at least the font name, and size must be given for # normal font matching. As a special case, raw X11 fonts can also be # passed, for example: - # + # # "9x15bold" - # + # # Note: use of the raw X11 fonts is stronly discouraged. # def initialize(a, string) # :yields: theFont @@ -313,7 +313,7 @@ module Fox # Return +true+ if font is monospaced. # def fontMono? ; end - + # # Return +true+ if font has glyph for _ch_. Here, _ch_ can either be an # ordinal value, e.g. @@ -330,12 +330,12 @@ module Fox # Returns the left-side bearing (the distance from the origin to the leftmost pixel in the character) for _ch_. # def leftBearing(ch) ; end - + # # Returns the right-side bearing (the distance from the origin to the rightmost pixel in the character) for _ch_. # def rightBearing(ch) ; end - + # # Calculate width of single wide character _ch_ in this font # @@ -345,12 +345,12 @@ module Fox # Returns the width of given _text_ in this font. # def getTextWidth(text) ; end - + # # Returns the height of given _text_ in this font. # def getTextHeight(text) ; end - + # # List all fonts matching hints. Returns an array of FXFontDesc objects. # diff --git a/rdoc-sources/FXFrame.rb b/rdoc-sources/FXFrame.rb index 3b93c31..573e6b1 100755 --- a/rdoc-sources/FXFrame.rb +++ b/rdoc-sources/FXFrame.rb @@ -4,7 +4,7 @@ module Fox # thick, ridged or etched. They can also be turned off completely. # In addition, a certain amount of padding may be specified between the contents of # the widget and the borders. The contents may be justified inside the widget using the - # justification options. + # justification options. # The Frame widget is sometimes used by itself as a place holder, but most often is used # as a convenient base class for simple controls. # @@ -13,34 +13,34 @@ module Fox # +DEFAULT_PAD+:: Default padding # class FXFrame < FXWindow - + # Frame style [Integer] attr_accessor :frameStyle - + # Border width, in pixels [Integer] attr_reader :borderWidth - + # Top interior padding, in pixels [Integer] attr_accessor :padTop - + # Bottom interior padding, in pixels [Integer] attr_accessor :padBottom - + # Left interior padding, in pixels [Integer] attr_accessor :padLeft - + # Right interior padding, in pixels [Integer] attr_accessor :padRight - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Border color [FXColor] attr_accessor :borderColor - + # Base GUI color [FXColor] attr_accessor :baseColor diff --git a/rdoc-sources/FXGIFCursor.rb b/rdoc-sources/FXGIFCursor.rb index 1c8526d..052c708 100755 --- a/rdoc-sources/FXGIFCursor.rb +++ b/rdoc-sources/FXGIFCursor.rb @@ -13,8 +13,8 @@ module Fox # def initialize(a, pix, hx=-1, hy=-1) # :yields: theGIFCursor end - end - + end + # # Save a GIF (Graphics Interchange Format) image to a stream. # If _fast_ is +true+, the faster Floyd-Steinberg dither method will be used @@ -30,7 +30,7 @@ module Fox # +fast+:: if +true+, use faster Floyd-Steinberg algorithm [Boolean] # def Fox.fxsaveGIF(store, data, width, height, fast=true); end - + # # Load a GIF file from a stream. # If successful, returns an array containing the image pixel data (as a diff --git a/rdoc-sources/FXGLCanvas.rb b/rdoc-sources/FXGLCanvas.rb index 48cb772..7ca7099 100755 --- a/rdoc-sources/FXGLCanvas.rb +++ b/rdoc-sources/FXGLCanvas.rb @@ -8,7 +8,7 @@ module Fox # def initialize(parent, vis, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theGLCanvas end - + # # Construct an OpenGL-capable canvas that shares its display # list with another GL canvas. This canvas becomes a member @@ -31,7 +31,7 @@ module Fox # Make OpenGL context current prior to performing OpenGL commands def makeCurrent(); end - + # Make OpenGL context non-current def makeNonCurrent(); end diff --git a/rdoc-sources/FXGLContext.rb b/rdoc-sources/FXGLContext.rb index cdb79f0..a7882ba 100755 --- a/rdoc-sources/FXGLContext.rb +++ b/rdoc-sources/FXGLContext.rb @@ -10,7 +10,7 @@ module Fox # However, display lists may be shared between different GL contexts. # class FXGLContext < FXId - + # The visual [FXGLVisual] attr_reader :visual @@ -20,19 +20,19 @@ module Fox # Otherwise, this context will use its own private display list. def initialize(app, visual, other=nil) # :yields: theGLContext end - + # Return +true+ if it is sharing display lists. def shared?; end - + # Make this OpenGL context current prior to performing OpenGL commands. def begin(drawable); end - + # Make this OpenGL context non-current. def end(); end - + # Swap front and back buffer def swapBuffers(); end - + # Copy part of backbuffer to front buffer [Mesa] def swapSubBuffers(x, y, w, h); end end diff --git a/rdoc-sources/FXGLObject.rb b/rdoc-sources/FXGLObject.rb index f4ff883..bffdaa8 100755 --- a/rdoc-sources/FXGLObject.rb +++ b/rdoc-sources/FXGLObject.rb @@ -13,12 +13,12 @@ module Fox # Return a new object which is a copy (i.e. a "clone") of this one. # def copy; end - + # # Return a bounding box (an FXRangef instance) for this object. # def bounds; end - + # # Draw this object in a viewer. # @@ -27,7 +27,7 @@ module Fox # +viewer+:: the viewer window into which we're drawing [FXGLViewer] # def draw(viewer); end - + # # Draw this object for hit-testing purposes. # @@ -36,17 +36,17 @@ module Fox # +viewer+:: the viewer window into which we're drawing [FXGLViewer] # def hit(viewer); end - + # # Return +true+ if this object can be dragged around. # def canDrag; end - + # # Return +true+ if this object can be deleted from the scene. # def canDelete; end - + # # Drag this object from one position to another. Returns +true+ # if the drag was successful. diff --git a/rdoc-sources/FXGLShape.rb b/rdoc-sources/FXGLShape.rb index 0d395a9..da24a9d 100755 --- a/rdoc-sources/FXGLShape.rb +++ b/rdoc-sources/FXGLShape.rb @@ -31,13 +31,13 @@ module Fox # +ID_BACK_MATERIAL+:: x # class FXGLShape < FXGLObject - + # Tool tip message for this shape [String] attr_accessor :tipText # Position [FXVec3f] attr_accessor :position - + # # Draws the shape in this GL viewer. # @@ -59,7 +59,7 @@ module Fox # Get the material for specified side (where _side_ = 0 or 1). # def getMaterial(side); end - + # # Set the range (an FXRangef instance) for this shape. # diff --git a/rdoc-sources/FXGLViewer.rb b/rdoc-sources/FXGLViewer.rb index 7129fbb..ded58bf 100755 --- a/rdoc-sources/FXGLViewer.rb +++ b/rdoc-sources/FXGLViewer.rb @@ -3,10 +3,10 @@ module Fox class FXViewport # Viewport width [Integer] attr_accessor :w - + # Viewport height attr_accessor :h - + # World left [Float] attr_accessor :left @@ -24,7 +24,7 @@ module Fox # World yon [Float] attr_accessor :yon - + # Returns an initialized FXViewport instance def initialize; end end @@ -60,7 +60,7 @@ module Fox # Quadratic attenuation factor [Float] attr_accessor :q_attn - + # Returns an initialized FXLight instance def initialize; end end @@ -69,19 +69,19 @@ module Fox class FXMaterial # Ambient material color [FXVec4f] attr_accessor :ambient - + # Diffuse material color [FXVec4f] attr_accessor :diffuse - + # Specular material color [FXVec4f] attr_accessor :specular - + # Emissive material color [FXVec4f] attr_accessor :emission - + # Specular shininess [Float] attr_accessor :shininess - + # Returns an initialized FXMaterial instance def initialize; end end @@ -115,7 +115,7 @@ module Fox # +SEL_DRAGGED+:: sent when the selected object is dragged around in the viewer; the message data is a reference to the selected object. # +SEL_COMMAND+:: sent when the mouse is clicked somewhere in the widget; the message data is a reference to the clicked object (possibly +nil+) # +SEL_CHANGED+:: sent when the selection changes; the message data is a reference to the newly selected object (or +nil+). - # + # # === FXGLViewer options # # +VIEWER_LIGHTING+:: Lighting is on @@ -142,7 +142,7 @@ module Fox # +ID_TIPTIMER+:: x # +ID_TOP_COLOR+:: x # +ID_BOTTOM_COLOR+:: x - # +ID_BACK_COLOR+:: x + # +ID_BACK_COLOR+:: x # +ID_AMBIENT_COLOR+:: x # +ID_LIGHT_AMBIENT+:: x # +ID_LIGHT_DIFFUSE+:: x @@ -172,143 +172,143 @@ module Fox # +ID_LASSO_SELECT+:: x # class FXGLViewer < FXGLCanvas - + # Size of pixel in world coordinates [Float] attr_reader :worldPix - + # Size of pixel in model coordinates [Float] attr_reader :modelPix - + # The viewport for this viewer [FXViewport] attr_reader :viewport - + # Default object material setting [FXMaterial] attr_accessor :material # Camera field of view angle (in degrees) [Float] - attr_accessor :fieldOfView + attr_accessor :fieldOfView # Camera zoom factor [Float] attr_accessor :zoom # Target point distance [Float] attr_accessor :distance - + # Current scaling factors [FXVec3f] attr_accessor :scale - + # Camera orientation [FXQuatf] attr_accessor :orientation - + # Object center [FXVec3f] attr_accessor :center - + # Eyesight vector [FXVec3f] attr_reader :eyeVector - - # Eye position [FXVec3f] + + # Eye position [FXVec3f] attr_reader :eyePosition - + # Status line help text [String] attr_accessor :helpText - + # Tool tip text [String] attr_accessor :tipText # The current transformation matrix [FXMat4f] attr_reader :transform - + # The inverse of the current transformation matrix [FXMat4f] attr_reader :invTransform - + # The current scene object [FXGLObject] attr_accessor :scene - + # The selection [FXGLObject] attr_accessor :selection - + # The projection mode (either +FXGLViewer::PERSPECTIVE+ or +FXGLViewer::PARALLEL+) attr_accessor :projection - + # Global ambient light color [FXMat4f] attr_accessor :ambientColor - + # The maximum hits, i.e. the maximum size of the pick buffer [Integer]. # When less than or equal to zero, picking is essentially turned off. attr_accessor :maxHits - + # Set turbo mode [Boolean] attr_writer :turboMode - + # Light source settings [FXLight] attr_accessor :light - + # Returns the FXDragType for FXGLObject def FXGLViewer.objectType; end - + # Returns the drag type name def FXGLViewer.objectTypeName; end - + # # Construct GL viewer widget # def initialize(p, vis, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theGLViewer end - + # # Construct GL viewer widget sharing display list with another GL viewer # def initialize(p, vis, sharegroup, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theGLViewer end - + # Return an array of all objects in the given rectangle def lasso(x1, y1, x2, y2); end - + # Change the model bounding box; this adjusts the viewer def setBounds(box); end - + # Fit viewer to the given bounding box def fitToBounds(box); end - + # # Translate eye-coordinate to screen coordinate. # Returns a 2-element array [sx, sy] containing the screen coordinate. # def eyeToScreen(e); end - + # Translate screen coordinate to eye coordinate at the given depth. def screenToEye(sx, sy, eyez=0.0); end - + # Translate screen coordinate to eye coordinate at the target point depth def screenToTarget(sx, sy); end - + # Translate world coordinate to eye coordinate def worldToEye(w); end - + # Translate world coordinate to eye coordinate depth def worldToEyeZ(w); end - + # Translate eye coordinate to eye coordinate - def eyeToWorld(e); end - + def eyeToWorld(e); end + # Calculate world coordinate vector from screen movement def worldVector(fx, fy, tx, ty); end - + # Translate object center def translate(vec); end - + # Return boresight vector (an array of two arrays) def getBoreVector(sx, sy); end - + # Returns +true+ if the viewer is locked def locked?; end - + # Read the pixels off the screen as R,G,B tuples. def readPixels(x, y, w, h); end - + # Read the feedback buffer containing the current scene. def readFeedback(x, y, w, h); end - + # # When drawing a GL object, if doesTurbo? returns +true+, the object # may choose to perform a reduced complexity drawing as the user is @@ -316,7 +316,7 @@ module Fox # the full complexity drawing can be performed again. # def doesTurbo?; end - + # Returns +true+ if turbo mode is enabled def turboMode?; end diff --git a/rdoc-sources/FXGLVisual.rb b/rdoc-sources/FXGLVisual.rb index 2b93e14..fa8a61f 100755 --- a/rdoc-sources/FXGLVisual.rb +++ b/rdoc-sources/FXGLVisual.rb @@ -3,37 +3,37 @@ module Fox # Visual describes pixel format of a drawable # class FXGLVisual < FXVisual - + # Requested number of bits of red (default is 8) [Integer] attr_accessor :redSize - + # Requested number of bits of green (default is 8) [Integer] attr_accessor :greenSize - + # Requested number of bits of blue (default is 8) [Integer] attr_accessor :blueSize - + # Requested number of bits of alpha (default is zero) [Integer] attr_accessor :alphaSize - + # Requested depth size (default is 16) [Integer] attr_accessor :depthSize - + # Requested stencil size (default is zero) [Integer] attr_accessor :stencilSize - + # Requested number of bits of red for the accumulation buffer (default is zero) [Integer] attr_accessor :accumRedSize - + # Requested number of bits of green for the accumulation buffer (default is zero) [Integer] attr_accessor :accumGreenSize - + # Requested number of bits of blue for the accumulation buffer (default is zero) [Integer] attr_accessor :accumBlueSize - + # Requested number of bits of alpha for the accumulation buffer (default is zero) [Integer] attr_accessor :accumAlphaSize - + # Actual number of bits of red [Integer] attr_reader :actualRedSize @@ -83,10 +83,10 @@ module Fox # Return +true+ if stereo def stereo?; end - + # Return +true+ if hardware-accelerated def accelerated?; end - + # Return +true+ if this visual "swaps" by copying instead of flipping buffers. def bufferSwapCopy?; end end diff --git a/rdoc-sources/FXGradientBar.rb b/rdoc-sources/FXGradientBar.rb index 16b67a9..c3a71d6 100755 --- a/rdoc-sources/FXGradientBar.rb +++ b/rdoc-sources/FXGradientBar.rb @@ -9,19 +9,19 @@ module Fox class FXGradient # Lower value [Float] attr_accessor :lower - + # Middle value [Float] attr_accessor :middle - + # Upper value [Float] attr_accessor :upper - + # Lower color [FXColor] attr_accessor :lowerColor - + # Upper color [FXColor] attr_accessor :upperColor - + # Blend mode [Integer] attr_accessor :blend end @@ -73,7 +73,7 @@ module Fox # +ID_UNIFORM+:: write me # class FXGradientBar < FXFrame - + # # Gradient bar style, some combination of +GRADIENTBAR_HORIZONTAL+, # +GRADIENTBAR_VERTICAL+, +GRADIENTBAR_NO_CONTROLS+, @@ -81,13 +81,13 @@ module Fox # +GRADIENTBAR_CONTROLS_LEFT+ and +GRADIENTBAR_CONTROLS_RIGHT+. # attr_accessor :barStyle - + # Selection color [FXColor] attr_accessor :selectColor - + # Status line help text [String] attr_accessor :helpText - + # Tool tip text [String] attr_accessor :tipText @@ -96,7 +96,7 @@ module Fox # def initialize(p, target=nil, selector=0, opts=FRAME_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theGradientBar end - + # # Return the zero-based index of the segment containing location (_x_, _y_). # Returns -1 if no matching segment was found. @@ -131,7 +131,7 @@ module Fox # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the gradient bar's # message target after the current segment is changed. # Raises IndexError if _index_ is out of bounds. - # + # def setCurrentSegment(index, notify=false); end # @@ -182,7 +182,7 @@ module Fox # Raises IndexError if _seg_ is out of bounds. # def setSegmentLowerColor(seg, clr, notify=false); end - + # # Set upper color of the segment with index _seg_. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the gradient bar's @@ -196,7 +196,7 @@ module Fox # Raises IndexError if _seg_ is out of bounds. # def getSegmentLowerColor(seg); end - + # # Return upper color of the segment with index _seg_. # Raises IndexError if _seg_ is out of bounds. @@ -239,13 +239,13 @@ module Fox # Raises IndexError if _seg_ is out of bounds. # def getSegmentLower(seg); end - + # # Return middle value of segment _seg_. # Raises IndexError if _seg_ is out of bounds. # def getSegmentMiddle(seg); end - + # # Return upper value of segment _seg_. # Raises IndexError if _seg_ is out of bounds. diff --git a/rdoc-sources/FXGroupBox.rb b/rdoc-sources/FXGroupBox.rb index 7941789..651a340 100755 --- a/rdoc-sources/FXGroupBox.rb +++ b/rdoc-sources/FXGroupBox.rb @@ -15,20 +15,20 @@ module Fox # Group box title text [String] attr_accessor :text - + # Group box style [Integer] attr_accessor :groupBoxStyle - + # Title font [FXFont] attr_accessor :font - + # Title text color [FXColor] attr_accessor :textColor # Construct group box layout manager def initialize(parent, text, opts=GROUPBOX_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_SPACING, padRight=DEFAULT_SPACING, padTop=DEFAULT_SPACING, padBottom=DEFAULT_SPACING, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theGroupBox end - + # Return the group box's title text def to_s; text; end end diff --git a/rdoc-sources/FXHeader.rb b/rdoc-sources/FXHeader.rb index 052a6b0..1ad1a7d 100755 --- a/rdoc-sources/FXHeader.rb +++ b/rdoc-sources/FXHeader.rb @@ -38,10 +38,10 @@ module Fox # Size [Integer] attr_accessor :size - + # Sort direction (+FALSE+, +TRUE+ or +MAYBE+) [Integer] attr_accessor :arrowDir - + # Current position [Integer] attr_accessor :pos @@ -56,28 +56,28 @@ module Fox # def initialize(text, ic=nil, s=0, ptr=nil) # :yields: theHeaderItem end - + # Return the header item's text label def to_s; text; end - + # Return the item's content width in the header. def getWidth(header); end - + # Return the item's content height in the header. def getHeight(header); end - + # Create server-side resources def create; end - + # Detach from server-side resources def detach; end - + # Destroy server-side resources def destroy; end - + # Set pressed state to +true+ or +false+. def pressed=(p); end - + # Return +true+ if in pressed state. def pressed?; end end @@ -136,13 +136,13 @@ module Fox # +ID_TIPTIMER+:: x # class FXHeader < FXFrame - + # Number of items [Integer] attr_reader :numItems - + # Total size of all items [Integer] attr_reader :totalSize - + # Current position [Integer] attr_accessor :position @@ -151,25 +151,25 @@ module Fox # Text color [FXColor] attr_accessor :textColor - + # Header style options [Integer] attr_accessor :headerStyle # Status line help text for this header attr_accessor :helpText - + # # Return an initialized FXHeader instance. # def initialize(p, target=nil, selector=0, opts=HEADER_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theHeader end - + # # Return the item (a FXHeaderItem instance) at the given index. # Raises IndexError if _index_ is out of bounds. # def getItem(index); end - + # # Return the item-index given its coordinate offset. # Returns -1 if the specified coordinate is before the first item in the @@ -186,7 +186,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItem(index, item, notify=false); end - + # # Replace the item at _index_ with a new item with the specified # text, icon, size and user data object, and return the index of the replaced @@ -196,11 +196,11 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItem(index, text, icon=nil, size=0, data=nil, notify=false); end - + # # Fill the header by appending items from an array of strings. # Returns the number of items appended. - # + # def fillItems(strings, icon=nil, size=0, data=nil, notify=false); end # @@ -211,7 +211,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def insertItem(index, item, notify=false); end - + # # Insert a new item at the specified _index_ with the specified text, icon, size # and user data object, and return the index of the inserted item. @@ -221,7 +221,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def insertItem(index, text, icon=nil, size=0, data=nil, notify=false); end - + # # Append a (possibly subclassed) item to the list and return the index # of the appended item. @@ -229,7 +229,7 @@ module Fox # message target after the item is appended. # def appendItem(item, notify=false); end - + # # Append a new item with the specified text, icon, size and user data object, # and return the index of the appended item. @@ -238,7 +238,7 @@ module Fox # message target after the item is appended. # def appendItem(text, icon=nil, size=0, data=nil, notify=false); end - + # # Prepend a (possibly subclassed) item to the list and return the index # of the prepended item. @@ -246,7 +246,7 @@ module Fox # message target after the item is appended. # def prependItem(item, notify=false); end - + # # Prepend a new item with the specified text, icon, size and user data object, # and return the index of the appended item. @@ -255,7 +255,7 @@ module Fox # message target after the item is appended. # def prependItem(text, icon=nil, size=0, data=nil, notify=false); end - + # # Extract item from list and return a reference to the item. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the header's @@ -263,7 +263,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def extractItem(index, notify=false); end - + # # Remove the item at the specified index from this header. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the header's message target @@ -271,69 +271,69 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def removeItem(index, notify=false); end - + # # Remove all items from this header. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the header's message target # before each item is removed. # def clearItems(notify=false); end - + # # Change text label for item at index. # Raises IndexError if _index_ is out of bounds. # def setItemText(index, text); end - + # # Get text of item at index. # Raises IndexError if _index_ is out of bounds. # def getItemText(index); end - + # # Change icon of item at index. # Raises IndexError if _index_ is out of bounds. # def setItemIcon(index, icon); end - + # # Return icon of item at index. # Raises IndexError if _index_ is out of bounds. # def getItemIcon(index); end - + # # Change size of item at index. # Raises IndexError if _index_ is out of bounds. # def setItemSize(index, size); end - + # # Return size of item at index. # Raises IndexError if _index_ is out of bounds. # def getItemSize(index); end - + # # Return the offset (in pixels) of the left side of the item at index. # (If it's a vertical header, return the offset of the top side of the item). # Raises IndexError if _index_ is out of bounds. # def getItemOffset(index); end - + # # Change user data object of item at index. # Raises IndexError if _index_ is out of bounds. # def setItemData(index, ptr); end - + # # Return user data for item at index. # Raises IndexError if _index_ is out of bounds. # def getItemData(index); end - + # # Change arrow (sort) direction for item at index, where _dir_ is either # +FALSE+, +TRUE+ or +MAYBE+. @@ -342,7 +342,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setArrowDir(index, dir=MAYBE); end - + # # Return sort direction for the item at index, one of +FALSE+, +TRUE+ or # +MAYBE+. @@ -368,7 +368,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def getItemJustify(index); end - + # # Change relative position of icon and text of item. # Passing FXHeaderItem::BEFORE or FXHeaderItem::AFTER places the icon @@ -378,7 +378,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItemIconPosition(index, mode); end - + # # Return relative icon and text position of the item at _index_, # one of +ABOVE+, +BELOW+, +BEFORE+ or +AFTER+. @@ -391,16 +391,16 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItemPressed(index, pressed=true); end - + # # Return +true+ if button item at specified index is pressed in. # Raises IndexError if _index_ is out of bounds. # def isItemPressed(index); end - + # Scroll to make the specified item visible. def makeItemVisible(index); end - + # # Repaint header at index. # Raises IndexError if _index_ is out of bounds. diff --git a/rdoc-sources/FXICOIcon.rb b/rdoc-sources/FXICOIcon.rb index 069ac31..ce1addb 100755 --- a/rdoc-sources/FXICOIcon.rb +++ b/rdoc-sources/FXICOIcon.rb @@ -56,7 +56,7 @@ module Fox # +yspot+:: hotspot y-coordinate [Integer] # def Fox.fxsaveICO(store, pixels, transp, width, height, xspot=-1, yspot=-1); end - + # # Return +true+ if _store_ (an FXStream instance) contains a ICO image. # diff --git a/rdoc-sources/FXICOImage.rb b/rdoc-sources/FXICOImage.rb index 7781a8d..01b4653 100755 --- a/rdoc-sources/FXICOImage.rb +++ b/rdoc-sources/FXICOImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("ico"). # def FXICOImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXIconDict.rb b/rdoc-sources/FXIconDict.rb index 3d6f3e5..6deda6f 100644 --- a/rdoc-sources/FXIconDict.rb +++ b/rdoc-sources/FXIconDict.rb @@ -4,7 +4,7 @@ module Fox # by their file name. When first encountering a new file name, the icon is # located by searching the icon search path for the icon file. If found, the # services of the icon source object are used to load the icon from the file. - # A custom icon source may be installed to furnish support for additonal + # A custom icon source may be installed to furnish support for additonal # image file formats. # Once the icon is loaded, an association between the icon name and the icon # is entered into the icon dictionary. Subsequent searches for an icon with diff --git a/rdoc-sources/FXIconList.rb b/rdoc-sources/FXIconList.rb index 50f6d5f..d306c43 100755 --- a/rdoc-sources/FXIconList.rb +++ b/rdoc-sources/FXIconList.rb @@ -24,11 +24,11 @@ module Fox # Indicates whether this item is draggable or not [Boolean] attr_writer :draggable - + # Constructor def initialize(text, bigIcon=nil, miniIcon=nil, data=nil) # :yields: theIconItem end - + # Return the icon item's text def to_s; text; end @@ -37,28 +37,28 @@ module Fox # Returns +true+ if this item has the focus def hasFocus? ; end - + # Return +true+ if this item is selected def selected? ; end - + # Return +true+ if this item is enabled def enabled? ; end - + # Return +true+ if this item is draggable def draggable? ; end - + # Return the width of this item def getWidth(iconList); end - + # Return the height of this item def getHeight(iconList); end - + # Create this item def create; end - + # Detach this item def detach; end - + # Destroy this item def destroy; end end @@ -131,57 +131,57 @@ module Fox # +ID_SELECT_ALL+:: x # +ID_DESELECT_ALL+:: x # +ID_SELECT_INVERSE+:: x - + class FXIconList < FXScrollArea # Number of items [Integer] attr_reader :numItems - + # Number of rows [Integer] attr_reader :numRows - + # Number of columns [Integer] attr_reader :numCols - + # The header control [FXHeader] attr_reader :header - + # The number of header items in the header control [Integer] attr_reader :numHeaders - + # Item width [Integer] attr_reader :itemWidth - + # Item height [Integer] attr_reader :itemHeight - + # Index of current item, or -1 if none [Integer] attr_accessor :currentItem - + # Index of anchor item, or -1 if none [Integer] attr_accessor :anchorItem - + # Index of item under the cursor, or -1 if none [Integer] attr_reader :cursorItem - + # Text font [FXFont] attr_accessor :font - + # Normal text color [FXColor] attr_accessor :textColor - + # Background color for selected item(s) [FXColor] attr_accessor :selBackColor - + # Text color for selected item(s) [FXColor] attr_accessor :selTextColor - + # Maximum item space (in pixels) for each item [Integer] attr_accessor :itemSpace - + # Icon list style [Integer] attr_accessor :listStyle - + # Status line help text [String] attr_accessor :helpText @@ -194,39 +194,39 @@ module Fox # Append header with given _text_ and optional _icon_. def appendHeader(text, icon=nil, size=1); end - + # Remove header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def removeHeader(headerIndex); end - + # Change text of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def setHeaderText(headerIndex, text); end - + # Return text of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def getHeaderText(headerIndex); end - + # Change icon of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def setHeaderIcon(headerIndex, icon); end - + # Return icon of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def getHeaderIcon(headerIndex); end - + # Change size of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def setHeaderSize(headerIndex, size); end - + # Return size of header at _headerIndex_. # Raises IndexError if _headerIndex_ is out of bounds. def getHeaderSize(headerIndex); end - + # Return the item at the given _index_. # Raises IndexError if _index_ is out of bounds. def getItem(itemIndex); end - + # Replace the item at _index_ with a (possibly subclassed) _item_. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the list's message target # before the item is replaced. @@ -244,24 +244,24 @@ module Fox # of items appended. # def fillItems(strings, big=nil, mini=nil, data=nil, notify=false); end - + # Insert a new (possibly subclassed) _item_ at the given _index_. # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is inserted. # Raises IndexError if _index_ is out of bounds. def insertItem(index, item, notify=false); end - + # Insert item at _index_ with given _text_, _bigIcon_, _miniIcon_ and user _data_. # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is inserted. # Raises IndexError if _index_ is out of bounds. def insertItem(index, text, bigIcon=nil, miniIcon=nil, data=nil, notify=false); end - + # Append a new (possibly subclassed) _item_ to the end of the list. # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is appended. def appendItem(item, notify=false); end - + # Append a new item with given _text_ and optional _bigIcon_, _miniIcon_ and user _data_. # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is appended. @@ -271,7 +271,7 @@ module Fox # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is prepended. def prependItem(item, notify=false); end - + # Prepend a new item with given _text_ and optional _bigIcon_, _miniIcon_ and user _data_. # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message target # after the item is prepended. @@ -300,15 +300,15 @@ module Fox # before the item is removed. # Raises IndexError if _index_ is out of bounds. def removeItem(index, notify=false); end - + # Remove all items from list. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message target # before each item is removed. def clearItems(notify=false); end - + # Return index of item at (_x_, _y_), or -1 if none def getItemAt(x, y); end - + # # Search items by _text_, beginning from item _start_. If the start # item is -1 the search will start at the first item in the list. @@ -320,7 +320,7 @@ module Fox # Return -1 if no matching item is found. # def findItem(text, start=-1, flags=SEARCH_FORWARD|SEARCH_WRAP); end - + # # Search items by associated user _data_, beginning from item _start_. If the # start item is -1 the search will start at the first item in the list. @@ -337,112 +337,112 @@ module Fox # is out of bounds. # def makeItemVisible(itemOrIndex); end - + # Change text for item at _index_. # Raises IndexError if _index_ is out of bounds. def setItemText(index, text); end - + # Return text for item at _index_. # Raises IndexError if _index_ is out of bounds. def getItemText(index); end - + # Change big icon for item at _index_. # Raises IndexError if _index_ is out of bounds. def setItemBigIcon(index, bigIcon, owned=false); end - + # Return big icon for item at _index_. # Raises IndexError if _index_ is out of bounds. def getItemBigIcon(index); end - + # Change mini icon for item at _index_. # Raises IndexError if _index_ is out of bounds. def setItemMiniIcon(index, miniIcon, owned=false); end - + # Return mini icon for item at _index_. # Raises IndexError if _index_ is out of bounds. def getItemMiniIcon(index); end - + # Change user _data_ for item at _index_. # Raises IndexError if _index_ is out of bounds. def setItemData(index, data); - + # Return user data for item at _index_. # Raises IndexError if _index_ is out of bounds. def getItemData(index); end - + # Return +true+ if item at _index_ is selected. # Raises IndexError if _index_ is out of bounds. def itemSelected?(index); end - + # Return +true+ if item at _index_ is the current item. # Raises IndexError if _index_ is out of bounds. def itemCurrent?(index); end - + # Return +true+ if item at _index_ is visible. # Raises IndexError if _index_ is out of bounds. def itemVisible?(index); end - + # Return +true+ if item at _index_ is enabled. # Raises IndexError if _index_ is out of bounds. def itemEnabled?(index); end - + # Return item hit code: 0 outside, 1 icon, 2 text. # Raises IndexError if _index_ is out of bounds. def hitItem(index, x, y, ww=1, hh=1); end - + # Repaint item at _index_. # Raises IndexError if _index_ is out of bounds. def updateItem(index); end - + # Select items in rectangle. # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's # message target after each previously unselected item is selected. def selectInRectangle(x, y, w, h, notify=false); end - + # Enable item at _index_. # Raises IndexError if _index_ is out of bounds. def enableItem(index); - + # Disable item at _index_. # Raises IndexError if _index_ is out of bounds. def disableItem(index); - + # Select item at _index_. # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's # message target after the item is selected. # Raises IndexError if _index_ is out of bounds. def selectItem(index, notify=false); end - + # Deselect item at _index_. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the list's # message target after the item is deselected. # Raises IndexError if _index_ is out of bounds. def deselectItem(index, notify=false); end - + # Toggle item at _index_. # If _notify_ is +true+, either a +SEL_SELECTED+ or +SEL_DESELECTED+ # message is sent to the list's message target to indicate the item's # new state. # Raises IndexError if _index_ is out of bounds. def toggleItem(index, notify=false); end - + # Change current item index. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the list's message target # after the current item changes. # Raises IndexError if _index_ is out of bounds. def setCurrentItem(index, notify=false); end - + # Extend selection from anchor index to _index_. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ messages # are sent to the list's message target as the selected-state of different items changes. # Raises IndexError if _index_ is out of bounds. def extendSelection(index, notify=false); end - + # Deselect all items. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the list's message # target for all the items that were selected before killSelection was called. def killSelection(notify=false); end - + # Sort items def sortItems(); end end diff --git a/rdoc-sources/FXIconSource.rb b/rdoc-sources/FXIconSource.rb index 47a2179..01d7417 100644 --- a/rdoc-sources/FXIconSource.rb +++ b/rdoc-sources/FXIconSource.rb @@ -17,7 +17,7 @@ module Fox # def initialize(app) # :yields: theIconSource end - + # # Load an icon from the file _filename_. By default, the file extension is # stripped and used as the icon _type_; if an explicit icon type is forced, @@ -67,7 +67,7 @@ module Fox # to divine the icon format if the parameter is omitted). # def loadImageData(pixels, type=nil); end - + # # Load an image of a given type (e.g. "gif") from an already open stream. # Returns +nil+ if there's some error loading the image. (The optional diff --git a/rdoc-sources/FXId.rb b/rdoc-sources/FXId.rb index 8fd8d8b..859a85d 100755 --- a/rdoc-sources/FXId.rb +++ b/rdoc-sources/FXId.rb @@ -7,7 +7,7 @@ module Fox # Application [FXApp] attr_reader :app - # User data [Object] + # User data [Object] attr_accessor :userData # XID handle for the server-side resource [Integer] diff --git a/rdoc-sources/FXImage.rb b/rdoc-sources/FXImage.rb index 771fc3f..8023a36 100755 --- a/rdoc-sources/FXImage.rb +++ b/rdoc-sources/FXImage.rb @@ -41,10 +41,10 @@ module Fox # Pixel data [FXMemoryBuffer] attr_reader :data - + # Option flags [Integer] attr_accessor :options - + # # Create an image. If a client-side pixel buffer has been specified, # the image does not own the pixel buffer unless the +IMAGE_OWNED+ flag is @@ -85,7 +85,7 @@ module Fox # +clr+:: new color value for this pixel [FXColor] # def setPixel(x, y, clr) ; end - + # Scan the image and return +false+ if it's fully opaque. def hasAlpha?; end @@ -104,7 +104,7 @@ module Fox # and if the image width and height are greater than zero. # def render() ; end - + # # Release the client-side pixels buffer, free it if it was owned # (i.e. if the +IMAGE_OWNED+ option is set).. @@ -131,7 +131,7 @@ module Fox # +quality+:: scaling algorithm quality, either 0 or 1 (see above) [Integer] # def scale(w, h, quality=0) ; end - + # # Mirror image horizontally and/or vertically and then re-render the # server-side image from the client-side pixel buffer. @@ -142,7 +142,7 @@ module Fox # +vertical+:: if +true+, the image will be flipped from top to bottom [Boolean] # def mirror(horizontal, vertical) ; end - + # # Rotate image counter-clockwise by some number of degrees and then # re-render the server-side image from the client-side pixel buffer. @@ -152,7 +152,7 @@ module Fox # +degrees+:: number of degrees by which to rotate the image [Integer] # def rotate(degrees) ; end - + # # Crop image to given rectangle and then re-render the server-side image # from the client-side pixel buffer. This method calls resize() to adjust the client @@ -169,10 +169,10 @@ module Fox # +color+:: fill color for blank areas after crop [FXColor] # def crop(x, y, w, h, color=0) ; end - + # Fill image with uniform color. def fill(color); end - + # # Fade an image to a certain color by a certain factor. The _factor_ is # some integer value between 0 and 255 inclusive, where a factor of 255 indicates no fading and a factor @@ -251,7 +251,7 @@ module Fox # +color+:: the blended color [FXColor] # def blend(color); end - + # # Save pixel data to a stream. # @@ -269,7 +269,7 @@ module Fox # +store+:: opened stream to which to save the pixel data [FXStream] # def savePixels(store) ; end - + # # Load pixel data from a stream. # diff --git a/rdoc-sources/FXImageFrame.rb b/rdoc-sources/FXImageFrame.rb index ec84360..851f34f 100755 --- a/rdoc-sources/FXImageFrame.rb +++ b/rdoc-sources/FXImageFrame.rb @@ -3,16 +3,16 @@ module Fox # An FXImageFrame is a simple frame widget that displays an FXImage image. # class FXImageFrame < FXFrame - + # The current image being displayed [FXImage] attr_accessor :image - + # # The current justification mode, some combination of the flags # +JUSTIFY_LEFT+, +JUSTIFY_RIGHT+, +JUSTIFY_TOP+ and +JUSTIFY_BOTTOM+ [Integer] # attr_accessor :justify - + # # Return an initialized FXImageFrame instance. # diff --git a/rdoc-sources/FXImageView.rb b/rdoc-sources/FXImageView.rb index d9a7a09..f6ae7ba 100755 --- a/rdoc-sources/FXImageView.rb +++ b/rdoc-sources/FXImageView.rb @@ -18,10 +18,10 @@ module Fox # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance. # class FXImageView < FXScrollArea - + # The image [FXImage] attr_accessor :image - + # Current alignment [Integer] attr_accessor :alignment diff --git a/rdoc-sources/FXInputDialog.rb b/rdoc-sources/FXInputDialog.rb index 42dc800..d335f05 100755 --- a/rdoc-sources/FXInputDialog.rb +++ b/rdoc-sources/FXInputDialog.rb @@ -26,15 +26,15 @@ module Fox # def initialize(owner, caption, label, icon=nil, opts=INPUTDIALOG_STRING, x=0, y=0, width=0, height=0) # :yields: theInputDialog end - + # Return the input dialog's input string text def to_s; text; end - + # # Change limits (where _lo_ and _hi_ are numbers). # def setLimits(lo, hi); end - + # # Return limits (a two-element array of floats). # @@ -46,19 +46,19 @@ module Fox # user clicks *OK*, else return +nil+. # def FXInputDialog.getString(initial, owner, caption, label, ic=nil); end - + # # Prompt for a string, in a free-floating window.. # def FXInputDialog.getString(initial, app, caption, label, ic=nil); end - + # # Prompt the user for an integer number, starting from the specified _initial_ value. # Return the input value if the user clicks *OK*, else return +nil+. # The input is constrained between _lo_ and _hi_. # def FXInputDialog.getInteger(initial, owner, caption, label, ic=nil, lo=-2147483647, hi=2147483647); end - + # # Prompt for an integer, in a free-floating window.. # diff --git a/rdoc-sources/FXJPGIcon.rb b/rdoc-sources/FXJPGIcon.rb index d7479b5..4fa3b2f 100755 --- a/rdoc-sources/FXJPGIcon.rb +++ b/rdoc-sources/FXJPGIcon.rb @@ -3,7 +3,7 @@ module Fox # JPEG icon class # class FXJPGIcon < FXIcon - + # # Return the suggested file extension for this image type ("jpg"). # @@ -13,7 +13,7 @@ module Fox # Return the MIME type for this image type # def FXJPGIcon.mimeType; end - + # Return +true+ if JPEG image file format is supported. def FXJPGIcon.supported? ; end @@ -46,7 +46,7 @@ module Fox # +store+:: stream from which to read the file data [FXStream] # def Fox.fxloadJPG(store); end - + # # Save a JPEG image to a stream. # Returns +true+ on success, +false+ on failure. diff --git a/rdoc-sources/FXJPGImage.rb b/rdoc-sources/FXJPGImage.rb index df15fc0..ce8bae3 100755 --- a/rdoc-sources/FXJPGImage.rb +++ b/rdoc-sources/FXJPGImage.rb @@ -3,12 +3,12 @@ module Fox # JPEG Image class # class FXJPGImage < FXImage - + # # Return the suggested file extension for this image type ("jpg"). # def FXJPGImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXKnob.rb b/rdoc-sources/FXKnob.rb index 2857291..70b6686 100644 --- a/rdoc-sources/FXKnob.rb +++ b/rdoc-sources/FXKnob.rb @@ -33,35 +33,35 @@ module Fox # Knob value [Integer] attr_accessor :value - + # Knob range [Range] attr_accessor :range - + # Knob style [Integer] attr_accessor :knobStyle - + # Knob auto-increment/decrement value [Integer] attr_accessor :increment - + # Delta between ticks [Integer] attr_accessor :tickDelta - + # Indicator needle color [FXColor] attr_accessor :lineColor - + # Help text displayed on the status line [String] attr_accessor :helpText - + # Tooltip text value [String] attr_accessor :tipText - + # # Return a new FXKnob instance. # def initialize(p, target=nil, selector=0, opts=KNOB_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theKnob end - # + # # Change the knob's movement limits (start and ending angles) # Accept values in degrees from 0 (south) to 360. # diff --git a/rdoc-sources/FXLabel.rb b/rdoc-sources/FXLabel.rb index ebf456f..f2f0a7d 100755 --- a/rdoc-sources/FXLabel.rb +++ b/rdoc-sources/FXLabel.rb @@ -40,32 +40,32 @@ module Fox # The text for this label [String] attr_accessor :text - + # The icon for this label [FXIcon] attr_accessor :icon - + # The text font [FXFont] attr_accessor :font - + # The text color [FXColor] attr_accessor :textColor - + # Text justification mode [Integer] attr_accessor :justify - + # Icon position [Integer] attr_accessor :iconPosition - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText # Construct label with given text and icon def initialize(parent, text, icon=nil, opts=LABEL_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theLabel end - + # Return the label's text def to_s; text; end end diff --git a/rdoc-sources/FXList.rb b/rdoc-sources/FXList.rb index 949ae6c..6b48d3d 100755 --- a/rdoc-sources/FXList.rb +++ b/rdoc-sources/FXList.rb @@ -6,60 +6,60 @@ module Fox # Text for this item [String] attr_accessor :text - + # Icon for this item [FXIcon] attr_accessor :icon - + # User data for this item [Object] attr_accessor :data - + # Indicates whether this item has the focus [Boolean] attr_writer :focus - + # Indicates whether this item is selected [Boolean] attr_writer :selected - + # Indicates whether this item is enabled [Boolean] attr_writer :enabled # Indicates whether this item is draggable [Boolean] attr_writer :draggable - + # Initialize def initialize(text, icon=nil, data=nil) # :yields: theListItem end - + # Return the list item's text def to_s; text; end - + # Returns +true+ if this item has the focus def hasFocus?() ; end - + # Return +true+ if this item is selected def selected?() ; end - + # Return +true+ if this item is enabled def enabled?() ; end - + # Return +true+ if this item is draggable def draggable?() ; end - + # Return the width of this item for a specified list def getWidth(list) ; end - + # Return the height of this item for a specified list def getHeight(list) ; end - + # Create the item def create() ; end - + # Detach the item def detach() ; end - + # Destroy the item def destroy( ); end end - + # # A List Widget displays a list of items, each with a text and # optional icon. When an item's selected state changes, the list sends @@ -112,34 +112,34 @@ module Fox # Number of items in the list [Integer] attr_reader :numItems - + # Number of visible items [Integer] attr_accessor :numVisible - + # Index of current item, or -1 if no current item [Integer] attr_accessor :currentItem - + # Index of anchor item, or -1 if no anchor item [Integer] attr_reader :anchorItem - + # Index of item under the cursor, or -1 if none [Integer] attr_reader :cursorItem - + # Text font [FXFont] attr_accessor :font - + # Normal text color [FXColor] attr_accessor :textColor - + # Selected text background color [FXColor] attr_accessor :selBackColor - + # Selected text color [FXColor] attr_accessor :selTextColor - + # List style [Integer] attr_accessor :listStyle - + # Status line help text [String] attr_accessor :helpText @@ -246,7 +246,7 @@ module Fox # Raises IndexError if either _oldIndex_ or _newIndex_ is out of bounds. # def moveItem(newIndex, oldIndex, notify=false); end - + # # Extract item from list and return a reference to the item. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's diff --git a/rdoc-sources/FXListBox.rb b/rdoc-sources/FXListBox.rb index 85f2be5..1e8bbd9 100755 --- a/rdoc-sources/FXListBox.rb +++ b/rdoc-sources/FXListBox.rb @@ -36,25 +36,25 @@ module Fox # Current item's index, or -1 if no current item [Integer] attr_accessor :currentItem - + # Text font [FXFont] attr_accessor :font - + # Background color [FXColor] attr_reader :backColor - + # Text color [FXColor] attr_accessor :textColor - + # Background color for selected items [FXColor] attr_accessor :selBackColor - + # Text color for selected items [FXColor] attr_accessor :selTextColor - + # Status line help text [String] attr_accessor :helpText - + # Tool tip message [String] attr_accessor :tipText @@ -82,7 +82,7 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItem(index, text, icon=nil, ptr=nil); end - + # # Fill list by appending items from array of strings, and return the number # items added. @@ -94,13 +94,13 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def insertItem(index, text, icon=nil, ptr=nil); end - + # Add an item to the end of the list. def appendItem(text, icon=nil, ptr=nil); - + # Prepend an item to the list def prependItem(text, icon=nil, ptr=nil); end - + # # Move item from _oldIndex_ to _newIndex_ and return the new # index of the item. @@ -119,10 +119,10 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def removeItem(index); end - + # Remove all items from the list def clearItems(); end - + # # Search items by _text_, beginning from item _start_. If the start # item is -1 the search will start at the first item in the list. @@ -134,7 +134,7 @@ module Fox # Return -1 if no matching item is found. # def findItem(text, start=-1, flags=SEARCH_FORWARD|SEARCH_WRAP); end - + # # Search items by associated user _data_, beginning from item _start_. If the # start item is -1 the search will start at the first item in the list. @@ -149,25 +149,25 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def setItemText(index, text); end - + # # Return text for specified item. # Raises IndexError if _index_ is out of bounds. # def getItemText(index); end - + # # Set icon for specified item to _icon_. # Raises IndexError if _index_ is out of bounds. # def setItemIcon(index, icon, owned=false); end - + # # Return icon for specified item. # Raises IndexError if _index_ is out of bounds. # def getItemIcon(index); end - + # # Set user data object for specified item to _ptr_. # Raises IndexError if _index_ is out of bounds. @@ -179,13 +179,13 @@ module Fox # Raises IndexError if _index_ is out of bounds. # def getItemData(index); end - + # Return +true+ if the pane is shown. def paneShown?; end - + # Sort items using current sort function def sortItems; end - + alias appendItem << end end diff --git a/rdoc-sources/FXMDIChild.rb b/rdoc-sources/FXMDIChild.rb index 30a741f..91001dc 100755 --- a/rdoc-sources/FXMDIChild.rb +++ b/rdoc-sources/FXMDIChild.rb @@ -78,10 +78,10 @@ module Fox # Iconified height [Integer] attr_accessor :iconHeight - + # Content window [FXWindow] attr_reader :contentWindow - + # Window title [String] attr_accessor :title @@ -102,20 +102,20 @@ module Fox # Title background color [FXColor] attr_accessor :titleBackColor - + # Window icon [FXIcon] attr_accessor :icon - + # Window menu [FXPopup] attr_accessor :menu - + # Title font [FXFont] attr_accessor :font # Construct MDI Child window with given name and icon def initialize(p, name, ic=nil, pup=nil, opts=0, x=0, y=0, width=0, height=0) # :yields: theMDIChild end - + # # Minimize this window. # If _notify_ is +true+, ... @@ -136,18 +136,18 @@ module Fox # Return +true+ if maximized def maximized? ; end - + # Return +true+ if minimized def minimized? ; end - + # Set tracking instead of just outline def setTracking(tracking); end - + alias tracking= setTracking - + # Return +true+ if tracking, +false+ otherwise. def getTracking(); end - + alias isTracking? getTracking alias tracking getTracking diff --git a/rdoc-sources/FXMDIClient.rb b/rdoc-sources/FXMDIClient.rb index 5303b66..4e9b140 100755 --- a/rdoc-sources/FXMDIClient.rb +++ b/rdoc-sources/FXMDIClient.rb @@ -24,13 +24,13 @@ module Fox # sent when the active child changes; the message data is a reference to the new active child window (or +nil+ if there is none) # class FXMDIClient < FXComposite - + # Active MDI child window, or +nil+ if none [FXMDIChild]. attr_accessor :activeChild - + # Cascade offset X [Integer] attr_accessor :cascadeX - + # Cascade offset Y [Integer] attr_accessor :cascadeY @@ -43,7 +43,7 @@ module Fox # the MDI windows fails to handle the message. # def forallWindows(sender, sel, ptr); end - + # # Pass message once to all MDI windows with the same document, # stopping when one of the MDI windows fails to handle the message. @@ -55,7 +55,7 @@ module Fox # stopping when one of the MDI windows fails to handle the message. # def forallDocWindows(document, sender, sel, ptr); end - + # # Set active MDI child window for this MDI client to _child_. # diff --git a/rdoc-sources/FXMatrix.rb b/rdoc-sources/FXMatrix.rb index f0bad06..123a99b 100755 --- a/rdoc-sources/FXMatrix.rb +++ b/rdoc-sources/FXMatrix.rb @@ -5,12 +5,12 @@ module Fox # the matrix will have the given number of rows and the number of columns # grows as more child windows are added; if the matrix style is +MATRIX_BY_COLUMNS+, # then the number of columns is fixed and the number of rows grows as more children - # are added. + # are added. # If all children in a row (column) have the +LAYOUT_FILL_ROW+ (+LAYOUT_FILL_COLUMN+) # hint set, then the row (column) will be stretchable as the matrix layout manager # itself is resized. If more than one row (column) is stretchable, the space is # apportioned to each stretchable row (column) proportionally. - # Within each cell of the matrix, all other layout hints are observed. + # Within each cell of the matrix, all other layout hints are observed. # For example, a child having +LAYOUT_CENTER_Y+ and +LAYOUT_FILL_X+ hints will # be centered in the Y-direction, while being stretched in the X-direction. # Empty cells can be obtained by simply placing a borderless FXFrame widget @@ -25,10 +25,10 @@ module Fox # Matrix style [Integer] attr_accessor :matrixStyle - + # Number of rows [Integer] attr_accessor :numRows - + # Number of columns [Integer] attr_accessor :numColumns @@ -42,12 +42,12 @@ module Fox # Obtain the child placed at a certain _row_ and _column_. # def childAtRowCol(row, column); end - + # # Return the row in which the given _child_ is placed. # def rowOfChild(child); end - + # # Return the column in which the given _child_ is placed. # diff --git a/rdoc-sources/FXMemoryBuffer.rb b/rdoc-sources/FXMemoryBuffer.rb index e5e4326..69c1b82 100755 --- a/rdoc-sources/FXMemoryBuffer.rb +++ b/rdoc-sources/FXMemoryBuffer.rb @@ -20,7 +20,7 @@ module Fox # Return the specified element (an FXColor value) def [](index); end - + # Set the specified element to _clr_. def []=(index, clr); end end diff --git a/rdoc-sources/FXMemoryStream.rb b/rdoc-sources/FXMemoryStream.rb index d876b1d..4007859 100755 --- a/rdoc-sources/FXMemoryStream.rb +++ b/rdoc-sources/FXMemoryStream.rb @@ -21,7 +21,7 @@ module Fox # def initialize(cont=nil) # :yields: theMemoryStream end - + # # Open memory stream for reading or writing. # Returns +true+ if successful, +false+ otherwise. @@ -32,14 +32,14 @@ module Fox # +data+:: memory buffer to be used for the stream, or +nil+ if the stream object should allocate its own buffer [String] # def open(save_or_load, data); end - + # # Take buffer away from stream, thus transferring ownership of the buffer # from the stream object to the caller. # Returns a string containing the buffer contents. # def takeBuffer; end - + # # Give buffer (a string) to this stream, thus transferring ownership of # the buffer from the caller to the stream object. diff --git a/rdoc-sources/FXMenuBar.rb b/rdoc-sources/FXMenuBar.rb index a4f8631..b245868 100755 --- a/rdoc-sources/FXMenuBar.rb +++ b/rdoc-sources/FXMenuBar.rb @@ -11,7 +11,7 @@ module Fox # def initialize(p, q, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theMenuBar end - + # # Construct a non-floatable menubar. # The menubar can not be undocked. diff --git a/rdoc-sources/FXMenuButton.rb b/rdoc-sources/FXMenuButton.rb index cb57f92..c9d9a1d 100755 --- a/rdoc-sources/FXMenuButton.rb +++ b/rdoc-sources/FXMenuButton.rb @@ -6,10 +6,10 @@ module Fox # menu button; this is controlled by the flags +MENUBUTTON_DOWN+, etc. # Next, there are several attachment modes; the popup's left/bottom edge may # attach to the menu button's left/top edge, or the popup's right/top edge may - # attach to the menu button's right/bottom edge, or both. + # attach to the menu button's right/bottom edge, or both. # Also, the popup may appear centered relative to the menu button. # Finally, a small offset may be specified to displace the location of the - # popup by a few pixels so as to account for borders and so on. + # popup by a few pixels so as to account for borders and so on. # Normally, the menu button shows an arrow pointing to the direction where # the popup is set to appear; this can be turned off by passing the option # +MENUBUTTON_NOARROWS+. @@ -59,19 +59,19 @@ module Fox # The popup menu [FXPopup] attr_accessor :menu - + # X-offset where menu pops up relative to button [Integer] attr_accessor :xOffset - + # Y-offset where menu pops up relative to button [Integer] attr_accessor :yOffset - + # Menu button style [Integer] attr_accessor :buttonStyle - + # Popup style [Integer] attr_accessor :popupStyle - + # Attachment [Integer] attr_accessor :attachment diff --git a/rdoc-sources/FXMenuCaption.rb b/rdoc-sources/FXMenuCaption.rb index 128ba6d..b45689e 100755 --- a/rdoc-sources/FXMenuCaption.rb +++ b/rdoc-sources/FXMenuCaption.rb @@ -12,31 +12,31 @@ module Fox # The text for this menu [String] attr_accessor :text - + # The icon for this menu [FXIcon] attr_accessor :icon - + # The text font [FXFont] attr_accessor :font - + # Text color [FXColor] attr_accessor :textColor - + # Selection background color [FXColor] attr_accessor :selBackColor - + # Selection text color [FXColor] attr_accessor :selTextColor - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Status line help text for this menu [String] attr_accessor :helpText - + # Tool tip message for this menu [String] attr_accessor :tipText @@ -45,7 +45,7 @@ module Fox # def initialize(parent, text, icon=nil, opts=0) # :yields: theMenuCaption end - + # Return the menu caption's text def to_s; text; end end diff --git a/rdoc-sources/FXMenuCheck.rb b/rdoc-sources/FXMenuCheck.rb index 57e7361..c20ee9d 100755 --- a/rdoc-sources/FXMenuCheck.rb +++ b/rdoc-sources/FXMenuCheck.rb @@ -16,7 +16,7 @@ module Fox # Check state, one of +TRUE+, +FALSE+ or +MAYBE+ attr_accessor :check - + # Box background color [FXColor] attr_accessor :boxColor diff --git a/rdoc-sources/FXMenuRadio.rb b/rdoc-sources/FXMenuRadio.rb index ed7dfe9..c89466d 100755 --- a/rdoc-sources/FXMenuRadio.rb +++ b/rdoc-sources/FXMenuRadio.rb @@ -19,7 +19,7 @@ module Fox # Radio button state, one of +TRUE+, +FALSE+ or +MAYBE+ attr_accessor :check - + # Radio background color [FXColor] attr_accessor :radioColor diff --git a/rdoc-sources/FXMenuSeparator.rb b/rdoc-sources/FXMenuSeparator.rb index d754ffd..7789665 100755 --- a/rdoc-sources/FXMenuSeparator.rb +++ b/rdoc-sources/FXMenuSeparator.rb @@ -7,7 +7,7 @@ module Fox # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor diff --git a/rdoc-sources/FXMessageBox.rb b/rdoc-sources/FXMessageBox.rb index c77b132..58f374f 100755 --- a/rdoc-sources/FXMessageBox.rb +++ b/rdoc-sources/FXMessageBox.rb @@ -46,21 +46,21 @@ module Fox # If _owner_ is the application, the message box will be free-floating. # def FXMessageBox.error(owner, opts, caption, message); end - + # # Show a modal warning message; returns one of the return values listed above. # If _owner_ is a window, the message box will float over that window. # If _owner_ is the application, the message box will be free-floating. # def FXMessageBox.warning(owner, opts, caption, message); end - + # # Show a modal question dialog; returns one of the return values listed above. # If _owner_ is a window, the message box will float over that window. # If _owner_ is the application, the message box will be free-floating. # def FXMessageBox.question(owner, opts, caption, message); end - + # # Show a modal information dialog; returns one of the return values listed above. # If _owner_ is a window, the message box will float over that window. diff --git a/rdoc-sources/FXOptionMenu.rb b/rdoc-sources/FXOptionMenu.rb index 59bed2e..7c3fef9 100755 --- a/rdoc-sources/FXOptionMenu.rb +++ b/rdoc-sources/FXOptionMenu.rb @@ -15,7 +15,7 @@ module Fox class FXOption < FXLabel # Selection background color [FXColor] attr_accessor :selBackColor - + # Selection text color [FXColor] attr_accessor :selTextColor @@ -40,37 +40,37 @@ module Fox # +SEL_COMMAND+:: sent when this an option is selected; the message data is the option number. # class FXOptionMenu < FXLabel - + # The current option, or +nil+ if none [FXOption] attr_accessor :current - + # The current option number, or -1 if none [Integer] attr_accessor :currentNo - + # The pane which will be popped up [FXPopup] attr_accessor :menu - + # # Returns an initialized FXOptionMenu instance. # def initialize(p, pup=nil, opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theOptionMenu end - + # # Set the current option. # def setCurrent(win, notify=false); end - + # # Return a reference to the current option (an FXOption instance). # def getCurrent(); end - + # # Set the current option number. # def setCurrentNo(no, notify=false); end - + # # Get the current option number. # diff --git a/rdoc-sources/FXPCXIcon.rb b/rdoc-sources/FXPCXIcon.rb index 80bbb25..6b256b1 100755 --- a/rdoc-sources/FXPCXIcon.rb +++ b/rdoc-sources/FXPCXIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("pcx"). # def FXPCXIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -54,7 +54,7 @@ module Fox # +height+:: height [Integer] # def Fox.fxsavePCX(store, data, transp, width, height); end - + # # Return +true+ if _store_ (an FXStream instance) contains a PCX image. # diff --git a/rdoc-sources/FXPCXImage.rb b/rdoc-sources/FXPCXImage.rb index 6a51fca..a03e75d 100755 --- a/rdoc-sources/FXPCXImage.rb +++ b/rdoc-sources/FXPCXImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("pcx"). # def FXPCXImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXPNGIcon.rb b/rdoc-sources/FXPNGIcon.rb index 0c91217..35cbef3 100755 --- a/rdoc-sources/FXPNGIcon.rb +++ b/rdoc-sources/FXPNGIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("png"). # def FXPNGIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -31,7 +31,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: thePNGIcon end end - + # # Load a PNG file from a stream. # If successful, returns an array containing the image pixel data (as a @@ -57,7 +57,7 @@ module Fox # +height+:: height [Integer] # def Fox.fxsavePNG(store, data, transp, width, height); end - + # # Return +true+ if _store_ (an FXStream instance) contains a PNG image. # diff --git a/rdoc-sources/FXPNGImage.rb b/rdoc-sources/FXPNGImage.rb index fe3f770..c02e5d9 100755 --- a/rdoc-sources/FXPNGImage.rb +++ b/rdoc-sources/FXPNGImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("png"). # def FXPNGImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXPPMIcon.rb b/rdoc-sources/FXPPMIcon.rb index f0eaa71..42901f1 100755 --- a/rdoc-sources/FXPPMIcon.rb +++ b/rdoc-sources/FXPPMIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("ppm"). # def FXPPMIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -28,7 +28,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: thePPMIcon end end - + # # Return +true+ if _store_ (an FXStream instance) contains a PPM image. # diff --git a/rdoc-sources/FXPPMImage.rb b/rdoc-sources/FXPPMImage.rb index e58d5f5..5e38048 100755 --- a/rdoc-sources/FXPPMImage.rb +++ b/rdoc-sources/FXPPMImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("ppm"). # def FXPPMImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXPacker.rb b/rdoc-sources/FXPacker.rb index 7472dff..397e816 100755 --- a/rdoc-sources/FXPacker.rb +++ b/rdoc-sources/FXPacker.rb @@ -13,43 +13,43 @@ module Fox # case it will be placed to take all remaining space. # class FXPacker < FXComposite - + # Current frame style [Integer] attr_accessor :frameStyle - + # Packing hints [Integer] attr_accessor :packingHints - + # Border width, in pixels [Integer] attr_reader :borderWidth - + # Top padding, in pixels [Integer] attr_accessor :padTop - + # Bottom padding, in pixels [Integer] attr_accessor :padBottom - + # Left padding, in pixels [Integer] attr_accessor :padLeft - + # Right padding, in pixels [Integer] attr_accessor :padRight - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Border color [FXColor] attr_accessor :borderColor - + # Base GUI color [FXColor] attr_accessor :baseColor - + # Horizontal inter-child spacing, in pixels [Integer] attr_accessor :hSpacing - + # Vertical inter-child spacing, in pixels [Integer] attr_accessor :vSpacing diff --git a/rdoc-sources/FXPopup.rb b/rdoc-sources/FXPopup.rb index a40af4b..7e5646d 100755 --- a/rdoc-sources/FXPopup.rb +++ b/rdoc-sources/FXPopup.rb @@ -9,43 +9,43 @@ module Fox # +POPUP_SHRINKWRAP+:: Shrinkwrap to content # class FXPopup < FXShell - + # Frame style [Integer] attr_accessor :frameStyle - + # Border width [Integer] attr_reader :borderWidth - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Border color [FXColor] attr_accessor :borderColor # Base color [FXColor] attr_accessor :baseColor - + # Current grab owner [FXWindow] attr_reader :grabOwner - + # Popup orientation [Integer] attr_accessor :orientation - + # Shrinkwrap mode [Boolean] attr_accessor :shrinkWrap - + # # Construct popup pane # def initialize(owner, opts=POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, x=0, y=0, width=0, height=0) # :yields: thePopup end - + # Pop it up def popup(grabto, x, y, width=0, height=0); end - + # Pop it down def popdown(); end end diff --git a/rdoc-sources/FXProgressBar.rb b/rdoc-sources/FXProgressBar.rb index 4d1a0e4..66361a9 100755 --- a/rdoc-sources/FXProgressBar.rb +++ b/rdoc-sources/FXProgressBar.rb @@ -13,7 +13,7 @@ module Fox class FXProgressBar < FXFrame # Amount of progress [Integer] attr_accessor :progress - + # Maximum value for progress [Integer] attr_accessor :total @@ -28,13 +28,13 @@ module Fox # Text color [FXColor] attr_accessor :textColor - + # Alternate text color [FXColor] attr_accessor :textAltColor - + # Text font [FXFont] attr_accessor :font - + # Progress bar style [Integer] attr_accessor :barStyle @@ -43,13 +43,13 @@ module Fox # def initialize(p, target=nil, selector=0, opts=PROGRESSBAR_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theProgressBar end - + # Increment progress by given _amount_. def increment(amount); end - + # Hide progress percentage def hideNumber; end - + # Show progress percentage def showNumber; end end diff --git a/rdoc-sources/FXProgressDialog.rb b/rdoc-sources/FXProgressDialog.rb index 4ef50d4..badec45 100755 --- a/rdoc-sources/FXProgressDialog.rb +++ b/rdoc-sources/FXProgressDialog.rb @@ -16,7 +16,7 @@ module Fox # Amount of progress [Integer] attr_accessor :progress - + # Maximum value for progress [Integer] attr_accessor :total @@ -25,10 +25,10 @@ module Fox # def initialize(owner, caption, label, opts=PROGRESSDIALOG_NORMAL, x=0, y=0, width=0, height=0) # :yields: theProgressDialog end - + # Increment progress by given _amount_. def increment(amount); end - + # Return true if the operation was cancelled. def cancelled?; end end diff --git a/rdoc-sources/FXQuatd.rb b/rdoc-sources/FXQuatd.rb index 6ce1d89..3620884 100755 --- a/rdoc-sources/FXQuatd.rb +++ b/rdoc-sources/FXQuatd.rb @@ -2,7 +2,7 @@ module Fox class FXQuatd < FXVec4d # Return an initialized FXQuatd instance. def initialize; end - + # # Construct an FXQuatd instance from a rotation axis and angle. # @@ -12,7 +12,7 @@ module Fox # +angle+:: the rotation angle (in radians) [Float] # def initialize(axis, phi=0.0); end - + # # Construct an FXQuatd from components. # @@ -24,7 +24,7 @@ module Fox # +width+:: w [Float] # def initialize(x, y, z, w); end - + # Construct an FXQuatd from an array of Floats. def initialize(floats); end @@ -38,14 +38,14 @@ module Fox # +yaw+:: yaw angle in radians [Float] # def initialize(roll, pitch, yaw); end - + # Construct quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d # instances. def initialize(ex, ey, ez); end # Adjust quaternion length; returns a reference to self. def adjust!; end - + # # Set quaternion from rotation axis and angle. # @@ -55,7 +55,7 @@ module Fox # +angle+:: the rotation angle (in radians) [Float] # def setAxisAngle(axis, phi=0.0); end - + # # Return the rotation axis and angle for this quaternion, i.e. # @@ -65,7 +65,7 @@ module Fox # of rotation in radians. # def getAxisAngle(); end - + # # Set quaternion from yaw (z), pitch (y) and roll (x). # @@ -76,14 +76,14 @@ module Fox # +yaw+:: yaw angle in radians [Float] # def setRollPitchYaw(roll, pitch, yaw); end - + # # Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g. # # roll, pitch, yaw = aQuaternion.getRollPitchYaw() # def getRollPitchYaw(); end - + # Set quaternion from axes; _ex_, _ey_ and _ez_ are all FXVec3d instances. def setAxes(ex, ey, ez); end @@ -103,32 +103,32 @@ module Fox # Return the exponentiation of this quaternion (a new FXQuatd instance). # def exp; end - + # # Return the logarithm of this quaternion (a new FXQuatd instance). # def log; end - + # # Return the inverse of this quaternion (a new FXQuatd instance). # def invert; end - + # # Invert unit quaternion (returns a new FXQuatd instance). # def unitinvert; end - + # # Return the conjugate of this quaternion (a new FXQuatd instance). # def conj; end - + # # Return the product of this quaternion and _other_ (another FXQuatd instance). # def *(other); end - + # # Compute the rotation of a vector _vec_ by this quaternion; returns the # rotated vector (a new FXVec3d instance). @@ -138,7 +138,7 @@ module Fox # +vec+:: the vector to be rotated [FXVec3d] # def *(vec); end - + # # Construct a quaternion from arc a->b on unit sphere and return a reference # to self. @@ -149,7 +149,7 @@ module Fox # +b+:: [FXVec3d] # def arc!(a, b); end - + # # Spherical lerp and return a reference to self. # diff --git a/rdoc-sources/FXQuatf.rb b/rdoc-sources/FXQuatf.rb index 6ba18f7..c83faae 100755 --- a/rdoc-sources/FXQuatf.rb +++ b/rdoc-sources/FXQuatf.rb @@ -2,7 +2,7 @@ module Fox class FXQuatf < FXVec4f # Return an initialized FXQuatf instance. def initialize; end - + # # Construct an FXQuatf instance from a rotation axis and angle. # @@ -12,7 +12,7 @@ module Fox # +angle+:: the rotation angle (in radians) [Float] # def initialize(axis, phi=0.0); end - + # # Construct from Euler angles yaw (z), pitch (y) and roll (x). # @@ -34,7 +34,7 @@ module Fox # +ez+:: z-axis [FXVec3f] # def initialize(ex, ey, ez); end - + # # Construct quaternion from 3x3 matrix (where _mat_ is an FXMat3f instance). # @@ -51,10 +51,10 @@ module Fox # +width+:: w [Float] # def initialize(x, y, z, w); end - + # Adjust quaternion length; returns a reference to self. def adjust!; end - + # # Set quaternion from rotation axis and angle. # @@ -64,7 +64,7 @@ module Fox # +angle+:: the rotation angle (in radians) [Float] # def setAxisAngle(axis, phi=0.0); end - + # # Return the rotation axis and angle for this quaternion, i.e. # @@ -74,7 +74,7 @@ module Fox # of rotation in radians. # def getAxisAngle(); end - + # # Set quaternion from yaw (z), pitch (y) and roll (x). # @@ -85,17 +85,17 @@ module Fox # +yaw+:: yaw angle in radians [Float] # def setRollPitchYaw(roll, pitch, yaw); end - + # # Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g. # # roll, pitch, yaw = aQuaternion.getRollPitchYaw() # def getRollPitchYaw(); end - + # Set quaternion from axes (where _ex_, _ey_ and _ez_ are FXVec3f instances). def setAxes(ex, ey, ez); end - + # Get quaternion axes as a 3-element array of FXVec3f instances. def getAxes(); end @@ -112,32 +112,32 @@ module Fox # Return the exponentiation of this quaternion (a new FXQuatf instance). # def exp; end - + # # Return the logarithm of this quaternion (a new FXQuatf instance). # def log; end - + # # Return the inverse of this quaternion (a new FXQuatf instance). # def invert; end - + # # Invert unit quaternion (returns a new FXQuatf instance). # def unitinvert; end - + # # Return the conjugate of this quaternion (a new FXQuatf instance). # def conj; end - + # # Return the product of this quaternion and _other_ (another FXQuatf instance). # def *(other); end - + # # Compute the rotation of a vector _vec_ by this quaternion; returns the # rotated vector (a new FXVec3f instance). @@ -147,7 +147,7 @@ module Fox # +vec+:: the vector to be rotated [FXVec3f] # def *(vec); end - + # # Construct a quaternion from arc a->b on unit sphere and # return reference to self. @@ -158,7 +158,7 @@ module Fox # +b+:: [FXVec3f] # def arc!(a, b); end - + # # Spherical lerp, return reference to self. # diff --git a/rdoc-sources/FXRGBIcon.rb b/rdoc-sources/FXRGBIcon.rb index 85a6d8f..87a3cd0 100755 --- a/rdoc-sources/FXRGBIcon.rb +++ b/rdoc-sources/FXRGBIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("rgb"). # def FXRGBIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -28,7 +28,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theRGBIcon end end - + # # Load a RGB file from a stream. # If successful, returns an array containing the image pixel data (as a @@ -55,7 +55,7 @@ module Fox # +height+:: height [Integer] # def Fox.fxsaveRGB(store, data, transp, width, height); end - + # # Return +true+ if _store_ (an FXStream instance) contains a RGB image. # diff --git a/rdoc-sources/FXRGBImage.rb b/rdoc-sources/FXRGBImage.rb index 6bb7b58..4fb4ed5 100755 --- a/rdoc-sources/FXRGBImage.rb +++ b/rdoc-sources/FXRGBImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("rgb"). # def FXRGBImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXRadioButton.rb b/rdoc-sources/FXRadioButton.rb index 21483a1..ca62a0e 100755 --- a/rdoc-sources/FXRadioButton.rb +++ b/rdoc-sources/FXRadioButton.rb @@ -30,13 +30,13 @@ module Fox # Radio button state, one of +TRUE+, +FALSE+ or +MAYBE+ [Integer] attr_accessor :checkState - + # Radio button style [Integer] attr_accessor :radioButtonStyle - + # Radio ball color [FXColor] attr_accessor :radioColor - + # Radio disk color [FXColor] attr_accessor :diskColor @@ -52,7 +52,7 @@ module Fox def checked? self.checkState == Fox::TRUE end - + # # Return +true+ if the radio button state is +FALSE+ # diff --git a/rdoc-sources/FXRanged.rb b/rdoc-sources/FXRanged.rb index 60f91c9..18facaa 100755 --- a/rdoc-sources/FXRanged.rb +++ b/rdoc-sources/FXRanged.rb @@ -3,7 +3,7 @@ module Fox # Represents a range in 3-D space. # class FXRanged - + # Lower corner of range [FXVec3d] attr_accessor :lower diff --git a/rdoc-sources/FXRangef.rb b/rdoc-sources/FXRangef.rb index c62a2fa..fc0656f 100755 --- a/rdoc-sources/FXRangef.rb +++ b/rdoc-sources/FXRangef.rb @@ -3,7 +3,7 @@ module Fox # Represents a range in 3-D space. # class FXRangef - + # Lower corner of range [FXVec3f] attr_accessor :lower diff --git a/rdoc-sources/FXRealSlider.rb b/rdoc-sources/FXRealSlider.rb index b5d18ef..cf104cf 100755 --- a/rdoc-sources/FXRealSlider.rb +++ b/rdoc-sources/FXRealSlider.rb @@ -51,25 +51,25 @@ module Fox # Slider head size, in pixels [Integer] attr_accessor :headSize - + # Slider slot size, in pixels [Integer] attr_accessor :slotSize - + # Slider auto-increment (or decrement) value [Float] attr_accessor :increment - + # Delta between ticks [Float] attr_accessor :tickDelta - + # Color of the slot that the slider head moves in [FXColor] attr_accessor :slotColor - + # Status line help text for this slider [String] attr_accessor :helpText - + # Tool tip text for this slider [String] attr_accessor :tipText - + # # Return an initialized FXRealSlider instance. # diff --git a/rdoc-sources/FXRealSpinner.rb b/rdoc-sources/FXRealSpinner.rb index 0c20061..25954a1 100755 --- a/rdoc-sources/FXRealSpinner.rb +++ b/rdoc-sources/FXRealSpinner.rb @@ -45,10 +45,10 @@ module Fox # Tool tip text for this spinner [String] attr_accessor :tipText - + # Spinner style [Integer] attr_accessor :spinnerStyle - + # Color of the "up" arrow [FXColor] attr_accessor :upArrowColor @@ -69,7 +69,7 @@ module Fox # Number of columns (i.e. width of spinner's text field, in terms of number of columns of 'm') [Integer] attr_accessor :numColumns - + # Spinner granularity [Float] attr_accessor :granularity @@ -94,33 +94,33 @@ module Fox # def initialize(p, cols, target=nil, selector=0, opts=REALSPIN_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theRealSpinner end - + # Increment spinner def increment(notify=false); end - + # Increment spinner by certain amount def incrementByAmount(amt, notify=false); end # Decrement spinner def decrement(notify=false); end - + # Decrement spinner by certain amount def decrementByAmount(amt, notify=false); end # Return +true+ if the spinner is in cyclic mode. def cyclic?; end - + # # Set to cyclic mode, i.e. wrap around at maximum/minimum. # def cyclic=(cyc); end - + # Return +true+ if this spinner's text field is visible. def textVisible?; end - + # Set the visibility of this spinner's text field. def textVisible=(shown); end - + # # Change the spinner increment value, i.e. the amount by which the spinner's # value increases when the up arrow is clicked. @@ -132,7 +132,7 @@ module Fox # Set the "editability" of this spinner's text field. def editable=(ed); end - + # Return +true+ if the spinner's text field is editable. def editable?; end end diff --git a/rdoc-sources/FXRecentFiles.rb b/rdoc-sources/FXRecentFiles.rb index cf9347e..d1033eb 100755 --- a/rdoc-sources/FXRecentFiles.rb +++ b/rdoc-sources/FXRecentFiles.rb @@ -40,36 +40,36 @@ module Fox # Maximum number of files to track [Integer] attr_accessor :maxFiles - + # Group name [String] attr_accessor :groupName - + # Message target [FXObject] attr_accessor :target - + # Message identifier [Integer] attr_accessor :selector - + # # Construct a new FXRecentFiles group, using the global application instance. # def initialize # :yields: theRecentFiles end - + # Make new recent files group with default groupname def initialize(a) # :yields: theRecentFiles end - + # Make new recent files group with groupname gp def initialize(a, gp, target=nil, selector=0) # :yields: theRecentFiles end # Append a file to the end of the list. def appendFile(filename); end - + # Remove a file from the list. def removeFile(filename); end - + # Clear the list of files. def clear(); end end diff --git a/rdoc-sources/FXRectangle.rb b/rdoc-sources/FXRectangle.rb index 00c1932..4ab5a85 100755 --- a/rdoc-sources/FXRectangle.rb +++ b/rdoc-sources/FXRectangle.rb @@ -8,21 +8,21 @@ module Fox # Upper left corner's x-coordinate [Integer] # attr_accessor :x - + # Upper left corner's y-coordinate [Integer] attr_accessor :y - + # Rectangle width [Integer] attr_accessor :w - + # Rectangle height [Integer] attr_accessor :h - + # # Return an uninitialized FXRectangle instance. # def initialize; end - + # # Return an initialized FXRectangle instance. # @@ -34,7 +34,7 @@ module Fox # +hh+:: initial height [Integer] # def initialize(xx, yy, ww, hh); end - + # # Return an initialized FXRectangle instance. # @@ -54,29 +54,29 @@ module Fox # +bottomright+:: bottom right corner's initial position [FXPoint] # def initialize(topleft, bottomright); end - + # # Return true if _p_ (an FXPoint instance) is contained within this rectangle. # def contains?(p); end - + # # Return true if the point at (_xx_, _yy_) is contained within this rectangle. # def contains?(xx, yy); end - + # # Return true if _r_ (another FXRectangle instance) is properly contained within # this rectangle. # def contains?(r); end - + # # Shift each of the rectangle's corners by the amount _p_ (an FXPoint # instance) and return a reference to the rectangle. # def move!(p); end - + # # Shift each of the rectangle's corners by the amount (_dx_, _dy_) # and return a reference to the rectangle. @@ -113,7 +113,7 @@ module Fox # +bottommargin+:: number of units to grow on the bottom side [Integer] # def grow!(leftmargin, rightmargin, topmargin, bottommargin); end - + # # Shrink the rectangle by _margin_ units, and return a reference to the rectangle. # diff --git a/rdoc-sources/FXRegion.rb b/rdoc-sources/FXRegion.rb index ba61524..c4d343f 100755 --- a/rdoc-sources/FXRegion.rb +++ b/rdoc-sources/FXRegion.rb @@ -2,61 +2,61 @@ module Fox class FXRegion # Construct new empty region def initialize; end - + # Construct new region copied from region _r_ (another FXRegion instance). def initialize(r); end - + # Construct new region from rectangle _rect_ (an FXRectangle instance) def initialize(rect); end - + # # Construct rectangle region, where (_x_, _y_) are the coordinates of the # upper left-hand corner and (_w_, _h_) are its width and height. # def initialize(x, y, w, h); end - + # # Construct polygon region from an array of points. Here, _points_ is # an array of FXPoint instances. # def initialize(points, winding=false); end - + # Return +true+ if this region is empty def empty?; end - + # Return +true+ if this region contains the point at (_x_, _y_). def contains?(x, y); end - + # Return +true+ if this region contains the rectangle whose upper left # corner is at (_x_, _y_) and whose width and height are (_w_, _h_). def contains?(x, y, w, h); end - + # Return the bounding box (an FXRectangle instance) for this region. def bounds; end - + # Offset this region by (_dx_, _dy_) units, and return a reference to # this region. def offset!(dx, dy); end - + # Return a new FXRegion which is the union of this region and _other_ # (another FXRegion instance). def +(other); end - + # Return a new FXRegion which is the intersection of this region and # _other_ (another FXRegion instance). def *(other); end - + # Return a new FXRegion which is the difference of this region and # _other_ (another FXRegion instance). def -(other); end - + # Return a new FXRegion which is the exclusive-or (XOR) of this region # with _other_ (another FXRegion instance). def ^(other); end - + # Return +true+ if this region is equal to _other_ (another FXRegion instance). def ==(other); end - + # Reset this region to empty. def reset; end end diff --git a/rdoc-sources/FXRegistry.rb b/rdoc-sources/FXRegistry.rb index 0285006..76f064d 100755 --- a/rdoc-sources/FXRegistry.rb +++ b/rdoc-sources/FXRegistry.rb @@ -24,10 +24,10 @@ module Fox # Application key [String] attr_reader :appKey - + # Vendor key [String] attr_reader :vendorKey - + # Use file-based registry instead of Windows Registry [Boolean] attr_writer :asciiMode @@ -36,12 +36,12 @@ module Fox # Regular applications SHOULD set a vendor key! # def initialize(appKey="", vendorKey="") ; end - + # # Read registry. # def read; end - + # # Write registry. # diff --git a/rdoc-sources/FXReplaceDialog.rb b/rdoc-sources/FXReplaceDialog.rb index 2e2278e..5c69eab 100755 --- a/rdoc-sources/FXReplaceDialog.rb +++ b/rdoc-sources/FXReplaceDialog.rb @@ -28,13 +28,13 @@ module Fox # +REPLACE_ALL+:: Replace all occurrences # attr_accessor :searchMode - + # Text or pattern to search for [String] attr_accessor :searchText - + # Replacement text [String] attr_accessor :replaceText - + # # Return an initialized FXReplaceDialog instance. # diff --git a/rdoc-sources/FXRuler.rb b/rdoc-sources/FXRuler.rb index edd32da..7e9bb13 100755 --- a/rdoc-sources/FXRuler.rb +++ b/rdoc-sources/FXRuler.rb @@ -51,34 +51,34 @@ module Fox # +ID_ARROW+:: write me # class FXRuler < FXFrame - + # Current position [Integer] attr_accessor :position - + # Content size [Integer] attr_accessor :contentSize - + # Document size [Integer] attr_accessor :documentSize - + # Document size [Integer] attr_accessor :edgeSpacing - + # Lower document margin [Integer] attr_accessor :marginLower # Upper document margin [Integer] attr_accessor :marginUpper - + # First line indent [Integer] attr_accessor :indentFirst - + # Lower indent [Integer] attr_accessor :indentLower - + # Upper indent [Integer] attr_accessor :indentUpper - + # Document number placement [Integer] attr_accessor :numberTicks @@ -93,37 +93,37 @@ module Fox # Pixels per tick spacing [Float] attr_accessor :pixelsPerTick - + # The text font [FXFont] attr_accessor :font - + # The slider value [Integer] attr_accessor :value - + # The ruler style [Integer] attr_accessor :rulerStyle - + # Ruler alignment [Integer] attr_accessor :rulerAlignment # The current text color [FXColor] attr_accessor :textColor - + # The status line help text for this ruler [String] attr_accessor :helpText - + # The tool tip message for this ruler [String] attr_accessor :tipText - + # # Return an initialized FXRuler instance. # def initialize(p, target=nil, selector=0, opts=RULER_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theRuler end - + # Return lower edge of document (an integer) def documentLower; end - + # Return upper edge of document (an integer) def documentUpper; end end diff --git a/rdoc-sources/FXRulerView.rb b/rdoc-sources/FXRulerView.rb index 7f17b77..47d02be 100755 --- a/rdoc-sources/FXRulerView.rb +++ b/rdoc-sources/FXRulerView.rb @@ -41,70 +41,70 @@ module Fox # Tool tip message [String] attr_accessor :tipText - + # Document width [Integer] attr_accessor :documentWidth - + # Document height [Integer] attr_accessor :documentHeight - + # Horizontal edge spacing around document [Integer] attr_accessor :hEdgeSpacing - + # Vertical edge spacing around document [Integer] attr_accessor :vEdgeSpacing - + # Horizontal lower margin [Integer] attr_accessor :hMarginLower - + # Horizontal upper margin [Integer] attr_accessor :hMarginUpper - + # Vertical lower margin [Integer] attr_accessor :vMarginLower - + # Vertical upper margin [Integer] attr_accessor :vMarginUpper - + # Horizontal alignment; the default is +RULER_ALIGN_NORMAL+ [Integer] attr_accessor :hAlignment - + # Vertical alignment; the default is +RULER_ALIGN_NORMAL+ [Integer] attr_accessor :vAlignment # Horizontal ruler font [FXFont] attr_accessor :hRulerFont - + # Vertical ruler font [FXFont] attr_accessor :vRulerFont - + # Horizontal document number placement [Integer] attr_accessor :hNumberTicks - + # Vertical document number placement [Integer] attr_accessor :vNumberTicks - + # Horizontal major ticks [Integer] attr_accessor :hMajorTicks - + # Vertical major ticks [Integer] attr_accessor :vMajorTicks # Horizontal medium ticks [Integer] attr_accessor :hMediumTicks - + # Vertical medium ticks [Integer] attr_accessor :vMediumTicks # Horizontal tiny ticks [Integer] attr_accessor :hTinyTicks - + # Vertical tiny ticks [Integer] attr_accessor :vTinyTicks - + # Horizontal pixels per tick spacing [Float] attr_accessor :hPixelsPerTick - + # Vertical pixels per tick spacing [Float] attr_accessor :vPixelsPerTick @@ -113,50 +113,50 @@ module Fox # def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theRulerView end - + # Set document width (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the document size is changed. def setDocumentWidth(w, notify=false); end - + # Set document height (in pixels). def setDocumentHeight(h, notify=false); end - + # Set horizontal edge spacing around document (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the edge spacing is changed. def setHEdgeSpacing(es, notify=false); end - + # Set vertical edge spacing around document (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the edge spacing is changed. def setVEdgeSpacing(es, notify=false); end - + # Set horizontal lower margin (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the margin is changed. def setHMarginLower(marg, notify=false); end - + # Set horizontal upper margin (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the margin is changed. def setHMarginUpper(marg, notify=false); end - + # Set vertical lower margin (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the margin is changed. def setVMarginLower(marg, notify=false); end - + # Set vertical upper margin (in pixels). # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the margin is changed. def setVMarginUpper(marg, notify=false); end - + # Set horizontal alignment; the default is +RULER_ALIGN_NORMAL+. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the alignment is changed. def setHAlignment(align, notify=false); end - + # Set vertical alignment; the default is +RULER_ALIGN_NORMAL+. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the alignment is changed. @@ -166,27 +166,27 @@ module Fox # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the font is changed. def setHRulerFont(font, notify=false); end - + # Set vertical ruler font. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the font is changed. def setVRulerFont(font, notify=false); end - + # Set number of horizontal "number" ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the number of ticks is changed. def setHNumberTicks(ticks, notify=false); end - + # Set number of vertical "number" ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the number of ticks is changed. def setVNumberTicks(ticks, notify=false); end - + # Set number of horizontal major ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the number of ticks is changed. def setHMajorTicks(ticks, notify=false); end - + # Set number of vertical major ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the number of ticks is changed. @@ -196,7 +196,7 @@ module Fox # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the number of ticks is changed. def setHMediumTicks(ticks, notify=false); end - + # Set number of vertical medium ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the number of ticks is changed. @@ -206,17 +206,17 @@ module Fox # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the number of ticks is changed. def setHTinyTicks(ticks, notify=false); end - + # Set number of vertical tiny ticks. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the number of ticks is changed. def setVTinyTicks(ticks, notify=false); end - + # Set horizontal pixels per tick spacing # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal # ruler's target after the spacing is changed. def setHPixelsPerTick(space, notify=false); end - + # Set vertical pixels per tick spacing # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical # ruler's target after the spacing is changed. diff --git a/rdoc-sources/FXScintilla.rb b/rdoc-sources/FXScintilla.rb index 693e14c..32c1b76 100755 --- a/rdoc-sources/FXScintilla.rb +++ b/rdoc-sources/FXScintilla.rb @@ -5,7 +5,7 @@ module Fox class NotifyHeader # idFrom [Integer] attr_reader :idFrom - + # code [Integer] attr_reader :code end @@ -16,16 +16,16 @@ module Fox class SCNotification # Header [NotifyHeader] attr_reader :nmhdr - + # Position, one of SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND [Integer] attr_reader :position - + # Character, one of SCN_CHARADDED or SCN_KEY [Integer] attr_reader :ch - + # Modifiers, one of SCN_KEY, ... [Integer] attr_reader :modifiers - + # Modification type (SCN_MODIFIED) [Integer] attr_reader :modificationType @@ -34,37 +34,37 @@ module Fox # Length [Integer] attr_reader :length - + # Lines added [Integer] attr_reader :linesAdded - + # Message [Integer] attr_reader :message - + # Line [Integer] attr_reader :line - + # Fold level now [Integer] attr_reader :foldLevelNow - + # Previous fold level [Integer] attr_reader :foldLevelPrev - + # Margin [Integer] attr_reader :margin - + # List type [Integer] attr_reader :listType - + # x [Integer] attr_reader :x - + # y [Integer] attr_reader :y # wParam [Integer] attr_reader :wParam - + # lParam [Integer] attr_reader :lParam end @@ -109,7 +109,7 @@ module Fox # Set the identifier for this widget's embedded Scintilla component. # def setScintillaID(id); end - + # # Send a message (_iMsg_) to the Scintilla control, with optional _wParam_ # and _lParam_ values. Note that in most cases, it will be easier to use diff --git a/rdoc-sources/FXScrollArea.rb b/rdoc-sources/FXScrollArea.rb index f4ad465..71c594c 100755 --- a/rdoc-sources/FXScrollArea.rb +++ b/rdoc-sources/FXScrollArea.rb @@ -31,28 +31,28 @@ module Fox # Viewport width, in pixels [Integer] attr_reader :viewportWidth - + # Viewport height, in pixels [Integer] attr_reader :viewportHeight - + # Content width, in pixels [Integer] attr_reader :contentWidth - + # Content height, in pixels [Integer] attr_reader :contentHeight - + # Scroll style [Integer] attr_accessor :scrollStyle - + # Horizontal scrollbar [FXScrollBar] attr_reader :horizontalScrollBar - + # Vertical scrollbar [FXScrollBar] attr_reader :verticalScrollBar - + # Current x-position [Integer] attr_reader :xPosition - + # Current y-position [Integer] attr_reader :yPosition @@ -70,7 +70,7 @@ module Fox # def initialize(parent, opts=0, x=0, y=0, width=0, height=0) # :yields: theScrollArea end - + # Return +true+ if horizontally scrollable def horizontalScrollable?() ; end diff --git a/rdoc-sources/FXScrollBar.rb b/rdoc-sources/FXScrollBar.rb index e9c1e4c..47904ca 100755 --- a/rdoc-sources/FXScrollBar.rb +++ b/rdoc-sources/FXScrollBar.rb @@ -5,9 +5,9 @@ module Fox # of the document which is visible. The size of the scrollbar thumb is adjusted # to give feedback of the relative sizes of each. # The scroll bar may be manipulated by the left mouse button (normal scrolling), by the - # middle mouse button (same as the left mouse only the scroll position can jump to the + # middle mouse button (same as the left mouse only the scroll position can jump to the # place where the click is made), or by the right mouse button (vernier- or fine-scrolling). - # Holding down the control key while scrolling with the left or middle mouse button also + # Holding down the control key while scrolling with the left or middle mouse button also # enables vernier-scrolling mode. The vernier-scrolling mode is very useful for accurate # positioning in large documents. # Finally, if the mouse sports a wheel, the scroll bar can be manipulated by means @@ -49,16 +49,16 @@ module Fox class FXScrollBar < FXWindow # Content size range [Integer] attr_accessor :range - + # Viewport page size [Integer] attr_accessor :page - + # Scroll increment for line [Integer] attr_accessor :line - + # Current scroll position [Integer] attr_accessor :position - + # Highlight color [FXColor] attr_accessor :hiliteColor @@ -70,7 +70,7 @@ module Fox # Scroll bar style [Integer] attr_accessor :scrollbarStyle - + # Bar size [Integer] attr_accessor :barSize @@ -91,7 +91,7 @@ module Fox def initialize(p, target=nil, selector=0, opts=SCROLLBAR_VERTICAL, x=0, y=0, width=0, height=0) # :yields: theScrollBar end end - + # # Corner between scroll bars # diff --git a/rdoc-sources/FXScrollPane.rb b/rdoc-sources/FXScrollPane.rb index 2bb1968..039a3a8 100755 --- a/rdoc-sources/FXScrollPane.rb +++ b/rdoc-sources/FXScrollPane.rb @@ -8,7 +8,7 @@ module Fox # Index of top-most menu item [Integer] attr_accessor :topItem - + # Number of visible items [Integer] attr_accessor :numVisible diff --git a/rdoc-sources/FXScrollWindow.rb b/rdoc-sources/FXScrollWindow.rb index 6c59f9d..046fe09 100755 --- a/rdoc-sources/FXScrollWindow.rb +++ b/rdoc-sources/FXScrollWindow.rb @@ -3,14 +3,14 @@ module Fox # The FXScrollWindow widget scrolls an arbitrary child window. # Use the scroll window when parts of the user interface itself # need to be scrolled, for example when applications need to run - # on small screens. The scroll window observes some layout hints of + # on small screens. The scroll window observes some layout hints of # its content-window; it observes +LAYOUT_FIX_WIDTH+, +LAYOUT_FIX_HEIGHT+ - # at all times. The hints +LAYOUT_FILL_X+, +LAYOUT_LEFT+, +LAYOUT_RIGHT+, - # +LAYOUT_CENTER_X+, as well as +LAYOUT_FILL_Y+, +LAYOUT_TOP+, +LAYOUT_BOTTOM+, + # at all times. The hints +LAYOUT_FILL_X+, +LAYOUT_LEFT+, +LAYOUT_RIGHT+, + # +LAYOUT_CENTER_X+, as well as +LAYOUT_FILL_Y+, +LAYOUT_TOP+, +LAYOUT_BOTTOM+, # +LAYOUT_CENTER_Y+ are however only interpreted if the content size # is smaller than the viewport size, because if the content size is # larger than the viewport size, then content must be scrolled. - # Note that this means that the content window's position is not + # Note that this means that the content window's position is not # necessarily equal to the scroll position of the scroll window! # class FXScrollWindow < FXScrollArea @@ -28,7 +28,7 @@ module Fox # def initialize(p, opts=0, x=0, y=0, width=0, height=0) # :yields: theScrollWindow end - + # # Return a reference to the contents window (an FXWindow instance). # diff --git a/rdoc-sources/FXSeparator.rb b/rdoc-sources/FXSeparator.rb index 29daa33..11af2c2 100755 --- a/rdoc-sources/FXSeparator.rb +++ b/rdoc-sources/FXSeparator.rb @@ -22,7 +22,7 @@ module Fox def initialize(p, opts=SEPARATOR_GROOVE|LAYOUT_FILL_X, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theSeparator end end - + # # Horizontal separator # diff --git a/rdoc-sources/FXSettings.rb b/rdoc-sources/FXSettings.rb index 621e40c..b63c6e1 100755 --- a/rdoc-sources/FXSettings.rb +++ b/rdoc-sources/FXSettings.rb @@ -50,7 +50,7 @@ module Fox # def each_section # :yields: aStringDict end - + # # Read a string registry entry from the specified _section_ and _key_. # If no value is found, the _default_ value is returned. diff --git a/rdoc-sources/FXShutter.rb b/rdoc-sources/FXShutter.rb index 924907a..7f97fdd 100755 --- a/rdoc-sources/FXShutter.rb +++ b/rdoc-sources/FXShutter.rb @@ -14,10 +14,10 @@ module Fox # The button for this shutter item [FXButton] # attr_reader :button - + # The contents for this shutter item [FXVerticalFrame] attr_reader :content - + # Status line help text for this shutter item [String] attr_accessor :helpText @@ -69,7 +69,7 @@ module Fox # +ID_OPEN_LAST+:: x # class FXShutter < FXVerticalFrame - + # # The currently displayed shutter item (a zero-based index) [Integer] # diff --git a/rdoc-sources/FXSize.rb b/rdoc-sources/FXSize.rb index a161b4c..242359f 100755 --- a/rdoc-sources/FXSize.rb +++ b/rdoc-sources/FXSize.rb @@ -5,7 +5,7 @@ module Fox class FXSize # Width [Integer] attr_accessor :w - + # Height [Integer] attr_accessor :h @@ -25,10 +25,10 @@ module Fox # _hh_ are the initial width and height. # def initialize(ww, hh); end - + # Return +true+ if width or height is less than or equal to zero. def empty?; end - + # # Grow the rectangle by some amount and return a reference to the rectangle. # @@ -59,7 +59,7 @@ module Fox # +bottommargin+:: number of units to grow on the bottom side [Integer] # def grow!(leftmargin, rightmargin, topmargin, bottommargin); end - + # # Shrink the rectangle by _margin_ units, and return a reference to the rectangle. # diff --git a/rdoc-sources/FXSlider.rb b/rdoc-sources/FXSlider.rb index 3394a61..7923f94 100755 --- a/rdoc-sources/FXSlider.rb +++ b/rdoc-sources/FXSlider.rb @@ -54,25 +54,25 @@ module Fox # Slider head size, in pixels [Integer] attr_accessor :headSize - + # Slider slot size, in pixels [Integer] attr_accessor :slotSize - + # Slider auto-increment (or decrement) value [Integer] attr_accessor :increment - + # Delta between ticks [Integer] attr_accessor :tickDelta - + # Color of the slot that the slider head moves in [FXColor] attr_accessor :slotColor - + # Status line help text for this slider [String] attr_accessor :helpText - + # Tool tip text for this slider [String] attr_accessor :tipText - + # # Return an initialized FXSlider instance. # diff --git a/rdoc-sources/FXSphered.rb b/rdoc-sources/FXSphered.rb index 6002d85..82d1548 100755 --- a/rdoc-sources/FXSphered.rb +++ b/rdoc-sources/FXSphered.rb @@ -5,75 +5,75 @@ module Fox class FXSphered # Sphere center [FXVec3d] attr_accessor :center - + # Sphere radius [Float] attr_accessor :radius - + # Default constructor def initialize; end - + # Copy constructor def initialize(otherSphere); end - + # Initialize from center and radius def initialize(cen, rad=0.0); end - + # Initialize from center (_x_, _y_, _z_) and radius (_rad_). def initialize(x, y, z, rad=0.0); end - + # Initialize sphere to fully contain the given bounding box (an FXRanged instance). def initialize(bounds); end - + # Return the diameter of this sphere. def diameter; end - + # Return +true+ if this sphere is empty (i.e. has zero radius). def empty?; end - + # Return +true+ if this sphere contains the point at (_x_, _y_, _z_). def contains?(x, y, z); end - + # Return +true+ if this sphere contains the point _p_ (an FXVec3d instance). def contains?(p); end - + # Return +true+ if this sphere properly contains _box_ (an FXRanged instance). def contains?(box); end - + # Return +true+ if this sphere properly contains _sphere_ (another FXSphered instance). def contains?(sphere); end - + # Include the point _p_ (an FXVec3d instance) and return a reference to self. def include!(p); end - + # Expand radius to include point and return a reference to self. def includeInRadius!(x, y, z); end # Expand radius to include point (an FXVec3d instance) and return a reference to self. def includeInRadius!(p); end - + # Include the range _box_ (an FXRanged instance) into this sphere and return self. def include!(box); end - + # Expand radius to include box (an FXRanged instance) and return a reference to self. def includeInRadius!(box); # Include the sphere _sphere_ (an FXSphered instance) into this sphere and return self. def include!(sphere); end - + # Intersect this sphere with the plane <em>ax+by+cz+w</em> and return -1, 0 or +1. # Here, _plane_ is an FXVec4d instance describing the plane. def intersect(plane); end - + # Expand radius to include sphere (an FXSphered instance) and return self. def includeInRadius!(sphere); end - + # Return +true+ if this sphere intersects the ray between points _u_ and _v_ # (both FXVec3d instances). def intersects?(u, v); end - + # Return +true+ if this sphere overlaps with _box_ (an FXRanged instance). def overlaps?(box); end - + # Return +true+ if this sphere overlaps with another sphere. def overlaps?(sphere); end end diff --git a/rdoc-sources/FXSpheref.rb b/rdoc-sources/FXSpheref.rb index 16672ae..d6031b3 100755 --- a/rdoc-sources/FXSpheref.rb +++ b/rdoc-sources/FXSpheref.rb @@ -5,46 +5,46 @@ module Fox class FXSpheref # Sphere center [FXVec3f] attr_accessor :center - + # Sphere radius [Float] attr_accessor :radius - + # Default constructor def initialize; end - + # Copy constructor def initialize(otherSphere); end - + # Initialize from center and radius def initialize(cen, rad=0.0); end - + # Initialize from center (_x_, _y_, _z_) and radius (_rad_). def initialize(x, y, z, rad=0.0); end - + # Initialize sphere to fully contain the given bounding box (an FXRangef instance). def initialize(bounds); end - + # Return the diameter of this sphere. def diameter; end - + # Return +true+ if this sphere is empty (i.e. has zero radius). def empty?; end - + # Return +true+ if this sphere contains the point at (_x_, _y_, _z_). def contains?(x, y, z); end - + # Return +true+ if this sphere contains the point _p_ (an FXVec3f instance). def contains?(p); end - + # Return +true+ if this sphere properly contains _box_ (an FXRangef instance). def contains?(box); end - + # Return +true+ if this sphere properly contains _sphere_ (another FXSpheref instance). def contains?(sphere); end - + # Include the point _p_ (an FXVec3f instance) and return a reference to self. def include!(p); end - + # Expand radius to include point and return a reference to self. def includeInRadius!(x, y, z); end @@ -53,27 +53,27 @@ module Fox # Include the range _box_ (an FXRangef instance) into this sphere and return self. def include!(box); end - + # Expand radius to include box (an FXRangef instance) and return a reference to self. def includeInRadius!(box); # Include the sphere _sphere_ (an FXSpheref instance) into this sphere and return self. def include!(sphere); end - + # Expand radius to include sphere (an FXSpheref instance) and return self. def includeInRadius!(sphere); end - + # Intersect this sphere with the plane <em>ax+by+cz+w</em> and return -1, 0 or +1. # Here, _plane_ is an FXVec4f instance describing the plane. def intersect(plane); end - + # Return +true+ if this sphere intersects the ray between points _u_ and _v_ # (both FXVec3f instances). def intersects?(u, v); end - + # Return +true+ if this sphere overlaps with _box_ (an FXRangef instance). def overlaps?(box); end - + # Return +true+ if this sphere overlaps with another sphere. def overlaps?(sphere); end end diff --git a/rdoc-sources/FXSpinner.rb b/rdoc-sources/FXSpinner.rb index ecba46c..8c52bb7 100755 --- a/rdoc-sources/FXSpinner.rb +++ b/rdoc-sources/FXSpinner.rb @@ -44,10 +44,10 @@ module Fox # Tool tip text for this spinner [String] attr_accessor :tipText - + # Spinner style [Integer] attr_accessor :spinnerStyle - + # Color of the "up" arrow [FXColor] attr_accessor :upArrowColor @@ -90,33 +90,33 @@ module Fox # def initialize(p, cols, target=nil, selector=0, opts=SPIN_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theSpinner end - + # Increment spinner def increment(notify=FALSE); end - + # Increment spinner by certain amount def incrementByAmount(amt, notify=false); end - + # Decrement spinner def decrement(notify=FALSE); end - + # Decrement spinner by certain amount def decrementByAmount(amt, notify=false); end - + # Return +true+ if the spinner is in cyclic mode. def cyclic?; end - + # # Set to cyclic mode, i.e. wrap around at maximum/minimum. # def cyclic=(cyc); end - + # Return +true+ if this spinner's text field is visible. def textVisible?; end - + # Set the visibility of this spinner's text field. def textVisible=(shown); end - + # # Change the spinner increment value, i.e. the amount by which the spinner's # value increases when the up arrow is clicked. @@ -128,7 +128,7 @@ module Fox # Set the "editability" of this spinner's text field. def editable=(ed); end - + # Return +true+ if the spinner's text field is editable. def editable?; end end diff --git a/rdoc-sources/FXSplashWindow.rb b/rdoc-sources/FXSplashWindow.rb index cc0979d..aaaefec 100644 --- a/rdoc-sources/FXSplashWindow.rb +++ b/rdoc-sources/FXSplashWindow.rb @@ -15,7 +15,7 @@ module Fox class FXSplashWindow < FXTopWindow # The splash window's icon [FXIcon] attr_accessor :icon - + # The delay before hiding the splash window, in milliseconds [Integer] attr_accessor :delay diff --git a/rdoc-sources/FXSplitter.rb b/rdoc-sources/FXSplitter.rb index b1d1e3a..d3b7696 100755 --- a/rdoc-sources/FXSplitter.rb +++ b/rdoc-sources/FXSplitter.rb @@ -9,11 +9,11 @@ module Fox # if the splitter is reversed, the left-most (or top-most) child window # will be resized instead. # Normally, children are resizable from size 0 upwards; however, if the child - # in a horizontally-oriented splitter has +LAYOUT_FILL_X+ in combination with + # in a horizontally-oriented splitter has +LAYOUT_FILL_X+ in combination with # +LAYOUT_FIX_WIDTH+, it will not be made smaller than its default width, # except when the child is the last visible widget (or first when the # +SPLITTER_REVERSED+ option has been passed to the splitter). - # In a vertically-oriented splitter, children with +LAYOUT_FILL_Y+ and + # In a vertically-oriented splitter, children with +LAYOUT_FILL_Y+ and # +LAYOUT_FIX_HEIGHT+ behave analogously. # # === Events @@ -34,13 +34,13 @@ module Fox # +SPLITTER_NORMAL+:: same as +SPLITTER_HORIZONTAL+ # class FXSplitter < FXComposite - + # Splitter style [Integer] attr_accessor :splitterStyle - + # Splitter bar size, in pixels [Integer] attr_accessor :barSize - + # # Return an initialized FXSplitter instance. # @@ -72,7 +72,7 @@ module Fox # def initialize(p, tgt, sel, opts=SPLITTER_NORMAL, x=0, y=0, width=0, height=0) # :yields: theSplitter end - + # # Return size of the panel at index. # Raises IndexError if _index_ is out of range. diff --git a/rdoc-sources/FXSpring.rb b/rdoc-sources/FXSpring.rb index a24a6cc..df192a8 100755 --- a/rdoc-sources/FXSpring.rb +++ b/rdoc-sources/FXSpring.rb @@ -30,10 +30,10 @@ module Fox class FXSpring < FXPacker # Relative width [Integer] attr_accessor :relativeWidth - + # Relative height [Integer] attr_accessor :relativeHeight - + # # Return an initialized FXSpring instance. # diff --git a/rdoc-sources/FXStatusBar.rb b/rdoc-sources/FXStatusBar.rb index aea76e1..4d1b3a9 100755 --- a/rdoc-sources/FXStatusBar.rb +++ b/rdoc-sources/FXStatusBar.rb @@ -7,16 +7,16 @@ module Fox # +STATUSBAR_WITH_DRAGCORNER+:: Causes the drag corner to be shown # class FXStatusBar < FXHorizontalFrame - + # The status line widget [FXStatusLine] attr_reader :statusLine - + # The drag corner widget [FXDragCorner] attr_reader :dragCorner - + # If +true+, the drag corner is shown [Boolean] attr_accessor :cornerStyle - + # # Return an initialized FXStatusBar instance. # diff --git a/rdoc-sources/FXStatusLine.rb b/rdoc-sources/FXStatusLine.rb index 1bf5ef8..9586bcb 100755 --- a/rdoc-sources/FXStatusLine.rb +++ b/rdoc-sources/FXStatusLine.rb @@ -26,16 +26,16 @@ module Fox # Temporary status message [String] attr_accessor :text - + # Permanent status message [String] attr_accessor :normalText - + # Text font [FXFont] attr_accessor :font - + # Text color [FXColor] attr_accessor :textColor - + # Highlight text color [FXColor] attr_accessor :textHighlightColor @@ -50,7 +50,7 @@ module Fox # def initialize(p, target=nil, selector=0) # :yields: theStatusLine end - + # Returns the temporary status message (i.e. same as _text_) def to_s text diff --git a/rdoc-sources/FXStream.rb b/rdoc-sources/FXStream.rb index ebcba66..2abd34f 100755 --- a/rdoc-sources/FXStream.rb +++ b/rdoc-sources/FXStream.rb @@ -51,7 +51,7 @@ module Fox # Stream direction, one of +FXStreamSave+, +FXStreamLoad+ or +FXStreamDead+. attr_reader :direction - + # Parent object [FXObject] attr_reader :container @@ -60,7 +60,7 @@ module Fox # Stream position (an offset from the beginning of the stream) [Integer] attr_accessor :position - + # # Construct stream with given container object. The container object # is an object that will itself not be saved to or loaded from the stream, @@ -73,7 +73,7 @@ module Fox # def initialize(cont=nil) # :yields: theStream end - + # # Open stream for reading or for writing. # An initial buffer size may be given, which must be at least 16 bytes. @@ -88,12 +88,12 @@ module Fox # +data+:: external data buffer (if any) [String] # def open(save_or_load, size=8192, data=nil); end - + # # Close stream; returns +true+ if OK. # def close(); end - + # # Flush buffer # @@ -103,7 +103,7 @@ module Fox # Get available buffer space # def getSpace(); end - + # # Set available buffer space # @@ -122,10 +122,10 @@ module Fox # Set the byte-swapped flag to +true+ or +false+. def bytesSwapped=(swapBytes); end - + # Returns +true+ if bytes are swapped for this stream def bytesSwapped?; end - + # # Set stream to big endian mode if +true+. Byte swapping will # be enabled if the machine native byte order is not equal to diff --git a/rdoc-sources/FXStringDict.rb b/rdoc-sources/FXStringDict.rb index 209e982..4e0ba91 100755 --- a/rdoc-sources/FXStringDict.rb +++ b/rdoc-sources/FXStringDict.rb @@ -8,27 +8,27 @@ module Fox # Return an initialized FXStringDict instance. # def initialize; end - + # # Insert a new string indexed by key, with given mark flag. # def insert(key, value, mrk=false); end - + # # Replace or insert a new string indexed by key, unless given mark is lower than the existing mark. # def replace(key, value, mrk=false); end - + # # Remove entry indexed by key. # def remove(key); end - + # # Return the entry indexed by _key_, or nil if the key does not exist. # def find(key); end - + # # Return the string at integer position _pos_. # diff --git a/rdoc-sources/FXSwitcher.rb b/rdoc-sources/FXSwitcher.rb index c95ed14..ea7ca0d 100755 --- a/rdoc-sources/FXSwitcher.rb +++ b/rdoc-sources/FXSwitcher.rb @@ -4,7 +4,7 @@ module Fox # windows such that one of them is placed on top; all other # child windows are hidden. # Switcher provides a convenient method to conserve screen - # real-estate by arranging several GUI panels to appear in the + # real-estate by arranging several GUI panels to appear in the # same space, depending on context. # Switcher ignores all layout hints from its children; all # children are stretched according to the switcher layout @@ -66,7 +66,7 @@ module Fox # def initialize(p, opts=0, x=0, y=0, width=0, height=0, padLeft=DEFAULT_SPACING, padRight=DEFAULT_SPACING, padTop=DEFAULT_SPACING, padBottom=DEFAULT_SPACING) # :yields: theSwitcher end - + # # Raise the child window at _index_ to the top of the stack. # If _notify_ is +true+, a +SEL_COMMAND+ message is sent to the switcher's message target diff --git a/rdoc-sources/FXTGAIcon.rb b/rdoc-sources/FXTGAIcon.rb index 6e83781..965232f 100755 --- a/rdoc-sources/FXTGAIcon.rb +++ b/rdoc-sources/FXTGAIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("tga"). # def FXTGAIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -28,7 +28,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theTGAIcon end end - + # # Load a Targa file from a stream. # If successful, returns an array containing the image pixel data (as a @@ -54,7 +54,7 @@ module Fox # +height+:: height [Integer] # def Fox.fxsaveTGA(store, data, channels, width, height); end - + # # Return +true+ if _store_ (an FXStream instance) contains a TGA image. # diff --git a/rdoc-sources/FXTGAImage.rb b/rdoc-sources/FXTGAImage.rb index 27c1754..7562ddd 100755 --- a/rdoc-sources/FXTGAImage.rb +++ b/rdoc-sources/FXTGAImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("tga"). # def FXTGAImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXTIFIcon.rb b/rdoc-sources/FXTIFIcon.rb index 6342d4c..8c438e7 100755 --- a/rdoc-sources/FXTIFIcon.rb +++ b/rdoc-sources/FXTIFIcon.rb @@ -34,7 +34,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theTIFIcon end end - + # # Load a TIFF file from a stream. # If successful, returns an array containing the image pixel data (as a @@ -61,7 +61,7 @@ module Fox # +codec+:: codec setting [Integer] # def Fox.fxsaveTIF(store, data, transp, width, height, codec); end - + # # Return +true+ if _store_ (an FXStream instance) contains a TIFF image. # diff --git a/rdoc-sources/FXTIFImage.rb b/rdoc-sources/FXTIFImage.rb index 7c19480..dcc230d 100755 --- a/rdoc-sources/FXTIFImage.rb +++ b/rdoc-sources/FXTIFImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("tif"). # def FXTIFImage.fileExt; end - + # # Return the MIME type for this image type # @@ -18,7 +18,7 @@ module Fox # Codec setting [Integer] attr_accessor :codec - + # # Return an initialized FXTIFImage instance. # diff --git a/rdoc-sources/FXTabBar.rb b/rdoc-sources/FXTabBar.rb index e7679e1..bb811ba 100755 --- a/rdoc-sources/FXTabBar.rb +++ b/rdoc-sources/FXTabBar.rb @@ -44,7 +44,7 @@ module Fox class FXTabBar < FXPacker # Currently active tab item's index [Integer] attr_accessor :current - + # Tab bar style [Integer] attr_accessor :tabStyle @@ -70,7 +70,7 @@ module Fox end # - # Change currently active tab item; this raises the active tab item + # Change currently active tab item; this raises the active tab item # slightly above the neighboring tab items. # If _notify_ is +true+, a +SEL_COMMAND+ message is sent to the tab bar's message target # diff --git a/rdoc-sources/FXTable.rb b/rdoc-sources/FXTable.rb index 7ce4065..d4a0a77 100755 --- a/rdoc-sources/FXTable.rb +++ b/rdoc-sources/FXTable.rb @@ -5,23 +5,23 @@ module Fox class FXTablePos # Cell row (zero-based) [Integer] attr_accessor :row - + # Cell column (zero-based) [Integer] attr_accessor :col - + # # Returns an initialized FXTablePos instance. # def initialize; end end - + # # Represents a range of cells in an FXTable. # class FXTableRange # Starting position for this range of cells [FXTablePos] attr_accessor :fm - + # Ending position for this range of cells [FXTablePos] attr_accessor :to @@ -38,25 +38,25 @@ module Fox # Text associated with this cell [String] attr_accessor :text - + # Icon associated with this cell [FXIcon] attr_accessor :icon - + # User data associated with this cell [Object] attr_accessor :data - + # Indicates whether this item has the focus [Boolean] attr_writer :focus - + # Indicates whether this item is selected [Boolean] attr_writer :selected - + # Indicates whether this item is enabled [Boolean] attr_writer :enabled - + # Indicates whether this item is draggable [Boolean] attr_writer :draggable - + # # Indicates how the text in the cell will be justified. # This value is some combination of the horizontal justification @@ -64,18 +64,18 @@ module Fox # justification flags +TOP+, +CENTER_Y+ and +BOTTOM+. # attr_accessor :justify - + # The icon's position in the cell, relative to the text (one # of +BEFORE+, +AFTER+, +ABOVE+ or +BELOW+) [Integer] attr_accessor :iconPosition - + # Which borders will be drawn for this cell (some combination of # +LBORDER+, +RBORDER+, +TBORDER+ and +BBORDER+) [Integer] attr_accessor :borders - + # The background stipple pattern for this cell [Integer] attr_accessor :stipple - + # # Return an initialized FXTableItem instance. # @@ -92,53 +92,53 @@ module Fox # Return the height of this item (in pixels) def getHeight(table); end - + # Return true if this item has the focus def hasFocus?; end - + # Return true if this item is selected def selected?; end - + # Return true if this item is enabled def enabled?; end - + # Return true if this item is draggable def draggable?; end - + # Return the text for this table item def to_s text end - + # Change item icon, deleting the previous item icon if it was owned # by this table item. def setIcon(icn, owned=false); end - + # Draw this table item def draw(table, dc, x, y, w, h); end - + # Draw borders - def drawBorders(table, dc, x, y, w, h); end - + def drawBorders(table, dc, x, y, w, h); end + # Draw content - def drawContent(table, dc, x, y, w, h); end - + def drawContent(table, dc, x, y, w, h); end + # Draw hatch pattern - def drawPattern(table, dc, x, y, w, h); end - + def drawPattern(table, dc, x, y, w, h); end + # Draw background behind the cell def drawBackground(table, dc, x, y, w, h) hg = table.horizontalGridShown? ? 1 : 0 vg = table.verticalGridShown? ? 1 : 0 dc.fillRectangle(x + vg, y + hg, w - vg, h - hg) - end + end # # Create input control for editing this item. # Should return a new instance of some subclass of FXWindow. # def getControlFor(table); end - + # # Set item value from input _control_ (an instance of some subclass # of FXWindow). @@ -147,14 +147,14 @@ module Fox # Create the server-side resources associated with this table item def create; end - + # Detach the server-side resources associated with this table item def detach; end - + # Destroy the server-side resources associated with this table item def destroy; end end - + # # The FXTable widget displays a table of items, each with some text and optional # icon. A column Header control provide captions for each column, and a row @@ -189,7 +189,7 @@ module Fox # editing or by other means; the parameter is the range of affected cells. This message # is sent prior to the change. # SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED messages are sent when a cell - # is clicked, double-clicked, or triple-clicked, respectively. + # is clicked, double-clicked, or triple-clicked, respectively. # A SEL_COMMAND is sent when an enabled item is clicked inside the table. # # === Events @@ -263,115 +263,115 @@ module Fox # Button in the upper left corner [FXButton] attr_reader :cornerButton - + # Column header control [FXHeader] attr_reader :columnHeader - + # Row header control [FXHeader] attr_reader :rowHeader # Number of visible rows [Integer] attr_accessor :visibleRows - + # Number of visible columns [Integer] attr_accessor :visibleColumns - + # Number of rows [Integer] attr_reader :numRows - + # Number of columns [Integer] attr_reader :numColumns - + # Top cell margin, in pixels [Integer] attr_accessor :marginTop - + # Bottom cell margin, in pixels [Integer] attr_accessor :marginBottom - + # Left cell margin, in pixels [Integer] attr_accessor :marginLeft - + # Right cell margin, in pixels [Integer] attr_accessor :marginRight - + # Table style [Integer] attr_accessor :tableStyle - + # The column header height mode is either fixed (LAYOUT_FIX_HEIGHT) or variable. # In variable height mode, the column header will size to fit the contents in it. # In fixed height mode, the size is explicitly set via the _columnHeaderHeight_ # attribute. attr_accessor :columnHeaderMode - + # The row header width mode is either fixed (LAYOUT_FIX_WIDTH) or variable. # In variable width mode, the row header will size to fit the contents in it. # In fixed width mode, the size is explicitly set via the _rowHeaderWidth_ # attribute. attr_accessor :rowHeaderMode - + # Row header font [FXFont] attr_accessor :rowHeaderFont - + # Column header font [FXFont] attr_accessor :columnHeaderFont - + # The fixed column header height, if _columnHeaderMode_ is +LAYOUT_FIX_HEIGHT+. attr_accessor :columnHeaderHeight - + # The fixed row header width, if _rowHeaderMode_ is +LAYOUT_FIX_WIDTH+. attr_accessor :rowHeaderWidth - + # Default column width, in pixels [Integer] attr_accessor :defColumnWidth - + # Default row height, in pixels [Integer] attr_accessor :defRowHeight - + # Row number for current cell [Integer] attr_reader :currentRow - + # Column number for current cell [Integer] attr_reader :currentColumn - + # Row number for anchor cell [Integer] attr_reader :anchorRow - + # Column number for anchor cell [Integer] attr_reader :anchorColumn - + # Starting row number for selection, or -1 if there is no selection [Integer] attr_reader :selStartRow - + # Starting column number for selection, or -1 if there is no selection [Integer] attr_reader :selStartColumn - + # Ending row number for selection, or -1 if there is no selection [Integer] attr_reader :selEndRow - + # Ending column number for selection, or -1 if there is no selection [Integer] attr_reader :selEndColumn - + # Text font [FXFont] attr_accessor :font - + # Text color [FXColor] attr_accessor :textColor - + # Base GUI color [FXColor] attr_accessor :baseColor - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Border color [FXColor] attr_accessor :borderColor - + # Background color for selected cell(s) [FXColor] attr_accessor :selBackColor - + # Text color for selected cell(s) [FXColor] attr_accessor :selTextColor @@ -392,7 +392,7 @@ module Fox # Returns the drag type for CSV data def FXTable.csvType; end - + # Returns the drag type name for CSV data def FXTable.csvTypeName; end @@ -418,7 +418,7 @@ module Fox # def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0, padLeft=DEFAULT_MARGIN, padRight=DEFAULT_MARGIN, padTop=DEFAULT_MARGIN, padBottom=DEFAULT_MARGIN) # :yields: theTable end - + # Set visibility of horizontal grid to +true+ or +false+. def horizontalGridShown=(vis); end @@ -436,16 +436,16 @@ module Fox # Note that this is equivalent to the #horizontalGridShown=() method. # def showHorzGrid(on=true) ; end - + # # Show or hide vertical grid. # Note that this is equivalent to the #verticalGridShown=() method. # def showVertGrid(on=true) ; end - + # Set editability of this table to +true+ or +false+. def editable=(edit); end - + # Return +true+ if this table is editable. def editable? ; end @@ -481,7 +481,7 @@ module Fox # Otherwise, returns the row in the table containing _y_. # def rowAtY(y) ; end - + # # Determine column containing _x_. # Returns -1 if _x_ is to the left of the first column, and _numColumns_ if _x_ is @@ -489,7 +489,7 @@ module Fox # containing _x_. # def colAtX(x) ; end - + # Return the item (a reference to an FXTableItem) at the given _row_ and _column_. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItem(row, column) ; end @@ -513,7 +513,7 @@ module Fox # Raises ArgError if either _numRows_ or _numCols_ is less than zero. # def setTableSize(numRows, numCols, notify=false) ; end - + # # Insert _numRows_ rows beginning at the specified _row_ number. # If _row_ is equal to the number of rows in the table, the new @@ -523,7 +523,7 @@ module Fox # Raises IndexError if _row_ is out of bounds. # def insertRows(row, numRows=1, notify=false) ; end - + # # Insert _numColumns_ columns beginning at the specified _column_ number. # If _column_ is equal to the number of columns in the table, the @@ -533,7 +533,7 @@ module Fox # Raises IndexError if _column_ is out of bounds. # def insertColumns(column, numColumns=1, notify=false) ; end - + # # Remove the _nr_ rows starting at the specified _row_. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the table's @@ -542,7 +542,7 @@ module Fox # is greater than the current number of table rows. # def removeRows(row, nr=1, notify=false) ; end - + # # Remove the _nc_ columns starting at the specified _column_. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the table's @@ -551,7 +551,7 @@ module Fox # _column_ + _nc_ is greater than the current number of table columns. # def removeColumns(column, nc=1, notify=false) ; end - + # # Extract item from table and return a reference to it. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the table's @@ -559,7 +559,7 @@ module Fox # Raises IndexError if either _row_ or _col_ is out of bounds. # def extractItem(r, c, notify=false); end - + # # Remove item at (_row_, _col_), replacing it with +nil+. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the table's @@ -587,39 +587,39 @@ module Fox # Scroll to make cell at (_row_, _column_) fully visible. # Raises IndexError if either _row_ or _column_ is out of bounds. def makePositionVisible(row, column) ; end - + # Returns +true+ if the cell at position (_row_, _column_) is visible. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemVisible?(row, column) ; end - + # Set column width. # Raises IndexError if _column_ is out of bounds. def setColumnWidth(column, columnWidth) ; end - + # Get column width. # Raises IndexError if _column_ is out of bounds. def getColumnWidth(column) ; end - + # Set row height. # Raises IndexError if _row_ is out of bounds. def setRowHeight(row, rowHeight) ; end - + # Get row height. # Raises IndexError if _row_ is out of bounds. def getRowHeight(row) ; end - + # Get x-coordinate of column. # Raises IndexError if _column_ is out of bounds. def getColumnX(column) ; end - + # Get y-coordinate of row. # Raises IndexError if _row_ is out of bounds. def getRowY(row) ; end - + # Return minimum row height for row _r_. # Raises IndexError if _r_ is out of bounds. def minRowHeight(r); end - + # Return minimum column width for column _c_. # Raises IndexError if _c_ is out of bounds. def minColumnWidth(c); end @@ -635,19 +635,19 @@ module Fox # column index _col_. # def fitColumnsToContents(col, nc=1); end - + # Set column header at _index_ to _text_. # Raises IndexError if _index_ is out of bounds. def setColumnText(index, text); end - + # Return text of column header at _index_. # Raises IndexError if _index_ is out of bounds. def getColumnText(index); end - + # Set row header at _index_ to _text_. # Raises IndexError if _index_ is out of bounds. def setRowText(index, text); end - + # Return text of row header at _index_. # Raises IndexError if _index_ is out of bounds. def getRowText(index); end @@ -663,7 +663,7 @@ module Fox # Change row header icon. # Raises IndexError if _index_ is out of bounds. def setRowIcon(index, icon); end - + # Return icon of row header at _index_. # Raises IndexError if _index_ is out of bounds. def getRowIcon(index); end @@ -683,7 +683,7 @@ module Fox # Return icon position of row header at _index_. # Raises IndexError if _index_ is out of bounds. def getRowIconPosition(index); end - + # Change column header justify, e.g. FXHeaderItem::RIGHT, etc. # Raises IndexError if _index_ is out of bounds. def setColumnJustify(index, justify); end @@ -699,7 +699,7 @@ module Fox # Return justify of row header at _index_. # Raises IndexError if _index_ is out of bounds. def getRowJustify(index); end - + # # Modify cell text for item at specified _row_ and _col_. # If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the table's @@ -723,11 +723,11 @@ module Fox # Return item icon. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItemIcon(row, column) ; end - + # Modify cell user data. # Raises IndexError if either _row_ or _column_ is out of bounds. def setItemData(row, column, data) ; end - + # Return cell user data. # Raises IndexError if either _row_ or _column_ is out of bounds. def getItemData(row, column) ; end @@ -753,7 +753,7 @@ module Fox # +rs+:: the string to insert at each row break [String] # def extractText(startrow, endrow, startcol, endcol, cs="\t", rs="\n"); end - + # # Overlay the text for the cells in the specified range with # the fields specified in _text_. @@ -776,7 +776,7 @@ module Fox # +rs+:: the character to insert at each row break [String] # def overlayText(startrow, endrow, startcol, endcol, text, cs="\t", rs="\n", notify=false); end - + # # Determine the number of rows and columns in a block of text # where columns are separated by characters from the set _cs_, and rows @@ -789,26 +789,26 @@ module Fox # Return +true+ if the cell at position (_r_, _c_) is a spanning cell. # Raises IndexError if either _r_ or _c_ is out of bounds. def itemSpanning?(r, c); end - + # # Repaint cells between grid lines (_startRow_, _endRow_) and grid lines # (_startCol_, _endCol_). # Raises IndexError if any of the starting or ending grid lines is out of bounds. # def updateRange(startRow, endRow, startCol, endCol) ; end - + # Repaint cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def updateItem(row, column) ; end - + # Enable cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def enableItem(row, column) ; end - + # Disable cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def disableItem(row, column) ; end - + # Returns +true+ if the cell at position (_row_, _column_) is enabled. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemEnabled?(row, column) ; end @@ -824,11 +824,11 @@ module Fox # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemJustify(r, c, justify); end - + # Return item justification for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemJustify(r, c); end - + # # Change relative position of icon and text of item at (_r_, _c_). # Passing FXTableItem::BEFORE or FXTableItem::AFTER places the icon @@ -839,11 +839,11 @@ module Fox # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemIconPosition(r, c, mode); end - + # Return the relative position of the icon and text for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemIconPosition(r, c); end - + # # Change item borders style for the item at (_r_, _c_). # Borders on each side of the item can be turned @@ -853,7 +853,7 @@ module Fox # Raises IndexError if either _r_ or _c_ is out of bounds. # def setItemBorders(r, c, borders); end - + # Return the border style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemBorders(r, c); end @@ -861,11 +861,11 @@ module Fox # Set the background stipple style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def setItemStipple(r, c, pat); end - + # Return the background stipple style for the cell at (_r_, _c_). # Raises IndexError if either _r_ or _c_ is out of bounds. def getItemStipple(r, c); end - + # Change current cell. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the table's # message target after the current item changes. @@ -875,7 +875,7 @@ module Fox # Returns +true+ if the cell at position (_row_, _column_) is the current cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemCurrent?(row, column) ; end - + # Change anchored cell. # Raises IndexError if either _row_ or _column_ is out of bounds. def setAnchorItem(row, column) ; end @@ -883,18 +883,18 @@ module Fox # Returns +true+ if the cell at position (_row_, _column_) is selected. # Raises IndexError if either _row_ or _column_ is out of bounds. def itemSelected?(row, column) ; end - + # Return +true+ if the specified row of cells is selected. # Raises IndexError if _r_ is out of bounds. def rowSelected?(r); end - + # Return +true+ if the specified column of cells is selected. # Raises IndexError if _c_ is out of bounds. def columnSelected?(c); end - + # Return +true+ if any cells are selected. def anythingSelected?; end - + # Select a row of cells. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of @@ -902,7 +902,7 @@ module Fox # message target for each newly-selected cell. # Raises IndexError if _row_ is out of bounds. def selectRow(row, notify=false); end - + # Select a column of cells. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of @@ -910,7 +910,7 @@ module Fox # message target for each newly-selected cell. # Raises IndexError if _col_ is out of bounds. def selectColumn(col, notify=false); end - + # Select range. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's message # target for each previously selected cell that becomes deselected as a result of @@ -918,13 +918,13 @@ module Fox # message target for each newly-selected cell. # Raises IndexError if _startRow_, _endRow_, _startColumn_ or _endColumn_ is out of bounds. def selectRange(startRow, endRow, startColumn, endColumn, notify=false) ; end - + # Extend selection. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ messages are sent to the table's message target # after each affected item is selected or deselected. # Raises IndexError if either _row_ or _column_ is out of bounds. def extendSelection(row, column, notify=false) ; end - + # Kill selection. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the table's # message target for each cell that was previously selected. @@ -939,7 +939,7 @@ module Fox # See also #getCellColor. # def setCellColor(row, column, color) ; end - + # # Obtain cell background color. # The values for _row_ and _column_ are either zero or one. @@ -949,25 +949,25 @@ module Fox # See also #setCellColor. # def getCellColor(row, column) ; end - + # Create a new table item def createItem(text, icon, data) ; end - + # Draw a table cell def drawCell(dc, xlo, xhi, ylo, yhi, xoff, yoff, startRow, endRow, startCol, endCol) ; end - + # Draw a range of cells def drawRange(dc, xlo, xhi, ylo, yhi, xoff, yoff, rlo, rhi, clo, chi) ; end - + # Set column renumbering to +true+ or +false+. def columnRenumbering=(renumber); end - + # Get column renumbering def columnRenumbering? ; end - + # Set row renumbering to +true+ or +false+. def rowRenumbering=(renumber); end - + # Get row renumbering def rowRenumbering? ; end end diff --git a/rdoc-sources/FXText.rb b/rdoc-sources/FXText.rb index 1ffdd7b..74bbd2e 100755 --- a/rdoc-sources/FXText.rb +++ b/rdoc-sources/FXText.rb @@ -2,7 +2,7 @@ module Fox # # Highlight style entry # - class FXHiliteStyle + class FXHiliteStyle # Normal text foreground color [FXColor] attr_accessor :normalForeColor @@ -37,16 +37,16 @@ module Fox class FXTextChange # Position in buffer [Integer] attr_accessor :pos - + # Number of characters deleted at _pos_ [Integer] attr_accessor :ndel - + # Number of characters inserted at _pos_ [Integer] attr_accessor :nins - + # Text inserted at _pos_ [String] attr_accessor :ins - + # Text deleted at _pos_ [String] attr_accessor :del end @@ -195,7 +195,7 @@ module Fox # +ID_FLASH+:: class FXText < FXScrollArea - + # Top margin [Integer] attr_accessor :marginTop @@ -323,19 +323,19 @@ module Fox # def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2) # :yields: theText end - + # Return the text buffer's value def to_s; text; end - + # Return +true+ if text was modified def modified? ; end - + # Return +true+ if text is editable def editable? ; end - + # Set overstrike mode to +true+ or +false+. def overstrike=(os); end - + # Return +true+ if overstrike mode is activated. def overstrike? ; end @@ -344,7 +344,7 @@ module Fox # Get character at position _pos_ in text buffer def getByte(pos); end - + # Get wide character at position _pos_. def getChar(pos); end @@ -356,7 +356,7 @@ module Fox # Extract _n_ bytes of text from position _pos_ in the text buffer def extractText(pos, n); end - + # Extract _n_ bytes of style info from position _pos_ in the style buffer def extractStyle(pos, n); end @@ -366,32 +366,32 @@ module Fox # +SEL_INSERTED+ and +SEL_CHANGED+ message is sent after the new # text is inserted. def replaceText(pos, m, text, notify=false); end - + # Replace the _m_ characters at _pos_ with _text_. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the text # widget's message target before the old text is removed, and a # +SEL_INSERTED+ and +SEL_CHANGED+ message is sent after the new # text is inserted. def replaceStyledText(pos, m, text, style=0, notify=false); end - + # Append _text_ to the end of the text buffer. # If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages # are sent to the text widget's message target after the new text is # added. def appendText(text, notify=false); end - + # Append _text_ to the end of the text buffer. # If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages # are sent to the text widget's message target after the new text is # added. def appendStyledText(text, style=0, notify=false); end - + # Insert _text_ at position _pos_ in the text buffer. # If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages # are sent to the text widget's message target after the new text is # inserted. def insertText(pos, text, notify=false); end - + # Insert _text_ at position _pos_ in the text buffer. # If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages # are sent to the text widget's message target after the new text is @@ -403,12 +403,12 @@ module Fox # text widget's message target before the text is removed and a # +SEL_CHANGED+ message is sent after the change occurs. def removeText(pos, n, notify=false); end - + # Change the style of _n_ characters at position _pos_ in the text # buffer to _style_. Here, _style_ is an integer index into the # style table, indicating the new style for all the affected characters; def changeStyle(pos, n, style); end - + # Change the style of text range at position _pos_ in the text # buffer to _style_. Here, _style_ an array of bytes indicating # the new style. @@ -419,13 +419,13 @@ module Fox # are sent to the text widget's message target after the new text is # set. def setText(text, notify=false); end - + # Change the text in the buffer to new text # If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages # are sent to the text widget's message target after the new text is # set. def setStyledText(text, style=0, notify=false); end - + # Shift block of lines from position _startPos_ up to _endPos_ by given _amount_. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the text # widget's message target before the old text is removed, and a @@ -449,13 +449,13 @@ module Fox # Return +true+ if position _pos_ is selected def positionSelected?(pos); end - + # Return +true+ if position _pos_ is fully visible def positionVisible?(pos); end - + # Return text position at given visible (_x_, _y_) coordinate def getPosAt(x, y); end - + # Count number of rows; _start_ should be on a row start def countRows(start, end); end @@ -467,61 +467,61 @@ module Fox # Return position of beginning of line containing position _pos_ def lineStart(pos); end - + # Return position of end of line containing position _pos_ def lineEnd(pos); end - + # Return start of next line def nextLine(pos, nl=1); end - + # Return start of previous line def prevLine(pos, nl=1); end - + # Return row start def rowStart(pos); end - + # Return row end def rowEnd(pos); end # Return start of next row def nextRow(pos, nr=1); end - + # Return start of previous row def prevRow(pos, nr=1); end - + # Return end of previous word def leftWord(pos); end - + # Return begin of next word def rightWord(pos); end - + # Return begin of word def wordStart(pos); end - + # Return end of word def wordEnd(pos); end - + # Return validated UTF8 character start position def validPos(pos); end # Retreat to the previous valid UTF8 character start def dec(pos); end - + # Advance to the next valid UTF8 character start def inc(pos); end # Make line containing _pos_ the top line def setTopLine(pos); end - + # Return position of top line def getTopLine(); end - + # Make line containing _pos_ the bottom line def setBottomLine(pos); end - + # Return the position of the bottom line def getBottomLine(); end - + # Make line containing _pos_ the center line def setCenterLine(pos); end @@ -529,7 +529,7 @@ module Fox # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the text # widget's message target after the change occurs. def setCursorRow(row, notify=false); end - + # Set cursor column. # If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the text # widget's message target after the change occurs. @@ -546,21 +546,21 @@ module Fox # deselected, then a +SEL_SELECTED+ message is sent after the new text # is selected. def selectAll(notify=false); end - + # Select _len_ characters starting at position _pos_. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text # widget's message target before any previously selected text is # deselected, then a +SEL_SELECTED+ message is sent after the new text # is selected. def setSelection(pos, len, notify=false); end - + # Extend selection to _pos_. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text # widget's message target before any previously selected text is # deselected, then a +SEL_SELECTED+ message is sent after the new text # is selected. def extendSelection(pos, textSelectionMode=SELECT_CHARS, notify=false); end - + # Kill the selection. # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text # widget's message target before the text is deselected. @@ -568,13 +568,13 @@ module Fox # Highlight _len_ characters starting at position _pos_ def setHighlight(pos, len); end - + # Unhighlight the text def killHighlight(); end - + # Scroll text to make the given position visible def makePositionVisible(pos); end - + # Return number of rows in buffer. def numRows; end end diff --git a/rdoc-sources/FXTextField.rb b/rdoc-sources/FXTextField.rb index f76775b..92b23d9 100755 --- a/rdoc-sources/FXTextField.rb +++ b/rdoc-sources/FXTextField.rb @@ -117,34 +117,34 @@ module Fox # def initialize(p, ncols, target=nil, selector=0, opts=TEXTFIELD_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theTextField end - + # Return +true+ if text field may be edited def editable?() ; end - + # Set overstrike mode to +true+ or +false+. def overstrike=(os); end - + # Return +true+ if overstrike mode is set. def overstrike?; end # Select all text def selectAll(); end - + # Select _len_ characters starting at given position _pos_. def setSelection(pos, len) ; end - + # Extend the selection from the anchor to the given position _pos_. def extendSelection(pos) ; end - + # Unselect the text def killSelection() ; end - + # Return +true+ if position _pos_ is selected. def posSelected?(pos) ; end - + # Return +true+ if position _pos_ is fully visible. def posVisible?(pos) ; end - + # Scroll text to make the given position _pos_ visible. def makePositionVisible(pos) ; end end diff --git a/rdoc-sources/FXToolBar.rb b/rdoc-sources/FXToolBar.rb index 2d6ad17..533b338 100755 --- a/rdoc-sources/FXToolBar.rb +++ b/rdoc-sources/FXToolBar.rb @@ -34,7 +34,7 @@ module Fox # def initialize(p, q, opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theToolBar end - + # # Return an initialized, stationary FXToolBar instance. # The tool bar can not be undocked. diff --git a/rdoc-sources/FXToolBarGrip.rb b/rdoc-sources/FXToolBarGrip.rb index 4822625..8dbac47 100755 --- a/rdoc-sources/FXToolBarGrip.rb +++ b/rdoc-sources/FXToolBarGrip.rb @@ -19,7 +19,7 @@ module Fox # Indicates whether the grip is displayed as a double-bar [Boolean] attr_writer :doubleBar - + # Active color [FXColor] attr_accessor :activeColor diff --git a/rdoc-sources/FXToolBarShell.rb b/rdoc-sources/FXToolBarShell.rb index ca4d451..e2ad4e0 100755 --- a/rdoc-sources/FXToolBarShell.rb +++ b/rdoc-sources/FXToolBarShell.rb @@ -4,22 +4,22 @@ module Fox # It typically contains an undocked tool bar. # class FXToolBarShell < FXTopWindow - - # Frame style [Integer] + + # Frame style [Integer] attr_accessor :frameStyle - + # Border width [Integer] attr_reader :borderWidth - + # Highlight color [FXColor] attr_accessor :hiliteColor - + # Shadow color [FXColor] attr_accessor :shadowColor - + # Border color [FXColor] attr_accessor :borderColor - + # Base GUI color [FXColor] attr_accessor :baseColor diff --git a/rdoc-sources/FXToolBarTab.rb b/rdoc-sources/FXToolBarTab.rb index 83158c8..b520c5d 100755 --- a/rdoc-sources/FXToolBarTab.rb +++ b/rdoc-sources/FXToolBarTab.rb @@ -26,7 +26,7 @@ module Fox # +TOOLBARTAB_VERTICAL+:: For vertical toolbar # # === Message identifiers - # + # # +ID_COLLAPSE+:: Collapse the toolbar tab # +ID_UNCOLLAPSE+:: Uncollapse the toolbar tab # @@ -37,7 +37,7 @@ module Fox # The active color [FXColor] attr_accessor :activeColor - + # Tooltip message [String] attr_accessor :tipText @@ -64,7 +64,7 @@ module Fox # tab's message target after the toolbar tab is collapsed (or uncollapsed). # def collapse(fold, notify=false); end - + # # Return +true+ if the toolbar is collapsed, +false+ otherwise. # diff --git a/rdoc-sources/FXToolTip.rb b/rdoc-sources/FXToolTip.rb index a01eaf2..1c0ddc2 100755 --- a/rdoc-sources/FXToolTip.rb +++ b/rdoc-sources/FXToolTip.rb @@ -32,7 +32,7 @@ module Fox # Set the current tip text color def textColor=(color); end - + # Return the tool tip's text def to_s; text; end end diff --git a/rdoc-sources/FXTopWindow.rb b/rdoc-sources/FXTopWindow.rb index 98cf74c..09523e2 100755 --- a/rdoc-sources/FXTopWindow.rb +++ b/rdoc-sources/FXTopWindow.rb @@ -84,52 +84,52 @@ module Fox # Window title [String] attr_accessor :title - + # Top padding, in pixels [Integer] attr_accessor :padTop - + # Bottom padding, in pixels [Integer] attr_accessor :padBottom - + # Left padding, in pixels [Integer] attr_accessor :padLeft - + # Right padding, in pixels [Integer] attr_accessor :padRight - + # Horizontal spacing between child widgets, in pixels [Integer] attr_accessor :hSpacing - + # Vertical spacing between child widgets, in pixels [Integer] attr_accessor :vSpacing - + # Packing hints for child widgets [Integer] attr_accessor :packingHints - + # Title and border decorations (see above) [Integer] attr_accessor :decorations - + # Window icon [FXIcon] attr_accessor :icon - + # Window mini (title) icon [FXIcon] attr_accessor :miniIcon # Show this window with given _placement_ # (one of +PLACEMENT_DEFAULT+, +PLACEMENT_VISIBLE+, +PLACEMENT_CURSOR+, +PLACEMENT_OWNER+, +PLACEMENT_SCREEN+ or +PLACEMENT_MAXIMIZED+). def show(placement) ; end - + # Position the window based on _placement_ # (one of +PLACEMENT_DEFAULT+, +PLACEMENT_VISIBLE+, +PLACEMENT_CURSOR+, +PLACEMENT_OWNER+, +PLACEMENT_SCREEN+ or +PLACEMENT_MAXIMIZED+). def place(placement) ; end - + # Obtain border sizes added to our window by the window manager. # Returns a 4-element array containing the left, right, top and bottom border sizes (in pixels). def getWMBorders(); end - + # Return +true+ if window is maximized. def maximized? ; end - + # Return +true+ if window is minimized. def minimized? ; end @@ -138,19 +138,19 @@ module Fox # If _notify_ is +true+, sends a +SEL_MAXIMIZE+ message to its message target. # def maximize(notify=false); end - + # # Minimize or iconify window and return +true+ if minimized. # If _notify_ is +true+, sends a +SEL_MINIMIZE+ message to its message target. # def minimize(notify=false); end - + # # Restore window to normal and return +true+ if restored. # If _notify_ is +true+, sends a +SEL_RESTORE+ message to its message target. # def restore(notify=false); end - + # # Close the window, return +true+ if actually closed. If _notify_ is +true+, the target # will receive a +SEL_CLOSE+ message to determine if it is OK to close the window. diff --git a/rdoc-sources/FXTranslator.rb b/rdoc-sources/FXTranslator.rb index b77ed1b..f654216 100644 --- a/rdoc-sources/FXTranslator.rb +++ b/rdoc-sources/FXTranslator.rb @@ -3,26 +3,26 @@ module Fox # A translator translates a message to another language. # class FXTranslator - + # The application associated with this translator [FXApp] attr_reader :app - + # # Return a new translator for the application _a_ (an FXApp instance). # def initialize(a); end - + # # Translate a message. # def tr(context, message, hint=nil); end - + # # Change the text codec used to decode the messages embedded in the # source. # def textCodec=(codec); end - + # # Return a reference to the text codec. # diff --git a/rdoc-sources/FXTreeList.rb b/rdoc-sources/FXTreeList.rb index bc69618..e735786 100755 --- a/rdoc-sources/FXTreeList.rb +++ b/rdoc-sources/FXTreeList.rb @@ -8,27 +8,27 @@ module Fox # the last child item. # class FXTreeItem < FXObject - + # # Return a new FXTreeItem instance, initialized with the specified text, # open-state icon, closed-state icon and user data. # def initialize(text, openIcon=nil, closedIcon=nil, data=nil) # :yields: theItem end - + # Return the number of child items for this tree item. def numChildren; end # Return the item text (a string) for this tree item. def text; end - + # Set the item text for this tree item. def text=(txt); end # Return a reference to the opened-state icon (an FXIcon instance) for # this tree item, or +nil+ if none was specified. def openIcon; end - + # Set the opened-state icon (an FXIcon instance) for this tree item, # or +nil+ if no icon should be used. def setOpenIcon(oi, owned=false); end @@ -36,7 +36,7 @@ module Fox # Return a reference to the closed-state icon (an FXIcon instance) for # this tree item, or +nil+ if none was specified. def closedIcon; end - + # Set the closed-state icon (an FXIcon instance) for this tree item, # or +nil+ if no icon should be used. def setClosedIcon(ci, owned=false); end @@ -54,22 +54,22 @@ module Fox # Returns +true+ if this item has the focus def hasFocus? ; end - + # Set this item's selected state to +true+ or +false+. def selected=(sel); end # Returns +true+ if this item is selected def selected? ; end - + # Set this item's "opened" state to +true+ or +false+. def opened=(op); end # Returns +true+ if this item is opened def opened? ; end - + # Set this item's expanded state to +true+ or +false+. def expanded=(ex); end - + # Returns +true+ if this item is expanded def expanded? ; end @@ -81,16 +81,16 @@ module Fox # Set this item's "draggable" state to +true+ or +false+. def draggable=(dr); end - + # Returns +true+ if this item is draggable def draggable? ; end - + # Return +true+ if this items has subitems, real or imagined. def hasItems?; end - + # Change has items flag to +true+ or +false+. def hasItems=(flag); end - + # Return a reference to the parent item for this tree item, or +nil+ # if this is a root-level item. def parent; end @@ -133,13 +133,13 @@ module Fox def to_s text end - + # Get the width of this item def getWidth(treeList) ; end - + # Get the height of this item def getHeight(treeList) ; end - + # Create this tree item def create; end @@ -150,7 +150,7 @@ module Fox def destroy; end end - # + # # A Tree List Widget organizes items in a hierarchical, tree-like fashion. # Subtrees can be collapsed or expanded by double-clicking on an item # or by clicking on the optional plus button in front of the item. @@ -283,37 +283,37 @@ module Fox # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def insertItem(other, father, item, notify=false); end - - # Insert item with given text and optional icons, and user-data pointer under _father_ before _other_ item. + + # Insert item with given text and optional icons, and user-data pointer under _father_ before _other_ item. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def insertItem(other, father, text, oi=nil, ci=nil, ptr=nil, notify=false); end - # Append a new (possibly subclassed) _item_ as last child of _father_. + # Append a new (possibly subclassed) _item_ as last child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, item, notify=false); end - + # Append item with given text and optional icons, and user-data pointer as last child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, text, oi=nil, ci=nil, ptr=nil, notify=false); end - + # Prepend a new (possibly subclassed) _item_ as first child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def prependItem(father, item, notify=false); end - + # Prepend item with given text and optional icons, and user-data pointer as first child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def prependItem(father, text, oi=nil, ci=nil, ptr=nil, notify=false); end - + # # Move _item_ under _father_ before _other_ item and return a reference to # _item_. @@ -342,13 +342,13 @@ module Fox # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message # target before each item is removed. def clearItems(notify=false); end - + # Return item width def getItemWidth(item); end - + # Return item height def getItemHeight(item); end - + # Return a reference to the tree item at (_x_, _y_), if any. def getItemAt(x, y); end @@ -379,34 +379,34 @@ module Fox # Scroll the list to make _item_ visible def makeItemVisible(item); end - + # Change item's text def setItemText(item, text); end - + # Return item's text def getItemText(item); end - + # Change item's open icon, deleting the old icon if it's owned def setItemOpenIcon(item, openIcon, owned=false); end - + # Return item's open icon def getItemOpenIcon(item); end - + # Change item's closed icon, deleting the old icon if it's owned def setItemClosedIcon(item, closedIcon, owned=false); end - + # Return item's closed icon def getItemClosedIcon(item); end - + # Change item's user data def setItemData(item, data); end - + # Return item's user data def getItemData(item); end - + # Return +true+ if item is selected def itemSelected?(item); end - + # Return +true+ if item is current def itemCurrent?(item); end @@ -418,10 +418,10 @@ module Fox # Return +true+ if item expanded def itemExpanded?(item); end - + # Return +true+ if item is a leaf-item, i.e. has no children def itemLeaf?(item); end - + # Return +true+ if item is enabled def itemEnabled?(item); end @@ -430,13 +430,13 @@ module Fox # Repaint item def updateItem(item); end - + # Enable item def enableItem(item); end - + # Disable item def disableItem(item); end - + # Select item. # If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's # message target after the item is selected. @@ -446,12 +446,12 @@ module Fox # If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the list's # message target after the item is deselected. def deselectItem(item, notify=false); end - + # Toggle item selection. # If _notify_ is +true+, a +SEL_SELECTED+ or +SEL_DESELECTED+ message is # sent to the list's message target to indicate the change. def toggleItem(item, notify=false); end - + # # Set this item's state to opened. The primary result of this change is # that the item's icon will change to its "open" icon. @@ -461,7 +461,7 @@ module Fox # message target after the item is opened. # def openItem(item, notify=false); end - + # # Set this item's state to closed. The primary result of this change is # that the item's icon will change to its "closed" icon. @@ -471,7 +471,7 @@ module Fox # message target after the item is closed. # def closeItem(item, notify=false); end - + # Collapse sub-tree rooted at _tree_. # If _notify_ is +true+, a +SEL_COLLAPSED+ message is sent to the list's # message target after the sub-tree is collapsed. @@ -481,7 +481,7 @@ module Fox # If _notify_ is +true+, a +SEL_EXPANDED+ message is sent to the list's # message target after the sub-tree is expanded. def expandTree(tree, notify=false); end - + # # Change current item. If there is already a current item, that item # is first closed. After _item_ is set as the tree list's current item, @@ -490,17 +490,17 @@ module Fox # message target after the current item changes. # def setCurrentItem(item, notify=false); end - + # Extend selection from anchor item to _item_. # If _notify_ is +true+, a series of +SEL_SELECTED+ and +SEL_DESELECTED+ # messages may be sent to the list's message target, indicating the changes. def extendSelection(item, notify=false); end - + # Deselect all items. # If _notify_ is +true+, +SEL_DESELECTED+ messages will be sent to the list's # message target indicating the affected items. def killSelection(notify=false); end - + # Sort root items. def sortRootItems(); end diff --git a/rdoc-sources/FXTreeListBox.rb b/rdoc-sources/FXTreeListBox.rb index 43ef94e..3aa18b0 100755 --- a/rdoc-sources/FXTreeListBox.rb +++ b/rdoc-sources/FXTreeListBox.rb @@ -43,7 +43,7 @@ module Fox # Text font [FXFont] attr_accessor :font - + # Tree list box style attr_accessor :listStyle @@ -87,8 +87,8 @@ module Fox # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def insertItem(other, father, item, notify=false); end - - # Insert item with given text and optional icons, and user-data pointer under _father_ before _other_ item. + + # Insert item with given text and optional icons, and user-data pointer under _father_ before _other_ item. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. @@ -99,25 +99,25 @@ module Fox # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, item, notify=false); end - + # Append item with given text and optional icons, and user-data pointer as last child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def appendItem(father, text, openIcon=nil, closedIcon=nil, data=nil, notify=false); end - + # Prepend a new (possibly subclassed) _item_ as first child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def prependItem(father, item, notify=false); end - + # Prepend item with given text and optional icons, and user-data pointer as first child of _father_. # Returns a reference to the newly added item (an FXTreeItem instance). # If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the list's message # target after the item is added. def prependItem(father, text, openIcon=nil, closedIcon=nil, data=nil, notify=false); end - + # Remove item. # If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message # target before the item is removed. @@ -187,31 +187,31 @@ module Fox # message target. # def setCurrentItem(item, notify=false); end - + # Change item's text def setItemText(item, text); end - + # Return item's text def getItemText(item); end - + # Change item's open icon def setItemOpenIcon(item, openIcon); end - + # Return item's open icon def getItemOpenIcon(item); end - + # Change item's closed icon def setItemClosedIcon(item, closedIcon); end - + # Return item's closed icon def getItemClosedIcon(item); end - + # Change item's user data def setItemData(item, data); end - + # Return item's user data def getItemData(item); end - + # Return +true+ if the pane is shown. def paneShown?; end end diff --git a/rdoc-sources/FXVec2d.rb b/rdoc-sources/FXVec2d.rb index 0b1f419..2ec71c2 100755 --- a/rdoc-sources/FXVec2d.rb +++ b/rdoc-sources/FXVec2d.rb @@ -1,14 +1,14 @@ module Fox class FXVec2d - + attr_accessor :x attr_accessor :y - + # # Return an initialized FXVec2d instance. # def initialize(xx=0.0, yy=0.0); end - + # # Returns the element at _index_, where _index_ is 0 or 1. # Raises IndexError if _index_ is out of range. @@ -65,7 +65,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -73,7 +73,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. def clamp(lo, hi); end - + # # Return a new FXVec2d instance which is a normalized version # of this one. diff --git a/rdoc-sources/FXVec2f.rb b/rdoc-sources/FXVec2f.rb index 887a4bd..005db32 100755 --- a/rdoc-sources/FXVec2f.rb +++ b/rdoc-sources/FXVec2f.rb @@ -1,14 +1,14 @@ module Fox class FXVec2f - + attr_accessor :x attr_accessor :y - + # # Return an initialized FXVec2f instance. # def initialize(xx=0.0, yy=0.0); end - + # # Returns the element at _index_, where _index_ is 0 or 1. # Raises IndexError if _index_ is out of range. @@ -65,7 +65,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -73,7 +73,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. def clamp(lo, hi); end - + # # Return a new FXVec2f instance which is a normalized version # of this one. diff --git a/rdoc-sources/FXVec3d.rb b/rdoc-sources/FXVec3d.rb index 637ab0a..2c8ed47 100755 --- a/rdoc-sources/FXVec3d.rb +++ b/rdoc-sources/FXVec3d.rb @@ -1,20 +1,20 @@ module Fox class FXVec3d - + attr_accessor :x attr_accessor :y attr_accessor :z - + # # Return an FXVec3d instance with _x_, _y_ and _z_ initialized to zeroes. # def initialize; end - + # # Return an FXVec3d instance initialized from specified component values. # def initialize(xx, yy, zz=1.0); end - + # # Returns the element at _index_, where _index_ is 0, 1 or 2. # Raises IndexError if _index_ is out of range. @@ -74,7 +74,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -84,7 +84,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. # def clamp(lo, hi); end - + # # Return a new FXVec3d instance which is a normalized version # of this one. @@ -102,13 +102,13 @@ module Fox # vector and _other_. # def hi(other); end - + # # Compute normal vector from points _a_, _b_ and _c_ (each of which is # an FXVec3d instance). # def FXVec3d.normal(a, b, c); end - + # # Compute approximate normal from four points _a_, _b_, _c_ and _d_. # diff --git a/rdoc-sources/FXVec3f.rb b/rdoc-sources/FXVec3f.rb index e3745a8..879adc7 100755 --- a/rdoc-sources/FXVec3f.rb +++ b/rdoc-sources/FXVec3f.rb @@ -1,20 +1,20 @@ module Fox class FXVec3f - + attr_accessor :x attr_accessor :y attr_accessor :z - + # # Return an FXVec3f instance with _x_, _y_ and _z_ initialized to zeroes. # def initialize; end - + # # Return an FXVec3f instance initialized with specified component values. # def initialize(xx, yy, zz=1.0); end - + # # Returns the element at _index_, where _index_ is 0, 1 or 2. # Raises IndexError if _index_ is out of range. @@ -74,7 +74,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -84,7 +84,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. # def clamp(lo, hi); end - + # # Return a new FXVec3f instance which is a normalized version # of this one. @@ -102,13 +102,13 @@ module Fox # vector and _other_. # def hi(other); end - + # # Compute normal vector from points _a_, _b_ and _c_ (each of which is # an FXVec3f instance). # def FXVec3f.normal(a, b, c); end - + # # Compute approximate normal from four points _a_, _b_, _c_ and _d_. # diff --git a/rdoc-sources/FXVec4d.rb b/rdoc-sources/FXVec4d.rb index f12a40c..0d99642 100755 --- a/rdoc-sources/FXVec4d.rb +++ b/rdoc-sources/FXVec4d.rb @@ -1,11 +1,11 @@ module Fox class FXVec4d - + attr_accessor :x attr_accessor :y attr_accessor :z attr_accessor :w - + # # Return an FXVec4d instance with _x_, _y_, _z_ and _w_ initialized to zeroes. # @@ -15,12 +15,12 @@ module Fox # Return an FXVec4d instance initialized from specified component values. # def initialize(xx, yy, zz, ww=1.0); end - + # # Return an FXVec4d instance initialized from an FXVec3d instance and optional scalar. # def initialize(vec3d, ww=1.0); end - + # # Returns the element at _index_, where _index_ is 0, 1, 2 or 3. # Raises IndexError if _index_ is out of range. @@ -80,7 +80,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -90,7 +90,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. # def clamp(lo, hi); end - + # # Return a new FXVec4d instance which is a normalized version # of this one. @@ -108,12 +108,12 @@ module Fox # vector and _other_. # def hi(other); end - + # # Compute normalized plane equation ax + by + cz + d = 0. # def FXVec4d.plane(vec); end - + # # Compute normalized plane equation ax + by + cz + d = 0. # diff --git a/rdoc-sources/FXVec4f.rb b/rdoc-sources/FXVec4f.rb index 72fddce..c22e3c9 100755 --- a/rdoc-sources/FXVec4f.rb +++ b/rdoc-sources/FXVec4f.rb @@ -1,11 +1,11 @@ module Fox class FXVec4f - + attr_accessor :x attr_accessor :y attr_accessor :z attr_accessor :w - + # # Return an FXVec4f instance with _x_, _y_, _z_ and _w_ initialized to zeroes. # @@ -15,12 +15,12 @@ module Fox # Return an FXVec4f instance initialized from specified component values. # def initialize(xx, yy, zz, ww=1.0); end - + # # Return an FXVec4f instance initialized from an FXVec3f instance and optional scalar. # def initialize(vec3f, ww=1.0); end - + # # Returns the element at _index_, where _index_ is 0, 1, 2 or 3. # Raises IndexError if _index_ is out of range. @@ -80,7 +80,7 @@ module Fox # Return the square of the length of this vector. # def length2; end - + # # Return the length (magnitude) of this vector. # @@ -90,7 +90,7 @@ module Fox # Clamp the values of this vector between limits _lo_ and _hi_. # def clamp(lo, hi); end - + # # Return a new FXVec4f instance which is a normalized version # of this one. @@ -108,12 +108,12 @@ module Fox # vector and _other_. # def hi(other); end - + # # Compute normalized plane equation ax + by + cz + d = 0. # def FXVec4f.plane(vec); end - + # # Compute normalized plane equation ax + by + cz + d = 0. # diff --git a/rdoc-sources/FXVisual.rb b/rdoc-sources/FXVisual.rb index 52c8073..afd6083 100755 --- a/rdoc-sources/FXVisual.rb +++ b/rdoc-sources/FXVisual.rb @@ -45,7 +45,7 @@ module Fox # Maximum number of colors [Integer] attr_accessor :maxColors - + # # The visual type, one of +VISUALTYPE_MONO+, +VISUALTYPE_TRUE+ # +VISUALTYPE_INDEX+ or +VISUALTYPE_GRAY+. The visual type @@ -64,12 +64,12 @@ module Fox # +d+:: requested visual depth, in bits [Integer] # def initialize(a, flgs, d=32); end - + # # Get device pixel value for color value _clr_. # def getPixel(clr); end - + # # Get color value for device pixel value _pix_. # diff --git a/rdoc-sources/FXWindow.rb b/rdoc-sources/FXWindow.rb index 71ce72c..66c47eb 100755 --- a/rdoc-sources/FXWindow.rb +++ b/rdoc-sources/FXWindow.rb @@ -151,7 +151,7 @@ module Fox # +ID_MDI_PREV+:: x class FXWindow < FXDrawable - + # This window's parent window [FXWindow] attr_reader :parent @@ -235,7 +235,7 @@ module Fox # Common DND type: Clipboard text type (pre-registered) def FXWindow.stringType; end - + # Common DND type: Clipboard image type (pre-registered) def FXWindow.imageType; end @@ -244,16 +244,16 @@ module Fox # Common DND type name: Delete request def FXWindow.deleteTypeName() ; end - + # Common DND type name: ASCII text def FXWindow.textTypeName() ; end - + # Common DND type name: Color def FXWindow.colorTypeName() ; end - + # Common DND type name: URI List def FXWindow.urilistTypeName() ; end - + # Common DND type name: UTF-8 text request def FXWindow.utf8TypeName() ; end @@ -274,7 +274,7 @@ module Fox # def initialize(p, opts=0, x=0, y=0, width=0, height=0) # :yields: theWindow end - + # # Return an initialized FXWindow instance, for a shell window. # @@ -304,7 +304,7 @@ module Fox # Return the window width (in pixels). def width; end - + # # Set the window width; and flag the widget as being in need of # layout by its parent. This does not immediately update the server- @@ -324,16 +324,16 @@ module Fox # Return the default width of this window def defaultWidth(); end - - # Return the default height of this window + + # Return the default height of this window def defaultHeight(); end - + # Return width for given height def getWidthForHeight(givenHeight); end - + # Return height for given width def getHeightForWidth(givenWidth); end - + # # Add this hot key to the closest ancestor's accelerator table. # @@ -347,7 +347,7 @@ module Fox accel.addAccel(code, self, MKUINT(ID_HOTKEY, SEL_KEYPRESS), MKUINT(ID_HOTKEY, SEL_KEYRELEASE)) end end - + # # Remove this hot key from the closest ancestor's accelerator # table. @@ -362,33 +362,33 @@ module Fox accel.removeAccel(code) end end - + # Return +true+ if this window is a shell window. def shell?() ; end - + # # Return +true+ if specified _window_ is ancestor of this window. # def childOf?(window) ; end - + # # Return +true+ if this window contains _child_ in its subtree. # def containsChild?(child) ; end - + # Return the child window at specified coordinates (_x_, _y_) def getChildAt(x, y) ; end - - # Return the index (starting from zero) of the specified child _window_, + + # Return the index (starting from zero) of the specified child _window_, # or -1 if the window is not a child of this window. def indexOfChild(window) ; end - + # Remove specified child window def removeChild(child) ; end - + # Return the child window at specified index. Raises IndexError if _index_ is out of range. def childAtIndex(index) ; end - + # Return the common ancestor of window _a_ and window _b_. def FXWindow.commonAncestor(a, b); end @@ -400,74 +400,74 @@ module Fox # Return compose context (an FXComposeContext). def composeContext; end - + # Create compose context. def createComposeContext; end - + # Destroy compose context. def destroyComposeContext; end # Return the cursor position and mouse button-state as a three-element array. def cursorPosition() ; end - + # Warp the cursor to the new position (_x_, _y_). def setCursorPosition(x, y); end - + # Return +true+ if this window is able to receive mouse and keyboard events. def enabled?() ; end - + # Return +true+ if this window is active. def active?() ; end - + # Return +true+ if this window is a control capable of receiving the focus. def canFocus?() ; end - + # Return +true+ if this window has the focus. def hasFocus?() ; end - + # Return +true+ if this window is in the focus chain. def inFocusChain? ; end - + # Move the focus to this window. def setFocus(); end - + # Remove the focus from this window. def killFocus(); end - + # Notification that focus moved to a new child window. def changeFocus(child); end # This changes the default window which responds to the *Enter* - # key in a dialog. If _enable_ is +true+, this window becomes the default + # key in a dialog. If _enable_ is +true+, this window becomes the default # window; when _enable_ is +false+, this window will no longer be the # default window. Finally, when _enable_ is +MAYBE+, the default window # will revert to the initial default window. def setDefault(enable=TRUE) ; end - + # Return +true+ if this is the default window. def default?() ; end - + # Make this window the initial default window. def setInitial(enable=true) ; end - + # Return +true+ if this is the initial default window. def initial?() ; end - + # Enable the window to receive mouse and keyboard events. def enable(); end - + # Disable the window from receiving mouse and keyboard events. def disable(); end - + # Create all of the server-side resources for this window. def create(); end - + # Detach the server-side resources for this window. def detach(); end - + # Destroy the server-side resources for this window. def destroy(); end - + # # Set window shape, where _shape_ is either an FXRegion, FXBitmap or # FXIcon instance. @@ -479,137 +479,137 @@ module Fox # Raise this window to the top of the stacking order. def raiseWindow(); end - + # Lower this window to the bottom of the stacking order. def lower(); end - + # # Move the window immediately, in the parent's coordinate system. # Update the server representation as well if the window is realized. # Perform layout of the children when necessary. # def move(x, y) ; end - + # # Resize the window to the specified width and height immediately, # updating the server representation as well, if the window was realized. # Perform layout of the children when necessary. # def resize(w, h) ; end - + # # Move and resize the window immediately, in the parent's coordinate system. # Update the server representation as well if the window is realized. # Perform layout of the children when necessary. # def position(x, y, w, h); end - + # Mark this window's layout as dirty def recalc(); end - + # Perform layout immediately. def layout(); end # Generate a SEL_UPDATE message for the window and its children. def forceRefresh(); end - + # Reparent this window under new _father_ window, before _other_ sibling.. def reparent(father, other); end - + # Scroll rectangle (_x_, _y_, _w_, _h_) by a shift of (_dx_, _dy_) def scroll(x, y, w, h, dx, dy); end - + # Mark the entire window client area dirty. def update() ; end # Mark the specified rectangle dirty def update(x, y, w, h) ; end - + # Process any outstanding repaint messages immediately, for the given rectangle def repaint(x, y, w, h) ; end - + # If marked but not yet painted, paint the entire window def repaint() ; end - + # Grab the mouse to this window; future mouse events will be # reported to this window even while the cursor goes outside of this window def grab() ; end - - # Release the mouse grab + + # Release the mouse grab def ungrab(); end - + # Return +true+ if the window has been grabbed def grabbed?() ; end - + # Grab keyboard device def grabKeyboard(); end - + # Ungrab keyboard device def ungrabKeyboard(); end - + # Return +true+ if active grab is in effect def grabbedKeyboard?() ; end - - # Show this window + + # Show this window def show(); end - - # Hide this window + + # Hide this window def hide(); end - + # Return +true+ if this window is shown. def shown?() ; end - + alias visible? shown? - + # Return +true+ if this window is a composite. def composite?() ; end - + # Return +true+ if this window is under the cursor def underCursor?() ; end - + # Return +true+ if this window owns the primary selection def hasSelection?() ; end - + # # Try to acquire the primary selection, given an array of drag types. # Returns +true+ on success. # def acquireSelection(typesArray) ; end - + # # Release the primary selection. Returns +true+ on success. # def releaseSelection(); end - + # Return +true+ if this window owns the clipboard def hasClipboard?() ; end - + # # Try to acquire the clipboard, given an array of drag types. # Returns +true+ on success. # def acquireClipboard(typesArray) ; end - + # # Release the clipboard. Returns +true+ on success. # def releaseClipboard(); end - - # Enable this window to receive drops + + # Enable this window to receive drops def dropEnable(); end - + # Disable this window from receiving drops def dropDisable(); end - + # Return +true+ if this window is able to receive drops def dropEnabled?() ; end - + # Return +true+ if a drag operation has been initiated from this window def dragging?() ; end - + # Initiate a drag operation with an array of previously registered drag types def beginDrag(typesArray) ; end - + # When dragging, inform the drop target of the new position and # the drag action. The _action_ is a constant, one of: # @@ -621,24 +621,24 @@ module Fox # +DRAG_PRIVATE+:: private def handleDrag(x, y, action=DRAG_COPY) ; end - + # # Terminate the drag operation with or without actually dropping the data. # Return the action performed by the target. # def endDrag(drop=true); end - + # Return +true+ if this window is the target of a drop def dropTarget?() ; end - + # When being dragged over, indicate that no further +SEL_DND_MOTION+ messages # are required while the cursor is inside the given rectangle def setDragRectangle(x, y, w, h, wantUpdates=true); end - + # When being dragged over, indicate we want to receive +SEL_DND_MOTION+ messages # every time the cursor moves def clearDragRectangle(); - + # When being dragged over, indicate acceptance or rejection of the dragged data. # The _action_ is a constant indicating the suggested drag action, one of: # @@ -650,12 +650,12 @@ module Fox # +DRAG_PRIVATE+:: private def acceptDrop(action=DRAG_ACCEPT); end - + # Returns +DRAG_REJECT+ when the drop target would not accept the drop; # otherwise indicates acceptance by returning one of +DRAG_ACCEPT+, # +DRAG_COPY+, +DRAG_MOVE+ or +DRAG_LINK+. def didAccept() ; end - + # # Sent by the drop target in response to +SEL_DND_DROP+. The drag action # should be the same as the action the drop target reported to the drag @@ -674,44 +674,44 @@ module Fox # +FROM_SELECTION+, +FROM_CLIPBOARD+ or +FROM_DRAGNDROP+. # Returns an array of drag types. def inquireDNDTypes(origin) ; end - + # When being dragged over, return +true+ if we are offered the given drag type. # The _origin_ is a constant indicating the origin of the data, one of # +FROM_SELECTION+, +FROM_CLIPBOARD+ or +FROM_DRAGNDROP+. # The _type_ is a previously registered drag type. def offeredDNDType?(origin, type) ; end - + # When being dragged over, return the drag action def inquireDNDAction() ; end - + # Get DND data; the caller becomes the owner of the array. # The _origin_ is a constant indicating the origin of the data, one of # +FROM_SELECTION+, +FROM_CLIPBOARD+ or +FROM_DRAGNDROP+. # The _type_ is a previously registered drag type. def getDNDData(origin, type) ; end - + # Set DND data; ownership is transferred to the system. # The _origin_ is a constant indicating the origin of the data, one of # +FROM_SELECTION+, +FROM_CLIPBOARD+ or +FROM_DRAGNDROP+. # The _type_ is a previously registered drag type. def setDNDData(origin, type, data) ; end - + # Return +true+ if this window logically contains the given point (_parentX_, _parentY_). def contains?(parentX, parentY) ; end - + # Translate coordinates (_fromX_, _fromY_) from _fromWindow_'s coordinate system # to this window's coordinate system. Returns a two-element array containing the # coordinates in this window's coordinate system. def translateCoordinatesFrom(fromWindow, fromX, fromY) ; end - + # Translate coordinates (_fromX_, _fromY_) from this window's coordinate system # to _toWindow_'s coordinate system. Returns a two-element array containing the # coordinates in _toWindow_'s coordinate system. def translateCoordinatesTo(toWindow, fromX, fromY) ; end - + # Return +true+ if this window does save-unders. def doesSaveUnder?() ; end - + # # Translate message for localization; using the current FXTranslator, # an attempt is made to translate the given message into the current diff --git a/rdoc-sources/FXWizard.rb b/rdoc-sources/FXWizard.rb index a8990db..e36cc4d 100755 --- a/rdoc-sources/FXWizard.rb +++ b/rdoc-sources/FXWizard.rb @@ -12,28 +12,28 @@ module Fox # +ID_BACK+:: Move to the previous panel in the wizard # class FXWizard < FXDialogBox - + # The button frame [FXHorizontalFrame] attr_reader :buttonFrame - + # The "Advance" button [FXButton] attr_reader :advanceButton - + # The "Retreat" button [FXButton] attr_reader :retreatButton - + # The "Finish" button [FXButton] attr_reader :finishButton - + # The "Cancel" button [FXButton] attr_reader :cancelButton - + # The container used as parent for the sub-panels [FXSwitcher] attr_reader :container - + # The image being displayed [FXImage] attr_accessor :image - + # # Return an initialized FXWizard instance. # If _owner_ is a window, the dialog box will float over that window. diff --git a/rdoc-sources/FXXBMIcon.rb b/rdoc-sources/FXXBMIcon.rb index c43baa3..0a6ecb5 100755 --- a/rdoc-sources/FXXBMIcon.rb +++ b/rdoc-sources/FXXBMIcon.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("xbm"). # def FXXBMIcon.fileExt; end - + # # Return the MIME type for this image type # @@ -29,7 +29,7 @@ module Fox def initialize(a, pixels=nil, mask=nil, clr=0, opts=0, width=1, height=1) # :yields: theXBMIcon end end - + # # Return +true+ if _store_ (an FXStream instance) contains an XBM image. # diff --git a/rdoc-sources/FXXBMImage.rb b/rdoc-sources/FXXBMImage.rb index 73eb959..f713170 100755 --- a/rdoc-sources/FXXBMImage.rb +++ b/rdoc-sources/FXXBMImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("xbm"). # def FXXBMImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/FXXPMIcon.rb b/rdoc-sources/FXXPMIcon.rb index eeaa63d..079340b 100755 --- a/rdoc-sources/FXXPMIcon.rb +++ b/rdoc-sources/FXXPMIcon.rb @@ -28,7 +28,7 @@ module Fox def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theXPMIcon end end - + # # Load a XPM file from a stream. # If successful, returns an array containing the image pixel data (as an @@ -56,7 +56,7 @@ module Fox # +fast+:: if +true+, use fast something # def fxsaveXPM(store, data, transp, width, height, fast=true); end - + # # Return +true+ if _store_ (an FXStream instance) contains an XPM image. # diff --git a/rdoc-sources/FXXPMImage.rb b/rdoc-sources/FXXPMImage.rb index 5cd5403..532c5e0 100755 --- a/rdoc-sources/FXXPMImage.rb +++ b/rdoc-sources/FXXPMImage.rb @@ -7,7 +7,7 @@ module Fox # Return the suggested file extension for this image type ("xpm"). # def FXXPMImage.fileExt; end - + # # Return the MIME type for this image type # diff --git a/rdoc-sources/fxdefs.rb b/rdoc-sources/fxdefs.rb index f6f4301..a2220e9 100755 --- a/rdoc-sources/fxdefs.rb +++ b/rdoc-sources/fxdefs.rb @@ -1,22 +1,22 @@ module Fox # Make an unsigned int out of two unsigned shorts def Fox.MKUINT(lo, hi); end - + # Return the message type for a selector def Fox.FXSELTYPE(sel); end - + # Return the message identifier for a selector def Fox.FXSELID(sel); end - + # Construct an FXColor value from its red, green and blue components def Fox.FXRGB(r, g, b); end - + # Construct an FXColor value from its red, green, blue and alpha (transparency) components def Fox.FXRGBA(r, g, b, a); end - + # Return the red value from an FXColor value def Fox.FXREDVAL(color); end - + # Return the red value from an FXColor value def Fox.FXGREENVAL(color); end @@ -41,7 +41,7 @@ module Fox # hotKey = fxparseAccel("Ctrl+Alt+F7") # def Fox.fxparseAccel(str); end - + # # Return a hot key value that represents the hot key described in # the string _str_. This method is less flexible than the similar @@ -55,35 +55,35 @@ module Fox # fxparseAccel("Alt+F") # def Fox.fxparseHotKey(s); end - + # Locate hot key underline offset from begin of string def Fox.fxfindhotkeyoffset(s); end - + # Get highlight color def Fox.makeHiliteColor(clr); end - + # Get shadow color def Fox.makeShadowColor(clr); end - + # # Return the RGB value for this color name. # def Fox.fxcolorfromname(colorName); end - + # # Return the name of the closest color to the input RGB value. # def Fox.fxnamefromcolor(color); end - + # Convert RGB to HSV def Fox.fxrgb_to_hsv(r, g, b); end - + # Convert HSV to RGB def Fox.fxhsv_to_rgb(h, s, v); end - - # Return the version number that the FOX library has been compiled with, as a String (e.g. "1.0.34"). + + # Return the version number that the FOX library has been compiled with, as a String (e.g. "1.0.34"). def Fox.fxversion(); end - + # Controls tracing level def Fox.fxTraceLevel; end end diff --git a/scripts/generate_kwargs_lib.rb b/scripts/generate_kwargs_lib.rb index d45c4df..0f15ca0 100644 --- a/scripts/generate_kwargs_lib.rb +++ b/scripts/generate_kwargs_lib.rb @@ -35,11 +35,11 @@ class MethodDescription @required_args = [] @optional_args = [] end - + def generate_alias " alias old_#{method_name} #{method_name}\n" end - + def generate_body argument_names = optional_args.map { |arg| arg.name } defaults_hash = optional_args.map { |arg| ":#{arg.name} => #{arg.value}"} @@ -66,21 +66,21 @@ class MethodDescription buffer << " end\n" buffer end - + def expects_block? method_name == "initialize" end end -class ClassDescription +class ClassDescription attr_accessor :class_name attr_accessor :method_descriptions - + def initialize @class_name = nil @method_descriptions = [] end - + def generate_class_initializer buffer = "" buffer << " class #{class_name}\n" @@ -91,7 +91,7 @@ class ClassDescription buffer << " end\n\n" buffer end - + def has_methods_with_optional_arguments? method_descriptions.each do |m| return true if m.optional_args.length > 0 @@ -126,13 +126,13 @@ END end generate_closing(out) end - + def generate_closing(out) out.puts "end" out.puts "" out.puts "$VERBOSE = old_verbose" end - + def scan_for_descriptions(filename) class_description = nil class_descriptions = [] @@ -164,7 +164,7 @@ END end class_descriptions end - + def skip?(name) CLASSES_TO_SKIP.include? name end @@ -181,7 +181,7 @@ __END__ alias old_initialize initialize def initialize(p, *args, &blk) argument_names = %w{opts x y width height} - default_params = { :opts => FOURSPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 } + default_params = { :opts => FOURSPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 } params = {} params = args.pop if args.last.is_a? Hash if args.length > 0 && (args.first.nil? || args.first.is_a?(FXObject)) @@ -203,7 +203,7 @@ __END__ alias old_initialize initialize def initialize(p, *args, &blk) argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing} - default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING } + default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING } params = {} params = args.pop if args.last.is_a? Hash if args.length > 0 && (args.first.nil? || args.first.is_a?(FXComposite)) @@ -228,16 +228,16 @@ __END__ end end end - + class FXFont alias old_initialize initialize - + def initialize(a, arg1, *args, &blk) if args.length > 0 face, size = arg1, args[0] argument_names = %w{weight slant encoding setWidth hints} - default_params = { :weight => FXFont::Normal, :slant => FXFont::Straight, :encoding => FONTENCODING_DEFAULT, :setWidth => FXFont::NonExpanded, :hints => 0 } + default_params = { :weight => FXFont::Normal, :slant => FXFont::Straight, :encoding => FONTENCODING_DEFAULT, :setWidth => FXFont::NonExpanded, :hints => 0 } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i-1].intern] = e if i >= 1 } @@ -252,10 +252,10 @@ __END__ class << self alias old_listFonts listFonts end - + def FXFont.listFonts(face, *args) argument_names = %w{weight slant setWidth encoding hints} - default_params = { :weight => 0, :slant => 0, :setWidth => 0, :encoding => 0, :hints => 0 } + default_params = { :weight => 0, :slant => 0, :setWidth => 0, :encoding => 0, :hints => 0 } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i].intern] = e } @@ -265,7 +265,7 @@ __END__ end end - + class FXGLCanvas alias old_initialize initialize def initialize(parent, vis, *args, &blk) @@ -309,7 +309,7 @@ __END__ end end end - + class FXMenuBar alias old_initialize initialize def initialize(p, *args, &blk) @@ -344,7 +344,7 @@ __END__ alias old_initialize initialize def initialize(p, *args, &blk) argument_names = %w{opts x y width height} - default_params = { :opts => SPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 } + default_params = { :opts => SPLITTER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 } params = {} params = args.pop if args.last.is_a? Hash if args.length > 0 && (args.first.nil? || args.first.is_a?(FXObject)) @@ -366,7 +366,7 @@ __END__ alias old_initialize initialize def initialize(p, *args, &blk) argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing} - default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING } + default_params = { :opts => LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING } params = {} params = args.pop if args.last.is_a? Hash if args.length > 0 && (args[0].nil? || args[0].is_a?(FXComposite)) @@ -391,7 +391,7 @@ __END__ end end end - + class FXWindow alias old_initialize initialize def initialize(p, *args, &blk) diff --git a/scripts/iface.rb b/scripts/iface.rb index 4d9b1e4..dc7aae8 100755 --- a/scripts/iface.rb +++ b/scripts/iface.rb @@ -301,7 +301,7 @@ class ScintillaIFaceToRuby args.compact! @output.print("(#{args.join(', ')})") unless args.empty? @output.puts - + if stringresult and !stringresult1 @output.puts(" buffer = \"\".ljust(#{_fun.args[0].name})") end diff --git a/swig-interfaces/FX4Splitter.i b/swig-interfaces/FX4Splitter.i index 934c781..a143023 100644 --- a/swig-interfaces/FX4Splitter.i +++ b/swig-interfaces/FX4Splitter.i @@ -89,7 +89,7 @@ public: FX4Splitter(FXComposite* p,FXuint opts=FOURSPLITTER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRb4Splitter(p,opts,x,y,w,h); } - + /// Create 4-way splitter, initially shown as four unexpanded panes; notifies target about size changes FX4Splitter(FXComposite* p,FXObject* tgt,FXSelector sel,FXuint opts=FOURSPLITTER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRb4Splitter(p,tgt,sel,opts,x,y,w,h); @@ -122,13 +122,13 @@ public: /// Return current splitter style FXuint getSplitterStyle() const; - + /// Change splitter style void setSplitterStyle(FXuint style); - + /// Change splitter bar width void setBarSize(FXint bs); - + /// Get splitter bar width FXint getBarSize() const; @@ -137,7 +137,7 @@ public: /// Get expanded child, or -1 if not expanded FXuint getExpanded() const; - + /// Destructor virtual ~FX4Splitter(); }; diff --git a/swig-interfaces/FX7Segment.i b/swig-interfaces/FX7Segment.i index f83db80..779b2ba 100644 --- a/swig-interfaces/FX7Segment.i +++ b/swig-interfaces/FX7Segment.i @@ -117,17 +117,17 @@ public: /// Get the current text-justification mode. FXuint getJustify() const; - - /// Set the status line help text + + /// Set the status line help text void setHelpText(const FXString& text); - /// Get the status line help text + /// Get the status line help text const FXString& getHelpText() const; - /// Set the tool tip message + /// Set the tool tip message void setTipText(const FXString& text); - /// Get the tool tip message + /// Get the tool tip message const FXString& getTipText() const; /// Destroy diff --git a/swig-interfaces/FXApp.i b/swig-interfaces/FXApp.i index 3ab8b5d..0889ebc 100644 --- a/swig-interfaces/FXApp.i +++ b/swig-interfaces/FXApp.i @@ -85,7 +85,7 @@ enum FXDefaultCursor { }; -/// FOX Event +/// FOX Event struct FXEvent { FXEvent(); FXuint type; /// Event type @@ -191,7 +191,7 @@ public: /// Connection to display; this is called by init() bool openDisplay(const FXchar* dpyname=NULL); - + /// Close connection to the display bool closeDisplay(); @@ -243,7 +243,7 @@ public: /// Return window at the end of the focus chain FXWindow *getFocusWindow() const; - /// Get the window under the cursor, if any + /// Get the window under the cursor, if any FXWindow *getCursorWindow() const; /// Get the active toplevel window, if any @@ -310,7 +310,7 @@ public: %extend { /** - * Add signal processing message to be sent to target object when + * Add signal processing message to be sent to target object when * the signal sig is raised; flags are to be set as per POSIX definitions. * When immediate is TRUE, the message will be sent to the target right away; * this should be used with extreme care as the application is interrupted @@ -360,7 +360,7 @@ public: /** * Add a file descriptor fd to be watched for activity as determined * by mode, where mode is a bitwise OR (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT). - * A message of type SEL_IO_READ, SEL_IO_WRITE, or SEL_IO_EXCEPT will be sent + * A message of type SEL_IO_READ, SEL_IO_WRITE, or SEL_IO_EXCEPT will be sent * to the target when the specified activity is detected on the file descriptor. */ bool addInput(VALUE obj,FXuint mode,FXObject *tgt,FXSelector sel){ @@ -435,7 +435,7 @@ public: * Run event loop while there are events are available in the queue. * Returns 1 when all events in the queue have been handled, and 0 when * the event loop was terminated due to stop() or stopModal(). - * Except for the modal window and its children, user input to all windows + * Except for the modal window and its children, user input to all windows * is blocked; if the modal window is NULL, all user input is blocked. */ FXint runModalWhileEvents(FXWindow* window=NULL); @@ -447,14 +447,14 @@ public: FXint runModal(); /** - * Run a modal event loop for the given window, until stop() or stopModal() is + * Run a modal event loop for the given window, until stop() or stopModal() is * called. Except for the modal window and its children, user input to all * windows is blocked; if the modal window is NULL all user input is blocked. */ FXint runModalFor(FXWindow* window); /** - * Run modal while window is shown, or until stop() or stopModal() is called. + * Run modal while window is shown, or until stop() or stopModal() is called. * Except for the modal window and its children, user input to all windows * is blocked; if the modal window is NULL all user input is blocked. */ @@ -488,7 +488,7 @@ public: */ void stopModal(FXWindow* window,FXint value=0); - /** + /** * Break out of the innermost modal loop, returning code equal to value. */ void stopModal(FXint value=0); @@ -568,7 +568,7 @@ public: } } - /// Return current wait cursor + /// Return current wait cursor FXCursor* getWaitCursor() const; /// Obtain a default cursor diff --git a/swig-interfaces/FXBMPIcon.i b/swig-interfaces/FXBMPIcon.i index 316dddc..27a6fcd 100644 --- a/swig-interfaces/FXBMPIcon.i +++ b/swig-interfaces/FXBMPIcon.i @@ -51,8 +51,8 @@ DECLARE_FXOBJECT_VIRTUALS(FXBMPIcon) DECLARE_FXID_VIRTUALS(FXBMPIcon) DECLARE_FXDRAWABLE_VIRTUALS(FXBMPIcon) DECLARE_FXIMAGE_VIRTUALS(FXBMPIcon) - - + + %inline %{ /** * Load an BMP (Microsoft Bitmap) file from a stream. diff --git a/swig-interfaces/FXBitmap.i b/swig-interfaces/FXBitmap.i index c754d31..f236f3e 100644 --- a/swig-interfaces/FXBitmap.i +++ b/swig-interfaces/FXBitmap.i @@ -27,13 +27,13 @@ enum { BITMAP_SHMI = 0x00000020, // Using shared memory image BITMAP_SHMP = 0x00000040 // Using shared memory pixmap }; - + /** * A Bitmap is a rectangular array of pixels. It supports two representations -* of these pixels: a client-side pixel buffer, and a server-side pixmap which -* is stored in an organization directly compatible with the screen, for fast +* of these pixels: a client-side pixel buffer, and a server-side pixmap which +* is stored in an organization directly compatible with the screen, for fast * drawing onto the device. * The server-side representation is not directly accessible from the current * process as it lives in the process of the X Server or GDI. diff --git a/swig-interfaces/FXBitmapFrame.i b/swig-interfaces/FXBitmapFrame.i index 923958c..f3a2757 100644 --- a/swig-interfaces/FXBitmapFrame.i +++ b/swig-interfaces/FXBitmapFrame.i @@ -36,7 +36,7 @@ public: return new FXRbBitmapFrame(p,bmp,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Change the image being displayed void setBitmap(FXBitmap* bmp); diff --git a/swig-interfaces/FXBitmapView.i b/swig-interfaces/FXBitmapView.i index a366108..e32c8f1 100644 --- a/swig-interfaces/FXBitmapView.i +++ b/swig-interfaces/FXBitmapView.i @@ -59,7 +59,7 @@ public: /// Change image void setBitmap(FXBitmap* bmp); - + /// Return image FXBitmap* getBitmap() const; diff --git a/swig-interfaces/FXCanvas.i b/swig-interfaces/FXCanvas.i index 376fda8..e6c87dc 100644 --- a/swig-interfaces/FXCanvas.i +++ b/swig-interfaces/FXCanvas.i @@ -34,7 +34,7 @@ public: return new FXRbCanvas(p,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXCanvas(); }; diff --git a/swig-interfaces/FXCheckButton.i b/swig-interfaces/FXCheckButton.i index e700c0a..50983d5 100644 --- a/swig-interfaces/FXCheckButton.i +++ b/swig-interfaces/FXCheckButton.i @@ -80,7 +80,7 @@ public: /// Change check button style void setCheckButtonStyle(FXuint style); - + /// Return current check button style FXuint getCheckButtonStyle() const; @@ -89,7 +89,7 @@ public: /// Set the box background color void setBoxColor(FXColor clr); - + /// Get the box check color FXColor getCheckColor() const; diff --git a/swig-interfaces/FXChoiceBox.i b/swig-interfaces/FXChoiceBox.i index d9f441b..87a8801 100644 --- a/swig-interfaces/FXChoiceBox.i +++ b/swig-interfaces/FXChoiceBox.i @@ -21,7 +21,7 @@ ***********************************************************************/ %apply const FXchar **strings { const FXchar** choices }; - + /** * The Choice Box provides a dialog panel to select one item out of a list * of choices. The choices are provided as a list of text strings. @@ -74,7 +74,7 @@ public: * The return value is -1 if cancelled, or the given choice */ static FXint ask(FXApp* app,FXuint opts,const FXString& caption,const FXString& text,FXIcon* icon,const FXchar** choices); - + // Destructor virtual ~FXChoiceBox(); }; diff --git a/swig-interfaces/FXColorBar.i b/swig-interfaces/FXColorBar.i index bbf09bd..c0e9837 100644 --- a/swig-interfaces/FXColorBar.i +++ b/swig-interfaces/FXColorBar.i @@ -31,7 +31,7 @@ class FXImage; /** -* A color bar is a widget which controls the brightness (value) of a +* A color bar is a widget which controls the brightness (value) of a * color by means of the hue, saturation, value specification system. */ class FXColorBar : public FXFrame { @@ -64,20 +64,20 @@ public: /// Change hue void setHue(FXfloat h); - - /// Return hue + + /// Return hue FXfloat getHue() const; /// Change saturation void setSat(FXfloat s); - - /// Return saturation + + /// Return saturation FXfloat getSat() const; /// Change value void setVal(FXfloat v); - - /// Return value + + /// Return value FXfloat getVal() const; /// Change the color bar style diff --git a/swig-interfaces/FXColorList.i b/swig-interfaces/FXColorList.i index 976c31a..08aa347 100644 --- a/swig-interfaces/FXColorList.i +++ b/swig-interfaces/FXColorList.i @@ -38,13 +38,13 @@ public: return new FXRbColorItem(text,clr,ITEMDATA); } } - + /// Change item's color void setColor(FXColor clr); /// Return item's color FXColor getColor() const; - + // Destructor virtual ~FXColorItem(); }; @@ -66,7 +66,7 @@ public: return new FXRbColorList(p,tgt,sel,opts,x,y,w,h); } } - + /// Fill list by appending color items from array of strings and array of colors FXint fillItems(const FXchar** strings,FXColor *colors=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -84,11 +84,11 @@ public: /// Return item color FXColor getItemColor(FXint index) const; - + // Destructor virtual ~FXColorList(); }; - + DECLARE_FXOBJECT_VIRTUALS(FXColorList) DECLARE_FXID_VIRTUALS(FXColorList) DECLARE_FXDRAWABLE_VIRTUALS(FXColorList) diff --git a/swig-interfaces/FXColorWell.i b/swig-interfaces/FXColorWell.i index e46455d..eaba8e5 100644 --- a/swig-interfaces/FXColorWell.i +++ b/swig-interfaces/FXColorWell.i @@ -31,7 +31,7 @@ enum { /** * A color well is a widget which controls color settings. * Colors may be dragged and dropped from one color well to another. -* A double-click inside a color well will bring up the standard +* A double-click inside a color well will bring up the standard * color dialog panel to edit the color well's color. * Colors may be also pasted by name using middle-mouse click into/out of * color wells from/to other selection-capable applications; for example, diff --git a/swig-interfaces/FXColorWheel.i b/swig-interfaces/FXColorWheel.i index 0fcedd0..8b67a4c 100644 --- a/swig-interfaces/FXColorWheel.i +++ b/swig-interfaces/FXColorWheel.i @@ -65,20 +65,20 @@ public: /// Change hue void setHue(FXfloat h); - - /// Return hue + + /// Return hue FXfloat getHue() const; /// Change saturation void setSat(FXfloat s); - - /// Return saturation + + /// Return saturation FXfloat getSat() const; /// Change value void setVal(FXfloat v); - - /// Return value + + /// Return value FXfloat getVal() const; /// Set hue, saturation, value diff --git a/swig-interfaces/FXComboBox.i b/swig-interfaces/FXComboBox.i index 0746cef..3f118e7 100644 --- a/swig-interfaces/FXComboBox.i +++ b/swig-interfaces/FXComboBox.i @@ -32,7 +32,7 @@ enum { COMBOBOX_NORMAL = 0 }; - + class FXTextField; class FXMenuButton; class FXList; @@ -236,19 +236,19 @@ public: /// Change text color void setTextColor(FXColor clr); - + /// Return text color FXColor getTextColor() const; /// Change selected background color void setSelBackColor(FXColor clr); - + /// Return selected background color FXColor getSelBackColor() const; /// Change selected text color void setSelTextColor(FXColor clr); - + /// Return selected text color FXColor getSelTextColor() const; diff --git a/swig-interfaces/FXCursor.i b/swig-interfaces/FXCursor.i index b09bd27..2709fe1 100644 --- a/swig-interfaces/FXCursor.i +++ b/swig-interfaces/FXCursor.i @@ -57,7 +57,7 @@ public: FXCursor(FXApp* a,FXStockCursor curid=CURSOR_ARROW){ return new FXRbCursor(a,curid); } - + /// Make cursor from source and mask; cursor size should at most 32x32 for portability! FXCursor(FXApp* a,const FXuchar* src,const FXuchar* msk,FXint w=32,FXint h=32,FXint hx=0,FXint hy=0){ return new FXRbCursor(a,src,msk,w,h,hx,hy); @@ -77,16 +77,16 @@ public: /// Set hotspot x void setHotX(FXint x); - + /// Get hotspot x FXint getHotX() const; /// Set hotspot y void setHotY(FXint y); - + /// Get hotspot y FXint getHotY() const; - + /// Check if there is color in the cursor bool isColor() const; diff --git a/swig-interfaces/FXDC.i b/swig-interfaces/FXDC.i index 185fb04..6ad5062 100644 --- a/swig-interfaces/FXDC.i +++ b/swig-interfaces/FXDC.i @@ -69,7 +69,7 @@ enum FXJoinStyle { /// Fill Styles enum FXFillStyle { FILL_SOLID, /// Fill with solid color - FILL_TILED, /// Fill with tiled bitmap + FILL_TILED, /// Fill with tiled bitmap FILL_STIPPLED, /// Fill where stipple mask is 1 FILL_OPAQUESTIPPLED /// Fill with foreground where mask is 1, background otherwise }; @@ -140,7 +140,7 @@ struct FXArc { FXshort x,y,w,h,a,b; ~FXArc(); }; - + class FXApp; class FXImage; @@ -156,12 +156,12 @@ class FXDrawable; /** * Abstract Device Context * -* A Device Context is used to maintain the state of the graphics drawing system. +* A Device Context is used to maintain the state of the graphics drawing system. * Defining your drawing code in terms of the Abstract Device Context allows the * drawing commands to be rendered on different types of surfaces, such as windows -* and images (FXDCWindow), or on paper (FXDCPrint). +* and images (FXDCWindow), or on paper (FXDCPrint). * WYSYWYG may be obtained by using the same identical drawing code in your -* application regardless of the actual device surface being utilized. +* application regardless of the actual device surface being utilized. */ class FXDC { private: @@ -197,10 +197,10 @@ public: return new FXRbDC(a); } } - + /// Get context handle void* context() const { return ctx; } - + /// Get application FXApp* getApp() const; @@ -222,55 +222,55 @@ public: /// Get dash length FXuint getDashLength() const; - + /// Get line width FXuint getLineWidth() const; - + /// Get line cap style FXCapStyle getLineCap() const; - + /// Get line join style FXJoinStyle getLineJoin() const; - + /// Get line style FXLineStyle getLineStyle() const; - + /// Get fill style FXFillStyle getFillStyle() const; - + /// Get fill rule FXFillRule getFillRule() const; - + /// Get rasterop function FXFunction getFunction() const; /// Get the tile image FXImage *getTile() const; - + /// Get stipple bitmap FXBitmap *getStippleBitmap() const; - - /// Get pattern + + /// Get pattern FXStipplePattern getStipplePattern() const; /// Return clip rectangle const FXRectangle& getClipRectangle() const; - + /// Return clip x FXint getClipX() const; - + /// Return clip y FXint getClipY() const; - + /// Return clip width FXint getClipWidth() const; - + /// Return clip height FXint getClipHeight() const; - /// Get text font + /// Get text font FXFont* getFont() const; - + /// Destructor virtual ~FXDC(); }; diff --git a/swig-interfaces/FXDCPrint.i b/swig-interfaces/FXDCPrint.i index 00f3540..4983822 100644 --- a/swig-interfaces/FXDCPrint.i +++ b/swig-interfaces/FXDCPrint.i @@ -66,7 +66,7 @@ struct FXPSBounds { ~FXPSBounds(); }; - + /// Describes printer struct FXPrinter { FXPrinter(); @@ -120,16 +120,16 @@ public: /// Generate print job prolog FXbool beginPrint(FXPrinter& job); - + /// Generate print job epilog FXbool endPrint(); - + /// Generate begin of page FXbool beginPage(FXuint page=1); - + /// Generate end of page FXbool endPage(); - + FXbool setContentRange(FXint pxmin, FXint pymin, FXint pxmax, FXint pymax); /// Cleanup diff --git a/swig-interfaces/FXDCWindow.i b/swig-interfaces/FXDCWindow.i index 94de6a0..1408376 100644 --- a/swig-interfaces/FXDCWindow.i +++ b/swig-interfaces/FXDCWindow.i @@ -41,19 +41,19 @@ class FXVisual; * The Window Device Context allows drawing into an FXDrawable, such as an * on-screen window (FXWindow and derivatives) or an off-screen image (FXImage * and its derivatives). - * Because certain hardware resources are locked down, only one FXDCWindow may be + * Because certain hardware resources are locked down, only one FXDCWindow may be * locked on a drawable at any one time. - */ + */ class FXDCWindow : public FXDC { public: - %extend { + %extend { /// Construct for painting in response to expose; /// This sets the clip rectangle to the exposed rectangle FXDCWindow(FXDrawable* drawable,FXEvent* event){ return new FXRbDCWindow(drawable,event); } - - /// Construct for normal drawing; + + /// Construct for normal drawing; /// This sets clip rectangle to the whole drawable FXDCWindow(FXDrawable* drawable){ return new FXRbDCWindow(drawable); @@ -62,10 +62,10 @@ public: /// Begin locks in a drawable surface void begin(FXDrawable *drawable); - - /// End unlock the drawable surface + + /// End unlock the drawable surface void end(); - + /// Destructor virtual ~FXDCWindow(); }; diff --git a/swig-interfaces/FXDataTarget.i b/swig-interfaces/FXDataTarget.i index 240f06c..a49e424 100644 --- a/swig-interfaces/FXDataTarget.i +++ b/swig-interfaces/FXDataTarget.i @@ -24,13 +24,13 @@ /** * A Data Target allows a valuator widget such as a Slider or Text Field -* to be directly connected with a variable in the program. +* to be directly connected with a variable in the program. * Whenever the valuator control changes, the variable connected through * the data target is automatically updated; conversely, whenever the program -* changes a variable, all the connected valuator widgets will be updated +* changes a variable, all the connected valuator widgets will be updated * to reflect this new value on the display. * Data Targets also allow connecting Radio Buttons, Menu Commands, and so on -* to a variable. In this case, the new value of the connected variable is computed +* to a variable. In this case, the new value of the connected variable is computed * by subtracting ID_OPTION from the message ID. */ class FXDataTarget : public FXObject { @@ -98,7 +98,7 @@ public: FXASSERT(self->isMemberOf(FXMETACLASS(FXRbDataTarget))); return dynamic_cast<const FXRbDataTarget*>(self)->getValue(); } - + // Set new value void setValue(VALUE value){ FXASSERT(self->isMemberOf(FXMETACLASS(FXRbDataTarget))); @@ -109,7 +109,7 @@ public: /// Destructor virtual ~FXDataTarget(); }; - + DECLARE_FXOBJECT_VIRTUALS(FXDataTarget) diff --git a/swig-interfaces/FXDebugTarget.i b/swig-interfaces/FXDebugTarget.i index 1a64d4a..0454418 100644 --- a/swig-interfaces/FXDebugTarget.i +++ b/swig-interfaces/FXDebugTarget.i @@ -47,7 +47,7 @@ public: public: long onMessage(FXObject*,FXSelector,void* PTR_NULL); // FIXME public: - %extend { + %extend { /// Construct a debug target FXDebugTarget(){ return new FXRbDebugTarget(); diff --git a/swig-interfaces/FXDelegator.i b/swig-interfaces/FXDelegator.i index 84962dd..b593858 100644 --- a/swig-interfaces/FXDelegator.i +++ b/swig-interfaces/FXDelegator.i @@ -24,7 +24,7 @@ /** * A delegator forwards messages to a delegate object. * Delegators are used when you need to multiplex messages -* toward any number of target objects. +* toward any number of target objects. * For example, many controls may be connected to FXDelegator, * instead of directly to the document object. Changing the * delegate in FXDelegator will then reconnect the controls with their @@ -34,8 +34,8 @@ class FXDelegator : public FXObject { protected: FXObject *delegate; public: - %extend { - /// Construct a delegator + %extend { + /// Construct a delegator FXDelegator(FXObject* target=NULL){ return new FXRbDelegator(target); } diff --git a/swig-interfaces/FXDial.i b/swig-interfaces/FXDial.i index 5d43149..c47bd95 100644 --- a/swig-interfaces/FXDial.i +++ b/swig-interfaces/FXDial.i @@ -80,7 +80,7 @@ public: /// Set the dial value void setValue(FXint value,FXbool notify=FALSE); - + /// Return the dial value FXint getValue() const; @@ -91,7 +91,7 @@ public: FXRbRange2LoHi(range,lo,hi); self->setRange(lo,hi,notify); } - + /// Obtain the current range of the dial VALUE getRange() const { FXint lo,hi; @@ -113,7 +113,7 @@ public: FXint getRevolutionIncrement() const; /** - * Change the spacing for the small notches; this should be set + * Change the spacing for the small notches; this should be set * in tenths of degrees in the range [1,3600], and the value should * be a divisor of 3600, so as to make the notches come out evenly */ @@ -123,8 +123,8 @@ public: FXint getNotchSpacing() const; /** - * Change the notch offset, which is the position of the - * center notch; the value should be tenths of degrees + * Change the notch offset, which is the position of the + * center notch; the value should be tenths of degrees * in the range [-3600,3600] */ void setNotchOffset(FXint offset); @@ -146,16 +146,16 @@ public: /// Set the help text to be displayed on the status line void setHelpText(const FXString& text); - + /// Get the current help text const FXString& getHelpText() const; /// Set the tip text to be displayed in the tooltip void setTipText(const FXString& text); - + /// Get the current tooltip text value const FXString& getTipText() const; - + /// Destructor virtual ~FXDial(); }; diff --git a/swig-interfaces/FXDialogBox.i b/swig-interfaces/FXDialogBox.i index 43cdfdf..586350d 100644 --- a/swig-interfaces/FXDialogBox.i +++ b/swig-interfaces/FXDialogBox.i @@ -22,7 +22,7 @@ /** * DialogBox window. -* When receiving ID_CANCEL or ID_ACCEPT, the DialogBox breaks out of the +* When receiving ID_CANCEL or ID_ACCEPT, the DialogBox breaks out of the * modal loop and returns FALSE or TRUE, respectively. * To close the DialogBox when not running modally, simply send it ID_HIDE. */ @@ -46,13 +46,13 @@ public: FXDialogBox(FXApp* APP,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4){ return new FXRbDialogBox(APP,name,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } - + /// Construct dialog which will always float over the owner window FXDialogBox(FXWindow* OWNER,const FXString& name,FXuint opts=DECOR_TITLE|DECOR_BORDER,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=10,FXint pr=10,FXint pt=10,FXint pb=10,FXint hs=4,FXint vs=4){ return new FXRbDialogBox(OWNER,name,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } } - + /// Destructor virtual ~FXDialogBox(); }; diff --git a/swig-interfaces/FXDict.i b/swig-interfaces/FXDict.i index 73dce38..a397e80 100644 --- a/swig-interfaces/FXDict.i +++ b/swig-interfaces/FXDict.i @@ -31,7 +31,7 @@ /** * The dictionary class maintains a fast-access hash table of entities -* indexed by a character string. +* indexed by a character string. * It is typically used to map strings to pointers; however, overloading * the createData() and deleteData() members allows any type of data to * be indexed by strings. @@ -49,7 +49,7 @@ protected: FXint total; // Dictionary size FXint number; // Number of entries protected: - + /** * Overload this function in a derived class to return the * data pointer given an input pointer; the default implementation @@ -79,11 +79,11 @@ public: */ FXint size() const; - /** + /** * Resize the table to the given size. */ void size(FXint m); - + /** * Return the total number of entries in the table. */ @@ -95,19 +95,19 @@ public: * otherwise insert the new entry. */ // void* insert(const FXchar* ky,const void* ptr,bool mrk=false); - + /** * Replace data at key, if the entry's mark is less than * or equal to the given mark. If there was no existing entry, * a new entry is inserted with the given mark. */ // void* replace(const FXchar* ky,const void* ptr,bool mrk=false); - + /** * Remove data given key. */ void* remove(const FXchar* ky); - + /** * Find data pointer given key. */ @@ -137,23 +137,23 @@ public: * Return position of last filled slot or -1 */ FXint last() const; - + /** * Return position of next filled slot in hash table - * or a value greater than or equal to total if no filled + * or a value greater than or equal to total if no filled * slot was found */ - FXint next(FXint pos) const; - + FXint next(FXint pos) const; + /** * Return position of previous filled slot in hash table * or a -1 if no filled slot was found */ - FXint prev(FXint pos) const; - + FXint prev(FXint pos) const; + /// Clear all entries void clear(); - + // Add methods similar to those for Ruby's Hash class %extend { // Returns true if the given key is present diff --git a/swig-interfaces/FXDirBox.i b/swig-interfaces/FXDirBox.i index 1956633..d3d9772 100644 --- a/swig-interfaces/FXDirBox.i +++ b/swig-interfaces/FXDirBox.i @@ -45,7 +45,7 @@ public: /// Set current directory void setDirectory(const FXString& pathname); - + /// Return current directory FXString getDirectory() const; diff --git a/swig-interfaces/FXDirDialog.i b/swig-interfaces/FXDirDialog.i index 2e4bb69..1a329cb 100644 --- a/swig-interfaces/FXDirDialog.i +++ b/swig-interfaces/FXDirDialog.i @@ -52,10 +52,10 @@ public: /// Change directory void setDirectory(const FXString& path); - + /// Return directory FXString getDirectory() const; - + /// Return TRUE if showing files as well as directories FXbool showFiles() const; diff --git a/swig-interfaces/FXDirList.i b/swig-interfaces/FXDirList.i index a76a5c2..7d04d5d 100644 --- a/swig-interfaces/FXDirList.i +++ b/swig-interfaces/FXDirList.i @@ -21,7 +21,7 @@ ***********************************************************************/ struct FXFileAssoc; -class FXFileDict; +class FXFileDict; class FXIcon; @@ -206,34 +206,34 @@ public: /// Return TRUE if item is a directory FXbool isItemDirectory(const FXTreeItem* item) const; - + /// Return TRUE if item is a file FXbool isItemFile(const FXTreeItem* item) const; - + /// Return TRUE if item is executable FXbool isItemExecutable(const FXTreeItem* item) const; - + /// Set current file void setCurrentFile(const FXString& file,FXbool notify=FALSE); - + /// Return current file FXString getCurrentFile() const; - + /// Set current directory void setDirectory(const FXString& path,FXbool notify=FALSE); - + /// Return current directory FXString getDirectory() const; - + /// Return absolute pathname of item FXString getItemPathname(const FXTreeItem* item) const; - + /// Return the item from the absolute pathname FXTreeItem* getPathnameItem(const FXString& path); /// Change wildcard matching pattern void setPattern(const FXString& ptrn); - + /// Return wildcard pattern FXString getPattern() const; @@ -242,25 +242,25 @@ public: /// Change wildcard matching mode void setMatchMode(FXuint mode); - + /// Return TRUE if showing files as well as directories FXbool showFiles() const; - + /// Show or hide normal files void showFiles(FXbool showing); /// Return TRUE if showing hidden files and directories FXbool showHiddenFiles() const; - + /// Show or hide hidden files and directories void showHiddenFiles(FXbool showing); - + /// Change file associations void setAssociations(FXFileDict* assoc); - + /// Return file associations FXFileDict* getAssociations() const; - + /// Destructor virtual ~FXDirList(); }; diff --git a/swig-interfaces/FXDirSelector.i b/swig-interfaces/FXDirSelector.i index b2c861b..d681f28 100644 --- a/swig-interfaces/FXDirSelector.i +++ b/swig-interfaces/FXDirSelector.i @@ -99,10 +99,10 @@ public: /// Return a pointer to the "Cancel" button FXButton *cancelButton() const; - + /// Change directory void setDirectory(const FXString& path); - + /// Return directory FXString getDirectory() const; diff --git a/swig-interfaces/FXDockBar.i b/swig-interfaces/FXDockBar.i index bb6dfc1..0a8e740 100644 --- a/swig-interfaces/FXDockBar.i +++ b/swig-interfaces/FXDockBar.i @@ -143,7 +143,7 @@ public: FXDockSite* findDockNear(FXint rootx,FXint rooty); /** - * Change set of sides (a combination of ALLOW_TOP, ALLOW_LEFT, etc.), + * Change set of sides (a combination of ALLOW_TOP, ALLOW_LEFT, etc.), * where docking is allowed. The default is to allow docking on all sides. */ void allowedSides(FXuchar allow); diff --git a/swig-interfaces/FXDockHandler.i b/swig-interfaces/FXDockHandler.i index 1568577..60cb1f8 100644 --- a/swig-interfaces/FXDockHandler.i +++ b/swig-interfaces/FXDockHandler.i @@ -27,7 +27,7 @@ /** * The dock handler exists as a common base class for tool bar grip -* and dock title. +* and dock title. */ class FXDockHandler : public FXFrame { protected: diff --git a/swig-interfaces/FXDockSite.i b/swig-interfaces/FXDockSite.i index fb15ea7..6db2be6 100644 --- a/swig-interfaces/FXDockSite.i +++ b/swig-interfaces/FXDockSite.i @@ -72,7 +72,7 @@ public: return new FXRbDockSite(p,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } } - + /// Change wrap option void wrapGalleys(FXbool wrap); diff --git a/swig-interfaces/FXDockTitle.i b/swig-interfaces/FXDockTitle.i index 7c321d1..087a637 100644 --- a/swig-interfaces/FXDockTitle.i +++ b/swig-interfaces/FXDockTitle.i @@ -54,7 +54,7 @@ public: return new FXRbDockTitle(p,text,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Set the caption for the grip void setCaption(const FXString& text); diff --git a/swig-interfaces/FXDocument.i b/swig-interfaces/FXDocument.i index 1f705ae..42dbf7d 100644 --- a/swig-interfaces/FXDocument.i +++ b/swig-interfaces/FXDocument.i @@ -33,7 +33,7 @@ public: enum { ID_TITLE=10000, // Don't interfere with viewer's message id's ID_FILENAME, - ID_LAST + ID_LAST }; public: %extend { diff --git a/swig-interfaces/FXDragCorner.i b/swig-interfaces/FXDragCorner.i index 9460751..6f45f2c 100644 --- a/swig-interfaces/FXDragCorner.i +++ b/swig-interfaces/FXDragCorner.i @@ -50,16 +50,16 @@ public: /// Change highlight color void setHiliteColor(FXColor clr); - + /// Return current highlight color FXColor getHiliteColor() const; /// Change shadow color void setShadowColor(FXColor clr); - + /// Return current shadow color FXColor getShadowColor() const; - + /// Destructor virtual ~FXDragCorner(); }; diff --git a/swig-interfaces/FXDriveBox.i b/swig-interfaces/FXDriveBox.i index adf9f68..5885ed8 100644 --- a/swig-interfaces/FXDriveBox.i +++ b/swig-interfaces/FXDriveBox.i @@ -39,7 +39,7 @@ public: /// Set current drive FXbool setDrive(const FXString& drive); - + /// Return current drive FXString getDrive() const; diff --git a/swig-interfaces/FXFileDialog.i b/swig-interfaces/FXFileDialog.i index 2910e33..6452741 100644 --- a/swig-interfaces/FXFileDialog.i +++ b/swig-interfaces/FXFileDialog.i @@ -58,10 +58,10 @@ public: /// Change file name void setFilename(const FXString& path); - + /// Return file name, if any FXString getFilename() const; - + %extend { // Return list of selected file names. VALUE getFilenames() const { @@ -81,10 +81,10 @@ public: /// Change file pattern void setPattern(const FXString& ptrn); - + /// Return file pattern FXString getPattern() const; - + /** * Change the list of file patterns shown in the file dialog. * Each pattern comprises an optional name, followed by a pattern in @@ -180,7 +180,7 @@ public: /// Return wildcard matching mode FXuint getMatchMode() const; - + /// Return TRUE if showing hidden files FXbool showHiddenFiles() const; @@ -201,10 +201,10 @@ public: /// Show readonly button void showReadOnly(FXbool show); - + /// Return TRUE if readonly is shown FXbool shownReadOnly() const; - + /// Set initial state of readonly button void setReadOnly(FXbool state); @@ -219,7 +219,7 @@ public: /// Allow or disallow navigation void allowNavigation(FXbool navigable); - + /// Is navigation allowed? FXbool allowNavigation() const; diff --git a/swig-interfaces/FXFileDict.i b/swig-interfaces/FXFileDict.i index 1412215..faf867a 100644 --- a/swig-interfaces/FXFileDict.i +++ b/swig-interfaces/FXFileDict.i @@ -71,7 +71,7 @@ public: FXFileDict(FXApp* a){ return new FXRbFileDict(a); } - + /** * Construct a dictionary mapping file-extension to file associations, * using the specified settings database as a source for the bindings. @@ -110,7 +110,7 @@ public: /// Find file association from registry FXFileAssoc* find(const FXchar* ext); - + /// Destructor virtual ~FXFileDict(); }; diff --git a/swig-interfaces/FXFileList.i b/swig-interfaces/FXFileList.i index e10a3a8..b5aa437 100644 --- a/swig-interfaces/FXFileList.i +++ b/swig-interfaces/FXFileList.i @@ -21,7 +21,7 @@ ***********************************************************************/ struct FXFileAssoc; -class FXFileDict; +class FXFileDict; class FXIcon; @@ -81,7 +81,7 @@ public: /// Return the date for this item FXTime getDate() const; - + /// Destructor virtual ~FXFileItem(); }; @@ -279,7 +279,7 @@ public: /// Return full pathname of item at index FXString getItemPathname(FXint index) const; - + /// Return file association of item FXFileAssoc* getItemAssoc(FXint index) const; @@ -289,18 +289,18 @@ public: /// Change wildcard matching mode void setMatchMode(FXuint mode); - /// Return TRUE if showing hidden files + /// Return TRUE if showing hidden files FXbool showHiddenFiles() const; - + /// Show or hide hidden files void showHiddenFiles(FXbool showing); - + /// Return TRUE if showing directories only FXbool showOnlyDirectories() const; - + /// Show directories only void showOnlyDirectories(FXbool shown); - + /// Return TRUE if showing files only FXbool showOnlyFiles() const; @@ -315,10 +315,10 @@ public: /// Return images preview size FXint getImageSize() const; - + /// Change images preview size void setImageSize(FXint size); - + /// Return TRUE if showing parent directories FXbool showParents() const; @@ -327,7 +327,7 @@ public: /// Change file associations void setAssociations(FXFileDict* assoc); - + /// Return file associations FXFileDict* getAssociations() const; diff --git a/swig-interfaces/FXFileSelector.i b/swig-interfaces/FXFileSelector.i index 03ecb75..8b00a6b 100644 --- a/swig-interfaces/FXFileSelector.i +++ b/swig-interfaces/FXFileSelector.i @@ -247,7 +247,7 @@ public: /// Return number of patterns FXint getNumPatterns() const; - + /// Allow pattern entry void allowPatternEntry(FXbool allow); @@ -319,10 +319,10 @@ public: /// Show readonly button void showReadOnly(FXbool show); - + /// Return TRUE if readonly is shown FXbool shownReadOnly() const; - + /// Set initial state of readonly button void setReadOnly(FXbool state); @@ -331,7 +331,7 @@ public: /// Allow or disallow navigation void allowNavigation(FXbool navigable); - + /// Is navigation allowed? FXbool allowNavigation() const; diff --git a/swig-interfaces/FXFoldingList.i b/swig-interfaces/FXFoldingList.i index a0ca97b..22892f8 100644 --- a/swig-interfaces/FXFoldingList.i +++ b/swig-interfaces/FXFoldingList.i @@ -101,7 +101,7 @@ public: void setData(VALUE ptr){ self->setData(reinterpret_cast<void*>(ptr)); } - + VALUE getData() const { return self->getData() ? reinterpret_cast<VALUE>(self->getData()) : Qnil; } @@ -127,10 +127,10 @@ public: /// Return TRUE if subitems, real or imagined FXbool hasItems() const; - + /// Change has items flag void setHasItems(FXbool flag); - + /// Return true if descendent of parent item FXbool isChildOf(const FXFoldingItem* item) const; @@ -318,7 +318,7 @@ public: FXFoldingItem* appendItem(FXFoldingItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); %extend { - /// Prepend [possibly subclassed] item as first child of father + /// Prepend [possibly subclassed] item as first child of father FXFoldingItem* prependItem(FXFoldingItem* father,FXFoldingItem* item,FXbool notify=FALSE){ if(item->isMemberOf(FXMETACLASS(FXRbFoldingItem))){ dynamic_cast<FXRbFoldingItem*>(item)->owned=TRUE; @@ -342,10 +342,10 @@ public: // Save pointer(s) to the soon-to-be-destroyed items FXObjectListOf<FXFoldingItem> items; FXRbFoldingList::enumerateItem(item,items); - + // Do the deed self->removeItem(item,notify); - + // Now zero-out pointers held by still-alive Ruby objects for(FXint i=0;i<items.no();i++){ FXRbUnregisterRubyObj(items[i]); @@ -433,7 +433,7 @@ public: void setItemData(FXFoldingItem* item,VALUE ptr){ self->setItemData(item,reinterpret_cast<void*>(ptr)); } - + /// Return item user-data pointer VALUE getItemData(const FXFoldingItem* item) const { return self->getItemData(item) ? reinterpret_cast<VALUE>(self->getItemData(item)) : Qnil; diff --git a/swig-interfaces/FXFont.i b/swig-interfaces/FXFont.i index f8ffa3f..a4acefc 100644 --- a/swig-interfaces/FXFont.i +++ b/swig-interfaces/FXFont.i @@ -34,7 +34,7 @@ enum FXFontEncoding { FONTENCODING_ISO_8859_2 = 2, /// Central and East European (Latin2) FONTENCODING_ISO_8859_3 = 3, /// Esperanto (Latin3) FONTENCODING_ISO_8859_4 = 4, - FONTENCODING_ISO_8859_5 = 5, /// Cyrillic (almost obsolete) + FONTENCODING_ISO_8859_5 = 5, /// Cyrillic (almost obsolete) FONTENCODING_ISO_8859_6 = 6, /// Arabic FONTENCODING_ISO_8859_7 = 7, /// Greek FONTENCODING_ISO_8859_8 = 8, /// Hebrew @@ -80,29 +80,29 @@ enum FXFontEncoding { FONTENCODING_UNICODE = 9999, - FONTENCODING_LATIN1 = FONTENCODING_ISO_8859_1, /// Latin 1 (West European) - FONTENCODING_LATIN2 = FONTENCODING_ISO_8859_2, /// Latin 2 (East European) - FONTENCODING_LATIN3 = FONTENCODING_ISO_8859_3, /// Latin 3 (South European) - FONTENCODING_LATIN4 = FONTENCODING_ISO_8859_4, /// Latin 4 (North European) - FONTENCODING_LATIN5 = FONTENCODING_ISO_8859_9, /// Latin 5 (Turkish) - FONTENCODING_LATIN6 = FONTENCODING_ISO_8859_10, /// Latin 6 (Nordic) + FONTENCODING_LATIN1 = FONTENCODING_ISO_8859_1, /// Latin 1 (West European) + FONTENCODING_LATIN2 = FONTENCODING_ISO_8859_2, /// Latin 2 (East European) + FONTENCODING_LATIN3 = FONTENCODING_ISO_8859_3, /// Latin 3 (South European) + FONTENCODING_LATIN4 = FONTENCODING_ISO_8859_4, /// Latin 4 (North European) + FONTENCODING_LATIN5 = FONTENCODING_ISO_8859_9, /// Latin 5 (Turkish) + FONTENCODING_LATIN6 = FONTENCODING_ISO_8859_10, /// Latin 6 (Nordic) FONTENCODING_LATIN7 = FONTENCODING_ISO_8859_13, /// Latin 7 (Baltic Rim) FONTENCODING_LATIN8 = FONTENCODING_ISO_8859_14, /// Latin 8 (Celtic) FONTENCODING_LATIN9 = FONTENCODING_ISO_8859_15, /// Latin 9 AKA Latin 0 FONTENCODING_LATIN10 = FONTENCODING_ISO_8859_16, /// Latin 10 FONTENCODING_USASCII = FONTENCODING_ISO_8859_1, /// Latin 1 - FONTENCODING_WESTEUROPE = FONTENCODING_ISO_8859_1, /// Latin 1 (West European) - FONTENCODING_EASTEUROPE = FONTENCODING_ISO_8859_2, /// Latin 2 (East European) - FONTENCODING_SOUTHEUROPE = FONTENCODING_ISO_8859_3, /// Latin 3 (South European) - FONTENCODING_NORTHEUROPE = FONTENCODING_ISO_8859_4, /// Latin 4 (North European) + FONTENCODING_WESTEUROPE = FONTENCODING_ISO_8859_1, /// Latin 1 (West European) + FONTENCODING_EASTEUROPE = FONTENCODING_ISO_8859_2, /// Latin 2 (East European) + FONTENCODING_SOUTHEUROPE = FONTENCODING_ISO_8859_3, /// Latin 3 (South European) + FONTENCODING_NORTHEUROPE = FONTENCODING_ISO_8859_4, /// Latin 4 (North European) FONTENCODING_CYRILLIC = FONTENCODING_ISO_8859_5, /// Cyrillic FONTENCODING_RUSSIAN = FONTENCODING_KOI8, /// Cyrillic FONTENCODING_ARABIC = FONTENCODING_ISO_8859_6, /// Arabic FONTENCODING_GREEK = FONTENCODING_ISO_8859_7, /// Greek FONTENCODING_HEBREW = FONTENCODING_ISO_8859_8, /// Hebrew - FONTENCODING_TURKISH = FONTENCODING_ISO_8859_9, /// Latin 5 (Turkish) - FONTENCODING_NORDIC = FONTENCODING_ISO_8859_10, /// Latin 6 (Nordic) + FONTENCODING_TURKISH = FONTENCODING_ISO_8859_9, /// Latin 5 (Turkish) + FONTENCODING_NORDIC = FONTENCODING_ISO_8859_10, /// Latin 6 (Nordic) FONTENCODING_THAI = FONTENCODING_ISO_8859_11, /// Thai FONTENCODING_BALTIC = FONTENCODING_ISO_8859_13, /// Latin 7 (Baltic Rim) FONTENCODING_CELTIC = FONTENCODING_ISO_8859_14 /// Latin 8 (Celtic) @@ -224,17 +224,17 @@ public: FXFont(FXApp* a,const FXString& string){ return new FXRbFont(a,string); } - + /** * Construct a font with given name, size in points, weight, slant, character set * encoding, setwidth, and hints. - * The font name may be comprised of a family name and optional foundry name enclosed in + * The font name may be comprised of a family name and optional foundry name enclosed in * square brackets, for example, "helvetica [bitstream]". */ FXFont(FXApp* a,const FXString& face,FXuint sz,FXuint wt=FXFont::Normal,FXuint slant=FXFont::Straight,FXuint encoding=FONTENCODING_DEFAULT,FXuint setwidth=FXFont::NonExpanded,FXuint h=0){ return new FXRbFont(a,face,sz,wt,slant,encoding,setwidth,h); } - + /// Construct font from font description FXFont(FXApp* a,const FXFontDesc& fontdesc){ return new FXRbFont(a,fontdesc); @@ -249,13 +249,13 @@ public: /// Get font family name const FXString& getName() const; - + /// Get actual family name const FXString& getActualName() const; /// Get size in deci-points FXuint getSize() const; - + /// Get actual size in deci-points FXuint getActualSize() const; @@ -267,7 +267,7 @@ public: /// Get slant FXuint getSlant() const; - + /// Get actual slant FXuint getActualSlant() const; @@ -297,7 +297,7 @@ public: return fontdesc; } } - + /// Return angle FXint getAngle() const; diff --git a/swig-interfaces/FXFrame.i b/swig-interfaces/FXFrame.i index 775c5e4..9c9f0ac 100644 --- a/swig-interfaces/FXFrame.i +++ b/swig-interfaces/FXFrame.i @@ -72,10 +72,10 @@ public: /// Change frame style void setFrameStyle(FXuint style); - + /// Get current frame style FXuint getFrameStyle() const; - + /// Get border width FXint getBorderWidth() const; @@ -123,7 +123,7 @@ public: /// Change base gui color void setBaseColor(FXColor clr); - + /// Get base gui color FXColor getBaseColor() const; }; diff --git a/swig-interfaces/FXGLCanvas.i b/swig-interfaces/FXGLCanvas.i index e9016c3..59bbcef 100644 --- a/swig-interfaces/FXGLCanvas.i +++ b/swig-interfaces/FXGLCanvas.i @@ -36,7 +36,7 @@ public: FXGLCanvas(FXComposite* p,FXGLVisual *vis,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLCanvas(p,vis,tgt,sel,opts,x,y,w,h); } - + /** * Construct an OpenGL-capable canvas, sharing display * list with another GL canvas. This canvas becomes a member @@ -50,7 +50,7 @@ public: /// Return TRUE if it is sharing display lists FXbool isShared() const; - + %extend { /// Return current context, if any static unsigned long getCurrentContext(){ @@ -62,7 +62,7 @@ public: return reinterpret_cast<unsigned long>(self->getContext()); } } - + /// Destructor virtual ~FXGLCanvas(); }; diff --git a/swig-interfaces/FXGLContext.i b/swig-interfaces/FXGLContext.i index 5fe5da3..700e636 100644 --- a/swig-interfaces/FXGLContext.i +++ b/swig-interfaces/FXGLContext.i @@ -48,7 +48,7 @@ public: FXGLContext(FXApp* a,FXGLVisual *vis){ return new FXRbGLContext(a,vis); } - + /** * Construct an OpenGL context sharing display lists with an existing GL context. */ @@ -59,22 +59,22 @@ public: /// Return TRUE if it is sharing display lists FXbool isShared() const; - + /// Get the visual FXGLVisual* getVisual() const; /// Make OpenGL context current prior to performing OpenGL commands FXbool begin(FXDrawable *drawable); - - /// Make OpenGL context non current + + /// Make OpenGL context non current FXbool end(); - + /// Swap front and back buffer void swapBuffers(); - + /// Copy part of backbuffer to front buffer [Mesa] void swapSubBuffers(FXint x,FXint y,FXint w,FXint h); - + /// Destructor virtual ~FXGLContext(); }; diff --git a/swig-interfaces/FXGLObject.i b/swig-interfaces/FXGLObject.i index a66da5b..649234b 100644 --- a/swig-interfaces/FXGLObject.i +++ b/swig-interfaces/FXGLObject.i @@ -45,7 +45,7 @@ public: return self->identify(path); } } - + // Destructor virtual ~FXGLObject(); }; diff --git a/swig-interfaces/FXGLShape.i b/swig-interfaces/FXGLShape.i index 43d5fb9..0ba32c6 100644 --- a/swig-interfaces/FXGLShape.i +++ b/swig-interfaces/FXGLShape.i @@ -38,8 +38,8 @@ enum { STYLE_POINTS = 0x00000040, // Draw as points STYLE_BOUNDBOX = 0x00000080 // Draw bounding box }; - - + + /// OpenGL Shape Object class FXGLShape : public FXGLObject { @@ -91,7 +91,7 @@ public: FXGLShape(FXfloat x,FXfloat y,FXfloat z,FXuint opts){ return new FXRbGLShape(x,y,z,opts); } - + /// Construct with specified origin, options and front and back materials FXGLShape(FXfloat x,FXfloat y,FXfloat z,FXuint opts,const FXMaterial& front,const FXMaterial& back){ return new FXRbGLShape(x,y,z,opts,front,back); @@ -126,21 +126,21 @@ public: FXASSERT(self->isMemberOf(FXMETACLASS(FXRbGLShape))); dynamic_cast<FXRbGLShape*>(self)->setPosition(pos); } - + // Get the material for specified side (where side = 0 or 1) FXMaterial getMaterial(FXint side) const { FXMaterial mtl; self->getMaterial(side, mtl); return mtl; } - + // Set the range for this shape void setRange(const FXRangef& box){ FXASSERT(self->isMemberOf(FXMETACLASS(FXRbGLShape))); dynamic_cast<FXRbGLShape*>(self)->setRange(box); } } - + // Destructor virtual ~FXGLShape(); }; diff --git a/swig-interfaces/FXGLViewer.i b/swig-interfaces/FXGLViewer.i index 74bca6b..c5d58a0 100644 --- a/swig-interfaces/FXGLViewer.i +++ b/swig-interfaces/FXGLViewer.i @@ -31,9 +31,9 @@ enum { VIEWER_DITHER = 0x00020000 /// Dithering }; - + /******************************* Viewer Structs *****************************/ - + /// OpenGL Viewer Viewport struct FXViewport { @@ -74,7 +74,7 @@ struct FXMaterial { ~FXMaterial(); }; - + // Feedback buffer sort routine // typedef FXbool (*FXZSortFunc)(FXfloat*& buffer,FXint& used,FXint& size); FIXME @@ -254,7 +254,7 @@ public: long onQueryTip(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME public: - + // Projection modes enum { PARALLEL, // Parallel projection @@ -275,7 +275,7 @@ public: ID_FITVIEW, ID_TOP_COLOR, ID_BOTTOM_COLOR, - ID_BACK_COLOR, + ID_BACK_COLOR, ID_AMBIENT_COLOR, ID_LIGHT_AMBIENT, ID_LIGHT_DIFFUSE, @@ -321,7 +321,7 @@ public: FXGLViewer(FXComposite* p,FXGLVisual *vis,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLViewer(p,vis,tgt,sel,opts,x,y,w,h); } - + /// Construct GL viewer widget sharing display list with another GL viewer FXGLViewer(FXComposite* p,FXGLVisual *vis,FXGLViewer* sharegroup,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLViewer(p,vis,sharegroup,tgt,sel,opts,x,y,w,h); @@ -353,7 +353,7 @@ public: /// Fit viewer to the given bounding box FXbool fitToBounds(const FXRangef& box); - + %extend { /// Return the viewer's viewport FXViewport getViewport() const { @@ -362,7 +362,7 @@ public: return v; } } - + %extend { /// Translate eye-coordinate to screen coordinate VALUE eyeToScreen(FXVec3f e) { @@ -377,25 +377,25 @@ public: /// Translate screen coordinate to eye coordinate at the given depth FXVec3f screenToEye(FXint sx,FXint sy,FXfloat eyez=0.0); - + /// Translate screen coordinate to eye coordinate at the target point depth FXVec3f screenToTarget(FXint sx,FXint sy); - + /// Translate world coordinate to eye coordinate FXVec3f worldToEye(FXVec3f w); - + /// Translate world coordinate to eye coordinate depth FXfloat worldToEyeZ(FXVec3f w); - + /// Translate eye coordinate to eye coordinate - FXVec3f eyeToWorld(FXVec3f e); - + FXVec3f eyeToWorld(FXVec3f e); + /// Calculate world coordinate vector from screen movement FXVec3f worldVector(FXint fx,FXint fy,FXint tx,FXint ty); - + /// Change default object material setting void setMaterial(const FXMaterial &mtl); - + %extend { /// Return default object material setting FXMaterial getMaterial() const { @@ -404,46 +404,46 @@ public: return mtl; } } - + /// Change camera field of view angle (in degrees) void setFieldOfView(FXdouble fv); - + /// Return camera field of view angle FXdouble getFieldOfView() const { return fov; } /// Change camera zoom factor void setZoom(FXdouble zm); - + /// Return camera zoom factor FXdouble getZoom() const; /// Change target point distance void setDistance(FXdouble ed); - + /// Return target point distance FXdouble getDistance() const; /// Change unequal model scaling factors void setScale(FXVec3f s); - + /// Return current scaling factors const FXVec3f& getScale() const; /// Change camera orientation from quaternion void setOrientation(FXQuatf rot); - + /// Return current camera orientation quaternion const FXQuatf& getOrientation() const; /// Change object center (tranlation) void setCenter(FXVec3f cntr); - + /// Return object center const FXVec3f& getCenter() const; /// Translate object center void translate(FXVec3f vec); - + %extend { /// Return boresight vector (an array of two arrays) VALUE getBoreVector(FXint sx,FXint sy) { @@ -470,19 +470,19 @@ public: /// Return eyesight vector FXVec3f getEyeVector() const; - - /// Return eye position + + /// Return eye position FXVec3f getEyePosition() const; - + /// Change help text void setHelpText(const FXString& text); - + /// Return help text const FXString& getHelpText() const; /// Change tip text void setTipText(const FXString& text); - + /// Return tip text const FXString& getTipText() const; @@ -494,7 +494,7 @@ public: /// Change the scene, i.e. the object being displayed. void setScene(FXGLObject* sc); - + /// Return the current scene object FXGLObject* getScene() const; @@ -506,19 +506,19 @@ public: /// Change the projection mode, PERSPECTIVE or PARALLEL void setProjection(FXuint proj); - + /// Return the projection mode FXuint getProjection() const; /// Change top or bottom or both background colors void setBackgroundColor(const FXVec4f& clr,FXbool bottom=MAYBE); - + /// Return top or bottom window background color. const FXVec4f& getBackgroundColor(FXbool bottom=FALSE) const; /// Change global ambient light color void setAmbientColor(const FXVec4f& clr); - + /// Return global ambient light color const FXVec4f& getAmbientColor() const; @@ -538,9 +538,9 @@ public: } return pixels; } - + /** - * Read the feedback buffer containing the current scene, returning used + * Read the feedback buffer containing the current scene, returning used * and allocated size. */ VALUE readFeedback(FXint x,FXint y,FXint w,FXint h){ @@ -621,12 +621,12 @@ public: } } #endif - + #ifdef SWIGRUBY /** * Change hidden-surface feedback buffer sorting algorithm. * This can be used for move/draw printed output depth sorting. - */ + */ %extend { void setZSortFunc(VALUE proc){ } @@ -642,7 +642,7 @@ public: } #endif - /** + /** * Change the maximum hits, i.e. the maximum size of the pick buffer. * When set to less than or equal to zero, picking is essentially turned off. */ @@ -664,7 +664,7 @@ public: /// Set turbo mode void setTurboMode(FXbool turbo=TRUE); - + %extend { // Return light source settings FXLight getLight() const { @@ -673,7 +673,7 @@ public: return lite; } } - + /// Change light source settings void setLight(const FXLight& lite); diff --git a/swig-interfaces/FXGLVisual.i b/swig-interfaces/FXGLVisual.i index 34f337a..5e9cc95 100644 --- a/swig-interfaces/FXGLVisual.i +++ b/swig-interfaces/FXGLVisual.i @@ -122,7 +122,7 @@ public: /// Does it swap by copying instead of flipping buffers? FXbool isBufferSwapCopy() const; - + /// Destructor virtual ~FXGLVisual(); }; @@ -131,6 +131,6 @@ public: DECLARE_FXOBJECT_VIRTUALS(FXGLVisual) DECLARE_FXID_VIRTUALS(FXGLVisual) - + /// Create a display list of bitmaps from font glyphs in a font void glUseFXFont(FXFont* font,int first,int count,int list); diff --git a/swig-interfaces/FXGradientBar.i b/swig-interfaces/FXGradientBar.i index 15d29fc..7d4da20 100644 --- a/swig-interfaces/FXGradientBar.i +++ b/swig-interfaces/FXGradientBar.i @@ -194,13 +194,13 @@ public: /// Set lower color of a segment void setSegmentLowerColor(FXint SEG0,FXColor clr,FXbool notify=FALSE); - + /// Set upper color of a segment void setSegmentUpperColor(FXint SEG0,FXColor clr,FXbool notify=FALSE); /// Get lower color of a segment FXColor getSegmentLowerColor(FXint SEG0) const; - + /// Get upper color of a segment FXColor getSegmentUpperColor(FXint SEG0) const; @@ -218,10 +218,10 @@ public: /// Get lower value of segment sg FXdouble getSegmentLower(FXint SEG0) const; - + /// Get middle value of segment sg FXdouble getSegmentMiddle(FXint SEG0) const; - + /// Get upper value of segment sg FXdouble getSegmentUpper(FXint SEG0) const; diff --git a/swig-interfaces/FXGroupBox.i b/swig-interfaces/FXGroupBox.i index f9f98f6..0d3bef1 100644 --- a/swig-interfaces/FXGroupBox.i +++ b/swig-interfaces/FXGroupBox.i @@ -29,7 +29,7 @@ enum { }; -/** +/** * A group box widget provides a nice raised or sunken border * around a group of widgets, providing a visual delineation. * Typically, a title is placed over the border to provide some @@ -40,7 +40,7 @@ enum { */ class FXGroupBox : public FXPacker { protected: - FXString label; + FXString label; FXFont *font; FXColor textColor; protected: @@ -81,7 +81,7 @@ public: /// Return text color FXColor getTextColor() const; - + /// Destructor virtual ~FXGroupBox(); }; diff --git a/swig-interfaces/FXHeader.i b/swig-interfaces/FXHeader.i index 0057377..608c809 100644 --- a/swig-interfaces/FXHeader.i +++ b/swig-interfaces/FXHeader.i @@ -24,7 +24,7 @@ class FXIcon; class FXFont; class FXHeader; - + /// Header style options enum { HEADER_BUTTON = 0x00008000, /// Button style can be clicked @@ -34,7 +34,7 @@ enum { HEADER_RESIZE = 0x00040000, /// Allow resizing sections HEADER_NORMAL = HEADER_HORIZONTAL|FRAME_NORMAL }; - + /// Header item @@ -76,7 +76,7 @@ public: /// Return item's text label const FXString& getText() const; - + /// Return item's icon FXIcon* getIcon() const; @@ -200,7 +200,7 @@ public: /// Return total size of all items FXint getTotalSize() const; - + /// Set the current position void setPosition(FXint p); @@ -253,7 +253,7 @@ public: /// Fill header by appending items from array of strings FXint fillItems(const FXchar** strings,FXIcon *icon=NULL,FXint size=0,void* ITEMDATA=NULL,FXbool notify=FALSE); - + %extend { /// Insert a new [possibly subclassed] item at the given index FXint insertItem(FXint index,FXHeaderItem* item,FXbool notify=FALSE){ @@ -347,7 +347,7 @@ public: self->setItemData(index, (void*) ptr); } - /// Return data of item at index + /// Return data of item at index VALUE getItemData(FXint index) const { return self->getItemData(index) ? (VALUE) self->getItemData(index) : Qnil; } @@ -355,7 +355,7 @@ public: /// Change sort direction (FALSE, TRUE, MAYBE) void setArrowDir(FXint index,FXbool dir=MAYBE); - + /// Return sort direction (FALSE, TRUE, MAYBE) FXuint getArrowDir(FXint index) const; diff --git a/swig-interfaces/FXIcon.i b/swig-interfaces/FXIcon.i index 1f46fd7..57ef65e 100644 --- a/swig-interfaces/FXIcon.i +++ b/swig-interfaces/FXIcon.i @@ -21,7 +21,7 @@ ***********************************************************************/ -/// Icon class +/// Icon class class FXIcon : public FXImage { protected: FXID shape; // Shape pixmap @@ -29,7 +29,7 @@ protected: FXColor transp; // Transparency color protected: FXIcon(){} - FXColor guesstransp(); + FXColor guesstransp(); public: %extend { /** @@ -43,10 +43,10 @@ public: /// Obtain transparency color FXColor getTransparentColor() const; - + /// Change transparency color void setTransparentColor(FXColor color); - + /// Destructor virtual ~FXIcon(); }; diff --git a/swig-interfaces/FXIconDict.i b/swig-interfaces/FXIconDict.i index bccf3c2..aa6426d 100644 --- a/swig-interfaces/FXIconDict.i +++ b/swig-interfaces/FXIconDict.i @@ -30,7 +30,7 @@ * by their file name. When first encountering a new file name, the icon is * located by searching the icon search path for the icon file. If found, the * services of the icon source object are used to load the icon from the file. -* A custom icon source may be installed to furnish support for additonal +* A custom icon source may be installed to furnish support for additonal * image file formats. * Once the icon is loaded, an association between the icon name and the icon * is entered into the icon dictionary. Subsequent searches for an icon with diff --git a/swig-interfaces/FXIconList.i b/swig-interfaces/FXIconList.i index 56cc823..4d3bac0 100644 --- a/swig-interfaces/FXIconList.i +++ b/swig-interfaces/FXIconList.i @@ -84,7 +84,7 @@ public: void setData(VALUE ptr){ self->setData((void*) ptr); } - + VALUE getData() const { return self->getData() ? (VALUE) self->getData() : Qnil; } @@ -94,7 +94,7 @@ public: FXbool isSelected() const; FXbool isEnabled() const; FXbool isDraggable() const; - + virtual ~FXIconItem(); }; @@ -265,10 +265,10 @@ public: /// Return number of items FXint getNumItems() const; - + /// Return number of rows FXint getNumRows() const; - + /// Return number of columns FXint getNumCols() const; @@ -283,34 +283,34 @@ public: /// Append header with given text and optional icon void appendHeader(const FXString& text,FXIcon *icon=NULL,FXint size=1); - + /// Remove header at index void removeHeader(FXint headerIndex); - + /// Change text of header at index void setHeaderText(FXint headerIndex,const FXString& text); - + /// Return text of header at index FXString getHeaderText(FXint headerIndex) const; - + /// Change icon of header at index void setHeaderIcon(FXint headerIndex,FXIcon *icon); - + /// Return icon of header at index FXIcon* getHeaderIcon(FXint headerIndex) const; - + /// Change size of header at index void setHeaderSize(FXint headerIndex,FXint size); - + /// Return width of header at index FXint getHeaderSize(FXint headerIndex) const; - + /// Return number of headers FXint getNumHeaders() const; - + /// Return the item at the given index FXIconItem *getItem(FXint index) const; - + %extend { /// Replace the item with a [possibly subclassed] item FXint setItem(FXint index,FXIconItem* item,FXbool notify=FALSE){ @@ -336,7 +336,7 @@ public: // Do the deed FXint result=self->setItem(index,text,big,mini,ITEMDATA,notify); - + // Now zero-out pointers held by still-alive Ruby objects FXRbUnregisterRubyObj(oldItem); @@ -344,7 +344,7 @@ public: return result; } } - + /// Fill list by appending items from array of strings FXint fillItems(const FXchar** strings,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -357,10 +357,10 @@ public: return self->insertItem(index,item,notify); } } - + /// Insert item at index with given text, icons, and user-data pointer FXint insertItem(FXint index,const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); - + %extend { /// Append a [possibly subclassed] item to the end of the list FXint appendItem(FXIconItem* item,FXbool notify=FALSE){ @@ -369,7 +369,7 @@ public: return self->appendItem(item,notify); } } - + /// Append new item with given text and optional icons, and user-data pointer FXint appendItem(const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -381,7 +381,7 @@ public: return self->prependItem(item,notify); } } - + /// Append new item with given text and optional icons, and user-data pointer FXint prependItem(const FXString& text,FXIcon *big=NULL,FXIcon* mini=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -403,7 +403,7 @@ public: // Now zero-out pointers held by still-alive Ruby objects FXRbUnregisterRubyObj(item); } - + /// Remove all items from list void clearItems(FXbool notify=FALSE){ // Save pointers to the soon-to-be-destroyed items @@ -418,14 +418,14 @@ public: for (FXint j = 0; j < items.no(); j++) FXRbUnregisterRubyObj(items[j]); } } - + /// Return item width FXint getItemWidth() const; /// Return item height FXint getItemHeight() const; - /** + /** * Search items by name, beginning from item start. If the start * item is -1 the search will start at the first item in the list. * Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the @@ -436,7 +436,7 @@ public: * Return -1 if no matching item is found. */ FXint findItem(const FXString& text,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const; - + /** * Search items by associated user data, beginning from item start. If the * start item is -1 the search will start at the first item in the list. @@ -458,61 +458,61 @@ public: } } } - + /// Change item text void setItemText(FXint index,const FXString& text); - + /// Return item text FXString getItemText(FXint index) const; - + /// Change item big icon void setItemBigIcon(FXint index,FXIcon* icon,FXbool owned=FALSE); - + /// Return big icon of item at index FXIcon* getItemBigIcon(FXint index) const; - + /// Change item mini icon void setItemMiniIcon(FXint index,FXIcon* icon,FXbool owned=FALSE); - + /// Return mini icon of item at index FXIcon* getItemMiniIcon(FXint index) const; - + %extend { /// Change item user-data pointer void setItemData(FXint index, VALUE ptr){ self->setItemData(index, (void*) ptr); } - + /// Return item user-data pointer VALUE getItemData(FXint index) const { return self->getItemData(index) ? (VALUE) self->getItemData(index) : Qnil; } } - + /// Return TRUE if item at index is selected FXbool isItemSelected(FXint index) const; - + /// Return TRUE if item at index is current FXbool isItemCurrent(FXint index) const; - + /// Return TRUE if item at index is visible FXbool isItemVisible(FXint index) const; - + /// Return TRUE if item at index is enabled FXbool isItemEnabled(FXint index) const; - + /// Return item hit code: 0 outside, 1 icon, 2 text FXint hitItem(FXint index,FXint x,FXint y,FXint ww=1,FXint hh=1) const; - + /// Repaint item at index void updateItem(FXint index) const; - + /// Return current item index, or -1 if none FXint getCurrentItem() const; /// Change anchor item index void setAnchorItem(FXint index); - + /// Return anchor item index, or -1 if none FXint getAnchorItem() const { return anchor; } @@ -521,10 +521,10 @@ public: /// Sort items void sortItems(); - + /// Change text font void setFont(FXFont* fnt); - + /// Return text font FXFont* getFont() const; @@ -533,22 +533,22 @@ public: /// Change normal text color void setTextColor(FXColor clr); - + /// Return selected text background FXColor getSelBackColor() const; /// Change selected text background void setSelBackColor(FXColor clr); - + /// Return selected text color FXColor getSelTextColor() const; /// Change selected text color void setSelTextColor(FXColor clr); - + /// Change maximum item space for each item void setItemSpace(FXint s); - + /// Return maximum item space FXint getItemSpace() const; diff --git a/swig-interfaces/FXImage.i b/swig-interfaces/FXImage.i index 8588457..7bec3bd 100644 --- a/swig-interfaces/FXImage.i +++ b/swig-interfaces/FXImage.i @@ -79,7 +79,7 @@ public: } } } - + /// To get to the option flags FXuint getOptions() const; @@ -107,7 +107,7 @@ public: /// Change pixel at x,y void setPixel(FXint x,FXint y,FXColor color); - + /// Scan the image and return FALSE if fully opaque bool hasAlpha() const; diff --git a/swig-interfaces/FXImageView.i b/swig-interfaces/FXImageView.i index cdd2a2d..e623bdb 100644 --- a/swig-interfaces/FXImageView.i +++ b/swig-interfaces/FXImageView.i @@ -65,7 +65,7 @@ public: /// Change image void setImage(FXImage* img); - + /// Return image FXImage* getImage() const; diff --git a/swig-interfaces/FXInputDialog.i b/swig-interfaces/FXInputDialog.i index fb3a579..872d700 100644 --- a/swig-interfaces/FXInputDialog.i +++ b/swig-interfaces/FXInputDialog.i @@ -54,7 +54,7 @@ public: FXInputDialog(FXWindow* owner,const FXString& caption,const FXString& label,FXIcon* icon=NULL,FXuint opts=INPUTDIALOG_STRING,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbInputDialog(owner,caption,label,icon,opts,x,y,w,h); } - + /// Construct free floating input dialog box with given caption, icon, and prompt text FXInputDialog(FXApp* app,const FXString& caption,const FXString& label,FXIcon* icon=NULL,FXuint opts=INPUTDIALOG_STRING,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbInputDialog(app,caption,label,icon,opts,x,y,w,h); @@ -69,7 +69,7 @@ public: /// Change number of visible columns of text void setNumColumns(FXint num); - + /// Return number of visible columns of text FXint getNumColumns() const; @@ -102,7 +102,7 @@ public: return Qnil; } } - + /** * Prompt for a string, in free floating window. */ diff --git a/swig-interfaces/FXJPGIcon.i b/swig-interfaces/FXJPGIcon.i index eed8d45..39844d2 100644 --- a/swig-interfaces/FXJPGIcon.i +++ b/swig-interfaces/FXJPGIcon.i @@ -27,7 +27,7 @@ class FXJPGIcon : public FXIcon { protected: FXint quality; protected: - FXJPGIcon(){} + FXJPGIcon(){} public: %extend { static VALUE fileExt() { @@ -42,7 +42,7 @@ public: static bool isSupported() { return FXJPGIcon::supported; } } public: - %extend { + %extend { /// Construct an icon from memory stream formatted in JPG format FXJPGIcon(FXApp *a,const void *pix=NULL,FXColor clr=0,FXuint opts=0,FXint w=1,FXint h=1,FXint q=75){ return new FXRbJPGIcon(a,pix,clr,opts,w,h,q); @@ -54,7 +54,7 @@ public: /// Get image quality setting FXint getQuality() const; - + /// Destroy virtual ~FXJPGIcon(); }; diff --git a/swig-interfaces/FXJPGImage.i b/swig-interfaces/FXJPGImage.i index 425d91a..d577b56 100644 --- a/swig-interfaces/FXJPGImage.i +++ b/swig-interfaces/FXJPGImage.i @@ -27,7 +27,7 @@ class FXJPGImage : public FXImage { protected: FXint quality; protected: - FXJPGImage(){} + FXJPGImage(){} public: %extend { static VALUE fileExt() { @@ -54,7 +54,7 @@ public: /// Get image quality setting FXint getQuality() const; - + /// Destroy virtual ~FXJPGImage(); }; diff --git a/swig-interfaces/FXKnob.i b/swig-interfaces/FXKnob.i index 876d050..fd56a1f 100644 --- a/swig-interfaces/FXKnob.i +++ b/swig-interfaces/FXKnob.i @@ -117,7 +117,7 @@ public: FXRbRange2LoHi(range,lo,hi); self->setRange(lo,hi,notify); } - + /// Get the knob's current range VALUE getRange() const { FXint lo,hi; @@ -126,7 +126,7 @@ public: } } - /** + /** * Change the knob's movement limits (start and ending angles) * accept values in degrees from 0 (south) to 360. */ diff --git a/swig-interfaces/FXLabel.i b/swig-interfaces/FXLabel.i index dbc882a..407bf48 100644 --- a/swig-interfaces/FXLabel.i +++ b/swig-interfaces/FXLabel.i @@ -47,12 +47,12 @@ class FXFont; /** * A label widget can be used to place a text and/or icon for -* explanation purposes. The text label may have an optional tooltip +* explanation purposes. The text label may have an optional tooltip * and/or help string. */ class FXLabel : public FXFrame { protected: - FXString label; + FXString label; FXIcon* icon; FXFont* font; FXHotKey hotkey; diff --git a/swig-interfaces/FXList.i b/swig-interfaces/FXList.i index f4834f3..a4832ef 100644 --- a/swig-interfaces/FXList.i +++ b/swig-interfaces/FXList.i @@ -41,8 +41,8 @@ class FXList; class FXListItem : public FXObject { protected: FXString label; - FXIcon *icon; - void *data; + FXIcon *icon; + void *data; FXuint state; FXint x,y; protected: @@ -71,7 +71,7 @@ public: void setData(VALUE ptr){ self->setData((void*) ptr); } - + VALUE getData() const { return self->getData() ? (VALUE) self->getData() : Qnil; } @@ -202,10 +202,10 @@ public: /// Change the number of visible items void setNumVisible(FXint nvis); - + /// Return the item at the given index FXListItem *getItem(FXint index) const; - + %extend { /// Replace the item with a [possibly subclassed] item FXint setItem(FXint index,FXListItem* item,FXbool notify=FALSE){ @@ -231,7 +231,7 @@ public: // Do the deed FXint result=self->setItem(index,text,icon,ITEMDATA,notify); - + // Now zero-out pointers held by still-alive Ruby objects FXRbUnregisterRubyObj(oldItem); @@ -263,7 +263,7 @@ public: return self->appendItem(item,notify); } } - + /// Append new item with given text and optional icon, and user-data pointer FXint appendItem(const FXString& text,FXIcon *icon=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -275,7 +275,7 @@ public: return self->prependItem(item,notify); } } - + /// Prepend new item with given text and optional icon, and user-data pointer FXint prependItem(const FXString& text,FXIcon *icon=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE); @@ -297,7 +297,7 @@ public: // Now zero-out pointers held by still-alive Ruby objects FXRbUnregisterRubyObj(item); } - + /// Remove all items from list void clearItems(FXbool notify=FALSE){ // Save pointers to the soon-to-be-destroyed items @@ -311,7 +311,7 @@ public: for(FXint j=0; j<items.no(); j++) FXRbUnregisterRubyObj(items[j]); } } - + /// Return item width FXint getItemWidth(FXint index) const; @@ -320,8 +320,8 @@ public: /// Return item hit code: 0 no hit; 1 hit the icon; 2 hit the text FXint hitItem(FXint index,FXint x,FXint y) const; - - /** + + /** * Search items by name, beginning from item start. If the start * item is -1 the search will start at the first item in the list. * Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the @@ -332,7 +332,7 @@ public: * Return -1 if no matching item is found. */ FXint findItem(const FXString& text,FXint start=-1,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const; - + /** * Search items by associated user data, beginning from item start. If the * start item is -1 the search will start at the first item in the list. @@ -357,49 +357,49 @@ public: /// Change item text void setItemText(FXint index,const FXString& text); - + /// Return item text FXString getItemText(FXint index) const; - + /// Change item icon void setItemIcon(FXint index,FXIcon* icon,FXbool owned=FALSE); - + /// Return item icon, if any FXIcon* getItemIcon(FXint index) const; - + %extend { /// Change item user-data pointer void setItemData(FXint index, VALUE ptr){ self->setItemData(index, (void*) ptr); } - + /// Return item user-data pointer VALUE getItemData(FXint index) const { return self->getItemData(index) ? (VALUE) self->getItemData(index) : Qnil; } - } - + } + /// Return TRUE if item is selected FXbool isItemSelected(FXint index) const; - + /// Return TRUE if item is current FXbool isItemCurrent(FXint index) const; - + /// Return TRUE if item is visible FXbool isItemVisible(FXint index) const; - + /// Return TRUE if item is enabled FXbool isItemEnabled(FXint index) const; - + /// Repaint item void updateItem(FXint index) const; - + /// Return current item, if any FXint getCurrentItem() const; /// Change anchor item void setAnchorItem(FXint index); - + /// Return anchor item, if any FXint getAnchorItem() const; @@ -408,10 +408,10 @@ public: /// Sort items using current sort function void sortItems(); - + /// Change text font void setFont(FXFont* fnt); - + /// Return text font FXFont* getFont() const; @@ -420,35 +420,35 @@ public: /// Change normal text color void setTextColor(FXColor clr); - + /// Return selected text background FXColor getSelBackColor() const; /// Change selected text background void setSelBackColor(FXColor clr); - + /// Return selected text color FXColor getSelTextColor() const; /// Change selected text color void setSelTextColor(FXColor clr); - + /// Return list style FXuint getListStyle() const; - + /// Change list style void setListStyle(FXuint style); - + /// Set the status line help text for this list void setHelpText(const FXString& text); - + /// Get the status line help text for this list const FXString& getHelpText() const; /// Destructor virtual ~FXList(); }; - + %clear FXint index; %clear FXint newindex; %clear FXint oldindex; diff --git a/swig-interfaces/FXListBox.i b/swig-interfaces/FXListBox.i index a8bb35b..9cb673c 100644 --- a/swig-interfaces/FXListBox.i +++ b/swig-interfaces/FXListBox.i @@ -143,10 +143,10 @@ public: /// Change item icon void setItemIcon(FXint index,FXIcon* icon,FXbool owned=FALSE); - + /// Return icon of item at index FXIcon* getItemIcon(FXint index) const; - + %extend { /// Set data pointer for specified item void setItemData(FXint index,VALUE ptr) { @@ -176,19 +176,19 @@ public: /// Change text color void setTextColor(FXColor clr); - + /// Return text color FXColor getTextColor() const; /// Change selected background color void setSelBackColor(FXColor clr); - + /// Return selected background color FXColor getSelBackColor() const; /// Change selected text color void setSelTextColor(FXColor clr); - + /// Return selected text color FXColor getSelTextColor() const; diff --git a/swig-interfaces/FXMDIButton.i b/swig-interfaces/FXMDIButton.i index 589fdb4..c1cefb1 100644 --- a/swig-interfaces/FXMDIButton.i +++ b/swig-interfaces/FXMDIButton.i @@ -36,7 +36,7 @@ public: return new FXRbMDIDeleteButton(p,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXMDIDeleteButton(); }; @@ -61,7 +61,7 @@ public: return new FXRbMDIRestoreButton(p,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXMDIRestoreButton(); }; @@ -86,7 +86,7 @@ public: return new FXRbMDIMaximizeButton(p,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXMDIMaximizeButton(); }; @@ -111,7 +111,7 @@ public: return new FXRbMDIMinimizeButton(p,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXMDIMinimizeButton(); }; @@ -136,7 +136,7 @@ public: return new FXRbMDIWindowButton(p,pup,tgt,sel,opts,x,y,w,h); } } - + /// Destructor virtual ~FXMDIWindowButton(); }; diff --git a/swig-interfaces/FXMDIChild.i b/swig-interfaces/FXMDIChild.i index f1cda32..876014b 100644 --- a/swig-interfaces/FXMDIChild.i +++ b/swig-interfaces/FXMDIChild.i @@ -155,7 +155,7 @@ public: void setNormalY(FXint y); void setNormalWidth(FXint w); void setNormalHeight(FXint h); - + /// Return normal (restored) position FXint getNormalX() const; FXint getNormalY() const; @@ -167,19 +167,19 @@ public: void setIconY(FXint y); void setIconWidth(FXint w); void setIconHeight(FXint h); - + /// Return iconified position FXint getIconX() const; FXint getIconY() const; FXint getIconWidth() const; FXint getIconHeight() const; - + /// Return content window FXWindow *contentWindow() const; - + /// Change MDI Child's title void setTitle(const FXString& name); - + /// Get current title FXString getTitle() const; @@ -198,25 +198,25 @@ public: void setBorderColor(FXColor clr); void setTitleColor(FXColor clr); void setTitleBackColor(FXColor clr); - + /// Return TRUE if maximized FXbool isMaximized() const; /// Return TRUE if minimized FXbool isMinimized() const; - + /// Get window icon FXIcon *getIcon() const; - + /// Set window icon void setIcon(FXIcon* icon); - + /// Get window menu FXPopup* getMenu() const; - + /// Set window menu void setMenu(FXPopup* menu); - + /// Set tracking instead of just outline void setTracking(FXbool tracking=TRUE); @@ -225,7 +225,7 @@ public: /// Set title font void setFont(FXFont *fnt); - + /// Get title font FXFont* getFont() const; diff --git a/swig-interfaces/FXMDIClient.i b/swig-interfaces/FXMDIClient.i index 0448fca..0c6d030 100644 --- a/swig-interfaces/FXMDIClient.i +++ b/swig-interfaces/FXMDIClient.i @@ -21,7 +21,7 @@ ***********************************************************************/ class FXMDIChild; - + /** * The MDI client window manages a number of MDI child windows in a multiple-document @@ -74,7 +74,7 @@ public: public: enum { ID_MDI_ANY=65400, - ID_MDI_1, // Select MDI child 1 + ID_MDI_1, // Select MDI child 1 ID_MDI_2, ID_MDI_3, ID_MDI_4, diff --git a/swig-interfaces/FXMat4d.i b/swig-interfaces/FXMat4d.i index 11819e8..e4859e3 100644 --- a/swig-interfaces/FXMat4d.i +++ b/swig-interfaces/FXMat4d.i @@ -57,10 +57,10 @@ public: if(x==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } - + /// Multiply matrix and vector FXVec4d operator*(const FXVec4d& other) const { return (*self)*other; } - + /// Mutiply matrix and vector, for non-projective matrix FXVec3d operator*(const FXVec3d& v) const { return (*self)*v; } } diff --git a/swig-interfaces/FXMat4f.i b/swig-interfaces/FXMat4f.i index f1a4e9f..d3f3e39 100644 --- a/swig-interfaces/FXMat4f.i +++ b/swig-interfaces/FXMat4f.i @@ -65,22 +65,22 @@ public: // Multiply by a matrix FXMat4f operator*(const FXMat4f& other) const { return (*self)*other; } - + // Multiply by a scalar FXMat4f operator*(FXfloat x) const { return (*self)*x; } - + // Multiply by a homogenous vector FXVec4f operator*(const FXVec4f& other) const { return (*self)*other; } - + // Multiply by a non-homogeneous vector, for non-projective matrix FXVec3f operator*(const FXVec3f& other) const { return (*self)*other; } - + // Divide by a scalar FXMat4f operator/(FXfloat x) const { if(x==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } - + // Negation FXMat4f operator-() const { return -(*self); } diff --git a/swig-interfaces/FXMatrix.i b/swig-interfaces/FXMatrix.i index 01247d9..7edc4e6 100644 --- a/swig-interfaces/FXMatrix.i +++ b/swig-interfaces/FXMatrix.i @@ -33,12 +33,12 @@ enum { * the matrix will have the given number of rows and the number of columns * grows as more child windows are added; if the matrix style is MATRIX_BY_COLUMNS, * then the number of columns is fixed and the number of rows grows as more children -* are added. +* are added. * If all children in a row (column) have the LAYOUT_FILL_ROW (LAYOUT_FILL_COLUMN) * hint set, then the row (column) will be stretchable as the matrix layout manager * itself is resized. If more than one row (column) is stretchable, the space is * apportioned to each stretchable row (column) proportionally. -* Within each cell of the matrix, all other layout hints are observed. +* Within each cell of the matrix, all other layout hints are observed. * For example, a child having LAYOUT_CENTER_Y and LAYOUT_FILL_X hints will * be centered in the Y-direction, while being stretched in the X-direction. * Empty cells can be obtained by simply placing a borderless FXFrame widget @@ -64,31 +64,31 @@ public: /// Obtain the child placed at a certain row and column FXWindow* childAtRowCol(FXint r,FXint c) const; - + /// Return the row in which the given child is placed FXint rowOfChild(const FXWindow* child) const; - + /// Return the column in which the given child is placed FXint colOfChild(const FXWindow* child) const; - + /// Change the matrix style void setMatrixStyle(FXuint ph); - + /// Return the current matrix style FXuint getMatrixStyle() const; - + /// Change the number of rows void setNumRows(FXint nr); - + /// Return the number of rows FXint getNumRows() const; - - /// Change the number of columns + + /// Change the number of columns void setNumColumns(FXint nc); - + /// Return the number of columns FXint getNumColumns() const; - + /// Destructor virtual ~FXMatrix(); }; diff --git a/swig-interfaces/FXMemoryBuffer.i b/swig-interfaces/FXMemoryBuffer.i index 28ba167..3382e4d 100644 --- a/swig-interfaces/FXMemoryBuffer.i +++ b/swig-interfaces/FXMemoryBuffer.i @@ -28,10 +28,10 @@ class FXMemoryBuffer { public: // Create an memory buffer object FXMemoryBuffer(FXColor *data,FXuint size); - + // Returns the size (in bytes) FXuint getSize() const; - + %extend { // Returns the data as an array of Bignums VALUE getData() const { @@ -52,13 +52,13 @@ public: FXColor __getitem__(FXuint i) const { return self->getData()[i]; } - + FXColor __setitem__(FXuint i,FXColor value){ self->getData()[i] = value; return value; } } - + // Destructor ~FXMemoryBuffer(); }; diff --git a/swig-interfaces/FXMenuBar.i b/swig-interfaces/FXMenuBar.i index 974b305..a345e6a 100644 --- a/swig-interfaces/FXMenuBar.i +++ b/swig-interfaces/FXMenuBar.i @@ -20,7 +20,7 @@ * at "lyle@lylejohnson.name". ***********************************************************************/ -/// Menu bar +/// Menu bar class FXMenuBar : public FXToolBar { protected: FXMenuBar(){} @@ -37,7 +37,7 @@ public: %extend { /** - * Construct a floatable menubar + * Construct a floatable menubar * Normally, the menubar is docked under window p. * When floated, the menubar can be docked under window q, which is * typically an FXToolBarShell window. @@ -54,7 +54,7 @@ public: return new FXRbMenuBar(p,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } } - + // Destructor virtual ~FXMenuBar(); }; diff --git a/swig-interfaces/FXMenuButton.i b/swig-interfaces/FXMenuButton.i index 82cf0fb..fe5fc5b 100644 --- a/swig-interfaces/FXMenuButton.i +++ b/swig-interfaces/FXMenuButton.i @@ -49,10 +49,10 @@ enum { * menu button; this is controlled by the flags MENUBUTTON_DOWN, etc. * Next, there are several attachment modes; the popup's left/bottom edge may * attach to the menu button's left/top edge, or the popup's right/top edge may -* attach to the menu button's right/bottom edge, or both. +* attach to the menu button's right/bottom edge, or both. * Also, the popup may apear centered relative to the menu button. * Finally, a small offset may be specified to displace the location of the -* popup by a few pixels so as to account for borders and so on. +* popup by a few pixels so as to account for borders and so on. * Normally, the menu button shows an arrow pointing to the direction where * the popup is set to appear; this can be turned off by passing the option * MENUBUTTON_NOARROWS. @@ -110,19 +110,19 @@ public: /// Change menu button style void setButtonStyle(FXuint style); - + /// Get menu button style FXuint getButtonStyle() const; - + /// Change popup style void setPopupStyle(FXuint style); - + /// Get popup style FXuint getPopupStyle() const; - + /// Change attachment void setAttachment(FXuint att); - + /// Get attachment FXuint getAttachment() const; diff --git a/swig-interfaces/FXMenuCaption.i b/swig-interfaces/FXMenuCaption.i index 15ae8be..1aa0bf6 100644 --- a/swig-interfaces/FXMenuCaption.i +++ b/swig-interfaces/FXMenuCaption.i @@ -103,16 +103,16 @@ public: /// Return the current text color void setTextColor(FXColor clr); - + /// Return the selection background color FXColor getSelBackColor() const; - + /// Set the selection background color void setSelBackColor(FXColor clr); - + /// Return the selection text color FXColor getSelTextColor() const; - + /// Set the selection text color void setSelTextColor(FXColor clr); diff --git a/swig-interfaces/FXMenuCommand.i b/swig-interfaces/FXMenuCommand.i index 8baea88..6df8025 100644 --- a/swig-interfaces/FXMenuCommand.i +++ b/swig-interfaces/FXMenuCommand.i @@ -53,7 +53,7 @@ public: /// Set accelerator text void setAccelText(const FXString& text); - + /// Return accelarator text FXString getAccelText() const; diff --git a/swig-interfaces/FXMenuPane.i b/swig-interfaces/FXMenuPane.i index 7849f28..a0ed4e9 100644 --- a/swig-interfaces/FXMenuPane.i +++ b/swig-interfaces/FXMenuPane.i @@ -32,7 +32,7 @@ public: return new FXRbMenuPane(owner,opts); } } - + // Destructor virtual ~FXMenuPane(); }; diff --git a/swig-interfaces/FXMenuRadio.i b/swig-interfaces/FXMenuRadio.i index fb431f8..664c4f0 100644 --- a/swig-interfaces/FXMenuRadio.i +++ b/swig-interfaces/FXMenuRadio.i @@ -81,7 +81,7 @@ public: /// Set the radio background color void setRadioColor(FXColor clr); - + /// Destructor virtual ~FXMenuRadio(); }; diff --git a/swig-interfaces/FXMenuSeparator.i b/swig-interfaces/FXMenuSeparator.i index c2971da..2e5b9bd 100644 --- a/swig-interfaces/FXMenuSeparator.i +++ b/swig-interfaces/FXMenuSeparator.i @@ -52,7 +52,7 @@ public: /// Get shadow color FXColor getShadowColor() const; - + // Destructor virtual ~FXMenuSeparator(); }; diff --git a/swig-interfaces/FXMessageBox.i b/swig-interfaces/FXMessageBox.i index ce5b2fa..7bdf5aa 100644 --- a/swig-interfaces/FXMessageBox.i +++ b/swig-interfaces/FXMessageBox.i @@ -83,7 +83,7 @@ public: FXMessageBox(FXWindow* owner,const FXString& caption,const FXString& text,FXIcon* ic=NULL,FXuint opts=0,FXint x=0,FXint y=0){ return new FXRbMessageBox(owner,caption,text,ic,opts,x,y); } - + /// Construct free floating message box with given caption, icon, and message text FXMessageBox(FXApp* app,const FXString& caption,const FXString& text,FXIcon* ic=NULL,FXuint opts=0,FXint x=0,FXint y=0){ return new FXRbMessageBox(app,caption,text,ic,opts,x,y); diff --git a/swig-interfaces/FXOptionMenu.i b/swig-interfaces/FXOptionMenu.i index a36f3af..7e59b42 100644 --- a/swig-interfaces/FXOptionMenu.i +++ b/swig-interfaces/FXOptionMenu.i @@ -106,25 +106,25 @@ public: /// Set the current option void setCurrent(FXOption *win,FXbool notify=FALSE); - + /// Return the current option FXOption* getCurrent() const; /// Set the current option number void setCurrentNo(FXint no,FXbool notify=FALSE); - + /// Get the current option number FXint getCurrentNo() const; - + /// Get number of options FXint getNumOptions() const; - + /// Set the pane which will be popped up void setMenu(FXPopup *pup); - + /// Return the pane which is popped up FXPopup* getMenu() const; - + /// Return TRUE if popped up FXbool isPopped() const; diff --git a/swig-interfaces/FXPNGIcon.i b/swig-interfaces/FXPNGIcon.i index 7e0e95a..605d4e7 100644 --- a/swig-interfaces/FXPNGIcon.i +++ b/swig-interfaces/FXPNGIcon.i @@ -56,8 +56,8 @@ DECLARE_FXOBJECT_VIRTUALS(FXPNGIcon) DECLARE_FXID_VIRTUALS(FXPNGIcon) DECLARE_FXDRAWABLE_VIRTUALS(FXPNGIcon) DECLARE_FXIMAGE_VIRTUALS(FXPNGIcon) - - + + %inline %{ /** * Load an PNG (Portable Network Graphics) file from a stream. diff --git a/swig-interfaces/FXPPMIcon.i b/swig-interfaces/FXPPMIcon.i index 45db253..e73dc87 100644 --- a/swig-interfaces/FXPPMIcon.i +++ b/swig-interfaces/FXPPMIcon.i @@ -52,8 +52,8 @@ DECLARE_FXOBJECT_VIRTUALS(FXPPMIcon) DECLARE_FXID_VIRTUALS(FXPPMIcon) DECLARE_FXDRAWABLE_VIRTUALS(FXPPMIcon) DECLARE_FXIMAGE_VIRTUALS(FXPPMIcon) - - + + %inline %{ /** * Load an PPM (Portable Pixmap Format) file from a stream. diff --git a/swig-interfaces/FXPacker.i b/swig-interfaces/FXPacker.i index d0c382b..1697f53 100644 --- a/swig-interfaces/FXPacker.i +++ b/swig-interfaces/FXPacker.i @@ -133,22 +133,22 @@ public: /// Change base gui color void setBaseColor(FXColor clr); - + /// Get base gui color FXColor getBaseColor() const; - + /// Change horizontal inter-child spacing void setHSpacing(FXint hs); - + /// Return current horizontal inter-child spacing FXint getHSpacing() const; - + /// Change vertical inter-child spacing void setVSpacing(FXint vs); - + /// Return current vertical inter-child spacing FXint getVSpacing() const; - + /// Destructor virtual ~FXPacker(); }; diff --git a/swig-interfaces/FXPopup.i b/swig-interfaces/FXPopup.i index 4f06109..16ae9c5 100644 --- a/swig-interfaces/FXPopup.i +++ b/swig-interfaces/FXPopup.i @@ -73,7 +73,7 @@ public: ID_LAST=ID_CHOICE+1000 }; public: - + /// Construct popup pane %extend { FXPopup(FXWindow* owner,FXuint opts=POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ @@ -83,55 +83,55 @@ public: /// Return a pointer to the prior active popup FXPopup* getPrevActive() const; - + /// Return a pointer to the next active popup FXPopup* getNextActive() const; /// Change frame style void setFrameStyle(FXuint style); - + /// Return frame style FXuint getFrameStyle() const; - + /// Return border width FXint getBorderWidth() const; /// Change highlight color void setHiliteColor(FXColor clr); - + /// Return highlight color FXColor getHiliteColor() const; /// Change shadow color void setShadowColor(FXColor clr); - + /// Return shadow color FXColor getShadowColor() const; /// Change border color void setBorderColor(FXColor clr); - + /// Return border color FXColor getBorderColor() const; - + /// Change base color void setBaseColor(FXColor clr); - + /// Return base color FXColor getBaseColor() const; - + /// Return current grab owner FXWindow* getGrabOwner() const; - + /// Return popup orientation FXuint getOrientation() const; - + /// Change popup orientation void setOrientation(FXuint orient); /// Return shrinkwrap mode FXbool getShrinkWrap() const; - + /// Change shrinkwrap mode void setShrinkWrap(FXbool sw); diff --git a/swig-interfaces/FXProgressBar.i b/swig-interfaces/FXProgressBar.i index 9d422f2..6fe11cf 100644 --- a/swig-interfaces/FXProgressBar.i +++ b/swig-interfaces/FXProgressBar.i @@ -60,52 +60,52 @@ public: /// Change the amount of progress void setProgress(FXuint value); - + /// Get current progress FXuint getProgress() const; /// Set total amount of progress void setTotal(FXuint value); - + /// Return total amount of progrss FXuint getTotal() const; /// Increment progress by given amount void increment(FXuint value); - + /// Hide progress percentage void hideNumber(); - + /// Show progress percentage void showNumber(); - + /// Change progress bar width void setBarSize(FXint size); - + /// Return progress bar width FXint getBarSize() const; /// Change backgroundcolor void setBarBGColor(FXColor clr); - + /// Return background color FXColor getBarBGColor() const; /// Change bar color void setBarColor(FXColor clr); - + /// Return bar color FXColor getBarColor() const; /// Change text color void setTextColor(FXColor clr); - + /// Return text color FXColor getTextColor() const; /// Change alternate text color shown when bar under text void setTextAltColor(FXColor clr); - + /// Return alternate text color FXColor getTextAltColor() const; @@ -117,10 +117,10 @@ public: /// Change progress bar style void setBarStyle(FXuint style); - + /// Return current progress bar style FXuint getBarStyle() const; - + /// Destructor virtual ~FXProgressBar(); }; diff --git a/swig-interfaces/FXProgressDialog.i b/swig-interfaces/FXProgressDialog.i index c4880da..6a5d691 100644 --- a/swig-interfaces/FXProgressDialog.i +++ b/swig-interfaces/FXProgressDialog.i @@ -26,7 +26,7 @@ enum { PROGRESSDIALOG_NORMAL = (DECOR_TITLE|DECOR_BORDER) }; - + /** * A Progress Dialog is a simple dialog which is used to @@ -63,10 +63,10 @@ public: /// Get progress message FXString getMessage() const; - + /// Change style of the progress bar widget void setBarStyle(FXuint style); - + /// Get style of the progress bar widget FXuint getBarStyle() const; @@ -90,8 +90,8 @@ public: /// Change cancelled flag void setCancelled(FXbool flg); - - /// Destroy + + /// Destroy virtual ~FXProgressDialog(); }; diff --git a/swig-interfaces/FXQuatd.i b/swig-interfaces/FXQuatd.i index 3a0a290..69b1450 100644 --- a/swig-interfaces/FXQuatd.i +++ b/swig-interfaces/FXQuatd.i @@ -70,22 +70,22 @@ public: /// Exponentiate quaternion FXQuatd exp() const; - + /// Take logarithm of quaternion FXQuatd log() const; - + /// Invert quaternion FXQuatd invert() const; - + /// Invert unit quaternion FXQuatd unitinvert() const; - + /// Conjugate quaternion FXQuatd conj() const; - + /// Construct quaternion from arc a->b on unit sphere FXQuatd& arc(const FXVec3d& a,const FXVec3d& b); - + /// Spherical lerp FXQuatd& lerp(const FXQuatd& u,const FXQuatd& v,FXdouble f); @@ -99,7 +99,7 @@ public: /// Multiply quaternions FXQuatd operator*(const FXQuatd& other) const { return (*self)*other; } - + // Rotation of a vector by a quaternion FXVec3d operator*(const FXVec3d& vec) const { return (*self)*vec; } } diff --git a/swig-interfaces/FXQuatf.i b/swig-interfaces/FXQuatf.i index 01e946c..9b29ed2 100644 --- a/swig-interfaces/FXQuatf.i +++ b/swig-interfaces/FXQuatf.i @@ -97,7 +97,7 @@ public: /// Spherical lerp FXQuatf& lerp(const FXQuatf& u,const FXQuatf& v,FXfloat f); - + %extend { /// Obtain yaw, pitch, and roll from quaternion VALUE getRollPitchYaw() const { diff --git a/swig-interfaces/FXRadioButton.i b/swig-interfaces/FXRadioButton.i index e9f6923..cf81549 100644 --- a/swig-interfaces/FXRadioButton.i +++ b/swig-interfaces/FXRadioButton.i @@ -67,7 +67,7 @@ public: long onCmdSetIntValue(FXObject*,FXSelector,void* PTR_PINT); long onCmdGetIntValue(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME public: - + /// Construct new radio button %extend { FXRadioButton(FXComposite* p,const FXString& text,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=RADIOBUTTON_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD){ @@ -89,16 +89,16 @@ public: /// Change radio button style void setRadioButtonStyle(FXuint style); - + /// Return current radio button style FXuint getRadioButtonStyle() const; - + /// Get the radio ball color FXColor getRadioColor() const; /// Set the radio ball color void setRadioColor(FXColor clr); - + /// Get the radio disk color FXColor getDiskColor() const; diff --git a/swig-interfaces/FXRanged.i b/swig-interfaces/FXRanged.i index c281911..5bdd1a0 100644 --- a/swig-interfaces/FXRanged.i +++ b/swig-interfaces/FXRanged.i @@ -42,7 +42,7 @@ public: // Default constructor FXRanged(); - + // Copy constructor FXRanged(const FXRanged& bounds); @@ -113,12 +113,12 @@ public: /// Test if box properly contains sphere bool contains(const FXSphered& sphere) const; - // Include point + // Include point FXRanged& include(FXdouble x,FXdouble y,FXdouble z); - // Include point + // Include point FXRanged& include(const FXVec3d& v); - + // Include given range into box FXRanged& include(const FXRanged& box); diff --git a/swig-interfaces/FXRangef.i b/swig-interfaces/FXRangef.i index 8be1218..cfdc9c9 100644 --- a/swig-interfaces/FXRangef.i +++ b/swig-interfaces/FXRangef.i @@ -44,7 +44,7 @@ public: // Default constructor FXRangef(); - + // Copy constructor FXRangef(const FXRangef& bounds); @@ -65,7 +65,7 @@ public: } return (*self)[i]; } - + void __setitem__(FXint i,FXVec3f& slice){ if(i<0||1<i){ rb_raise(rb_eIndexError,"index %d out of bounds",i); @@ -124,12 +124,12 @@ public: /// Test if box properly contains sphere bool contains(const FXSpheref& sphere) const; - // Include point + // Include point FXRangef& include(FXfloat x,FXfloat y,FXfloat z); - // Include point + // Include point FXRangef& include(const FXVec3f& v); - + // Include given range into box FXRangef& include(const FXRangef& box); diff --git a/swig-interfaces/FXRealSlider.i b/swig-interfaces/FXRealSlider.i index 14ef91b..bc42562 100644 --- a/swig-interfaces/FXRealSlider.i +++ b/swig-interfaces/FXRealSlider.i @@ -80,7 +80,7 @@ public: ID_LAST }; public: - + /// Construct a slider widget %extend { FXRealSlider(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=REALSLIDER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0){ @@ -90,7 +90,7 @@ public: /// Change slider value void setValue(FXdouble value,FXbool notify=FALSE); - + /// Return slider value FXdouble getValue() const; @@ -108,22 +108,22 @@ public: /// Change the slider style FXuint getSliderStyle() const; - + /// Get the current slider style void setSliderStyle(FXuint style); - + /// Get the slider's head size FXint getHeadSize() const; /// Change the slider's head size void setHeadSize(FXint hs); - + /// Get the slider's current slot size FXint getSlotSize() const; /// Change the slider's slot size void setSlotSize(FXint bs); - + /// Get the slider's auto-increment/decrement value FXdouble getIncrement() const; @@ -135,22 +135,22 @@ public: /// Get delta between ticks FXdouble getTickDelta() const; - + /// Change the color of the slot the slider head moves in void setSlotColor(FXColor clr); - + /// Get the current slot color FXColor getSlotColor() const; /// Set the help text to be displayed on the status line void setHelpText(const FXString& text); - + /// Get the current help text const FXString& getHelpText() const; /// Set the tip text to be displayed in the tooltip void setTipText(const FXString& text); - + /// Get the current tooltip text value const FXString& getTipText() const; diff --git a/swig-interfaces/FXRealSpinner.i b/swig-interfaces/FXRealSpinner.i index 12b1944..c1c5d23 100644 --- a/swig-interfaces/FXRealSpinner.i +++ b/swig-interfaces/FXRealSpinner.i @@ -77,28 +77,28 @@ public: /// Increment spinner void increment(FXbool notify=FALSE); - + /// Increment spinner by certain amount void incrementByAmount(FXdouble amount,FXbool notify=FALSE); - + /// Decrement spinner void decrement(FXbool notify=FALSE); - + /// Decrement spinner by certain amount void decrementByAmount(FXdouble amount,FXbool notify=FALSE); - + /// Return TRUE if in cyclic mode FXbool isCyclic() const; - + /// Set to cyclic mode, i.e. wrap around at maximum/minimum void setCyclic(FXbool cyclic); - + /// Return TRUE if text is visible FXbool isTextVisible() const; - + /// Set text visible flag void setTextVisible(FXbool shown); - + /// Return current value FXdouble getValue() const; @@ -109,7 +109,7 @@ public: FXRbRange2LoHi(range,lo,hi); self->setRange(lo,hi); } - + /// Get the spinner's current range VALUE getRange() const { FXdouble lo,hi; @@ -120,7 +120,7 @@ public: /// Change spinner increment void setIncrement(FXdouble increment); - + /// Return spinner increment FXdouble getIncrement() const; @@ -150,28 +150,28 @@ public: /// Change spinner style void setSpinnerStyle(FXuint style); - + /// Return current spinner style FXuint getSpinnerStyle() const; /// Allow editing of the text field void setEditable(FXbool edit=TRUE); - + /// Return TRUE if text field is editable FXbool isEditable() const; - + /// Change color of the up arrow void setUpArrowColor(FXColor clr); - + /// Return color of the up arrow FXColor getUpArrowColor() const; - + /// Change color of the down arrow void setDownArrowColor(FXColor clr); - + /// Return color of the the down arrow FXColor getDownArrowColor() const; - + /// Change text color void setTextColor(FXColor clr); diff --git a/swig-interfaces/FXRecentFiles.i b/swig-interfaces/FXRecentFiles.i index 16ea2fa..ac5a272 100644 --- a/swig-interfaces/FXRecentFiles.i +++ b/swig-interfaces/FXRecentFiles.i @@ -24,7 +24,7 @@ /** * The Recent files manages a most recently used (MRU) file list by -* means of the standard system registry. +* means of the standard system registry. */ class FXRecentFiles : public FXObject { protected: diff --git a/swig-interfaces/FXRegion.i b/swig-interfaces/FXRegion.i index 6f5ee3d..08c4d1f 100644 --- a/swig-interfaces/FXRegion.i +++ b/swig-interfaces/FXRegion.i @@ -38,16 +38,16 @@ public: /// Construct new region copied from region r FXRegion(const FXRegion& r); - + /// Construct new region from rectangle FXRegion(const FXRectangle& rect); /// Construct rectangle region FXRegion(FXint x,FXint y,FXint w,FXint h); - /// Construct polygon region + /// Construct polygon region FXRegion(const FXPoint* points,FXuint npoints,bool winding=FALSE); - + /// Return TRUE if region is empty bool empty() const; @@ -79,7 +79,7 @@ public: // Return TRUE if region equal to this one bool operator==(const FXRegion& other) const { return (*self)==other; } } - + /// Reset region to empty void reset(); diff --git a/swig-interfaces/FXRegistry.i b/swig-interfaces/FXRegistry.i index dcc2184..37bedd3 100644 --- a/swig-interfaces/FXRegistry.i +++ b/swig-interfaces/FXRegistry.i @@ -56,7 +56,7 @@ protected: bool writeToRegistryGroup(void* org,const char* groupname); #endif public: - + /** * Construct registry object; akey and vkey must be string constants. * Regular applications SHOULD set a vendor key! @@ -69,11 +69,11 @@ public: /// Read registry bool read(); - + /// Write registry bool write(); - /// Return application key + /// Return application key const FXString& getAppKey() const; /// Return vendor key diff --git a/swig-interfaces/FXReplaceDialog.i b/swig-interfaces/FXReplaceDialog.i index 52536a2..1931958 100644 --- a/swig-interfaces/FXReplaceDialog.i +++ b/swig-interfaces/FXReplaceDialog.i @@ -68,7 +68,7 @@ public: ID_LAST=ID_MODE+32 }; public: - enum { + enum { DONE = 0, /// Cancel search SEARCH = 1, /// Search first occurrence REPLACE = 1, /// Replace first occurrence diff --git a/swig-interfaces/FXScintilla.i b/swig-interfaces/FXScintilla.i index b5d77f8..a620b7f 100644 --- a/swig-interfaces/FXScintilla.i +++ b/swig-interfaces/FXScintilla.i @@ -83,7 +83,7 @@ struct TextRange { FXMALLOC(&tr->lpstrText,char,size); return tr; } - + // Destructor ~TextRange(){ FXFREE(&self->lpstrText); @@ -133,7 +133,7 @@ public: // Scintilla messaging void setScintillaID(int id); - + %extend { VALUE sendMessage(unsigned int iMsg, VALUE wParam = Qnil, VALUE lParam = Qnil){ // Convert wParam argument @@ -175,7 +175,7 @@ public: break; } sptr_t result=self->sendMessage(iMsg,wp,lp); - return INT2NUM(result); + return INT2NUM(result); } } diff --git a/swig-interfaces/FXScrollArea.i b/swig-interfaces/FXScrollArea.i index 00edfbb..5eb642e 100644 --- a/swig-interfaces/FXScrollArea.i +++ b/swig-interfaces/FXScrollArea.i @@ -22,8 +22,8 @@ /// ScrollBar options enum { - SCROLLERS_NORMAL = 0, /// Show the scrollbars when needed - HSCROLLER_ALWAYS = 0x00008000, /// Always show horizontal scrollers + SCROLLERS_NORMAL = 0, /// Show the scrollbars when needed + HSCROLLER_ALWAYS = 0x00008000, /// Always show horizontal scrollers HSCROLLER_NEVER = 0x00010000, /// Never show horizontal scrollers VSCROLLER_ALWAYS = 0x00020000, /// Always show vertical scrollers VSCROLLER_NEVER = 0x00040000, /// Never show vertical scrollers @@ -48,8 +48,8 @@ class FXScrollCorner; * Depending on the mode, scrollbars may be displayed on an as-needed * basis, always, or never. * Normally, the scroll area's size and the content's size are independent; -* however, it is possible to disable scrolling in the horizontal -* (vertical) direction. In this case, the content width (height) +* however, it is possible to disable scrolling in the horizontal +* (vertical) direction. In this case, the content width (height) * will influence the width (height) of the scroll area widget. * For content which is time-consuming to repaint, continuous * scrolling may be turned off. @@ -87,13 +87,13 @@ public: /// Change scroll style void setScrollStyle(FXuint style); - + /// Return scroll style FXuint getScrollStyle() const; - + /// Return TRUE if horizontally scrollable FXbool isHorizontalScrollable() const; - + /// Return TRUE if vertically scrollable FXbool isVerticalScrollable() const; diff --git a/swig-interfaces/FXScrollBar.i b/swig-interfaces/FXScrollBar.i index 7c65bc2..1e2bb63 100644 --- a/swig-interfaces/FXScrollBar.i +++ b/swig-interfaces/FXScrollBar.i @@ -37,9 +37,9 @@ enum { * of the document which is visible. The size of the scrollbar thumb is adjusted * to give feedback of the relative sizes of each. * The scroll bar may be manipulated by the left mouse button (normal scrolling), by the -* middle mouse button (same as the left mouse only the scroll position can jump to the +* middle mouse button (same as the left mouse only the scroll position can jump to the * place where the click is made), or by the right mouse button (vernier- or fine-scrolling). -* Holding down the control key while scrolling with the left or middle mouse button also +* Holding down the control key while scrolling with the left or middle mouse button also * enables vernier-scrolling mode. The vernier-scrolling mode is very useful for accurate * positioning in large documents. * Finally, if the mouse sports a wheel, the scroll bar can be manipulated by means @@ -165,7 +165,7 @@ public: return new FXRbScrollCorner(p); } } - + /// Destructor virtual ~FXScrollCorner(); }; diff --git a/swig-interfaces/FXScrollWindow.i b/swig-interfaces/FXScrollWindow.i index fa8c005..162c703 100644 --- a/swig-interfaces/FXScrollWindow.i +++ b/swig-interfaces/FXScrollWindow.i @@ -25,14 +25,14 @@ * The scroll window widget scrolls an arbitrary child window. * Use the scroll window when parts of the user interface itself * need to be scrolled, for example when applications need to run -* on small screens. The scroll window observes some layout hints of -* its content-window; it observes LAYOUT_FIX_WIDTH, LAYOUT_FIX_HEIGHT -* at all times. The hints LAYOUT_FILL_X, LAYOUT_LEFT, LAYOUT_RIGHT, -* LAYOUT_CENTER_X, as well as LAYOUT_FILL_Y, LAYOUT_TOP, LAYOUT_BOTTOM, +* on small screens. The scroll window observes some layout hints of +* its content-window; it observes LAYOUT_FIX_WIDTH, LAYOUT_FIX_HEIGHT +* at all times. The hints LAYOUT_FILL_X, LAYOUT_LEFT, LAYOUT_RIGHT, +* LAYOUT_CENTER_X, as well as LAYOUT_FILL_Y, LAYOUT_TOP, LAYOUT_BOTTOM, * LAYOUT_CENTER_Y are however only interpreted if the content size * is smaller than the viewport size, because if the content size is * larger than the viewport size, then content must be scrolled. -* Note that this means that the content window's position is not +* Note that this means that the content window's position is not * necessarily equal to the scroll position of the scroll window! */ class FXScrollWindow : public FXScrollArea { @@ -53,7 +53,7 @@ public: /// Return a pointer to the contents window FXWindow* contentWindow() const; - + /// Destructor virtual ~FXScrollWindow(); }; diff --git a/swig-interfaces/FXSearchDialog.i b/swig-interfaces/FXSearchDialog.i index 5dcafe1..43feae0 100644 --- a/swig-interfaces/FXSearchDialog.i +++ b/swig-interfaces/FXSearchDialog.i @@ -26,7 +26,7 @@ class FXSearchDialog : public FXReplaceDialog { protected: FXSearchDialog(){} public: - + /// Construct search dialog box %extend { FXSearchDialog(FXWindow* owner,const FXString& caption,FXIcon* ic=NULL,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ diff --git a/swig-interfaces/FXSeparator.i b/swig-interfaces/FXSeparator.i index 0248b19..94abbdf 100644 --- a/swig-interfaces/FXSeparator.i +++ b/swig-interfaces/FXSeparator.i @@ -62,7 +62,7 @@ public: /// Destructor virtual ~FXSeparator(); }; - + DECLARE_FXOBJECT_VIRTUALS(FXSeparator) DECLARE_FXID_VIRTUALS(FXSeparator) @@ -101,7 +101,7 @@ public: return new FXRbHorizontalSeparator(p,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Destructor virtual ~FXHorizontalSeparator(); }; @@ -125,7 +125,7 @@ public: return new FXRbVerticalSeparator(p,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Destructor virtual ~FXVerticalSeparator(); }; diff --git a/swig-interfaces/FXSettings.i b/swig-interfaces/FXSettings.i index c6204db..a210d64 100644 --- a/swig-interfaces/FXSettings.i +++ b/swig-interfaces/FXSettings.i @@ -65,7 +65,7 @@ public: /// Parse a file containing a settings database. bool parseFile(const FXString& filename,bool mark); - + /// Unparse settings database into given file. bool unparseFile(const FXString& filename); @@ -116,7 +116,7 @@ public: /// Write a boolean value entry bool writeBoolEntry(const FXchar *section,const FXchar *key,FXbool val); - + /// Delete a registry entry bool deleteEntry(const FXchar *section,const FXchar *key); @@ -137,7 +137,7 @@ public: /// Is it modified bool isModified() const; - + /// Destructor virtual ~FXSettings(); }; diff --git a/swig-interfaces/FXShell.i b/swig-interfaces/FXShell.i index 400481c..1e2efff 100644 --- a/swig-interfaces/FXShell.i +++ b/swig-interfaces/FXShell.i @@ -48,7 +48,7 @@ public: FXShell(FXApp* a,FXuint opts,FXint x,FXint y,FXint w,FXint h){ return new FXRbShell(a,opts,x,y,w,h); } - + // Construct owned shell window FXShell(FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h){ return new FXRbShell(own,opts,x,y,w,h); diff --git a/swig-interfaces/FXSlider.i b/swig-interfaces/FXSlider.i index e3c29e3..67bf29f 100644 --- a/swig-interfaces/FXSlider.i +++ b/swig-interfaces/FXSlider.i @@ -91,7 +91,7 @@ public: ID_LAST }; public: - + /// Construct a slider widget %extend { FXSlider(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=SLIDER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0){ @@ -101,7 +101,7 @@ public: /// Change slider value void setValue(FXint value,FXbool notify=FALSE); - + /// Return slider value FXint getValue() const; @@ -112,7 +112,7 @@ public: FXRbRange2LoHi(range,lo,hi); self->setRange(lo,hi,notify); } - + /// Get the slider's current range VALUE getRange() const { FXint lo,hi; @@ -123,22 +123,22 @@ public: /// Change the slider style FXuint getSliderStyle() const; - + /// Get the current slider style void setSliderStyle(FXuint style); - + /// Get the slider's head size FXint getHeadSize() const; /// Change the slider's head size void setHeadSize(FXint hs); - + /// Get the slider's current slot size FXint getSlotSize() const; /// Change the slider's slot size void setSlotSize(FXint bs); - + /// Get the slider's auto-increment/decrement value FXint getIncrement() const; @@ -150,22 +150,22 @@ public: /// Get delta between ticks FXint getTickDelta() const; - + /// Change the color of the slot the slider head moves in void setSlotColor(FXColor clr); - + /// Get the current slot color FXColor getSlotColor() const; /// Set the help text to be displayed on the status line void setHelpText(const FXString& text); - + /// Get the current help text const FXString& getHelpText() const; /// Set the tip text to be displayed in the tooltip void setTipText(const FXString& text); - + /// Get the current tooltip text value const FXString& getTipText() const; diff --git a/swig-interfaces/FXSphered.i b/swig-interfaces/FXSphered.i index 3850e8a..b87d6ae 100644 --- a/swig-interfaces/FXSphered.i +++ b/swig-interfaces/FXSphered.i @@ -99,7 +99,7 @@ public: /// Expand radius to include box FXSphered& includeInRadius(const FXRanged& box); - + /// Include given sphere into this one FXSphered& include(const FXSphered& sphere); diff --git a/swig-interfaces/FXSpheref.i b/swig-interfaces/FXSpheref.i index a011601..5e1604d 100644 --- a/swig-interfaces/FXSpheref.i +++ b/swig-interfaces/FXSpheref.i @@ -99,7 +99,7 @@ public: /// Expand radius to include box FXSpheref& includeInRadius(const FXRangef& box); - + /// Include given sphere into this one FXSpheref& include(const FXSpheref& sphere); diff --git a/swig-interfaces/FXSpinner.i b/swig-interfaces/FXSpinner.i index 4bb244b..c7086b5 100644 --- a/swig-interfaces/FXSpinner.i +++ b/swig-interfaces/FXSpinner.i @@ -80,28 +80,28 @@ public: /// Increment spinner void increment(FXbool notify=FALSE); - + /// Increment spinner by certain amount void incrementByAmount(FXint amount,FXbool notify=FALSE); /// Decrement spinner void decrement(FXbool notify=FALSE); - + /// Decrement spinner by certain amount void decrementByAmount(FXint amount, FXbool notify=FALSE); /// Return TRUE if in cyclic mode FXbool isCyclic() const; - + /// Set to cyclic mode, i.e. wrap around at maximum/minimum void setCyclic(FXbool cyclic); - + /// Return TRUE if text is visible FXbool isTextVisible() const; - + /// Set text visible flag void setTextVisible(FXbool shown); - + /// Return current value FXint getValue() const; @@ -112,7 +112,7 @@ public: FXRbRange2LoHi(range,lo,hi); self->setRange(lo,hi); } - + /// Get the spinner's current range VALUE getRange() const { FXint lo,hi; @@ -123,7 +123,7 @@ public: /// Change spinner increment void setIncrement(FXint increment); - + /// Return spinner increment FXint getIncrement() const; @@ -147,28 +147,28 @@ public: /// Change spinner style void setSpinnerStyle(FXuint style); - + /// Return current spinner style FXuint getSpinnerStyle() const; /// Allow editing of the text field void setEditable(FXbool edit=TRUE); - + /// Return TRUE if text field is editable FXbool isEditable() const; - + /// Change color of the up arrow void setUpArrowColor(FXColor clr); - + /// Return color of the up arrow FXColor getUpArrowColor() const; - + /// Change color of the down arrow void setDownArrowColor(FXColor clr); - + /// Return color of the the down arrow FXColor getDownArrowColor() const; - + /// Change text color void setTextColor(FXColor clr); diff --git a/swig-interfaces/FXSplitter.i b/swig-interfaces/FXSplitter.i index daed1f5..3ffd4ab 100644 --- a/swig-interfaces/FXSplitter.i +++ b/swig-interfaces/FXSplitter.i @@ -50,11 +50,11 @@ enum { * during the resizing of the panels; at the end of the resize interaction, * it sends a SEL_COMMAND to signify that the resize operation is complete. * Normally, children are resizable from 0 upwards; however, if the child -* in a horizontally oriented splitter has LAYOUT_FILL_X in combination with +* in a horizontally oriented splitter has LAYOUT_FILL_X in combination with * LAYOUT_FIX_WIDTH, it will not be made smaller than its default width, * except when the child is the last visible widget (or first when the option * SPLITTER_REVERSED has been passed to the splitter). -* In a vertically oriented splitter, children with LAYOUT_FILL_Y and +* In a vertically oriented splitter, children with LAYOUT_FILL_Y and * LAYOUT_FIX_HEIGHT behave analogously. */ class FXSplitter : public FXComposite { @@ -79,7 +79,7 @@ public: long onFocusLeft(FXObject*,FXSelector,void* PTR_EVENT); long onFocusRight(FXObject*,FXSelector,void* PTR_EVENT); public: - + %extend { /// Construct new splitter widget FXSplitter(FXComposite* p,FXuint opts=SPLITTER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ @@ -100,13 +100,13 @@ public: /// Change splitter style void setSplitterStyle(FXuint style); - + /// Return current splitter style FXuint getSplitterStyle() const; - + /// Change splitter bar size void setBarSize(FXint bs); - + /// Return current bar size FXint getBarSize() const; diff --git a/swig-interfaces/FXStatusBar.i b/swig-interfaces/FXStatusBar.i index 0bf035c..bd62788 100644 --- a/swig-interfaces/FXStatusBar.i +++ b/swig-interfaces/FXStatusBar.i @@ -24,8 +24,8 @@ enum { STATUSBAR_WITH_DRAGCORNER = 0x00020000 /// Causes the DragCorner to be shown }; - - + + class FXDragCorner; class FXStatusLine; @@ -46,10 +46,10 @@ public: /// Show or hide the drag corner void setCornerStyle(FXbool withcorner=TRUE); - + /// Return TRUE if drag corner shown FXbool getCornerStyle() const; - + /// Acess the status line widget FXStatusLine *getStatusLine() const; diff --git a/swig-interfaces/FXStatusLine.i b/swig-interfaces/FXStatusLine.i index 0c88c24..d910657 100644 --- a/swig-interfaces/FXStatusLine.i +++ b/swig-interfaces/FXStatusLine.i @@ -60,19 +60,19 @@ public: /// Change the temporary status message void setText(const FXString& text); - + /// Return the temporary status message FXString getText() const; /// Change the permanent status message void setNormalText(const FXString& text); - + /// Return the permanent status message FXString getNormalText() const; /// Change the font void setFont(FXFont* fnt); - + /// Return the current font FXFont* getFont() const; @@ -81,13 +81,13 @@ public: /// Change the text color void setTextColor(FXColor clr); - + /// Return the highlight text color FXColor getTextHighlightColor() const; /// Change the highlight text color void setTextHighlightColor(FXColor clr); - + /// Destroy virtual ~FXStatusLine(); }; diff --git a/swig-interfaces/FXStream.i b/swig-interfaces/FXStream.i index 39027ed..5efc80a 100644 --- a/swig-interfaces/FXStream.i +++ b/swig-interfaces/FXStream.i @@ -110,7 +110,7 @@ public: /// Return TRUE if at end of file or error bool eof() const; - + /// Set status code void setError(FXStreamStatus err); diff --git a/swig-interfaces/FXSwitcher.i b/swig-interfaces/FXSwitcher.i index 938ca1e..b5626d6 100644 --- a/swig-interfaces/FXSwitcher.i +++ b/swig-interfaces/FXSwitcher.i @@ -39,7 +39,7 @@ enum { * windows such that one of them is placed on top; all other * child windows are hidden. * Switcher provides a convenient method to conserve screen -* real-estate by arranging several GUI panels to appear in the +* real-estate by arranging several GUI panels to appear in the * same space, depending on context. * Switcher ignores all layout hints from its children:- all * children are stretched according to the switcher layout @@ -51,7 +51,7 @@ enum { */ class FXSwitcher : public FXPacker { protected: - FXint current; + FXint current; protected: FXSwitcher(){} public: @@ -77,7 +77,7 @@ public: ID_LAST }; public: - + /// Construct a switcher layout manager %extend { FXSwitcher(FXComposite* p,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_SPACING,FXint pr=DEFAULT_SPACING,FXint pt=DEFAULT_SPACING,FXint pb=DEFAULT_SPACING){ @@ -87,7 +87,7 @@ public: /// Bring the child window at index to the top void setCurrent(FXint index,FXbool notify=FALSE); - + /// Return the index of the child window currently on top FXint getCurrent() const; @@ -96,7 +96,7 @@ public: /// Get the switcher style flags FXuint getSwitcherStyle() const; - + /// Destructor virtual ~FXSwitcher(); }; diff --git a/swig-interfaces/FXTabBar.i b/swig-interfaces/FXTabBar.i index d0f8a76..ebfc853 100644 --- a/swig-interfaces/FXTabBar.i +++ b/swig-interfaces/FXTabBar.i @@ -90,10 +90,10 @@ public: /// Return tab bar style FXuint getTabStyle() const; - + /// Change tab tab style void setTabStyle(FXuint style); - + /// Destructor virtual ~FXTabBar(); }; diff --git a/swig-interfaces/FXTabBook.i b/swig-interfaces/FXTabBook.i index 7423f60..a44659a 100644 --- a/swig-interfaces/FXTabBook.i +++ b/swig-interfaces/FXTabBook.i @@ -56,7 +56,7 @@ public: return new FXRbTabBook(p,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Destructor virtual ~FXTabBook(); }; diff --git a/swig-interfaces/FXTabItem.i b/swig-interfaces/FXTabItem.i index 85d86d5..9bcf601 100644 --- a/swig-interfaces/FXTabItem.i +++ b/swig-interfaces/FXTabItem.i @@ -20,7 +20,7 @@ * at "lyle@lylejohnson.name". ***********************************************************************/ -// Tab Item orientations which affect border +// Tab Item orientations which affect border enum { TAB_TOP = 0, // Top side tabs TAB_LEFT = 0x00800000, // Left side tabs @@ -56,7 +56,7 @@ public: long onHotKeyPress(FXObject*,FXSelector,void* PTR_EVENT); long onHotKeyRelease(FXObject*,FXSelector,void* PTR_EVENT); public: - + /// Construct a tab item %extend { FXTabItem(FXTabBar* p,const FXString& text,FXIcon* ic=0,FXuint opts=TAB_TOP_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD){ @@ -66,10 +66,10 @@ public: /// Return current tab item orientation FXuint getTabOrientation() const; - + /// Change tab item orientation void setTabOrientation(FXuint style); - + /// Destructor virtual ~FXTabItem(); }; diff --git a/swig-interfaces/FXTable.i b/swig-interfaces/FXTable.i index 1f87cd2..d1f7f30 100644 --- a/swig-interfaces/FXTable.i +++ b/swig-interfaces/FXTable.i @@ -45,7 +45,7 @@ struct FXTablePos { FXint col; ~FXTablePos(); }; - + // Range of table cells struct FXTableRange { @@ -75,7 +75,7 @@ protected: protected: FXTableItem(); public: - enum{ + enum{ SELECTED = 0x00000001, /// Selected FOCUS = 0x00000002, /// Focus DISABLED = 0x00000004, /// Disabled @@ -117,16 +117,16 @@ public: return self->getData() ? reinterpret_cast<VALUE>(self->getData()) : Qnil; } } - + // Return true if item has focus FXbool hasFocus() const; - + // Return true if item is selected FXbool isSelected() const; - + // Return true if item is enabled FXbool isEnabled() const; - + // Return true if item is draggable FXbool isDraggable() const; @@ -245,7 +245,7 @@ public: long onClicked(FXObject*,FXSelector,void* PTR_EVENT); long onDoubleClicked(FXObject*,FXSelector,void* PTR_EVENT); long onTripleClicked(FXObject*,FXSelector,void* PTR_EVENT); - + long onCmdToggleEditable(FXObject*,FXSelector,void* PTR_IGNORE); long onUpdToggleEditable(FXObject*,FXSelector,void* PTR_IGNORE); @@ -254,7 +254,7 @@ public: long onUpdHorzGrid(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME long onCmdVertGrid(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME long onUpdVertGrid(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME - + // Row/Column manipulations long onCmdDeleteColumn(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME long onUpdDeleteColumn(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME @@ -264,7 +264,7 @@ public: long onUpdInsertColumn(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdInsertRow(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME long onUpdInsertRow(FXObject*,FXSelector,void* PTR_IGNORE); - + // Movement long onCmdMoveRight(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME long onCmdMoveLeft(FXObject*,FXSelector,void* PTR_IGNORE); // FIXME @@ -349,7 +349,7 @@ public: }; public: - + /** * Construct a new table. * The table is initially empty, and reports a default size based on @@ -360,7 +360,7 @@ public: return new FXRbTable(p,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb); } } - + /// Return button in the top/left corner FXButton* getCornerButton() const; @@ -372,16 +372,16 @@ public: /// Change number of visible rows void setVisibleRows(FXint nvrows); - + /// Return number of visible rows FXint getVisibleRows() const; - + // Change number of visible columns void setVisibleColumns(FXint nvcols); - + // Return number of visible columns FXint getVisibleColumns() const; - + /// Return TRUE if table is editable FXbool isEditable() const; @@ -396,7 +396,7 @@ public: /// Show or hide vertical grid void showVertGrid(FXbool on=TRUE); - + /// Is vertical grid shown FXbool isVertGridShown() const; @@ -443,7 +443,7 @@ public: * otherwise, returns row in table containing y. */ FXint rowAtY(FXint y) const; - + /// Return the item at the given index FXTableItem *getItem(FXint row,FXint col) const; @@ -513,7 +513,7 @@ public: } return self->getColumnX(colEdge); } - + /// Change Y coordinate of row r FXint getRowY(FXint rowEdge) const { if(rowEdge<0 || self->getRowHeader()->getNumItems()<=rowEdge){ @@ -522,7 +522,7 @@ public: return self->getRowY(rowEdge); } } - + /// Get column width FXint getColumnWidth(FXint col) const; @@ -531,13 +531,13 @@ public: /// Change default column width void setDefColumnWidth(FXint cwidth); - + /// Get default column width FXint getDefColumnWidth() const; /// Change default row height void setDefRowHeight(FXint rheight); - + /// Get default row height FXint getDefRowHeight() const; @@ -612,11 +612,11 @@ public: } } } - + // Get cell text FXString getItemText(FXint r,FXint c) const; - %extend { + %extend { /// Modify cell icon, deleting the old icon if it was owned void setItemIcon(FXint r,FXint c,FXIcon* icon,FXbool notify=FALSE){ FXRbTableItem* item; @@ -627,10 +627,10 @@ public: } } } - + // Get the item's icon FXIcon* getItemIcon(FXint r,FXint c) const; - + %extend { /// Modify cell user-data void setItemData(FXint r,FXint c,VALUE ptr){ @@ -648,7 +648,7 @@ public: return (ptr!=0) ? reinterpret_cast<VALUE>(ptr) : Qnil; } } - + %extend { /// Extract cells from given range as text. VALUE extractText(FXint startrow,FXint endrow,FXint startcol,FXint endcol,const FXchar* cs="\t",const FXchar* rs="\n") const { @@ -695,7 +695,7 @@ public: /// Repaint cell at r,c void updateItem(FXint r,FXint c) const; - + // Is item enabled? FXbool isItemEnabled(FXint r,FXint c) const; @@ -707,10 +707,10 @@ public: * The default is a combination of FXTableItem::RIGHT and FXTableItem::CENTER_Y. */ void setItemJustify(FXint r,FXint c,FXuint justify); - + /// Return item justification FXuint getItemJustify(FXint r,FXint c) const; - + /** * Change relative position of icon and text of item. * Passing FXTableItem::BEFORE or FXTableItem::AFTER places the icon @@ -719,23 +719,23 @@ public: * The default is 0 which places the text on top of the icon. */ void setItemIconPosition(FXint r,FXint c,FXuint mode); - + /// Return relative icon and text position FXuint getItemIconPosition(FXint r,FXint c) const; - + /** * Change item borders style. Borders on each side of the item can be turned * controlled individually using FXTableItem::LBORDER, FXTableItem::RBORDER, * FXTableItem::TBORDER and FXTableItem::BBORDER. */ void setItemBorders(FXint r,FXint c,FXuint borders); - + /// Return item border style FXuint getItemBorders(FXint r,FXint c) const; - + /// Change item background stipple style void setItemStipple(FXint r,FXint c,FXStipplePattern pat); - + /// Return item background stipple style FXStipplePattern getItemStipple(FXint r,FXint c) const; @@ -771,7 +771,7 @@ public: /// Is item selected? FXbool isItemSelected(FXint r,FXint c) const; - + /// Is row of cells selected FXbool isRowSelected(FXint r) const; @@ -824,7 +824,7 @@ public: /// Change table style FXuint getTableStyle() const; void setTableStyle(FXuint style); - + /// Set column renumbering void setColumnRenumbering(FXbool flag); @@ -839,7 +839,7 @@ public: /// Change help text void setHelpText(const FXString& text); - + /// Get help text const FXString& getHelpText() const; diff --git a/swig-interfaces/FXText.i b/swig-interfaces/FXText.i index f8366e8..5502d22 100644 --- a/swig-interfaces/FXText.i +++ b/swig-interfaces/FXText.i @@ -32,7 +32,7 @@ enum { TEXT_AUTOSCROLL = 0x08000000 /// Logging mode, keeping last line visible }; - + /// Selection modes enum FXTextSelectionMode { SELECT_CHARS, @@ -161,7 +161,7 @@ public: long onCmdReplace(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdSearchNext(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdSearchSel(FXObject*,FXSelector,void* PTR_IGNORE); - + // Cursor movement long onCmdCursorTop(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdCursorBottom(FXObject*,FXSelector,void* PTR_IGNORE); @@ -189,17 +189,17 @@ public: long onCmdGotoLine(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdScrollUp(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdScrollDown(FXObject*,FXSelector,void* PTR_IGNORE); - + // Mark and extend long onCmdMark(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdExtend(FXObject*,FXSelector,void* PTR_IGNORE); - + // Inserting long onCmdOverstString(FXObject*,FXSelector,void* PTR_CHAR); long onCmdInsertString(FXObject*,FXSelector,void* PTR_CSTRING); long onCmdInsertNewline(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdInsertTab(FXObject*,FXSelector,void* PTR_IGNORE); - + // Manipulation Selection long onCmdCutSel(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdCopySel(FXObject*,FXSelector,void* PTR_IGNORE); @@ -208,7 +208,7 @@ public: long onCmdChangeCase(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdShiftText(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdPasteMiddle(FXObject*,FXSelector,void* PTR_IGNORE); - + // Changing Selection long onCmdSelectChar(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdSelectWord(FXObject*,FXSelector,void* PTR_IGNORE); @@ -217,7 +217,7 @@ public: long onCmdSelectMatching(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdSelectBlock(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdDeselectAll(FXObject*,FXSelector,void* PTR_IGNORE); - + // Deletion long onCmdBackspace(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdBackspaceWord(FXObject*,FXSelector,void* PTR_IGNORE); @@ -227,12 +227,12 @@ public: long onCmdDeleteEol(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdDeleteAll(FXObject*,FXSelector,void* PTR_IGNORE); long onCmdDeleteLine(FXObject*,FXSelector,void* PTR_IGNORE); - + public: static const FXchar textDelimiters[]; public: - + enum { ID_CURSOR_TOP=FXScrollArea::ID_LAST, ID_CURSOR_BOTTOM, @@ -393,7 +393,7 @@ public: /// Change delimiters of words void setDelimiters(const FXchar* delims=textDelimiters); - + /// Return word delimiters const FXchar* getDelimiters() const; @@ -513,7 +513,7 @@ public: /// Return number of rows in buffer FXint getNumRows() const; - + /// Shift block of lines from position start up to end by given amount FXint shiftText(FXint start,FXint end,FXint amount,FXbool notify=FALSE); @@ -614,7 +614,7 @@ public: /// Retreat to the previous valid utf8 character start FXint dec(FXint pos) const; - + /// Advance to the next valid utf8 character start FXint inc(FXint pos) const; @@ -693,7 +693,7 @@ public: /// Return number of visible columns FXint getVisibleColumns() const; - /** + /** * Change brace and parenthesis match highlighting time, in ms. * A match highlight time of 0 disables brace matching. */ diff --git a/swig-interfaces/FXTextField.i b/swig-interfaces/FXTextField.i index faaeb91..40471c8 100644 --- a/swig-interfaces/FXTextField.i +++ b/swig-interfaces/FXTextField.i @@ -152,7 +152,7 @@ public: } } - /// Change text field editability + /// Change text field editability void setEditable(FXbool edit=TRUE); /// Return TRUE if text field may be edited diff --git a/swig-interfaces/FXToggleButton.i b/swig-interfaces/FXToggleButton.i index d214e40..1cabd0a 100644 --- a/swig-interfaces/FXToggleButton.i +++ b/swig-interfaces/FXToggleButton.i @@ -33,7 +33,7 @@ enum { /// Toggle Button class FXToggleButton : public FXLabel { protected: - FXString altlabel; + FXString altlabel; FXIcon *alticon; FXHotKey althotkey; FXint althotoff; @@ -76,31 +76,31 @@ public: /// Change alternate text shown when toggled void setAltText(const FXString& text); - + /// Return alternate text FXString getAltText() const; /// Change alternate icon shown when toggled void setAltIcon(FXIcon* ic); - + /// Return alternate icon FXIcon* getAltIcon() const; /// Change toggled state void setState(FXbool s=TRUE,FXbool notify=FALSE); - + /// return toggled state FXbool getState() const; /// Change alternate help text shown when toggled void setAltHelpText(const FXString& text); - + /// Return alternate help text FXString getAltHelpText() const; /// Change alternate tip text shown when toggled void setAltTipText(const FXString& text); - + /// Return alternate tip text FXString getAltTipText() const; diff --git a/swig-interfaces/FXToolBar.i b/swig-interfaces/FXToolBar.i index 86cf6f2..b113c2d 100644 --- a/swig-interfaces/FXToolBar.i +++ b/swig-interfaces/FXToolBar.i @@ -22,7 +22,7 @@ %rename("dockingSide=") FXToolBar::setDockingSide(FXuint side); %rename("dockingSide") FXToolBar::getDockingSide() const; - + /** * A tool bar widget can be docked in a dock site; it automatically @@ -38,7 +38,7 @@ public: public: %extend { /** - * Construct a floatable toolbar + * Construct a floatable toolbar * Normally, the toolbar is docked under window p. * When floated, the toolbar can be docked under window q, which is * typically an FXToolBarShell window. @@ -56,12 +56,12 @@ public: } } - /// Set docking side + /// Set docking side void setDockingSide(FXuint side=LAYOUT_SIDE_TOP); /// Return docking side FXuint getDockingSide() const; - + /// Destroy virtual ~FXToolBar(); }; diff --git a/swig-interfaces/FXToolBarGrip.i b/swig-interfaces/FXToolBarGrip.i index 846690f..c1b49ff 100644 --- a/swig-interfaces/FXToolBarGrip.i +++ b/swig-interfaces/FXToolBarGrip.i @@ -52,7 +52,7 @@ public: long onLeave(FXObject*,FXSelector,void* PTR_EVENT); public: %extend { - /// Construct toolbar grip + /// Construct toolbar grip FXToolBarGrip(FXToolBar* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=TOOLBARGRIP_SINGLE,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbToolBarGrip(p,tgt,sel,opts,x,y,w,h); } @@ -63,13 +63,13 @@ public: /// Return TRUE if toolbar grip is displayed as a double bar FXbool isDoubleBar() const; - + /// Set the active color void setActiveColor(FXColor clr); /// Get the active color FXColor getActiveColor() const; - + /// Destructor virtual ~FXToolBarGrip(); }; diff --git a/swig-interfaces/FXToolBarShell.i b/swig-interfaces/FXToolBarShell.i index 7f4fc4e..27e901a 100644 --- a/swig-interfaces/FXToolBarShell.i +++ b/swig-interfaces/FXToolBarShell.i @@ -54,7 +54,7 @@ public: /// Change frame style void setFrameStyle(FXuint style); - + /// Get current frame style FXuint getFrameStyle() const; @@ -81,10 +81,10 @@ public: /// Change base gui color void setBaseColor(FXColor clr); - + /// Get base gui color FXColor getBaseColor() const; - + /// Destructor virtual ~FXToolBarShell(); }; diff --git a/swig-interfaces/FXToolBarTab.i b/swig-interfaces/FXToolBarTab.i index a5556ee..c2e9753 100644 --- a/swig-interfaces/FXToolBarTab.i +++ b/swig-interfaces/FXToolBarTab.i @@ -72,7 +72,7 @@ public: }; public: %extend { - /// Construct toolbar tab + /// Construct toolbar tab FXToolBarTab(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbToolBarTab(p,tgt,sel,opts,x,y,w,h); } @@ -80,22 +80,22 @@ public: /// Collapse or uncollapse the toolbar void collapse(FXbool fold,FXbool notify=FALSE); - + /// Return true if the toolbar is collapsed FXbool isCollapsed() const; /// Change the tab style void setTabStyle(FXuint style); - + /// Get current tab style FXuint getTabStyle() const; - + /// Get the active color FXColor getActiveColor() const; /// Set the active color void setActiveColor(FXColor clr); - + /// Set the tool tip message for the toolbar tab void setTipText(const FXString& text); diff --git a/swig-interfaces/FXToolTip.i b/swig-interfaces/FXToolTip.i index 0c65b36..ba1c87d 100644 --- a/swig-interfaces/FXToolTip.i +++ b/swig-interfaces/FXToolTip.i @@ -26,7 +26,7 @@ enum { TOOLTIP_VARIABLE = 0x00040000, /// ToolTip stays up variable time, depending on the length of the string TOOLTIP_NORMAL = 0 }; - + class FXFont; diff --git a/swig-interfaces/FXTopWindow.i b/swig-interfaces/FXTopWindow.i index 3b80b1d..0336088 100644 --- a/swig-interfaces/FXTopWindow.i +++ b/swig-interfaces/FXTopWindow.i @@ -46,7 +46,7 @@ enum { PLACEMENT_MAXIMIZED /// Place it maximized to the screen size }; - + class FXToolBar; @@ -125,7 +125,7 @@ public: FXTopWindow(FXApp* a,const FXString& name,FXIcon *ic,FXIcon *mi,FXuint opts,FXint x,FXint y,FXint w,FXint h,FXint pl,FXint pr,FXint pt,FXint pb,FXint hs,FXint vs){ return new FXRbTopWindow(a,name,ic,mi,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } - + // Construct owned top-level window FXTopWindow(FXWindow* owner,const FXString& name,FXIcon *ic,FXIcon *mi,FXuint opts,FXint x,FXint y,FXint w,FXint h,FXint pl,FXint pr,FXint pt,FXint pb,FXint hs,FXint vs){ return new FXRbTopWindow(owner,name,ic,mi,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); @@ -157,7 +157,7 @@ public: /// Change window title void setTitle(const FXString& name); - + /// Return window title FXString getTitle() const; @@ -193,28 +193,28 @@ public: /// Change horizontal spacing between children void setHSpacing(FXint hs); - + /// Change vertical spacing between children void setVSpacing(FXint vs); - + /// Change packing hints for children void setPackingHints(FXuint ph); - + /// Return packing hints for children FXuint getPackingHints() const; - + /// Change title and border decorations void setDecorations(FXuint decorations); - + /// Return current title and border decorations FXuint getDecorations() const; - + /// Return window icon FXIcon* getIcon() const; /// Change window icon void setIcon(FXIcon* ic); - + /// Return window mini (title) icon FXIcon* getMiniIcon() const; diff --git a/swig-interfaces/FXTreeList.i b/swig-interfaces/FXTreeList.i index 891c6de..b11e2dc 100644 --- a/swig-interfaces/FXTreeList.i +++ b/swig-interfaces/FXTreeList.i @@ -99,7 +99,7 @@ public: void setData(VALUE ptr){ self->setData((void*) ptr); } - + VALUE getData() const { return self->getData() ? (VALUE) self->getData() : Qnil; } @@ -114,10 +114,10 @@ public: /// Return TRUE if subitems, real or imagined FXbool hasItems() const; - + /// Change has items flag void setHasItems(FXbool flag); - + /// Return true if descendent of parent item FXbool isChildOf(const FXTreeItem* item) const; @@ -240,13 +240,13 @@ public: /// Return number of items FXint getNumItems() const; - + /// Return number of visible items FXint getNumVisible() const; /// Change number of visible items void setNumVisible(FXint nvis); - + /// Return first root item FXTreeItem* getFirstItem() const; @@ -264,7 +264,7 @@ public: } return self->insertItem(other,father,item,notify); } - + /// Insert item with given text and optional icons, and user-data pointer under father before other item FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){ FXTreeItem* item=self->insertItem(other,father,text,oi,ci,ITEMDATA,notify); @@ -274,14 +274,14 @@ public: return item; } - /// Append [possibly subclassed] item as last child of father + /// Append [possibly subclassed] item as last child of father FXTreeItem* appendItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=FALSE){ if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){ dynamic_cast<FXRbTreeItem*>(item)->owner=self; } return self->appendItem(father,item,notify); } - + /// Append item with given text and optional icons, and user-data pointer as last child of father FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){ FXTreeItem* item=self->appendItem(father,text,oi,ci,ITEMDATA,notify); @@ -290,7 +290,7 @@ public: } return item; } - + /// Prepend [possibly subclassed] item as first child of father FXTreeItem* prependItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=FALSE){ if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){ @@ -298,7 +298,7 @@ public: } return self->prependItem(father,item,notify); } - + /// Prepend item with given text and optional icons, and user-data pointer as first child of father FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){ FXTreeItem* item=self->prependItem(father,text,oi,ci,ITEMDATA,notify); @@ -321,10 +321,10 @@ public: // Save pointer(s) to the soon-to-be-destroyed items FXObjectListOf<FXTreeItem> items; FXRbTreeList::enumerateItem(item,items); - + // Do the deed self->removeItem(item,notify); - + // Now zero-out pointers held by still-alive Ruby objects for(FXint i=0;i<items.no();i++){ FXRbUnregisterRubyObj(items[i]); @@ -361,7 +361,7 @@ public: } } } - + /// Return item width FXint getItemWidth(const FXTreeItem* item) const; @@ -391,37 +391,37 @@ public: /// Change item's text void setItemText(FXTreeItem* item,const FXString& text); - + /// Return item's text FXString getItemText(const FXTreeItem* item) const; - + /// Change item's open icon, deleting the old icon if it was owned void setItemOpenIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=FALSE); - + /// Return item's open icon FXIcon* getItemOpenIcon(const FXTreeItem* item) const; - + /// Chance item's closed icon, deleting the old icon if it was owned void setItemClosedIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=FALSE); - + /// Return item's closed icon FXIcon* getItemClosedIcon(const FXTreeItem* item) const; - + %extend { /// Change item user-data pointer void setItemData(FXTreeItem* item,VALUE ptr){ self->setItemData(item,(void*) ptr); } - + /// Return item user-data pointer VALUE getItemData(const FXTreeItem* item) const { return self->getItemData(item) ? (VALUE) self->getItemData(item) : Qnil; } } - + /// Return TRUE if item is selected FXbool isItemSelected(const FXTreeItem* item) const; - + /// Return TRUE if item is current FXbool isItemCurrent(const FXTreeItem* item) const; @@ -460,13 +460,13 @@ public: /// Sort root items void sortRootItems(); - + /// Sort all items recursively void sortItems(); /// Sort children of item void sortChildItems(FXTreeItem* item); - + /// Return sort function FXTreeListSortFunc getSortFunc() const; @@ -502,7 +502,7 @@ public: /// Change selected text color void setSelTextColor(FXColor clr); - + /// Return line color FXColor getLineColor() const; @@ -511,13 +511,13 @@ public: /// Return list style FXuint getListStyle() const; - + /// Change list style void setListStyle(FXuint style); - + /// Set the status line help text for this list void setHelpText(const FXString& text); - + /// Get the status line help text for this list const FXString& getHelpText() const; diff --git a/swig-interfaces/FXTreeListBox.i b/swig-interfaces/FXTreeListBox.i index 20cdbfc..d98303b 100644 --- a/swig-interfaces/FXTreeListBox.i +++ b/swig-interfaces/FXTreeListBox.i @@ -25,7 +25,7 @@ enum { TREELISTBOX_NORMAL = 0 /// Normal style }; - + class FXButton; class FXMenuButton; class FXTreeList; @@ -63,7 +63,7 @@ public: ID_LAST }; public: - + /// Construct tree list box %extend { FXTreeListBox(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD){ @@ -73,16 +73,16 @@ public: /// Return number of items FXint getNumItems() const; - + /// Return number of visible items FXint getNumVisible() const; - + /// Set number of visible items to determine default height void setNumVisible(FXint nvis); - + /// Return first top-level item FXTreeItem* getFirstItem() const; - + /// Return last top-level item FXTreeItem* getLastItem() const; @@ -97,8 +97,8 @@ public: } return self->insertItem(other,father,item); } - - + + /// Insert item with given text and optional icons, and user-data pointer under father before other item FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){ FXTreeItem* item=self->insertItem(other,father,text,oi,ci,ITEMDATA); @@ -107,7 +107,7 @@ public: } return item; } - + /// Append [possibly subclassed] item as last child of father FXTreeItem* appendItem(FXTreeItem* father,FXTreeItem* item){ if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){ @@ -115,7 +115,7 @@ public: } return self->appendItem(father,item); } - + /// Append item with given text and optional icons, and user-data pointer as last child of father FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){ FXTreeItem* item=self->appendItem(father,text,oi,ci,ITEMDATA); @@ -124,7 +124,7 @@ public: } return item; } - + /// Prepend [possibly subclassed] item as first child of father FXTreeItem* prependItem(FXTreeItem* father,FXTreeItem* item){ if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){ @@ -132,7 +132,7 @@ public: } return self->prependItem(father,item); } - + /// Prepend item with given text and optional icons, and user-data pointer as first child of father FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){ FXTreeItem* item=self->prependItem(father,text,oi,ci,ITEMDATA); @@ -147,16 +147,16 @@ public: // Save pointer(s) to the soon-to-be-destroyed items FXObjectListOf<FXTreeItem> items; FXRbTreeList::enumerateItem(item,items); - + // Do the deed self->removeItem(item); - + // Now zero-out pointers held by still-alive Ruby objects for(FXint i=0;i<items.no();i++){ FXRbUnregisterRubyObj(items[i]); } } - + /// Remove all items in range [fm...to] void removeItems(FXTreeItem* fm,FXTreeItem* to){ // Save pointer(s) to the soon-to-be-destroyed items @@ -171,7 +171,7 @@ public: FXRbUnregisterRubyObj(items[i]); } } - + /// Remove all items from list void clearItems(){ // Save pointer(s) to the soon-to-be-destroyed items @@ -187,7 +187,7 @@ public: } } } - + /// Move item under father before other item FXTreeItem *moveItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item); @@ -217,28 +217,28 @@ public: /// Return TRUE if item is the current item FXbool isItemCurrent(const FXTreeItem* item) const; - + /// Return TRUE if item is leaf-item, i.e. has no children FXbool isItemLeaf(const FXTreeItem* item) const; - + /// Sort the toplevel items with the sort function void sortRootItems(); - + /// Sort all items recursively void sortItems(); /// Sort child items of item void sortChildItems(FXTreeItem* item); - + /// Return current item FXTreeItem* getCurrentItem() const; - + /// Change item label void setItemText(FXTreeItem* item,const FXString& text); - + /// Return item label FXString getItemText(const FXTreeItem* item) const; - + /// Change item's closed icon, deleting the old one if owned void setItemOpenIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=FALSE); @@ -247,46 +247,46 @@ public: /// Change item's closed icon, deleting the old one if it was owned void setItemClosedIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=FALSE); - + /// Return item's closed icon FXIcon* getItemClosedIcon(const FXTreeItem* item) const; - + %extend { /// Change item's user data void setItemData(FXTreeItem* item,VALUE ptr){ self->setItemData(item,(void*) ptr); } - + /// Return item's user data VALUE getItemData(const FXTreeItem* item) const { return self->getItemData(item) ? (VALUE) self->getItemData(item) : Qnil; } } - + /// Is the pane shown FXbool isPaneShown() const; - + /// Change font void setFont(FXFont* fnt); - + /// Return font FXFont* getFont() const; - + /// Return list style FXuint getListStyle() const; - + /// Change list style void setListStyle(FXuint style); - + /// Change help text void setHelpText(const FXString& txt); - + /// Return help text const FXString& getHelpText() const; - + /// Change tip text void setTipText(const FXString& txt); - + /// Return tip text const FXString& getTipText() const; diff --git a/swig-interfaces/FXVec3d.i b/swig-interfaces/FXVec3d.i index 6e37d15..094e13e 100644 --- a/swig-interfaces/FXVec3d.i +++ b/swig-interfaces/FXVec3d.i @@ -75,7 +75,7 @@ public: if(n==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } - + /// Dot product FXdouble operator*(const FXVec3d& other) const { return (*self)*other; } FXdouble dot(const FXVec3d& other) const { return (*self)*other; } @@ -83,7 +83,7 @@ public: /// Cross product FXVec3d operator^(const FXVec3d& other) const { return (*self)^other; } FXVec3d cross(const FXVec3d& other) const { return (*self)^other; } - + /// Equality tests bool operator==(const FXVec3d& other) const { return (*self)==other; } diff --git a/swig-interfaces/FXVec3f.i b/swig-interfaces/FXVec3f.i index a000aee..2da73ad 100644 --- a/swig-interfaces/FXVec3f.i +++ b/swig-interfaces/FXVec3f.i @@ -75,13 +75,13 @@ public: if(n==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } - + /// Dot and cross products FXfloat operator*(const FXVec3f& other) const { return (*self)*other; } FXfloat dot(const FXVec3f& other) const { return (*self)*other; } FXVec3f operator^(const FXVec3f& other) const { return (*self)^other; } FXVec3f cross(const FXVec3f& other) const { return (*self)^other; } - + /// Equality tests bool operator==(const FXVec3f& other) const { return (*self)==other; } diff --git a/swig-interfaces/FXVec4d.i b/swig-interfaces/FXVec4d.i index 939dbd9..ea9b2d5 100644 --- a/swig-interfaces/FXVec4d.i +++ b/swig-interfaces/FXVec4d.i @@ -55,7 +55,7 @@ public: /// Return true if edge a-b crosses plane bool crosses(const FXVec3d& a,const FXVec3d& b) const; - + /// Length and square of length FXdouble length2() const; FXdouble length() const; diff --git a/swig-interfaces/FXVec4f.i b/swig-interfaces/FXVec4f.i index 4cc7093..988a0fe 100644 --- a/swig-interfaces/FXVec4f.i +++ b/swig-interfaces/FXVec4f.i @@ -55,7 +55,7 @@ public: /// Return true if edge a-b crosses plane bool crosses(const FXVec3f& a,const FXVec3f& b) const; - + FXfloat length() const; FXfloat length2() const; @@ -70,33 +70,33 @@ public: (*self)[i]=f; return f; } - + // Negation FXVec4f operator-() const { return -(*self); } - + // Addition FXVec4f operator+(const FXVec4f& b) const { return (*self)+b; } - + // Subtraction FXVec4f operator-(const FXVec4f& b) const { return (*self)-b; } - + // Multiply by a scalar FXVec4f operator*(FXfloat n) const { return (*self)*n; } - + // Divide by a scalar FXVec4f operator/(FXfloat n) const { if(n==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } - + /// Dot product FXfloat operator*(const FXVec4f& a) const { return (*self)*a; } FXfloat dot(const FXVec4f& a) const { return (*self)*a; } - + /// Equality tests bool operator==(const FXVec4f& b) const { return (*self == b); } bool operator==(FXfloat n) const { return (*self == n); } - + // Other functions FXVec4f normalize() const { return normalize(*self); } FXVec4f lo(const FXVec4f& other) const { return lo(*self,other); } diff --git a/swig-interfaces/FXVerticalFrame.i b/swig-interfaces/FXVerticalFrame.i index 4da112c..82d0442 100644 --- a/swig-interfaces/FXVerticalFrame.i +++ b/swig-interfaces/FXVerticalFrame.i @@ -37,7 +37,7 @@ public: return new FXRbVerticalFrame(p,opts,x,y,w,h,pl,pr,pt,pb,hs,vs); } } - + /// Destructor virtual ~FXVerticalFrame(); }; diff --git a/swig-interfaces/FXVisual.i b/swig-interfaces/FXVisual.i index 94e2c88..a5db709 100644 --- a/swig-interfaces/FXVisual.i +++ b/swig-interfaces/FXVisual.i @@ -44,7 +44,7 @@ enum FXVisualType { VISUALTYPE_INDEX, /// Index [palette] color VISUALTYPE_GRAY /// Gray scale }; - + %rename("visualType") FXVisual::getType() const; %ignore FXVisual::getInfo() const; diff --git a/swig-interfaces/FXWindow.i b/swig-interfaces/FXWindow.i index ce01e31..e8e596b 100644 --- a/swig-interfaces/FXWindow.i +++ b/swig-interfaces/FXWindow.i @@ -70,7 +70,7 @@ enum { PACK_UNIFORM_HEIGHT = 0x00008000, /// Uniform height PACK_UNIFORM_WIDTH = 0x00010000 /// Uniform width }; - + class FXCursor; class FXAccelTable; class FXComposite; @@ -163,7 +163,7 @@ protected: }; public: - + // Message handlers long onPaint(FXObject*,FXSelector,void* PTR_EVENT); long onMap(FXObject*,FXSelector,void* PTR_EVENT); @@ -252,9 +252,9 @@ public: ID_GETICONVALUE, ID_GETINTRANGE, ID_GETREALRANGE, - ID_SETHELPSTRING, - ID_GETHELPSTRING, - ID_SETTIPSTRING, + ID_SETHELPSTRING, + ID_GETHELPSTRING, + ID_SETTIPSTRING, ID_GETTIPSTRING, ID_QUERY_MENU, ID_HOTKEY, @@ -285,7 +285,7 @@ public: static VALUE octetTypeName() { return to_ruby(FXWindow::octetTypeName); } - + static VALUE deleteTypeName() { return to_ruby(FXWindow::deleteTypeName); } @@ -319,28 +319,28 @@ public: FXWindow(FXComposite* p,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbWindow(p,opts,x,y,w,h); } - + // Shell window constructor FXWindow(FXApp* a,FXVisual *vis){ return new FXRbWindow(a,vis); } - + // Construct owned window FXWindow(FXApp* a,FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h){ return new FXRbWindow(a,own,opts,x,y,w,h); } } - /// Return a pointer to the parent window + /// Return a pointer to the parent window FXWindow* getParent() const; - /// Return a pointer to the owner window + /// Return a pointer to the owner window FXWindow* getOwner() const; - /// Return a pointer to the shell window + /// Return a pointer to the shell window FXWindow* getShell() const; - /// Return a pointer to the root window + /// Return a pointer to the root window FXWindow* getRoot() const; /// Return a pointer to the next (sibling) window, if any @@ -370,10 +370,10 @@ public: /// Get the message target object for this window, if any FXObject* getTarget() const; - /// Set the message identifier for this window + /// Set the message identifier for this window void setSelector(FXSelector sel); - /// Get the message identifier for this window + /// Get the message identifier for this window FXSelector getSelector() const; /// Get this window's x-coordinate, in the parent's coordinate system @@ -402,22 +402,22 @@ public: */ void setHeight(FXint h); - /// Set layout hints for this window + /// Set layout hints for this window void setLayoutHints(FXuint lout); - /// Get layout hints for this window + /// Get layout hints for this window FXuint getLayoutHints() const; - /// Return a pointer to the accelerator table + /// Return a pointer to the accelerator table FXAccelTable* getAccelTable() const; - /// Set the accelerator table + /// Set the accelerator table void setAccelTable(FXAccelTable* acceltable); /// Add a hot key void addHotKey(FXHotKey code); - /// Remove a hot key + /// Remove a hot key void remHotKey(FXHotKey code); /// Change help tag for this widget @@ -441,11 +441,11 @@ public: /// Return the child window at specified coordinates FXWindow* getChildAt(FXint x,FXint y) const; - /// Return the number of child windows for this window + /// Return the number of child windows for this window FXint numChildren() const; /** - * Return the index (starting from zero) of the specified child window, + * Return the index (starting from zero) of the specified child window, * or -1 if the window is not a child or NULL */ FXint indexOfChild(const FXWindow *window) const; @@ -464,7 +464,7 @@ public: } /** - * Return the child window at specified index, + * Return the child window at specified index, * or NULL if the index is negative or out of range */ FXWindow* childAtIndex(FXint index) const; @@ -482,26 +482,26 @@ public: bool before(const FXWindow *other) const { return FXWindow::before(self, other); } bool after(const FXWindow *other) const { return FXWindow::after(self, other); } } - + /// Return compose context FXComposeContext* getComposeContext() const; - + /// Create compose context void createComposeContext(); - + /// Destroy compose context void destroyComposeContext(); /// Set the default cursor for this window void setDefaultCursor(FXCursor* cur); - /// Return the default cursor for this window + /// Return the default cursor for this window FXCursor* getDefaultCursor() const; /// Set the drag cursor for this window void setDragCursor(FXCursor* cur); - /// Return the drag cursor for this window + /// Return the drag cursor for this window FXCursor* getDragCursor() const; %extend { @@ -535,14 +535,14 @@ public: /// Return true if this is the default window bool isDefault() const; - + /// Make this window the initial default window void setInitial(bool enable=true); - + /// Return true if this is the initial default window bool isInitial() const; - /// Generate a SEL_UPDATE message for the window and its children + /// Generate a SEL_UPDATE message for the window and its children void forceRefresh(); /// Scroll rectangle x,y,w,h by a shift of dx,dy @@ -556,7 +556,7 @@ public: /// Process any outstanding repaint messages immediately, for the given rectangle void repaint(FXint x,FXint y,FXint w,FXint h) const; - + /// If marked but not yet painted, paint the window now void repaint() const; @@ -566,7 +566,7 @@ public: */ void grab(); - /// Release the mouse grab + /// Release the mouse grab void ungrab(); /// Return true if the window has been grabbed @@ -640,7 +640,7 @@ public: /// Return true if a drag operaion has been initiated from this window bool isDragging() const; - + %extend { /// Initiate a drag operation with a list of previously registered drag types bool beginDrag(VALUE typesArray){ @@ -658,37 +658,37 @@ public: return result; } } - + /** * When dragging, inform the drop-target of the new position and * the drag action */ bool handleDrag(FXint x,FXint y,FXDragAction action=DRAG_COPY); - + /// Terminate the drag operation with or without actually dropping the data FXDragAction endDrag(bool drop=true); - + /// Return true if this window is the target of a drop bool isDropTarget() const; - + /** * When being dragged over, indicate that no further SEL_DND_MOTION messages * are required while the cursor is inside the given rectangle */ void setDragRectangle(FXint x,FXint y,FXint w,FXint h,bool wantupdates=true) const; - + /** * When being dragged over, indicate we want to receive SEL_DND_MOTION messages * every time the cursor moves */ void clearDragRectangle() const; - + /// When being dragged over, indicate acceptance or rejection of the dragged data void acceptDrop(FXDragAction action=DRAG_ACCEPT) const; - + /// The target accepted our drop FXDragAction didAccept() const; - + /** * Sent by the drop target in response to SEL_DND_DROP. The drag action * should be the same as the action the drop target reported to the drag @@ -703,7 +703,7 @@ public: void dropFinished(FXDragAction action=DRAG_REJECT) const; %extend { - // When being dragged over, inquire the drag types which are being offered + // When being dragged over, inquire the drag types which are being offered VALUE inquireDNDTypes(FXDNDOrigin origin) const { FXDragType* types; FXuint numtypes; @@ -719,10 +719,10 @@ public: /// When being dragged over, return true if we are offered the given drag type bool offeredDNDType(FXDNDOrigin origin,FXDragType type) const; - + /// When being dragged over, return the drag action FXDragAction inquireDNDAction() const; - + %extend { // Set DND data; ownership is transferred to the system void setDNDData(FXDNDOrigin origin, FXDragType type, VALUE str) const { @@ -772,7 +772,7 @@ public: rb_ary_push(result, INT2NUM(toy)); return result; } - + // Translate coordinates from this window's coordinate space // to towindow's coordinate space VALUE translateCoordinatesTo(const FXWindow* towindow, @@ -785,7 +785,7 @@ public: return result; } } - + /// Get background color FXColor getBackColor() const; diff --git a/swig-interfaces/FXXPMIcon.i b/swig-interfaces/FXXPMIcon.i index 19be45b..abed78b 100644 --- a/swig-interfaces/FXXPMIcon.i +++ b/swig-interfaces/FXXPMIcon.i @@ -83,7 +83,7 @@ DECLARE_FXIMAGE_VIRTUALS(FXXPMIcon) FXint width; FXint height; VALUE ary=Qnil; - + // Confirm that the input is an array of strings Check_Type(strArray,T_ARRAY); len=RARRAY_LEN(strArray); diff --git a/swig-interfaces/FXXPMImage.i b/swig-interfaces/FXXPMImage.i index 56f4b24..f31cebe 100644 --- a/swig-interfaces/FXXPMImage.i +++ b/swig-interfaces/FXXPMImage.i @@ -36,7 +36,7 @@ public: } } public: - + /// Construct image from compiled-in X Pixmap format %extend { FXXPMImage(FXApp* a,const FXchar **pix=NULL,FXuint opts=0,FXint w=1,FXint h=1){ diff --git a/swig-interfaces/exceptions.i b/swig-interfaces/exceptions.i index 80cb65f..e63b2bc 100644 --- a/swig-interfaces/exceptions.i +++ b/swig-interfaces/exceptions.i @@ -29,7 +29,7 @@ } %freefunc klass "FXRbObject::freefunc"; // some classes override this in freefuncs.i %enddef - + DO_CLASS_SETUP(FX4Splitter) DO_CLASS_SETUP(FX7Segment) DO_CLASS_SETUP(FXAccelTable) diff --git a/swig-interfaces/freefuncs.i b/swig-interfaces/freefuncs.i index 6d700c8..488560e 100644 --- a/swig-interfaces/freefuncs.i +++ b/swig-interfaces/freefuncs.i @@ -25,7 +25,7 @@ * time is defined by FXRbObject::freefunc, and it is associated with * all of the classes as part of the DO_CLASS_SETUP macro (see exceptions.i). */ - + /** * Special cases. */ diff --git a/swig-interfaces/fxdefs.i b/swig-interfaces/fxdefs.i index d731d21..6e10961 100644 --- a/swig-interfaces/fxdefs.i +++ b/swig-interfaces/fxdefs.i @@ -36,13 +36,13 @@ #define NULL 0 #endif -// FOX System Defined Selector Types +// FOX System Defined Selector Types enum FXSelType { SEL_NONE, SEL_KEYPRESS, // Key - SEL_KEYRELEASE, + SEL_KEYRELEASE, SEL_LEFTBUTTONPRESS, // Buttons - SEL_LEFTBUTTONRELEASE, + SEL_LEFTBUTTONRELEASE, SEL_MIDDLEBUTTONPRESS, SEL_MIDDLEBUTTONRELEASE, SEL_RIGHTBUTTONPRESS, @@ -52,11 +52,11 @@ enum FXSelType { SEL_LEAVE, SEL_FOCUSIN, SEL_FOCUSOUT, - SEL_KEYMAP, + SEL_KEYMAP, SEL_UNGRABBED, // Lost the grab (Windows) SEL_PAINT, // Must repaint window - SEL_CREATE, - SEL_DESTROY, + SEL_CREATE, + SEL_DESTROY, SEL_UNMAP, /// Window was hidden SEL_MAP, /// Window was shown SEL_CONFIGURE, /// Resize @@ -181,7 +181,7 @@ enum FXDragAction { DRAG_LINK = 4, /// Link DRAG_PRIVATE = 5 /// Private }; - + /// Origin of data enum FXDNDOrigin { @@ -189,7 +189,7 @@ enum FXDNDOrigin { FROM_CLIPBOARD = 1, /// Clipboard FROM_DRAGNDROP = 2 /// Drag and drop source }; - + /// Exponent display enum FXExponent { @@ -198,7 +198,7 @@ enum FXExponent { EXP_AUTO=MAYBE /// Use exponential notation if needed }; - + /// Search modes for search/replace dialogs enum { SEARCH_FORWARD = 0, /// Search forward (default) @@ -210,8 +210,8 @@ enum { SEARCH_REGEX = 8, /// Regular expression match SEARCH_PREFIX = 16 /// Prefix of subject string }; - - + + /********************************* Typedefs **********************************/ @@ -262,7 +262,7 @@ static FXuint _MKUINT(FXushort l,FXushort h){ static FXuint _FXSEL(FXushort type,FXushort id){ return FXSEL(type,id); } - + static FXushort _FXSELTYPE(FXuint s){ return FXSELTYPE(s); } @@ -272,7 +272,7 @@ static FXushort _FXSELID(FXuint s){ } %} -/// Make int out of two shorts +/// Make int out of two shorts %name(MKUINT) FXuint _MKUINT(FXushort l,FXushort h); /// Make selector from message type and message id diff --git a/swig-interfaces/macros.i b/swig-interfaces/macros.i index c5bceb5..8ed1e82 100644 --- a/swig-interfaces/macros.i +++ b/swig-interfaces/macros.i @@ -49,7 +49,7 @@ %define DECLARE_FXBITMAP_VIRTUALS(klass) %extend klass { /** - * Retrieves pixels from the server-side bitmap. + * Retrieves pixels from the server-side bitmap. */ virtual void restore(); @@ -61,7 +61,7 @@ /// Save pixel data only virtual bool savePixels(FXStream& store) const; - + /// Load pixel data virtual bool loadPixels(FXStream& store); @@ -102,7 +102,7 @@ %extend klass { /// Save pixel data only virtual bool savePixels(FXStream& store) const; - + /// Load pixel data virtual bool loadPixels(FXStream& store); } @@ -123,7 +123,7 @@ virtual void drawLines(const FXPoint* points,FXuint npoints); virtual void drawLinesRel(const FXPoint* points,FXuint npoints); virtual void drawLineSegments(const FXSegment* segments,FXuint nsegments); - + /// Draw rectangles virtual void drawRectangle(FXint x,FXint y,FXint w,FXint h); virtual void drawRectangles(const FXRectangle* rectangles,FXuint nrectangles); @@ -133,9 +133,9 @@ /** * Draw arcs. - * The argument ang1 specifies the start of the arc relative to the + * The argument ang1 specifies the start of the arc relative to the * three-o'clock position from the center, in units of degrees*64. - * The argument ang2 specifies the path and extent of the arc relative + * The argument ang2 specifies the path and extent of the arc relative * to the start of the arc, in units of degrees*64. * The arguments x,y,w,h specify the bounding rectangle. */ @@ -175,20 +175,20 @@ /// Draw focus rectangle virtual void drawFocusRectangle(FXint x,FXint y,FXint w,FXint h); - + /// Draw area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy); /// Draw stretched area from source virtual void drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh); - /// Draw image + /// Draw image virtual void drawImage(const FXImage* image,FXint dx,FXint dy); /// Draw bitmap virtual void drawBitmap(const FXBitmap* bitmap,FXint dx,FXint dy); - - /// Draw icon + + /// Draw icon virtual void drawIcon(const FXIcon* icon,FXint dx,FXint dy); virtual void drawIconShaded(const FXIcon* icon,FXint dx,FXint dy); virtual void drawIconSunken(const FXIcon* icon,FXint dx,FXint dy); @@ -201,13 +201,13 @@ /// Set foreground drawing color virtual void setForeground(FXColor clr); - + /// Set background drawing color virtual void setBackground(FXColor clr); - + /** * Set dash pattern and dash offset. - * A dash pattern of [1 2 3 4] is a repeating pattern of 1 foreground pixel, + * A dash pattern of [1 2 3 4] is a repeating pattern of 1 foreground pixel, * 2 background pixels, 3 foreground pixels, and 4 background pixels. * The offset is where in the pattern the system will start counting. * The maximum length of the dash pattern is 32. @@ -216,55 +216,55 @@ /// Set line width:- 0 means thinnest/fastest possible virtual void setLineWidth(FXuint linewidth=0); - + /// Set line cap style virtual void setLineCap(FXCapStyle capstyle=CAP_BUTT); - + /// Set line join style virtual void setLineJoin(FXJoinStyle joinstyle=JOIN_MITER); - + /// Set line style virtual void setLineStyle(FXLineStyle linestyle=LINE_SOLID); - + /// Set fill style virtual void setFillStyle(FXFillStyle fillstyle=FILL_SOLID); - + /// Set fill rule virtual void setFillRule(FXFillRule fillrule=RULE_EVEN_ODD); - + /// Set rasterop function virtual void setFunction(FXFunction func=BLT_SRC); - + /// Set the tile image virtual void setTile(FXImage* image,FXint dx=0,FXint dy=0); - - /// Set the stipple pattern + + /// Set the stipple pattern virtual void setStipple(FXBitmap *bitmap,FXint dx=0,FXint dy=0); - - /// Set the stipple pattern + + /// Set the stipple pattern virtual void setStipple(FXStipplePattern pat,FXint dx=0,FXint dy=0); - + /// Set clip region virtual void setClipRegion(const FXRegion& region); - + /// Set clip rectangle virtual void setClipRectangle(FXint x,FXint y,FXint w,FXint h); /// Change clip rectangle virtual void setClipRectangle(const FXRectangle& rectangle); - + /// Clear clipping virtual void clearClipRectangle(); - + /// Set clip mask virtual void setClipMask(FXBitmap* bitmap,FXint dx=0,FXint dy=0); - + /// Clear clip mask virtual void clearClipMask(); - + /// Set font to draw text with virtual void setFont(FXFont *fnt); - + /// Clip against child windows virtual void clipChildren(FXbool yes); } @@ -338,7 +338,7 @@ %define DECLARE_FXDRAWABLE_VIRTUALS(klass) %extend klass { - /// Resize drawable to the specified width and height + /// Resize drawable to the specified width and height virtual void resize(FXint w,FXint h); } %enddef @@ -428,7 +428,7 @@ /// Find out if the font is monotype or proportional virtual FXbool isFontMono() const; - + %extend { /// See if font has glyph for ch virtual FXbool hasChar(VALUE ch) const { @@ -446,33 +446,33 @@ } } - /// Get first character glyph in font + /// Get first character glyph in font virtual FXwchar getMinChar() const; - + /// Get last character glyph in font virtual FXwchar getMaxChar() const; /// Left bearing virtual FXint leftBearing(FXwchar ch) const; - + /// Right bearing virtual FXint rightBearing(FXwchar ch) const; - + /// Width of widest character in font virtual FXint getFontWidth() const; - + /// Height of highest character in font virtual FXint getFontHeight() const; - + /// Ascent from baseline virtual FXint getFontAscent() const; - + /// Descent from baseline virtual FXint getFontDescent() const; - + /// Get font leading [that is lead-ing as in Pb!] virtual FXint getFontLeading() const; - + /// Get font line spacing virtual FXint getFontSpacing() const; @@ -491,7 +491,7 @@ %extend klass { /// Make OpenGL context current prior to performing OpenGL commands virtual FXbool makeCurrent(); - + /// Make OpenGL context non current virtual FXbool makeNonCurrent(); @@ -585,10 +585,10 @@ %extend klass { /// Select item at index virtual FXbool selectItem(FXint index,FXbool notify=FALSE); - + /// Deselect item at index virtual FXbool deselectItem(FXint index,FXbool notify=FALSE); - + /// Toggle item at index virtual FXbool toggleItem(FXint index,FXbool notify=FALSE); @@ -608,11 +608,11 @@ virtual FXint getItemAt(FXint x,FXint y) const; /// Scroll to make item at index visible - virtual void makeItemVisible(FXint index); + virtual void makeItemVisible(FXint index); /// Enable item at index virtual FXbool enableItem(FXint index); - + /// Disable item at index virtual FXbool disableItem(FXint index); } @@ -666,7 +666,7 @@ * to divine the icon format if the parameter is omitted]. */ virtual FXImage *loadImageData(const void *pixels,const FXString& type=FXString::null) const; - + /** * Load an image of a given type (e.g. "gif") from an already open stream. * Returns NULL if there's some error loading the image. [The optional @@ -718,7 +718,7 @@ * pixels. Normally, IMAGE_DITHER is used which causes the server-side * representation to be rendered using a 16x16 ordered dither if necessary; * however if IMAGE_NEAREST is used a faster (but uglier-looking), nearest - * neighbor algorithm is used. + * neighbor algorithm is used. */ virtual void render(); @@ -727,24 +727,24 @@ * If it is not owned, the image just forgets about the buffer. */ virtual void release(); - + /** - * Rescale pixels image to the specified width and height; this calls + * Rescale pixels image to the specified width and height; this calls * resize() to adjust the client and server side representations. */ virtual void scale(FXint w,FXint h,FXint quality=0); - + /// Mirror image horizontally and/or vertically virtual void mirror(bool horizontal,bool vertical); /** - * Rotate image by degrees ccw; this calls resize() to adjust the client + * Rotate image by degrees ccw; this calls resize() to adjust the client * and server side representations if necessary. */ virtual void rotate(FXint degrees); /** - * Crop image to given rectangle; this calls resize() to adjust the client + * Crop image to given rectangle; this calls resize() to adjust the client * and server side representations. */ virtual void crop(FXint x,FXint y,FXint w,FXint h,FXColor color=0); @@ -806,28 +806,28 @@ %extend klass { /// Enable item virtual FXbool enableItem(FXint index); - + /// Disable item virtual FXbool disableItem(FXint index); - + /// Scroll to bring item into view virtual void makeItemVisible(FXint index); - + /// Return index of item at x,y, if any virtual FXint getItemAt(FXint x,FXint y) const; - + /// Select item virtual FXbool selectItem(FXint index,FXbool notify=FALSE); - + /// Deselect item virtual FXbool deselectItem(FXint index,FXbool notify=FALSE); - + /// Toggle item selection state virtual FXbool toggleItem(FXint index,FXbool notify=FALSE); /// Extend selection from anchor item to index virtual FXbool extendSelection(FXint index,FXbool notify=FALSE); - + /// Deselect all items virtual FXbool killSelection(FXbool notify=FALSE); @@ -950,10 +950,10 @@ virtual void drawContent(const FXTable* table,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; virtual void drawPattern(const FXTable* table,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; virtual void drawBackground(const FXTable* table,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; - + // Change item's text label virtual void setText(const FXString& txt); - + // Return item's text label virtual FXString getText() const; @@ -968,10 +968,10 @@ // Select item virtual void setSelected(FXbool selected); - + // Enable or disable item virtual void setEnabled(FXbool enabled); - + // Make item draggable virtual void setDraggable(FXbool draggable); @@ -995,16 +995,16 @@ // Return width of item virtual FXint getWidth(const FXTable* table) const; - + // Return height of item virtual FXint getHeight(const FXTable* table) const; - + // Create server-side resources virtual void create(); - + // Detach server-side resources virtual void detach(); - + // Destroy server-side resources virtual void destroy(); } @@ -1018,7 +1018,7 @@ virtual void drawVGrid(FXDC& dc,FXint rlo,FXint rhi,FXint clo,FXint chi); virtual void drawContents(FXDC& dc,FXint x,FXint y,FXint w,FXint h); virtual FXTableItem* createItem(const FXString& text,FXIcon* icon,void* ptr); - + /// Set the table size to nr rows and nc columns; all existing items will be removed virtual void setTableSize(FXint nr,FXint nc,FXbool notify=FALSE); @@ -1069,7 +1069,7 @@ /// Kill selection virtual FXbool killSelection(FXbool notify=FALSE); - + /** * Start input mode for the cell at the given position. * An input control is created which is used to edit the cell; @@ -1098,7 +1098,7 @@ /// Scroll to make cell at r,c fully visible virtual void makePositionVisible(FXint row_unchecked,FXint col_unchecked); - + /// Enable item virtual FXbool enableItem(FXint r,FXint c); @@ -1136,13 +1136,13 @@ /// Change style of text range virtual void changeStyle(FXint pos,FXint n,FXint style); - + /// Change style of text range from style-array virtual void changeStyle(FXint pos,const FXString& style); /// Change the text in the buffer to new text virtual void setText(const FXString& text,FXbool notify=FALSE); - + /// Change the text in the buffer to new text virtual void setStyledText(const FXString& text,FXint style=0,FXbool notify=FALSE); } @@ -1177,10 +1177,10 @@ %extend klass { // Change item label virtual void setText(const FXString& txt); - + // Change open icon, deleting the old one if it was owned virtual void setOpenIcon(FXIcon* icn,FXbool owned=FALSE); - + // Change closed icon, deleting the old one if it was owned virtual void setClosedIcon(FXIcon* icn,FXbool owned=FALSE); virtual void setFocus(FXbool focus); @@ -1210,7 +1210,7 @@ /// Extend selection from anchor item to item virtual FXbool extendSelection(FXTreeItem* item,FXbool notify=FALSE); - + /// Deselect all items virtual FXbool killSelection(FXbool notify=FALSE); @@ -1223,7 +1223,7 @@ /// Collapse tree virtual FXbool collapseTree(FXTreeItem* tree,FXbool notify=FALSE); - /// Expand tree + /// Expand tree virtual FXbool expandTree(FXTreeItem* tree,FXbool notify=FALSE); /// Change current item @@ -1304,7 +1304,7 @@ */ virtual const FXchar* tr(const FXchar* message,const FXchar* hint=NULL) const; - /// Enable this window to receive drops + /// Enable this window to receive drops virtual void dropEnable(); /// Disable this window from receiving drops diff --git a/test/TC_FXAccelTable.rb b/test/TC_FXAccelTable.rb index 1703974..e90fce8 100755 --- a/test/TC_FXAccelTable.rb +++ b/test/TC_FXAccelTable.rb @@ -15,7 +15,7 @@ class TC_FXAccelTable < Test::Unit::TestCase assert @accelTable.hasAccel?(@hotKey) assert_nil @accelTable.targetOfAccel(@hotKey) end - + def test_add_accel_with_default_seldn_selup target = FXObject.new @accelTable.addAccel(@hotKey, target) @@ -29,7 +29,7 @@ class TC_FXAccelTable < Test::Unit::TestCase def test_add_accel_with_no_defaults @accelTable.addAccel(@hotKey, FXObject.new, FXSEL(SEL_COMMAND, FXWindow::ID_SHOW), FXSEL(SEL_COMMAND, FXWindow::ID_HIDE)) end - + def test_add_accel_with_lambda_for_seldn @accelTable.addAccel(@hotKey, lambda { puts "hello" }) end @@ -47,7 +47,7 @@ class TC_FXAccelTable < Test::Unit::TestCase @accelTable.addAccel(@hotKey) assert(@accelTable.hasAccel?(@hotKey)) end - + def test_remove_accel @accelTable.addAccel(@hotKey) assert(@accelTable.hasAccel?(@hotKey)) diff --git a/test/TC_FXButton.rb b/test/TC_FXButton.rb index 0973f9a..bd0127b 100755 --- a/test/TC_FXButton.rb +++ b/test/TC_FXButton.rb @@ -9,7 +9,7 @@ class TC_FXButton < Fox::TestCase super("TC_FXButton") @button = FXButton.new(mainWindow, "buttonText") end - + def testText assert(@button.text) assert_instance_of(String, @button.text) @@ -19,11 +19,11 @@ class TC_FXButton < Fox::TestCase assert(@button.text) assert_instance_of(String, @button.text) end - + def testStyle assert(@button.buttonStyle) assert_instance_of(Fixnum, @button.buttonStyle) - + @button.buttonStyle |= BUTTON_AUTOGRAY assert((@button.buttonStyle & BUTTON_AUTOGRAY) != 0) @button.buttonStyle &= ~BUTTON_AUTOGRAY @@ -49,23 +49,23 @@ class TC_FXButton < Fox::TestCase @button.buttonStyle &= ~BUTTON_INITIAL assert((@button.buttonStyle & BUTTON_INITIAL) == 0) end - + def testState assert(@button.state) assert_kind_of(Fixnum, @button.state) - + @button.state = STATE_UP assert_equal(STATE_UP, @button.state) - + @button.state = STATE_DOWN assert_equal(STATE_DOWN, @button.state) - + @button.state = STATE_ENGAGED assert_equal(STATE_ENGAGED, @button.state) - + @button.state = STATE_CHECKED assert_equal(STATE_CHECKED, @button.state) - + @button.state = STATE_UNCHECKED assert_equal(STATE_UNCHECKED, @button.state) end diff --git a/test/TC_FXCheckButton.rb b/test/TC_FXCheckButton.rb index b2c1f54..98401ae 100755 --- a/test/TC_FXCheckButton.rb +++ b/test/TC_FXCheckButton.rb @@ -18,7 +18,7 @@ class TC_FXCheckButton < Fox::TestCase assert(!@checkButton.unchecked?) assert(!@checkButton.maybe?) end - + def test_setCheck_FALSE @checkButton.check = Fox::FALSE assert_equal(false, @checkButton.check) @@ -27,7 +27,7 @@ class TC_FXCheckButton < Fox::TestCase assert(@checkButton.unchecked?) assert(!@checkButton.maybe?) end - + def test_setCheck_MAYBE @checkButton.check = Fox::MAYBE assert_equal(true, @checkButton.check) # this is not a typo! @@ -36,7 +36,7 @@ class TC_FXCheckButton < Fox::TestCase assert(!@checkButton.unchecked?) assert(@checkButton.maybe?) end - + def test_setCheck_true @checkButton.check = true assert_equal(true, @checkButton.check) @@ -45,7 +45,7 @@ class TC_FXCheckButton < Fox::TestCase assert(!@checkButton.unchecked?) assert(!@checkButton.maybe?) end - + def test_setCheck_false @checkButton.check = false assert_equal(false, @checkButton.check) diff --git a/test/TC_FXComboBox.rb b/test/TC_FXComboBox.rb index 9cb63d8..ee83c9c 100755 --- a/test/TC_FXComboBox.rb +++ b/test/TC_FXComboBox.rb @@ -41,7 +41,7 @@ class TC_FXComboBox < Fox::TestCase assert_instance_of(FXTextField, @comboBox.children[0]) assert_instance_of(FXMenuButton, @comboBox.children[1]) end - + def test_set_current_to_none assert_nothing_raised do @comboBox.currentItem = -1 diff --git a/test/TC_FXDC.rb b/test/TC_FXDC.rb index cf09f20..8b1dac7 100755 --- a/test/TC_FXDC.rb +++ b/test/TC_FXDC.rb @@ -14,101 +14,101 @@ class TC_FXDC < Test::Unit::TestCase end @dc = FXDC.new(@app) end - + def testGetApp app = @dc.app assert(app) assert_kind_of(FXApp, app) assert_same(@app, app) end - + def testReadPixel x, y = 0, 0 pixel = @dc.readPixel(x, y) assert(pixel) end - + def testDrawPoint @dc.drawPoint(0, 0) end - + def testDrawPoints p1 = FXPoint.new p2 = FXPoint.new @dc.drawPoints([p1, p2]) end - + def testDrawPointsRel p1 = FXPoint.new p2 = FXPoint.new @dc.drawPointsRel([p1, p2]) end - + def testDrawLine x1, y1, x2, y2 = 0, 0, 5, 5 @dc.drawLine(x1, y1, x2, y2) end - + def testDrawLines points = [ FXPoint.new, FXPoint.new ] @dc.drawLines(points) end - + def testDrawLinesRel points = [ FXPoint.new, FXPoint.new ] @dc.drawLinesRel(points) end - + def testDrawLineSegments segments = [ FXSegment.new, FXSegment.new ] @dc.drawLineSegments(segments) end - + def testDrawArc x, y, w, h, ang1, ang2 = 0, 0, 10, 10, 45, 135 @dc.drawArc(x, y, w, h, ang1, ang2) end - + def testDrawArcs arcs = [ FXArc.new, FXArc.new ] @dc.drawArcs(arcs) end - + def testFillRectangle x, y, w, h = 0, 0, 20, 20 @dc.fillRectangle(x, y, w, h) end - + def testFillRectangles rectangles = [ FXRectangle.new, FXRectangle.new ] @dc.fillRectangles(rectangles) end - + def testFillArc x, y, w, h, ang1, ang2 = 0, 0, 10, 10, 45, 135 @dc.fillArc(x, y, w, h, ang1, ang2) end - + def testFillArcs arcs = [ FXArc.new, FXArc.new ] @dc.fillArcs(arcs) end - + def testFillPolygon points = [ FXPoint.new, FXPoint.new ] @dc.fillPolygon(points) end - + def testFillConcavePolygon points = [ FXPoint.new, FXPoint.new ] @dc.fillConcavePolygon(points) end - + def testFillComplexPolygon points = [ FXPoint.new, FXPoint.new ] @dc.fillComplexPolygon(points) end - + def testFillPolygonRel points = [ FXPoint.new, FXPoint.new ] @dc.fillPolygonRel(points) @@ -123,60 +123,60 @@ class TC_FXDC < Test::Unit::TestCase points = [ FXPoint.new, FXPoint.new ] @dc.fillComplexPolygonRel(points) end - + def testDrawHashBox x, y, w, h, b = 0, 0, 20, 20, 2 @dc.drawHashBox(x, y, w, h) @dc.drawHashBox(x, y, w, h, b) end - + def testDrawFocusRectangle x, y, w, h = 0, 0, 5, 5 @dc.drawFocusRectangle(x, y, w, h) end - + def testDrawArea source = FXImage.new(@app) sx, sy, sw, sh = 0, 0, 10, 10 dx, dy = 0, 0 @dc.drawArea(source, sx, sy, sw, sh, dx, dy) end - + def testDrawImage image, dx, dy = FXImage.new(@app), 0, 0 @dc.drawImage(image, dx, dy) end - + def testDrawBitmap bitmap, dx, dy = FXBitmap.new(@app), 0, 0 @dc.drawBitmap(bitmap, dx, dy) end - + def testDrawIcon icon, dx, dy = FXIcon.new(@app), 0, 0 @dc.drawIcon(icon, dx, dy) end - + def testDrawIconSunken icon, dx, dy = FXIcon.new(@app), 0, 0 @dc.drawIconSunken(icon, dx, dy) end - + def testDrawIconShaded icon, dx, dy = FXIcon.new(@app), 0, 0 @dc.drawIconShaded(icon, dx, dy) end - + def testDrawText x, y, str = 0, 0, "Hello" @dc.drawText(x, y, str) end - + def testDrawImageText x, y, str = 0, 0, "Hello" @dc.drawImageText(x, y, str) end - + def testForeground fg = FXRGB(192, 192, 192) @dc.setForeground(fg) @@ -196,7 +196,7 @@ class TC_FXDC < Test::Unit::TestCase assert_equal(bg, @dc.background) assert_equal(bg, @dc.getBackground) end - + def testDashes dashOffset, dashPattern = 0, [1, 2, 3, 4] @dc.setDashes(dashOffset, dashPattern) @@ -205,7 +205,7 @@ class TC_FXDC < Test::Unit::TestCase assert_equal(dashOffset, @dc.dashOffset) assert_equal(dashOffset, @dc.getDashOffset()) end - + def testLineWidth lineWidth = 2 @dc.setLineWidth(lineWidth) @@ -270,7 +270,7 @@ class TC_FXDC < Test::Unit::TestCase assert_equal(fillRule, @dc.getFillRule()) end end - + def testFunction for func in [BLT_CLR, BLT_SRC_AND_DST, BLT_SRC_AND_NOT_DST, BLT_SRC, BLT_NOT_SRC_AND_DST, BLT_DST, BLT_SRC_XOR_DST, BLT_SRC_OR_DST, @@ -285,7 +285,7 @@ class TC_FXDC < Test::Unit::TestCase assert_equal(func, @dc.getFunction()) end end - + def testTile image, dx, dy = FXImage.new(@app), 0, 0 @dc.setTile(image) @@ -294,7 +294,7 @@ class TC_FXDC < Test::Unit::TestCase assert_same(image, @dc.tile) assert_same(image, @dc.getTile()) end - + def testStippleBitmap bitmap, dx, dy = FXBitmap.new(@app), 0, 0 @dc.setStipple(bitmap) @@ -303,7 +303,7 @@ class TC_FXDC < Test::Unit::TestCase assert_same(bitmap, @dc.stippleBitmap) assert_same(bitmap, @dc.getStippleBitmap()) end - + def testStipplePattern dx, dy = 0, 0 patterns = [STIPPLE_0, STIPPLE_NONE, STIPPLE_BLACK, STIPPLE_1, @@ -320,12 +320,12 @@ class TC_FXDC < Test::Unit::TestCase assert_equal(pat, @dc.getStipplePattern()) end end - + # def testClipRegion # region = FXRegion.new(0, 0, 10, 10) # @dc.setClipRegion(region) # end - + def testClipRectangle clipX, clipY, clipWidth, clipHeight = 0, 0, 10, 20 clipRectangle = FXRectangle.new(clipX, clipY, clipWidth, clipHeight) @@ -343,10 +343,10 @@ class TC_FXDC < Test::Unit::TestCase # assert_equal(clipWidth, @dc.clipWidth) # assert_equal(clipHeight, @dc.clipHeight) # assert_equal(clipRectangle, @dc.clipRectangle) - + @dc.clearClipRectangle end - + def testClipMask bitmap, dx, dy = FXBitmap.new(@app), 0, 0 @dc.setClipMask(bitmap) @@ -354,7 +354,7 @@ class TC_FXDC < Test::Unit::TestCase @dc.setClipMask(bitmap, dx, dy) @dc.clearClipMask end - + def testTextFont textFont = @app.normalFont @dc.setFont(textFont) @@ -364,7 +364,7 @@ class TC_FXDC < Test::Unit::TestCase assert_same(textFont, @dc.font) assert_same(textFont, @dc.getFont()) end - + def testClipChildren @dc.clipChildren(true) @dc.clipChildren(false) diff --git a/test/TC_FXDialogBox.rb b/test/TC_FXDialogBox.rb index 442414c..6d092fb 100644 --- a/test/TC_FXDialogBox.rb +++ b/test/TC_FXDialogBox.rb @@ -9,4 +9,4 @@ class TC_FXDialogBox < Test::Unit::TestCase FXDialogBox.new(nil, "title") end end -end \ No newline at end of file +end diff --git a/test/TC_FXExtentd.rb b/test/TC_FXExtentd.rb index 3aee996..8e4260e 100755 --- a/test/TC_FXExtentd.rb +++ b/test/TC_FXExtentd.rb @@ -8,12 +8,12 @@ class TC_FXExtentd < Test::Unit::TestCase e = FXExtentd.new(0, 1, 0, 1) assert_same e.lower, e.lower end - + def test_upper_always_returns_same_instance e = FXExtentd.new(0, 1, 0, 1) assert_same e.upper, e.upper end - + def test_index_always_returns_same_instance e = FXExtentd.new(0, 1, 0, 1) assert_same e[0], e[0] diff --git a/test/TC_FXExtentf.rb b/test/TC_FXExtentf.rb index b9e5263..5ac00c7 100755 --- a/test/TC_FXExtentf.rb +++ b/test/TC_FXExtentf.rb @@ -8,12 +8,12 @@ class TC_FXExtentf < Test::Unit::TestCase e = FXExtentf.new(0, 1, 0, 1) assert_same e.lower, e.lower end - + def test_upper_always_returns_same_instance e = FXExtentf.new(0, 1, 0, 1) assert_same e.upper, e.upper end - + def test_index_always_returns_same_instance e = FXExtentf.new(0, 1, 0, 1) assert_same e[0], e[0] diff --git a/test/TC_FXFileAssoc.rb b/test/TC_FXFileAssoc.rb index d6bcac4..384c551 100755 --- a/test/TC_FXFileAssoc.rb +++ b/test/TC_FXFileAssoc.rb @@ -10,22 +10,22 @@ class TC_FXFileAssoc < Test::Unit::TestCase @icon = FXIcon.new(@app) @fileassoc = FXFileAssoc.new end - + def test_command @fileassoc.command = "netscape" assert_equal("netscape", @fileassoc.command) end - + def test_extension @fileassoc.extension = ".html" assert_equal(".html", @fileassoc.extension) end - + def test_mimetype @fileassoc.mimetype = "mimetype" assert_equal("mimetype", @fileassoc.mimetype) end - + def test_bigicon @fileassoc.bigicon = @icon assert_kind_of(FXIcon, @fileassoc.bigicon) @@ -54,7 +54,7 @@ class TC_FXFileAssoc < Test::Unit::TestCase @fileassoc.dragtype = 0 assert_equal(0, @fileassoc.dragtype) end - + def test_flags @fileassoc.flags = 0 assert_equal(0, @fileassoc.flags) diff --git a/test/TC_FXFileStream.rb b/test/TC_FXFileStream.rb index fa3ba0d..6f3f926 100755 --- a/test/TC_FXFileStream.rb +++ b/test/TC_FXFileStream.rb @@ -12,7 +12,7 @@ class TC_FXFileStream < Test::Unit::TestCase def test_container assert_nil(@filestream.container) end - + def test_open_non_existing_file assert_equal(FXStreamDead, @filestream.direction) status = @filestream.open("non_existing_file", FXStreamLoad) @@ -39,7 +39,7 @@ class TC_FXFileStream < Test::Unit::TestCase assert(status) assert_equal(FXStreamDead, @filestream.direction) end - + def test_status assert_equal(FXStreamOK, @filestream.status) @filestream.open("README", FXStreamLoad) @@ -47,7 +47,7 @@ class TC_FXFileStream < Test::Unit::TestCase @filestream.close assert_equal(FXStreamOK, @filestream.status) end - + def test_position @filestream.open("README", FXStreamLoad) assert_equal(0, @filestream.position) @@ -55,7 +55,7 @@ class TC_FXFileStream < Test::Unit::TestCase assert_equal(500, @filestream.position) @filestream.close end - + def test_exceptions # Non-existing file assert_raises(FXStreamNoReadError) { @@ -80,7 +80,7 @@ class TC_FXFileStream < Test::Unit::TestCase FXFileStream.open(tf.path, FXStreamSave) { |s| } } end - + def teardown if File.exists?("goobers") FileUtils.rm_f("goobers") diff --git a/test/TC_FXFoldingList.rb b/test/TC_FXFoldingList.rb index 23d949e..2b250bf 100755 --- a/test/TC_FXFoldingList.rb +++ b/test/TC_FXFoldingList.rb @@ -5,7 +5,7 @@ require 'fox16' class TC_FXFoldingList < Fox::TestCase include Fox - + def setup super(self.class.name) @foldingList = FXFoldingList.new(mainWindow) @@ -16,7 +16,7 @@ class TC_FXFoldingList < Fox::TestCase @foldingList.each { |item| count += 1 } assert_equal(0, count, "count for empty list should be zero") end - + def test_each @foldingList.appendItem(nil, "1") @foldingList.appendItem(nil, "2") @@ -27,6 +27,6 @@ class TC_FXFoldingList < Fox::TestCase @foldingList.each { |item| count += 1 } assert_equal(5, count, "count didn't match expected number of items") end - + end diff --git a/test/TC_FXFont.rb b/test/TC_FXFont.rb index b683344..72173a2 100755 --- a/test/TC_FXFont.rb +++ b/test/TC_FXFont.rb @@ -7,7 +7,7 @@ class TC_FXFont < Test::Unit::TestCase def setup if FXApp.instance.nil? - @app = FXApp.new('TC_FXFont', 'FoxTest') + @app = FXApp.new('TC_FXFont', 'FoxTest') else @app = FXApp.instance end @@ -44,7 +44,7 @@ class TC_FXFont < Test::Unit::TestCase def testConstructFromFontString font = FXFont.new(@app, "") end - + def testGetTextWidthAndHeight font = FXFont.new(@app, "Times", 10) assert(font.getTextWidth("Test") > 0) @@ -56,7 +56,7 @@ class TC_FXFont < Test::Unit::TestCase assert_instance_of(Array, fonts) assert(fonts.length > 0) end - + def test_hasChar? @app.normalFont.create assert(@app.normalFont.hasChar('a')) diff --git a/test/TC_FXGLGroup.rb b/test/TC_FXGLGroup.rb index c98fe00..a77852e 100755 --- a/test/TC_FXGLGroup.rb +++ b/test/TC_FXGLGroup.rb @@ -19,7 +19,7 @@ class TC_FXGLGroup < Test::Unit::TestCase @group << FXGLObject.new assert_equal(1, @group.size) end - + def test_each_child_yields_to_block @group << FXGLObject.new @group << FXGLObject.new diff --git a/test/TC_FXHeader.rb b/test/TC_FXHeader.rb index 7f0ca8c..0f39e47 100755 --- a/test/TC_FXHeader.rb +++ b/test/TC_FXHeader.rb @@ -45,7 +45,7 @@ class TC_FXHeader < Fox::TestCase @header.setArrowDir(0, Fox::MAYBE) assert_same(true, @header.arrowMaybe?(0)) end - + def test_SEL_REPLACED @header.appendItem("One") @header.appendItem("Two") @@ -56,7 +56,7 @@ class TC_FXHeader < Fox::TestCase @header.setItem(1, "", nil, 0, nil, true) assert_equal(1, itemIndex) end - + def test_SEL_INSERTED @header.appendItem("One") @header.appendItem("Two") @@ -67,7 +67,7 @@ class TC_FXHeader < Fox::TestCase @header.insertItem(1, "One Point Five", nil, 0, nil, true) assert_equal(1, itemIndex) end - + def test_SEL_DELETED @header.appendItem("One") @header.appendItem("Two") diff --git a/test/TC_FXIconDict.rb b/test/TC_FXIconDict.rb index 86573c8..61667c5 100755 --- a/test/TC_FXIconDict.rb +++ b/test/TC_FXIconDict.rb @@ -8,7 +8,7 @@ class TC_FXIconDict < Fox::TestCase def setup super(self.class.name) end - + def test_defaultIconPath_s assert_equal("~/.foxicons:/usr/local/share/icons:/usr/share/icons", FXIconDict.defaultIconPath) end @@ -17,19 +17,19 @@ class TC_FXIconDict < Fox::TestCase iconDict = FXIconDict.new(app) assert(iconDict.empty?) end - + def test_defaultIconPath iconDict = FXIconDict.new(app) assert_equal(FXIconDict.defaultIconPath, iconDict.iconPath) end - + def test_iconPath iconDict = FXIconDict.new(app, "foo") assert_equal("foo", iconDict.iconPath) iconDict.iconPath = "bar" assert_equal("bar", iconDict.iconPath) end - + def test_insert end =begin @@ -40,7 +40,7 @@ class TC_FXIconDict < Fox::TestCase assert_nil(iconDict.remove("gnu-animal.xpm")) assert_equal(0, iconDict.size) end - + def test_remove_nonexistent_icon iconDict = FXIconDict.new(app) assert_nil(iconDict.remove("xxxxx.png")) diff --git a/test/TC_FXIconList.rb b/test/TC_FXIconList.rb index 6da18f1..65ee8f8 100755 --- a/test/TC_FXIconList.rb +++ b/test/TC_FXIconList.rb @@ -19,14 +19,14 @@ private @iconList.send(meth, 0, *args) } end - + public def setup super('TC_FXIconList') @iconList = FXIconList.new(mainWindow) end - + def test_appendItem_byItem items = [] 0.upto(4) do |i| @@ -54,17 +54,17 @@ public @iconList << FXIconItem.new("item3") assert_equal(3, @iconList.numItems) end - + def test_removeHeader @iconList.appendHeader("One") checkBounds(:removeHeader) end - + def test_setHeaderText @iconList.appendHeader("One") checkBounds(:setHeaderText, "Foo") end - + def test_getHeaderText @iconList.appendHeader("Boo") checkBounds(:getHeaderText) @@ -74,22 +74,22 @@ public @iconList.appendHeader("Boo") checkBounds(:setHeaderIcon, nil) end - + def test_getHeaderIcon @iconList.appendHeader("Boo") checkBounds(:getHeaderIcon) end - + def test_setHeaderSize @iconList.appendHeader("Boo") checkBounds(:setHeaderSize, 0) end - + def test_getHeaderSize @iconList.appendHeader("Boo") checkBounds(:getHeaderSize) end - + def test_getItem @iconList.appendItem("Foo") assert_equal(1, @iconList.numItems) @@ -131,7 +131,7 @@ public @iconList.setItem(1, "", nil, nil, nil, true) assert_equal(1, itemIndex) end - + def test_SEL_INSERTED @iconList.appendItem("One") @iconList.appendItem("Two") @@ -142,7 +142,7 @@ public @iconList.insertItem(1, "One Point Five", nil, nil, nil, true) assert_equal(1, itemIndex) end - + def test_SEL_DELETED @iconList.appendItem("One") @iconList.appendItem("Two") @@ -176,7 +176,7 @@ public @iconList.deselectItem(1, true) assert_equal(1, itemIndex) end - + def test_makeItemVisible items = [] 0.upto(2) { |i| diff --git a/test/TC_FXImage.rb b/test/TC_FXImage.rb index 7eccebf..64f6c88 100755 --- a/test/TC_FXImage.rb +++ b/test/TC_FXImage.rb @@ -16,7 +16,7 @@ class TC_FXImage < Fox::TestCase assert_equal(1, img.width) assert_equal(1, img.height) end - + def test_default_constructor_args_2 img = FXImage.new(app, nil) assert_same(nil, img.data) @@ -96,7 +96,7 @@ class TC_FXImage < Fox::TestCase assert_not_nil(img.data) assert_not_equal(0, img.options&IMAGE_OWNED) end - + # Render client-side pixel buffer into pixmap def test_render # Test without client-side pixel buffer @@ -110,46 +110,46 @@ class TC_FXImage < Fox::TestCase img.scale(2, 2, 0) img.scale(2, 2, 1) end - + def test_mirror end - + def test_rotate end - + def test_crop end - + def test_fill end - + def test_fade end - + def test_xshear end - + def test_yshear end - + def test_hgradient end - + def test_vgradient end - + def test_gradient end - + def test_blend end - + def test_savePixels end - + def test_loadPixels end - + =end end diff --git a/test/TC_FXList.rb b/test/TC_FXList.rb index 2628f1c..594e94f 100755 --- a/test/TC_FXList.rb +++ b/test/TC_FXList.rb @@ -9,12 +9,12 @@ class TC_FXList < Fox::TestCase super(self.class.name) @list = FXList.new(mainWindow) end - + def test_numVisible @list.numVisible = 7 assert_equal(7, @list.numVisible) end - + def test_appendItem_byItem items = [] 0.upto(4) do |i| @@ -42,7 +42,7 @@ class TC_FXList < Fox::TestCase @list << FXListItem.new("item3") assert_equal(3, @list.numItems) end - + def test_appendItem_byText assert_equal(0, @list.numItems) itemIndex = @list.appendItem("") @@ -62,7 +62,7 @@ class TC_FXList < Fox::TestCase end assert_equal(6, @list.numItems) end - + def test_getItem assert_raises(IndexError) { @list.getItem(0) @@ -100,7 +100,7 @@ class TC_FXList < Fox::TestCase assert_equal(0, @list.moveItem(0, 1)) assert_equal(1, @list.moveItem(1, 0)) end - + def test_makeItemVisible items = [] 0.upto(2) { |i| diff --git a/test/TC_FXListBox.rb b/test/TC_FXListBox.rb index 526f191..3bffbb8 100755 --- a/test/TC_FXListBox.rb +++ b/test/TC_FXListBox.rb @@ -9,7 +9,7 @@ class TC_FXListBox < Fox::TestCase super(self.class.name) @listBox = FXListBox.new(mainWindow) end - + def test_appendItem assert_equal(0, @listBox.numItems) @listBox.appendItem("An item") diff --git a/test/TC_FXMainWindow.rb b/test/TC_FXMainWindow.rb index 67ebdb4..01fb158 100644 --- a/test/TC_FXMainWindow.rb +++ b/test/TC_FXMainWindow.rb @@ -9,11 +9,11 @@ class TC_FXMainWindow < Test::Unit::TestCase FXMainWindow.new(nil, "title") end end - + def test_non_created_app_raises_runtime_error app = FXApp.new assert_raise RuntimeError do FXMainWindow.new(app, "title").create end end -end \ No newline at end of file +end diff --git a/test/TC_FXMat4f.rb b/test/TC_FXMat4f.rb index b48c3c3..a6c0fd9 100755 --- a/test/TC_FXMat4f.rb +++ b/test/TC_FXMat4f.rb @@ -7,18 +7,18 @@ class TC_FXMat4f < Test::Unit::TestCase def setup @hmat = FXMat4f.new end - + def test_initialize h = FXMat4f.new assert_instance_of(FXMat4f, h) end - + def test_from_w w = 0.0 h = FXMat4f.new(w) assert_instance_of(FXMat4f, h) end - + def test_from_elements a00, a01, a02, a03 = 0.0, 0.0, 0.0, 0.0 a10, a11, a12, a13 = 0.0, 0.0, 0.0, 0.0 @@ -30,7 +30,7 @@ class TC_FXMat4f < Test::Unit::TestCase a30, a31, a32, a33) assert_instance_of(FXMat4f, h) end - + def test_from_row_vectors a = FXVec4f.new(0.0, 0.0, 0.0, 0.0) b = FXVec4f.new(0.0, 0.0, 0.0, 0.0) @@ -39,14 +39,14 @@ class TC_FXMat4f < Test::Unit::TestCase h = FXMat4f.new(a, b, c, d) assert_instance_of(FXMat4f, h) end - + def test_copy anotherHMat = FXMat4f.new(@hmat) assert_instance_of(FXMat4f, anotherHMat) assert_not_same(@hmat, anotherHMat) # assert_equal(@hmat, anotherHMat) end - + def test_add anotherMat = FXMat4f.new sum1 = anotherMat + @hmat @@ -55,12 +55,12 @@ class TC_FXMat4f < Test::Unit::TestCase assert_instance_of(FXMat4f, sum2) # assert_equal(sum1, sum2) end - + def test_neg neg = -@hmat assert_instance_of(FXMat4f, neg) end - + def test_sub anotherMat = FXMat4f.new diff1 = anotherMat - @hmat @@ -69,7 +69,7 @@ class TC_FXMat4f < Test::Unit::TestCase assert_instance_of(FXMat4f, diff2) # assert_equal(diff1, -diff2) end - + def test_mul_matrices a = FXMat4f.new b = FXMat4f.new @@ -77,7 +77,7 @@ class TC_FXMat4f < Test::Unit::TestCase assert_instance_of(FXMat4f, product) # assert_equal(product, b*a) end - + def test_mul_by_scalar p = FXMat4f.new.eye q = FXMat4f.new(4.0, 0.0, 0.0, 0.0, @@ -88,106 +88,106 @@ class TC_FXMat4f < Test::Unit::TestCase assert_instance_of(FXMat4f, r) # assert_equal(q, r) end - + def test_div quotient = @hmat/2.0 assert_instance_of(FXMat4f, quotient) end - + def test_det det = @hmat.det assert_instance_of(Float, det) end - + def test_transpose transposed = @hmat.transpose assert_instance_of(FXMat4f, transposed) end - + def test_invert identity = FXMat4f.new.eye inverted = identity.invert assert_instance_of(FXMat4f, inverted) end - + def test_eye eye = @hmat.eye assert_same(@hmat, eye) end - + def test_ortho left, right, bottom, top, hither, yon = 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 ortho = @hmat.ortho(left, right, bottom, top, hither, yon) assert_same(@hmat, ortho) end - + def test_frustum left, right, bottom, top, hither, yon = 0.0, 1.0, 0.0, 1.0, 0.1, 1.0 frustum = @hmat.frustum(left, right, bottom, top, hither, yon) assert_same(@hmat, frustum) end - + def test_left left = @hmat.left assert_same(@hmat, left) end - + def test_rot_q q = FXQuatf.new rot = @hmat.rot(q) assert_same(@hmat, rot) end - + def test_rot_c_s_axis axis = FXVec3f.new c, s = 0.0, 0.0 rot = @hmat.rot(axis, c, s) assert_same(@hmat, rot) end - + def test_rot_phi_axis axis = FXVec3f.new phi = 45.0 rot = @hmat.rot(axis, phi) assert_same(@hmat, rot) end - + def test_xrot_c_s c, s = 0.0, 0.0 xrot = @hmat.xrot(c, s) assert_same(@hmat, xrot) end - + def test_xrot_phi phi = 22.5 xrot = @hmat.xrot(phi) assert_same(@hmat, xrot) end - + def test_yrot_c_s c, s = 0.0, 0.0 yrot = @hmat.yrot(c, s) assert_same(@hmat, yrot) end - + def test_yrot_phi phi = 22.5 yrot = @hmat.yrot(phi) assert_same(@hmat, yrot) end - + def test_zrot_c_s c, s = 0.0, 0.0 zrot = @hmat.zrot(c, s) assert_same(@hmat, zrot) end - + def test_zrot_phi phi = 22.5 zrot = @hmat.zrot(phi) assert_same(@hmat, zrot) end - + def test_look eye = FXVec3f.new cntr = FXVec3f.new @@ -195,31 +195,31 @@ class TC_FXMat4f < Test::Unit::TestCase look = @hmat.look(eye, cntr, vup) assert_same(@hmat, look) end - + def test_trans_txyz tx, ty, tz = 0.0, 0.0, 0.0 translated = @hmat.trans(tx, ty, tz) assert_same(@hmat, translated) end - + def test_trans_vec v = FXVec3f.new(0.0, 0.0, 0.0) translated = @hmat.trans(v) assert_same(@hmat, translated) end - + def test_scale_sxyz sx, sy, sz = 1.0, 1.0, 1.0 scaled = @hmat.scale(sx, sy, sz) assert_same(@hmat, scaled) end - + def test_scale_s s = 1.0 scaled = @hmat.scale(s) assert_same(@hmat, scaled) end - + def test_scale_vec v = FXVec3f.new(1.0, 1.0, 1.0) scaled = @hmat.scale(v) diff --git a/test/TC_FXMaterial.rb b/test/TC_FXMaterial.rb index 4908dea..bd006e5 100755 --- a/test/TC_FXMaterial.rb +++ b/test/TC_FXMaterial.rb @@ -8,11 +8,11 @@ class TC_FXMaterial < Test::Unit::TestCase DELTA = 1.0e-6 - + def setup @mat = FXMaterial.new end - + def test_ambient @mat.ambient = [0.5, 0.6, 0.7, 0.8] assert_in_delta(0.5, @mat.ambient[0], DELTA) @@ -26,7 +26,7 @@ class TC_FXMaterial < Test::Unit::TestCase assert_in_delta(0.7, @mat.ambient[2], DELTA) assert_in_delta(0.8, @mat.ambient[3], DELTA) end - + def test_diffuse @mat.diffuse = [0.5, 0.6, 0.7, 0.8] assert_in_delta(0.5, @mat.diffuse[0], DELTA) @@ -40,7 +40,7 @@ class TC_FXMaterial < Test::Unit::TestCase assert_in_delta(0.7, @mat.diffuse[2], DELTA) assert_in_delta(0.8, @mat.diffuse[3], DELTA) end - + def test_emission @mat.emission = [0.5, 0.6, 0.7, 0.8] assert_in_delta(0.5, @mat.emission[0], DELTA) @@ -54,7 +54,7 @@ class TC_FXMaterial < Test::Unit::TestCase assert_in_delta(0.7, @mat.emission[2], DELTA) assert_in_delta(0.8, @mat.emission[3], DELTA) end - + def test_shininess @mat.shininess = 0.5 assert_in_delta(0.5, @mat.shininess, DELTA) diff --git a/test/TC_FXMemoryStream.rb b/test/TC_FXMemoryStream.rb index 78abce7..ea0dda0 100755 --- a/test/TC_FXMemoryStream.rb +++ b/test/TC_FXMemoryStream.rb @@ -8,7 +8,7 @@ class TC_FXMemoryStream < Test::Unit::TestCase DEFAULT_BUFFER_SIZE = 16 private - + def assert_closed(stream) stream.open(FXStreamSave, nil) == false end @@ -89,7 +89,7 @@ class TC_FXMemoryStream < Test::Unit::TestCase def test_giveBuffer FXMemoryStream.open(FXStreamLoad, nil) do |stream| - assert_equal(DEFAULT_BUFFER_SIZE, stream.space) + assert_equal(DEFAULT_BUFFER_SIZE, stream.space) stream.giveBuffer("foo") assert_equal(3, stream.space) end diff --git a/test/TC_FXMenuCheck.rb b/test/TC_FXMenuCheck.rb index 86237d5..5565268 100755 --- a/test/TC_FXMenuCheck.rb +++ b/test/TC_FXMenuCheck.rb @@ -9,7 +9,7 @@ class TC_FXMenuCheck < Fox::TestCase super(self.class.name) @menuCheck = FXMenuCheck.new(mainWindow, "menuCheck") end - + def test_setCheck_TRUE @menuCheck.check = Fox::TRUE assert_equal(true, @menuCheck.check) @@ -18,7 +18,7 @@ class TC_FXMenuCheck < Fox::TestCase assert(!@menuCheck.unchecked?) assert(!@menuCheck.maybe?) end - + def test_setCheck_FALSE @menuCheck.check = Fox::FALSE assert_equal(false, @menuCheck.check) @@ -27,7 +27,7 @@ class TC_FXMenuCheck < Fox::TestCase assert(@menuCheck.unchecked?) assert(!@menuCheck.maybe?) end - + def test_setCheck_MAYBE @menuCheck.check = Fox::MAYBE assert_equal(true, @menuCheck.check) # this is not a typo! @@ -36,7 +36,7 @@ class TC_FXMenuCheck < Fox::TestCase assert(!@menuCheck.unchecked?) assert(@menuCheck.maybe?) end - + def test_setCheck_true @menuCheck.check = true assert_equal(true, @menuCheck.check) @@ -45,7 +45,7 @@ class TC_FXMenuCheck < Fox::TestCase assert(!@menuCheck.unchecked?) assert(!@menuCheck.maybe?) end - + def test_setCheck_false @menuCheck.check = false assert_equal(false, @menuCheck.check) diff --git a/test/TC_FXMessageBox.rb b/test/TC_FXMessageBox.rb index b8ebcc3..372d2b1 100755 --- a/test/TC_FXMessageBox.rb +++ b/test/TC_FXMessageBox.rb @@ -8,17 +8,17 @@ class TC_FXMessageBox < Fox::TestCase def setup super(self.class.name) end - + def test_construct_with_save_cancel_dontsave assert_nothing_raised(RangeError) do FXMessageBox.new(mainWindow, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE) end end - + def test_mbox_clicked_dontsave_defined assert(Fox.const_defined?(:MBOX_CLICKED_DONTSAVE)) end - + def test_mbox_clicked_dontsave_equal_to_mbox_clicked_no assert_equal(MBOX_CLICKED_NO, MBOX_CLICKED_DONTSAVE) end diff --git a/test/TC_FXPoint.rb b/test/TC_FXPoint.rb index 7a129bb..4cd0cfb 100755 --- a/test/TC_FXPoint.rb +++ b/test/TC_FXPoint.rb @@ -20,7 +20,7 @@ class TC_FXPoint < Test::Unit::TestCase # FXPoint's '==' method, which is the point of this test def test_equals assert_equal(@point2, @point3) - + samePoint1 = FXPoint.new samePoint1.x = @point1.x samePoint1.y = @point1.y diff --git a/test/TC_FXRadioButton.rb b/test/TC_FXRadioButton.rb index 0ee23c2..0cf2e0b 100755 --- a/test/TC_FXRadioButton.rb +++ b/test/TC_FXRadioButton.rb @@ -18,7 +18,7 @@ class TC_FXRadioButton < Fox::TestCase assert(!@radioButton.unchecked?) assert(!@radioButton.maybe?) end - + def test_setCheck_FALSE @radioButton.check = Fox::FALSE assert_equal(false, @radioButton.check) @@ -27,7 +27,7 @@ class TC_FXRadioButton < Fox::TestCase assert(@radioButton.unchecked?) assert(!@radioButton.maybe?) end - + def test_setCheck_MAYBE @radioButton.check = Fox::MAYBE assert_equal(true, @radioButton.check) # this is not a typo! @@ -36,7 +36,7 @@ class TC_FXRadioButton < Fox::TestCase assert(!@radioButton.unchecked?) assert(@radioButton.maybe?) end - + def test_setCheck_true @radioButton.check = true assert_equal(true, @radioButton.check) @@ -45,7 +45,7 @@ class TC_FXRadioButton < Fox::TestCase assert(!@radioButton.unchecked?) assert(!@radioButton.maybe?) end - + def test_setCheck_false @radioButton.check = false assert_equal(false, @radioButton.check) diff --git a/test/TC_FXRanged.rb b/test/TC_FXRanged.rb index 0308711..87da269 100755 --- a/test/TC_FXRanged.rb +++ b/test/TC_FXRanged.rb @@ -11,11 +11,11 @@ class TC_FXRanged < Test::Unit::TestCase def setup @range = FXRanged.new(0, WIDTH, 0, HEIGHT, 0, DEPTH) end - + def test_lower_is_a_vector assert_instance_of(FXVec3d, @range.lower) end - + def test_upper_is_a_vector assert_instance_of(FXVec3d, @range.upper) end @@ -23,7 +23,7 @@ class TC_FXRanged < Test::Unit::TestCase def test_width assert_equal(@range.width, WIDTH) end - + def test_height assert_equal(@range.height, HEIGHT) end diff --git a/test/TC_FXRangef.rb b/test/TC_FXRangef.rb index 2353efd..f1819f9 100755 --- a/test/TC_FXRangef.rb +++ b/test/TC_FXRangef.rb @@ -11,11 +11,11 @@ class TC_FXRangef < Test::Unit::TestCase def setup @range = FXRangef.new(0, WIDTH, 0, HEIGHT, 0, DEPTH) end - + def test_lower_is_a_vector assert_instance_of(FXVec3f, @range.lower) end - + def test_upper_is_a_vector assert_instance_of(FXVec3f, @range.upper) end @@ -23,7 +23,7 @@ class TC_FXRangef < Test::Unit::TestCase def test_width assert_equal(@range.width, WIDTH) end - + def test_height assert_equal(@range.height, HEIGHT) end diff --git a/test/TC_FXRegion.rb b/test/TC_FXRegion.rb index 058fa73..13dee75 100755 --- a/test/TC_FXRegion.rb +++ b/test/TC_FXRegion.rb @@ -36,7 +36,7 @@ class TC_FXRegion < Test::Unit::TestCase # Definitely out of bounds assert(!@region.contains?(2, 3)) - # Definitely in bounds + # Definitely in bounds assert(@region.contains?(6, 6)) # Check corners too diff --git a/test/TC_FXScrollArea.rb b/test/TC_FXScrollArea.rb index b64e28e..23546cb 100755 --- a/test/TC_FXScrollArea.rb +++ b/test/TC_FXScrollArea.rb @@ -17,7 +17,7 @@ class TC_FXScrollArea < Fox::TestCase assert_kind_of(Integer, pos[0]) assert_kind_of(Integer, pos[1]) end - + def test_setPosition @scrollArea.setPosition(0, 0) end diff --git a/test/TC_FXScrollWindow.rb b/test/TC_FXScrollWindow.rb index f4ca615..8292391 100755 --- a/test/TC_FXScrollWindow.rb +++ b/test/TC_FXScrollWindow.rb @@ -17,7 +17,7 @@ class TC_FXScrollWindow < Fox::TestCase assert_kind_of(Integer, pos[0]) assert_kind_of(Integer, pos[1]) end - + def test_setPosition @scrollWindow.setPosition(0, 0) end diff --git a/test/TC_FXSettings.rb b/test/TC_FXSettings.rb index a5b962a..d73dabc 100755 --- a/test/TC_FXSettings.rb +++ b/test/TC_FXSettings.rb @@ -9,7 +9,7 @@ class TC_FXSettings < Fox::TestCase def setup super(self.class.name) end - + def test_each_section_empty_settings empty = FXSettings.new num_sections = 0 @@ -18,7 +18,7 @@ class TC_FXSettings < Fox::TestCase end assert_equal(0, num_sections) end - + def test_each_section settings = FXSettings.new settings.writeStringEntry('sect1', 'key1', 'value1') diff --git a/test/TC_FXShell.rb b/test/TC_FXShell.rb index dd9c2e1..08be543 100755 --- a/test/TC_FXShell.rb +++ b/test/TC_FXShell.rb @@ -14,11 +14,11 @@ class TC_FXShell < Test::Unit::TestCase end @mainWin = FXMainWindow.new(@app, 'TC_FXShell') end - + def test_new # Free-floating shell1 = FXShell.new(@app, 0, 0, 0, 0, 0) - + # Owned shell2 = FXShell.new(@mainWin, 0, 0, 0, 0, 0) assert_same(@mainWin, shell2.owner) diff --git a/test/TC_FXTopWindow.rb b/test/TC_FXTopWindow.rb index 849aabc..022897b 100755 --- a/test/TC_FXTopWindow.rb +++ b/test/TC_FXTopWindow.rb @@ -14,14 +14,14 @@ class TC_FXTopWindow < Test::Unit::TestCase end @mainWin = FXMainWindow.new(@app, 'TC_FXButton') end - + def test_new # Free-floating top1 = FXTopWindow.new(@app, "top1", nil, nil, DECOR_ALL, 0, 0, 0, 0, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_SPACING, DEFAULT_SPACING) assert_equal("top1", top1.title) - + # Owned top2 = FXTopWindow.new(@mainWin, "top2", nil, nil, DECOR_ALL, 0, 0, 0, 0, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, DEFAULT_PAD, diff --git a/test/TC_FXTreeList.rb b/test/TC_FXTreeList.rb index 38cfe61..d72ca29 100755 --- a/test/TC_FXTreeList.rb +++ b/test/TC_FXTreeList.rb @@ -11,7 +11,7 @@ class TC_FXTreeList < Fox::TestCase (TREELIST_BROWSESELECT|TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES| TREELIST_ROOT_BOXES|LAYOUT_FILL_X|LAYOUT_FILL_Y)) end - + def test_firstItem assert_nil(@treeList.firstItem) item = @treeList.prependItem(nil, "first") @@ -70,7 +70,7 @@ class TC_FXTreeList < Fox::TestCase theItem = @treeList.appendItem(nil, "", nil, nil, nil, true) assert_same(theItem, anItem) end - + def test_SEL_DELETED theItem = @treeList.appendItem(nil, "") anItem = nil @@ -86,7 +86,7 @@ class TC_FXTreeList < Fox::TestCase @treeList.each { |item| count += 1 } assert_equal(0, count, "count for empty list should be zero") end - + def test_each @treeList.appendItem(nil, "1") @treeList.appendItem(nil, "2") @@ -96,5 +96,5 @@ class TC_FXTreeList < Fox::TestCase @treeList.each { |item| count += 1 } assert_equal(4, count, "count didn't match expected number of items") end - + end diff --git a/test/TC_FXTreeListBox.rb b/test/TC_FXTreeListBox.rb index 8f054c5..ebbcf4d 100755 --- a/test/TC_FXTreeListBox.rb +++ b/test/TC_FXTreeListBox.rb @@ -5,7 +5,7 @@ require 'fox16' class TC_FXTreeListBox < Fox::TestCase include Fox - + def setup super(self.class.name) @treeListBox = FXTreeListBox.new(mainWindow) @@ -26,7 +26,7 @@ class TC_FXTreeListBox < Fox::TestCase @treeListBox.each { |item| count += 1 } assert_equal(0, count, "count for empty list should be zero") end - + def test_each @treeListBox.appendItem(nil, "1") @treeListBox.appendItem(nil, "2") @@ -36,6 +36,6 @@ class TC_FXTreeListBox < Fox::TestCase @treeListBox.each { |item| count += 1 } assert_equal(4, count, "count didn't match expected number of items") end - + end diff --git a/test/TC_FXVec2d.rb b/test/TC_FXVec2d.rb index 5edd199..0400b20 100755 --- a/test/TC_FXVec2d.rb +++ b/test/TC_FXVec2d.rb @@ -22,7 +22,7 @@ class TC_FXVec2d < Test::Unit::TestCase assert_equal(3.0, vec[1]) assert_equal(3.0, vec.y) end - + def test_getitem vec = FXVec2d.new(2.0, 3.0) assert_equal(2.0, vec[0]) @@ -95,12 +95,12 @@ class TC_FXVec2d < Test::Unit::TestCase # that fix is made to FOX. def test_length v = FXVec2d.new(1.0, 1.0) - assert_in_delta(Math.sqrt(2), v.length, 1.0e-12) + assert_in_delta(Math.sqrt(2), v.length, 1.0e-12) end def test_length2 v = FXVec2d.new(1.0, 1.0) - assert_equal(2.0, v.length2) + assert_equal(2.0, v.length2) end def test_normalize diff --git a/test/TC_FXVec2f.rb b/test/TC_FXVec2f.rb index b8e60c8..276b471 100755 --- a/test/TC_FXVec2f.rb +++ b/test/TC_FXVec2f.rb @@ -21,7 +21,7 @@ class TC_FXVec2f < Test::Unit::TestCase assert_equal(3.0, vec[1]) assert_equal(3.0, vec.y) end - + def test_getitem vec = FXVec2f.new(2.0, 3.0) assert_equal(2.0, vec[0]) @@ -90,12 +90,12 @@ class TC_FXVec2f < Test::Unit::TestCase def test_length v = FXVec2f.new(1.0, 1.0) - assert_in_delta(Math.sqrt(2), v.length, 1.0e-7) + assert_in_delta(Math.sqrt(2), v.length, 1.0e-7) end def test_length2 v = FXVec2f.new(1.0, 1.0) - assert_equal(2.0, v.length2) + assert_equal(2.0, v.length2) end def test_normalize diff --git a/test/TC_FXVec3d.rb b/test/TC_FXVec3d.rb index df1a650..2f56193 100755 --- a/test/TC_FXVec3d.rb +++ b/test/TC_FXVec3d.rb @@ -23,7 +23,7 @@ class TC_FXVec3d < Test::Unit::TestCase assert_equal(3, vec[2]) assert_equal(3, vec.z) end - + def test_construct_from_color vec = FXVec3d.new(FXRGB(1, 1, 1)) assert_in_delta(0.003921568627, vec.x, 1.0e-12) @@ -44,7 +44,7 @@ class TC_FXVec3d < Test::Unit::TestCase assert_equal(2, v[1] = 2) assert_equal(3, v[2] = 3) end - + def test_bounds_checks vec = FXVec3d.new assert_raises(IndexError) { vec[-1] } @@ -52,7 +52,7 @@ class TC_FXVec3d < Test::Unit::TestCase assert_raises(IndexError) { vec[-1] = 0.0 } assert_raises(IndexError) { vec[3] = 0.0 } end - + def test_unary_minus assert_equal(FXVec3d.new(-1, -2, -3), -FXVec3d.new(1, 2, 3)) end @@ -100,12 +100,12 @@ class TC_FXVec3d < Test::Unit::TestCase def test_length v = FXVec3d.new(1, 1, 1) - assert_in_delta(Math.sqrt(3), v.length, 1.0e-12) + assert_in_delta(Math.sqrt(3), v.length, 1.0e-12) end def test_length2 v = FXVec3d.new(1, 1, 1) - assert_equal(3, v.length2) + assert_equal(3, v.length2) end def test_normalize diff --git a/test/TC_FXVec3f.rb b/test/TC_FXVec3f.rb index b85d490..fda6023 100755 --- a/test/TC_FXVec3f.rb +++ b/test/TC_FXVec3f.rb @@ -23,7 +23,7 @@ class TC_FXVec3f < Test::Unit::TestCase assert_equal(3, vec[2]) assert_equal(3, vec.z) end - + def test_construct_from_color vec = FXVec3f.new(FXRGB(1, 1, 1)) assert_in_delta(0.003921568627, vec.x, 1.0e-7) @@ -44,7 +44,7 @@ class TC_FXVec3f < Test::Unit::TestCase assert_equal(2, v[1] = 2) assert_equal(3, v[2] = 3) end - + def test_bounds_checks vec = FXVec3f.new assert_raises(IndexError) { vec[-1] } @@ -52,7 +52,7 @@ class TC_FXVec3f < Test::Unit::TestCase assert_raises(IndexError) { vec[-1] = 0.0 } assert_raises(IndexError) { vec[3] = 0.0 } end - + def test_unary_minus assert_equal(FXVec3f.new(-1, -2, -3), -FXVec3f.new(1, 2, 3)) end @@ -100,12 +100,12 @@ class TC_FXVec3f < Test::Unit::TestCase def test_length v = FXVec3f.new(1, 1, 1) - assert_in_delta(Math.sqrt(3), v.length, 1.0e-7) + assert_in_delta(Math.sqrt(3), v.length, 1.0e-7) end def test_length2 v = FXVec3f.new(1, 1, 1) - assert_equal(3, v.length2) + assert_equal(3, v.length2) end def test_normalize diff --git a/test/TC_FXVec4f.rb b/test/TC_FXVec4f.rb index 8f0f581..4fcbc33 100755 --- a/test/TC_FXVec4f.rb +++ b/test/TC_FXVec4f.rb @@ -9,12 +9,12 @@ class TC_FXVec4f < Test::Unit::TestCase def test_new FXVec4f.new end - + def test_new2 vec1 = FXVec4f.new(1.0, 2.0, 3.0, 4.0) assert_equal(vec1, FXVec4f.new(vec1)) end - + def test_new3 a = FXVec3f.new(1, 2, 3) b = FXVec4f.new(a) @@ -23,7 +23,7 @@ class TC_FXVec4f < Test::Unit::TestCase assert_equal(3, b[2]) assert_equal(1, b[3]) end - + def test_new4 a = FXVec4f.new(1, 2, 3) assert_equal(1, a[0]) @@ -37,7 +37,7 @@ class TC_FXVec4f < Test::Unit::TestCase assert_equal(3, b[2]) assert_equal(4, b[3]) end - + def test_new5 c = FXVec4f.new(FXRGB(128, 128, 128)) end @@ -90,7 +90,7 @@ class TC_FXVec4f < Test::Unit::TestCase v2 = FXVec4f.new(6.0, 12.0, 18.0, 24.0) assert_equal(v2, v1 * 2) end - + def test_mul2 # same as dot product v1 = FXVec4f.new(3.0, 6.0, 9.0, 12.0) v2 = FXVec4f.new(2.0, 4.0, 6.0, 8.0) @@ -116,7 +116,7 @@ class TC_FXVec4f < Test::Unit::TestCase def test_length v = FXVec4f.new(1.0, 1.0, 1.0, 1.0) - assert_equal(2.0, v.length) + assert_equal(2.0, v.length) end def test_normalize diff --git a/test/stress1.rb b/test/stress1.rb index 405ac2e..2f97684 100755 --- a/test/stress1.rb +++ b/test/stress1.rb @@ -57,10 +57,10 @@ class Application < FXApp init(ARGV) @mainWindow = FXMainWindow.new(self, appName, nil, nil, DECOR_ALL, 0, 0, 400, 600) - @dirTree = DirTree.new(@mainWindow) + @dirTree = DirTree.new(@mainWindow) @count = 0 - end + end def create super @@ -83,10 +83,10 @@ end if __FILE__ == $0 # Make application application = Application.new - - # Create app + + # Create app application.create() - + # Run application.run() end diff --git a/test/stress2.rb b/test/stress2.rb index 27cfd9d..8c63c80 100755 --- a/test/stress2.rb +++ b/test/stress2.rb @@ -10,7 +10,7 @@ class TC_stress2 < Test::Unit::TestCase @countLabel = FXLabel.new(theMainWindow, "0", nil, LAYOUT_FILL_X|LAYOUT_FILL_Y) theMainWindow end - + def on_timeout(sender, sel, ptr) safeToQuit = false $lock.synchronize { @@ -27,7 +27,7 @@ class TC_stress2 < Test::Unit::TestCase @theApp.addTimeout(100, method(:on_timeout)) end end - + def test_run # Set up the counter thread $count = 0 @@ -48,4 +48,4 @@ class TC_stress2 < Test::Unit::TestCase @theApp.run end end - + diff --git a/test/stress3.rb b/test/stress3.rb index c22b7cc..a3ccb63 100755 --- a/test/stress3.rb +++ b/test/stress3.rb @@ -37,7 +37,7 @@ class ShutterWindow < FXMainWindow @shutter = FXShutter.new(splitter, nil, 0, FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) - + shutterItem = ShutterItem.new(@shutter, "Shutter Item 1", nil, LAYOUT_FILL_Y) ShutterButton.new(shutterItem.content, "1-1") ShutterButton.new(shutterItem.content, "1-2") @@ -46,19 +46,19 @@ class ShutterWindow < FXMainWindow ShutterButton.new(shutterItem.content, "1-5") ShutterButton.new(shutterItem.content, "1-6") ShutterButton.new(shutterItem.content, "1-7") - + shutterItem = ShutterItem.new(@shutter, "Shutter Item 2") ShutterButton.new(shutterItem.content, "2-1") ShutterButton.new(shutterItem.content, "2-2") ShutterButton.new(shutterItem.content, "2-3") ShutterButton.new(shutterItem.content, "2-4") ShutterButton.new(shutterItem.content, "2-5") - + shutterItem = ShutterItem.new(@shutter, "Shutter Item 3") ShutterButton.new(shutterItem.content, "3-1") ShutterButton.new(shutterItem.content, "3-2") ShutterButton.new(shutterItem.content, "3-3") - + # Right pane is a switcher # For a real application, each panel in the switcher would have real, working contents... @switcher = FXSwitcher.new(splitter, @@ -71,10 +71,10 @@ class ShutterWindow < FXMainWindow def create # Create base class super - + # Run the garbage collector now GC.start - + # Safe to drop out any time now... getApp().addChore(getApp(), FXApp::ID_QUIT) end @@ -87,29 +87,29 @@ class TC_stress3 < Test::Unit::TestCase shutterWindow = ShutterWindow.new(theApp) theApp.create theApp.run - + # # Check to see if anyone's missing in action. # First, the shutter itself should have three # shutter items as its children. # assert_equal(3, shutterWindow.shutter.numChildren) - + # Each shutter item has two children shutterWindow.shutter.each_child { |c| assert_equal(2, c.numChildren) } - + # First item's content should have 7 children shutterItem1 = shutterWindow.shutter.first assert_equal(7, shutterItem1.content.numChildren) - + # Second item's content should have 5 children - shutterItem2 = shutterItem1.next + shutterItem2 = shutterItem1.next assert_equal(5, shutterItem2.content.numChildren) # Third item's content should have 3 children - shutterItem3 = shutterItem2.next + shutterItem3 = shutterItem2.next assert_equal(3, shutterItem3.content.numChildren) end end diff --git a/test/testcase.rb b/test/testcase.rb index 3220e25..ed79b3b 100755 --- a/test/testcase.rb +++ b/test/testcase.rb @@ -17,19 +17,19 @@ module Fox @theApp = FXApp.instance end @theMainWindow = FXMainWindow.new(@theApp, appName) - end + end end - + # Return a reference to the application def app @theApp end - + # Return a reference to the main window def mainWindow @theMainWindow end - + # Override the base class version of default_test() so that # a test case with no tests doesn't trigger an error. def default_test; end -- GitLab