fxruby 1.6.22.pre2-x86-mingw32 → 1.6.22.pre3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -1
- data/README.txt +10 -10
- data/Rakefile +3 -2
- data/doap.rdf +2 -2
- data/examples/babelfish.rb +2 -2
- data/examples/bounce.rb +20 -20
- data/examples/charts.rb +2 -2
- data/examples/custom_table_item.rb +3 -3
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +51 -51
- data/examples/dialog.rb +14 -14
- data/examples/dilbert.rb +4 -4
- data/examples/dirlist.rb +6 -6
- data/examples/dragdrop.rb +7 -7
- data/examples/dragsource.rb +6 -6
- data/examples/dropsite.rb +5 -5
- data/examples/foursplit.rb +6 -6
- data/examples/gltest.rb +40 -40
- data/examples/glviewer.rb +16 -16
- data/examples/groupbox.rb +41 -41
- data/examples/header.rb +6 -6
- data/examples/hello2.rb +2 -2
- data/examples/iconlist.rb +10 -10
- data/examples/image.rb +26 -26
- data/examples/imageviewer.rb +31 -31
- data/examples/inputs.rb +2 -2
- data/examples/mditest.rb +12 -12
- data/examples/pig.rb +8 -8
- data/examples/raabrowser.rb +5 -5
- data/examples/ratio.rb +9 -9
- data/examples/rulerview.rb +2 -2
- data/examples/scintilla-test.rb +6 -6
- data/examples/scribble-orig.rb +3 -3
- data/examples/scribble.rb +3 -3
- data/examples/shutter.rb +6 -6
- data/examples/splitter.rb +15 -15
- data/examples/styledtext.rb +10 -10
- data/examples/tabbook.rb +14 -14
- data/examples/table.rb +21 -21
- data/examples/textedit/helpwindow.rb +6 -6
- data/examples/textedit/textedit.rb +72 -72
- data/ext/fox16/FXRuby.cpp +48 -5
- data/ext/fox16/core_wrap.cpp +1 -1
- data/ext/fox16/iconlist_wrap.cpp +1 -1
- data/ext/fox16/icons_wrap.cpp +1 -1
- data/ext/fox16/include/FXMemoryBuffer.h +3 -3
- data/ext/fox16/include/FXRbApp.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
- data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +2 -2
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
- data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
- data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +2 -2
- data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
- data/ext/fox16/include/FXRbListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +3 -3
- data/ext/fox16/include/FXRbRulerView.h +3 -3
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +2 -2
- data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
- data/ext/fox16/include/FXRbText.h +2 -2
- data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbWindow.h +3 -3
- data/ext/fox16/include/FXRbWizard.h +2 -2
- data/ext/fox16/include/FXRuby.h +8 -4
- data/ext/fox16/librb.c +12 -12
- data/ext/fox16/list_wrap.cpp +1 -1
- data/ext/fox16/make_impl.rb +5 -5
- data/ext/fox16/markfuncs.cpp +228 -220
- data/ext/fox16/scintilla_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +4 -4
- data/ext/fox16/ui_wrap.cpp +2 -2
- data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
- data/lib/1.8/fox16.so +0 -0
- data/lib/1.9/fox16.so +0 -0
- data/lib/fox16/accel_table.rb +1 -1
- data/lib/fox16/aliases.rb +3 -3
- data/lib/fox16/calendar.rb +21 -21
- data/lib/fox16/chore.rb +2 -2
- data/lib/fox16/core.rb +70 -70
- data/lib/fox16/dict.rb +1 -1
- data/lib/fox16/execute_nonmodal.rb +1 -1
- data/lib/fox16/glgroup.rb +16 -16
- data/lib/fox16/glshapes.rb +26 -26
- data/lib/fox16/input.rb +4 -4
- data/lib/fox16/irb.rb +2 -2
- data/lib/fox16/iterators.rb +2 -2
- data/lib/fox16/keys.rb +34 -34
- data/lib/fox16/kwargs.rb +927 -927
- data/lib/fox16/pseudokeyboard.rb +1 -1
- data/lib/fox16/pseudomouse.rb +1 -1
- data/lib/fox16/responder2.rb +4 -4
- data/lib/fox16/scintilla.rb +2 -2
- data/lib/fox16/signal.rb +4 -4
- data/lib/fox16/splashscreen.rb +3 -3
- data/lib/fox16/timeout.rb +3 -3
- data/lib/fox16/undolist.rb +9 -9
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +9 -9
- data/rdoc-sources/FX7Segment.rb +9 -9
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +50 -50
- data/rdoc-sources/FXBMPIcon.rb +3 -3
- data/rdoc-sources/FXBMPImage.rb +2 -2
- data/rdoc-sources/FXBitmap.rb +11 -11
- data/rdoc-sources/FXBitmapFrame.rb +5 -5
- data/rdoc-sources/FXBitmapView.rb +2 -2
- data/rdoc-sources/FXButton.rb +2 -2
- data/rdoc-sources/FXCheckButton.rb +5 -5
- data/rdoc-sources/FXColorBar.rb +5 -5
- data/rdoc-sources/FXColorDialog.rb +2 -2
- data/rdoc-sources/FXColorList.rb +2 -2
- data/rdoc-sources/FXColorRing.rb +8 -8
- data/rdoc-sources/FXColorSelector.rb +4 -4
- data/rdoc-sources/FXColorWell.rb +4 -4
- data/rdoc-sources/FXColorWheel.rb +6 -6
- data/rdoc-sources/FXComboBox.rb +17 -17
- data/rdoc-sources/FXComposite.rb +2 -2
- data/rdoc-sources/FXCursor.rb +7 -7
- data/rdoc-sources/FXDC.rb +67 -67
- data/rdoc-sources/FXDCPrint.rb +22 -22
- data/rdoc-sources/FXDCWindow.rb +1 -1
- data/rdoc-sources/FXDataTarget.rb +2 -2
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +1 -1
- data/rdoc-sources/FXDial.rb +8 -8
- data/rdoc-sources/FXDict.rb +7 -7
- data/rdoc-sources/FXDirBox.rb +3 -3
- data/rdoc-sources/FXDirDialog.rb +7 -7
- data/rdoc-sources/FXDirList.rb +21 -21
- data/rdoc-sources/FXDirSelector.rb +8 -8
- data/rdoc-sources/FXDockBar.rb +5 -5
- data/rdoc-sources/FXDockHandler.rb +3 -3
- data/rdoc-sources/FXDockSite.rb +2 -2
- data/rdoc-sources/FXDockTitle.rb +3 -3
- data/rdoc-sources/FXDocument.rb +3 -3
- data/rdoc-sources/FXDragCorner.rb +3 -3
- data/rdoc-sources/FXDrawable.rb +3 -3
- data/rdoc-sources/FXDriveBox.rb +4 -4
- data/rdoc-sources/FXExtentd.rb +2 -2
- data/rdoc-sources/FXExtentf.rb +2 -2
- data/rdoc-sources/FXFileDialog.rb +21 -21
- data/rdoc-sources/FXFileDict.rb +17 -17
- data/rdoc-sources/FXFileList.rb +32 -32
- data/rdoc-sources/FXFileSelector.rb +20 -20
- data/rdoc-sources/FXFileStream.rb +1 -1
- data/rdoc-sources/FXFoldingList.rb +53 -53
- data/rdoc-sources/FXFont.rb +38 -38
- data/rdoc-sources/FXFrame.rb +11 -11
- data/rdoc-sources/FXGIFCursor.rb +3 -3
- data/rdoc-sources/FXGLCanvas.rb +2 -2
- data/rdoc-sources/FXGLContext.rb +6 -6
- data/rdoc-sources/FXGLObject.rb +6 -6
- data/rdoc-sources/FXGLShape.rb +3 -3
- data/rdoc-sources/FXGLViewer.rb +54 -54
- data/rdoc-sources/FXGLVisual.rb +13 -13
- data/rdoc-sources/FXGradientBar.rb +15 -15
- data/rdoc-sources/FXGroupBox.rb +4 -4
- data/rdoc-sources/FXHeader.rb +44 -44
- data/rdoc-sources/FXICOIcon.rb +1 -1
- data/rdoc-sources/FXICOImage.rb +1 -1
- data/rdoc-sources/FXIconDict.rb +1 -1
- data/rdoc-sources/FXIconList.rb +69 -69
- data/rdoc-sources/FXIconSource.rb +2 -2
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +11 -11
- data/rdoc-sources/FXImageFrame.rb +3 -3
- data/rdoc-sources/FXImageView.rb +2 -2
- data/rdoc-sources/FXInputDialog.rb +6 -6
- data/rdoc-sources/FXJPGIcon.rb +3 -3
- data/rdoc-sources/FXJPGImage.rb +2 -2
- data/rdoc-sources/FXKnob.rb +9 -9
- data/rdoc-sources/FXLabel.rb +8 -8
- data/rdoc-sources/FXList.rb +28 -28
- data/rdoc-sources/FXListBox.rb +21 -21
- data/rdoc-sources/FXMDIChild.rb +11 -11
- data/rdoc-sources/FXMDIClient.rb +5 -5
- data/rdoc-sources/FXMatrix.rb +6 -6
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +3 -3
- data/rdoc-sources/FXMenuBar.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +7 -7
- data/rdoc-sources/FXMenuCaption.rb +10 -10
- data/rdoc-sources/FXMenuCheck.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +1 -1
- data/rdoc-sources/FXMenuSeparator.rb +1 -1
- data/rdoc-sources/FXMessageBox.rb +3 -3
- data/rdoc-sources/FXOptionMenu.rb +9 -9
- data/rdoc-sources/FXPCXIcon.rb +2 -2
- data/rdoc-sources/FXPCXImage.rb +1 -1
- data/rdoc-sources/FXPNGIcon.rb +3 -3
- data/rdoc-sources/FXPNGImage.rb +1 -1
- data/rdoc-sources/FXPPMIcon.rb +2 -2
- data/rdoc-sources/FXPPMImage.rb +1 -1
- data/rdoc-sources/FXPacker.rb +13 -13
- data/rdoc-sources/FXPopup.rb +11 -11
- data/rdoc-sources/FXProgressBar.rb +7 -7
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +17 -17
- data/rdoc-sources/FXQuatf.rb +18 -18
- data/rdoc-sources/FXRGBIcon.rb +3 -3
- data/rdoc-sources/FXRGBImage.rb +1 -1
- data/rdoc-sources/FXRadioButton.rb +4 -4
- data/rdoc-sources/FXRanged.rb +1 -1
- data/rdoc-sources/FXRangef.rb +1 -1
- data/rdoc-sources/FXRealSlider.rb +7 -7
- data/rdoc-sources/FXRealSpinner.rb +11 -11
- data/rdoc-sources/FXRecentFiles.rb +8 -8
- data/rdoc-sources/FXRectangle.rb +12 -12
- data/rdoc-sources/FXRegion.rb +15 -15
- data/rdoc-sources/FXRegistry.rb +4 -4
- data/rdoc-sources/FXReplaceDialog.rb +3 -3
- data/rdoc-sources/FXRuler.rb +18 -18
- data/rdoc-sources/FXRulerView.rb +38 -38
- data/rdoc-sources/FXScintilla.rb +16 -16
- data/rdoc-sources/FXScrollArea.rb +9 -9
- data/rdoc-sources/FXScrollBar.rb +8 -8
- data/rdoc-sources/FXScrollPane.rb +1 -1
- data/rdoc-sources/FXScrollWindow.rb +5 -5
- data/rdoc-sources/FXSeparator.rb +1 -1
- data/rdoc-sources/FXSettings.rb +1 -1
- data/rdoc-sources/FXShutter.rb +3 -3
- data/rdoc-sources/FXSize.rb +4 -4
- data/rdoc-sources/FXSlider.rb +7 -7
- data/rdoc-sources/FXSphered.rb +21 -21
- data/rdoc-sources/FXSpheref.rb +20 -20
- data/rdoc-sources/FXSpinner.rb +12 -12
- data/rdoc-sources/FXSplashWindow.rb +1 -1
- data/rdoc-sources/FXSplitter.rb +6 -6
- data/rdoc-sources/FXSpring.rb +2 -2
- data/rdoc-sources/FXStatusBar.rb +4 -4
- data/rdoc-sources/FXStatusLine.rb +5 -5
- data/rdoc-sources/FXStream.rb +8 -8
- data/rdoc-sources/FXStringDict.rb +5 -5
- data/rdoc-sources/FXSwitcher.rb +2 -2
- data/rdoc-sources/FXTGAIcon.rb +3 -3
- data/rdoc-sources/FXTGAImage.rb +1 -1
- data/rdoc-sources/FXTIFIcon.rb +2 -2
- data/rdoc-sources/FXTIFImage.rb +2 -2
- data/rdoc-sources/FXTabBar.rb +2 -2
- data/rdoc-sources/FXTable.rb +131 -131
- data/rdoc-sources/FXText.rb +48 -48
- data/rdoc-sources/FXTextField.rb +9 -9
- data/rdoc-sources/FXToolBar.rb +1 -1
- data/rdoc-sources/FXToolBarGrip.rb +1 -1
- data/rdoc-sources/FXToolBarShell.rb +7 -7
- data/rdoc-sources/FXToolBarTab.rb +3 -3
- data/rdoc-sources/FXToolTip.rb +1 -1
- data/rdoc-sources/FXTopWindow.rb +17 -17
- data/rdoc-sources/FXTranslator.rb +5 -5
- data/rdoc-sources/FXTreeList.rb +50 -50
- data/rdoc-sources/FXTreeListBox.rb +16 -16
- data/rdoc-sources/FXVec2d.rb +5 -5
- data/rdoc-sources/FXVec2f.rb +5 -5
- data/rdoc-sources/FXVec3d.rb +8 -8
- data/rdoc-sources/FXVec3f.rb +8 -8
- data/rdoc-sources/FXVec4d.rb +8 -8
- data/rdoc-sources/FXVec4f.rb +8 -8
- data/rdoc-sources/FXVisual.rb +3 -3
- data/rdoc-sources/FXWindow.rb +99 -99
- data/rdoc-sources/FXWizard.rb +8 -8
- data/rdoc-sources/FXXBMIcon.rb +2 -2
- data/rdoc-sources/FXXBMImage.rb +1 -1
- data/rdoc-sources/FXXPMIcon.rb +2 -2
- data/rdoc-sources/FXXPMImage.rb +1 -1
- data/rdoc-sources/fxdefs.rb +17 -17
- data/scripts/generate_kwargs_lib.rb +22 -22
- data/scripts/iface.rb +1 -1
- data/swig-interfaces/FX4Splitter.i +5 -5
- data/swig-interfaces/FX7Segment.i +5 -5
- data/swig-interfaces/FXApp.i +10 -10
- data/swig-interfaces/FXBMPIcon.i +2 -2
- data/swig-interfaces/FXBitmap.i +3 -3
- data/swig-interfaces/FXBitmapFrame.i +1 -1
- data/swig-interfaces/FXBitmapView.i +1 -1
- data/swig-interfaces/FXCanvas.i +1 -1
- data/swig-interfaces/FXCheckButton.i +2 -2
- data/swig-interfaces/FXChoiceBox.i +2 -2
- data/swig-interfaces/FXColorBar.i +7 -7
- data/swig-interfaces/FXColorList.i +5 -5
- data/swig-interfaces/FXColorWell.i +1 -1
- data/swig-interfaces/FXColorWheel.i +6 -6
- data/swig-interfaces/FXComboBox.i +4 -4
- data/swig-interfaces/FXCursor.i +4 -4
- data/swig-interfaces/FXDC.i +23 -23
- data/swig-interfaces/FXDCPrint.i +5 -5
- data/swig-interfaces/FXDCWindow.i +8 -8
- data/swig-interfaces/FXDataTarget.i +5 -5
- data/swig-interfaces/FXDebugTarget.i +1 -1
- data/swig-interfaces/FXDelegator.i +3 -3
- data/swig-interfaces/FXDial.i +8 -8
- data/swig-interfaces/FXDialogBox.i +3 -3
- data/swig-interfaces/FXDict.i +14 -14
- data/swig-interfaces/FXDirBox.i +1 -1
- data/swig-interfaces/FXDirDialog.i +2 -2
- data/swig-interfaces/FXDirList.i +16 -16
- data/swig-interfaces/FXDirSelector.i +2 -2
- data/swig-interfaces/FXDockBar.i +1 -1
- data/swig-interfaces/FXDockHandler.i +1 -1
- data/swig-interfaces/FXDockSite.i +1 -1
- data/swig-interfaces/FXDockTitle.i +1 -1
- data/swig-interfaces/FXDocument.i +1 -1
- data/swig-interfaces/FXDragCorner.i +3 -3
- data/swig-interfaces/FXDriveBox.i +1 -1
- data/swig-interfaces/FXFileDialog.i +8 -8
- data/swig-interfaces/FXFileDict.i +2 -2
- data/swig-interfaces/FXFileList.i +11 -11
- data/swig-interfaces/FXFileSelector.i +4 -4
- data/swig-interfaces/FXFoldingList.i +7 -7
- data/swig-interfaces/FXFont.i +20 -20
- data/swig-interfaces/FXFrame.i +3 -3
- data/swig-interfaces/FXGLCanvas.i +3 -3
- data/swig-interfaces/FXGLContext.i +7 -7
- data/swig-interfaces/FXGLObject.i +1 -1
- data/swig-interfaces/FXGLShape.i +6 -6
- data/swig-interfaces/FXGLViewer.i +40 -40
- data/swig-interfaces/FXGLVisual.i +2 -2
- data/swig-interfaces/FXGradientBar.i +4 -4
- data/swig-interfaces/FXGroupBox.i +3 -3
- data/swig-interfaces/FXHeader.i +7 -7
- data/swig-interfaces/FXIcon.i +4 -4
- data/swig-interfaces/FXIconDict.i +1 -1
- data/swig-interfaces/FXIconList.i +46 -46
- data/swig-interfaces/FXImage.i +2 -2
- data/swig-interfaces/FXImageView.i +1 -1
- data/swig-interfaces/FXInputDialog.i +3 -3
- data/swig-interfaces/FXJPGIcon.i +3 -3
- data/swig-interfaces/FXJPGImage.i +2 -2
- data/swig-interfaces/FXKnob.i +2 -2
- data/swig-interfaces/FXLabel.i +2 -2
- data/swig-interfaces/FXList.i +35 -35
- data/swig-interfaces/FXListBox.i +5 -5
- data/swig-interfaces/FXMDIButton.i +5 -5
- data/swig-interfaces/FXMDIChild.i +12 -12
- data/swig-interfaces/FXMDIClient.i +2 -2
- data/swig-interfaces/FXMat4d.i +2 -2
- data/swig-interfaces/FXMat4f.i +5 -5
- data/swig-interfaces/FXMatrix.i +12 -12
- data/swig-interfaces/FXMemoryBuffer.i +4 -4
- data/swig-interfaces/FXMenuBar.i +3 -3
- data/swig-interfaces/FXMenuButton.i +7 -7
- data/swig-interfaces/FXMenuCaption.i +4 -4
- data/swig-interfaces/FXMenuCommand.i +1 -1
- data/swig-interfaces/FXMenuPane.i +1 -1
- data/swig-interfaces/FXMenuRadio.i +1 -1
- data/swig-interfaces/FXMenuSeparator.i +1 -1
- data/swig-interfaces/FXMessageBox.i +1 -1
- data/swig-interfaces/FXOptionMenu.i +6 -6
- data/swig-interfaces/FXPNGIcon.i +2 -2
- data/swig-interfaces/FXPPMIcon.i +2 -2
- data/swig-interfaces/FXPacker.i +6 -6
- data/swig-interfaces/FXPopup.i +13 -13
- data/swig-interfaces/FXProgressBar.i +12 -12
- data/swig-interfaces/FXProgressDialog.i +5 -5
- data/swig-interfaces/FXQuatd.i +7 -7
- data/swig-interfaces/FXQuatf.i +1 -1
- data/swig-interfaces/FXRadioButton.i +4 -4
- data/swig-interfaces/FXRanged.i +4 -4
- data/swig-interfaces/FXRangef.i +5 -5
- data/swig-interfaces/FXRealSlider.i +10 -10
- data/swig-interfaces/FXRealSpinner.i +17 -17
- data/swig-interfaces/FXRecentFiles.i +1 -1
- data/swig-interfaces/FXRegion.i +4 -4
- data/swig-interfaces/FXRegistry.i +3 -3
- data/swig-interfaces/FXReplaceDialog.i +1 -1
- data/swig-interfaces/FXScintilla.i +3 -3
- data/swig-interfaces/FXScrollArea.i +7 -7
- data/swig-interfaces/FXScrollBar.i +3 -3
- data/swig-interfaces/FXScrollWindow.i +6 -6
- data/swig-interfaces/FXSearchDialog.i +1 -1
- data/swig-interfaces/FXSeparator.i +3 -3
- data/swig-interfaces/FXSettings.i +3 -3
- data/swig-interfaces/FXShell.i +1 -1
- data/swig-interfaces/FXSlider.i +11 -11
- data/swig-interfaces/FXSphered.i +1 -1
- data/swig-interfaces/FXSpheref.i +1 -1
- data/swig-interfaces/FXSpinner.i +15 -15
- data/swig-interfaces/FXSplitter.i +6 -6
- data/swig-interfaces/FXStatusBar.i +4 -4
- data/swig-interfaces/FXStatusLine.i +5 -5
- data/swig-interfaces/FXStream.i +1 -1
- data/swig-interfaces/FXSwitcher.i +5 -5
- data/swig-interfaces/FXTabBar.i +2 -2
- data/swig-interfaces/FXTabBook.i +1 -1
- data/swig-interfaces/FXTabItem.i +4 -4
- data/swig-interfaces/FXTable.i +37 -37
- data/swig-interfaces/FXText.i +13 -13
- data/swig-interfaces/FXTextField.i +1 -1
- data/swig-interfaces/FXToggleButton.i +6 -6
- data/swig-interfaces/FXToolBar.i +4 -4
- data/swig-interfaces/FXToolBarGrip.i +3 -3
- data/swig-interfaces/FXToolBarShell.i +3 -3
- data/swig-interfaces/FXToolBarTab.i +5 -5
- data/swig-interfaces/FXToolTip.i +1 -1
- data/swig-interfaces/FXTopWindow.i +10 -10
- data/swig-interfaces/FXTreeList.i +28 -28
- data/swig-interfaces/FXTreeListBox.i +36 -36
- data/swig-interfaces/FXVec3d.i +2 -2
- data/swig-interfaces/FXVec3f.i +2 -2
- data/swig-interfaces/FXVec4d.i +1 -1
- data/swig-interfaces/FXVec4f.i +9 -9
- data/swig-interfaces/FXVerticalFrame.i +1 -1
- data/swig-interfaces/FXVisual.i +1 -1
- data/swig-interfaces/FXWindow.i +46 -46
- data/swig-interfaces/FXXPMIcon.i +1 -1
- data/swig-interfaces/FXXPMImage.i +1 -1
- data/swig-interfaces/exceptions.i +1 -1
- data/swig-interfaces/freefuncs.i +1 -1
- data/swig-interfaces/fxdefs.i +13 -13
- data/swig-interfaces/macros.i +79 -79
- data/test/TC_FXAccelTable.rb +3 -3
- data/test/TC_FXButton.rb +9 -9
- data/test/TC_FXCheckButton.rb +4 -4
- data/test/TC_FXComboBox.rb +1 -1
- data/test/TC_FXDC.rb +42 -42
- data/test/TC_FXDialogBox.rb +1 -1
- data/test/TC_FXExtentd.rb +2 -2
- data/test/TC_FXExtentf.rb +2 -2
- data/test/TC_FXFileAssoc.rb +5 -5
- data/test/TC_FXFileStream.rb +5 -5
- data/test/TC_FXFoldingList.rb +3 -3
- data/test/TC_FXFont.rb +3 -3
- data/test/TC_FXGLGroup.rb +1 -1
- data/test/TC_FXHeader.rb +3 -3
- data/test/TC_FXIconDict.rb +5 -5
- data/test/TC_FXIconList.rb +12 -12
- data/test/TC_FXImage.rb +16 -16
- data/test/TC_FXList.rb +5 -5
- data/test/TC_FXListBox.rb +1 -1
- data/test/TC_FXMainWindow.rb +2 -2
- data/test/TC_FXMat4f.rb +33 -33
- data/test/TC_FXMaterial.rb +5 -5
- data/test/TC_FXMemoryStream.rb +2 -2
- data/test/TC_FXMenuCheck.rb +5 -5
- data/test/TC_FXMessageBox.rb +3 -3
- data/test/TC_FXPoint.rb +1 -1
- data/test/TC_FXRadioButton.rb +4 -4
- data/test/TC_FXRanged.rb +3 -3
- data/test/TC_FXRangef.rb +3 -3
- data/test/TC_FXRegion.rb +1 -1
- data/test/TC_FXScrollArea.rb +1 -1
- data/test/TC_FXScrollWindow.rb +1 -1
- data/test/TC_FXSettings.rb +2 -2
- data/test/TC_FXShell.rb +2 -2
- data/test/TC_FXTopWindow.rb +2 -2
- data/test/TC_FXTreeList.rb +4 -4
- data/test/TC_FXTreeListBox.rb +3 -3
- data/test/TC_FXVec2d.rb +3 -3
- data/test/TC_FXVec2f.rb +3 -3
- data/test/TC_FXVec3d.rb +5 -5
- data/test/TC_FXVec3f.rb +5 -5
- data/test/TC_FXVec4f.rb +6 -6
- data/test/TC_Misc.rb +6 -2
- data/test/TS_All.rb +1 -17
- data/test/stress1.rb +5 -5
- data/test/stress2.rb +3 -3
- data/test/stress3.rb +12 -12
- data/test/testcase.rb +4 -4
- metadata +76 -76
data/examples/table.rb
CHANGED
@@ -13,30 +13,30 @@ class TableWindow < FXMainWindow
|
|
13
13
|
|
14
14
|
# Tooltip
|
15
15
|
tooltip = FXToolTip.new(getApp())
|
16
|
-
|
16
|
+
|
17
17
|
# Icon used in some cells
|
18
18
|
penguinicon = nil
|
19
19
|
File.open(File.join('icons', 'penguin.png'), 'rb') do |f|
|
20
20
|
penguinicon = FXPNGIcon.new(getApp(), f.read, 0, IMAGE_ALPHAGUESS)
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
# Menubar
|
24
24
|
menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
25
|
-
|
25
|
+
|
26
26
|
# Separator
|
27
27
|
FXHorizontalSeparator.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|SEPARATOR_GROOVE)
|
28
|
-
|
28
|
+
|
29
29
|
# Contents
|
30
30
|
contents = FXVerticalFrame.new(self, LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
31
|
-
|
31
|
+
|
32
32
|
frame = FXVerticalFrame.new(contents,
|
33
33
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0)
|
34
|
-
|
34
|
+
|
35
35
|
# Table
|
36
36
|
@table = FXTable.new(frame,
|
37
37
|
:opts => TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
38
38
|
:padding => 2)
|
39
|
-
|
39
|
+
|
40
40
|
@table.visibleRows = 20
|
41
41
|
@table.visibleColumns = 8
|
42
42
|
|
@@ -47,7 +47,7 @@ class TableWindow < FXMainWindow
|
|
47
47
|
@table.setCellColor(0, 1, FXRGB(255, 240, 240))
|
48
48
|
@table.setCellColor(1, 0, FXRGB(240, 255, 240))
|
49
49
|
@table.setCellColor(1, 1, FXRGB(240, 240, 255))
|
50
|
-
|
50
|
+
|
51
51
|
# Initialize the scrollable part of the table
|
52
52
|
(0..49).each do |r|
|
53
53
|
(0..13).each do |c|
|
@@ -57,10 +57,10 @@ class TableWindow < FXMainWindow
|
|
57
57
|
|
58
58
|
# Initialize column headers
|
59
59
|
(0...12).each { |c| @table.setColumnText(c, Date::MONTHNAMES[c+1]) }
|
60
|
-
|
60
|
+
|
61
61
|
# Initialize row headers
|
62
62
|
(0...50).each { |r| @table.setRowText(r, "Row#{r}") }
|
63
|
-
|
63
|
+
|
64
64
|
@table.setItemText(10, 10, "This is multi-\nline text")
|
65
65
|
@table.setItemJustify(10, 10, FXTableItem::CENTER_X|FXTableItem::CENTER_Y)
|
66
66
|
|
@@ -69,31 +69,31 @@ class TableWindow < FXMainWindow
|
|
69
69
|
@table.setItem(5, 7, @table.getItem(5, 5))
|
70
70
|
@table.setItemText(5, 5, "Spanning Item")
|
71
71
|
@table.setItemJustify(5, 5, FXTableItem::CENTER_X|FXTableItem::CENTER_Y)
|
72
|
-
|
72
|
+
|
73
73
|
@table.getItem( 9, 9).borders = FXTableItem::TBORDER|FXTableItem::LBORDER|FXTableItem::BBORDER
|
74
74
|
@table.getItem( 9, 10).borders = FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
|
75
|
-
|
75
|
+
|
76
76
|
@table.getItem(40, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
|
77
77
|
@table.getItem(49, 13).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
|
78
78
|
@table.getItem( 5, 0).borders = FXTableItem::LBORDER|FXTableItem::TBORDER|FXTableItem::RBORDER|FXTableItem::BBORDER
|
79
|
-
|
79
|
+
|
80
80
|
@table.getItem(6, 6).icon = penguinicon
|
81
81
|
@table.getItem(6, 6).iconPosition = FXTableItem::ABOVE # icon above the text
|
82
82
|
@table.getItem(6, 6).justify = FXTableItem::CENTER_X|FXTableItem::CENTER_Y
|
83
|
-
|
83
|
+
|
84
84
|
@table.getItem(3, 4).stipple = STIPPLE_CROSSDIAG
|
85
|
-
|
85
|
+
|
86
86
|
# File Menu
|
87
87
|
filemenu = FXMenuPane.new(self)
|
88
88
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
|
89
89
|
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
90
|
-
|
90
|
+
|
91
91
|
# Options Menu
|
92
92
|
tablemenu = FXMenuPane.new(self)
|
93
93
|
FXMenuCheck.new(tablemenu, "Horizontal grid", @table, FXTable::ID_HORZ_GRID)
|
94
94
|
FXMenuCheck.new(tablemenu, "Vertical grid", @table, FXTable::ID_VERT_GRID)
|
95
95
|
FXMenuTitle.new(menubar, "&Options", nil, tablemenu)
|
96
|
-
|
96
|
+
|
97
97
|
# Manipulations Menu
|
98
98
|
manipmenu = FXMenuPane.new(self)
|
99
99
|
FXMenuCommand.new(manipmenu, "Delete Column\tCtl-C", nil,
|
@@ -106,7 +106,7 @@ class TableWindow < FXMainWindow
|
|
106
106
|
@table, FXTable::ID_INSERT_ROW)
|
107
107
|
FXMenuCommand.new(manipmenu, "Resize table...").connect(SEL_COMMAND, method(:onCmdResizeTable))
|
108
108
|
FXMenuTitle.new(menubar, "&Manipulations", nil, manipmenu)
|
109
|
-
|
109
|
+
|
110
110
|
# Selection Menu
|
111
111
|
selectmenu = FXMenuPane.new(self)
|
112
112
|
FXMenuCommand.new(selectmenu, "Select All", nil, @table, FXTable::ID_SELECT_ALL)
|
@@ -170,13 +170,13 @@ end
|
|
170
170
|
if __FILE__ == $0
|
171
171
|
# Make application
|
172
172
|
application = FXApp.new("TableApp", "FoxTest")
|
173
|
-
|
173
|
+
|
174
174
|
# Make window
|
175
175
|
TableWindow.new(application)
|
176
|
-
|
176
|
+
|
177
177
|
# Create app
|
178
178
|
application.create
|
179
|
-
|
179
|
+
|
180
180
|
# Run
|
181
181
|
application.run
|
182
182
|
end
|
@@ -217,7 +217,7 @@ Changing Font.
|
|
217
217
|
|
218
218
|
You can change font by invoking the Font Selection Dialog from the Font menu.
|
219
219
|
The Font Dialog displays four list boxes showing the font Family, Weight, Style,
|
220
|
-
and Size of each font.
|
220
|
+
and Size of each font.
|
221
221
|
You can narrow down the number of fonts displayed by selecting a specific character
|
222
222
|
set, setwidth, pitch, and whether or not scalable fonts are to be listed only.
|
223
223
|
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
|
|
231
231
|
selection background, selection foreground, and normal background and foreground
|
232
232
|
respectively. Double clicking on a colorwell will bring up the Color Selection
|
233
233
|
Dialog.
|
234
|
-
The Color Selection Dialog sypports several ways to select a color:
|
234
|
+
The Color Selection Dialog sypports several ways to select a color:
|
235
235
|
|
236
236
|
1\tBy means of Red, Green, and Blue mixing.
|
237
237
|
2\tBy means of Hue, Saturation, Value mixing.
|
@@ -246,8 +246,8 @@ to hold your own custom color collections.
|
|
246
246
|
Configuration Issues.
|
247
247
|
|
248
248
|
The File Browser keeps an association list in the registry database to associate
|
249
|
-
a particular file extension to an icon and other descriptive information.
|
250
|
-
The following is an example of how this could be filled in:
|
249
|
+
a particular file extension to an icon and other descriptive information.
|
250
|
+
The following is an example of how this could be filled in:
|
251
251
|
|
252
252
|
[SETTINGS]
|
253
253
|
iconpath = /usr/share/icons:/home/jeroen/icons
|
@@ -269,7 +269,7 @@ class HelpWindow < FXDialogBox
|
|
269
269
|
def initialize(owner)
|
270
270
|
super(owner, "Help on TextEdit", DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE,
|
271
271
|
0, 0, 0, 0, 6, 6, 6, 6, 4, 4)
|
272
|
-
|
272
|
+
|
273
273
|
# Bottom part
|
274
274
|
closebox = FXHorizontalFrame.new(self,
|
275
275
|
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
|
@@ -291,7 +291,7 @@ class HelpWindow < FXDialogBox
|
|
291
291
|
TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
292
292
|
helptext.visibleRows = 50
|
293
293
|
helptext.visibleColumns = 60
|
294
|
-
|
294
|
+
|
295
295
|
# Fill with help
|
296
296
|
helptext.text = HELP
|
297
297
|
helptext.tabColumns = 35
|
@@ -101,7 +101,7 @@ class TextWindow < FXMainWindow
|
|
101
101
|
FXMAPFUNC(SEL_CLOSE, ID_TITLE, :onCmdQuit)
|
102
102
|
FXMAPFUNC(SEL_COMMAND, ID_PRINT, :onCmdPrint)
|
103
103
|
FXMAPFUNC(SEL_COMMAND, ID_TREELIST, :onCmdTreeList)
|
104
|
-
|
104
|
+
|
105
105
|
FXMAPFUNC(SEL_COMMAND, ID_TEXT_BACK, :onCmdTextBackColor)
|
106
106
|
FXMAPFUNC(SEL_CHANGED, ID_TEXT_BACK, :onCmdTextBackColor)
|
107
107
|
FXMAPFUNC(SEL_UPDATE, ID_TEXT_BACK, :onUpdTextBackColor)
|
@@ -117,7 +117,7 @@ class TextWindow < FXMainWindow
|
|
117
117
|
FXMAPFUNC(SEL_COMMAND, ID_TEXT_CURSOR, :onCmdTextCursorColor)
|
118
118
|
FXMAPFUNC(SEL_CHANGED, ID_TEXT_CURSOR, :onCmdTextCursorColor)
|
119
119
|
FXMAPFUNC(SEL_UPDATE, ID_TEXT_CURSOR, :onUpdTextCursorColor)
|
120
|
-
|
120
|
+
|
121
121
|
FXMAPFUNC(SEL_COMMAND, ID_DIR_BACK, :onCmdDirBackColor)
|
122
122
|
FXMAPFUNC(SEL_CHANGED, ID_DIR_BACK, :onCmdDirBackColor)
|
123
123
|
FXMAPFUNC(SEL_UPDATE, ID_DIR_BACK, :onUpdDirBackColor)
|
@@ -133,7 +133,7 @@ class TextWindow < FXMainWindow
|
|
133
133
|
FXMAPFUNC(SEL_COMMAND, ID_DIR_LINES, :onCmdDirLineColor)
|
134
134
|
FXMAPFUNC(SEL_CHANGED, ID_DIR_LINES, :onCmdDirLineColor)
|
135
135
|
FXMAPFUNC(SEL_UPDATE, ID_DIR_LINES, :onUpdDirLineColor)
|
136
|
-
|
136
|
+
|
137
137
|
FXMAPFUNC(SEL_COMMAND, ID_RECENTFILE, :onCmdRecentFile)
|
138
138
|
FXMAPFUNC(SEL_UPDATE, ID_TOGGLE_WRAP, :onUpdWrap)
|
139
139
|
FXMAPFUNC(SEL_COMMAND, ID_TOGGLE_WRAP, :onCmdWrap)
|
@@ -181,7 +181,7 @@ class TextWindow < FXMainWindow
|
|
181
181
|
|
182
182
|
# Default font
|
183
183
|
@font = nil
|
184
|
-
|
184
|
+
|
185
185
|
# Make some icons
|
186
186
|
@bigicon = loadIcon("big.png")
|
187
187
|
@smallicon = loadIcon("small.png")
|
@@ -203,71 +203,71 @@ class TextWindow < FXMainWindow
|
|
203
203
|
# Application icons
|
204
204
|
setIcon(@bigicon)
|
205
205
|
setMiniIcon(@smallicon)
|
206
|
-
|
206
|
+
|
207
207
|
# Make main window; set myself as the target
|
208
208
|
setTarget(self)
|
209
209
|
setSelector(ID_TITLE)
|
210
|
-
|
210
|
+
|
211
211
|
# Help window
|
212
212
|
@helpwindow = HelpWindow.new(self)
|
213
|
-
|
213
|
+
|
214
214
|
# Make menu bar
|
215
215
|
dragshell1 = FXToolBarShell.new(self, FRAME_RAISED|FRAME_THICK)
|
216
216
|
menubar = FXMenuBar.new(self, dragshell1, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
|
217
217
|
FXToolBarGrip.new(menubar, menubar, FXMenuBar::ID_TOOLBARGRIP,
|
218
218
|
TOOLBARGRIP_DOUBLE)
|
219
|
-
|
219
|
+
|
220
220
|
# Tool bar
|
221
221
|
dragshell2 = FXToolBarShell.new(self, FRAME_RAISED|FRAME_THICK)
|
222
222
|
toolbar = FXToolBar.new(self, dragshell2,
|
223
223
|
LAYOUT_SIDE_TOP|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH|PACK_UNIFORM_HEIGHT)
|
224
224
|
FXToolBarGrip.new(toolbar, toolbar, FXToolBar::ID_TOOLBARGRIP,
|
225
225
|
TOOLBARGRIP_DOUBLE)
|
226
|
-
|
226
|
+
|
227
227
|
# Status bar
|
228
228
|
statusbar = FXStatusBar.new(self,
|
229
229
|
LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER)
|
230
|
-
|
230
|
+
|
231
231
|
# Info about the editor
|
232
232
|
FXButton.new(statusbar, "\tThe FOX Text Editor\tAbout the FOX Text Editor.",
|
233
233
|
@smallicon, self, ID_ABOUT, LAYOUT_FILL_Y|LAYOUT_RIGHT)
|
234
|
-
|
234
|
+
|
235
235
|
# File menu
|
236
236
|
filemenu = FXMenuPane.new(self)
|
237
237
|
FXMenuTitle.new(menubar, "&File", nil, filemenu)
|
238
|
-
|
238
|
+
|
239
239
|
# Edit Menu
|
240
240
|
editmenu = FXMenuPane.new(self)
|
241
241
|
FXMenuTitle.new(menubar, "&Edit", nil, editmenu)
|
242
|
-
|
242
|
+
|
243
243
|
# Goto Menu
|
244
244
|
gotomenu = FXMenuPane.new(self)
|
245
245
|
FXMenuTitle.new(menubar, "&Goto", nil, gotomenu)
|
246
|
-
|
246
|
+
|
247
247
|
# Search Menu
|
248
248
|
searchmenu = FXMenuPane.new(self)
|
249
249
|
FXMenuTitle.new(menubar, "&Search", nil, searchmenu)
|
250
|
-
|
250
|
+
|
251
251
|
# Options Menu
|
252
252
|
optionmenu = FXMenuPane.new(self)
|
253
253
|
FXMenuTitle.new(menubar, "&Options", nil, optionmenu)
|
254
|
-
|
254
|
+
|
255
255
|
# View menu
|
256
256
|
viewmenu = FXMenuPane.new(self)
|
257
257
|
FXMenuTitle.new(menubar, "&View", nil, viewmenu)
|
258
|
-
|
258
|
+
|
259
259
|
# Help menu
|
260
260
|
helpmenu = FXMenuPane.new(self)
|
261
261
|
FXMenuTitle.new(menubar, "&Help", nil, helpmenu, LAYOUT_RIGHT)
|
262
|
-
|
262
|
+
|
263
263
|
# Splitter
|
264
264
|
splitter = FXSplitter.new(self,
|
265
265
|
LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y|SPLITTER_TRACKING)
|
266
|
-
|
266
|
+
|
267
267
|
# Sunken border for tree
|
268
268
|
@treebox = FXVerticalFrame.new(splitter, LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
269
269
|
0, 0, 0, 0, 0, 0, 0, 0)
|
270
|
-
|
270
|
+
|
271
271
|
# Make tree
|
272
272
|
treeframe = FXHorizontalFrame.new(@treebox,
|
273
273
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y,
|
@@ -280,15 +280,15 @@ class TextWindow < FXMainWindow
|
|
280
280
|
@filter = FXComboBox.new(filterframe, 25, self, ID_FILEFILTER,
|
281
281
|
COMBOBOX_STATIC|LAYOUT_FILL_X|FRAME_SUNKEN|FRAME_THICK)
|
282
282
|
@filter.numVisible = 4
|
283
|
-
|
283
|
+
|
284
284
|
# Sunken border for text widget
|
285
285
|
textbox = FXHorizontalFrame.new(splitter,
|
286
286
|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, 0,0,0,0, 0,0,0,0)
|
287
|
-
|
287
|
+
|
288
288
|
# Make editor window
|
289
289
|
@editor = FXText.new(textbox, self, ID_TEXT, LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
290
290
|
@editor.hiliteMatchTime = 300000
|
291
|
-
|
291
|
+
|
292
292
|
# Show readonly state in status bar
|
293
293
|
readonly = FXLabel.new(statusbar, nil, nil, FRAME_SUNKEN|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
|
294
294
|
readonly.padLeft = 2
|
@@ -297,7 +297,7 @@ class TextWindow < FXMainWindow
|
|
297
297
|
readonly.padBottom = 1
|
298
298
|
readonly.setTarget(self)
|
299
299
|
readonly.setSelector(ID_READONLY)
|
300
|
-
|
300
|
+
|
301
301
|
# Show insert mode in status bar
|
302
302
|
overstrike = FXLabel.new(statusbar, nil, nil, FRAME_SUNKEN|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
|
303
303
|
overstrike.padLeft = 2
|
@@ -306,34 +306,34 @@ class TextWindow < FXMainWindow
|
|
306
306
|
overstrike.padBottom = 1
|
307
307
|
overstrike.setTarget(self)
|
308
308
|
overstrike.setSelector(ID_OVERSTRIKE)
|
309
|
-
|
309
|
+
|
310
310
|
# Show size of text in status bar
|
311
311
|
numchars = FXTextField.new(statusbar, 6, self, ID_NUMCHARS,
|
312
312
|
FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y,
|
313
313
|
0, 0, 0, 0, 2, 2, 1, 1)
|
314
314
|
numchars.backColor = statusbar.backColor
|
315
|
-
|
315
|
+
|
316
316
|
# Caption before number
|
317
317
|
FXLabel.new(statusbar, " Size:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y)
|
318
|
-
|
318
|
+
|
319
319
|
# Show column number in status bar
|
320
320
|
columnno = FXTextField.new(statusbar, 4, @editor, FXText::ID_CURSOR_COLUMN,
|
321
321
|
FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y,
|
322
322
|
0, 0, 0, 0, 2, 2, 1, 1)
|
323
323
|
columnno.backColor = statusbar.backColor
|
324
|
-
|
324
|
+
|
325
325
|
# Caption before number
|
326
326
|
FXLabel.new(statusbar, " Col:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y)
|
327
|
-
|
327
|
+
|
328
328
|
# Show line number in status bar
|
329
329
|
rowno = FXTextField.new(statusbar, 4, @editor, FXText::ID_CURSOR_ROW,
|
330
330
|
FRAME_SUNKEN|JUSTIFY_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y,
|
331
331
|
0, 0, 0, 0, 2, 2, 1, 1)
|
332
332
|
rowno.backColor = statusbar.backColor
|
333
|
-
|
333
|
+
|
334
334
|
# Caption before number
|
335
335
|
FXLabel.new(statusbar, " Line:", nil, LAYOUT_RIGHT|LAYOUT_CENTER_Y)
|
336
|
-
|
336
|
+
|
337
337
|
# Toobar buttons: File manipulation
|
338
338
|
FXButton.new(toolbar, "New\tNew\tCreate new document.", @newicon,
|
339
339
|
self, ID_NEW, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED|
|
@@ -347,14 +347,14 @@ class TextWindow < FXMainWindow
|
|
347
347
|
FXButton.new(toolbar, "Save as\tSave As\tSave document to another file.",
|
348
348
|
@saveasicon, self, ID_SAVEAS, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|
|
349
349
|
FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT))
|
350
|
-
|
350
|
+
|
351
351
|
# Toobar buttons: Print
|
352
352
|
FXFrame.new(toolbar,
|
353
353
|
LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5)
|
354
354
|
FXButton.new(toolbar, "Print\tPrint\tPrint document.", @printicon,
|
355
355
|
self, ID_PRINT, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED|
|
356
356
|
LAYOUT_TOP|LAYOUT_LEFT))
|
357
|
-
|
357
|
+
|
358
358
|
# Toobar buttons: Editing
|
359
359
|
FXFrame.new(toolbar,
|
360
360
|
LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5)
|
@@ -373,18 +373,18 @@ class TextWindow < FXMainWindow
|
|
373
373
|
FXButton.new(toolbar, "Redo\tRedo\tRedo last undo.", @redoicon,
|
374
374
|
@undolist, FXUndoList::ID_REDO, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|
|
375
375
|
FRAME_RAISED|LAYOUT_TOP|LAYOUT_LEFT))
|
376
|
-
|
376
|
+
|
377
377
|
# Color
|
378
378
|
FXFrame.new(toolbar,
|
379
379
|
LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 5, 5)
|
380
380
|
FXButton.new(toolbar, "Fonts\tFonts\tDisplay font dialog.", @fontsicon,
|
381
381
|
self, ID_FONT, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|FRAME_RAISED|
|
382
382
|
LAYOUT_TOP|LAYOUT_LEFT))
|
383
|
-
|
383
|
+
|
384
384
|
FXButton.new(toolbar, "Help\tHelp on editor\tDisplay help information.",
|
385
385
|
@helpicon, self, ID_SHOW_HELP, (ICON_ABOVE_TEXT|BUTTON_TOOLBAR|
|
386
386
|
FRAME_RAISED|LAYOUT_TOP|LAYOUT_RIGHT))
|
387
|
-
|
387
|
+
|
388
388
|
# File Menu entries
|
389
389
|
FXMenuCommand.new(filemenu, "&Open... \tCtl-O\tOpen document file.",
|
390
390
|
@openicon, self, ID_OPEN)
|
@@ -410,7 +410,7 @@ class TextWindow < FXMainWindow
|
|
410
410
|
@editor, FXText::ID_TOGGLE_EDITABLE)
|
411
411
|
iconifyCmd = FXMenuCommand.new(filemenu, "&Iconify...\t\tIconify editor.")
|
412
412
|
iconifyCmd.connect(SEL_COMMAND) { self.minimize }
|
413
|
-
|
413
|
+
|
414
414
|
# Recent file menu; this automatically hides if there are no files
|
415
415
|
sep1 = FXMenuSeparator.new(filemenu)
|
416
416
|
sep1.setTarget(@mrufiles)
|
@@ -431,7 +431,7 @@ class TextWindow < FXMainWindow
|
|
431
431
|
sep2.setTarget(@mrufiles)
|
432
432
|
sep2.setSelector(FXRecentFiles::ID_ANYFILES)
|
433
433
|
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, self, ID_QUIT)
|
434
|
-
|
434
|
+
|
435
435
|
# Edit Menu entries
|
436
436
|
FXMenuCommand.new(editmenu, "&Undo\tCtl-Z\tUndo last change.", @undoicon,
|
437
437
|
@undolist, FXUndoList::ID_UNDO)
|
@@ -471,7 +471,7 @@ class TextWindow < FXMainWindow
|
|
471
471
|
FXMenuCommand.new(editmenu,
|
472
472
|
"Shift tab right\t\tShift text right one tab position.", nil,
|
473
473
|
@editor, FXText::ID_SHIFT_TABRIGHT)
|
474
|
-
|
474
|
+
|
475
475
|
# Goto Menu entries
|
476
476
|
FXMenuCommand.new(gotomenu,
|
477
477
|
"&Goto...\tCtl-G\tGoto line number.", nil,
|
@@ -496,7 +496,7 @@ class TextWindow < FXMainWindow
|
|
496
496
|
FXMenuCommand.new(searchmenu,
|
497
497
|
"Goto matching (..)\tCtl-M\tGoto matching brace or parenthesis.", nil,
|
498
498
|
@editor, FXText::ID_GOTO_MATCHING)
|
499
|
-
|
499
|
+
|
500
500
|
# Search Menu entries
|
501
501
|
FXMenuCommand.new(searchmenu,
|
502
502
|
"Select matching (..)\tShift-Ctl-M\tSelect matching brace or parenthesis.", nil,
|
@@ -526,7 +526,7 @@ class TextWindow < FXMainWindow
|
|
526
526
|
FXMenuCommand.new(searchmenu,
|
527
527
|
"R&eplace...\tCtl-R\tSearch for a string.", nil,
|
528
528
|
@editor, FXText::ID_REPLACE)
|
529
|
-
|
529
|
+
|
530
530
|
# Options menu
|
531
531
|
FXMenuCommand.new(optionmenu,
|
532
532
|
"Preferences...\t\tChange preferences.", nil,
|
@@ -542,7 +542,7 @@ class TextWindow < FXMainWindow
|
|
542
542
|
FXMenuCommand.new(optionmenu,
|
543
543
|
"Save Settings...\t\tSave settings now.", nil,
|
544
544
|
self, TextWindow::ID_SAVE_SETTINGS)
|
545
|
-
|
545
|
+
|
546
546
|
# View Menu entries
|
547
547
|
FXMenuCommand.new(viewmenu,
|
548
548
|
"Hidden files\t\tShow hidden files and directories.", nil,
|
@@ -554,34 +554,34 @@ class TextWindow < FXMainWindow
|
|
554
554
|
toolbar, FXWindow::ID_TOGGLESHOWN)
|
555
555
|
FXMenuCommand.new(viewmenu, "Status line\t\tDisplay status line.", nil,
|
556
556
|
statusbar, FXWindow::ID_TOGGLESHOWN)
|
557
|
-
|
557
|
+
|
558
558
|
# Help Menu entries
|
559
559
|
FXMenuCommand.new(helpmenu, "&Help...\t\tDisplay help information.",
|
560
560
|
@helpicon, self, ID_SHOW_HELP, 0)
|
561
561
|
FXMenuSeparator.new(helpmenu)
|
562
562
|
FXMenuCommand.new(helpmenu, "&About TextEdit...\t\tDisplay about panel.",
|
563
563
|
@smallicon, self, ID_ABOUT, 0)
|
564
|
-
|
564
|
+
|
565
565
|
# Make a tool tip
|
566
566
|
FXToolTip.new(getApp(), 0)
|
567
|
-
|
567
|
+
|
568
568
|
# Recent files
|
569
569
|
@mrufiles = FXRecentFiles.new
|
570
570
|
@mrufiles.setTarget(self)
|
571
571
|
@mrufiles.setSelector(ID_RECENTFILE)
|
572
|
-
|
572
|
+
|
573
573
|
# Add some alternative accelerators
|
574
574
|
if getAccelTable()
|
575
575
|
getAccelTable().addAccel(MKUINT(KEY_Z, CONTROLMASK|SHIFTMASK),
|
576
576
|
@undolist,
|
577
577
|
MKUINT(FXUndoList::ID_REDO, SEL_COMMAND))
|
578
578
|
end
|
579
|
-
|
579
|
+
|
580
580
|
# Initialize file name
|
581
581
|
@filename = "untitled"
|
582
582
|
@filetime = nil
|
583
583
|
@filenameset = false
|
584
|
-
|
584
|
+
|
585
585
|
# Initialize other stuff
|
586
586
|
@searchpath = "/usr/include"
|
587
587
|
setPatterns(["All Files (*)"])
|
@@ -752,7 +752,7 @@ class TextWindow < FXMainWindow
|
|
752
752
|
|
753
753
|
# File patterns
|
754
754
|
patterns = getApp().reg().readStringEntry("SETTINGS", "filepatterns", "All Files (*)")
|
755
|
-
setPatterns(patterns.split("\n"))
|
755
|
+
setPatterns(patterns.split("\n"))
|
756
756
|
setCurrentPattern(getApp().reg().readIntEntry("SETTINGS", "filepatternno", 0))
|
757
757
|
|
758
758
|
# Search path
|
@@ -764,57 +764,57 @@ class TextWindow < FXMainWindow
|
|
764
764
|
@editor.selBackColor = textselback
|
765
765
|
@editor.selTextColor = textselfore
|
766
766
|
@editor.cursorColor = textcursor
|
767
|
-
|
767
|
+
|
768
768
|
@dirlist.textColor = dirfore
|
769
769
|
@dirlist.backColor = dirback
|
770
770
|
@dirlist.selBackColor = dirselback
|
771
771
|
@dirlist.selTextColor = dirselfore
|
772
772
|
@dirlist.lineColor = dirlines
|
773
|
-
|
773
|
+
|
774
774
|
# Change delimiters
|
775
775
|
@editor.delimiters = delimiters
|
776
|
-
|
776
|
+
|
777
777
|
# Hide tree if asked for
|
778
778
|
@treebox.hide if hidetree
|
779
|
-
|
779
|
+
|
780
780
|
# Set tree width
|
781
781
|
@treebox.width = treewidth
|
782
|
-
|
782
|
+
|
783
783
|
# Open toward file
|
784
784
|
@dirlist.currentFile = @filename
|
785
|
-
|
785
|
+
|
786
786
|
# Wrap mode
|
787
787
|
if wrapping
|
788
788
|
@editor.textStyle |= TEXT_WORDWRAP
|
789
789
|
else
|
790
790
|
@editor.textStyle &= ~TEXT_WORDWRAP
|
791
791
|
end
|
792
|
-
|
792
|
+
|
793
793
|
# Wrap fixed mode
|
794
794
|
if fixedwrap
|
795
795
|
@editor.textStyle |= TEXT_FIXEDWRAP
|
796
796
|
else
|
797
797
|
@editor.textStyle &= ~TEXT_FIXEDWRAP
|
798
798
|
end
|
799
|
-
|
799
|
+
|
800
800
|
# Autoindent
|
801
801
|
if autoindent
|
802
802
|
@editor.textStyle |= TEXT_AUTOINDENT
|
803
803
|
else
|
804
804
|
@editor.textStyle &= ~TEXT_AUTOINDENT
|
805
805
|
end
|
806
|
-
|
806
|
+
|
807
807
|
# Hard tabs
|
808
808
|
if hardtabs
|
809
809
|
@editor.textStyle &= ~TEXT_NO_TABS
|
810
810
|
else
|
811
811
|
@editor.textStyle |= TEXT_NO_TABS
|
812
812
|
end
|
813
|
-
|
813
|
+
|
814
814
|
# Wrap and tab columns
|
815
815
|
@editor.wrapColumns = wrapcols
|
816
816
|
@editor.tabColumns = tabcols
|
817
|
-
|
817
|
+
|
818
818
|
# Reposition window
|
819
819
|
position(xx, yy, ww, hh)
|
820
820
|
end
|
@@ -828,54 +828,54 @@ class TextWindow < FXMainWindow
|
|
828
828
|
getApp().reg().writeColorEntry("SETTINGS", "textselbackground", @editor.selBackColor)
|
829
829
|
getApp().reg().writeColorEntry("SETTINGS", "textselforeground", @editor.selTextColor)
|
830
830
|
getApp().reg().writeColorEntry("SETTINGS", "textcursor", @editor.cursorColor)
|
831
|
-
|
831
|
+
|
832
832
|
# Colors of directory
|
833
833
|
getApp().reg().writeColorEntry("SETTINGS", "browserbackground", @dirlist.backColor)
|
834
834
|
getApp().reg().writeColorEntry("SETTINGS", "browserforeground", @dirlist.textColor)
|
835
835
|
getApp().reg().writeColorEntry("SETTINGS", "browserselbackground", @dirlist.selBackColor)
|
836
836
|
getApp().reg().writeColorEntry("SETTINGS", "browserselforeground", @dirlist.selTextColor)
|
837
837
|
getApp().reg().writeColorEntry("SETTINGS", "browserlines", @dirlist.lineColor)
|
838
|
-
|
838
|
+
|
839
839
|
# Delimiters
|
840
840
|
getApp().reg().writeStringEntry("SETTINGS", "delimiters", @editor.delimiters)
|
841
|
-
|
841
|
+
|
842
842
|
# Write new window size back to registry
|
843
843
|
getApp().reg().writeIntEntry("SETTINGS", "x", getX())
|
844
844
|
getApp().reg().writeIntEntry("SETTINGS", "y", getY())
|
845
845
|
getApp().reg().writeIntEntry("SETTINGS", "width", getWidth())
|
846
846
|
getApp().reg().writeIntEntry("SETTINGS", "height", getHeight())
|
847
|
-
|
847
|
+
|
848
848
|
# Were showing hidden files
|
849
849
|
getApp().reg().writeIntEntry("SETTINGS", "showhiddenfiles", @dirlist.hiddenFilesShown? ? 1 : 0)
|
850
|
-
|
850
|
+
|
851
851
|
# Was tree shown?
|
852
852
|
getApp().reg().writeIntEntry("SETTINGS", "hidetree", @treebox.shown() ? 0 : 1)
|
853
|
-
|
853
|
+
|
854
854
|
# Width of tree
|
855
855
|
getApp().reg().writeIntEntry("SETTINGS", "treewidth", @treebox.getWidth())
|
856
|
-
|
856
|
+
|
857
857
|
# Wrap mode
|
858
858
|
getApp().reg().writeIntEntry("SETTINGS", "wordwrap", (@editor.textStyle & TEXT_WORDWRAP) != 0 ? 1 : 0)
|
859
859
|
getApp().reg().writeIntEntry("SETTINGS", "fixedwrap", (@editor.textStyle & TEXT_FIXEDWRAP) != 0 ? 1 : 0)
|
860
860
|
getApp().reg().writeIntEntry("SETTINGS", "wrapcols", @editor.getWrapColumns())
|
861
|
-
|
861
|
+
|
862
862
|
# Tab settings, autoindent
|
863
863
|
getApp().reg().writeIntEntry("SETTINGS", "autoindent", (@editor.textStyle & TEXT_AUTOINDENT) != 0 ? 1 : 0)
|
864
864
|
getApp().reg().writeIntEntry("SETTINGS", "hardtabs", (@editor.textStyle & TEXT_NO_TABS) == 0 ? 1 : 0)
|
865
865
|
getApp().reg().writeIntEntry("SETTINGS", "tabcols", @editor.getTabColumns())
|
866
|
-
|
866
|
+
|
867
867
|
# Strip returns
|
868
868
|
getApp().reg().writeIntEntry("SETTINGS", "stripreturn", @stripcr ? 1 : 0)
|
869
869
|
getApp().reg().writeIntEntry("SETTINGS", "stripspaces", @stripsp ? 1 : 0)
|
870
|
-
|
870
|
+
|
871
871
|
# File patterns
|
872
872
|
getApp().reg().writeIntEntry("SETTINGS", "filepatternno", getCurrentPattern())
|
873
873
|
patterns = getPatterns().join("\n")
|
874
874
|
getApp().reg().writeStringEntry("SETTINGS", "filepatterns", patterns)
|
875
|
-
|
875
|
+
|
876
876
|
# Search path
|
877
877
|
getApp().reg().writeStringEntry("SETTINGS", "searchpath", @searchpath)
|
878
|
-
|
878
|
+
|
879
879
|
# Font
|
880
880
|
getApp().reg().writeStringEntry("SETTINGS", "font", @editor.font.font)
|
881
881
|
end
|