fxruby 1.6.20-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +10 -0
- data/Manifest.txt +922 -0
- data/README +39 -0
- data/README.txt +482 -0
- data/Rakefile +191 -0
- data/TODO +47 -0
- data/doap.rdf +87 -0
- data/examples/RAA.rb +25 -0
- data/examples/README +53 -0
- data/examples/babelfish.rb +72 -0
- data/examples/bounce.rb +159 -0
- data/examples/browser.rb +191 -0
- data/examples/button.rb +168 -0
- data/examples/charts.rb +35 -0
- data/examples/custom_table_item.rb +170 -0
- data/examples/datatarget.rb +223 -0
- data/examples/dctest.rb +696 -0
- data/examples/dialog.rb +143 -0
- data/examples/dilbert.rb +66 -0
- data/examples/dirlist.rb +63 -0
- data/examples/dragdrop.rb +97 -0
- data/examples/dragsource.rb +80 -0
- data/examples/dropsite.rb +59 -0
- data/examples/foursplit.rb +97 -0
- data/examples/gltest.rb +330 -0
- data/examples/glviewer.rb +576 -0
- data/examples/groupbox.rb +392 -0
- data/examples/header.rb +149 -0
- data/examples/hello.rb +12 -0
- data/examples/hello2.rb +51 -0
- data/examples/iRAA.rb +153 -0
- data/examples/iconlist.rb +92 -0
- data/examples/icons/AngryGuyInBunnySuit.ico +0 -0
- data/examples/icons/FatBot.ico +0 -0
- data/examples/icons/FlippedySwitch.ico +0 -0
- data/examples/icons/LeGoon.ico +0 -0
- data/examples/icons/Net.ico +0 -0
- data/examples/icons/RedMacOS.ico +0 -0
- data/examples/icons/SawBlade.ico +0 -0
- data/examples/icons/backview.png +0 -0
- data/examples/icons/big.png +0 -0
- data/examples/icons/bigfolder.png +0 -0
- data/examples/icons/bigpenguin.png +0 -0
- data/examples/icons/bluebullet14x14.gif +0 -0
- data/examples/icons/bottomview.png +0 -0
- data/examples/icons/camera.png +0 -0
- data/examples/icons/capbutt.png +0 -0
- data/examples/icons/capnotlast.png +0 -0
- data/examples/icons/capproj.png +0 -0
- data/examples/icons/capround.png +0 -0
- data/examples/icons/colorpal.png +0 -0
- data/examples/icons/copy.png +0 -0
- data/examples/icons/cut.png +0 -0
- data/examples/icons/delimit.png +0 -0
- data/examples/icons/dippy.png +0 -0
- data/examples/icons/double_dash.png +0 -0
- data/examples/icons/filenew.png +0 -0
- data/examples/icons/fileopen.png +0 -0
- data/examples/icons/filesave.png +0 -0
- data/examples/icons/filesaveas.png +0 -0
- data/examples/icons/fonts.png +0 -0
- data/examples/icons/fox.png +0 -0
- data/examples/icons/foxicon.png +0 -0
- data/examples/icons/frontview.png +0 -0
- data/examples/icons/gem_big.png +0 -0
- data/examples/icons/gem_small.png +0 -0
- data/examples/icons/hello2.png +0 -0
- data/examples/icons/help.png +0 -0
- data/examples/icons/indent.png +0 -0
- data/examples/icons/jbevel.png +0 -0
- data/examples/icons/jmiter.png +0 -0
- data/examples/icons/jround.png +0 -0
- data/examples/icons/kill.png +0 -0
- data/examples/icons/leftview.png +0 -0
- data/examples/icons/light.png +0 -0
- data/examples/icons/minidoc.png +0 -0
- data/examples/icons/minifolder.png +0 -0
- data/examples/icons/minifolderopen.png +0 -0
- data/examples/icons/newfolder.png +0 -0
- data/examples/icons/nolight.png +0 -0
- data/examples/icons/onoff_dash.png +0 -0
- data/examples/icons/palette.png +0 -0
- data/examples/icons/parallel.png +0 -0
- data/examples/icons/paste.png +0 -0
- data/examples/icons/pattern.png +0 -0
- data/examples/icons/penguin.png +0 -0
- data/examples/icons/perspective.png +0 -0
- data/examples/icons/printicon.png +0 -0
- data/examples/icons/prop.png +0 -0
- data/examples/icons/redo.png +0 -0
- data/examples/icons/rightview.png +0 -0
- data/examples/icons/saveas.png +0 -0
- data/examples/icons/shutter1.png +0 -0
- data/examples/icons/shutter2.png +0 -0
- data/examples/icons/small.png +0 -0
- data/examples/icons/smoothlight.png +0 -0
- data/examples/icons/solid_line.png +0 -0
- data/examples/icons/tbuplevel.png +0 -0
- data/examples/icons/topview.png +0 -0
- data/examples/icons/transpbullet14x14.gif +0 -0
- data/examples/icons/undo.png +0 -0
- data/examples/icons/winapp.png +0 -0
- data/examples/icons/zoom.png +0 -0
- data/examples/image.rb +279 -0
- data/examples/imageviewer.rb +509 -0
- data/examples/inputs.rb +83 -0
- data/examples/mditest.rb +180 -0
- data/examples/pig.rb +77 -0
- data/examples/raabrowser.rb +122 -0
- data/examples/ratio.rb +80 -0
- data/examples/rulerview.rb +27 -0
- data/examples/scintilla-test.rb +81 -0
- data/examples/scribble-orig.rb +186 -0
- data/examples/scribble.rb +162 -0
- data/examples/shutter.rb +158 -0
- data/examples/splitter.rb +211 -0
- data/examples/styledtext.rb +82 -0
- data/examples/tabbook.rb +165 -0
- data/examples/table.rb +182 -0
- data/examples/textedit/commands.rb +114 -0
- data/examples/textedit/helpwindow.rb +299 -0
- data/examples/textedit/prefdialog.rb +239 -0
- data/examples/textedit/textedit.rb +1763 -0
- data/examples/unicode.rb +36 -0
- data/ext/fox16/FXRbApp.cpp +128 -0
- data/ext/fox16/FXRbDataTarget.cpp +110 -0
- data/ext/fox16/FXRbGLViewer.cpp +89 -0
- data/ext/fox16/FXRuby.cpp +2067 -0
- data/ext/fox16/MANIFEST +189 -0
- data/ext/fox16/core_wrap.cpp +11541 -0
- data/ext/fox16/dc_wrap.cpp +2874 -0
- data/ext/fox16/dialogs_wrap.cpp +7963 -0
- data/ext/fox16/extconf.rb +143 -0
- data/ext/fox16/frames_wrap.cpp +11380 -0
- data/ext/fox16/fx3d_wrap.cpp +10651 -0
- data/ext/fox16/iconlist_wrap.cpp +4074 -0
- data/ext/fox16/icons_wrap.cpp +4745 -0
- data/ext/fox16/image_wrap.cpp +4388 -0
- data/ext/fox16/impl.cpp +1156 -0
- data/ext/fox16/include/FXMemoryBuffer.h +52 -0
- data/ext/fox16/include/FXRb4Splitter.h +54 -0
- data/ext/fox16/include/FXRb7Segment.h +51 -0
- data/ext/fox16/include/FXRbAccelTable.h +46 -0
- data/ext/fox16/include/FXRbApp.h +155 -0
- data/ext/fox16/include/FXRbAppVirtuals.h +15 -0
- data/ext/fox16/include/FXRbArrowButton.h +51 -0
- data/ext/fox16/include/FXRbBMPIcon.h +54 -0
- data/ext/fox16/include/FXRbBMPImage.h +54 -0
- data/ext/fox16/include/FXRbBitmap.h +133 -0
- data/ext/fox16/include/FXRbBitmapFrame.h +56 -0
- data/ext/fox16/include/FXRbBitmapView.h +56 -0
- data/ext/fox16/include/FXRbBitmapVirtuals.h +37 -0
- data/ext/fox16/include/FXRbButton.h +51 -0
- data/ext/fox16/include/FXRbCURCursor.h +60 -0
- data/ext/fox16/include/FXRbCanvas.h +51 -0
- data/ext/fox16/include/FXRbCheckButton.h +51 -0
- data/ext/fox16/include/FXRbChoiceBox.h +56 -0
- data/ext/fox16/include/FXRbColorBar.h +51 -0
- data/ext/fox16/include/FXRbColorDialog.h +53 -0
- data/ext/fox16/include/FXRbColorList.h +84 -0
- data/ext/fox16/include/FXRbColorRing.h +51 -0
- data/ext/fox16/include/FXRbColorSelector.h +51 -0
- data/ext/fox16/include/FXRbColorWell.h +51 -0
- data/ext/fox16/include/FXRbColorWheel.h +51 -0
- data/ext/fox16/include/FXRbComboBox.h +56 -0
- data/ext/fox16/include/FXRbCommon.h +93 -0
- data/ext/fox16/include/FXRbComposite.h +51 -0
- data/ext/fox16/include/FXRbCursor.h +87 -0
- data/ext/fox16/include/FXRbCursorVirtuals.h +6 -0
- data/ext/fox16/include/FXRbDC.h +427 -0
- data/ext/fox16/include/FXRbDCPrint.h +49 -0
- data/ext/fox16/include/FXRbDCVirtuals.h +187 -0
- data/ext/fox16/include/FXRbDCWindow.h +64 -0
- data/ext/fox16/include/FXRbDataTarget.h +65 -0
- data/ext/fox16/include/FXRbDebugTarget.h +46 -0
- data/ext/fox16/include/FXRbDelegator.h +46 -0
- data/ext/fox16/include/FXRbDial.h +51 -0
- data/ext/fox16/include/FXRbDialogBox.h +68 -0
- data/ext/fox16/include/FXRbDialogBoxVirtuals.h +3 -0
- data/ext/fox16/include/FXRbDict.h +46 -0
- data/ext/fox16/include/FXRbDirBox.h +52 -0
- data/ext/fox16/include/FXRbDirDialog.h +56 -0
- data/ext/fox16/include/FXRbDirList.h +79 -0
- data/ext/fox16/include/FXRbDirSelector.h +51 -0
- data/ext/fox16/include/FXRbDockBar.h +86 -0
- data/ext/fox16/include/FXRbDockBarVirtuals.h +10 -0
- data/ext/fox16/include/FXRbDockHandler.h +51 -0
- data/ext/fox16/include/FXRbDockSite.h +85 -0
- data/ext/fox16/include/FXRbDockSiteVirtuals.h +13 -0
- data/ext/fox16/include/FXRbDockTitle.h +51 -0
- data/ext/fox16/include/FXRbDocument.h +46 -0
- data/ext/fox16/include/FXRbDragCorner.h +51 -0
- data/ext/fox16/include/FXRbDrawable.h +64 -0
- data/ext/fox16/include/FXRbDrawableVirtuals.h +3 -0
- data/ext/fox16/include/FXRbDriveBox.h +52 -0
- data/ext/fox16/include/FXRbFileDialog.h +56 -0
- data/ext/fox16/include/FXRbFileDict.h +104 -0
- data/ext/fox16/include/FXRbFileDictVirtuals.h +9 -0
- data/ext/fox16/include/FXRbFileList.h +81 -0
- data/ext/fox16/include/FXRbFileSelector.h +51 -0
- data/ext/fox16/include/FXRbFoldingItemVirtuals.h +42 -0
- data/ext/fox16/include/FXRbFoldingList.h +270 -0
- data/ext/fox16/include/FXRbFoldingListVirtuals.h +43 -0
- data/ext/fox16/include/FXRbFont.h +183 -0
- data/ext/fox16/include/FXRbFontDialog.h +53 -0
- data/ext/fox16/include/FXRbFontSelector.h +51 -0
- data/ext/fox16/include/FXRbFontVirtuals.h +55 -0
- data/ext/fox16/include/FXRbFrame.h +51 -0
- data/ext/fox16/include/FXRbGIFCursor.h +60 -0
- data/ext/fox16/include/FXRbGIFIcon.h +54 -0
- data/ext/fox16/include/FXRbGIFImage.h +54 -0
- data/ext/fox16/include/FXRbGLCanvas.h +92 -0
- data/ext/fox16/include/FXRbGLCanvasVirtuals.h +13 -0
- data/ext/fox16/include/FXRbGLContext.h +58 -0
- data/ext/fox16/include/FXRbGLObject.h +103 -0
- data/ext/fox16/include/FXRbGLObjectVirtuals.h +22 -0
- data/ext/fox16/include/FXRbGLShape.h +81 -0
- data/ext/fox16/include/FXRbGLShapeVirtuals.h +8 -0
- data/ext/fox16/include/FXRbGLViewer.h +89 -0
- data/ext/fox16/include/FXRbGLViewerVirtuals.h +10 -0
- data/ext/fox16/include/FXRbGLVisual.h +56 -0
- data/ext/fox16/include/FXRbGradientBar.h +55 -0
- data/ext/fox16/include/FXRbGroupBox.h +51 -0
- data/ext/fox16/include/FXRbHeader.h +129 -0
- data/ext/fox16/include/FXRbHeaderItemVirtuals.h +22 -0
- data/ext/fox16/include/FXRbHorizontalFrame.h +51 -0
- data/ext/fox16/include/FXRbICOIcon.h +54 -0
- data/ext/fox16/include/FXRbICOImage.h +54 -0
- data/ext/fox16/include/FXRbIcon.h +57 -0
- data/ext/fox16/include/FXRbIconItemVirtuals.h +68 -0
- data/ext/fox16/include/FXRbIconList.h +288 -0
- data/ext/fox16/include/FXRbIconListVirtuals.h +35 -0
- data/ext/fox16/include/FXRbIconSource.h +127 -0
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +37 -0
- data/ext/fox16/include/FXRbId.h +74 -0
- data/ext/fox16/include/FXRbIdVirtuals.h +9 -0
- data/ext/fox16/include/FXRbImage.h +162 -0
- data/ext/fox16/include/FXRbImageFrame.h +56 -0
- data/ext/fox16/include/FXRbImageView.h +55 -0
- data/ext/fox16/include/FXRbImageVirtuals.h +51 -0
- data/ext/fox16/include/FXRbInputDialog.h +56 -0
- data/ext/fox16/include/FXRbJPGIcon.h +54 -0
- data/ext/fox16/include/FXRbJPGImage.h +54 -0
- data/ext/fox16/include/FXRbKnob.h +51 -0
- data/ext/fox16/include/FXRbLabel.h +51 -0
- data/ext/fox16/include/FXRbList.h +226 -0
- data/ext/fox16/include/FXRbListBox.h +67 -0
- data/ext/fox16/include/FXRbListBoxVirtuals.h +4 -0
- data/ext/fox16/include/FXRbListItemVirtuals.h +33 -0
- data/ext/fox16/include/FXRbListVirtuals.h +30 -0
- data/ext/fox16/include/FXRbMDIButton.h +162 -0
- data/ext/fox16/include/FXRbMDIChild.h +82 -0
- data/ext/fox16/include/FXRbMDIChildVirtuals.h +12 -0
- data/ext/fox16/include/FXRbMDIClient.h +80 -0
- data/ext/fox16/include/FXRbMDIClientVirtuals.h +12 -0
- data/ext/fox16/include/FXRbMainWindow.h +54 -0
- data/ext/fox16/include/FXRbMatrix.h +51 -0
- data/ext/fox16/include/FXRbMenuBar.h +63 -0
- data/ext/fox16/include/FXRbMenuButton.h +51 -0
- data/ext/fox16/include/FXRbMenuCaption.h +51 -0
- data/ext/fox16/include/FXRbMenuCascade.h +51 -0
- data/ext/fox16/include/FXRbMenuCheck.h +49 -0
- data/ext/fox16/include/FXRbMenuCommand.h +49 -0
- data/ext/fox16/include/FXRbMenuPane.h +52 -0
- data/ext/fox16/include/FXRbMenuRadio.h +49 -0
- data/ext/fox16/include/FXRbMenuSeparator.h +51 -0
- data/ext/fox16/include/FXRbMenuTitle.h +51 -0
- data/ext/fox16/include/FXRbMessageBox.h +56 -0
- data/ext/fox16/include/FXRbObject.h +67 -0
- data/ext/fox16/include/FXRbObjectVirtuals.h +9 -0
- data/ext/fox16/include/FXRbOptionMenu.h +73 -0
- data/ext/fox16/include/FXRbPCXIcon.h +54 -0
- data/ext/fox16/include/FXRbPCXImage.h +54 -0
- data/ext/fox16/include/FXRbPNGIcon.h +54 -0
- data/ext/fox16/include/FXRbPNGImage.h +54 -0
- data/ext/fox16/include/FXRbPPMIcon.h +54 -0
- data/ext/fox16/include/FXRbPPMImage.h +54 -0
- data/ext/fox16/include/FXRbPacker.h +51 -0
- data/ext/fox16/include/FXRbPicker.h +51 -0
- data/ext/fox16/include/FXRbPopup.h +70 -0
- data/ext/fox16/include/FXRbPopupVirtuals.h +6 -0
- data/ext/fox16/include/FXRbPrintDialog.h +53 -0
- data/ext/fox16/include/FXRbProgressBar.h +51 -0
- data/ext/fox16/include/FXRbProgressDialog.h +53 -0
- data/ext/fox16/include/FXRbRGBIcon.h +54 -0
- data/ext/fox16/include/FXRbRGBImage.h +54 -0
- data/ext/fox16/include/FXRbRadioButton.h +51 -0
- data/ext/fox16/include/FXRbRealSlider.h +51 -0
- data/ext/fox16/include/FXRbRealSpinner.h +64 -0
- data/ext/fox16/include/FXRbRealSpinnerVirtuals.h +3 -0
- data/ext/fox16/include/FXRbRecentFiles.h +52 -0
- data/ext/fox16/include/FXRbRegistry.h +46 -0
- data/ext/fox16/include/FXRbReplaceDialog.h +53 -0
- data/ext/fox16/include/FXRbRootWindow.h +51 -0
- data/ext/fox16/include/FXRbRuler.h +56 -0
- data/ext/fox16/include/FXRbRulerView.h +54 -0
- data/ext/fox16/include/FXRbScintilla.h +52 -0
- data/ext/fox16/include/FXRbScrollArea.h +87 -0
- data/ext/fox16/include/FXRbScrollAreaVirtuals.h +13 -0
- data/ext/fox16/include/FXRbScrollBar.h +73 -0
- data/ext/fox16/include/FXRbScrollPane.h +52 -0
- data/ext/fox16/include/FXRbScrollWindow.h +57 -0
- data/ext/fox16/include/FXRbSearchDialog.h +53 -0
- data/ext/fox16/include/FXRbSeparator.h +95 -0
- data/ext/fox16/include/FXRbSettings.h +46 -0
- data/ext/fox16/include/FXRbShell.h +56 -0
- data/ext/fox16/include/FXRbShutter.h +86 -0
- data/ext/fox16/include/FXRbShutterVirtuals.h +3 -0
- data/ext/fox16/include/FXRbSlider.h +51 -0
- data/ext/fox16/include/FXRbSpinner.h +64 -0
- data/ext/fox16/include/FXRbSpinnerVirtuals.h +3 -0
- data/ext/fox16/include/FXRbSplashWindow.h +57 -0
- data/ext/fox16/include/FXRbSplitter.h +54 -0
- data/ext/fox16/include/FXRbSpring.h +51 -0
- data/ext/fox16/include/FXRbStatusBar.h +51 -0
- data/ext/fox16/include/FXRbStatusLine.h +51 -0
- data/ext/fox16/include/FXRbStream.h +101 -0
- data/ext/fox16/include/FXRbStreamVirtuals.h +9 -0
- data/ext/fox16/include/FXRbStringDict.h +46 -0
- data/ext/fox16/include/FXRbSwitcher.h +51 -0
- data/ext/fox16/include/FXRbTGAIcon.h +54 -0
- data/ext/fox16/include/FXRbTGAImage.h +54 -0
- data/ext/fox16/include/FXRbTIFIcon.h +54 -0
- data/ext/fox16/include/FXRbTIFImage.h +54 -0
- data/ext/fox16/include/FXRbTabBar.h +64 -0
- data/ext/fox16/include/FXRbTabBarVirtuals.h +3 -0
- data/ext/fox16/include/FXRbTabBook.h +52 -0
- data/ext/fox16/include/FXRbTabItem.h +51 -0
- data/ext/fox16/include/FXRbTable.h +509 -0
- data/ext/fox16/include/FXRbTableItemVirtuals.h +89 -0
- data/ext/fox16/include/FXRbTableVirtuals.h +89 -0
- data/ext/fox16/include/FXRbText.h +187 -0
- data/ext/fox16/include/FXRbTextField.h +51 -0
- data/ext/fox16/include/FXRbTextVirtuals.h +52 -0
- data/ext/fox16/include/FXRbToggleButton.h +51 -0
- data/ext/fox16/include/FXRbToolBar.h +63 -0
- data/ext/fox16/include/FXRbToolBarGrip.h +51 -0
- data/ext/fox16/include/FXRbToolBarShell.h +52 -0
- data/ext/fox16/include/FXRbToolBarTab.h +51 -0
- data/ext/fox16/include/FXRbToolTip.h +51 -0
- data/ext/fox16/include/FXRbTopWindow.h +91 -0
- data/ext/fox16/include/FXRbTopWindowVirtuals.h +15 -0
- data/ext/fox16/include/FXRbTranslator.h +61 -0
- data/ext/fox16/include/FXRbTranslatorVirtuals.h +4 -0
- data/ext/fox16/include/FXRbTreeItemVirtuals.h +42 -0
- data/ext/fox16/include/FXRbTreeList.h +277 -0
- data/ext/fox16/include/FXRbTreeListBox.h +64 -0
- data/ext/fox16/include/FXRbTreeListBoxVirtuals.h +4 -0
- data/ext/fox16/include/FXRbTreeListVirtuals.h +42 -0
- data/ext/fox16/include/FXRbTriStateButton.h +51 -0
- data/ext/fox16/include/FXRbVerticalFrame.h +51 -0
- data/ext/fox16/include/FXRbVisual.h +56 -0
- data/ext/fox16/include/FXRbWindow.h +248 -0
- data/ext/fox16/include/FXRbWindowVirtuals.h +94 -0
- data/ext/fox16/include/FXRbWizard.h +60 -0
- data/ext/fox16/include/FXRbXBMIcon.h +54 -0
- data/ext/fox16/include/FXRbXBMImage.h +54 -0
- data/ext/fox16/include/FXRbXPMIcon.h +54 -0
- data/ext/fox16/include/FXRbXPMImage.h +54 -0
- data/ext/fox16/include/FXRuby.h +842 -0
- data/ext/fox16/include/impl.h +214 -0
- data/ext/fox16/include/inlinestubs.h +1155 -0
- data/ext/fox16/label_wrap.cpp +5700 -0
- data/ext/fox16/layout_wrap.cpp +6358 -0
- data/ext/fox16/librb.c +647 -0
- data/ext/fox16/list_wrap.cpp +2981 -0
- data/ext/fox16/make_impl.rb +121 -0
- data/ext/fox16/markfuncs.cpp +1650 -0
- data/ext/fox16/mdi_wrap.cpp +5266 -0
- data/ext/fox16/menu_wrap.cpp +5589 -0
- data/ext/fox16/scintilla_wrap.cpp +2518 -0
- data/ext/fox16/table_wrap.cpp +4173 -0
- data/ext/fox16/text_wrap.cpp +3832 -0
- data/ext/fox16/treelist_wrap.cpp +6004 -0
- data/ext/fox16/ui_wrap.cpp +14230 -0
- data/ext/fox16/unregisterOwnedObjects.cpp +120 -0
- data/index.html +14 -0
- data/lib/fox16.rb +8 -0
- data/lib/fox16.so +0 -0
- data/lib/fox16/accel_table.rb +70 -0
- data/lib/fox16/aliases.rb +5611 -0
- data/lib/fox16/bitmapview.rb +223 -0
- data/lib/fox16/calendar.rb +217 -0
- data/lib/fox16/chore.rb +105 -0
- data/lib/fox16/colors.rb +280 -0
- data/lib/fox16/core.rb +700 -0
- data/lib/fox16/dict.rb +35 -0
- data/lib/fox16/exceptions_for_fxerror.rb +17 -0
- data/lib/fox16/execute_nonmodal.rb +70 -0
- data/lib/fox16/glgroup.rb +166 -0
- data/lib/fox16/glshapes.rb +456 -0
- data/lib/fox16/input.rb +59 -0
- data/lib/fox16/irb.rb +178 -0
- data/lib/fox16/iterators.rb +420 -0
- data/lib/fox16/keys.rb +1374 -0
- data/lib/fox16/kwargs.rb +2740 -0
- data/lib/fox16/missingdep.rb +14 -0
- data/lib/fox16/pseudokeyboard.rb +40 -0
- data/lib/fox16/pseudomouse.rb +87 -0
- data/lib/fox16/responder.rb +70 -0
- data/lib/fox16/responder2.rb +132 -0
- data/lib/fox16/scintilla.rb +3741 -0
- data/lib/fox16/settings.rb +18 -0
- data/lib/fox16/signal.rb +71 -0
- data/lib/fox16/splashscreen.rb +82 -0
- data/lib/fox16/timeout.rb +136 -0
- data/lib/fox16/undolist.rb +455 -0
- data/lib/fox16/version.rb +5 -0
- data/rdoc-sources/FX4Splitter.rb +156 -0
- data/rdoc-sources/FX7Segment.rb +54 -0
- data/rdoc-sources/FXAccelTable.rb +84 -0
- data/rdoc-sources/FXApp.rb +545 -0
- data/rdoc-sources/FXArrowButton.rb +69 -0
- data/rdoc-sources/FXBMPIcon.rb +67 -0
- data/rdoc-sources/FXBMPImage.rb +30 -0
- data/rdoc-sources/FXBitmap.rb +115 -0
- data/rdoc-sources/FXBitmapFrame.rb +31 -0
- data/rdoc-sources/FXBitmapView.rb +44 -0
- data/rdoc-sources/FXButton.rb +59 -0
- data/rdoc-sources/FXCURCursor.rb +13 -0
- data/rdoc-sources/FXCanvas.rb +18 -0
- data/rdoc-sources/FXCheckButton.rb +58 -0
- data/rdoc-sources/FXChoiceBox.rb +49 -0
- data/rdoc-sources/FXColorBar.rb +48 -0
- data/rdoc-sources/FXColorDialog.rb +37 -0
- data/rdoc-sources/FXColorList.rb +55 -0
- data/rdoc-sources/FXColorRing.rb +49 -0
- data/rdoc-sources/FXColorSelector.rb +65 -0
- data/rdoc-sources/FXColorWell.rb +65 -0
- data/rdoc-sources/FXColorWheel.rb +57 -0
- data/rdoc-sources/FXComboBox.rb +214 -0
- data/rdoc-sources/FXComposite.rb +34 -0
- data/rdoc-sources/FXCursor.rb +67 -0
- data/rdoc-sources/FXDC.rb +720 -0
- data/rdoc-sources/FXDCPrint.rb +127 -0
- data/rdoc-sources/FXDCWindow.rb +33 -0
- data/rdoc-sources/FXDataTarget.rb +66 -0
- data/rdoc-sources/FXDebugTarget.rb +25 -0
- data/rdoc-sources/FXDelegator.rb +23 -0
- data/rdoc-sources/FXDial.rb +107 -0
- data/rdoc-sources/FXDialogBox.rb +32 -0
- data/rdoc-sources/FXDict.rb +79 -0
- data/rdoc-sources/FXDirBox.rb +55 -0
- data/rdoc-sources/FXDirDialog.rb +47 -0
- data/rdoc-sources/FXDirList.rb +149 -0
- data/rdoc-sources/FXDirSelector.rb +64 -0
- data/rdoc-sources/FXDockBar.rb +151 -0
- data/rdoc-sources/FXDockHandler.rb +26 -0
- data/rdoc-sources/FXDockSite.rb +104 -0
- data/rdoc-sources/FXDockTitle.rb +26 -0
- data/rdoc-sources/FXDocument.rb +29 -0
- data/rdoc-sources/FXDragCorner.rb +19 -0
- data/rdoc-sources/FXDrawable.rb +27 -0
- data/rdoc-sources/FXDriveBox.rb +46 -0
- data/rdoc-sources/FXExtentd.rb +85 -0
- data/rdoc-sources/FXExtentf.rb +85 -0
- data/rdoc-sources/FXFileDialog.rb +217 -0
- data/rdoc-sources/FXFileDict.rb +131 -0
- data/rdoc-sources/FXFileList.rb +208 -0
- data/rdoc-sources/FXFileSelector.rb +184 -0
- data/rdoc-sources/FXFileStream.rb +27 -0
- data/rdoc-sources/FXFoldingList.rb +504 -0
- data/rdoc-sources/FXFont.rb +361 -0
- data/rdoc-sources/FXFontDialog.rb +14 -0
- data/rdoc-sources/FXFontSelector.rb +37 -0
- data/rdoc-sources/FXFrame.rb +53 -0
- data/rdoc-sources/FXGIFCursor.rb +50 -0
- data/rdoc-sources/FXGIFIcon.rb +31 -0
- data/rdoc-sources/FXGIFImage.rb +29 -0
- data/rdoc-sources/FXGLCanvas.rb +45 -0
- data/rdoc-sources/FXGLContext.rb +40 -0
- data/rdoc-sources/FXGLObject.rb +75 -0
- data/rdoc-sources/FXGLShape.rb +69 -0
- data/rdoc-sources/FXGLViewer.rb +332 -0
- data/rdoc-sources/FXGLVisual.rb +94 -0
- data/rdoc-sources/FXGradientBar.rb +301 -0
- data/rdoc-sources/FXGroupBox.rb +36 -0
- data/rdoc-sources/FXHeader.rb +411 -0
- data/rdoc-sources/FXHorizontalFrame.rb +29 -0
- data/rdoc-sources/FXICOIcon.rb +65 -0
- data/rdoc-sources/FXICOImage.rb +31 -0
- data/rdoc-sources/FXIcon.rb +38 -0
- data/rdoc-sources/FXIconDict.rb +48 -0
- data/rdoc-sources/FXIconList.rb +450 -0
- data/rdoc-sources/FXIconSource.rb +100 -0
- data/rdoc-sources/FXId.rb +34 -0
- data/rdoc-sources/FXImage.rb +292 -0
- data/rdoc-sources/FXImageFrame.rb +36 -0
- data/rdoc-sources/FXImageView.rb +35 -0
- data/rdoc-sources/FXInputDialog.rb +80 -0
- data/rdoc-sources/FXJPGIcon.rb +70 -0
- data/rdoc-sources/FXJPGImage.rb +38 -0
- data/rdoc-sources/FXKnob.rb +76 -0
- data/rdoc-sources/FXLabel.rb +72 -0
- data/rdoc-sources/FXList.rb +443 -0
- data/rdoc-sources/FXListBox.rb +191 -0
- data/rdoc-sources/FXMDIButton.rb +67 -0
- data/rdoc-sources/FXMDIChild.rb +155 -0
- data/rdoc-sources/FXMDIClient.rb +65 -0
- data/rdoc-sources/FXMainWindow.rb +26 -0
- data/rdoc-sources/FXMatrix.rb +57 -0
- data/rdoc-sources/FXMemoryBuffer.rb +28 -0
- data/rdoc-sources/FXMemoryStream.rb +50 -0
- data/rdoc-sources/FXMenuBar.rb +23 -0
- data/rdoc-sources/FXMenuButton.rb +84 -0
- data/rdoc-sources/FXMenuCaption.rb +53 -0
- data/rdoc-sources/FXMenuCascade.rb +18 -0
- data/rdoc-sources/FXMenuCheck.rb +30 -0
- data/rdoc-sources/FXMenuCommand.rb +26 -0
- data/rdoc-sources/FXMenuPane.rb +13 -0
- data/rdoc-sources/FXMenuRadio.rb +33 -0
- data/rdoc-sources/FXMenuSeparator.rb +21 -0
- data/rdoc-sources/FXMenuTitle.rb +27 -0
- data/rdoc-sources/FXMessageBox.rb +73 -0
- data/rdoc-sources/FXObject.rb +28 -0
- data/rdoc-sources/FXOptionMenu.rb +83 -0
- data/rdoc-sources/FXPCXIcon.rb +63 -0
- data/rdoc-sources/FXPCXImage.rb +31 -0
- data/rdoc-sources/FXPNGIcon.rb +66 -0
- data/rdoc-sources/FXPNGImage.rb +34 -0
- data/rdoc-sources/FXPPMIcon.rb +36 -0
- data/rdoc-sources/FXPPMImage.rb +31 -0
- data/rdoc-sources/FXPacker.rb +63 -0
- data/rdoc-sources/FXPicker.rb +27 -0
- data/rdoc-sources/FXPopup.rb +53 -0
- data/rdoc-sources/FXPrintDialog.rb +36 -0
- data/rdoc-sources/FXProgressBar.rb +57 -0
- data/rdoc-sources/FXProgressDialog.rb +36 -0
- data/rdoc-sources/FXQuatd.rb +164 -0
- data/rdoc-sources/FXQuatf.rb +173 -0
- data/rdoc-sources/FXRGBIcon.rb +64 -0
- data/rdoc-sources/FXRGBImage.rb +31 -0
- data/rdoc-sources/FXRadioButton.rb +70 -0
- data/rdoc-sources/FXRanged.rb +100 -0
- data/rdoc-sources/FXRangef.rb +100 -0
- data/rdoc-sources/FXRealSlider.rb +101 -0
- data/rdoc-sources/FXRealSpinner.rb +140 -0
- data/rdoc-sources/FXRecentFiles.rb +77 -0
- data/rdoc-sources/FXRectangle.rb +149 -0
- data/rdoc-sources/FXRegion.rb +64 -0
- data/rdoc-sources/FXRegistry.rb +56 -0
- data/rdoc-sources/FXReplaceDialog.rb +56 -0
- data/rdoc-sources/FXRootWindow.rb +17 -0
- data/rdoc-sources/FXRuler.rb +130 -0
- data/rdoc-sources/FXRulerView.rb +225 -0
- data/rdoc-sources/FXScintilla.rb +121 -0
- data/rdoc-sources/FXScrollArea.rb +86 -0
- data/rdoc-sources/FXScrollBar.rb +107 -0
- data/rdoc-sources/FXScrollPane.rb +28 -0
- data/rdoc-sources/FXScrollWindow.rb +38 -0
- data/rdoc-sources/FXSearchDialog.rb +24 -0
- data/rdoc-sources/FXSeparator.rb +74 -0
- data/rdoc-sources/FXSettings.rb +248 -0
- data/rdoc-sources/FXShell.rb +8 -0
- data/rdoc-sources/FXShutter.rb +102 -0
- data/rdoc-sources/FXSize.rb +95 -0
- data/rdoc-sources/FXSlider.rb +98 -0
- data/rdoc-sources/FXSphered.rb +80 -0
- data/rdoc-sources/FXSpheref.rb +80 -0
- data/rdoc-sources/FXSpinner.rb +136 -0
- data/rdoc-sources/FXSplashWindow.rb +27 -0
- data/rdoc-sources/FXSplitter.rb +89 -0
- data/rdoc-sources/FXSpring.rb +61 -0
- data/rdoc-sources/FXStatusBar.rb +42 -0
- data/rdoc-sources/FXStatusLine.rb +60 -0
- data/rdoc-sources/FXStream.rb +142 -0
- data/rdoc-sources/FXStringDict.rb +38 -0
- data/rdoc-sources/FXSwitcher.rb +78 -0
- data/rdoc-sources/FXTGAIcon.rb +63 -0
- data/rdoc-sources/FXTGAImage.rb +31 -0
- data/rdoc-sources/FXTIFIcon.rb +70 -0
- data/rdoc-sources/FXTIFImage.rb +37 -0
- data/rdoc-sources/FXTabBar.rb +80 -0
- data/rdoc-sources/FXTabBook.rb +41 -0
- data/rdoc-sources/FXTabItem.rb +58 -0
- data/rdoc-sources/FXTable.rb +975 -0
- data/rdoc-sources/FXText.rb +581 -0
- data/rdoc-sources/FXTextField.rb +151 -0
- data/rdoc-sources/FXToggleButton.rb +70 -0
- data/rdoc-sources/FXToolBar.rb +61 -0
- data/rdoc-sources/FXToolBarGrip.rb +50 -0
- data/rdoc-sources/FXToolBarShell.rb +44 -0
- data/rdoc-sources/FXToolBarTab.rb +74 -0
- data/rdoc-sources/FXToolTip.rb +39 -0
- data/rdoc-sources/FXTopWindow.rb +163 -0
- data/rdoc-sources/FXTranslator.rb +32 -0
- data/rdoc-sources/FXTreeList.rb +514 -0
- data/rdoc-sources/FXTreeListBox.rb +219 -0
- data/rdoc-sources/FXTriStateButton.rb +49 -0
- data/rdoc-sources/FXVec2d.rb +96 -0
- data/rdoc-sources/FXVec2f.rb +96 -0
- data/rdoc-sources/FXVec3d.rb +118 -0
- data/rdoc-sources/FXVec3f.rb +118 -0
- data/rdoc-sources/FXVec4d.rb +139 -0
- data/rdoc-sources/FXVec4f.rb +139 -0
- data/rdoc-sources/FXVerticalFrame.rb +29 -0
- data/rdoc-sources/FXVisual.rb +79 -0
- data/rdoc-sources/FXWindow.rb +725 -0
- data/rdoc-sources/FXWizard.rb +59 -0
- data/rdoc-sources/FXXBMIcon.rb +37 -0
- data/rdoc-sources/FXXBMImage.rb +32 -0
- data/rdoc-sources/FXXPMIcon.rb +65 -0
- data/rdoc-sources/FXXPMImage.rb +31 -0
- data/rdoc-sources/Makefile +23 -0
- data/rdoc-sources/README.rdoc +53 -0
- data/rdoc-sources/fxdefs.rb +90 -0
- data/scripts/build-fox.rb +31 -0
- data/scripts/generate_kwargs_lib.rb +414 -0
- data/scripts/iface.rb +391 -0
- data/swig-interfaces/FX4Splitter.i +149 -0
- data/swig-interfaces/FX7Segment.i +141 -0
- data/swig-interfaces/FXAccelTable.i +100 -0
- data/swig-interfaces/FXApp.i +735 -0
- data/swig-interfaces/FXArrowButton.i +136 -0
- data/swig-interfaces/FXBMPIcon.i +88 -0
- data/swig-interfaces/FXBMPImage.i +54 -0
- data/swig-interfaces/FXBitmap.i +90 -0
- data/swig-interfaces/FXBitmapFrame.i +72 -0
- data/swig-interfaces/FXBitmapView.i +94 -0
- data/swig-interfaces/FXButton.i +130 -0
- data/swig-interfaces/FXCURCursor.i +49 -0
- data/swig-interfaces/FXCanvas.i +61 -0
- data/swig-interfaces/FXCheckButton.i +108 -0
- data/swig-interfaces/FXChoiceBox.i +91 -0
- data/swig-interfaces/FXColorBar.i +110 -0
- data/swig-interfaces/FXColorDialog.i +79 -0
- data/swig-interfaces/FXColorList.i +99 -0
- data/swig-interfaces/FXColorRing.i +148 -0
- data/swig-interfaces/FXColorSelector.i +157 -0
- data/swig-interfaces/FXColorWell.i +133 -0
- data/swig-interfaces/FXColorWheel.i +108 -0
- data/swig-interfaces/FXComboBox.i +280 -0
- data/swig-interfaces/FXComposeContext.i +66 -0
- data/swig-interfaces/FXComposite.i +103 -0
- data/swig-interfaces/FXCursor.i +120 -0
- data/swig-interfaces/FXDC.i +280 -0
- data/swig-interfaces/FXDCPrint.i +141 -0
- data/swig-interfaces/FXDCWindow.i +75 -0
- data/swig-interfaces/FXDataTarget.i +115 -0
- data/swig-interfaces/FXDebugTarget.i +60 -0
- data/swig-interfaces/FXDelegator.i +56 -0
- data/swig-interfaces/FXDial.i +168 -0
- data/swig-interfaces/FXDialogBox.i +131 -0
- data/swig-interfaces/FXDict.i +200 -0
- data/swig-interfaces/FXDirBox.i +68 -0
- data/swig-interfaces/FXDirDialog.i +97 -0
- data/swig-interfaces/FXDirList.i +274 -0
- data/swig-interfaces/FXDirSelector.i +142 -0
- data/swig-interfaces/FXDockBar.i +180 -0
- data/swig-interfaces/FXDockHandler.i +94 -0
- data/swig-interfaces/FXDockSite.i +91 -0
- data/swig-interfaces/FXDockTitle.i +91 -0
- data/swig-interfaces/FXDocument.i +70 -0
- data/swig-interfaces/FXDragCorner.i +72 -0
- data/swig-interfaces/FXDrawable.i +90 -0
- data/swig-interfaces/FXDriveBox.i +63 -0
- data/swig-interfaces/FXExtentd.i +131 -0
- data/swig-interfaces/FXExtentf.i +131 -0
- data/swig-interfaces/FXFileDialog.i +268 -0
- data/swig-interfaces/FXFileDict.i +121 -0
- data/swig-interfaces/FXFileList.i +345 -0
- data/swig-interfaces/FXFileSelector.i +347 -0
- data/swig-interfaces/FXFileStream.i +49 -0
- data/swig-interfaces/FXFoldingList.i +556 -0
- data/swig-interfaces/FXFont.i +333 -0
- data/swig-interfaces/FXFontDialog.i +63 -0
- data/swig-interfaces/FXFontSelector.i +127 -0
- data/swig-interfaces/FXFrame.i +245 -0
- data/swig-interfaces/FXGIFCursor.i +86 -0
- data/swig-interfaces/FXGIFIcon.i +54 -0
- data/swig-interfaces/FXGIFImage.i +54 -0
- data/swig-interfaces/FXGLCanvas.i +90 -0
- data/swig-interfaces/FXGLContext.i +85 -0
- data/swig-interfaces/FXGLObject.i +70 -0
- data/swig-interfaces/FXGLShape.i +152 -0
- data/swig-interfaces/FXGLViewer.i +691 -0
- data/swig-interfaces/FXGLVisual.i +136 -0
- data/swig-interfaces/FXGradientBar.i +310 -0
- data/swig-interfaces/FXGroupBox.i +94 -0
- data/swig-interfaces/FXHeader.i +432 -0
- data/swig-interfaces/FXHorizontalFrame.i +60 -0
- data/swig-interfaces/FXICOIcon.i +92 -0
- data/swig-interfaces/FXICOImage.i +54 -0
- data/swig-interfaces/FXIcon.i +128 -0
- data/swig-interfaces/FXIconDict.i +90 -0
- data/swig-interfaces/FXIconList.i +596 -0
- data/swig-interfaces/FXIconSource.i +55 -0
- data/swig-interfaces/FXId.i +103 -0
- data/swig-interfaces/FXImage.i +197 -0
- data/swig-interfaces/FXImageFrame.i +66 -0
- data/swig-interfaces/FXImageView.i +88 -0
- data/swig-interfaces/FXInputDialog.i +180 -0
- data/swig-interfaces/FXJPGIcon.i +101 -0
- data/swig-interfaces/FXJPGImage.i +67 -0
- data/swig-interfaces/FXKnob.i +182 -0
- data/swig-interfaces/FXLabel.i +199 -0
- data/swig-interfaces/FXList.i +476 -0
- data/swig-interfaces/FXListBox.i +234 -0
- data/swig-interfaces/FXMDIButton.i +173 -0
- data/swig-interfaces/FXMDIChild.i +242 -0
- data/swig-interfaces/FXMDIClient.i +149 -0
- data/swig-interfaces/FXMainWindow.i +53 -0
- data/swig-interfaces/FXMat3d.i +102 -0
- data/swig-interfaces/FXMat3f.i +102 -0
- data/swig-interfaces/FXMat4d.i +122 -0
- data/swig-interfaces/FXMat4f.i +138 -0
- data/swig-interfaces/FXMatrix.i +101 -0
- data/swig-interfaces/FXMemoryBuffer.i +64 -0
- data/swig-interfaces/FXMemoryStream.i +73 -0
- data/swig-interfaces/FXMenuBar.i +67 -0
- data/swig-interfaces/FXMenuButton.i +152 -0
- data/swig-interfaces/FXMenuCaption.i +176 -0
- data/swig-interfaces/FXMenuCascade.i +76 -0
- data/swig-interfaces/FXMenuCheck.i +90 -0
- data/swig-interfaces/FXMenuCommand.i +69 -0
- data/swig-interfaces/FXMenuPane.i +60 -0
- data/swig-interfaces/FXMenuRadio.i +93 -0
- data/swig-interfaces/FXMenuSeparator.i +65 -0
- data/swig-interfaces/FXMenuTitle.i +74 -0
- data/swig-interfaces/FXMessageBox.i +128 -0
- data/swig-interfaces/FXObject.i +169 -0
- data/swig-interfaces/FXOptionMenu.i +140 -0
- data/swig-interfaces/FXPCXIcon.i +91 -0
- data/swig-interfaces/FXPCXImage.i +55 -0
- data/swig-interfaces/FXPNGIcon.i +95 -0
- data/swig-interfaces/FXPNGImage.i +59 -0
- data/swig-interfaces/FXPPMIcon.i +91 -0
- data/swig-interfaces/FXPPMImage.i +55 -0
- data/swig-interfaces/FXPacker.i +255 -0
- data/swig-interfaces/FXPicker.i +54 -0
- data/swig-interfaces/FXPoint.i +52 -0
- data/swig-interfaces/FXPopup.i +162 -0
- data/swig-interfaces/FXPrintDialog.i +154 -0
- data/swig-interfaces/FXProgressBar.i +133 -0
- data/swig-interfaces/FXProgressDialog.i +105 -0
- data/swig-interfaces/FXQuatd.i +128 -0
- data/swig-interfaces/FXQuatf.i +122 -0
- data/swig-interfaces/FXRGBIcon.i +90 -0
- data/swig-interfaces/FXRGBImage.i +56 -0
- data/swig-interfaces/FXRadioButton.i +117 -0
- data/swig-interfaces/FXRanged.i +163 -0
- data/swig-interfaces/FXRangef.i +172 -0
- data/swig-interfaces/FXRealSlider.i +166 -0
- data/swig-interfaces/FXRealSpinner.i +215 -0
- data/swig-interfaces/FXRecentFiles.i +119 -0
- data/swig-interfaces/FXRectangle.i +104 -0
- data/swig-interfaces/FXRegion.i +88 -0
- data/swig-interfaces/FXRegistry.i +96 -0
- data/swig-interfaces/FXReplaceDialog.i +131 -0
- data/swig-interfaces/FXRootWindow.i +50 -0
- data/swig-interfaces/FXRuler.i +245 -0
- data/swig-interfaces/FXRulerView.i +233 -0
- data/swig-interfaces/FXScintilla.i +192 -0
- data/swig-interfaces/FXScrollArea.i +211 -0
- data/swig-interfaces/FXScrollBar.i +178 -0
- data/swig-interfaces/FXScrollPane.i +83 -0
- data/swig-interfaces/FXScrollWindow.i +67 -0
- data/swig-interfaces/FXSearchDialog.i +48 -0
- data/swig-interfaces/FXSeparator.i +138 -0
- data/swig-interfaces/FXSettings.i +160 -0
- data/swig-interfaces/FXShell.i +91 -0
- data/swig-interfaces/FXShutter.i +140 -0
- data/swig-interfaces/FXSize.i +71 -0
- data/swig-interfaces/FXSlider.i +181 -0
- data/swig-interfaces/FXSphered.i +126 -0
- data/swig-interfaces/FXSpheref.i +126 -0
- data/swig-interfaces/FXSpinner.i +212 -0
- data/swig-interfaces/FXSplashWindow.i +82 -0
- data/swig-interfaces/FXSplitter.i +123 -0
- data/swig-interfaces/FXSpring.i +79 -0
- data/swig-interfaces/FXStatusBar.i +68 -0
- data/swig-interfaces/FXStatusLine.i +100 -0
- data/swig-interfaces/FXStream.i +150 -0
- data/swig-interfaces/FXStringDict.i +61 -0
- data/swig-interfaces/FXSwitcher.i +110 -0
- data/swig-interfaces/FXTGAIcon.i +85 -0
- data/swig-interfaces/FXTGAImage.i +56 -0
- data/swig-interfaces/FXTIFIcon.i +73 -0
- data/swig-interfaces/FXTIFImage.i +93 -0
- data/swig-interfaces/FXTabBar.i +121 -0
- data/swig-interfaces/FXTabBook.i +70 -0
- data/swig-interfaces/FXTabItem.i +82 -0
- data/swig-interfaces/FXTable.i +861 -0
- data/swig-interfaces/FXText.i +763 -0
- data/swig-interfaces/FXTextField.i +290 -0
- data/swig-interfaces/FXToggleButton.i +136 -0
- data/swig-interfaces/FXToolBar.i +75 -0
- data/swig-interfaces/FXToolBarGrip.i +82 -0
- data/swig-interfaces/FXToolBarShell.i +98 -0
- data/swig-interfaces/FXToolBarTab.i +114 -0
- data/swig-interfaces/FXToolTip.i +93 -0
- data/swig-interfaces/FXTopWindow.i +263 -0
- data/swig-interfaces/FXTranslator.i +55 -0
- data/swig-interfaces/FXTreeList.i +549 -0
- data/swig-interfaces/FXTreeListBox.i +317 -0
- data/swig-interfaces/FXTriStateButton.i +77 -0
- data/swig-interfaces/FXURL.i +35 -0
- data/swig-interfaces/FXVec2d.i +87 -0
- data/swig-interfaces/FXVec2f.i +87 -0
- data/swig-interfaces/FXVec3d.i +111 -0
- data/swig-interfaces/FXVec3f.i +109 -0
- data/swig-interfaces/FXVec4d.i +115 -0
- data/swig-interfaces/FXVec4f.i +115 -0
- data/swig-interfaces/FXVerticalFrame.i +69 -0
- data/swig-interfaces/FXVisual.i +162 -0
- data/swig-interfaces/FXWindow.i +851 -0
- data/swig-interfaces/FXWizard.i +125 -0
- data/swig-interfaces/FXXBMIcon.i +56 -0
- data/swig-interfaces/FXXBMImage.i +118 -0
- data/swig-interfaces/FXXPMIcon.i +122 -0
- data/swig-interfaces/FXXPMImage.i +56 -0
- data/swig-interfaces/README +17 -0
- data/swig-interfaces/common.i +48 -0
- data/swig-interfaces/core.i +85 -0
- data/swig-interfaces/dcmodule.i +36 -0
- data/swig-interfaces/dialogs.i +49 -0
- data/swig-interfaces/exceptions.i +249 -0
- data/swig-interfaces/framesmodule.i +54 -0
- data/swig-interfaces/freefuncs.i +93 -0
- data/swig-interfaces/fx3d.i +60 -0
- data/swig-interfaces/fxdefs.i +419 -0
- data/swig-interfaces/handlers.i +615 -0
- data/swig-interfaces/iconlistmodule.i +37 -0
- data/swig-interfaces/icons.i +48 -0
- data/swig-interfaces/ignore-message-handlers.rb +16 -0
- data/swig-interfaces/image.i +49 -0
- data/swig-interfaces/labelmodule.i +47 -0
- data/swig-interfaces/layout.i +47 -0
- data/swig-interfaces/listmodule.i +37 -0
- data/swig-interfaces/macros.i +1326 -0
- data/swig-interfaces/markfuncs.i +210 -0
- data/swig-interfaces/mdi.i +38 -0
- data/swig-interfaces/menumodule.i +44 -0
- data/swig-interfaces/ruby-typemaps.i +772 -0
- data/swig-interfaces/scintilla.i +57 -0
- data/swig-interfaces/table-module.i +36 -0
- data/swig-interfaces/text-module.i +36 -0
- data/swig-interfaces/treelist-module.i +37 -0
- data/swig-interfaces/ui.i +63 -0
- data/test/README +19 -0
- data/test/TC_FXAccelTable.rb +57 -0
- data/test/TC_FXApp.rb +16 -0
- data/test/TC_FXArc.rb +26 -0
- data/test/TC_FXBMPIcon.rb +15 -0
- data/test/TC_FXBMPImage.rb +15 -0
- data/test/TC_FXButton.rb +78 -0
- data/test/TC_FXCheckButton.rb +57 -0
- data/test/TC_FXComboBox.rb +63 -0
- data/test/TC_FXDC.rb +372 -0
- data/test/TC_FXDCPrint.rb +101 -0
- data/test/TC_FXDCWindow.rb +23 -0
- data/test/TC_FXDataTarget.rb +24 -0
- data/test/TC_FXDialogBox.rb +12 -0
- data/test/TC_FXDirList.rb +30 -0
- data/test/TC_FXExtentd.rb +21 -0
- data/test/TC_FXExtentf.rb +21 -0
- data/test/TC_FXFileAssoc.rb +62 -0
- data/test/TC_FXFileStream.rb +89 -0
- data/test/TC_FXFoldingList.rb +32 -0
- data/test/TC_FXFont.rb +69 -0
- data/test/TC_FXFontDesc.rb +58 -0
- data/test/TC_FXGLGroup.rb +32 -0
- data/test/TC_FXGLShape.rb +28 -0
- data/test/TC_FXGLViewer.rb +20 -0
- data/test/TC_FXGradientBar.rb +89 -0
- data/test/TC_FXHeader.rb +82 -0
- data/test/TC_FXHiliteStyle.rb +23 -0
- data/test/TC_FXIconDict.rb +52 -0
- data/test/TC_FXIconList.rb +192 -0
- data/test/TC_FXId.rb +19 -0
- data/test/TC_FXImage.rb +155 -0
- data/test/TC_FXLight.rb +33 -0
- data/test/TC_FXList.rb +116 -0
- data/test/TC_FXListBox.rb +49 -0
- data/test/TC_FXMainWindow.rb +19 -0
- data/test/TC_FXMat4f.rb +228 -0
- data/test/TC_FXMaterial.rb +89 -0
- data/test/TC_FXMemoryStream.rb +97 -0
- data/test/TC_FXMenuCheck.rb +57 -0
- data/test/TC_FXMenuCommand.rb +12 -0
- data/test/TC_FXMenuRadio.rb +57 -0
- data/test/TC_FXMessageBox.rb +25 -0
- data/test/TC_FXPoint.rb +57 -0
- data/test/TC_FXQuatf.rb +93 -0
- data/test/TC_FXRadioButton.rb +57 -0
- data/test/TC_FXRanged.rb +42 -0
- data/test/TC_FXRangef.rb +42 -0
- data/test/TC_FXRectangle.rb +88 -0
- data/test/TC_FXRegion.rb +54 -0
- data/test/TC_FXRegistry.rb +27 -0
- data/test/TC_FXScrollArea.rb +28 -0
- data/test/TC_FXScrollWindow.rb +28 -0
- data/test/TC_FXSegment.rb +22 -0
- data/test/TC_FXSettings.rb +34 -0
- data/test/TC_FXShell.rb +26 -0
- data/test/TC_FXSize.rb +54 -0
- data/test/TC_FXStream.rb +11 -0
- data/test/TC_FXTable.rb +561 -0
- data/test/TC_FXTableItem.rb +48 -0
- data/test/TC_FXText.rb +96 -0
- data/test/TC_FXTopWindow.rb +32 -0
- data/test/TC_FXTreeList.rb +100 -0
- data/test/TC_FXTreeListBox.rb +41 -0
- data/test/TC_FXUndoList.rb +43 -0
- data/test/TC_FXVec2d.rb +142 -0
- data/test/TC_FXVec2f.rb +137 -0
- data/test/TC_FXVec3d.rb +150 -0
- data/test/TC_FXVec3f.rb +150 -0
- data/test/TC_FXVec4f.rb +158 -0
- data/test/TC_FXViewport.rb +30 -0
- data/test/TC_FXXBMIcon.rb +15 -0
- data/test/TC_FXXBMImage.rb +15 -0
- data/test/TC_FXXPMIcon.rb +15 -0
- data/test/TC_FXXPMImage.rb +15 -0
- data/test/TC_Misc.rb +157 -0
- data/test/TC_downcast.rb +15 -0
- data/test/TS_All.rb +25 -0
- data/test/blankpage.ps +166 -0
- data/test/howdypage.ps +181 -0
- data/test/stress1.rb +92 -0
- data/test/stress2.rb +51 -0
- data/test/stress3.rb +117 -0
- data/test/testcase.rb +37 -0
- metadata +1071 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# This is a little helper function used by some of the examples to report
|
2
|
+
# missing dependencies information on startup. It's especially useful for the
|
3
|
+
# Windows distribution since people will often start the examples by double-
|
4
|
+
# clicking on an icon instead of running from the command line.
|
5
|
+
|
6
|
+
def missingDependency(msg)
|
7
|
+
app = Fox::FXApp.new("Dummy", "FoxTest")
|
8
|
+
app.init(ARGV)
|
9
|
+
mainWindow = Fox::FXMainWindow.new(app, "")
|
10
|
+
app.create
|
11
|
+
Fox::FXMessageBox.error(mainWindow, Fox::MBOX_OK, "Dependencies Missing", msg)
|
12
|
+
raise SystemExit
|
13
|
+
end
|
14
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Fox
|
2
|
+
#
|
3
|
+
# An FXPseudoKeyboard object provides a simple means to operate widgets
|
4
|
+
# programmatically, to aid test driven design. An FXPseudoKeyboard instance
|
5
|
+
# can be pointed at an FXObject and will manage the sending of events to
|
6
|
+
# it.
|
7
|
+
#
|
8
|
+
# For example:
|
9
|
+
#
|
10
|
+
# textfield = FXTextField.new(...)
|
11
|
+
# pk = FXPseudoKeyboard.new(textfield)
|
12
|
+
# pk.doKeyPress # sends a SEL_KEYPRESS message to the textfield
|
13
|
+
# pk.doKeyRelease # sends a SEL_KEYRELEASE message to the textfield
|
14
|
+
#
|
15
|
+
class FXPseudoKeyboard
|
16
|
+
|
17
|
+
attr_accessor :target
|
18
|
+
|
19
|
+
def initialize(tgt=nil)
|
20
|
+
@target = tgt
|
21
|
+
end
|
22
|
+
|
23
|
+
def doKeyPress
|
24
|
+
unless @target.nil?
|
25
|
+
evt = FXEvent.new
|
26
|
+
evt.type = Fox::SEL_KEYPRESS
|
27
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_KEYPRESS, 0), evt)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def doKeyRelease
|
32
|
+
unless @target.nil?
|
33
|
+
evt = FXEvent.new
|
34
|
+
evt.type = Fox::SEL_KEYRELEASE
|
35
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_KEYRELEASE, 0), evt)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
module Fox
|
2
|
+
#
|
3
|
+
# An FXPseudoMouse object provides a simple means to operate widgets
|
4
|
+
# programmatically, to aid test driven design. An FXPseudoMouse instance
|
5
|
+
# can be pointed at an FXObject and will manage the sending of events to
|
6
|
+
# it.
|
7
|
+
#
|
8
|
+
# For example:
|
9
|
+
#
|
10
|
+
# canvas = FXCanvas.new(...)
|
11
|
+
# pm = FXPseudoMouse.new(canvas)
|
12
|
+
# pm.doLeftButtonPress # sends a SEL_LEFTBUTTONPRESS message to the canvas
|
13
|
+
#
|
14
|
+
class FXPseudoMouse < FXObject
|
15
|
+
|
16
|
+
attr_accessor :target
|
17
|
+
|
18
|
+
def initialize(tgt=nil)
|
19
|
+
@target = tgt
|
20
|
+
end
|
21
|
+
|
22
|
+
def doMotion
|
23
|
+
unless @target.nil?
|
24
|
+
evt = FXEvent.new
|
25
|
+
evt.type = Fox::SEL_MOTION
|
26
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_MOTION, 0), evt)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def doMouseWheel
|
31
|
+
unless @target.nil?
|
32
|
+
evt = FXEvent.new
|
33
|
+
evt.type = Fox::SEL_MOUSEWHEEL
|
34
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_MOUSEWHEEL, 0), evt)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def doLeftButtonPress
|
39
|
+
unless @target.nil?
|
40
|
+
evt = FXEvent.new
|
41
|
+
evt.type = Fox::SEL_LEFTBUTTONPRESS
|
42
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_LEFTBUTTONPRESS, 0), evt)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def doLeftButtonRelease
|
47
|
+
unless @target.nil?
|
48
|
+
evt = FXEvent.new
|
49
|
+
evt.type = Fox::SEL_LEFTBUTTONRELEASE
|
50
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_LEFTBUTTONRELEASE, 0), evt)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def doMiddleButtonPress
|
55
|
+
unless @target.nil?
|
56
|
+
evt = FXEvent.new
|
57
|
+
evt.type = Fox::SEL_MIDDLEBUTTONPRESS
|
58
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_MIDDLEBUTTONPRESS, 0), evt)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def doMiddleButtonRelease
|
63
|
+
unless @target.nil?
|
64
|
+
evt = FXEvent.new
|
65
|
+
evt.type = Fox::SEL_MIDDLEBUTTONRELEASE
|
66
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_MIDDLEBUTTONRELEASE, 0), evt)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def doRightButtonPress
|
71
|
+
unless @target.nil?
|
72
|
+
evt = FXEvent.new
|
73
|
+
evt.type = Fox::SEL_RIGHTBUTTONPRESS
|
74
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_RIGHTBUTTONPRESS, 0), evt)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def doRightButtonRelease
|
79
|
+
unless @target.nil?
|
80
|
+
evt = FXEvent.new
|
81
|
+
evt.type = Fox::SEL_RIGHTBUTTONRELEASE
|
82
|
+
@target.handle(self, Fox.FXSEL(Fox::SEL_RIGHTBUTTONRELEASE, 0), evt)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Enumeration
|
2
|
+
def enum(start, count)
|
3
|
+
(start...(start+count)).to_a
|
4
|
+
end
|
5
|
+
|
6
|
+
module Responder
|
7
|
+
# Generates identifiers as class constants. Originally submitted by
|
8
|
+
# Sean O'Halpin, slightly modified by Lyle.
|
9
|
+
def identifier(*ids)
|
10
|
+
ids << :ID_LAST
|
11
|
+
base = self.class.superclass::ID_LAST
|
12
|
+
vals = enum(base, ids.size)
|
13
|
+
ids.each_index do |i|
|
14
|
+
unless self.class.const_defined?(ids[i])
|
15
|
+
self.class.class_eval("#{ids[i].id2name} = #{vals[i]}")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# Return the array of (selector -> func) associations
|
21
|
+
def messageMap
|
22
|
+
unless instance_variables.include?("@assocs") || instance_variables.include?(:@assocs)
|
23
|
+
@assocs = []
|
24
|
+
end
|
25
|
+
@assocs
|
26
|
+
end
|
27
|
+
|
28
|
+
# Look up array index of this message map entry
|
29
|
+
def assocIndex(lo, hi)
|
30
|
+
currIndex = -1
|
31
|
+
assocs = messageMap
|
32
|
+
assocs.each_index do |i|
|
33
|
+
if assocs[i][0] == lo && assocs[i][1] == hi
|
34
|
+
currIndex = i
|
35
|
+
end
|
36
|
+
end
|
37
|
+
currIndex
|
38
|
+
end
|
39
|
+
|
40
|
+
# Add new or replace existing map entry
|
41
|
+
def addMapEntry(lo, hi, func)
|
42
|
+
func = func.intern if func.is_a? String
|
43
|
+
currIndex = assocIndex(lo, hi)
|
44
|
+
if currIndex < 0
|
45
|
+
messageMap.push([lo, hi, func])
|
46
|
+
else
|
47
|
+
messageMap[currIndex] = [lo, hi, func]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Define range of function types
|
52
|
+
def FXMAPTYPES(typelo, typehi, func)
|
53
|
+
addMapEntry(Fox.MKUINT(Fox::MINKEY, typelo), Fox.MKUINT(Fox::MAXKEY, typehi), func)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Define one function type
|
57
|
+
def FXMAPTYPE(type, func)
|
58
|
+
addMapEntry(Fox.MKUINT(Fox::MINKEY, type), Fox.MKUINT(Fox::MAXKEY, type), func)
|
59
|
+
end
|
60
|
+
|
61
|
+
# Define range of functions
|
62
|
+
def FXMAPFUNCS(type, keylo, keyhi, func)
|
63
|
+
addMapEntry(Fox.MKUINT(keylo, type), Fox.MKUINT(keyhi, type), func)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Define one function
|
67
|
+
def FXMAPFUNC(type, id, func)
|
68
|
+
addMapEntry(Fox.MKUINT(id, type), Fox.MKUINT(id, type), func)
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
require 'fox16/responder'
|
2
|
+
|
3
|
+
module Fox
|
4
|
+
|
5
|
+
#
|
6
|
+
# FXPseudoTarget instances act as the message target for any widgets that
|
7
|
+
# elect to use the #connect method to map certain message types to
|
8
|
+
# blocks.
|
9
|
+
#
|
10
|
+
class FXPseudoTarget < FXObject
|
11
|
+
|
12
|
+
include Responder
|
13
|
+
|
14
|
+
@@targets_of_pending_timers = {}
|
15
|
+
@@targets_of_pending_chores = {}
|
16
|
+
@@targets_of_pending_signals = {}
|
17
|
+
@@targets_of_pending_inputs = {}
|
18
|
+
|
19
|
+
#
|
20
|
+
# Returns an initialized FXPseudoTarget object.
|
21
|
+
#
|
22
|
+
def initialize
|
23
|
+
super
|
24
|
+
@context = {}
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# Store an association between a message of type
|
29
|
+
# _message_type_ with a callable object.
|
30
|
+
#
|
31
|
+
def pconnect(message_type, callable_object, params={})
|
32
|
+
@context[message_type] = { :callable => callable_object, :params => params }
|
33
|
+
FXMAPTYPE(message_type, :onHandleMsg)
|
34
|
+
case message_type
|
35
|
+
when SEL_TIMEOUT
|
36
|
+
@@targets_of_pending_timers[self] = self
|
37
|
+
when SEL_CHORE
|
38
|
+
@@targets_of_pending_chores[self] = self
|
39
|
+
when SEL_SIGNAL
|
40
|
+
@@targets_of_pending_signals[self] = self
|
41
|
+
when SEL_IO_READ, SEL_IO_WRITE, SEL_IO_EXCEPT
|
42
|
+
@@targets_of_pending_inputs[self] = self
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
# Handle a message from _sender_, with selector _sel_ and
|
48
|
+
# message data _ptr_.
|
49
|
+
#
|
50
|
+
def onHandleMsg(sender, sel, ptr)
|
51
|
+
message_type = Fox.FXSELTYPE(sel)
|
52
|
+
ctx = @context[message_type]
|
53
|
+
callable_object = ctx[:callable]
|
54
|
+
params = ctx[:params]
|
55
|
+
result = callable_object.call(sender, sel, ptr)
|
56
|
+
case message_type
|
57
|
+
when SEL_TIMEOUT
|
58
|
+
if params[:repeat]
|
59
|
+
FXApp.instance.addTimeout(params[:delay], callable_object, params)
|
60
|
+
else
|
61
|
+
@@targets_of_pending_timers.delete(self)
|
62
|
+
end
|
63
|
+
when SEL_CHORE
|
64
|
+
if params[:repeat]
|
65
|
+
FXApp.instance.addChore(callable_object, params)
|
66
|
+
else
|
67
|
+
@@targets_of_pending_chores.delete(self)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
result
|
71
|
+
end
|
72
|
+
|
73
|
+
end # class FXPseudoTarget
|
74
|
+
|
75
|
+
end # module Fox
|
76
|
+
|
77
|
+
#
|
78
|
+
# The Responder2 module provides the #connect method,
|
79
|
+
# which is mixed-in to all classes that have a message
|
80
|
+
# target (i.e. Fox::FXDataTarget, Fox::FXRecentFiles
|
81
|
+
# and Fox::FXWindow).
|
82
|
+
#
|
83
|
+
module Responder2
|
84
|
+
#
|
85
|
+
# Assign a "handler" for all FOX messages of type _messageType_
|
86
|
+
# sent from this widget. When called with only one argument,
|
87
|
+
# a block is expected, e.g.
|
88
|
+
#
|
89
|
+
# aButton.connect(SEL_COMMAND) { |sender, selector, data|
|
90
|
+
# ... code to handle this event ...
|
91
|
+
# }
|
92
|
+
#
|
93
|
+
# The arguments passed into the block are the _sender_ of the
|
94
|
+
# message (i.e. the widget), the _selector_ for the message, and
|
95
|
+
# any message-specific _data_.
|
96
|
+
#
|
97
|
+
# When #connect is called with two arguments, the second argument
|
98
|
+
# should be some callable object such as a Method or Proc instance, e.g.
|
99
|
+
#
|
100
|
+
# aButton.connect(SEL_COMMAND, method(:onCommand))
|
101
|
+
#
|
102
|
+
# As with the one-argument form of #connect, the callable object
|
103
|
+
# will be "called" with three arguments (the sender, selector and
|
104
|
+
# message data).
|
105
|
+
#
|
106
|
+
def connect(message_type, callable_object=nil, &block)
|
107
|
+
unless instance_variables.include?('@pseudoTarget') || instance_variables.include?(:@pseudoTarget)
|
108
|
+
@pseudoTarget = Fox::FXPseudoTarget.new
|
109
|
+
self.target = @pseudoTarget
|
110
|
+
end
|
111
|
+
@pseudoTarget.pconnect(message_type, callable_object ? callable_object : block)
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
|
116
|
+
module Fox
|
117
|
+
class FXDataTarget
|
118
|
+
include Responder2
|
119
|
+
end
|
120
|
+
class FXRecentFiles
|
121
|
+
include Responder2
|
122
|
+
end
|
123
|
+
class FXWindow
|
124
|
+
include Responder2
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
require 'fox16/timeout'
|
129
|
+
require 'fox16/chore'
|
130
|
+
require 'fox16/signal'
|
131
|
+
require 'fox16/input'
|
132
|
+
require 'fox16/accel_table'
|
@@ -0,0 +1,3741 @@
|
|
1
|
+
# This file is automatically generated from Scintilla.iface
|
2
|
+
# DO NOT MODIFY
|
3
|
+
|
4
|
+
module Fox
|
5
|
+
class FXScintilla
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
# Basics
|
15
|
+
|
16
|
+
INVALID_POSITION = -1
|
17
|
+
# Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
|
18
|
+
# as many EM_ messages can be used although that use is deprecated.
|
19
|
+
SCI_START = 2000
|
20
|
+
SCI_OPTIONAL_START = 3000
|
21
|
+
SCI_LEXER_START = 4000
|
22
|
+
|
23
|
+
# Add text to the document at current position.
|
24
|
+
def addText(length, text)
|
25
|
+
sendMessage(2001, length, text)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Add array of cells to document.
|
29
|
+
def addStyledText(length, c)
|
30
|
+
sendMessage(2002, length, c)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Insert string at a position.
|
34
|
+
def insertText(pos, text)
|
35
|
+
sendMessage(2003, pos, text)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Delete all text in the document.
|
39
|
+
def clearAll
|
40
|
+
sendMessage(2004, 0, 0)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Set all style bytes to 0, remove all folding information.
|
44
|
+
def clearDocumentStyle
|
45
|
+
sendMessage(2005, 0, 0)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns the number of characters in the document.
|
49
|
+
def getLength
|
50
|
+
sendMessage(2006, 0, 0)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Returns the character byte at the position.
|
54
|
+
def getCharAt(pos)
|
55
|
+
sendMessage(2007, pos, 0)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Returns the position of the caret.
|
59
|
+
def getCurrentPos
|
60
|
+
sendMessage(2008, 0, 0)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Returns the position of the opposite end of the selection to the caret.
|
64
|
+
def getAnchor
|
65
|
+
sendMessage(2009, 0, 0)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Returns the style byte at the position.
|
69
|
+
def getStyleAt(pos)
|
70
|
+
sendMessage(2010, pos, 0)
|
71
|
+
end
|
72
|
+
|
73
|
+
# Redoes the next action on the undo history.
|
74
|
+
def redo
|
75
|
+
sendMessage(2011, 0, 0)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Choose between collecting actions into the undo
|
79
|
+
# history and discarding them.
|
80
|
+
def setUndoCollection(collectUndo)
|
81
|
+
sendMessage(2012, collectUndo, 0)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Select all the text in the document.
|
85
|
+
def selectAll
|
86
|
+
sendMessage(2013, 0, 0)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Remember the current position in the undo history as the position
|
90
|
+
# at which the document was saved.
|
91
|
+
def setSavePoint
|
92
|
+
sendMessage(2014, 0, 0)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Retrieve a buffer of cells.
|
96
|
+
# Returns the number of bytes in the buffer not including terminating NULs.
|
97
|
+
def getStyledText(tr)
|
98
|
+
sendMessage(2015, 0, tr)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Are there any redoable actions in the undo history?
|
102
|
+
def canRedo
|
103
|
+
sendMessage(2016, 0, 0) == 1 ? true : false
|
104
|
+
end
|
105
|
+
|
106
|
+
# Retrieve the line number at which a particular marker is located.
|
107
|
+
def markerLineFromHandle(handle)
|
108
|
+
sendMessage(2017, handle, 0)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Delete a marker.
|
112
|
+
def markerDeleteHandle(handle)
|
113
|
+
sendMessage(2018, handle, 0)
|
114
|
+
end
|
115
|
+
|
116
|
+
# Is undo history being collected?
|
117
|
+
def getUndoCollection
|
118
|
+
sendMessage(2019, 0, 0) == 1 ? true : false
|
119
|
+
end
|
120
|
+
|
121
|
+
SCWS_INVISIBLE = 0
|
122
|
+
SCWS_VISIBLEALWAYS = 1
|
123
|
+
SCWS_VISIBLEAFTERINDENT = 2
|
124
|
+
|
125
|
+
# Are white space characters currently visible?
|
126
|
+
# Returns one of SCWS_* constants.
|
127
|
+
def getViewWS
|
128
|
+
sendMessage(2020, 0, 0)
|
129
|
+
end
|
130
|
+
|
131
|
+
# Make white space characters invisible, always visible or visible outside indentation.
|
132
|
+
def setViewWS(viewWS)
|
133
|
+
sendMessage(2021, viewWS, 0)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Find the position from a point within the window.
|
137
|
+
def positionFromPoint(x, y)
|
138
|
+
sendMessage(2022, x, y)
|
139
|
+
end
|
140
|
+
|
141
|
+
# Find the position from a point within the window but return
|
142
|
+
# INVALID_POSITION if not close to text.
|
143
|
+
def positionFromPointClose(x, y)
|
144
|
+
sendMessage(2023, x, y)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Set caret to start of a line and ensure it is visible.
|
148
|
+
def gotoLine(line)
|
149
|
+
sendMessage(2024, line, 0)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Set caret to a position and ensure it is visible.
|
153
|
+
def gotoPos(pos)
|
154
|
+
sendMessage(2025, pos, 0)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Set the selection anchor to a position. The anchor is the opposite
|
158
|
+
# end of the selection from the caret.
|
159
|
+
def setAnchor(posAnchor)
|
160
|
+
sendMessage(2026, posAnchor, 0)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Retrieve the text of the line containing the caret.
|
164
|
+
# Returns the index of the caret on the line.
|
165
|
+
def getCurLine(length)
|
166
|
+
buffer = "".ljust(length)
|
167
|
+
sendMessage(2027, length, buffer)
|
168
|
+
buffer
|
169
|
+
end
|
170
|
+
|
171
|
+
# Retrieve the position of the last correctly styled character.
|
172
|
+
def getEndStyled
|
173
|
+
sendMessage(2028, 0, 0)
|
174
|
+
end
|
175
|
+
|
176
|
+
SC_EOL_CRLF = 0
|
177
|
+
SC_EOL_CR = 1
|
178
|
+
SC_EOL_LF = 2
|
179
|
+
|
180
|
+
# Convert all line endings in the document to one mode.
|
181
|
+
def convertEOLs(eolMode)
|
182
|
+
sendMessage(2029, eolMode, 0)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Retrieve the current end of line mode - one of CRLF, CR, or LF.
|
186
|
+
def getEOLMode
|
187
|
+
sendMessage(2030, 0, 0)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Set the current end of line mode.
|
191
|
+
def setEOLMode(eolMode)
|
192
|
+
sendMessage(2031, eolMode, 0)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Set the current styling position to pos and the styling mask to mask.
|
196
|
+
# The styling mask can be used to protect some bits in each styling byte from modification.
|
197
|
+
def startStyling(pos, mask)
|
198
|
+
sendMessage(2032, pos, mask)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Change style from current styling position for length characters to a style
|
202
|
+
# and move the current styling position to after this newly styled segment.
|
203
|
+
def setStyling(length, style)
|
204
|
+
sendMessage(2033, length, style)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Is drawing done first into a buffer or direct to the screen?
|
208
|
+
def getBufferedDraw
|
209
|
+
sendMessage(2034, 0, 0) == 1 ? true : false
|
210
|
+
end
|
211
|
+
|
212
|
+
# If drawing is buffered then each line of text is drawn into a bitmap buffer
|
213
|
+
# before drawing it to the screen to avoid flicker.
|
214
|
+
def setBufferedDraw(buffered)
|
215
|
+
sendMessage(2035, buffered, 0)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Change the visible size of a tab to be a multiple of the width of a space character.
|
219
|
+
def setTabWidth(tabWidth)
|
220
|
+
sendMessage(2036, tabWidth, 0)
|
221
|
+
end
|
222
|
+
|
223
|
+
# Retrieve the visible size of a tab.
|
224
|
+
def getTabWidth
|
225
|
+
sendMessage(2121, 0, 0)
|
226
|
+
end
|
227
|
+
|
228
|
+
# The SC_CP_UTF8 value can be used to enter Unicode mode.
|
229
|
+
# This is the same value as CP_UTF8 in Windows
|
230
|
+
SC_CP_UTF8 = 65001
|
231
|
+
|
232
|
+
# The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
|
233
|
+
SC_CP_DBCS = 1
|
234
|
+
|
235
|
+
# Set the code page used to interpret the bytes of the document as characters.
|
236
|
+
# The SC_CP_UTF8 value can be used to enter Unicode mode.
|
237
|
+
def setCodePage(codePage)
|
238
|
+
sendMessage(2037, codePage, 0)
|
239
|
+
end
|
240
|
+
|
241
|
+
# In palette mode, Scintilla uses the environment's palette calls to display
|
242
|
+
# more colours. This may lead to ugly displays.
|
243
|
+
def setUsePalette(usePalette)
|
244
|
+
sendMessage(2039, usePalette, 0)
|
245
|
+
end
|
246
|
+
|
247
|
+
MARKER_MAX = 31
|
248
|
+
SC_MARK_CIRCLE = 0
|
249
|
+
SC_MARK_ROUNDRECT = 1
|
250
|
+
SC_MARK_ARROW = 2
|
251
|
+
SC_MARK_SMALLRECT = 3
|
252
|
+
SC_MARK_SHORTARROW = 4
|
253
|
+
SC_MARK_EMPTY = 5
|
254
|
+
SC_MARK_ARROWDOWN = 6
|
255
|
+
SC_MARK_MINUS = 7
|
256
|
+
SC_MARK_PLUS = 8
|
257
|
+
|
258
|
+
# Shapes used for outlining column.
|
259
|
+
SC_MARK_VLINE = 9
|
260
|
+
SC_MARK_LCORNER = 10
|
261
|
+
SC_MARK_TCORNER = 11
|
262
|
+
SC_MARK_BOXPLUS = 12
|
263
|
+
SC_MARK_BOXPLUSCONNECTED = 13
|
264
|
+
SC_MARK_BOXMINUS = 14
|
265
|
+
SC_MARK_BOXMINUSCONNECTED = 15
|
266
|
+
SC_MARK_LCORNERCURVE = 16
|
267
|
+
SC_MARK_TCORNERCURVE = 17
|
268
|
+
SC_MARK_CIRCLEPLUS = 18
|
269
|
+
SC_MARK_CIRCLEPLUSCONNECTED = 19
|
270
|
+
SC_MARK_CIRCLEMINUS = 20
|
271
|
+
SC_MARK_CIRCLEMINUSCONNECTED = 21
|
272
|
+
|
273
|
+
# Invisible mark that only sets the line background color.
|
274
|
+
SC_MARK_BACKGROUND = 22
|
275
|
+
SC_MARK_DOTDOTDOT = 23
|
276
|
+
SC_MARK_ARROWS = 24
|
277
|
+
SC_MARK_PIXMAP = 25
|
278
|
+
SC_MARK_FULLRECT = 26
|
279
|
+
|
280
|
+
SC_MARK_CHARACTER = 10000
|
281
|
+
|
282
|
+
# Markers used for outlining column.
|
283
|
+
SC_MARKNUM_FOLDEREND = 25
|
284
|
+
SC_MARKNUM_FOLDEROPENMID = 26
|
285
|
+
SC_MARKNUM_FOLDERMIDTAIL = 27
|
286
|
+
SC_MARKNUM_FOLDERTAIL = 28
|
287
|
+
SC_MARKNUM_FOLDERSUB = 29
|
288
|
+
SC_MARKNUM_FOLDER = 30
|
289
|
+
SC_MARKNUM_FOLDEROPEN = 31
|
290
|
+
|
291
|
+
SC_MASK_FOLDERS = 0xFE000000
|
292
|
+
|
293
|
+
# Set the symbol used for a particular marker number.
|
294
|
+
def markerDefine(markerNumber, markerSymbol)
|
295
|
+
sendMessage(2040, markerNumber, markerSymbol)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Set the foreground colour used for a particular marker number.
|
299
|
+
def markerSetFore(markerNumber, fore)
|
300
|
+
sendMessage(2041, markerNumber, fore & 0xffffff)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Set the background colour used for a particular marker number.
|
304
|
+
def markerSetBack(markerNumber, back)
|
305
|
+
sendMessage(2042, markerNumber, back & 0xffffff)
|
306
|
+
end
|
307
|
+
|
308
|
+
# Add a marker to a line, returning an ID which can be used to find or delete the marker.
|
309
|
+
def markerAdd(line, markerNumber)
|
310
|
+
sendMessage(2043, line, markerNumber)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Delete a marker from a line.
|
314
|
+
def markerDelete(line, markerNumber)
|
315
|
+
sendMessage(2044, line, markerNumber)
|
316
|
+
end
|
317
|
+
|
318
|
+
# Delete all markers with a particular number from all lines.
|
319
|
+
def markerDeleteAll(markerNumber)
|
320
|
+
sendMessage(2045, markerNumber, 0)
|
321
|
+
end
|
322
|
+
|
323
|
+
# Get a bit mask of all the markers set on a line.
|
324
|
+
def markerGet(line)
|
325
|
+
sendMessage(2046, line, 0)
|
326
|
+
end
|
327
|
+
|
328
|
+
# Find the next line after lineStart that includes a marker in mask.
|
329
|
+
def markerNext(lineStart, markerMask)
|
330
|
+
sendMessage(2047, lineStart, markerMask)
|
331
|
+
end
|
332
|
+
|
333
|
+
# Find the previous line before lineStart that includes a marker in mask.
|
334
|
+
def markerPrevious(lineStart, markerMask)
|
335
|
+
sendMessage(2048, lineStart, markerMask)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Define a marker from a pixmap.
|
339
|
+
def markerDefinePixmap(markerNumber, pixmap)
|
340
|
+
sendMessage(2049, markerNumber, pixmap)
|
341
|
+
end
|
342
|
+
|
343
|
+
# Add a set of markers to a line.
|
344
|
+
def markerAddSet(line, set)
|
345
|
+
sendMessage(2466, line, set)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Set the alpha used for a marker that is drawn in the text area, not the margin.
|
349
|
+
def markerSetAlpha(markerNumber, alpha)
|
350
|
+
sendMessage(2476, markerNumber, alpha)
|
351
|
+
end
|
352
|
+
|
353
|
+
SC_MARGIN_SYMBOL = 0
|
354
|
+
SC_MARGIN_NUMBER = 1
|
355
|
+
SC_MARGIN_BACK = 2
|
356
|
+
SC_MARGIN_FORE = 3
|
357
|
+
|
358
|
+
# Set a margin to be either numeric or symbolic.
|
359
|
+
def setMarginTypeN(margin, marginType)
|
360
|
+
sendMessage(2240, margin, marginType)
|
361
|
+
end
|
362
|
+
|
363
|
+
# Retrieve the type of a margin.
|
364
|
+
def getMarginTypeN(margin)
|
365
|
+
sendMessage(2241, margin, 0)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Set the width of a margin to a width expressed in pixels.
|
369
|
+
def setMarginWidthN(margin, pixelWidth)
|
370
|
+
sendMessage(2242, margin, pixelWidth)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Retrieve the width of a margin in pixels.
|
374
|
+
def getMarginWidthN(margin)
|
375
|
+
sendMessage(2243, margin, 0)
|
376
|
+
end
|
377
|
+
|
378
|
+
# Set a mask that determines which markers are displayed in a margin.
|
379
|
+
def setMarginMaskN(margin, mask)
|
380
|
+
sendMessage(2244, margin, mask)
|
381
|
+
end
|
382
|
+
|
383
|
+
# Retrieve the marker mask of a margin.
|
384
|
+
def getMarginMaskN(margin)
|
385
|
+
sendMessage(2245, margin, 0)
|
386
|
+
end
|
387
|
+
|
388
|
+
# Make a margin sensitive or insensitive to mouse clicks.
|
389
|
+
def setMarginSensitiveN(margin, sensitive)
|
390
|
+
sendMessage(2246, margin, sensitive)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Retrieve the mouse click sensitivity of a margin.
|
394
|
+
def getMarginSensitiveN(margin)
|
395
|
+
sendMessage(2247, margin, 0) == 1 ? true : false
|
396
|
+
end
|
397
|
+
|
398
|
+
# Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
|
399
|
+
# Style 39 is for future use.
|
400
|
+
STYLE_DEFAULT = 32
|
401
|
+
STYLE_LINENUMBER = 33
|
402
|
+
STYLE_BRACELIGHT = 34
|
403
|
+
STYLE_BRACEBAD = 35
|
404
|
+
STYLE_CONTROLCHAR = 36
|
405
|
+
STYLE_INDENTGUIDE = 37
|
406
|
+
STYLE_CALLTIP = 38
|
407
|
+
STYLE_LASTPREDEFINED = 39
|
408
|
+
STYLE_MAX = 127
|
409
|
+
|
410
|
+
# Character set identifiers are used in StyleSetCharacterSet.
|
411
|
+
# The values are the same as the Windows *_CHARSET values.
|
412
|
+
SC_CHARSET_ANSI = 0
|
413
|
+
SC_CHARSET_DEFAULT = 1
|
414
|
+
SC_CHARSET_BALTIC = 186
|
415
|
+
SC_CHARSET_CHINESEBIG5 = 136
|
416
|
+
SC_CHARSET_EASTEUROPE = 238
|
417
|
+
SC_CHARSET_GB2312 = 134
|
418
|
+
SC_CHARSET_GREEK = 161
|
419
|
+
SC_CHARSET_HANGUL = 129
|
420
|
+
SC_CHARSET_MAC = 77
|
421
|
+
SC_CHARSET_OEM = 255
|
422
|
+
SC_CHARSET_RUSSIAN = 204
|
423
|
+
SC_CHARSET_CYRILLIC = 1251
|
424
|
+
SC_CHARSET_SHIFTJIS = 128
|
425
|
+
SC_CHARSET_SYMBOL = 2
|
426
|
+
SC_CHARSET_TURKISH = 162
|
427
|
+
SC_CHARSET_JOHAB = 130
|
428
|
+
SC_CHARSET_HEBREW = 177
|
429
|
+
SC_CHARSET_ARABIC = 178
|
430
|
+
SC_CHARSET_VIETNAMESE = 163
|
431
|
+
SC_CHARSET_THAI = 222
|
432
|
+
SC_CHARSET_8859_15 = 1000
|
433
|
+
|
434
|
+
# Clear all the styles and make equivalent to the global default style.
|
435
|
+
def styleClearAll
|
436
|
+
sendMessage(2050, 0, 0)
|
437
|
+
end
|
438
|
+
|
439
|
+
# Set the foreground colour of a style.
|
440
|
+
def styleSetFore(style, fore)
|
441
|
+
sendMessage(2051, style, fore & 0xffffff)
|
442
|
+
end
|
443
|
+
|
444
|
+
# Set the background colour of a style.
|
445
|
+
def styleSetBack(style, back)
|
446
|
+
sendMessage(2052, style, back & 0xffffff)
|
447
|
+
end
|
448
|
+
|
449
|
+
# Set a style to be bold or not.
|
450
|
+
def styleSetBold(style, bold)
|
451
|
+
sendMessage(2053, style, bold)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Set a style to be italic or not.
|
455
|
+
def styleSetItalic(style, italic)
|
456
|
+
sendMessage(2054, style, italic)
|
457
|
+
end
|
458
|
+
|
459
|
+
# Set the size of characters of a style.
|
460
|
+
def styleSetSize(style, sizePoints)
|
461
|
+
sendMessage(2055, style, sizePoints)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Set the font of a style.
|
465
|
+
def styleSetFont(style, fontName)
|
466
|
+
sendMessage(2056, style, fontName)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Set a style to have its end of line filled or not.
|
470
|
+
def styleSetEOLFilled(style, filled)
|
471
|
+
sendMessage(2057, style, filled)
|
472
|
+
end
|
473
|
+
|
474
|
+
# Reset the default style to its state at startup
|
475
|
+
def styleResetDefault
|
476
|
+
sendMessage(2058, 0, 0)
|
477
|
+
end
|
478
|
+
|
479
|
+
# Set a style to be underlined or not.
|
480
|
+
def styleSetUnderline(style, underline)
|
481
|
+
sendMessage(2059, style, underline)
|
482
|
+
end
|
483
|
+
|
484
|
+
SC_CASE_MIXED = 0
|
485
|
+
SC_CASE_UPPER = 1
|
486
|
+
SC_CASE_LOWER = 2
|
487
|
+
# Set a style to be mixed case, or to force upper or lower case.
|
488
|
+
def styleSetCase(style, caseForce)
|
489
|
+
sendMessage(2060, style, caseForce)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Set the character set of the font in a style.
|
493
|
+
def styleSetCharacterSet(style, characterSet)
|
494
|
+
sendMessage(2066, style, characterSet)
|
495
|
+
end
|
496
|
+
|
497
|
+
# Set a style to be a hotspot or not.
|
498
|
+
def styleSetHotSpot(style, hotspot)
|
499
|
+
sendMessage(2409, style, hotspot)
|
500
|
+
end
|
501
|
+
|
502
|
+
# Set the foreground colour of the selection and whether to use this setting.
|
503
|
+
def setSelFore(useSetting, fore)
|
504
|
+
sendMessage(2067, useSetting, fore & 0xffffff)
|
505
|
+
end
|
506
|
+
|
507
|
+
# Set the background colour of the selection and whether to use this setting.
|
508
|
+
def setSelBack(useSetting, back)
|
509
|
+
sendMessage(2068, useSetting, back & 0xffffff)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Get the alpha of the selection.
|
513
|
+
def getSelAlpha
|
514
|
+
sendMessage(2477, 0, 0)
|
515
|
+
end
|
516
|
+
|
517
|
+
# Set the alpha of the selection.
|
518
|
+
def setSelAlpha(alpha)
|
519
|
+
sendMessage(2478, alpha, 0)
|
520
|
+
end
|
521
|
+
|
522
|
+
# Set the foreground colour of the caret.
|
523
|
+
def setCaretFore(fore)
|
524
|
+
sendMessage(2069, fore & 0xffffff, 0)
|
525
|
+
end
|
526
|
+
|
527
|
+
# When key+modifier combination km is pressed perform msg.
|
528
|
+
def assignCmdKey(km, msg)
|
529
|
+
sendMessage(2070, km, msg)
|
530
|
+
end
|
531
|
+
|
532
|
+
# When key+modifier combination km is pressed do nothing.
|
533
|
+
def clearCmdKey(km)
|
534
|
+
sendMessage(2071, km, 0)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Drop all key mappings.
|
538
|
+
def clearAllCmdKeys
|
539
|
+
sendMessage(2072, 0, 0)
|
540
|
+
end
|
541
|
+
|
542
|
+
# Set the styles for a segment of the document.
|
543
|
+
def setStylingEx(length, styles)
|
544
|
+
sendMessage(2073, length, styles)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Set a style to be visible or not.
|
548
|
+
def styleSetVisible(style, visible)
|
549
|
+
sendMessage(2074, style, visible)
|
550
|
+
end
|
551
|
+
|
552
|
+
# Get the time in milliseconds that the caret is on and off.
|
553
|
+
def getCaretPeriod
|
554
|
+
sendMessage(2075, 0, 0)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Get the time in milliseconds that the caret is on and off. 0 = steady on.
|
558
|
+
def setCaretPeriod(periodMilliseconds)
|
559
|
+
sendMessage(2076, periodMilliseconds, 0)
|
560
|
+
end
|
561
|
+
|
562
|
+
# Set the set of characters making up words for when moving or selecting by word.
|
563
|
+
# First sets deaults like SetCharsDefault.
|
564
|
+
def setWordChars(characters)
|
565
|
+
sendMessage(2077, 0, characters)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Start a sequence of actions that is undone and redone as a unit.
|
569
|
+
# May be nested.
|
570
|
+
def beginUndoAction
|
571
|
+
sendMessage(2078, 0, 0)
|
572
|
+
end
|
573
|
+
|
574
|
+
# End a sequence of actions that is undone and redone as a unit.
|
575
|
+
def endUndoAction
|
576
|
+
sendMessage(2079, 0, 0)
|
577
|
+
end
|
578
|
+
|
579
|
+
INDIC_MAX = 7
|
580
|
+
INDIC_PLAIN = 0
|
581
|
+
INDIC_SQUIGGLE = 1
|
582
|
+
INDIC_TT = 2
|
583
|
+
INDIC_DIAGONAL = 3
|
584
|
+
INDIC_STRIKE = 4
|
585
|
+
INDIC_HIDDEN = 5
|
586
|
+
INDIC_BOX = 6
|
587
|
+
INDIC_ROUNDBOX = 7
|
588
|
+
INDIC0_MASK = 0x20
|
589
|
+
INDIC1_MASK = 0x40
|
590
|
+
INDIC2_MASK = 0x80
|
591
|
+
INDICS_MASK = 0xE0
|
592
|
+
|
593
|
+
# Set an indicator to plain, squiggle or TT.
|
594
|
+
def indicSetStyle(indic, style)
|
595
|
+
sendMessage(2080, indic, style)
|
596
|
+
end
|
597
|
+
|
598
|
+
# Retrieve the style of an indicator.
|
599
|
+
def indicGetStyle(indic)
|
600
|
+
sendMessage(2081, indic, 0)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Set the foreground colour of an indicator.
|
604
|
+
def indicSetFore(indic, fore)
|
605
|
+
sendMessage(2082, indic, fore & 0xffffff)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Retrieve the foreground colour of an indicator.
|
609
|
+
def indicGetFore(indic)
|
610
|
+
sendMessage(2083, indic, 0)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Set the foreground colour of all whitespace and whether to use this setting.
|
614
|
+
def setWhitespaceFore(useSetting, fore)
|
615
|
+
sendMessage(2084, useSetting, fore & 0xffffff)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Set the background colour of all whitespace and whether to use this setting.
|
619
|
+
def setWhitespaceBack(useSetting, back)
|
620
|
+
sendMessage(2085, useSetting, back & 0xffffff)
|
621
|
+
end
|
622
|
+
|
623
|
+
# Divide each styling byte into lexical class bits (default: 5) and indicator
|
624
|
+
# bits (default: 3). If a lexer requires more than 32 lexical states, then this
|
625
|
+
# is used to expand the possible states.
|
626
|
+
def setStyleBits(bits)
|
627
|
+
sendMessage(2090, bits, 0)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Retrieve number of bits in style bytes used to hold the lexical state.
|
631
|
+
def getStyleBits
|
632
|
+
sendMessage(2091, 0, 0)
|
633
|
+
end
|
634
|
+
|
635
|
+
# Used to hold extra styling information for each line.
|
636
|
+
def setLineState(line, state)
|
637
|
+
sendMessage(2092, line, state)
|
638
|
+
end
|
639
|
+
|
640
|
+
# Retrieve the extra styling information for a line.
|
641
|
+
def getLineState(line)
|
642
|
+
sendMessage(2093, line, 0)
|
643
|
+
end
|
644
|
+
|
645
|
+
# Retrieve the last line number that has line state.
|
646
|
+
def getMaxLineState
|
647
|
+
sendMessage(2094, 0, 0)
|
648
|
+
end
|
649
|
+
|
650
|
+
# Is the background of the line containing the caret in a different colour?
|
651
|
+
def getCaretLineVisible
|
652
|
+
sendMessage(2095, 0, 0) == 1 ? true : false
|
653
|
+
end
|
654
|
+
|
655
|
+
# Display the background of the line containing the caret in a different colour.
|
656
|
+
def setCaretLineVisible(show)
|
657
|
+
sendMessage(2096, show, 0)
|
658
|
+
end
|
659
|
+
|
660
|
+
# Get the colour of the background of the line containing the caret.
|
661
|
+
def getCaretLineBack
|
662
|
+
sendMessage(2097, 0, 0)
|
663
|
+
end
|
664
|
+
|
665
|
+
# Set the colour of the background of the line containing the caret.
|
666
|
+
def setCaretLineBack(back)
|
667
|
+
sendMessage(2098, back & 0xffffff, 0)
|
668
|
+
end
|
669
|
+
|
670
|
+
# Set a style to be changeable or not (read only).
|
671
|
+
# Experimental feature, currently buggy.
|
672
|
+
def styleSetChangeable(style, changeable)
|
673
|
+
sendMessage(2099, style, changeable)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Display a auto-completion list.
|
677
|
+
# The lenEntered parameter indicates how many characters before
|
678
|
+
# the caret should be used to provide context.
|
679
|
+
def autoCShow(lenEntered, itemList)
|
680
|
+
sendMessage(2100, lenEntered, itemList)
|
681
|
+
end
|
682
|
+
|
683
|
+
# Remove the auto-completion list from the screen.
|
684
|
+
def autoCCancel
|
685
|
+
sendMessage(2101, 0, 0)
|
686
|
+
end
|
687
|
+
|
688
|
+
# Is there an auto-completion list visible?
|
689
|
+
def autoCActive
|
690
|
+
sendMessage(2102, 0, 0) == 1 ? true : false
|
691
|
+
end
|
692
|
+
|
693
|
+
# Retrieve the position of the caret when the auto-completion list was displayed.
|
694
|
+
def autoCPosStart
|
695
|
+
sendMessage(2103, 0, 0)
|
696
|
+
end
|
697
|
+
|
698
|
+
# User has selected an item so remove the list and insert the selection.
|
699
|
+
def autoCComplete
|
700
|
+
sendMessage(2104, 0, 0)
|
701
|
+
end
|
702
|
+
|
703
|
+
# Define a set of character that when typed cancel the auto-completion list.
|
704
|
+
def autoCStops(characterSet)
|
705
|
+
sendMessage(2105, 0, characterSet)
|
706
|
+
end
|
707
|
+
|
708
|
+
# Change the separator character in the string setting up an auto-completion list.
|
709
|
+
# Default is space but can be changed if items contain space.
|
710
|
+
def autoCSetSeparator(separatorCharacter)
|
711
|
+
sendMessage(2106, separatorCharacter, 0)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Retrieve the auto-completion list separator character.
|
715
|
+
def autoCGetSeparator
|
716
|
+
sendMessage(2107, 0, 0)
|
717
|
+
end
|
718
|
+
|
719
|
+
# Select the item in the auto-completion list that starts with a string.
|
720
|
+
def autoCSelect(text)
|
721
|
+
sendMessage(2108, 0, text)
|
722
|
+
end
|
723
|
+
|
724
|
+
# Should the auto-completion list be cancelled if the user backspaces to a
|
725
|
+
# position before where the box was created.
|
726
|
+
def autoCSetCancelAtStart(cancel)
|
727
|
+
sendMessage(2110, cancel, 0)
|
728
|
+
end
|
729
|
+
|
730
|
+
# Retrieve whether auto-completion cancelled by backspacing before start.
|
731
|
+
def autoCGetCancelAtStart
|
732
|
+
sendMessage(2111, 0, 0) == 1 ? true : false
|
733
|
+
end
|
734
|
+
|
735
|
+
# Define a set of characters that when typed will cause the autocompletion to
|
736
|
+
# choose the selected item.
|
737
|
+
def autoCSetFillUps(characterSet)
|
738
|
+
sendMessage(2112, 0, characterSet)
|
739
|
+
end
|
740
|
+
|
741
|
+
# Should a single item auto-completion list automatically choose the item.
|
742
|
+
def autoCSetChooseSingle(chooseSingle)
|
743
|
+
sendMessage(2113, chooseSingle, 0)
|
744
|
+
end
|
745
|
+
|
746
|
+
# Retrieve whether a single item auto-completion list automatically choose the item.
|
747
|
+
def autoCGetChooseSingle
|
748
|
+
sendMessage(2114, 0, 0) == 1 ? true : false
|
749
|
+
end
|
750
|
+
|
751
|
+
# Set whether case is significant when performing auto-completion searches.
|
752
|
+
def autoCSetIgnoreCase(ignoreCase)
|
753
|
+
sendMessage(2115, ignoreCase, 0)
|
754
|
+
end
|
755
|
+
|
756
|
+
# Retrieve state of ignore case flag.
|
757
|
+
def autoCGetIgnoreCase
|
758
|
+
sendMessage(2116, 0, 0) == 1 ? true : false
|
759
|
+
end
|
760
|
+
|
761
|
+
# Display a list of strings and send notification when user chooses one.
|
762
|
+
def userListShow(listType, itemList)
|
763
|
+
sendMessage(2117, listType, itemList)
|
764
|
+
end
|
765
|
+
|
766
|
+
# Set whether or not autocompletion is hidden automatically when nothing matches.
|
767
|
+
def autoCSetAutoHide(autoHide)
|
768
|
+
sendMessage(2118, autoHide, 0)
|
769
|
+
end
|
770
|
+
|
771
|
+
# Retrieve whether or not autocompletion is hidden automatically when nothing matches.
|
772
|
+
def autoCGetAutoHide
|
773
|
+
sendMessage(2119, 0, 0) == 1 ? true : false
|
774
|
+
end
|
775
|
+
|
776
|
+
# Set whether or not autocompletion deletes any word characters
|
777
|
+
# after the inserted text upon completion.
|
778
|
+
def autoCSetDropRestOfWord(dropRestOfWord)
|
779
|
+
sendMessage(2270, dropRestOfWord, 0)
|
780
|
+
end
|
781
|
+
|
782
|
+
# Retrieve whether or not autocompletion deletes any word characters
|
783
|
+
# after the inserted text upon completion.
|
784
|
+
def autoCGetDropRestOfWord
|
785
|
+
sendMessage(2271, 0, 0) == 1 ? true : false
|
786
|
+
end
|
787
|
+
|
788
|
+
# Register an XPM image for use in autocompletion lists.
|
789
|
+
def registerImage(type, xpmData)
|
790
|
+
sendMessage(2405, type, xpmData)
|
791
|
+
end
|
792
|
+
|
793
|
+
# Clear all the registered XPM images.
|
794
|
+
def clearRegisteredImages
|
795
|
+
sendMessage(2408, 0, 0)
|
796
|
+
end
|
797
|
+
|
798
|
+
# Retrieve the auto-completion list type-separator character.
|
799
|
+
def autoCGetTypeSeparator
|
800
|
+
sendMessage(2285, 0, 0)
|
801
|
+
end
|
802
|
+
|
803
|
+
# Change the type-separator character in the string setting up an auto-completion list.
|
804
|
+
# Default is '?' but can be changed if items contain '?'.
|
805
|
+
def autoCSetTypeSeparator(separatorCharacter)
|
806
|
+
sendMessage(2286, separatorCharacter, 0)
|
807
|
+
end
|
808
|
+
|
809
|
+
# Set the maximum width, in characters, of auto-completion and user lists.
|
810
|
+
# Set to 0 to autosize to fit longest item, which is the default.
|
811
|
+
def autoCSetMaxWidth(characterCount)
|
812
|
+
sendMessage(2208, characterCount, 0)
|
813
|
+
end
|
814
|
+
|
815
|
+
# Get the maximum width, in characters, of auto-completion and user lists.
|
816
|
+
def autoCGetMaxWidth
|
817
|
+
sendMessage(2209, 0, 0)
|
818
|
+
end
|
819
|
+
|
820
|
+
# Set the maximum height, in rows, of auto-completion and user lists.
|
821
|
+
# The default is 5 rows.
|
822
|
+
def autoCSetMaxHeight(rowCount)
|
823
|
+
sendMessage(2210, rowCount, 0)
|
824
|
+
end
|
825
|
+
|
826
|
+
# Set the maximum height, in rows, of auto-completion and user lists.
|
827
|
+
def autoCGetMaxHeight
|
828
|
+
sendMessage(2211, 0, 0)
|
829
|
+
end
|
830
|
+
|
831
|
+
# Set the number of spaces used for one level of indentation.
|
832
|
+
def setIndent(indentSize)
|
833
|
+
sendMessage(2122, indentSize, 0)
|
834
|
+
end
|
835
|
+
|
836
|
+
# Retrieve indentation size.
|
837
|
+
def getIndent
|
838
|
+
sendMessage(2123, 0, 0)
|
839
|
+
end
|
840
|
+
|
841
|
+
# Indentation will only use space characters if useTabs is false, otherwise
|
842
|
+
# it will use a combination of tabs and spaces.
|
843
|
+
def setUseTabs(useTabs)
|
844
|
+
sendMessage(2124, useTabs, 0)
|
845
|
+
end
|
846
|
+
|
847
|
+
# Retrieve whether tabs will be used in indentation.
|
848
|
+
def getUseTabs
|
849
|
+
sendMessage(2125, 0, 0) == 1 ? true : false
|
850
|
+
end
|
851
|
+
|
852
|
+
# Change the indentation of a line to a number of columns.
|
853
|
+
def setLineIndentation(line, indentSize)
|
854
|
+
sendMessage(2126, line, indentSize)
|
855
|
+
end
|
856
|
+
|
857
|
+
# Retrieve the number of columns that a line is indented.
|
858
|
+
def getLineIndentation(line)
|
859
|
+
sendMessage(2127, line, 0)
|
860
|
+
end
|
861
|
+
|
862
|
+
# Retrieve the position before the first non indentation character on a line.
|
863
|
+
def getLineIndentPosition(line)
|
864
|
+
sendMessage(2128, line, 0)
|
865
|
+
end
|
866
|
+
|
867
|
+
# Retrieve the column number of a position, taking tab width into account.
|
868
|
+
def getColumn(pos)
|
869
|
+
sendMessage(2129, pos, 0)
|
870
|
+
end
|
871
|
+
|
872
|
+
# Show or hide the horizontal scroll bar.
|
873
|
+
def setHScrollBar(show)
|
874
|
+
sendMessage(2130, show, 0)
|
875
|
+
end
|
876
|
+
|
877
|
+
# Is the horizontal scroll bar visible?
|
878
|
+
def getHScrollBar
|
879
|
+
sendMessage(2131, 0, 0) == 1 ? true : false
|
880
|
+
end
|
881
|
+
|
882
|
+
# Show or hide indentation guides.
|
883
|
+
def setIndentationGuides(show)
|
884
|
+
sendMessage(2132, show, 0)
|
885
|
+
end
|
886
|
+
|
887
|
+
# Are the indentation guides visible?
|
888
|
+
def getIndentationGuides
|
889
|
+
sendMessage(2133, 0, 0) == 1 ? true : false
|
890
|
+
end
|
891
|
+
|
892
|
+
# Set the highlighted indentation guide column.
|
893
|
+
# 0 = no highlighted guide.
|
894
|
+
def setHighlightGuide(column)
|
895
|
+
sendMessage(2134, column, 0)
|
896
|
+
end
|
897
|
+
|
898
|
+
# Get the highlighted indentation guide column.
|
899
|
+
def getHighlightGuide
|
900
|
+
sendMessage(2135, 0, 0)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Get the position after the last visible characters on a line.
|
904
|
+
def getLineEndPosition(line)
|
905
|
+
sendMessage(2136, line, 0)
|
906
|
+
end
|
907
|
+
|
908
|
+
# Get the code page used to interpret the bytes of the document as characters.
|
909
|
+
def getCodePage
|
910
|
+
sendMessage(2137, 0, 0)
|
911
|
+
end
|
912
|
+
|
913
|
+
# Get the foreground colour of the caret.
|
914
|
+
def getCaretFore
|
915
|
+
sendMessage(2138, 0, 0)
|
916
|
+
end
|
917
|
+
|
918
|
+
# In palette mode?
|
919
|
+
def getUsePalette
|
920
|
+
sendMessage(2139, 0, 0) == 1 ? true : false
|
921
|
+
end
|
922
|
+
|
923
|
+
# In read-only mode?
|
924
|
+
def getReadOnly
|
925
|
+
sendMessage(2140, 0, 0) == 1 ? true : false
|
926
|
+
end
|
927
|
+
|
928
|
+
# Sets the position of the caret.
|
929
|
+
def setCurrentPos(pos)
|
930
|
+
sendMessage(2141, pos, 0)
|
931
|
+
end
|
932
|
+
|
933
|
+
# Sets the position that starts the selection - this becomes the anchor.
|
934
|
+
def setSelectionStart(pos)
|
935
|
+
sendMessage(2142, pos, 0)
|
936
|
+
end
|
937
|
+
|
938
|
+
# Returns the position at the start of the selection.
|
939
|
+
def getSelectionStart
|
940
|
+
sendMessage(2143, 0, 0)
|
941
|
+
end
|
942
|
+
|
943
|
+
# Sets the position that ends the selection - this becomes the currentPosition.
|
944
|
+
def setSelectionEnd(pos)
|
945
|
+
sendMessage(2144, pos, 0)
|
946
|
+
end
|
947
|
+
|
948
|
+
# Returns the position at the end of the selection.
|
949
|
+
def getSelectionEnd
|
950
|
+
sendMessage(2145, 0, 0)
|
951
|
+
end
|
952
|
+
|
953
|
+
# Sets the print magnification added to the point size of each style for printing.
|
954
|
+
def setPrintMagnification(magnification)
|
955
|
+
sendMessage(2146, magnification, 0)
|
956
|
+
end
|
957
|
+
|
958
|
+
# Returns the print magnification.
|
959
|
+
def getPrintMagnification
|
960
|
+
sendMessage(2147, 0, 0)
|
961
|
+
end
|
962
|
+
|
963
|
+
# PrintColourMode - use same colours as screen.
|
964
|
+
SC_PRINT_NORMAL = 0
|
965
|
+
# PrintColourMode - invert the light value of each style for printing.
|
966
|
+
SC_PRINT_INVERTLIGHT = 1
|
967
|
+
# PrintColourMode - force black text on white background for printing.
|
968
|
+
SC_PRINT_BLACKONWHITE = 2
|
969
|
+
# PrintColourMode - text stays coloured, but all background is forced to be white for printing.
|
970
|
+
SC_PRINT_COLOURONWHITE = 3
|
971
|
+
# PrintColourMode - only the default-background is forced to be white for printing.
|
972
|
+
SC_PRINT_COLOURONWHITEDEFAULTBG = 4
|
973
|
+
|
974
|
+
# Modify colours when printing for clearer printed text.
|
975
|
+
def setPrintColourMode(mode)
|
976
|
+
sendMessage(2148, mode, 0)
|
977
|
+
end
|
978
|
+
|
979
|
+
# Returns the print colour mode.
|
980
|
+
def getPrintColourMode
|
981
|
+
sendMessage(2149, 0, 0)
|
982
|
+
end
|
983
|
+
|
984
|
+
SCFIND_WHOLEWORD = 2
|
985
|
+
SCFIND_MATCHCASE = 4
|
986
|
+
SCFIND_WORDSTART = 0x00100000
|
987
|
+
SCFIND_REGEXP = 0x00200000
|
988
|
+
SCFIND_POSIX = 0x00400000
|
989
|
+
|
990
|
+
# Find some text in the document.
|
991
|
+
def findText(flags, ft)
|
992
|
+
sendMessage(2150, flags, ft)
|
993
|
+
end
|
994
|
+
|
995
|
+
# On Windows, will draw the document into a display context such as a printer.
|
996
|
+
def formatRange(draw, fr)
|
997
|
+
sendMessage(2151, draw, fr)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Retrieve the display line at the top of the display.
|
1001
|
+
def getFirstVisibleLine
|
1002
|
+
sendMessage(2152, 0, 0)
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# Retrieve the contents of a line.
|
1006
|
+
# Returns the length of the line.
|
1007
|
+
def getLine(line)
|
1008
|
+
buffer = "".ljust(line)
|
1009
|
+
sendMessage(2153, line, buffer)
|
1010
|
+
buffer
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# Returns the number of lines in the document. There is always at least one.
|
1014
|
+
def getLineCount
|
1015
|
+
sendMessage(2154, 0, 0)
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Sets the size in pixels of the left margin.
|
1019
|
+
def setMarginLeft(pixelWidth)
|
1020
|
+
sendMessage(2155, 0, pixelWidth)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Returns the size in pixels of the left margin.
|
1024
|
+
def getMarginLeft
|
1025
|
+
sendMessage(2156, 0, 0)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Sets the size in pixels of the right margin.
|
1029
|
+
def setMarginRight(pixelWidth)
|
1030
|
+
sendMessage(2157, 0, pixelWidth)
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# Returns the size in pixels of the right margin.
|
1034
|
+
def getMarginRight
|
1035
|
+
sendMessage(2158, 0, 0)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Is the document different from when it was last saved?
|
1039
|
+
def getModify
|
1040
|
+
sendMessage(2159, 0, 0) == 1 ? true : false
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# Select a range of text.
|
1044
|
+
def setSel(start, last)
|
1045
|
+
sendMessage(2160, start, last)
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# Retrieve the selected text.
|
1049
|
+
# Return the length of the text.
|
1050
|
+
def getSelText
|
1051
|
+
sendMessage(2161, 0, text)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Retrieve a range of text.
|
1055
|
+
# Return the length of the text.
|
1056
|
+
def getTextRange(tr)
|
1057
|
+
sendMessage(2162, 0, tr)
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# Draw the selection in normal style or with selection highlighted.
|
1061
|
+
def hideSelection(normal)
|
1062
|
+
sendMessage(2163, normal, 0)
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# Retrieve the x value of the point in the window where a position is displayed.
|
1066
|
+
def pointXFromPosition(pos)
|
1067
|
+
sendMessage(2164, 0, pos)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# Retrieve the y value of the point in the window where a position is displayed.
|
1071
|
+
def pointYFromPosition(pos)
|
1072
|
+
sendMessage(2165, 0, pos)
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
# Retrieve the line containing a position.
|
1076
|
+
def lineFromPosition(pos)
|
1077
|
+
sendMessage(2166, pos, 0)
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# Retrieve the position at the start of a line.
|
1081
|
+
def positionFromLine(line)
|
1082
|
+
sendMessage(2167, line, 0)
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# Scroll horizontally and vertically.
|
1086
|
+
def lineScroll(columns, lines)
|
1087
|
+
sendMessage(2168, columns, lines)
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# Ensure the caret is visible.
|
1091
|
+
def scrollCaret
|
1092
|
+
sendMessage(2169, 0, 0)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Replace the selected text with the argument text.
|
1096
|
+
def replaceSel(text)
|
1097
|
+
sendMessage(2170, 0, text)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Set to read only or read write.
|
1101
|
+
def setReadOnly(readOnly)
|
1102
|
+
sendMessage(2171, readOnly, 0)
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Null operation.
|
1106
|
+
def null
|
1107
|
+
sendMessage(2172, 0, 0)
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Will a paste succeed?
|
1111
|
+
def canPaste
|
1112
|
+
sendMessage(2173, 0, 0) == 1 ? true : false
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# Are there any undoable actions in the undo history?
|
1116
|
+
def canUndo
|
1117
|
+
sendMessage(2174, 0, 0) == 1 ? true : false
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Delete the undo history.
|
1121
|
+
def emptyUndoBuffer
|
1122
|
+
sendMessage(2175, 0, 0)
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# Undo one action in the undo history.
|
1126
|
+
def undo
|
1127
|
+
sendMessage(2176, 0, 0)
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# Cut the selection to the clipboard.
|
1131
|
+
def cut
|
1132
|
+
sendMessage(2177, 0, 0)
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# Copy the selection to the clipboard.
|
1136
|
+
def copy
|
1137
|
+
sendMessage(2178, 0, 0)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Paste the contents of the clipboard into the document replacing the selection.
|
1141
|
+
def paste
|
1142
|
+
sendMessage(2179, 0, 0)
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
# Clear the selection.
|
1146
|
+
def clear
|
1147
|
+
sendMessage(2180, 0, 0)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Replace the contents of the document with the argument text.
|
1151
|
+
def setText(text)
|
1152
|
+
sendMessage(2181, 0, text)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# Retrieve all the text in the document.
|
1156
|
+
# Returns number of characters retrieved.
|
1157
|
+
def getText(length)
|
1158
|
+
buffer = "".ljust(length)
|
1159
|
+
sendMessage(2182, length, buffer)
|
1160
|
+
buffer
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Retrieve the number of characters in the document.
|
1164
|
+
def getTextLength
|
1165
|
+
sendMessage(2183, 0, 0)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# Retrieve a pointer to a function that processes messages for this Scintilla.
|
1169
|
+
def getDirectFunction
|
1170
|
+
sendMessage(2184, 0, 0)
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# Retrieve a pointer value to use as the first argument when calling
|
1174
|
+
# the function returned by GetDirectFunction.
|
1175
|
+
def getDirectPointer
|
1176
|
+
sendMessage(2185, 0, 0)
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# Set to overtype (true) or insert mode.
|
1180
|
+
def setOvertype(overtype)
|
1181
|
+
sendMessage(2186, overtype, 0)
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# Returns true if overtype mode is active otherwise false is returned.
|
1185
|
+
def getOvertype
|
1186
|
+
sendMessage(2187, 0, 0) == 1 ? true : false
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Set the width of the insert mode caret.
|
1190
|
+
def setCaretWidth(pixelWidth)
|
1191
|
+
sendMessage(2188, pixelWidth, 0)
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# Returns the width of the insert mode caret.
|
1195
|
+
def getCaretWidth
|
1196
|
+
sendMessage(2189, 0, 0)
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# Sets the position that starts the target which is used for updating the
|
1200
|
+
# document without affecting the scroll position.
|
1201
|
+
def setTargetStart(pos)
|
1202
|
+
sendMessage(2190, pos, 0)
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# Get the position that starts the target.
|
1206
|
+
def getTargetStart
|
1207
|
+
sendMessage(2191, 0, 0)
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
# Sets the position that ends the target which is used for updating the
|
1211
|
+
# document without affecting the scroll position.
|
1212
|
+
def setTargetEnd(pos)
|
1213
|
+
sendMessage(2192, pos, 0)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
# Get the position that ends the target.
|
1217
|
+
def getTargetEnd
|
1218
|
+
sendMessage(2193, 0, 0)
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# Replace the target text with the argument text.
|
1222
|
+
# Text is counted so it can contain NULs.
|
1223
|
+
# Returns the length of the replacement text.
|
1224
|
+
def replaceTarget(length, text)
|
1225
|
+
sendMessage(2194, length, text)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Replace the target text with the argument text after \d processing.
|
1229
|
+
# Text is counted so it can contain NULs.
|
1230
|
+
# Looks for \d where d is between 1 and 9 and replaces these with the strings
|
1231
|
+
# matched in the last search operation which were surrounded by \( and \).
|
1232
|
+
# Returns the length of the replacement text including any change
|
1233
|
+
# caused by processing the \d patterns.
|
1234
|
+
def replaceTargetRE(length, text)
|
1235
|
+
sendMessage(2195, length, text)
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
# Search for a counted string in the target and set the target to the found
|
1239
|
+
# range. Text is counted so it can contain NULs.
|
1240
|
+
# Returns length of range or -1 for failure in which case target is not moved.
|
1241
|
+
def searchInTarget(length, text)
|
1242
|
+
sendMessage(2197, length, text)
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
# Set the search flags used by SearchInTarget.
|
1246
|
+
def setSearchFlags(flags)
|
1247
|
+
sendMessage(2198, flags, 0)
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# Get the search flags used by SearchInTarget.
|
1251
|
+
def getSearchFlags
|
1252
|
+
sendMessage(2199, 0, 0)
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# Show a call tip containing a definition near position pos.
|
1256
|
+
def callTipShow(pos, definition)
|
1257
|
+
sendMessage(2200, pos, definition)
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
# Remove the call tip from the screen.
|
1261
|
+
def callTipCancel
|
1262
|
+
sendMessage(2201, 0, 0)
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# Is there an active call tip?
|
1266
|
+
def callTipActive
|
1267
|
+
sendMessage(2202, 0, 0) == 1 ? true : false
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
# Retrieve the position where the caret was before displaying the call tip.
|
1271
|
+
def callTipPosStart
|
1272
|
+
sendMessage(2203, 0, 0)
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Highlight a segment of the definition.
|
1276
|
+
def callTipSetHlt(start, last)
|
1277
|
+
sendMessage(2204, start, last)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# Set the background colour for the call tip.
|
1281
|
+
def callTipSetBack(back)
|
1282
|
+
sendMessage(2205, back & 0xffffff, 0)
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
# Set the foreground colour for the call tip.
|
1286
|
+
def callTipSetFore(fore)
|
1287
|
+
sendMessage(2206, fore & 0xffffff, 0)
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# Set the foreground colour for the highlighted part of the call tip.
|
1291
|
+
def callTipSetForeHlt(fore)
|
1292
|
+
sendMessage(2207, fore & 0xffffff, 0)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
|
1296
|
+
def callTipUseStyle(tabSize)
|
1297
|
+
sendMessage(2212, tabSize, 0)
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
# Find the display line of a document line taking hidden lines into account.
|
1301
|
+
def visibleFromDocLine(line)
|
1302
|
+
sendMessage(2220, line, 0)
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# Find the document line of a display line taking hidden lines into account.
|
1306
|
+
def docLineFromVisible(lineDisplay)
|
1307
|
+
sendMessage(2221, lineDisplay, 0)
|
1308
|
+
end
|
1309
|
+
|
1310
|
+
# The number of display lines needed to wrap a document line
|
1311
|
+
def wrapCount(line)
|
1312
|
+
sendMessage(2235, line, 0)
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
SC_FOLDLEVELBASE = 0x400
|
1316
|
+
SC_FOLDLEVELWHITEFLAG = 0x1000
|
1317
|
+
SC_FOLDLEVELHEADERFLAG = 0x2000
|
1318
|
+
SC_FOLDLEVELBOXHEADERFLAG = 0x4000
|
1319
|
+
SC_FOLDLEVELBOXFOOTERFLAG = 0x8000
|
1320
|
+
SC_FOLDLEVELCONTRACTED = 0x10000
|
1321
|
+
SC_FOLDLEVELUNINDENT = 0x20000
|
1322
|
+
SC_FOLDLEVELNUMBERMASK = 0x0FFF
|
1323
|
+
|
1324
|
+
# Set the fold level of a line.
|
1325
|
+
# This encodes an integer level along with flags indicating whether the
|
1326
|
+
# line is a header and whether it is effectively white space.
|
1327
|
+
def setFoldLevel(line, level)
|
1328
|
+
sendMessage(2222, line, level)
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Retrieve the fold level of a line.
|
1332
|
+
def getFoldLevel(line)
|
1333
|
+
sendMessage(2223, line, 0)
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# Find the last child line of a header line.
|
1337
|
+
def getLastChild(line, level)
|
1338
|
+
sendMessage(2224, line, level)
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
# Find the parent line of a child line.
|
1342
|
+
def getFoldParent(line)
|
1343
|
+
sendMessage(2225, line, 0)
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# Make a range of lines visible.
|
1347
|
+
def showLines(lineStart, lineEnd)
|
1348
|
+
sendMessage(2226, lineStart, lineEnd)
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# Make a range of lines invisible.
|
1352
|
+
def hideLines(lineStart, lineEnd)
|
1353
|
+
sendMessage(2227, lineStart, lineEnd)
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
# Is a line visible?
|
1357
|
+
def getLineVisible(line)
|
1358
|
+
sendMessage(2228, line, 0) == 1 ? true : false
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
# Show the children of a header line.
|
1362
|
+
def setFoldExpanded(line, expanded)
|
1363
|
+
sendMessage(2229, line, expanded)
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
# Is a header line expanded?
|
1367
|
+
def getFoldExpanded(line)
|
1368
|
+
sendMessage(2230, line, 0) == 1 ? true : false
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# Switch a header line between expanded and contracted.
|
1372
|
+
def toggleFold(line)
|
1373
|
+
sendMessage(2231, line, 0)
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# Ensure a particular line is visible by expanding any header line hiding it.
|
1377
|
+
def ensureVisible(line)
|
1378
|
+
sendMessage(2232, line, 0)
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002
|
1382
|
+
SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004
|
1383
|
+
SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008
|
1384
|
+
SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010
|
1385
|
+
SC_FOLDFLAG_LEVELNUMBERS = 0x0040
|
1386
|
+
SC_FOLDFLAG_BOX = 0x0001
|
1387
|
+
|
1388
|
+
# Set some style options for folding.
|
1389
|
+
def setFoldFlags(flags)
|
1390
|
+
sendMessage(2233, flags, 0)
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
# Ensure a particular line is visible by expanding any header line hiding it.
|
1394
|
+
# Use the currently set visibility policy to determine which range to display.
|
1395
|
+
def ensureVisibleEnforcePolicy(line)
|
1396
|
+
sendMessage(2234, line, 0)
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
# Sets whether a tab pressed when caret is within indentation indents.
|
1400
|
+
def setTabIndents(tabIndents)
|
1401
|
+
sendMessage(2260, tabIndents, 0)
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
# Does a tab pressed when caret is within indentation indent?
|
1405
|
+
def getTabIndents
|
1406
|
+
sendMessage(2261, 0, 0) == 1 ? true : false
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
# Sets whether a backspace pressed when caret is within indentation unindents.
|
1410
|
+
def setBackSpaceUnIndents(bsUnIndents)
|
1411
|
+
sendMessage(2262, bsUnIndents, 0)
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# Does a backspace pressed when caret is within indentation unindent?
|
1415
|
+
def getBackSpaceUnIndents
|
1416
|
+
sendMessage(2263, 0, 0) == 1 ? true : false
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
SC_TIME_FOREVER = 10000000
|
1420
|
+
|
1421
|
+
# Sets the time the mouse must sit still to generate a mouse dwell event.
|
1422
|
+
def setMouseDwellTime(periodMilliseconds)
|
1423
|
+
sendMessage(2264, periodMilliseconds, 0)
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
# Retrieve the time the mouse must sit still to generate a mouse dwell event.
|
1427
|
+
def getMouseDwellTime
|
1428
|
+
sendMessage(2265, 0, 0)
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
# Get position of start of word.
|
1432
|
+
def wordStartPosition(pos, onlyWordCharacters)
|
1433
|
+
sendMessage(2266, pos, onlyWordCharacters)
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# Get position of end of word.
|
1437
|
+
def wordEndPosition(pos, onlyWordCharacters)
|
1438
|
+
sendMessage(2267, pos, onlyWordCharacters)
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
SC_WRAP_NONE = 0
|
1442
|
+
SC_WRAP_WORD = 1
|
1443
|
+
SC_WRAP_CHAR = 2
|
1444
|
+
|
1445
|
+
# Sets whether text is word wrapped.
|
1446
|
+
def setWrapMode(mode)
|
1447
|
+
sendMessage(2268, mode, 0)
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Retrieve whether text is word wrapped.
|
1451
|
+
def getWrapMode
|
1452
|
+
sendMessage(2269, 0, 0)
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
SC_WRAPVISUALFLAG_NONE = 0x0000
|
1456
|
+
SC_WRAPVISUALFLAG_END = 0x0001
|
1457
|
+
SC_WRAPVISUALFLAG_START = 0x0002
|
1458
|
+
|
1459
|
+
# Set the display mode of visual flags for wrapped lines.
|
1460
|
+
def setWrapVisualFlags(wrapVisualFlags)
|
1461
|
+
sendMessage(2460, wrapVisualFlags, 0)
|
1462
|
+
end
|
1463
|
+
|
1464
|
+
# Retrive the display mode of visual flags for wrapped lines.
|
1465
|
+
def getWrapVisualFlags
|
1466
|
+
sendMessage(2461, 0, 0)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000
|
1470
|
+
SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001
|
1471
|
+
SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002
|
1472
|
+
|
1473
|
+
# Set the location of visual flags for wrapped lines.
|
1474
|
+
def setWrapVisualFlagsLocation(wrapVisualFlagsLocation)
|
1475
|
+
sendMessage(2462, wrapVisualFlagsLocation, 0)
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
# Retrive the location of visual flags for wrapped lines.
|
1479
|
+
def getWrapVisualFlagsLocation
|
1480
|
+
sendMessage(2463, 0, 0)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Set the start indent for wrapped lines.
|
1484
|
+
def setWrapStartIndent(indent)
|
1485
|
+
sendMessage(2464, indent, 0)
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
# Retrive the start indent for wrapped lines.
|
1489
|
+
def getWrapStartIndent
|
1490
|
+
sendMessage(2465, 0, 0)
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
SC_CACHE_NONE = 0
|
1494
|
+
SC_CACHE_CARET = 1
|
1495
|
+
SC_CACHE_PAGE = 2
|
1496
|
+
SC_CACHE_DOCUMENT = 3
|
1497
|
+
|
1498
|
+
# Sets the degree of caching of layout information.
|
1499
|
+
def setLayoutCache(mode)
|
1500
|
+
sendMessage(2272, mode, 0)
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# Retrieve the degree of caching of layout information.
|
1504
|
+
def getLayoutCache
|
1505
|
+
sendMessage(2273, 0, 0)
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
# Sets the document width assumed for scrolling.
|
1509
|
+
def setScrollWidth(pixelWidth)
|
1510
|
+
sendMessage(2274, pixelWidth, 0)
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
# Retrieve the document width assumed for scrolling.
|
1514
|
+
def getScrollWidth
|
1515
|
+
sendMessage(2275, 0, 0)
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
# Measure the pixel width of some text in a particular style.
|
1519
|
+
# NUL terminated text argument.
|
1520
|
+
# Does not handle tab or control characters.
|
1521
|
+
def textWidth(style, text)
|
1522
|
+
sendMessage(2276, style, text)
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
# Sets the scroll range so that maximum scroll position has
|
1526
|
+
# the last line at the bottom of the view (default).
|
1527
|
+
# Setting this to false allows scrolling one page below the last line.
|
1528
|
+
def setEndAtLastLine(endAtLastLine)
|
1529
|
+
sendMessage(2277, endAtLastLine, 0)
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# Retrieve whether the maximum scroll position has the last
|
1533
|
+
# line at the bottom of the view.
|
1534
|
+
def getEndAtLastLine
|
1535
|
+
sendMessage(2278, 0, 0) == 1 ? true : false
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
# Retrieve the height of a particular line of text in pixels.
|
1539
|
+
def textHeight(line)
|
1540
|
+
sendMessage(2279, line, 0)
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# Show or hide the vertical scroll bar.
|
1544
|
+
def setVScrollBar(show)
|
1545
|
+
sendMessage(2280, show, 0)
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
# Is the vertical scroll bar visible?
|
1549
|
+
def getVScrollBar
|
1550
|
+
sendMessage(2281, 0, 0) == 1 ? true : false
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
# Append a string to the end of the document without changing the selection.
|
1554
|
+
def appendText(length, text)
|
1555
|
+
sendMessage(2282, length, text)
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
# Is drawing done in two phases with backgrounds drawn before faoregrounds?
|
1559
|
+
def getTwoPhaseDraw
|
1560
|
+
sendMessage(2283, 0, 0) == 1 ? true : false
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
# In twoPhaseDraw mode, drawing is performed in two phases, first the background
|
1564
|
+
# and then the foreground. This avoids chopping off characters that overlap the next run.
|
1565
|
+
def setTwoPhaseDraw(twoPhase)
|
1566
|
+
sendMessage(2284, twoPhase, 0)
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# Make the target range start and end be the same as the selection range start and end.
|
1570
|
+
def targetFromSelection
|
1571
|
+
sendMessage(2287, 0, 0)
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Join the lines in the target.
|
1575
|
+
def linesJoin
|
1576
|
+
sendMessage(2288, 0, 0)
|
1577
|
+
end
|
1578
|
+
|
1579
|
+
# Split the lines in the target into lines that are less wide than pixelWidth
|
1580
|
+
# where possible.
|
1581
|
+
def linesSplit(pixelWidth)
|
1582
|
+
sendMessage(2289, pixelWidth, 0)
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
# Set the colours used as a chequerboard pattern in the fold margin
|
1586
|
+
def setFoldMarginColour(useSetting, back)
|
1587
|
+
sendMessage(2290, useSetting, back & 0xffffff)
|
1588
|
+
end
|
1589
|
+
def setFoldMarginHiColour(useSetting, fore)
|
1590
|
+
sendMessage(2291, useSetting, fore & 0xffffff)
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
|
1594
|
+
# Move caret down one line.
|
1595
|
+
def lineDown
|
1596
|
+
sendMessage(2300, 0, 0)
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
# Move caret down one line extending selection to new caret position.
|
1600
|
+
def lineDownExtend
|
1601
|
+
sendMessage(2301, 0, 0)
|
1602
|
+
end
|
1603
|
+
|
1604
|
+
# Move caret up one line.
|
1605
|
+
def lineUp
|
1606
|
+
sendMessage(2302, 0, 0)
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
# Move caret up one line extending selection to new caret position.
|
1610
|
+
def lineUpExtend
|
1611
|
+
sendMessage(2303, 0, 0)
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# Move caret left one character.
|
1615
|
+
def charLeft
|
1616
|
+
sendMessage(2304, 0, 0)
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
# Move caret left one character extending selection to new caret position.
|
1620
|
+
def charLeftExtend
|
1621
|
+
sendMessage(2305, 0, 0)
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# Move caret right one character.
|
1625
|
+
def charRight
|
1626
|
+
sendMessage(2306, 0, 0)
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
# Move caret right one character extending selection to new caret position.
|
1630
|
+
def charRightExtend
|
1631
|
+
sendMessage(2307, 0, 0)
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
# Move caret left one word.
|
1635
|
+
def wordLeft
|
1636
|
+
sendMessage(2308, 0, 0)
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
# Move caret left one word extending selection to new caret position.
|
1640
|
+
def wordLeftExtend
|
1641
|
+
sendMessage(2309, 0, 0)
|
1642
|
+
end
|
1643
|
+
|
1644
|
+
# Move caret right one word.
|
1645
|
+
def wordRight
|
1646
|
+
sendMessage(2310, 0, 0)
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# Move caret right one word extending selection to new caret position.
|
1650
|
+
def wordRightExtend
|
1651
|
+
sendMessage(2311, 0, 0)
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
# Move caret to first position on line.
|
1655
|
+
def home
|
1656
|
+
sendMessage(2312, 0, 0)
|
1657
|
+
end
|
1658
|
+
|
1659
|
+
# Move caret to first position on line extending selection to new caret position.
|
1660
|
+
def homeExtend
|
1661
|
+
sendMessage(2313, 0, 0)
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
# Move caret to last position on line.
|
1665
|
+
def lineEnd
|
1666
|
+
sendMessage(2314, 0, 0)
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
# Move caret to last position on line extending selection to new caret position.
|
1670
|
+
def lineEndExtend
|
1671
|
+
sendMessage(2315, 0, 0)
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# Move caret to first position in document.
|
1675
|
+
def documentStart
|
1676
|
+
sendMessage(2316, 0, 0)
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
# Move caret to first position in document extending selection to new caret position.
|
1680
|
+
def documentStartExtend
|
1681
|
+
sendMessage(2317, 0, 0)
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
# Move caret to last position in document.
|
1685
|
+
def documentEnd
|
1686
|
+
sendMessage(2318, 0, 0)
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
# Move caret to last position in document extending selection to new caret position.
|
1690
|
+
def documentEndExtend
|
1691
|
+
sendMessage(2319, 0, 0)
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
# Move caret one page up.
|
1695
|
+
def pageUp
|
1696
|
+
sendMessage(2320, 0, 0)
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
# Move caret one page up extending selection to new caret position.
|
1700
|
+
def pageUpExtend
|
1701
|
+
sendMessage(2321, 0, 0)
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
# Move caret one page down.
|
1705
|
+
def pageDown
|
1706
|
+
sendMessage(2322, 0, 0)
|
1707
|
+
end
|
1708
|
+
|
1709
|
+
# Move caret one page down extending selection to new caret position.
|
1710
|
+
def pageDownExtend
|
1711
|
+
sendMessage(2323, 0, 0)
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# Switch from insert to overtype mode or the reverse.
|
1715
|
+
def editToggleOvertype
|
1716
|
+
sendMessage(2324, 0, 0)
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
# Cancel any modes such as call tip or auto-completion list display.
|
1720
|
+
def cancel
|
1721
|
+
sendMessage(2325, 0, 0)
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
# Delete the selection or if no selection, the character before the caret.
|
1725
|
+
def deleteBack
|
1726
|
+
sendMessage(2326, 0, 0)
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
# If selection is empty or all on one line replace the selection with a tab character.
|
1730
|
+
# If more than one line selected, indent the lines.
|
1731
|
+
def tab
|
1732
|
+
sendMessage(2327, 0, 0)
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# Dedent the selected lines.
|
1736
|
+
def backTab
|
1737
|
+
sendMessage(2328, 0, 0)
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
# Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
|
1741
|
+
def newLine
|
1742
|
+
sendMessage(2329, 0, 0)
|
1743
|
+
end
|
1744
|
+
|
1745
|
+
# Insert a Form Feed character.
|
1746
|
+
def formFeed
|
1747
|
+
sendMessage(2330, 0, 0)
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# Move caret to before first visible character on line.
|
1751
|
+
# If already there move to first character on line.
|
1752
|
+
def vCHome
|
1753
|
+
sendMessage(2331, 0, 0)
|
1754
|
+
end
|
1755
|
+
|
1756
|
+
# Like VCHome but extending selection to new caret position.
|
1757
|
+
def vCHomeExtend
|
1758
|
+
sendMessage(2332, 0, 0)
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
# Magnify the displayed text by increasing the sizes by 1 point.
|
1762
|
+
def zoomIn
|
1763
|
+
sendMessage(2333, 0, 0)
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
# Make the displayed text smaller by decreasing the sizes by 1 point.
|
1767
|
+
def zoomOut
|
1768
|
+
sendMessage(2334, 0, 0)
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# Delete the word to the left of the caret.
|
1772
|
+
def delWordLeft
|
1773
|
+
sendMessage(2335, 0, 0)
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# Delete the word to the right of the caret.
|
1777
|
+
def delWordRight
|
1778
|
+
sendMessage(2336, 0, 0)
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
# Cut the line containing the caret.
|
1782
|
+
def lineCut
|
1783
|
+
sendMessage(2337, 0, 0)
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
# Delete the line containing the caret.
|
1787
|
+
def lineDelete
|
1788
|
+
sendMessage(2338, 0, 0)
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# Switch the current line with the previous.
|
1792
|
+
def lineTranspose
|
1793
|
+
sendMessage(2339, 0, 0)
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
# Duplicate the current line.
|
1797
|
+
def lineDuplicate
|
1798
|
+
sendMessage(2404, 0, 0)
|
1799
|
+
end
|
1800
|
+
|
1801
|
+
# Transform the selection to lower case.
|
1802
|
+
def lowerCase
|
1803
|
+
sendMessage(2340, 0, 0)
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
# Transform the selection to upper case.
|
1807
|
+
def upperCase
|
1808
|
+
sendMessage(2341, 0, 0)
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
# Scroll the document down, keeping the caret visible.
|
1812
|
+
def lineScrollDown
|
1813
|
+
sendMessage(2342, 0, 0)
|
1814
|
+
end
|
1815
|
+
|
1816
|
+
# Scroll the document up, keeping the caret visible.
|
1817
|
+
def lineScrollUp
|
1818
|
+
sendMessage(2343, 0, 0)
|
1819
|
+
end
|
1820
|
+
|
1821
|
+
# Delete the selection or if no selection, the character before the caret.
|
1822
|
+
# Will not delete the character before at the start of a line.
|
1823
|
+
def deleteBackNotLine
|
1824
|
+
sendMessage(2344, 0, 0)
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
# Move caret to first position on display line.
|
1828
|
+
def homeDisplay
|
1829
|
+
sendMessage(2345, 0, 0)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# Move caret to first position on display line extending selection to
|
1833
|
+
# new caret position.
|
1834
|
+
def homeDisplayExtend
|
1835
|
+
sendMessage(2346, 0, 0)
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
# Move caret to last position on display line.
|
1839
|
+
def lineEndDisplay
|
1840
|
+
sendMessage(2347, 0, 0)
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
# Move caret to last position on display line extending selection to new
|
1844
|
+
# caret position.
|
1845
|
+
def lineEndDisplayExtend
|
1846
|
+
sendMessage(2348, 0, 0)
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
# These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
|
1850
|
+
# except they behave differently when word-wrap is enabled:
|
1851
|
+
# They go first to the start / end of the display line, like (Home|LineEnd)Display
|
1852
|
+
# The difference is that, the cursor is already at the point, it goes on to the start
|
1853
|
+
# or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
|
1854
|
+
|
1855
|
+
def homeWrap
|
1856
|
+
sendMessage(2349, 0, 0)
|
1857
|
+
end
|
1858
|
+
def homeWrapExtend
|
1859
|
+
sendMessage(2450, 0, 0)
|
1860
|
+
end
|
1861
|
+
def lineEndWrap
|
1862
|
+
sendMessage(2451, 0, 0)
|
1863
|
+
end
|
1864
|
+
def lineEndWrapExtend
|
1865
|
+
sendMessage(2452, 0, 0)
|
1866
|
+
end
|
1867
|
+
def vCHomeWrap
|
1868
|
+
sendMessage(2453, 0, 0)
|
1869
|
+
end
|
1870
|
+
def vCHomeWrapExtend
|
1871
|
+
sendMessage(2454, 0, 0)
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Copy the line containing the caret.
|
1875
|
+
def lineCopy
|
1876
|
+
sendMessage(2455, 0, 0)
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
# Move the caret inside current view if it's not there already.
|
1880
|
+
def moveCaretInsideView
|
1881
|
+
sendMessage(2401, 0, 0)
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
# How many characters are on a line, not including end of line characters?
|
1885
|
+
def lineLength(line)
|
1886
|
+
sendMessage(2350, line, 0)
|
1887
|
+
end
|
1888
|
+
|
1889
|
+
# Highlight the characters at two positions.
|
1890
|
+
def braceHighlight(pos1, pos2)
|
1891
|
+
sendMessage(2351, pos1, pos2)
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
# Highlight the character at a position indicating there is no matching brace.
|
1895
|
+
def braceBadLight(pos)
|
1896
|
+
sendMessage(2352, pos, 0)
|
1897
|
+
end
|
1898
|
+
|
1899
|
+
# Find the position of a matching brace or INVALID_POSITION if no match.
|
1900
|
+
def braceMatch(pos)
|
1901
|
+
sendMessage(2353, pos, 0)
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
# Are the end of line characters visible?
|
1905
|
+
def getViewEOL
|
1906
|
+
sendMessage(2355, 0, 0) == 1 ? true : false
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
# Make the end of line characters visible or invisible.
|
1910
|
+
def setViewEOL(visible)
|
1911
|
+
sendMessage(2356, visible, 0)
|
1912
|
+
end
|
1913
|
+
|
1914
|
+
# Retrieve a pointer to the document object.
|
1915
|
+
def getDocPointer
|
1916
|
+
sendMessage(2357, 0, 0)
|
1917
|
+
end
|
1918
|
+
|
1919
|
+
# Change the document object used.
|
1920
|
+
def setDocPointer(pointer)
|
1921
|
+
sendMessage(2358, 0, pointer)
|
1922
|
+
end
|
1923
|
+
|
1924
|
+
# Set which document modification events are sent to the container.
|
1925
|
+
def setModEventMask(mask)
|
1926
|
+
sendMessage(2359, mask, 0)
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
EDGE_NONE = 0
|
1930
|
+
EDGE_LINE = 1
|
1931
|
+
EDGE_BACKGROUND = 2
|
1932
|
+
|
1933
|
+
# Retrieve the column number which text should be kept within.
|
1934
|
+
def getEdgeColumn
|
1935
|
+
sendMessage(2360, 0, 0)
|
1936
|
+
end
|
1937
|
+
|
1938
|
+
# Set the column number of the edge.
|
1939
|
+
# If text goes past the edge then it is highlighted.
|
1940
|
+
def setEdgeColumn(column)
|
1941
|
+
sendMessage(2361, column, 0)
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
# Retrieve the edge highlight mode.
|
1945
|
+
def getEdgeMode
|
1946
|
+
sendMessage(2362, 0, 0)
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
# The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
|
1950
|
+
# goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
|
1951
|
+
def setEdgeMode(mode)
|
1952
|
+
sendMessage(2363, mode, 0)
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
# Retrieve the colour used in edge indication.
|
1956
|
+
def getEdgeColour
|
1957
|
+
sendMessage(2364, 0, 0)
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
# Change the colour used in edge indication.
|
1961
|
+
def setEdgeColour(edgeColour)
|
1962
|
+
sendMessage(2365, edgeColour & 0xffffff, 0)
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
# Sets the current caret position to be the search anchor.
|
1966
|
+
def searchAnchor
|
1967
|
+
sendMessage(2366, 0, 0)
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
# Find some text starting at the search anchor.
|
1971
|
+
# Does not ensure the selection is visible.
|
1972
|
+
def searchNext(flags, text)
|
1973
|
+
sendMessage(2367, flags, text)
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
# Find some text starting at the search anchor and moving backwards.
|
1977
|
+
# Does not ensure the selection is visible.
|
1978
|
+
def searchPrev(flags, text)
|
1979
|
+
sendMessage(2368, flags, text)
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
# Retrieves the number of lines completely visible.
|
1983
|
+
def linesOnScreen
|
1984
|
+
sendMessage(2370, 0, 0)
|
1985
|
+
end
|
1986
|
+
|
1987
|
+
# Set whether a pop up menu is displayed automatically when the user presses
|
1988
|
+
# the wrong mouse button.
|
1989
|
+
def usePopUp(allowPopUp)
|
1990
|
+
sendMessage(2371, allowPopUp, 0)
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
# Is the selection rectangular? The alternative is the more common stream selection.
|
1994
|
+
def selectionIsRectangle
|
1995
|
+
sendMessage(2372, 0, 0) == 1 ? true : false
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
# Set the zoom level. This number of points is added to the size of all fonts.
|
1999
|
+
# It may be positive to magnify or negative to reduce.
|
2000
|
+
def setZoom(zoom)
|
2001
|
+
sendMessage(2373, zoom, 0)
|
2002
|
+
end
|
2003
|
+
# Retrieve the zoom level.
|
2004
|
+
def getZoom
|
2005
|
+
sendMessage(2374, 0, 0)
|
2006
|
+
end
|
2007
|
+
|
2008
|
+
# Create a new document object.
|
2009
|
+
# Starts with reference count of 1 and not selected into editor.
|
2010
|
+
def createDocument
|
2011
|
+
sendMessage(2375, 0, 0)
|
2012
|
+
end
|
2013
|
+
# Extend life of document.
|
2014
|
+
def addRefDocument(doc)
|
2015
|
+
sendMessage(2376, 0, doc)
|
2016
|
+
end
|
2017
|
+
# Release a reference to the document, deleting document if it fades to black.
|
2018
|
+
def releaseDocument(doc)
|
2019
|
+
sendMessage(2377, 0, doc)
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
# Get which document modification events are sent to the container.
|
2023
|
+
def getModEventMask
|
2024
|
+
sendMessage(2378, 0, 0)
|
2025
|
+
end
|
2026
|
+
|
2027
|
+
# Change internal focus flag.
|
2028
|
+
def setFocusFlag(focus)
|
2029
|
+
sendMessage(2380, focus, 0)
|
2030
|
+
end
|
2031
|
+
# Get internal focus flag.
|
2032
|
+
def getFocus
|
2033
|
+
sendMessage(2381, 0, 0) == 1 ? true : false
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
# Change error status - 0 = OK.
|
2037
|
+
def setStatus(statusCode)
|
2038
|
+
sendMessage(2382, statusCode, 0)
|
2039
|
+
end
|
2040
|
+
# Get error status.
|
2041
|
+
def getStatus
|
2042
|
+
sendMessage(2383, 0, 0)
|
2043
|
+
end
|
2044
|
+
|
2045
|
+
# Set whether the mouse is captured when its button is pressed.
|
2046
|
+
def setMouseDownCaptures(captures)
|
2047
|
+
sendMessage(2384, captures, 0)
|
2048
|
+
end
|
2049
|
+
# Get whether mouse gets captured.
|
2050
|
+
def getMouseDownCaptures
|
2051
|
+
sendMessage(2385, 0, 0) == 1 ? true : false
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
SC_CURSORNORMAL = -1
|
2055
|
+
SC_CURSORWAIT = 4
|
2056
|
+
# Sets the cursor to one of the SC_CURSOR* values.
|
2057
|
+
def setCursor(cursorType)
|
2058
|
+
sendMessage(2386, cursorType, 0)
|
2059
|
+
end
|
2060
|
+
# Get cursor type.
|
2061
|
+
def getCursor
|
2062
|
+
sendMessage(2387, 0, 0)
|
2063
|
+
end
|
2064
|
+
|
2065
|
+
# Change the way control characters are displayed:
|
2066
|
+
# If symbol is < 32, keep the drawn way, else, use the given character.
|
2067
|
+
def setControlCharSymbol(symbol)
|
2068
|
+
sendMessage(2388, symbol, 0)
|
2069
|
+
end
|
2070
|
+
# Get the way control characters are displayed.
|
2071
|
+
def getControlCharSymbol
|
2072
|
+
sendMessage(2389, 0, 0)
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
# Move to the previous change in capitalisation.
|
2076
|
+
def wordPartLeft
|
2077
|
+
sendMessage(2390, 0, 0)
|
2078
|
+
end
|
2079
|
+
# Move to the previous change in capitalisation extending selection
|
2080
|
+
# to new caret position.
|
2081
|
+
def wordPartLeftExtend
|
2082
|
+
sendMessage(2391, 0, 0)
|
2083
|
+
end
|
2084
|
+
# Move to the change next in capitalisation.
|
2085
|
+
def wordPartRight
|
2086
|
+
sendMessage(2392, 0, 0)
|
2087
|
+
end
|
2088
|
+
# Move to the next change in capitalisation extending selection
|
2089
|
+
# to new caret position.
|
2090
|
+
def wordPartRightExtend
|
2091
|
+
sendMessage(2393, 0, 0)
|
2092
|
+
end
|
2093
|
+
|
2094
|
+
# Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
|
2095
|
+
VISIBLE_SLOP = 0x01
|
2096
|
+
VISIBLE_STRICT = 0x04
|
2097
|
+
# Set the way the display area is determined when a particular line
|
2098
|
+
# is to be moved to by Find, FindNext, GotoLine, etc.
|
2099
|
+
def setVisiblePolicy(visiblePolicy, visibleSlop)
|
2100
|
+
sendMessage(2394, visiblePolicy, visibleSlop)
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
# Delete back from the current position to the start of the line.
|
2104
|
+
def delLineLeft
|
2105
|
+
sendMessage(2395, 0, 0)
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
# Delete forwards from the current position to the end of the line.
|
2109
|
+
def delLineRight
|
2110
|
+
sendMessage(2396, 0, 0)
|
2111
|
+
end
|
2112
|
+
|
2113
|
+
# Get and Set the xOffset (ie, horizonal scroll position).
|
2114
|
+
def setXOffset(newOffset)
|
2115
|
+
sendMessage(2397, newOffset, 0)
|
2116
|
+
end
|
2117
|
+
def getXOffset
|
2118
|
+
sendMessage(2398, 0, 0)
|
2119
|
+
end
|
2120
|
+
|
2121
|
+
# Set the last x chosen value to be the caret x position.
|
2122
|
+
def chooseCaretX
|
2123
|
+
sendMessage(2399, 0, 0)
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
# Set the focus to this Scintilla widget.
|
2127
|
+
def grabFocus
|
2128
|
+
sendMessage(2400, 0, 0)
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
# Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
|
2132
|
+
# If CARET_SLOP is set, we can define a slop value: caretSlop.
|
2133
|
+
# This value defines an unwanted zone (UZ) where the caret is... unwanted.
|
2134
|
+
# This zone is defined as a number of pixels near the vertical margins,
|
2135
|
+
# and as a number of lines near the horizontal margins.
|
2136
|
+
# By keeping the caret away from the edges, it is seen within its context,
|
2137
|
+
# so it is likely that the identifier that the caret is on can be completely seen,
|
2138
|
+
# and that the current line is seen with some of the lines following it which are
|
2139
|
+
# often dependent on that line.
|
2140
|
+
CARET_SLOP = 0x01
|
2141
|
+
# If CARET_STRICT is set, the policy is enforced... strictly.
|
2142
|
+
# The caret is centred on the display if slop is not set,
|
2143
|
+
# and cannot go in the UZ if slop is set.
|
2144
|
+
CARET_STRICT = 0x04
|
2145
|
+
# If CARET_JUMPS is set, the display is moved more energetically
|
2146
|
+
# so the caret can move in the same direction longer before the policy is applied again.
|
2147
|
+
CARET_JUMPS = 0x10
|
2148
|
+
# If CARET_EVEN is not set, instead of having symmetrical UZs,
|
2149
|
+
# the left and bottom UZs are extended up to right and top UZs respectively.
|
2150
|
+
# This way, we favour the displaying of useful information: the begining of lines,
|
2151
|
+
# where most code reside, and the lines after the caret, eg. the body of a function.
|
2152
|
+
CARET_EVEN = 0x08
|
2153
|
+
|
2154
|
+
# Set the way the caret is kept visible when going sideway.
|
2155
|
+
# The exclusion zone is given in pixels.
|
2156
|
+
def setXCaretPolicy(caretPolicy, caretSlop)
|
2157
|
+
sendMessage(2402, caretPolicy, caretSlop)
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
# Set the way the line the caret is on is kept visible.
|
2161
|
+
# The exclusion zone is given in lines.
|
2162
|
+
def setYCaretPolicy(caretPolicy, caretSlop)
|
2163
|
+
sendMessage(2403, caretPolicy, caretSlop)
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
# Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
|
2167
|
+
def setPrintWrapMode(mode)
|
2168
|
+
sendMessage(2406, mode, 0)
|
2169
|
+
end
|
2170
|
+
|
2171
|
+
# Is printing line wrapped?
|
2172
|
+
def getPrintWrapMode
|
2173
|
+
sendMessage(2407, 0, 0)
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
# Set a fore colour for active hotspots.
|
2177
|
+
def setHotspotActiveFore(useSetting, fore)
|
2178
|
+
sendMessage(2410, useSetting, fore & 0xffffff)
|
2179
|
+
end
|
2180
|
+
|
2181
|
+
# Set a back colour for active hotspots.
|
2182
|
+
def setHotspotActiveBack(useSetting, back)
|
2183
|
+
sendMessage(2411, useSetting, back & 0xffffff)
|
2184
|
+
end
|
2185
|
+
|
2186
|
+
# Enable / Disable underlining active hotspots.
|
2187
|
+
def setHotspotActiveUnderline(underline)
|
2188
|
+
sendMessage(2412, underline, 0)
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
# Limit hotspots to single line so hotspots on two lines don't merge.
|
2192
|
+
def setHotspotSingleLine(singleLine)
|
2193
|
+
sendMessage(2421, singleLine, 0)
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
# Move caret between paragraphs (delimited by empty lines).
|
2197
|
+
def paraDown
|
2198
|
+
sendMessage(2413, 0, 0)
|
2199
|
+
end
|
2200
|
+
def paraDownExtend
|
2201
|
+
sendMessage(2414, 0, 0)
|
2202
|
+
end
|
2203
|
+
def paraUp
|
2204
|
+
sendMessage(2415, 0, 0)
|
2205
|
+
end
|
2206
|
+
def paraUpExtend
|
2207
|
+
sendMessage(2416, 0, 0)
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
# Given a valid document position, return the previous position taking code
|
2211
|
+
# page into account. Returns 0 if passed 0.
|
2212
|
+
def positionBefore(pos)
|
2213
|
+
sendMessage(2417, pos, 0)
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
# Given a valid document position, return the next position taking code
|
2217
|
+
# page into account. Maximum value returned is the last position in the document.
|
2218
|
+
def positionAfter(pos)
|
2219
|
+
sendMessage(2418, pos, 0)
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
# Copy a range of text to the clipboard. Positions are clipped into the document.
|
2223
|
+
def copyRange(start, last)
|
2224
|
+
sendMessage(2419, start, last)
|
2225
|
+
end
|
2226
|
+
|
2227
|
+
# Copy argument text to the clipboard.
|
2228
|
+
def copyText(length, text)
|
2229
|
+
sendMessage(2420, length, text)
|
2230
|
+
end
|
2231
|
+
|
2232
|
+
SC_SEL_STREAM = 0
|
2233
|
+
SC_SEL_RECTANGLE = 1
|
2234
|
+
SC_SEL_LINES = 2
|
2235
|
+
|
2236
|
+
# Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or
|
2237
|
+
# by lines (SC_SEL_LINES).
|
2238
|
+
def setSelectionMode(mode)
|
2239
|
+
sendMessage(2422, mode, 0)
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
# Get the mode of the current selection.
|
2243
|
+
def getSelectionMode
|
2244
|
+
sendMessage(2423, 0, 0)
|
2245
|
+
end
|
2246
|
+
|
2247
|
+
# Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
|
2248
|
+
def getLineSelStartPosition(line)
|
2249
|
+
sendMessage(2424, line, 0)
|
2250
|
+
end
|
2251
|
+
|
2252
|
+
# Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
|
2253
|
+
def getLineSelEndPosition(line)
|
2254
|
+
sendMessage(2425, line, 0)
|
2255
|
+
end
|
2256
|
+
|
2257
|
+
# Move caret down one line, extending rectangular selection to new caret position.
|
2258
|
+
def lineDownRectExtend
|
2259
|
+
sendMessage(2426, 0, 0)
|
2260
|
+
end
|
2261
|
+
|
2262
|
+
# Move caret up one line, extending rectangular selection to new caret position.
|
2263
|
+
def lineUpRectExtend
|
2264
|
+
sendMessage(2427, 0, 0)
|
2265
|
+
end
|
2266
|
+
|
2267
|
+
# Move caret left one character, extending rectangular selection to new caret position.
|
2268
|
+
def charLeftRectExtend
|
2269
|
+
sendMessage(2428, 0, 0)
|
2270
|
+
end
|
2271
|
+
|
2272
|
+
# Move caret right one character, extending rectangular selection to new caret position.
|
2273
|
+
def charRightRectExtend
|
2274
|
+
sendMessage(2429, 0, 0)
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
# Move caret to first position on line, extending rectangular selection to new caret position.
|
2278
|
+
def homeRectExtend
|
2279
|
+
sendMessage(2430, 0, 0)
|
2280
|
+
end
|
2281
|
+
|
2282
|
+
# Move caret to before first visible character on line.
|
2283
|
+
# If already there move to first character on line.
|
2284
|
+
# In either case, extend rectangular selection to new caret position.
|
2285
|
+
def vCHomeRectExtend
|
2286
|
+
sendMessage(2431, 0, 0)
|
2287
|
+
end
|
2288
|
+
|
2289
|
+
# Move caret to last position on line, extending rectangular selection to new caret position.
|
2290
|
+
def lineEndRectExtend
|
2291
|
+
sendMessage(2432, 0, 0)
|
2292
|
+
end
|
2293
|
+
|
2294
|
+
# Move caret one page up, extending rectangular selection to new caret position.
|
2295
|
+
def pageUpRectExtend
|
2296
|
+
sendMessage(2433, 0, 0)
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
# Move caret one page down, extending rectangular selection to new caret position.
|
2300
|
+
def pageDownRectExtend
|
2301
|
+
sendMessage(2434, 0, 0)
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
|
2305
|
+
# Move caret to top of page, or one page up if already at top of page.
|
2306
|
+
def stutteredPageUp
|
2307
|
+
sendMessage(2435, 0, 0)
|
2308
|
+
end
|
2309
|
+
|
2310
|
+
# Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
|
2311
|
+
def stutteredPageUpExtend
|
2312
|
+
sendMessage(2436, 0, 0)
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
# Move caret to bottom of page, or one page down if already at bottom of page.
|
2316
|
+
def stutteredPageDown
|
2317
|
+
sendMessage(2437, 0, 0)
|
2318
|
+
end
|
2319
|
+
|
2320
|
+
# Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
|
2321
|
+
def stutteredPageDownExtend
|
2322
|
+
sendMessage(2438, 0, 0)
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
|
2326
|
+
# Move caret left one word, position cursor at end of word.
|
2327
|
+
def wordLeftEnd
|
2328
|
+
sendMessage(2439, 0, 0)
|
2329
|
+
end
|
2330
|
+
|
2331
|
+
# Move caret left one word, position cursor at end of word, extending selection to new caret position.
|
2332
|
+
def wordLeftEndExtend
|
2333
|
+
sendMessage(2440, 0, 0)
|
2334
|
+
end
|
2335
|
+
|
2336
|
+
# Move caret right one word, position cursor at end of word.
|
2337
|
+
def wordRightEnd
|
2338
|
+
sendMessage(2441, 0, 0)
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
# Move caret right one word, position cursor at end of word, extending selection to new caret position.
|
2342
|
+
def wordRightEndExtend
|
2343
|
+
sendMessage(2442, 0, 0)
|
2344
|
+
end
|
2345
|
+
|
2346
|
+
# Set the set of characters making up whitespace for when moving or selecting by word.
|
2347
|
+
# Should be called after SetWordChars.
|
2348
|
+
def setWhitespaceChars(characters)
|
2349
|
+
sendMessage(2443, 0, characters)
|
2350
|
+
end
|
2351
|
+
|
2352
|
+
# Reset the set of characters for whitespace and word characters to the defaults.
|
2353
|
+
def setCharsDefault
|
2354
|
+
sendMessage(2444, 0, 0)
|
2355
|
+
end
|
2356
|
+
|
2357
|
+
# Get currently selected item position in the auto-completion list
|
2358
|
+
def autoCGetCurrent
|
2359
|
+
sendMessage(2445, 0, 0)
|
2360
|
+
end
|
2361
|
+
|
2362
|
+
# Enlarge the document to a particular size of text bytes.
|
2363
|
+
def allocate(bytes)
|
2364
|
+
sendMessage(2446, bytes, 0)
|
2365
|
+
end
|
2366
|
+
|
2367
|
+
# Returns the target converted to UTF8.
|
2368
|
+
# Return the length in bytes.
|
2369
|
+
def targetAsUTF8
|
2370
|
+
sendMessage(2447, 0, s)
|
2371
|
+
end
|
2372
|
+
|
2373
|
+
# Set the length of the utf8 argument for calling EncodedFromUTF8.
|
2374
|
+
# Set to -1 and the string will be measured to the first nul.
|
2375
|
+
def setLengthForEncode(bytes)
|
2376
|
+
sendMessage(2448, bytes, 0)
|
2377
|
+
end
|
2378
|
+
|
2379
|
+
# Translates a UTF8 string into the document encoding.
|
2380
|
+
# Return the length of the result in bytes.
|
2381
|
+
# On error return 0.
|
2382
|
+
def encodedFromUTF8(utf8)
|
2383
|
+
buffer = "".ljust(utf8)
|
2384
|
+
sendMessage(2449, utf8, buffer)
|
2385
|
+
buffer
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
# Find the position of a column on a line taking into account tabs and
|
2389
|
+
# multi-byte characters. If beyond end of line, return line end position.
|
2390
|
+
def findColumn(line, column)
|
2391
|
+
sendMessage(2456, line, column)
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
# Can the caret preferred x position only be changed by explicit movement commands?
|
2395
|
+
def getCaretSticky
|
2396
|
+
sendMessage(2457, 0, 0) == 1 ? true : false
|
2397
|
+
end
|
2398
|
+
|
2399
|
+
# Stop the caret preferred x position changing when the user types.
|
2400
|
+
def setCaretSticky(useCaretStickyBehaviour)
|
2401
|
+
sendMessage(2458, useCaretStickyBehaviour, 0)
|
2402
|
+
end
|
2403
|
+
|
2404
|
+
# Switch between sticky and non-sticky: meant to be bound to a key.
|
2405
|
+
def toggleCaretSticky
|
2406
|
+
sendMessage(2459, 0, 0)
|
2407
|
+
end
|
2408
|
+
|
2409
|
+
# Enable/Disable convert-on-paste for line endings
|
2410
|
+
def setPasteConvertEndings(convert)
|
2411
|
+
sendMessage(2467, convert, 0)
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
# Get convert-on-paste setting
|
2415
|
+
def getPasteConvertEndings
|
2416
|
+
sendMessage(2468, 0, 0) == 1 ? true : false
|
2417
|
+
end
|
2418
|
+
|
2419
|
+
# Duplicate the selection. If selection empty duplicate the line containing the caret.
|
2420
|
+
def selectionDuplicate
|
2421
|
+
sendMessage(2469, 0, 0)
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
SC_ALPHA_TRANSPARENT = 0
|
2425
|
+
SC_ALPHA_OPAQUE = 255
|
2426
|
+
SC_ALPHA_NOALPHA = 256
|
2427
|
+
|
2428
|
+
# Set background alpha of the caret line.
|
2429
|
+
def setCaretLineBackAlpha(alpha)
|
2430
|
+
sendMessage(2470, alpha, 0)
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
# Get the background alpha of the caret line.
|
2434
|
+
def getCaretLineBackAlpha
|
2435
|
+
sendMessage(2471, 0, 0)
|
2436
|
+
end
|
2437
|
+
|
2438
|
+
# Start notifying the container of all key presses and commands.
|
2439
|
+
def startRecord
|
2440
|
+
sendMessage(3001, 0, 0)
|
2441
|
+
end
|
2442
|
+
|
2443
|
+
# Stop notifying the container of all key presses and commands.
|
2444
|
+
def stopRecord
|
2445
|
+
sendMessage(3002, 0, 0)
|
2446
|
+
end
|
2447
|
+
|
2448
|
+
# Set the lexing language of the document.
|
2449
|
+
def setLexer(lexer)
|
2450
|
+
sendMessage(4001, lexer, 0)
|
2451
|
+
end
|
2452
|
+
|
2453
|
+
# Retrieve the lexing language of the document.
|
2454
|
+
def getLexer
|
2455
|
+
sendMessage(4002, 0, 0)
|
2456
|
+
end
|
2457
|
+
|
2458
|
+
# Colourise a segment of the document using the current lexing language.
|
2459
|
+
def colourise(start, last)
|
2460
|
+
sendMessage(4003, start, last)
|
2461
|
+
end
|
2462
|
+
|
2463
|
+
# Set up a value that may be used by a lexer for some optional feature.
|
2464
|
+
def setProperty(key, value)
|
2465
|
+
sendMessage(4004, key, value)
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
# Maximum value of keywordSet parameter of SetKeyWords.
|
2469
|
+
KEYWORDSET_MAX = 8
|
2470
|
+
|
2471
|
+
# Set up the key words used by the lexer.
|
2472
|
+
def setKeyWords(keywordSet, keyWords)
|
2473
|
+
sendMessage(4005, keywordSet, keyWords)
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
# Set the lexing language of the document based on string name.
|
2477
|
+
def setLexerLanguage(language)
|
2478
|
+
sendMessage(4006, 0, language)
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
# Load a lexer library (dll / so).
|
2482
|
+
def loadLexerLibrary(path)
|
2483
|
+
sendMessage(4007, 0, path)
|
2484
|
+
end
|
2485
|
+
|
2486
|
+
# Retrieve a "property" value previously set with SetProperty.
|
2487
|
+
def getProperty(key)
|
2488
|
+
buffer = "".ljust(key)
|
2489
|
+
sendMessage(4008, key, buffer)
|
2490
|
+
buffer
|
2491
|
+
end
|
2492
|
+
|
2493
|
+
# Retrieve a "property" value previously set with SetProperty,
|
2494
|
+
# with "$()" variable replacement on returned buffer.
|
2495
|
+
def getPropertyExpanded(key)
|
2496
|
+
buffer = "".ljust(key)
|
2497
|
+
sendMessage(4009, key, buffer)
|
2498
|
+
buffer
|
2499
|
+
end
|
2500
|
+
|
2501
|
+
# Retrieve a "property" value previously set with SetProperty,
|
2502
|
+
# interpreted as an int AFTER any "$()" variable replacement.
|
2503
|
+
def getPropertyInt(key)
|
2504
|
+
sendMessage(4010, key, 0)
|
2505
|
+
end
|
2506
|
+
|
2507
|
+
# Retrieve the number of bits the current lexer needs for styling.
|
2508
|
+
def getStyleBitsNeeded
|
2509
|
+
sendMessage(4011, 0, 0)
|
2510
|
+
end
|
2511
|
+
|
2512
|
+
# Notifications
|
2513
|
+
# Type of modification and the action which caused the modification.
|
2514
|
+
# These are defined as a bit mask to make it easy to specify which notifications are wanted.
|
2515
|
+
# One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
|
2516
|
+
SC_MOD_INSERTTEXT = 0x1
|
2517
|
+
SC_MOD_DELETETEXT = 0x2
|
2518
|
+
SC_MOD_CHANGESTYLE = 0x4
|
2519
|
+
SC_MOD_CHANGEFOLD = 0x8
|
2520
|
+
SC_PERFORMED_USER = 0x10
|
2521
|
+
SC_PERFORMED_UNDO = 0x20
|
2522
|
+
SC_PERFORMED_REDO = 0x40
|
2523
|
+
SC_MULTISTEPUNDOREDO = 0x80
|
2524
|
+
SC_LASTSTEPINUNDOREDO = 0x100
|
2525
|
+
SC_MOD_CHANGEMARKER = 0x200
|
2526
|
+
SC_MOD_BEFOREINSERT = 0x400
|
2527
|
+
SC_MOD_BEFOREDELETE = 0x800
|
2528
|
+
SC_MULTILINEUNDOREDO = 0x1000
|
2529
|
+
SC_MODEVENTMASKALL = 0x1FFF
|
2530
|
+
|
2531
|
+
# For compatibility, these go through the COMMAND notification rather than NOTIFY
|
2532
|
+
# and should have had exactly the same values as the EN_* constants.
|
2533
|
+
# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*
|
2534
|
+
# As clients depend on these constants, this will not be changed.
|
2535
|
+
SCEN_CHANGE = 768
|
2536
|
+
SCEN_SETFOCUS = 512
|
2537
|
+
SCEN_KILLFOCUS = 256
|
2538
|
+
|
2539
|
+
# Symbolic key codes and modifier flags.
|
2540
|
+
# ASCII and other printable characters below 256.
|
2541
|
+
# Extended keys above 300.
|
2542
|
+
|
2543
|
+
SCK_DOWN = 300
|
2544
|
+
SCK_UP = 301
|
2545
|
+
SCK_LEFT = 302
|
2546
|
+
SCK_RIGHT = 303
|
2547
|
+
SCK_HOME = 304
|
2548
|
+
SCK_END = 305
|
2549
|
+
SCK_PRIOR = 306
|
2550
|
+
SCK_NEXT = 307
|
2551
|
+
SCK_DELETE = 308
|
2552
|
+
SCK_INSERT = 309
|
2553
|
+
SCK_ESCAPE = 7
|
2554
|
+
SCK_BACK = 8
|
2555
|
+
SCK_TAB = 9
|
2556
|
+
SCK_RETURN = 13
|
2557
|
+
SCK_ADD = 310
|
2558
|
+
SCK_SUBTRACT = 311
|
2559
|
+
SCK_DIVIDE = 312
|
2560
|
+
|
2561
|
+
SCMOD_NORM = 0
|
2562
|
+
SCMOD_SHIFT = 1
|
2563
|
+
SCMOD_CTRL = 2
|
2564
|
+
SCMOD_ALT = 4
|
2565
|
+
|
2566
|
+
# For SciLexer.h
|
2567
|
+
SCLEX_CONTAINER = 0
|
2568
|
+
SCLEX_NULL = 1
|
2569
|
+
SCLEX_PYTHON = 2
|
2570
|
+
SCLEX_CPP = 3
|
2571
|
+
SCLEX_HTML = 4
|
2572
|
+
SCLEX_XML = 5
|
2573
|
+
SCLEX_PERL = 6
|
2574
|
+
SCLEX_SQL = 7
|
2575
|
+
SCLEX_VB = 8
|
2576
|
+
SCLEX_PROPERTIES = 9
|
2577
|
+
SCLEX_ERRORLIST = 10
|
2578
|
+
SCLEX_MAKEFILE = 11
|
2579
|
+
SCLEX_BATCH = 12
|
2580
|
+
SCLEX_XCODE = 13
|
2581
|
+
SCLEX_LATEX = 14
|
2582
|
+
SCLEX_LUA = 15
|
2583
|
+
SCLEX_DIFF = 16
|
2584
|
+
SCLEX_CONF = 17
|
2585
|
+
SCLEX_PASCAL = 18
|
2586
|
+
SCLEX_AVE = 19
|
2587
|
+
SCLEX_ADA = 20
|
2588
|
+
SCLEX_LISP = 21
|
2589
|
+
SCLEX_RUBY = 22
|
2590
|
+
SCLEX_EIFFEL = 23
|
2591
|
+
SCLEX_EIFFELKW = 24
|
2592
|
+
SCLEX_TCL = 25
|
2593
|
+
SCLEX_NNCRONTAB = 26
|
2594
|
+
SCLEX_BULLANT = 27
|
2595
|
+
SCLEX_VBSCRIPT = 28
|
2596
|
+
SCLEX_BAAN = 31
|
2597
|
+
SCLEX_MATLAB = 32
|
2598
|
+
SCLEX_SCRIPTOL = 33
|
2599
|
+
SCLEX_ASM = 34
|
2600
|
+
SCLEX_CPPNOCASE = 35
|
2601
|
+
SCLEX_FORTRAN = 36
|
2602
|
+
SCLEX_F77 = 37
|
2603
|
+
SCLEX_CSS = 38
|
2604
|
+
SCLEX_POV = 39
|
2605
|
+
SCLEX_LOUT = 40
|
2606
|
+
SCLEX_ESCRIPT = 41
|
2607
|
+
SCLEX_PS = 42
|
2608
|
+
SCLEX_NSIS = 43
|
2609
|
+
SCLEX_MMIXAL = 44
|
2610
|
+
SCLEX_CLW = 45
|
2611
|
+
SCLEX_CLWNOCASE = 46
|
2612
|
+
SCLEX_LOT = 47
|
2613
|
+
SCLEX_YAML = 48
|
2614
|
+
SCLEX_TEX = 49
|
2615
|
+
SCLEX_METAPOST = 50
|
2616
|
+
SCLEX_POWERBASIC = 51
|
2617
|
+
SCLEX_FORTH = 52
|
2618
|
+
SCLEX_ERLANG = 53
|
2619
|
+
SCLEX_OCTAVE = 54
|
2620
|
+
SCLEX_MSSQL = 55
|
2621
|
+
SCLEX_VERILOG = 56
|
2622
|
+
SCLEX_KIX = 57
|
2623
|
+
SCLEX_GUI4CLI = 58
|
2624
|
+
SCLEX_SPECMAN = 59
|
2625
|
+
SCLEX_AU3 = 60
|
2626
|
+
SCLEX_APDL = 61
|
2627
|
+
SCLEX_BASH = 62
|
2628
|
+
SCLEX_ASN1 = 63
|
2629
|
+
SCLEX_VHDL = 64
|
2630
|
+
SCLEX_CAML = 65
|
2631
|
+
SCLEX_BLITZBASIC = 66
|
2632
|
+
SCLEX_PUREBASIC = 67
|
2633
|
+
SCLEX_HASKELL = 68
|
2634
|
+
SCLEX_PHPSCRIPT = 69
|
2635
|
+
SCLEX_TADS3 = 70
|
2636
|
+
SCLEX_REBOL = 71
|
2637
|
+
SCLEX_SMALLTALK = 72
|
2638
|
+
SCLEX_FLAGSHIP = 73
|
2639
|
+
SCLEX_CSOUND = 74
|
2640
|
+
SCLEX_FREEBASIC = 75
|
2641
|
+
SCLEX_INNOSETUP = 76
|
2642
|
+
SCLEX_OPAL = 77
|
2643
|
+
SCLEX_SPICE = 78
|
2644
|
+
|
2645
|
+
# When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
|
2646
|
+
# value assigned in sequence from SCLEX_AUTOMATIC+1.
|
2647
|
+
SCLEX_AUTOMATIC = 1000
|
2648
|
+
# Lexical states for SCLEX_PYTHON
|
2649
|
+
SCE_P_DEFAULT = 0
|
2650
|
+
SCE_P_COMMENTLINE = 1
|
2651
|
+
SCE_P_NUMBER = 2
|
2652
|
+
SCE_P_STRING = 3
|
2653
|
+
SCE_P_CHARACTER = 4
|
2654
|
+
SCE_P_WORD = 5
|
2655
|
+
SCE_P_TRIPLE = 6
|
2656
|
+
SCE_P_TRIPLEDOUBLE = 7
|
2657
|
+
SCE_P_CLASSNAME = 8
|
2658
|
+
SCE_P_DEFNAME = 9
|
2659
|
+
SCE_P_OPERATOR = 10
|
2660
|
+
SCE_P_IDENTIFIER = 11
|
2661
|
+
SCE_P_COMMENTBLOCK = 12
|
2662
|
+
SCE_P_STRINGEOL = 13
|
2663
|
+
SCE_P_WORD2 = 14
|
2664
|
+
SCE_P_DECORATOR = 15
|
2665
|
+
# Lexical states for SCLEX_CPP
|
2666
|
+
SCE_C_DEFAULT = 0
|
2667
|
+
SCE_C_COMMENT = 1
|
2668
|
+
SCE_C_COMMENTLINE = 2
|
2669
|
+
SCE_C_COMMENTDOC = 3
|
2670
|
+
SCE_C_NUMBER = 4
|
2671
|
+
SCE_C_WORD = 5
|
2672
|
+
SCE_C_STRING = 6
|
2673
|
+
SCE_C_CHARACTER = 7
|
2674
|
+
SCE_C_UUID = 8
|
2675
|
+
SCE_C_PREPROCESSOR = 9
|
2676
|
+
SCE_C_OPERATOR = 10
|
2677
|
+
SCE_C_IDENTIFIER = 11
|
2678
|
+
SCE_C_STRINGEOL = 12
|
2679
|
+
SCE_C_VERBATIM = 13
|
2680
|
+
SCE_C_REGEX = 14
|
2681
|
+
SCE_C_COMMENTLINEDOC = 15
|
2682
|
+
SCE_C_WORD2 = 16
|
2683
|
+
SCE_C_COMMENTDOCKEYWORD = 17
|
2684
|
+
SCE_C_COMMENTDOCKEYWORDERROR = 18
|
2685
|
+
SCE_C_GLOBALCLASS = 19
|
2686
|
+
# Lexical states for SCLEX_TCL
|
2687
|
+
SCE_TCL_DEFAULT = 0
|
2688
|
+
SCE_TCL_COMMENT = 1
|
2689
|
+
SCE_TCL_COMMENTLINE = 2
|
2690
|
+
SCE_TCL_NUMBER = 3
|
2691
|
+
SCE_TCL_WORD_IN_QUOTE = 4
|
2692
|
+
SCE_TCL_IN_QUOTE = 5
|
2693
|
+
SCE_TCL_OPERATOR = 6
|
2694
|
+
SCE_TCL_IDENTIFIER = 7
|
2695
|
+
SCE_TCL_SUBSTITUTION = 8
|
2696
|
+
SCE_TCL_SUB_BRACE = 9
|
2697
|
+
SCE_TCL_MODIFIER = 10
|
2698
|
+
SCE_TCL_EXPAND = 11
|
2699
|
+
SCE_TCL_WORD = 12
|
2700
|
+
SCE_TCL_WORD2 = 13
|
2701
|
+
SCE_TCL_WORD3 = 14
|
2702
|
+
SCE_TCL_WORD4 = 15
|
2703
|
+
SCE_TCL_WORD5 = 16
|
2704
|
+
SCE_TCL_WORD6 = 17
|
2705
|
+
SCE_TCL_WORD7 = 18
|
2706
|
+
SCE_TCL_WORD8 = 19
|
2707
|
+
SCE_TCL_COMMENT_BOX = 20
|
2708
|
+
SCE_TCL_BLOCK_COMMENT = 21
|
2709
|
+
# Lexical states for SCLEX_HTML, SCLEX_XML
|
2710
|
+
SCE_H_DEFAULT = 0
|
2711
|
+
SCE_H_TAG = 1
|
2712
|
+
SCE_H_TAGUNKNOWN = 2
|
2713
|
+
SCE_H_ATTRIBUTE = 3
|
2714
|
+
SCE_H_ATTRIBUTEUNKNOWN = 4
|
2715
|
+
SCE_H_NUMBER = 5
|
2716
|
+
SCE_H_DOUBLESTRING = 6
|
2717
|
+
SCE_H_SINGLESTRING = 7
|
2718
|
+
SCE_H_OTHER = 8
|
2719
|
+
SCE_H_COMMENT = 9
|
2720
|
+
SCE_H_ENTITY = 10
|
2721
|
+
# XML and ASP
|
2722
|
+
SCE_H_TAGEND = 11
|
2723
|
+
SCE_H_XMLSTART = 12
|
2724
|
+
SCE_H_XMLEND = 13
|
2725
|
+
SCE_H_SCRIPT = 14
|
2726
|
+
SCE_H_ASP = 15
|
2727
|
+
SCE_H_ASPAT = 16
|
2728
|
+
SCE_H_CDATA = 17
|
2729
|
+
SCE_H_QUESTION = 18
|
2730
|
+
# More HTML
|
2731
|
+
SCE_H_VALUE = 19
|
2732
|
+
# X-Code
|
2733
|
+
SCE_H_XCCOMMENT = 20
|
2734
|
+
# SGML
|
2735
|
+
SCE_H_SGML_DEFAULT = 21
|
2736
|
+
SCE_H_SGML_COMMAND = 22
|
2737
|
+
SCE_H_SGML_1ST_PARAM = 23
|
2738
|
+
SCE_H_SGML_DOUBLESTRING = 24
|
2739
|
+
SCE_H_SGML_SIMPLESTRING = 25
|
2740
|
+
SCE_H_SGML_ERROR = 26
|
2741
|
+
SCE_H_SGML_SPECIAL = 27
|
2742
|
+
SCE_H_SGML_ENTITY = 28
|
2743
|
+
SCE_H_SGML_COMMENT = 29
|
2744
|
+
SCE_H_SGML_1ST_PARAM_COMMENT = 30
|
2745
|
+
SCE_H_SGML_BLOCK_DEFAULT = 31
|
2746
|
+
# Embedded Javascript
|
2747
|
+
SCE_HJ_START = 40
|
2748
|
+
SCE_HJ_DEFAULT = 41
|
2749
|
+
SCE_HJ_COMMENT = 42
|
2750
|
+
SCE_HJ_COMMENTLINE = 43
|
2751
|
+
SCE_HJ_COMMENTDOC = 44
|
2752
|
+
SCE_HJ_NUMBER = 45
|
2753
|
+
SCE_HJ_WORD = 46
|
2754
|
+
SCE_HJ_KEYWORD = 47
|
2755
|
+
SCE_HJ_DOUBLESTRING = 48
|
2756
|
+
SCE_HJ_SINGLESTRING = 49
|
2757
|
+
SCE_HJ_SYMBOLS = 50
|
2758
|
+
SCE_HJ_STRINGEOL = 51
|
2759
|
+
SCE_HJ_REGEX = 52
|
2760
|
+
# ASP Javascript
|
2761
|
+
SCE_HJA_START = 55
|
2762
|
+
SCE_HJA_DEFAULT = 56
|
2763
|
+
SCE_HJA_COMMENT = 57
|
2764
|
+
SCE_HJA_COMMENTLINE = 58
|
2765
|
+
SCE_HJA_COMMENTDOC = 59
|
2766
|
+
SCE_HJA_NUMBER = 60
|
2767
|
+
SCE_HJA_WORD = 61
|
2768
|
+
SCE_HJA_KEYWORD = 62
|
2769
|
+
SCE_HJA_DOUBLESTRING = 63
|
2770
|
+
SCE_HJA_SINGLESTRING = 64
|
2771
|
+
SCE_HJA_SYMBOLS = 65
|
2772
|
+
SCE_HJA_STRINGEOL = 66
|
2773
|
+
SCE_HJA_REGEX = 67
|
2774
|
+
# Embedded VBScript
|
2775
|
+
SCE_HB_START = 70
|
2776
|
+
SCE_HB_DEFAULT = 71
|
2777
|
+
SCE_HB_COMMENTLINE = 72
|
2778
|
+
SCE_HB_NUMBER = 73
|
2779
|
+
SCE_HB_WORD = 74
|
2780
|
+
SCE_HB_STRING = 75
|
2781
|
+
SCE_HB_IDENTIFIER = 76
|
2782
|
+
SCE_HB_STRINGEOL = 77
|
2783
|
+
# ASP VBScript
|
2784
|
+
SCE_HBA_START = 80
|
2785
|
+
SCE_HBA_DEFAULT = 81
|
2786
|
+
SCE_HBA_COMMENTLINE = 82
|
2787
|
+
SCE_HBA_NUMBER = 83
|
2788
|
+
SCE_HBA_WORD = 84
|
2789
|
+
SCE_HBA_STRING = 85
|
2790
|
+
SCE_HBA_IDENTIFIER = 86
|
2791
|
+
SCE_HBA_STRINGEOL = 87
|
2792
|
+
# Embedded Python
|
2793
|
+
SCE_HP_START = 90
|
2794
|
+
SCE_HP_DEFAULT = 91
|
2795
|
+
SCE_HP_COMMENTLINE = 92
|
2796
|
+
SCE_HP_NUMBER = 93
|
2797
|
+
SCE_HP_STRING = 94
|
2798
|
+
SCE_HP_CHARACTER = 95
|
2799
|
+
SCE_HP_WORD = 96
|
2800
|
+
SCE_HP_TRIPLE = 97
|
2801
|
+
SCE_HP_TRIPLEDOUBLE = 98
|
2802
|
+
SCE_HP_CLASSNAME = 99
|
2803
|
+
SCE_HP_DEFNAME = 100
|
2804
|
+
SCE_HP_OPERATOR = 101
|
2805
|
+
SCE_HP_IDENTIFIER = 102
|
2806
|
+
# PHP
|
2807
|
+
SCE_HPHP_COMPLEX_VARIABLE = 104
|
2808
|
+
# ASP Python
|
2809
|
+
SCE_HPA_START = 105
|
2810
|
+
SCE_HPA_DEFAULT = 106
|
2811
|
+
SCE_HPA_COMMENTLINE = 107
|
2812
|
+
SCE_HPA_NUMBER = 108
|
2813
|
+
SCE_HPA_STRING = 109
|
2814
|
+
SCE_HPA_CHARACTER = 110
|
2815
|
+
SCE_HPA_WORD = 111
|
2816
|
+
SCE_HPA_TRIPLE = 112
|
2817
|
+
SCE_HPA_TRIPLEDOUBLE = 113
|
2818
|
+
SCE_HPA_CLASSNAME = 114
|
2819
|
+
SCE_HPA_DEFNAME = 115
|
2820
|
+
SCE_HPA_OPERATOR = 116
|
2821
|
+
SCE_HPA_IDENTIFIER = 117
|
2822
|
+
# PHP
|
2823
|
+
SCE_HPHP_DEFAULT = 118
|
2824
|
+
SCE_HPHP_HSTRING = 119
|
2825
|
+
SCE_HPHP_SIMPLESTRING = 120
|
2826
|
+
SCE_HPHP_WORD = 121
|
2827
|
+
SCE_HPHP_NUMBER = 122
|
2828
|
+
SCE_HPHP_VARIABLE = 123
|
2829
|
+
SCE_HPHP_COMMENT = 124
|
2830
|
+
SCE_HPHP_COMMENTLINE = 125
|
2831
|
+
SCE_HPHP_HSTRING_VARIABLE = 126
|
2832
|
+
SCE_HPHP_OPERATOR = 127
|
2833
|
+
# Lexical states for SCLEX_PERL
|
2834
|
+
SCE_PL_DEFAULT = 0
|
2835
|
+
SCE_PL_ERROR = 1
|
2836
|
+
SCE_PL_COMMENTLINE = 2
|
2837
|
+
SCE_PL_POD = 3
|
2838
|
+
SCE_PL_NUMBER = 4
|
2839
|
+
SCE_PL_WORD = 5
|
2840
|
+
SCE_PL_STRING = 6
|
2841
|
+
SCE_PL_CHARACTER = 7
|
2842
|
+
SCE_PL_PUNCTUATION = 8
|
2843
|
+
SCE_PL_PREPROCESSOR = 9
|
2844
|
+
SCE_PL_OPERATOR = 10
|
2845
|
+
SCE_PL_IDENTIFIER = 11
|
2846
|
+
SCE_PL_SCALAR = 12
|
2847
|
+
SCE_PL_ARRAY = 13
|
2848
|
+
SCE_PL_HASH = 14
|
2849
|
+
SCE_PL_SYMBOLTABLE = 15
|
2850
|
+
SCE_PL_VARIABLE_INDEXER = 16
|
2851
|
+
SCE_PL_REGEX = 17
|
2852
|
+
SCE_PL_REGSUBST = 18
|
2853
|
+
SCE_PL_LONGQUOTE = 19
|
2854
|
+
SCE_PL_BACKTICKS = 20
|
2855
|
+
SCE_PL_DATASECTION = 21
|
2856
|
+
SCE_PL_HERE_DELIM = 22
|
2857
|
+
SCE_PL_HERE_Q = 23
|
2858
|
+
SCE_PL_HERE_QQ = 24
|
2859
|
+
SCE_PL_HERE_QX = 25
|
2860
|
+
SCE_PL_STRING_Q = 26
|
2861
|
+
SCE_PL_STRING_QQ = 27
|
2862
|
+
SCE_PL_STRING_QX = 28
|
2863
|
+
SCE_PL_STRING_QR = 29
|
2864
|
+
SCE_PL_STRING_QW = 30
|
2865
|
+
SCE_PL_POD_VERB = 31
|
2866
|
+
# Lexical states for SCLEX_RUBY
|
2867
|
+
SCE_RB_DEFAULT = 0
|
2868
|
+
SCE_RB_ERROR = 1
|
2869
|
+
SCE_RB_COMMENTLINE = 2
|
2870
|
+
SCE_RB_POD = 3
|
2871
|
+
SCE_RB_NUMBER = 4
|
2872
|
+
SCE_RB_WORD = 5
|
2873
|
+
SCE_RB_STRING = 6
|
2874
|
+
SCE_RB_CHARACTER = 7
|
2875
|
+
SCE_RB_CLASSNAME = 8
|
2876
|
+
SCE_RB_DEFNAME = 9
|
2877
|
+
SCE_RB_OPERATOR = 10
|
2878
|
+
SCE_RB_IDENTIFIER = 11
|
2879
|
+
SCE_RB_REGEX = 12
|
2880
|
+
SCE_RB_GLOBAL = 13
|
2881
|
+
SCE_RB_SYMBOL = 14
|
2882
|
+
SCE_RB_MODULE_NAME = 15
|
2883
|
+
SCE_RB_INSTANCE_VAR = 16
|
2884
|
+
SCE_RB_CLASS_VAR = 17
|
2885
|
+
SCE_RB_BACKTICKS = 18
|
2886
|
+
SCE_RB_DATASECTION = 19
|
2887
|
+
SCE_RB_HERE_DELIM = 20
|
2888
|
+
SCE_RB_HERE_Q = 21
|
2889
|
+
SCE_RB_HERE_QQ = 22
|
2890
|
+
SCE_RB_HERE_QX = 23
|
2891
|
+
SCE_RB_STRING_Q = 24
|
2892
|
+
SCE_RB_STRING_QQ = 25
|
2893
|
+
SCE_RB_STRING_QX = 26
|
2894
|
+
SCE_RB_STRING_QR = 27
|
2895
|
+
SCE_RB_STRING_QW = 28
|
2896
|
+
SCE_RB_WORD_DEMOTED = 29
|
2897
|
+
SCE_RB_STDIN = 30
|
2898
|
+
SCE_RB_STDOUT = 31
|
2899
|
+
SCE_RB_STDERR = 40
|
2900
|
+
SCE_RB_UPPER_BOUND = 41
|
2901
|
+
# Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
|
2902
|
+
SCE_B_DEFAULT = 0
|
2903
|
+
SCE_B_COMMENT = 1
|
2904
|
+
SCE_B_NUMBER = 2
|
2905
|
+
SCE_B_KEYWORD = 3
|
2906
|
+
SCE_B_STRING = 4
|
2907
|
+
SCE_B_PREPROCESSOR = 5
|
2908
|
+
SCE_B_OPERATOR = 6
|
2909
|
+
SCE_B_IDENTIFIER = 7
|
2910
|
+
SCE_B_DATE = 8
|
2911
|
+
SCE_B_STRINGEOL = 9
|
2912
|
+
SCE_B_KEYWORD2 = 10
|
2913
|
+
SCE_B_KEYWORD3 = 11
|
2914
|
+
SCE_B_KEYWORD4 = 12
|
2915
|
+
SCE_B_CONSTANT = 13
|
2916
|
+
SCE_B_ASM = 14
|
2917
|
+
SCE_B_LABEL = 15
|
2918
|
+
SCE_B_ERROR = 16
|
2919
|
+
SCE_B_HEXNUMBER = 17
|
2920
|
+
SCE_B_BINNUMBER = 18
|
2921
|
+
# Lexical states for SCLEX_PROPERTIES
|
2922
|
+
SCE_PROPS_DEFAULT = 0
|
2923
|
+
SCE_PROPS_COMMENT = 1
|
2924
|
+
SCE_PROPS_SECTION = 2
|
2925
|
+
SCE_PROPS_ASSIGNMENT = 3
|
2926
|
+
SCE_PROPS_DEFVAL = 4
|
2927
|
+
SCE_PROPS_KEY = 5
|
2928
|
+
# Lexical states for SCLEX_LATEX
|
2929
|
+
SCE_L_DEFAULT = 0
|
2930
|
+
SCE_L_COMMAND = 1
|
2931
|
+
SCE_L_TAG = 2
|
2932
|
+
SCE_L_MATH = 3
|
2933
|
+
SCE_L_COMMENT = 4
|
2934
|
+
# Lexical states for SCLEX_LUA
|
2935
|
+
SCE_LUA_DEFAULT = 0
|
2936
|
+
SCE_LUA_COMMENT = 1
|
2937
|
+
SCE_LUA_COMMENTLINE = 2
|
2938
|
+
SCE_LUA_COMMENTDOC = 3
|
2939
|
+
SCE_LUA_NUMBER = 4
|
2940
|
+
SCE_LUA_WORD = 5
|
2941
|
+
SCE_LUA_STRING = 6
|
2942
|
+
SCE_LUA_CHARACTER = 7
|
2943
|
+
SCE_LUA_LITERALSTRING = 8
|
2944
|
+
SCE_LUA_PREPROCESSOR = 9
|
2945
|
+
SCE_LUA_OPERATOR = 10
|
2946
|
+
SCE_LUA_IDENTIFIER = 11
|
2947
|
+
SCE_LUA_STRINGEOL = 12
|
2948
|
+
SCE_LUA_WORD2 = 13
|
2949
|
+
SCE_LUA_WORD3 = 14
|
2950
|
+
SCE_LUA_WORD4 = 15
|
2951
|
+
SCE_LUA_WORD5 = 16
|
2952
|
+
SCE_LUA_WORD6 = 17
|
2953
|
+
SCE_LUA_WORD7 = 18
|
2954
|
+
SCE_LUA_WORD8 = 19
|
2955
|
+
# Lexical states for SCLEX_ERRORLIST
|
2956
|
+
SCE_ERR_DEFAULT = 0
|
2957
|
+
SCE_ERR_PYTHON = 1
|
2958
|
+
SCE_ERR_GCC = 2
|
2959
|
+
SCE_ERR_MS = 3
|
2960
|
+
SCE_ERR_CMD = 4
|
2961
|
+
SCE_ERR_BORLAND = 5
|
2962
|
+
SCE_ERR_PERL = 6
|
2963
|
+
SCE_ERR_NET = 7
|
2964
|
+
SCE_ERR_LUA = 8
|
2965
|
+
SCE_ERR_CTAG = 9
|
2966
|
+
SCE_ERR_DIFF_CHANGED = 10
|
2967
|
+
SCE_ERR_DIFF_ADDITION = 11
|
2968
|
+
SCE_ERR_DIFF_DELETION = 12
|
2969
|
+
SCE_ERR_DIFF_MESSAGE = 13
|
2970
|
+
SCE_ERR_PHP = 14
|
2971
|
+
SCE_ERR_ELF = 15
|
2972
|
+
SCE_ERR_IFC = 16
|
2973
|
+
SCE_ERR_IFORT = 17
|
2974
|
+
SCE_ERR_ABSF = 18
|
2975
|
+
SCE_ERR_TIDY = 19
|
2976
|
+
SCE_ERR_JAVA_STACK = 20
|
2977
|
+
# Lexical states for SCLEX_BATCH
|
2978
|
+
SCE_BAT_DEFAULT = 0
|
2979
|
+
SCE_BAT_COMMENT = 1
|
2980
|
+
SCE_BAT_WORD = 2
|
2981
|
+
SCE_BAT_LABEL = 3
|
2982
|
+
SCE_BAT_HIDE = 4
|
2983
|
+
SCE_BAT_COMMAND = 5
|
2984
|
+
SCE_BAT_IDENTIFIER = 6
|
2985
|
+
SCE_BAT_OPERATOR = 7
|
2986
|
+
# Lexical states for SCLEX_MAKEFILE
|
2987
|
+
SCE_MAKE_DEFAULT = 0
|
2988
|
+
SCE_MAKE_COMMENT = 1
|
2989
|
+
SCE_MAKE_PREPROCESSOR = 2
|
2990
|
+
SCE_MAKE_IDENTIFIER = 3
|
2991
|
+
SCE_MAKE_OPERATOR = 4
|
2992
|
+
SCE_MAKE_TARGET = 5
|
2993
|
+
SCE_MAKE_IDEOL = 9
|
2994
|
+
# Lexical states for SCLEX_DIFF
|
2995
|
+
SCE_DIFF_DEFAULT = 0
|
2996
|
+
SCE_DIFF_COMMENT = 1
|
2997
|
+
SCE_DIFF_COMMAND = 2
|
2998
|
+
SCE_DIFF_HEADER = 3
|
2999
|
+
SCE_DIFF_POSITION = 4
|
3000
|
+
SCE_DIFF_DELETED = 5
|
3001
|
+
SCE_DIFF_ADDED = 6
|
3002
|
+
# Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
|
3003
|
+
SCE_CONF_DEFAULT = 0
|
3004
|
+
SCE_CONF_COMMENT = 1
|
3005
|
+
SCE_CONF_NUMBER = 2
|
3006
|
+
SCE_CONF_IDENTIFIER = 3
|
3007
|
+
SCE_CONF_EXTENSION = 4
|
3008
|
+
SCE_CONF_PARAMETER = 5
|
3009
|
+
SCE_CONF_STRING = 6
|
3010
|
+
SCE_CONF_OPERATOR = 7
|
3011
|
+
SCE_CONF_IP = 8
|
3012
|
+
SCE_CONF_DIRECTIVE = 9
|
3013
|
+
# Lexical states for SCLEX_AVE, Avenue
|
3014
|
+
SCE_AVE_DEFAULT = 0
|
3015
|
+
SCE_AVE_COMMENT = 1
|
3016
|
+
SCE_AVE_NUMBER = 2
|
3017
|
+
SCE_AVE_WORD = 3
|
3018
|
+
SCE_AVE_STRING = 6
|
3019
|
+
SCE_AVE_ENUM = 7
|
3020
|
+
SCE_AVE_STRINGEOL = 8
|
3021
|
+
SCE_AVE_IDENTIFIER = 9
|
3022
|
+
SCE_AVE_OPERATOR = 10
|
3023
|
+
SCE_AVE_WORD1 = 11
|
3024
|
+
SCE_AVE_WORD2 = 12
|
3025
|
+
SCE_AVE_WORD3 = 13
|
3026
|
+
SCE_AVE_WORD4 = 14
|
3027
|
+
SCE_AVE_WORD5 = 15
|
3028
|
+
SCE_AVE_WORD6 = 16
|
3029
|
+
# Lexical states for SCLEX_ADA
|
3030
|
+
SCE_ADA_DEFAULT = 0
|
3031
|
+
SCE_ADA_WORD = 1
|
3032
|
+
SCE_ADA_IDENTIFIER = 2
|
3033
|
+
SCE_ADA_NUMBER = 3
|
3034
|
+
SCE_ADA_DELIMITER = 4
|
3035
|
+
SCE_ADA_CHARACTER = 5
|
3036
|
+
SCE_ADA_CHARACTEREOL = 6
|
3037
|
+
SCE_ADA_STRING = 7
|
3038
|
+
SCE_ADA_STRINGEOL = 8
|
3039
|
+
SCE_ADA_LABEL = 9
|
3040
|
+
SCE_ADA_COMMENTLINE = 10
|
3041
|
+
SCE_ADA_ILLEGAL = 11
|
3042
|
+
# Lexical states for SCLEX_BAAN
|
3043
|
+
SCE_BAAN_DEFAULT = 0
|
3044
|
+
SCE_BAAN_COMMENT = 1
|
3045
|
+
SCE_BAAN_COMMENTDOC = 2
|
3046
|
+
SCE_BAAN_NUMBER = 3
|
3047
|
+
SCE_BAAN_WORD = 4
|
3048
|
+
SCE_BAAN_STRING = 5
|
3049
|
+
SCE_BAAN_PREPROCESSOR = 6
|
3050
|
+
SCE_BAAN_OPERATOR = 7
|
3051
|
+
SCE_BAAN_IDENTIFIER = 8
|
3052
|
+
SCE_BAAN_STRINGEOL = 9
|
3053
|
+
SCE_BAAN_WORD2 = 10
|
3054
|
+
# Lexical states for SCLEX_LISP
|
3055
|
+
SCE_LISP_DEFAULT = 0
|
3056
|
+
SCE_LISP_COMMENT = 1
|
3057
|
+
SCE_LISP_NUMBER = 2
|
3058
|
+
SCE_LISP_KEYWORD = 3
|
3059
|
+
SCE_LISP_KEYWORD_KW = 4
|
3060
|
+
SCE_LISP_SYMBOL = 5
|
3061
|
+
SCE_LISP_STRING = 6
|
3062
|
+
SCE_LISP_STRINGEOL = 8
|
3063
|
+
SCE_LISP_IDENTIFIER = 9
|
3064
|
+
SCE_LISP_OPERATOR = 10
|
3065
|
+
SCE_LISP_SPECIAL = 11
|
3066
|
+
SCE_LISP_MULTI_COMMENT = 12
|
3067
|
+
# Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
|
3068
|
+
SCE_EIFFEL_DEFAULT = 0
|
3069
|
+
SCE_EIFFEL_COMMENTLINE = 1
|
3070
|
+
SCE_EIFFEL_NUMBER = 2
|
3071
|
+
SCE_EIFFEL_WORD = 3
|
3072
|
+
SCE_EIFFEL_STRING = 4
|
3073
|
+
SCE_EIFFEL_CHARACTER = 5
|
3074
|
+
SCE_EIFFEL_OPERATOR = 6
|
3075
|
+
SCE_EIFFEL_IDENTIFIER = 7
|
3076
|
+
SCE_EIFFEL_STRINGEOL = 8
|
3077
|
+
# Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
|
3078
|
+
SCE_NNCRONTAB_DEFAULT = 0
|
3079
|
+
SCE_NNCRONTAB_COMMENT = 1
|
3080
|
+
SCE_NNCRONTAB_TASK = 2
|
3081
|
+
SCE_NNCRONTAB_SECTION = 3
|
3082
|
+
SCE_NNCRONTAB_KEYWORD = 4
|
3083
|
+
SCE_NNCRONTAB_MODIFIER = 5
|
3084
|
+
SCE_NNCRONTAB_ASTERISK = 6
|
3085
|
+
SCE_NNCRONTAB_NUMBER = 7
|
3086
|
+
SCE_NNCRONTAB_STRING = 8
|
3087
|
+
SCE_NNCRONTAB_ENVIRONMENT = 9
|
3088
|
+
SCE_NNCRONTAB_IDENTIFIER = 10
|
3089
|
+
# Lexical states for SCLEX_FORTH (Forth Lexer)
|
3090
|
+
SCE_FORTH_DEFAULT = 0
|
3091
|
+
SCE_FORTH_COMMENT = 1
|
3092
|
+
SCE_FORTH_COMMENT_ML = 2
|
3093
|
+
SCE_FORTH_IDENTIFIER = 3
|
3094
|
+
SCE_FORTH_CONTROL = 4
|
3095
|
+
SCE_FORTH_KEYWORD = 5
|
3096
|
+
SCE_FORTH_DEFWORD = 6
|
3097
|
+
SCE_FORTH_PREWORD1 = 7
|
3098
|
+
SCE_FORTH_PREWORD2 = 8
|
3099
|
+
SCE_FORTH_NUMBER = 9
|
3100
|
+
SCE_FORTH_STRING = 10
|
3101
|
+
SCE_FORTH_LOCALE = 11
|
3102
|
+
# Lexical states for SCLEX_MATLAB
|
3103
|
+
SCE_MATLAB_DEFAULT = 0
|
3104
|
+
SCE_MATLAB_COMMENT = 1
|
3105
|
+
SCE_MATLAB_COMMAND = 2
|
3106
|
+
SCE_MATLAB_NUMBER = 3
|
3107
|
+
SCE_MATLAB_KEYWORD = 4
|
3108
|
+
# single quoted string
|
3109
|
+
SCE_MATLAB_STRING = 5
|
3110
|
+
SCE_MATLAB_OPERATOR = 6
|
3111
|
+
SCE_MATLAB_IDENTIFIER = 7
|
3112
|
+
SCE_MATLAB_DOUBLEQUOTESTRING = 8
|
3113
|
+
# Lexical states for SCLEX_SCRIPTOL
|
3114
|
+
SCE_SCRIPTOL_DEFAULT = 0
|
3115
|
+
SCE_SCRIPTOL_WHITE = 1
|
3116
|
+
SCE_SCRIPTOL_COMMENTLINE = 2
|
3117
|
+
SCE_SCRIPTOL_PERSISTENT = 3
|
3118
|
+
SCE_SCRIPTOL_CSTYLE = 4
|
3119
|
+
SCE_SCRIPTOL_COMMENTBLOCK = 5
|
3120
|
+
SCE_SCRIPTOL_NUMBER = 6
|
3121
|
+
SCE_SCRIPTOL_STRING = 7
|
3122
|
+
SCE_SCRIPTOL_CHARACTER = 8
|
3123
|
+
SCE_SCRIPTOL_STRINGEOL = 9
|
3124
|
+
SCE_SCRIPTOL_KEYWORD = 10
|
3125
|
+
SCE_SCRIPTOL_OPERATOR = 11
|
3126
|
+
SCE_SCRIPTOL_IDENTIFIER = 12
|
3127
|
+
SCE_SCRIPTOL_TRIPLE = 13
|
3128
|
+
SCE_SCRIPTOL_CLASSNAME = 14
|
3129
|
+
SCE_SCRIPTOL_PREPROCESSOR = 15
|
3130
|
+
# Lexical states for SCLEX_ASM
|
3131
|
+
SCE_ASM_DEFAULT = 0
|
3132
|
+
SCE_ASM_COMMENT = 1
|
3133
|
+
SCE_ASM_NUMBER = 2
|
3134
|
+
SCE_ASM_STRING = 3
|
3135
|
+
SCE_ASM_OPERATOR = 4
|
3136
|
+
SCE_ASM_IDENTIFIER = 5
|
3137
|
+
SCE_ASM_CPUINSTRUCTION = 6
|
3138
|
+
SCE_ASM_MATHINSTRUCTION = 7
|
3139
|
+
SCE_ASM_REGISTER = 8
|
3140
|
+
SCE_ASM_DIRECTIVE = 9
|
3141
|
+
SCE_ASM_DIRECTIVEOPERAND = 10
|
3142
|
+
SCE_ASM_COMMENTBLOCK = 11
|
3143
|
+
SCE_ASM_CHARACTER = 12
|
3144
|
+
SCE_ASM_STRINGEOL = 13
|
3145
|
+
SCE_ASM_EXTINSTRUCTION = 14
|
3146
|
+
# Lexical states for SCLEX_FORTRAN
|
3147
|
+
SCE_F_DEFAULT = 0
|
3148
|
+
SCE_F_COMMENT = 1
|
3149
|
+
SCE_F_NUMBER = 2
|
3150
|
+
SCE_F_STRING1 = 3
|
3151
|
+
SCE_F_STRING2 = 4
|
3152
|
+
SCE_F_STRINGEOL = 5
|
3153
|
+
SCE_F_OPERATOR = 6
|
3154
|
+
SCE_F_IDENTIFIER = 7
|
3155
|
+
SCE_F_WORD = 8
|
3156
|
+
SCE_F_WORD2 = 9
|
3157
|
+
SCE_F_WORD3 = 10
|
3158
|
+
SCE_F_PREPROCESSOR = 11
|
3159
|
+
SCE_F_OPERATOR2 = 12
|
3160
|
+
SCE_F_LABEL = 13
|
3161
|
+
SCE_F_CONTINUATION = 14
|
3162
|
+
# Lexical states for SCLEX_CSS
|
3163
|
+
SCE_CSS_DEFAULT = 0
|
3164
|
+
SCE_CSS_TAG = 1
|
3165
|
+
SCE_CSS_CLASS = 2
|
3166
|
+
SCE_CSS_PSEUDOCLASS = 3
|
3167
|
+
SCE_CSS_UNKNOWN_PSEUDOCLASS = 4
|
3168
|
+
SCE_CSS_OPERATOR = 5
|
3169
|
+
SCE_CSS_IDENTIFIER = 6
|
3170
|
+
SCE_CSS_UNKNOWN_IDENTIFIER = 7
|
3171
|
+
SCE_CSS_VALUE = 8
|
3172
|
+
SCE_CSS_COMMENT = 9
|
3173
|
+
SCE_CSS_ID = 10
|
3174
|
+
SCE_CSS_IMPORTANT = 11
|
3175
|
+
SCE_CSS_DIRECTIVE = 12
|
3176
|
+
SCE_CSS_DOUBLESTRING = 13
|
3177
|
+
SCE_CSS_SINGLESTRING = 14
|
3178
|
+
SCE_CSS_IDENTIFIER2 = 15
|
3179
|
+
SCE_CSS_ATTRIBUTE = 16
|
3180
|
+
# Lexical states for SCLEX_POV
|
3181
|
+
SCE_POV_DEFAULT = 0
|
3182
|
+
SCE_POV_COMMENT = 1
|
3183
|
+
SCE_POV_COMMENTLINE = 2
|
3184
|
+
SCE_POV_NUMBER = 3
|
3185
|
+
SCE_POV_OPERATOR = 4
|
3186
|
+
SCE_POV_IDENTIFIER = 5
|
3187
|
+
SCE_POV_STRING = 6
|
3188
|
+
SCE_POV_STRINGEOL = 7
|
3189
|
+
SCE_POV_DIRECTIVE = 8
|
3190
|
+
SCE_POV_BADDIRECTIVE = 9
|
3191
|
+
SCE_POV_WORD2 = 10
|
3192
|
+
SCE_POV_WORD3 = 11
|
3193
|
+
SCE_POV_WORD4 = 12
|
3194
|
+
SCE_POV_WORD5 = 13
|
3195
|
+
SCE_POV_WORD6 = 14
|
3196
|
+
SCE_POV_WORD7 = 15
|
3197
|
+
SCE_POV_WORD8 = 16
|
3198
|
+
# Lexical states for SCLEX_LOUT
|
3199
|
+
SCE_LOUT_DEFAULT = 0
|
3200
|
+
SCE_LOUT_COMMENT = 1
|
3201
|
+
SCE_LOUT_NUMBER = 2
|
3202
|
+
SCE_LOUT_WORD = 3
|
3203
|
+
SCE_LOUT_WORD2 = 4
|
3204
|
+
SCE_LOUT_WORD3 = 5
|
3205
|
+
SCE_LOUT_WORD4 = 6
|
3206
|
+
SCE_LOUT_STRING = 7
|
3207
|
+
SCE_LOUT_OPERATOR = 8
|
3208
|
+
SCE_LOUT_IDENTIFIER = 9
|
3209
|
+
SCE_LOUT_STRINGEOL = 10
|
3210
|
+
# Lexical states for SCLEX_ESCRIPT
|
3211
|
+
SCE_ESCRIPT_DEFAULT = 0
|
3212
|
+
SCE_ESCRIPT_COMMENT = 1
|
3213
|
+
SCE_ESCRIPT_COMMENTLINE = 2
|
3214
|
+
SCE_ESCRIPT_COMMENTDOC = 3
|
3215
|
+
SCE_ESCRIPT_NUMBER = 4
|
3216
|
+
SCE_ESCRIPT_WORD = 5
|
3217
|
+
SCE_ESCRIPT_STRING = 6
|
3218
|
+
SCE_ESCRIPT_OPERATOR = 7
|
3219
|
+
SCE_ESCRIPT_IDENTIFIER = 8
|
3220
|
+
SCE_ESCRIPT_BRACE = 9
|
3221
|
+
SCE_ESCRIPT_WORD2 = 10
|
3222
|
+
SCE_ESCRIPT_WORD3 = 11
|
3223
|
+
# Lexical states for SCLEX_PS
|
3224
|
+
SCE_PS_DEFAULT = 0
|
3225
|
+
SCE_PS_COMMENT = 1
|
3226
|
+
SCE_PS_DSC_COMMENT = 2
|
3227
|
+
SCE_PS_DSC_VALUE = 3
|
3228
|
+
SCE_PS_NUMBER = 4
|
3229
|
+
SCE_PS_NAME = 5
|
3230
|
+
SCE_PS_KEYWORD = 6
|
3231
|
+
SCE_PS_LITERAL = 7
|
3232
|
+
SCE_PS_IMMEVAL = 8
|
3233
|
+
SCE_PS_PAREN_ARRAY = 9
|
3234
|
+
SCE_PS_PAREN_DICT = 10
|
3235
|
+
SCE_PS_PAREN_PROC = 11
|
3236
|
+
SCE_PS_TEXT = 12
|
3237
|
+
SCE_PS_HEXSTRING = 13
|
3238
|
+
SCE_PS_BASE85STRING = 14
|
3239
|
+
SCE_PS_BADSTRINGCHAR = 15
|
3240
|
+
# Lexical states for SCLEX_NSIS
|
3241
|
+
SCE_NSIS_DEFAULT = 0
|
3242
|
+
SCE_NSIS_COMMENT = 1
|
3243
|
+
SCE_NSIS_STRINGDQ = 2
|
3244
|
+
SCE_NSIS_STRINGLQ = 3
|
3245
|
+
SCE_NSIS_STRINGRQ = 4
|
3246
|
+
SCE_NSIS_FUNCTION = 5
|
3247
|
+
SCE_NSIS_VARIABLE = 6
|
3248
|
+
SCE_NSIS_LABEL = 7
|
3249
|
+
SCE_NSIS_USERDEFINED = 8
|
3250
|
+
SCE_NSIS_SECTIONDEF = 9
|
3251
|
+
SCE_NSIS_SUBSECTIONDEF = 10
|
3252
|
+
SCE_NSIS_IFDEFINEDEF = 11
|
3253
|
+
SCE_NSIS_MACRODEF = 12
|
3254
|
+
SCE_NSIS_STRINGVAR = 13
|
3255
|
+
SCE_NSIS_NUMBER = 14
|
3256
|
+
SCE_NSIS_SECTIONGROUP = 15
|
3257
|
+
SCE_NSIS_PAGEEX = 16
|
3258
|
+
SCE_NSIS_FUNCTIONDEF = 17
|
3259
|
+
SCE_NSIS_COMMENTBOX = 18
|
3260
|
+
# Lexical states for SCLEX_MMIXAL
|
3261
|
+
SCE_MMIXAL_LEADWS = 0
|
3262
|
+
SCE_MMIXAL_COMMENT = 1
|
3263
|
+
SCE_MMIXAL_LABEL = 2
|
3264
|
+
SCE_MMIXAL_OPCODE = 3
|
3265
|
+
SCE_MMIXAL_OPCODE_PRE = 4
|
3266
|
+
SCE_MMIXAL_OPCODE_VALID = 5
|
3267
|
+
SCE_MMIXAL_OPCODE_UNKNOWN = 6
|
3268
|
+
SCE_MMIXAL_OPCODE_POST = 7
|
3269
|
+
SCE_MMIXAL_OPERANDS = 8
|
3270
|
+
SCE_MMIXAL_NUMBER = 9
|
3271
|
+
SCE_MMIXAL_REF = 10
|
3272
|
+
SCE_MMIXAL_CHAR = 11
|
3273
|
+
SCE_MMIXAL_STRING = 12
|
3274
|
+
SCE_MMIXAL_REGISTER = 13
|
3275
|
+
SCE_MMIXAL_HEX = 14
|
3276
|
+
SCE_MMIXAL_OPERATOR = 15
|
3277
|
+
SCE_MMIXAL_SYMBOL = 16
|
3278
|
+
SCE_MMIXAL_INCLUDE = 17
|
3279
|
+
# Lexical states for SCLEX_CLW
|
3280
|
+
SCE_CLW_DEFAULT = 0
|
3281
|
+
SCE_CLW_LABEL = 1
|
3282
|
+
SCE_CLW_COMMENT = 2
|
3283
|
+
SCE_CLW_STRING = 3
|
3284
|
+
SCE_CLW_USER_IDENTIFIER = 4
|
3285
|
+
SCE_CLW_INTEGER_CONSTANT = 5
|
3286
|
+
SCE_CLW_REAL_CONSTANT = 6
|
3287
|
+
SCE_CLW_PICTURE_STRING = 7
|
3288
|
+
SCE_CLW_KEYWORD = 8
|
3289
|
+
SCE_CLW_COMPILER_DIRECTIVE = 9
|
3290
|
+
SCE_CLW_RUNTIME_EXPRESSIONS = 10
|
3291
|
+
SCE_CLW_BUILTIN_PROCEDURES_FUNCTION = 11
|
3292
|
+
SCE_CLW_STRUCTURE_DATA_TYPE = 12
|
3293
|
+
SCE_CLW_ATTRIBUTE = 13
|
3294
|
+
SCE_CLW_STANDARD_EQUATE = 14
|
3295
|
+
SCE_CLW_ERROR = 15
|
3296
|
+
SCE_CLW_DEPRECATED = 16
|
3297
|
+
# Lexical states for SCLEX_LOT
|
3298
|
+
SCE_LOT_DEFAULT = 0
|
3299
|
+
SCE_LOT_HEADER = 1
|
3300
|
+
SCE_LOT_BREAK = 2
|
3301
|
+
SCE_LOT_SET = 3
|
3302
|
+
SCE_LOT_PASS = 4
|
3303
|
+
SCE_LOT_FAIL = 5
|
3304
|
+
SCE_LOT_ABORT = 6
|
3305
|
+
# Lexical states for SCLEX_YAML
|
3306
|
+
SCE_YAML_DEFAULT = 0
|
3307
|
+
SCE_YAML_COMMENT = 1
|
3308
|
+
SCE_YAML_IDENTIFIER = 2
|
3309
|
+
SCE_YAML_KEYWORD = 3
|
3310
|
+
SCE_YAML_NUMBER = 4
|
3311
|
+
SCE_YAML_REFERENCE = 5
|
3312
|
+
SCE_YAML_DOCUMENT = 6
|
3313
|
+
SCE_YAML_TEXT = 7
|
3314
|
+
SCE_YAML_ERROR = 8
|
3315
|
+
# Lexical states for SCLEX_TEX
|
3316
|
+
SCE_TEX_DEFAULT = 0
|
3317
|
+
SCE_TEX_SPECIAL = 1
|
3318
|
+
SCE_TEX_GROUP = 2
|
3319
|
+
SCE_TEX_SYMBOL = 3
|
3320
|
+
SCE_TEX_COMMAND = 4
|
3321
|
+
SCE_TEX_TEXT = 5
|
3322
|
+
SCE_METAPOST_DEFAULT = 0
|
3323
|
+
SCE_METAPOST_SPECIAL = 1
|
3324
|
+
SCE_METAPOST_GROUP = 2
|
3325
|
+
SCE_METAPOST_SYMBOL = 3
|
3326
|
+
SCE_METAPOST_COMMAND = 4
|
3327
|
+
SCE_METAPOST_TEXT = 5
|
3328
|
+
SCE_METAPOST_EXTRA = 6
|
3329
|
+
# Lexical states for SCLEX_ERLANG
|
3330
|
+
SCE_ERLANG_DEFAULT = 0
|
3331
|
+
SCE_ERLANG_COMMENT = 1
|
3332
|
+
SCE_ERLANG_VARIABLE = 2
|
3333
|
+
SCE_ERLANG_NUMBER = 3
|
3334
|
+
SCE_ERLANG_KEYWORD = 4
|
3335
|
+
SCE_ERLANG_STRING = 5
|
3336
|
+
SCE_ERLANG_OPERATOR = 6
|
3337
|
+
SCE_ERLANG_ATOM = 7
|
3338
|
+
SCE_ERLANG_FUNCTION_NAME = 8
|
3339
|
+
SCE_ERLANG_CHARACTER = 9
|
3340
|
+
SCE_ERLANG_MACRO = 10
|
3341
|
+
SCE_ERLANG_RECORD = 11
|
3342
|
+
SCE_ERLANG_SEPARATOR = 12
|
3343
|
+
SCE_ERLANG_NODE_NAME = 13
|
3344
|
+
SCE_ERLANG_UNKNOWN = 31
|
3345
|
+
# Lexical states for SCLEX_OCTAVE are identical to MatLab
|
3346
|
+
# Lexical states for SCLEX_MSSQL
|
3347
|
+
SCE_MSSQL_DEFAULT = 0
|
3348
|
+
SCE_MSSQL_COMMENT = 1
|
3349
|
+
SCE_MSSQL_LINE_COMMENT = 2
|
3350
|
+
SCE_MSSQL_NUMBER = 3
|
3351
|
+
SCE_MSSQL_STRING = 4
|
3352
|
+
SCE_MSSQL_OPERATOR = 5
|
3353
|
+
SCE_MSSQL_IDENTIFIER = 6
|
3354
|
+
SCE_MSSQL_VARIABLE = 7
|
3355
|
+
SCE_MSSQL_COLUMN_NAME = 8
|
3356
|
+
SCE_MSSQL_STATEMENT = 9
|
3357
|
+
SCE_MSSQL_DATATYPE = 10
|
3358
|
+
SCE_MSSQL_SYSTABLE = 11
|
3359
|
+
SCE_MSSQL_GLOBAL_VARIABLE = 12
|
3360
|
+
SCE_MSSQL_FUNCTION = 13
|
3361
|
+
SCE_MSSQL_STORED_PROCEDURE = 14
|
3362
|
+
SCE_MSSQL_DEFAULT_PREF_DATATYPE = 15
|
3363
|
+
SCE_MSSQL_COLUMN_NAME_2 = 16
|
3364
|
+
# Lexical states for SCLEX_VERILOG
|
3365
|
+
SCE_V_DEFAULT = 0
|
3366
|
+
SCE_V_COMMENT = 1
|
3367
|
+
SCE_V_COMMENTLINE = 2
|
3368
|
+
SCE_V_COMMENTLINEBANG = 3
|
3369
|
+
SCE_V_NUMBER = 4
|
3370
|
+
SCE_V_WORD = 5
|
3371
|
+
SCE_V_STRING = 6
|
3372
|
+
SCE_V_WORD2 = 7
|
3373
|
+
SCE_V_WORD3 = 8
|
3374
|
+
SCE_V_PREPROCESSOR = 9
|
3375
|
+
SCE_V_OPERATOR = 10
|
3376
|
+
SCE_V_IDENTIFIER = 11
|
3377
|
+
SCE_V_STRINGEOL = 12
|
3378
|
+
SCE_V_USER = 19
|
3379
|
+
# Lexical states for SCLEX_KIX
|
3380
|
+
SCE_KIX_DEFAULT = 0
|
3381
|
+
SCE_KIX_COMMENT = 1
|
3382
|
+
SCE_KIX_STRING1 = 2
|
3383
|
+
SCE_KIX_STRING2 = 3
|
3384
|
+
SCE_KIX_NUMBER = 4
|
3385
|
+
SCE_KIX_VAR = 5
|
3386
|
+
SCE_KIX_MACRO = 6
|
3387
|
+
SCE_KIX_KEYWORD = 7
|
3388
|
+
SCE_KIX_FUNCTIONS = 8
|
3389
|
+
SCE_KIX_OPERATOR = 9
|
3390
|
+
SCE_KIX_IDENTIFIER = 31
|
3391
|
+
# Lexical states for SCLEX_GUI4CLI
|
3392
|
+
SCE_GC_DEFAULT = 0
|
3393
|
+
SCE_GC_COMMENTLINE = 1
|
3394
|
+
SCE_GC_COMMENTBLOCK = 2
|
3395
|
+
SCE_GC_GLOBAL = 3
|
3396
|
+
SCE_GC_EVENT = 4
|
3397
|
+
SCE_GC_ATTRIBUTE = 5
|
3398
|
+
SCE_GC_CONTROL = 6
|
3399
|
+
SCE_GC_COMMAND = 7
|
3400
|
+
SCE_GC_STRING = 8
|
3401
|
+
SCE_GC_OPERATOR = 9
|
3402
|
+
# Lexical states for SCLEX_SPECMAN
|
3403
|
+
SCE_SN_DEFAULT = 0
|
3404
|
+
SCE_SN_CODE = 1
|
3405
|
+
SCE_SN_COMMENTLINE = 2
|
3406
|
+
SCE_SN_COMMENTLINEBANG = 3
|
3407
|
+
SCE_SN_NUMBER = 4
|
3408
|
+
SCE_SN_WORD = 5
|
3409
|
+
SCE_SN_STRING = 6
|
3410
|
+
SCE_SN_WORD2 = 7
|
3411
|
+
SCE_SN_WORD3 = 8
|
3412
|
+
SCE_SN_PREPROCESSOR = 9
|
3413
|
+
SCE_SN_OPERATOR = 10
|
3414
|
+
SCE_SN_IDENTIFIER = 11
|
3415
|
+
SCE_SN_STRINGEOL = 12
|
3416
|
+
SCE_SN_REGEXTAG = 13
|
3417
|
+
SCE_SN_SIGNAL = 14
|
3418
|
+
SCE_SN_USER = 19
|
3419
|
+
# Lexical states for SCLEX_AU3
|
3420
|
+
SCE_AU3_DEFAULT = 0
|
3421
|
+
SCE_AU3_COMMENT = 1
|
3422
|
+
SCE_AU3_COMMENTBLOCK = 2
|
3423
|
+
SCE_AU3_NUMBER = 3
|
3424
|
+
SCE_AU3_FUNCTION = 4
|
3425
|
+
SCE_AU3_KEYWORD = 5
|
3426
|
+
SCE_AU3_MACRO = 6
|
3427
|
+
SCE_AU3_STRING = 7
|
3428
|
+
SCE_AU3_OPERATOR = 8
|
3429
|
+
SCE_AU3_VARIABLE = 9
|
3430
|
+
SCE_AU3_SENT = 10
|
3431
|
+
SCE_AU3_PREPROCESSOR = 11
|
3432
|
+
SCE_AU3_SPECIAL = 12
|
3433
|
+
SCE_AU3_EXPAND = 13
|
3434
|
+
SCE_AU3_COMOBJ = 14
|
3435
|
+
SCE_AU3_UDF = 15
|
3436
|
+
# Lexical states for SCLEX_APDL
|
3437
|
+
SCE_APDL_DEFAULT = 0
|
3438
|
+
SCE_APDL_COMMENT = 1
|
3439
|
+
SCE_APDL_COMMENTBLOCK = 2
|
3440
|
+
SCE_APDL_NUMBER = 3
|
3441
|
+
SCE_APDL_STRING = 4
|
3442
|
+
SCE_APDL_OPERATOR = 5
|
3443
|
+
SCE_APDL_WORD = 6
|
3444
|
+
SCE_APDL_PROCESSOR = 7
|
3445
|
+
SCE_APDL_COMMAND = 8
|
3446
|
+
SCE_APDL_SLASHCOMMAND = 9
|
3447
|
+
SCE_APDL_STARCOMMAND = 10
|
3448
|
+
SCE_APDL_ARGUMENT = 11
|
3449
|
+
SCE_APDL_FUNCTION = 12
|
3450
|
+
# Lexical states for SCLEX_BASH
|
3451
|
+
SCE_SH_DEFAULT = 0
|
3452
|
+
SCE_SH_ERROR = 1
|
3453
|
+
SCE_SH_COMMENTLINE = 2
|
3454
|
+
SCE_SH_NUMBER = 3
|
3455
|
+
SCE_SH_WORD = 4
|
3456
|
+
SCE_SH_STRING = 5
|
3457
|
+
SCE_SH_CHARACTER = 6
|
3458
|
+
SCE_SH_OPERATOR = 7
|
3459
|
+
SCE_SH_IDENTIFIER = 8
|
3460
|
+
SCE_SH_SCALAR = 9
|
3461
|
+
SCE_SH_PARAM = 10
|
3462
|
+
SCE_SH_BACKTICKS = 11
|
3463
|
+
SCE_SH_HERE_DELIM = 12
|
3464
|
+
SCE_SH_HERE_Q = 13
|
3465
|
+
# Lexical states for SCLEX_ASN1
|
3466
|
+
SCE_ASN1_DEFAULT = 0
|
3467
|
+
SCE_ASN1_COMMENT = 1
|
3468
|
+
SCE_ASN1_IDENTIFIER = 2
|
3469
|
+
SCE_ASN1_STRING = 3
|
3470
|
+
SCE_ASN1_OID = 4
|
3471
|
+
SCE_ASN1_SCALAR = 5
|
3472
|
+
SCE_ASN1_KEYWORD = 6
|
3473
|
+
SCE_ASN1_ATTRIBUTE = 7
|
3474
|
+
SCE_ASN1_DESCRIPTOR = 8
|
3475
|
+
SCE_ASN1_TYPE = 9
|
3476
|
+
SCE_ASN1_OPERATOR = 10
|
3477
|
+
# Lexical states for SCLEX_VHDL
|
3478
|
+
SCE_VHDL_DEFAULT = 0
|
3479
|
+
SCE_VHDL_COMMENT = 1
|
3480
|
+
SCE_VHDL_COMMENTLINEBANG = 2
|
3481
|
+
SCE_VHDL_NUMBER = 3
|
3482
|
+
SCE_VHDL_STRING = 4
|
3483
|
+
SCE_VHDL_OPERATOR = 5
|
3484
|
+
SCE_VHDL_IDENTIFIER = 6
|
3485
|
+
SCE_VHDL_STRINGEOL = 7
|
3486
|
+
SCE_VHDL_KEYWORD = 8
|
3487
|
+
SCE_VHDL_STDOPERATOR = 9
|
3488
|
+
SCE_VHDL_ATTRIBUTE = 10
|
3489
|
+
SCE_VHDL_STDFUNCTION = 11
|
3490
|
+
SCE_VHDL_STDPACKAGE = 12
|
3491
|
+
SCE_VHDL_STDTYPE = 13
|
3492
|
+
SCE_VHDL_USERWORD = 14
|
3493
|
+
# Lexical states for SCLEX_CAML
|
3494
|
+
SCE_CAML_DEFAULT = 0
|
3495
|
+
SCE_CAML_IDENTIFIER = 1
|
3496
|
+
SCE_CAML_TAGNAME = 2
|
3497
|
+
SCE_CAML_KEYWORD = 3
|
3498
|
+
SCE_CAML_KEYWORD2 = 4
|
3499
|
+
SCE_CAML_KEYWORD3 = 5
|
3500
|
+
SCE_CAML_LINENUM = 6
|
3501
|
+
SCE_CAML_OPERATOR = 7
|
3502
|
+
SCE_CAML_NUMBER = 8
|
3503
|
+
SCE_CAML_CHAR = 9
|
3504
|
+
SCE_CAML_STRING = 11
|
3505
|
+
SCE_CAML_COMMENT = 12
|
3506
|
+
SCE_CAML_COMMENT1 = 13
|
3507
|
+
SCE_CAML_COMMENT2 = 14
|
3508
|
+
SCE_CAML_COMMENT3 = 15
|
3509
|
+
# Lexical states for SCLEX_HASKELL
|
3510
|
+
SCE_HA_DEFAULT = 0
|
3511
|
+
SCE_HA_IDENTIFIER = 1
|
3512
|
+
SCE_HA_KEYWORD = 2
|
3513
|
+
SCE_HA_NUMBER = 3
|
3514
|
+
SCE_HA_STRING = 4
|
3515
|
+
SCE_HA_CHARACTER = 5
|
3516
|
+
SCE_HA_CLASS = 6
|
3517
|
+
SCE_HA_MODULE = 7
|
3518
|
+
SCE_HA_CAPITAL = 8
|
3519
|
+
SCE_HA_DATA = 9
|
3520
|
+
SCE_HA_IMPORT = 10
|
3521
|
+
SCE_HA_OPERATOR = 11
|
3522
|
+
SCE_HA_INSTANCE = 12
|
3523
|
+
SCE_HA_COMMENTLINE = 13
|
3524
|
+
SCE_HA_COMMENTBLOCK = 14
|
3525
|
+
SCE_HA_COMMENTBLOCK2 = 15
|
3526
|
+
SCE_HA_COMMENTBLOCK3 = 16
|
3527
|
+
# Lexical states of SCLEX_TADS3
|
3528
|
+
SCE_T3_DEFAULT = 0
|
3529
|
+
SCE_T3_X_DEFAULT = 1
|
3530
|
+
SCE_T3_PREPROCESSOR = 2
|
3531
|
+
SCE_T3_BLOCK_COMMENT = 3
|
3532
|
+
SCE_T3_LINE_COMMENT = 4
|
3533
|
+
SCE_T3_OPERATOR = 5
|
3534
|
+
SCE_T3_KEYWORD = 6
|
3535
|
+
SCE_T3_NUMBER = 7
|
3536
|
+
SCE_T3_IDENTIFIER = 8
|
3537
|
+
SCE_T3_S_STRING = 9
|
3538
|
+
SCE_T3_D_STRING = 10
|
3539
|
+
SCE_T3_X_STRING = 11
|
3540
|
+
SCE_T3_LIB_DIRECTIVE = 12
|
3541
|
+
SCE_T3_MSG_PARAM = 13
|
3542
|
+
SCE_T3_HTML_TAG = 14
|
3543
|
+
SCE_T3_HTML_DEFAULT = 15
|
3544
|
+
SCE_T3_HTML_STRING = 16
|
3545
|
+
SCE_T3_USER1 = 17
|
3546
|
+
SCE_T3_USER2 = 18
|
3547
|
+
SCE_T3_USER3 = 19
|
3548
|
+
# Lexical states for SCLEX_REBOL
|
3549
|
+
SCE_REBOL_DEFAULT = 0
|
3550
|
+
SCE_REBOL_COMMENTLINE = 1
|
3551
|
+
SCE_REBOL_COMMENTBLOCK = 2
|
3552
|
+
SCE_REBOL_PREFACE = 3
|
3553
|
+
SCE_REBOL_OPERATOR = 4
|
3554
|
+
SCE_REBOL_CHARACTER = 5
|
3555
|
+
SCE_REBOL_QUOTEDSTRING = 6
|
3556
|
+
SCE_REBOL_BRACEDSTRING = 7
|
3557
|
+
SCE_REBOL_NUMBER = 8
|
3558
|
+
SCE_REBOL_PAIR = 9
|
3559
|
+
SCE_REBOL_TUPLE = 10
|
3560
|
+
SCE_REBOL_BINARY = 11
|
3561
|
+
SCE_REBOL_MONEY = 12
|
3562
|
+
SCE_REBOL_ISSUE = 13
|
3563
|
+
SCE_REBOL_TAG = 14
|
3564
|
+
SCE_REBOL_FILE = 15
|
3565
|
+
SCE_REBOL_EMAIL = 16
|
3566
|
+
SCE_REBOL_URL = 17
|
3567
|
+
SCE_REBOL_DATE = 18
|
3568
|
+
SCE_REBOL_TIME = 19
|
3569
|
+
SCE_REBOL_IDENTIFIER = 20
|
3570
|
+
SCE_REBOL_WORD = 21
|
3571
|
+
SCE_REBOL_WORD2 = 22
|
3572
|
+
SCE_REBOL_WORD3 = 23
|
3573
|
+
SCE_REBOL_WORD4 = 24
|
3574
|
+
SCE_REBOL_WORD5 = 25
|
3575
|
+
SCE_REBOL_WORD6 = 26
|
3576
|
+
SCE_REBOL_WORD7 = 27
|
3577
|
+
SCE_REBOL_WORD8 = 28
|
3578
|
+
# Lexical states for SCLEX_SQL
|
3579
|
+
SCE_SQL_DEFAULT = 0
|
3580
|
+
SCE_SQL_COMMENT = 1
|
3581
|
+
SCE_SQL_COMMENTLINE = 2
|
3582
|
+
SCE_SQL_COMMENTDOC = 3
|
3583
|
+
SCE_SQL_NUMBER = 4
|
3584
|
+
SCE_SQL_WORD = 5
|
3585
|
+
SCE_SQL_STRING = 6
|
3586
|
+
SCE_SQL_CHARACTER = 7
|
3587
|
+
SCE_SQL_SQLPLUS = 8
|
3588
|
+
SCE_SQL_SQLPLUS_PROMPT = 9
|
3589
|
+
SCE_SQL_OPERATOR = 10
|
3590
|
+
SCE_SQL_IDENTIFIER = 11
|
3591
|
+
SCE_SQL_SQLPLUS_COMMENT = 13
|
3592
|
+
SCE_SQL_COMMENTLINEDOC = 15
|
3593
|
+
SCE_SQL_WORD2 = 16
|
3594
|
+
SCE_SQL_COMMENTDOCKEYWORD = 17
|
3595
|
+
SCE_SQL_COMMENTDOCKEYWORDERROR = 18
|
3596
|
+
SCE_SQL_USER1 = 19
|
3597
|
+
SCE_SQL_USER2 = 20
|
3598
|
+
SCE_SQL_USER3 = 21
|
3599
|
+
SCE_SQL_USER4 = 22
|
3600
|
+
SCE_SQL_QUOTEDIDENTIFIER = 23
|
3601
|
+
# Lexical states for SCLEX_SMALLTALK
|
3602
|
+
SCE_ST_DEFAULT = 0
|
3603
|
+
SCE_ST_STRING = 1
|
3604
|
+
SCE_ST_NUMBER = 2
|
3605
|
+
SCE_ST_COMMENT = 3
|
3606
|
+
SCE_ST_SYMBOL = 4
|
3607
|
+
SCE_ST_BINARY = 5
|
3608
|
+
SCE_ST_BOOL = 6
|
3609
|
+
SCE_ST_SELF = 7
|
3610
|
+
SCE_ST_SUPER = 8
|
3611
|
+
SCE_ST_NIL = 9
|
3612
|
+
SCE_ST_GLOBAL = 10
|
3613
|
+
SCE_ST_RETURN = 11
|
3614
|
+
SCE_ST_SPECIAL = 12
|
3615
|
+
SCE_ST_KWSEND = 13
|
3616
|
+
SCE_ST_ASSIGN = 14
|
3617
|
+
SCE_ST_CHARACTER = 15
|
3618
|
+
SCE_ST_SPEC_SEL = 16
|
3619
|
+
# Lexical states for SCLEX_FLAGSHIP (clipper)
|
3620
|
+
SCE_FS_DEFAULT = 0
|
3621
|
+
SCE_FS_COMMENT = 1
|
3622
|
+
SCE_FS_COMMENTLINE = 2
|
3623
|
+
SCE_FS_COMMENTDOC = 3
|
3624
|
+
SCE_FS_COMMENTLINEDOC = 4
|
3625
|
+
SCE_FS_COMMENTDOCKEYWORD = 5
|
3626
|
+
SCE_FS_COMMENTDOCKEYWORDERROR = 6
|
3627
|
+
SCE_FS_KEYWORD = 7
|
3628
|
+
SCE_FS_KEYWORD2 = 8
|
3629
|
+
SCE_FS_KEYWORD3 = 9
|
3630
|
+
SCE_FS_KEYWORD4 = 10
|
3631
|
+
SCE_FS_NUMBER = 11
|
3632
|
+
SCE_FS_STRING = 12
|
3633
|
+
SCE_FS_PREPROCESSOR = 13
|
3634
|
+
SCE_FS_OPERATOR = 14
|
3635
|
+
SCE_FS_IDENTIFIER = 15
|
3636
|
+
SCE_FS_DATE = 16
|
3637
|
+
SCE_FS_STRINGEOL = 17
|
3638
|
+
SCE_FS_CONSTANT = 18
|
3639
|
+
SCE_FS_ASM = 19
|
3640
|
+
SCE_FS_LABEL = 20
|
3641
|
+
SCE_FS_ERROR = 21
|
3642
|
+
SCE_FS_HEXNUMBER = 22
|
3643
|
+
SCE_FS_BINNUMBER = 23
|
3644
|
+
# Lexical states for SCLEX_CSOUND
|
3645
|
+
SCE_CSOUND_DEFAULT = 0
|
3646
|
+
SCE_CSOUND_COMMENT = 1
|
3647
|
+
SCE_CSOUND_NUMBER = 2
|
3648
|
+
SCE_CSOUND_OPERATOR = 3
|
3649
|
+
SCE_CSOUND_INSTR = 4
|
3650
|
+
SCE_CSOUND_IDENTIFIER = 5
|
3651
|
+
SCE_CSOUND_OPCODE = 6
|
3652
|
+
SCE_CSOUND_HEADERSTMT = 7
|
3653
|
+
SCE_CSOUND_USERKEYWORD = 8
|
3654
|
+
SCE_CSOUND_COMMENTBLOCK = 9
|
3655
|
+
SCE_CSOUND_PARAM = 10
|
3656
|
+
SCE_CSOUND_ARATE_VAR = 11
|
3657
|
+
SCE_CSOUND_KRATE_VAR = 12
|
3658
|
+
SCE_CSOUND_IRATE_VAR = 13
|
3659
|
+
SCE_CSOUND_GLOBAL_VAR = 14
|
3660
|
+
SCE_CSOUND_STRINGEOL = 15
|
3661
|
+
# Lexical states for SCLEX_INNOSETUP
|
3662
|
+
SCE_INNO_DEFAULT = 0
|
3663
|
+
SCE_INNO_COMMENT = 1
|
3664
|
+
SCE_INNO_KEYWORD = 2
|
3665
|
+
SCE_INNO_PARAMETER = 3
|
3666
|
+
SCE_INNO_SECTION = 4
|
3667
|
+
SCE_INNO_PREPROC = 5
|
3668
|
+
SCE_INNO_PREPROC_INLINE = 6
|
3669
|
+
SCE_INNO_COMMENT_PASCAL = 7
|
3670
|
+
SCE_INNO_KEYWORD_PASCAL = 8
|
3671
|
+
SCE_INNO_KEYWORD_USER = 9
|
3672
|
+
SCE_INNO_STRING_DOUBLE = 10
|
3673
|
+
SCE_INNO_STRING_SINGLE = 11
|
3674
|
+
SCE_INNO_IDENTIFIER = 12
|
3675
|
+
# Lexical states for SCLEX_OPAL
|
3676
|
+
SCE_OPAL_SPACE = 0
|
3677
|
+
SCE_OPAL_COMMENT_BLOCK = 1
|
3678
|
+
SCE_OPAL_COMMENT_LINE = 2
|
3679
|
+
SCE_OPAL_INTEGER = 3
|
3680
|
+
SCE_OPAL_KEYWORD = 4
|
3681
|
+
SCE_OPAL_SORT = 5
|
3682
|
+
SCE_OPAL_STRING = 6
|
3683
|
+
SCE_OPAL_PAR = 7
|
3684
|
+
SCE_OPAL_BOOL_CONST = 8
|
3685
|
+
SCE_OPAL_DEFAULT = 32
|
3686
|
+
# Lexical states for SCLEX_SPICE
|
3687
|
+
SCE_SPICE_DEFAULT = 0
|
3688
|
+
SCE_SPICE_IDENTIFIER = 1
|
3689
|
+
SCE_SPICE_KEYWORD = 2
|
3690
|
+
SCE_SPICE_KEYWORD2 = 3
|
3691
|
+
SCE_SPICE_KEYWORD3 = 4
|
3692
|
+
SCE_SPICE_NUMBER = 5
|
3693
|
+
SCE_SPICE_DELIMITER = 6
|
3694
|
+
SCE_SPICE_VALUE = 7
|
3695
|
+
SCE_SPICE_COMMENTLINE = 8
|
3696
|
+
|
3697
|
+
# Events
|
3698
|
+
|
3699
|
+
SCN_STYLENEEDED = 2000
|
3700
|
+
SCN_CHARADDED = 2001
|
3701
|
+
SCN_SAVEPOINTREACHED = 2002
|
3702
|
+
SCN_SAVEPOINTLEFT = 2003
|
3703
|
+
SCN_MODIFYATTEMPTRO = 2004
|
3704
|
+
# GTK+ Specific to work around focus and accelerator problems:
|
3705
|
+
SCN_KEY = 2005
|
3706
|
+
SCN_DOUBLECLICK = 2006
|
3707
|
+
SCN_UPDATEUI = 2007
|
3708
|
+
SCN_MODIFIED = 2008
|
3709
|
+
SCN_MACRORECORD = 2009
|
3710
|
+
SCN_MARGINCLICK = 2010
|
3711
|
+
SCN_NEEDSHOWN = 2011
|
3712
|
+
SCN_PAINTED = 2013
|
3713
|
+
SCN_USERLISTSELECTION = 2014
|
3714
|
+
SCN_URIDROPPED = 2015
|
3715
|
+
SCN_DWELLSTART = 2016
|
3716
|
+
SCN_DWELLEND = 2017
|
3717
|
+
SCN_ZOOM = 2018
|
3718
|
+
SCN_HOTSPOTCLICK = 2019
|
3719
|
+
SCN_HOTSPOTDOUBLECLICK = 2020
|
3720
|
+
SCN_CALLTIPCLICK = 2021
|
3721
|
+
SCN_AUTOCSELECTION = 2022
|
3722
|
+
|
3723
|
+
# Deprecated
|
3724
|
+
|
3725
|
+
# CARET_POLICY changed in 1.47
|
3726
|
+
def setCaretPolicy(caretPolicy, caretSlop)
|
3727
|
+
sendMessage(2369, caretPolicy, caretSlop)
|
3728
|
+
end
|
3729
|
+
CARET_CENTER = 0x02
|
3730
|
+
CARET_XEVEN = 0x08
|
3731
|
+
CARET_XJUMPS = 0x10
|
3732
|
+
|
3733
|
+
# The old name for SCN_UPDATEUI
|
3734
|
+
SCN_CHECKBRACE = 2007
|
3735
|
+
SCN_POSCHANGED = 2012
|
3736
|
+
|
3737
|
+
# SCLEX_HTML should be used in preference to these.
|
3738
|
+
SCLEX_ASP = 29
|
3739
|
+
SCLEX_PHP = 30
|
3740
|
+
end
|
3741
|
+
end
|