fxruby 1.6.41-x64-mingw32 → 1.6.45-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/.yardopts +1 -1
- data/Gemfile +2 -3
- data/History.md +26 -0
- data/README.rdoc +10 -5
- data/Rakefile +16 -5
- data/appveyor.yml +8 -7
- data/docs/Fox/Canvas/CanvasError.html +124 -0
- data/docs/Fox/Canvas/CircleShape.html +477 -0
- data/docs/Fox/Canvas/ImageShape.html +477 -0
- data/docs/Fox/Canvas/LineShape.html +1005 -0
- data/docs/Fox/Canvas/PolygonShape.html +145 -0
- data/docs/Fox/Canvas/RectangleShape.html +439 -0
- data/docs/Fox/Canvas/SelectionPolicy.html +352 -0
- data/docs/Fox/Canvas/Shape.html +1955 -0
- data/docs/Fox/Canvas/ShapeCanvas.html +2031 -0
- data/docs/Fox/Canvas/ShapeGroup.html +527 -0
- data/docs/Fox/Canvas/SingleSelectionPolicy.html +291 -0
- data/docs/Fox/Canvas/TextShape.html +609 -0
- data/docs/Fox/Canvas.html +141 -0
- data/docs/Fox/FTNonModal.html +550 -0
- data/docs/Fox/FX4Splitter.html +1336 -0
- data/docs/Fox/FX7Segment.html +1010 -0
- data/docs/Fox/FXAccelTable.html +715 -0
- data/docs/Fox/FXApp.html +7998 -0
- data/docs/Fox/FXArc.html +562 -0
- data/docs/Fox/FXArrowButton.html +865 -0
- data/docs/Fox/FXBMPIcon.html +450 -0
- data/docs/Fox/FXBMPImage.html +434 -0
- data/docs/Fox/FXBitmap.html +1362 -0
- data/docs/Fox/FXBitmapFrame.html +595 -0
- data/docs/Fox/FXBitmapView.html +1451 -0
- data/docs/Fox/FXButton.html +534 -0
- data/docs/Fox/FXCURCursor.html +261 -0
- data/docs/Fox/FXCalendar.html +880 -0
- data/docs/Fox/FXCanvas.html +311 -0
- data/docs/Fox/FXCheckButton.html +949 -0
- data/docs/Fox/FXChoiceBox.html +472 -0
- data/docs/Fox/FXColor.html +1519 -0
- data/docs/Fox/FXColorBar.html +759 -0
- data/docs/Fox/FXColorDialog.html +591 -0
- data/docs/Fox/FXColorItem.html +323 -0
- data/docs/Fox/FXColorList.html +712 -0
- data/docs/Fox/FXColorRing.html +817 -0
- data/docs/Fox/FXColorSelector.html +796 -0
- data/docs/Fox/FXColorWell.html +850 -0
- data/docs/Fox/FXColorWheel.html +770 -0
- data/docs/Fox/FXComboBox.html +2939 -0
- data/docs/Fox/FXComboTableItem.html +544 -0
- data/docs/Fox/FXCommand.html +526 -0
- data/docs/Fox/FXComposite.html +433 -0
- data/docs/Fox/FXCursor.html +779 -0
- data/docs/Fox/FXDC.html +5231 -0
- data/docs/Fox/FXDCPrint.html +696 -0
- data/docs/Fox/FXDCWindow.html +358 -0
- data/docs/Fox/FXDataTarget.html +573 -0
- data/docs/Fox/FXDebugTarget.html +305 -0
- data/docs/Fox/FXDelegator.html +305 -0
- data/docs/Fox/FXDial.html +1133 -0
- data/docs/Fox/FXDialogBox.html +413 -0
- data/docs/Fox/FXDict.html +1063 -0
- data/docs/Fox/FXDirBox.html +752 -0
- data/docs/Fox/FXDirDialog.html +914 -0
- data/docs/Fox/FXDirItem.html +989 -0
- data/docs/Fox/FXDirList.html +1554 -0
- data/docs/Fox/FXDirSelector.html +995 -0
- data/docs/Fox/FXDockBar.html +1451 -0
- data/docs/Fox/FXDockHandler.html +468 -0
- data/docs/Fox/FXDockSite.html +678 -0
- data/docs/Fox/FXDockTitle.html +606 -0
- data/docs/Fox/FXDocument.html +536 -0
- data/docs/Fox/FXDragCorner.html +440 -0
- data/docs/Fox/FXDrawable.html +478 -0
- data/docs/Fox/FXDriveBox.html +746 -0
- data/docs/Fox/FXEvent.html +1736 -0
- data/docs/Fox/FXExtentd.html +1374 -0
- data/docs/Fox/FXExtentf.html +1374 -0
- data/docs/Fox/FXFileAssoc.html +850 -0
- data/docs/Fox/FXFileDialog.html +2688 -0
- data/docs/Fox/FXFileDict.html +1058 -0
- data/docs/Fox/FXFileItem.html +1141 -0
- data/docs/Fox/FXFileList.html +2259 -0
- data/docs/Fox/FXFileSelector.html +2529 -0
- data/docs/Fox/FXFileStream.html +503 -0
- data/docs/Fox/FXFoldingItem.html +2822 -0
- data/docs/Fox/FXFoldingList.html +5189 -0
- data/docs/Fox/FXFont.html +2998 -0
- data/docs/Fox/FXFontDesc.html +710 -0
- data/docs/Fox/FXFontDialog.html +420 -0
- data/docs/Fox/FXFontSelector.html +576 -0
- data/docs/Fox/FXFrame.html +1012 -0
- data/docs/Fox/FXGIFCursor.html +337 -0
- data/docs/Fox/FXGIFIcon.html +450 -0
- data/docs/Fox/FXGIFImage.html +434 -0
- data/docs/Fox/FXGLCanvas.html +700 -0
- data/docs/Fox/FXGLCone.html +785 -0
- data/docs/Fox/FXGLContext.html +649 -0
- data/docs/Fox/FXGLCube.html +703 -0
- data/docs/Fox/FXGLCylinder.html +791 -0
- data/docs/Fox/FXGLGroup.html +1385 -0
- data/docs/Fox/FXGLLine.html +653 -0
- data/docs/Fox/FXGLObject.html +759 -0
- data/docs/Fox/FXGLPoint.html +561 -0
- data/docs/Fox/FXGLShape.html +714 -0
- data/docs/Fox/FXGLSphere.html +626 -0
- data/docs/Fox/FXGLViewer.html +3506 -0
- data/docs/Fox/FXGLVisual.html +2147 -0
- data/docs/Fox/FXGradient.html +562 -0
- data/docs/Fox/FXGradientBar.html +2479 -0
- data/docs/Fox/FXGroupBox.html +688 -0
- data/docs/Fox/FXHeader.html +3040 -0
- data/docs/Fox/FXHeaderItem.html +1353 -0
- data/docs/Fox/FXHiliteStyle.html +804 -0
- data/docs/Fox/FXHorizontalFrame.html +359 -0
- data/docs/Fox/FXHorizontalSeparator.html +349 -0
- data/docs/Fox/FXICOIcon.html +450 -0
- data/docs/Fox/FXICOImage.html +434 -0
- data/docs/Fox/FXIcon.html +384 -0
- data/docs/Fox/FXIconDict.html +752 -0
- data/docs/Fox/FXIconItem.html +1518 -0
- data/docs/Fox/FXIconList.html +4676 -0
- data/docs/Fox/FXIconSource.html +963 -0
- data/docs/Fox/FXId.html +712 -0
- data/docs/Fox/FXImage.html +2328 -0
- data/docs/Fox/FXImageFrame.html +489 -0
- data/docs/Fox/FXImageView.html +504 -0
- data/docs/Fox/FXInputDialog.html +894 -0
- data/docs/Fox/FXIrb.html +942 -0
- data/docs/Fox/FXJPGIcon.html +607 -0
- data/docs/Fox/FXJPGImage.html +591 -0
- data/docs/Fox/FXKnob.html +1048 -0
- data/docs/Fox/FXLabel.html +1013 -0
- data/docs/Fox/FXLight.html +920 -0
- data/docs/Fox/FXList.html +3717 -0
- data/docs/Fox/FXListBox.html +2518 -0
- data/docs/Fox/FXListItem.html +1459 -0
- data/docs/Fox/FXMDIChild.html +2175 -0
- data/docs/Fox/FXMDIClient.html +781 -0
- data/docs/Fox/FXMDIDeleteButton.html +334 -0
- data/docs/Fox/FXMDIMaximizeButton.html +334 -0
- data/docs/Fox/FXMDIMenu.html +335 -0
- data/docs/Fox/FXMDIMinimizeButton.html +334 -0
- data/docs/Fox/FXMDIRestoreButton.html +334 -0
- data/docs/Fox/FXMDIWindowButton.html +334 -0
- data/docs/Fox/FXMainWindow.html +337 -0
- data/docs/Fox/FXMaterial.html +570 -0
- data/docs/Fox/FXMatrix.html +734 -0
- data/docs/Fox/FXMemoryBuffer.html +472 -0
- data/docs/Fox/FXMemoryStream.html +632 -0
- data/docs/Fox/FXMenuBar.html +347 -0
- data/docs/Fox/FXMenuButton.html +829 -0
- data/docs/Fox/FXMenuCaption.html +1080 -0
- data/docs/Fox/FXMenuCascade.html +388 -0
- data/docs/Fox/FXMenuCheck.html +721 -0
- data/docs/Fox/FXMenuCommand.html +400 -0
- data/docs/Fox/FXMenuPane.html +333 -0
- data/docs/Fox/FXMenuRadio.html +721 -0
- data/docs/Fox/FXMenuSeparator.html +440 -0
- data/docs/Fox/FXMenuTitle.html +405 -0
- data/docs/Fox/FXMessageBox.html +658 -0
- data/docs/Fox/FXObject.html +545 -0
- data/docs/Fox/FXOption.html +491 -0
- data/docs/Fox/FXOptionMenu.html +885 -0
- data/docs/Fox/FXPCXIcon.html +450 -0
- data/docs/Fox/FXPCXImage.html +434 -0
- data/docs/Fox/FXPNGIcon.html +524 -0
- data/docs/Fox/FXPNGImage.html +508 -0
- data/docs/Fox/FXPPMIcon.html +450 -0
- data/docs/Fox/FXPPMImage.html +373 -0
- data/docs/Fox/FXPSBounds.html +500 -0
- data/docs/Fox/FXPacker.html +1229 -0
- data/docs/Fox/FXPicker.html +345 -0
- data/docs/Fox/FXPopup.html +1099 -0
- data/docs/Fox/FXPrintDialog.html +485 -0
- data/docs/Fox/FXPrinter.html +1330 -0
- data/docs/Fox/FXProgressBar.html +1150 -0
- data/docs/Fox/FXProgressDialog.html +715 -0
- data/docs/Fox/FXPseudoKeyboard.html +428 -0
- data/docs/Fox/FXPseudoMouse.html +800 -0
- data/docs/Fox/FXPseudoTarget.html +472 -0
- data/docs/Fox/FXQuatd.html +1377 -0
- data/docs/Fox/FXQuatf.html +1392 -0
- data/docs/Fox/FXRGBIcon.html +450 -0
- data/docs/Fox/FXRGBImage.html +434 -0
- data/docs/Fox/FXRadioButton.html +885 -0
- data/docs/Fox/FXRanged.html +1522 -0
- data/docs/Fox/FXRangef.html +1522 -0
- data/docs/Fox/FXRealSlider.html +1187 -0
- data/docs/Fox/FXRealSpinner.html +2175 -0
- data/docs/Fox/FXRecentFiles.html +841 -0
- data/docs/Fox/FXRectangle.html +802 -0
- data/docs/Fox/FXRegion.html +841 -0
- data/docs/Fox/FXRegistry.html +682 -0
- data/docs/Fox/FXReplaceDialog.html +648 -0
- data/docs/Fox/FXRootWindow.html +312 -0
- data/docs/Fox/FXRuler.html +2000 -0
- data/docs/Fox/FXRulerView.html +3997 -0
- data/docs/Fox/FXScintilla.html +49117 -0
- data/docs/Fox/FXScrollArea.html +1363 -0
- data/docs/Fox/FXScrollBar.html +1019 -0
- data/docs/Fox/FXScrollCorner.html +290 -0
- data/docs/Fox/FXScrollPane.html +499 -0
- data/docs/Fox/FXScrollWindow.html +409 -0
- data/docs/Fox/FXSearchDialog.html +382 -0
- data/docs/Fox/FXSegment.html +422 -0
- data/docs/Fox/FXSeparator.html +402 -0
- data/docs/Fox/FXSettings.html +1861 -0
- data/docs/Fox/FXShell.html +233 -0
- data/docs/Fox/FXShutter.html +472 -0
- data/docs/Fox/FXShutterItem.html +669 -0
- data/docs/Fox/FXSize.html +592 -0
- data/docs/Fox/FXSlider.html +1129 -0
- data/docs/Fox/FXSphered.html +906 -0
- data/docs/Fox/FXSpheref.html +906 -0
- data/docs/Fox/FXSpinner.html +2102 -0
- data/docs/Fox/FXSplashScreen.html +497 -0
- data/docs/Fox/FXSplashWindow.html +494 -0
- data/docs/Fox/FXSplitter.html +643 -0
- data/docs/Fox/FXSpring.html +517 -0
- data/docs/Fox/FXStatusBar.html +593 -0
- data/docs/Fox/FXStatusLine.html +754 -0
- data/docs/Fox/FXStream.html +1372 -0
- data/docs/Fox/FXStreamAllocError.html +148 -0
- data/docs/Fox/FXStreamEndError.html +148 -0
- data/docs/Fox/FXStreamError.html +259 -0
- data/docs/Fox/FXStreamFailureError.html +148 -0
- data/docs/Fox/FXStreamFormatError.html +148 -0
- data/docs/Fox/FXStreamFullError.html +148 -0
- data/docs/Fox/FXStreamNoReadError.html +148 -0
- data/docs/Fox/FXStreamNoWriteError.html +148 -0
- data/docs/Fox/FXStreamUnknownError.html +148 -0
- data/docs/Fox/FXStringDict.html +552 -0
- data/docs/Fox/FXSwitcher.html +619 -0
- data/docs/Fox/FXTGAIcon.html +450 -0
- data/docs/Fox/FXTGAImage.html +434 -0
- data/docs/Fox/FXTIFIcon.html +604 -0
- data/docs/Fox/FXTIFImage.html +588 -0
- data/docs/Fox/FXTabBar.html +644 -0
- data/docs/Fox/FXTabBook.html +373 -0
- data/docs/Fox/FXTabItem.html +478 -0
- data/docs/Fox/FXTable.html +10107 -0
- data/docs/Fox/FXTableItem.html +2195 -0
- data/docs/Fox/FXTablePos.html +360 -0
- data/docs/Fox/FXTableRange.html +360 -0
- data/docs/Fox/FXText.html +6870 -0
- data/docs/Fox/FXTextChange.html +492 -0
- data/docs/Fox/FXTextField.html +2016 -0
- data/docs/Fox/FXToggleButton.html +844 -0
- data/docs/Fox/FXToolBar.html +452 -0
- data/docs/Fox/FXToolBarGrip.html +584 -0
- data/docs/Fox/FXToolBarShell.html +788 -0
- data/docs/Fox/FXToolBarTab.html +729 -0
- data/docs/Fox/FXToolTip.html +761 -0
- data/docs/Fox/FXTopWindow.html +1716 -0
- data/docs/Fox/FXTranslator.html +481 -0
- data/docs/Fox/FXTreeItem.html +2813 -0
- data/docs/Fox/FXTreeList.html +5095 -0
- data/docs/Fox/FXTreeListBox.html +3080 -0
- data/docs/Fox/FXTriStateButton.html +681 -0
- data/docs/Fox/FXUndoList.html +2560 -0
- data/docs/Fox/FXVec2d.html +1450 -0
- data/docs/Fox/FXVec2f.html +1442 -0
- data/docs/Fox/FXVec3d.html +1649 -0
- data/docs/Fox/FXVec3f.html +1649 -0
- data/docs/Fox/FXVec4d.html +1858 -0
- data/docs/Fox/FXVec4f.html +1858 -0
- data/docs/Fox/FXVerticalFrame.html +359 -0
- data/docs/Fox/FXVerticalSeparator.html +349 -0
- data/docs/Fox/FXViewport.html +780 -0
- data/docs/Fox/FXVisual.html +1023 -0
- data/docs/Fox/FXWindow.html +9948 -0
- data/docs/Fox/FXWizard.html +1052 -0
- data/docs/Fox/FXXBMIcon.html +453 -0
- data/docs/Fox/FXXBMImage.html +437 -0
- data/docs/Fox/FXXPMIcon.html +450 -0
- data/docs/Fox/FXXPMImage.html +434 -0
- data/docs/Fox/NotifyHeader.html +286 -0
- data/docs/Fox/SCNotification.html +1438 -0
- data/docs/Fox/TextRange.html +281 -0
- data/docs/Fox.html +11184 -0
- data/docs/IRB.html +204 -0
- data/docs/Responder.html +693 -0
- data/docs/Responder2.html +225 -0
- data/docs/_index.html +2101 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.History.html +869 -0
- data/docs/file.README.html +104 -0
- data/docs/file_list.html +66 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +614 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +31043 -0
- data/docs/top-level-namespace.html +214 -0
- data/examples/canvasdemo.rb +5 -1
- data/examples/gltest.rb +162 -106
- data/examples/glviewer.rb +12 -8
- data/ext/fox16_c/core_wrap.cpp +117 -115
- data/ext/fox16_c/dc_wrap.cpp +82 -60
- data/ext/fox16_c/dialogs_wrap.cpp +87 -67
- data/ext/fox16_c/extconf.rb +12 -12
- data/ext/fox16_c/frames_wrap.cpp +101 -75
- data/ext/fox16_c/fx3d_wrap.cpp +258 -302
- data/ext/fox16_c/iconlist_wrap.cpp +70 -52
- data/ext/fox16_c/icons_wrap.cpp +75 -55
- data/ext/fox16_c/image_wrap.cpp +75 -57
- data/ext/fox16_c/label_wrap.cpp +78 -60
- data/ext/fox16_c/layout_wrap.cpp +83 -65
- data/ext/fox16_c/list_wrap.cpp +70 -52
- data/ext/fox16_c/mdi_wrap.cpp +76 -58
- data/ext/fox16_c/menu_wrap.cpp +78 -60
- data/ext/fox16_c/scintilla_wrap.cpp +85 -61
- data/ext/fox16_c/swigruby.h +64 -46
- data/ext/fox16_c/table_wrap.cpp +80 -58
- data/ext/fox16_c/text_wrap.cpp +75 -55
- data/ext/fox16_c/treelist_wrap.cpp +71 -53
- data/ext/fox16_c/ui_wrap.cpp +101 -81
- data/fxruby.gemspec +1 -1
- data/lib/2.4/fox16_c.so +0 -0
- data/lib/2.5/fox16_c.so +0 -0
- data/lib/2.6/fox16_c.so +0 -0
- data/lib/2.7/fox16_c.so +0 -0
- data/lib/{2.2 → 3.0}/fox16_c.so +0 -0
- data/lib/fox16/aliases.rb +0 -0
- data/lib/fox16/bitmapview.rb +0 -0
- data/lib/fox16/calendar.rb +0 -0
- data/lib/fox16/canvas.rb +76 -45
- data/lib/fox16/chore.rb +0 -0
- data/lib/fox16/colors.rb +0 -0
- data/lib/fox16/core.rb +0 -0
- data/lib/fox16/dict.rb +0 -0
- data/lib/fox16/glgroup.rb +5 -5
- data/lib/fox16/glshapes.rb +111 -99
- data/lib/fox16/input.rb +0 -0
- data/lib/fox16/irb.rb +0 -0
- data/lib/fox16/iterators.rb +0 -0
- data/lib/fox16/keys.rb +0 -0
- data/lib/fox16/missingdep.rb +0 -0
- data/lib/fox16/pseudokeyboard.rb +0 -0
- data/lib/fox16/pseudomouse.rb +0 -0
- data/lib/fox16/responder.rb +0 -0
- data/lib/fox16/responder2.rb +0 -0
- data/lib/fox16/scintilla.rb +0 -0
- data/lib/fox16/settings.rb +0 -0
- data/lib/fox16/signal.rb +0 -0
- data/lib/fox16/timeout.rb +0 -0
- data/lib/fox16/tkcompat.rb +0 -0
- data/lib/fox16/undolist.rb +0 -0
- data/lib/fox16/version.rb +1 -1
- data/lib/fox16.rb +2 -4
- data/ports/x64-mingw32/bin/libFOX-1.6-0.dll +0 -0
- data/ports/x64-mingw32/bin/libfxscintilla-20.dll +0 -0
- data/ports/x64-mingw32/bin/libgcc_s_seh-1.dll +0 -0
- data/ports/x64-mingw32/bin/libjpeg-62.dll +0 -0
- data/ports/x64-mingw32/bin/libpng16-16.dll +0 -0
- data/ports/x64-mingw32/bin/libstdc++-6.dll +0 -0
- data/ports/x64-mingw32/bin/libtiff-5.dll +0 -0
- data/ports/x64-mingw32/bin/libwinpthread-1.dll +0 -0
- data/ports/x64-mingw32/bin/zlib1.dll +0 -0
- metadata +310 -20
- data/lib/2.3/fox16_c.so +0 -0
- data/ports/x86_64-w64-mingw32/bin/libFOX-1.6-0.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libfxscintilla-20.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libgcc_s_seh-1.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libjpeg-62.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libpng16-16.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libstdc++-6.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libtiff-5.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/libwinpthread-1.dll +0 -0
- data/ports/x86_64-w64-mingw32/bin/zlib1.dll +0 -0
@@ -0,0 +1,2560 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: Fox::FXUndoList
|
8
|
+
|
9
|
+
— FXRuby API Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Fox::FXUndoList";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (F)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">FXUndoList</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: Fox::FXUndoList
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next"><span class='object_link'><a href="FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></li>
|
78
|
+
|
79
|
+
<li class="next">Fox::FXUndoList</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
<dl>
|
93
|
+
<dt>Includes:</dt>
|
94
|
+
<dd><span class='object_link'><a href="../Responder.html" title="Responder (module)">Responder</a></span></dd>
|
95
|
+
</dl>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<dl>
|
103
|
+
<dt>Defined in:</dt>
|
104
|
+
<dd>lib/fox16/undolist.rb</dd>
|
105
|
+
</dl>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<h2>Overview</h2><div class="docstring">
|
110
|
+
<div class="discussion">
|
111
|
+
|
112
|
+
<p>The undo list manages a list of undoable (and redoable) commands for a FOX application; it works hand-in-hand with subclasses of FXCommand and is an application of the well-known <em>Command</em> pattern. Your application code should implement any number of command classes and then add then to an FXUndoList instance. For an example of how this works, see the textedit example program from the FXRuby distribution.</p>
|
113
|
+
|
114
|
+
<h2 id="label-Class+Constants">Class Constants</h2>
|
115
|
+
|
116
|
+
<p>[FXUndoList::ID_UNDO] Message identifier for the undo method. When a <code>SEL_COMMAND</code> message with this identifier is sent to an undo list, it undoes the last command. FXUndoList also provides a <code>SEL_UPDATE</code> handler for this identifier, that enables or disables the sender depending on whether it's possible to undo.</p>
|
117
|
+
|
118
|
+
<p>[FXUndoList::ID_UNDO_ALL] Message identifier for the “undo all” method. FXUndoList handles both the <code>SEL_COMMAND</code> and <code>SEL_UPDATE</code> messages for this message identifier.</p>
|
119
|
+
|
120
|
+
<p>[FXUndoList::ID_REDO] Message identifier for the redo method. When a <code>SEL_COMMAND</code> message with this identifier is sent to an undo list, it redoes the last command. FXUndoList also provides a <code>SEL_UPDATE</code> handler for this identifier, that enables or disables the sender depending on whether it's possible to redo.</p>
|
121
|
+
|
122
|
+
<p>[FXUndoList::ID_REDO_ALL] Message identifier for the “redo all” method. FXUndoList handles both the <code>SEL_COMMAND</code> and <code>SEL_UPDATE</code> messages for this message identifier.</p>
|
123
|
+
|
124
|
+
<p>[FXUndoList::ID_CLEAR] Message identifier for the “clear” method. FXUndoList handles both the <code>SEL_COMMAND</code> and <code>SEL_UPDATE</code> messages for this message identifier.</p>
|
125
|
+
|
126
|
+
<p>[FXUndoList::ID_REVERT] Message identifier for the “revert” method. FXUndoList handles both the <code>SEL_COMMAND</code> and <code>SEL_UPDATE</code> messages for this message identifier.</p>
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
<div class="tags">
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<h2>
|
143
|
+
Instance Method Summary
|
144
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
145
|
+
</h2>
|
146
|
+
|
147
|
+
<ul class="summary">
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature">
|
151
|
+
|
152
|
+
<a href="#add-instance_method" title="#add (instance method)">#<strong>add</strong>(command, doit = false) ⇒ Object </a>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</span>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<span class="summary_desc"><div class='inline'>
|
167
|
+
<p>Add new <em>command</em> (an FXCommand instance) to the list.</p>
|
168
|
+
</div></span>
|
169
|
+
|
170
|
+
</li>
|
171
|
+
|
172
|
+
|
173
|
+
<li class="public ">
|
174
|
+
<span class="summary_signature">
|
175
|
+
|
176
|
+
<a href="#canRedo%3F-instance_method" title="#canRedo? (instance method)">#<strong>canRedo?</strong> ⇒ Boolean </a>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
</span>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
191
|
+
<p>Return <code>true</code> if we can still redo some commands (i.e. the redo list is not empty).</p>
|
192
|
+
</div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#canRevert%3F-instance_method" title="#canRevert? (instance method)">#<strong>canRevert?</strong> ⇒ Boolean </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
215
|
+
<p>Return <code>true</code> if there is a previously marked state that we can revert to.</p>
|
216
|
+
</div></span>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
|
220
|
+
|
221
|
+
<li class="public ">
|
222
|
+
<span class="summary_signature">
|
223
|
+
|
224
|
+
<a href="#canUndo%3F-instance_method" title="#canUndo? (instance method)">#<strong>canUndo?</strong> ⇒ Boolean </a>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</span>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
<span class="summary_desc"><div class='inline'>
|
239
|
+
<p>Return <code>true</code> if we can still undo some commands (i.e. the undo list is not empty).</p>
|
240
|
+
</div></span>
|
241
|
+
|
242
|
+
</li>
|
243
|
+
|
244
|
+
|
245
|
+
<li class="public ">
|
246
|
+
<span class="summary_signature">
|
247
|
+
|
248
|
+
<a href="#clear-instance_method" title="#clear (instance method)">#<strong>clear</strong> ⇒ Object </a>
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
</span>
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
<span class="summary_desc"><div class='inline'>
|
263
|
+
<p>Clear the list.</p>
|
264
|
+
</div></span>
|
265
|
+
|
266
|
+
</li>
|
267
|
+
|
268
|
+
|
269
|
+
<li class="public ">
|
270
|
+
<span class="summary_signature">
|
271
|
+
|
272
|
+
<a href="#current-instance_method" title="#current (instance method)">#<strong>current</strong> ⇒ Object </a>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</span>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
<span class="summary_desc"><div class='inline'>
|
287
|
+
<p>Returns the current undo command.</p>
|
288
|
+
</div></span>
|
289
|
+
|
290
|
+
</li>
|
291
|
+
|
292
|
+
|
293
|
+
<li class="public ">
|
294
|
+
<span class="summary_signature">
|
295
|
+
|
296
|
+
<a href="#cut-instance_method" title="#cut (instance method)">#<strong>cut</strong> ⇒ Object </a>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
</span>
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
<span class="summary_desc"><div class='inline'>
|
311
|
+
<p>Cut the redo list.</p>
|
312
|
+
</div></span>
|
313
|
+
|
314
|
+
</li>
|
315
|
+
|
316
|
+
|
317
|
+
<li class="public ">
|
318
|
+
<span class="summary_signature">
|
319
|
+
|
320
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ FXUndoList </a>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
</span>
|
325
|
+
|
326
|
+
|
327
|
+
<span class="note title constructor">constructor</span>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
<span class="summary_desc"><div class='inline'>
|
337
|
+
<p>Returns an initialized FXUndoList instance.</p>
|
338
|
+
</div></span>
|
339
|
+
|
340
|
+
</li>
|
341
|
+
|
342
|
+
|
343
|
+
<li class="public ">
|
344
|
+
<span class="summary_signature">
|
345
|
+
|
346
|
+
<a href="#mark-instance_method" title="#mark (instance method)">#<strong>mark</strong> ⇒ Object </a>
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
</span>
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
<span class="summary_desc"><div class='inline'>
|
361
|
+
<p>Mark current state.</p>
|
362
|
+
</div></span>
|
363
|
+
|
364
|
+
</li>
|
365
|
+
|
366
|
+
|
367
|
+
<li class="public ">
|
368
|
+
<span class="summary_signature">
|
369
|
+
|
370
|
+
<a href="#marked%3F-instance_method" title="#marked? (instance method)">#<strong>marked?</strong> ⇒ Boolean </a>
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
</span>
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
<span class="summary_desc"><div class='inline'>
|
385
|
+
<p>Return <code>true</code> if the undo list is marked.</p>
|
386
|
+
</div></span>
|
387
|
+
|
388
|
+
</li>
|
389
|
+
|
390
|
+
|
391
|
+
<li class="public ">
|
392
|
+
<span class="summary_signature">
|
393
|
+
|
394
|
+
<a href="#onCmdClear-instance_method" title="#onCmdClear (instance method)">#<strong>onCmdClear</strong>(sender, sel, ptr) ⇒ Object </a>
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
</span>
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
<span class="summary_desc"><div class='inline'>
|
409
|
+
<p>:nodoc:.</p>
|
410
|
+
</div></span>
|
411
|
+
|
412
|
+
</li>
|
413
|
+
|
414
|
+
|
415
|
+
<li class="public ">
|
416
|
+
<span class="summary_signature">
|
417
|
+
|
418
|
+
<a href="#onCmdRedo-instance_method" title="#onCmdRedo (instance method)">#<strong>onCmdRedo</strong>(sender, sel, ptr) ⇒ Object </a>
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
</span>
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
<span class="summary_desc"><div class='inline'>
|
433
|
+
<p>:nodoc:.</p>
|
434
|
+
</div></span>
|
435
|
+
|
436
|
+
</li>
|
437
|
+
|
438
|
+
|
439
|
+
<li class="public ">
|
440
|
+
<span class="summary_signature">
|
441
|
+
|
442
|
+
<a href="#onCmdRedoAll-instance_method" title="#onCmdRedoAll (instance method)">#<strong>onCmdRedoAll</strong>(sender, sel, ptr) ⇒ Object </a>
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
</span>
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
<span class="summary_desc"><div class='inline'>
|
457
|
+
<p>:nodoc:.</p>
|
458
|
+
</div></span>
|
459
|
+
|
460
|
+
</li>
|
461
|
+
|
462
|
+
|
463
|
+
<li class="public ">
|
464
|
+
<span class="summary_signature">
|
465
|
+
|
466
|
+
<a href="#onCmdRevert-instance_method" title="#onCmdRevert (instance method)">#<strong>onCmdRevert</strong>(sender, sel, ptr) ⇒ Object </a>
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
</span>
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
<span class="summary_desc"><div class='inline'>
|
481
|
+
<p>:nodoc:.</p>
|
482
|
+
</div></span>
|
483
|
+
|
484
|
+
</li>
|
485
|
+
|
486
|
+
|
487
|
+
<li class="public ">
|
488
|
+
<span class="summary_signature">
|
489
|
+
|
490
|
+
<a href="#onCmdUndo-instance_method" title="#onCmdUndo (instance method)">#<strong>onCmdUndo</strong>(sender, sel, ptr) ⇒ Object </a>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
</span>
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
<span class="summary_desc"><div class='inline'>
|
505
|
+
<p>:nodoc:.</p>
|
506
|
+
</div></span>
|
507
|
+
|
508
|
+
</li>
|
509
|
+
|
510
|
+
|
511
|
+
<li class="public ">
|
512
|
+
<span class="summary_signature">
|
513
|
+
|
514
|
+
<a href="#onCmdUndoAll-instance_method" title="#onCmdUndoAll (instance method)">#<strong>onCmdUndoAll</strong>(sender, sel, ptr) ⇒ Object </a>
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
</span>
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
<span class="summary_desc"><div class='inline'>
|
529
|
+
<p>:nodoc:.</p>
|
530
|
+
</div></span>
|
531
|
+
|
532
|
+
</li>
|
533
|
+
|
534
|
+
|
535
|
+
<li class="public ">
|
536
|
+
<span class="summary_signature">
|
537
|
+
|
538
|
+
<a href="#onUpdClear-instance_method" title="#onUpdClear (instance method)">#<strong>onUpdClear</strong>(sender, sel, ptr) ⇒ Object </a>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
</span>
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
<span class="summary_desc"><div class='inline'>
|
553
|
+
<p>:nodoc:.</p>
|
554
|
+
</div></span>
|
555
|
+
|
556
|
+
</li>
|
557
|
+
|
558
|
+
|
559
|
+
<li class="public ">
|
560
|
+
<span class="summary_signature">
|
561
|
+
|
562
|
+
<a href="#onUpdRedo-instance_method" title="#onUpdRedo (instance method)">#<strong>onUpdRedo</strong>(sender, sel, ptr) ⇒ Object </a>
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
</span>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
<span class="summary_desc"><div class='inline'>
|
577
|
+
<p>:nodoc:.</p>
|
578
|
+
</div></span>
|
579
|
+
|
580
|
+
</li>
|
581
|
+
|
582
|
+
|
583
|
+
<li class="public ">
|
584
|
+
<span class="summary_signature">
|
585
|
+
|
586
|
+
<a href="#onUpdRevert-instance_method" title="#onUpdRevert (instance method)">#<strong>onUpdRevert</strong>(sender, sel, ptr) ⇒ Object </a>
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
</span>
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
<span class="summary_desc"><div class='inline'>
|
601
|
+
<p>:nodoc:.</p>
|
602
|
+
</div></span>
|
603
|
+
|
604
|
+
</li>
|
605
|
+
|
606
|
+
|
607
|
+
<li class="public ">
|
608
|
+
<span class="summary_signature">
|
609
|
+
|
610
|
+
<a href="#onUpdUndo-instance_method" title="#onUpdUndo (instance method)">#<strong>onUpdUndo</strong>(sender, sel, ptr) ⇒ Object </a>
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
</span>
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
<span class="summary_desc"><div class='inline'>
|
625
|
+
<p>:nodoc:.</p>
|
626
|
+
</div></span>
|
627
|
+
|
628
|
+
</li>
|
629
|
+
|
630
|
+
|
631
|
+
<li class="public ">
|
632
|
+
<span class="summary_signature">
|
633
|
+
|
634
|
+
<a href="#redo-instance_method" title="#redo (instance method)">#<strong>redo</strong> ⇒ Object </a>
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
</span>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
<span class="summary_desc"><div class='inline'>
|
649
|
+
<p>Redo next command.</p>
|
650
|
+
</div></span>
|
651
|
+
|
652
|
+
</li>
|
653
|
+
|
654
|
+
|
655
|
+
<li class="public ">
|
656
|
+
<span class="summary_signature">
|
657
|
+
|
658
|
+
<a href="#redoAll-instance_method" title="#redoAll (instance method)">#<strong>redoAll</strong> ⇒ Object </a>
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
</span>
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
<span class="summary_desc"><div class='inline'>
|
673
|
+
<p>Redo all commands.</p>
|
674
|
+
</div></span>
|
675
|
+
|
676
|
+
</li>
|
677
|
+
|
678
|
+
|
679
|
+
<li class="public ">
|
680
|
+
<span class="summary_signature">
|
681
|
+
|
682
|
+
<a href="#redoName-instance_method" title="#redoName (instance method)">#<strong>redoName</strong> ⇒ Object </a>
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
</span>
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
<span class="summary_desc"><div class='inline'>
|
697
|
+
<p>Return the name of the first available redo command.</p>
|
698
|
+
</div></span>
|
699
|
+
|
700
|
+
</li>
|
701
|
+
|
702
|
+
|
703
|
+
<li class="public ">
|
704
|
+
<span class="summary_signature">
|
705
|
+
|
706
|
+
<a href="#revert-instance_method" title="#revert (instance method)">#<strong>revert</strong> ⇒ Object </a>
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
</span>
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
<span class="summary_desc"><div class='inline'>
|
721
|
+
<p>Revert to marked.</p>
|
722
|
+
</div></span>
|
723
|
+
|
724
|
+
</li>
|
725
|
+
|
726
|
+
|
727
|
+
<li class="public ">
|
728
|
+
<span class="summary_signature">
|
729
|
+
|
730
|
+
<a href="#trimCount-instance_method" title="#trimCount (instance method)">#<strong>trimCount</strong>(nc) ⇒ Object </a>
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
</span>
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
<span class="summary_desc"><div class='inline'>
|
745
|
+
<p>Trim undo list down to at most <em>nc</em> commands.</p>
|
746
|
+
</div></span>
|
747
|
+
|
748
|
+
</li>
|
749
|
+
|
750
|
+
|
751
|
+
<li class="public ">
|
752
|
+
<span class="summary_signature">
|
753
|
+
|
754
|
+
<a href="#trimSize-instance_method" title="#trimSize (instance method)">#<strong>trimSize</strong>(sz) ⇒ Object </a>
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
</span>
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
<span class="summary_desc"><div class='inline'>
|
769
|
+
<p>Trim undo list down to at most <em>size</em>.</p>
|
770
|
+
</div></span>
|
771
|
+
|
772
|
+
</li>
|
773
|
+
|
774
|
+
|
775
|
+
<li class="public ">
|
776
|
+
<span class="summary_signature">
|
777
|
+
|
778
|
+
<a href="#undo-instance_method" title="#undo (instance method)">#<strong>undo</strong> ⇒ Object </a>
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
</span>
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
<span class="summary_desc"><div class='inline'>
|
793
|
+
<p>Undo last command.</p>
|
794
|
+
</div></span>
|
795
|
+
|
796
|
+
</li>
|
797
|
+
|
798
|
+
|
799
|
+
<li class="public ">
|
800
|
+
<span class="summary_signature">
|
801
|
+
|
802
|
+
<a href="#undoAll-instance_method" title="#undoAll (instance method)">#<strong>undoAll</strong> ⇒ Object </a>
|
803
|
+
|
804
|
+
|
805
|
+
|
806
|
+
</span>
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
<span class="summary_desc"><div class='inline'>
|
817
|
+
<p>Undo all commands.</p>
|
818
|
+
</div></span>
|
819
|
+
|
820
|
+
</li>
|
821
|
+
|
822
|
+
|
823
|
+
<li class="public ">
|
824
|
+
<span class="summary_signature">
|
825
|
+
|
826
|
+
<a href="#undoCount-instance_method" title="#undoCount (instance method)">#<strong>undoCount</strong> ⇒ Object </a>
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
</span>
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
<span class="summary_desc"><div class='inline'>
|
841
|
+
<p>Returns the number of undo records.</p>
|
842
|
+
</div></span>
|
843
|
+
|
844
|
+
</li>
|
845
|
+
|
846
|
+
|
847
|
+
<li class="public ">
|
848
|
+
<span class="summary_signature">
|
849
|
+
|
850
|
+
<a href="#undoName-instance_method" title="#undoName (instance method)">#<strong>undoName</strong> ⇒ Object </a>
|
851
|
+
|
852
|
+
|
853
|
+
|
854
|
+
</span>
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
<span class="summary_desc"><div class='inline'>
|
865
|
+
<p>Return the name of the first available undo command.</p>
|
866
|
+
</div></span>
|
867
|
+
|
868
|
+
</li>
|
869
|
+
|
870
|
+
|
871
|
+
<li class="public ">
|
872
|
+
<span class="summary_signature">
|
873
|
+
|
874
|
+
<a href="#undoSize-instance_method" title="#undoSize (instance method)">#<strong>undoSize</strong> ⇒ Object </a>
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
</span>
|
879
|
+
|
880
|
+
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
|
888
|
+
<span class="summary_desc"><div class='inline'>
|
889
|
+
<p>Returns the total size of undo information.</p>
|
890
|
+
</div></span>
|
891
|
+
|
892
|
+
</li>
|
893
|
+
|
894
|
+
|
895
|
+
<li class="public ">
|
896
|
+
<span class="summary_signature">
|
897
|
+
|
898
|
+
<a href="#unmark-instance_method" title="#unmark (instance method)">#<strong>unmark</strong> ⇒ Object </a>
|
899
|
+
|
900
|
+
|
901
|
+
|
902
|
+
</span>
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
<span class="summary_desc"><div class='inline'>
|
913
|
+
<p>Unmark undo list.</p>
|
914
|
+
</div></span>
|
915
|
+
|
916
|
+
</li>
|
917
|
+
|
918
|
+
|
919
|
+
</ul>
|
920
|
+
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
|
925
|
+
|
926
|
+
|
927
|
+
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Responder.html" title="Responder (module)">Responder</a></span></h3>
|
932
|
+
<p class="inherited"><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">#FXMAPFUNC</a></span>, <span class='object_link'><a href="../Responder.html#FXMAPFUNCS-instance_method" title="Responder#FXMAPFUNCS (method)">#FXMAPFUNCS</a></span>, <span class='object_link'><a href="../Responder.html#FXMAPTYPE-instance_method" title="Responder#FXMAPTYPE (method)">#FXMAPTYPE</a></span>, <span class='object_link'><a href="../Responder.html#FXMAPTYPES-instance_method" title="Responder#FXMAPTYPES (method)">#FXMAPTYPES</a></span>, <span class='object_link'><a href="../Responder.html#addMapEntry-instance_method" title="Responder#addMapEntry (method)">#addMapEntry</a></span>, <span class='object_link'><a href="../Responder.html#assocIndex-instance_method" title="Responder#assocIndex (method)">#assocIndex</a></span>, <span class='object_link'><a href="../Responder.html#identifier-instance_method" title="Responder#identifier (method)">#identifier</a></span>, <span class='object_link'><a href="../Responder.html#messageMap-instance_method" title="Responder#messageMap (method)">#messageMap</a></span></p>
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></h3>
|
943
|
+
<p class="inherited"><span class='object_link'><a href="FXObject.html#bind-instance_method" title="Fox::FXObject#bind (method)">#bind</a></span>, <span class='object_link'><a href="FXObject.html#handle-instance_method" title="Fox::FXObject#handle (method)">#handle</a></span>, <span class='object_link'><a href="FXObject.html#load-instance_method" title="Fox::FXObject#load (method)">#load</a></span>, <span class='object_link'><a href="FXObject.html#save-instance_method" title="Fox::FXObject#save (method)">#save</a></span>, <span class='object_link'><a href="FXObject.html#subclasses-class_method" title="Fox::FXObject.subclasses (method)">subclasses</a></span></p>
|
944
|
+
<div id="constructor_details" class="method_details_list">
|
945
|
+
<h2>Constructor Details</h2>
|
946
|
+
|
947
|
+
<div class="method_details first">
|
948
|
+
<h3 class="signature first" id="initialize-instance_method">
|
949
|
+
|
950
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="Fox::FXUndoList (class)">FXUndoList</a></span></tt>
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
</h3><div class="docstring">
|
957
|
+
<div class="discussion">
|
958
|
+
|
959
|
+
<p>Returns an initialized FXUndoList instance.</p>
|
960
|
+
|
961
|
+
|
962
|
+
</div>
|
963
|
+
</div>
|
964
|
+
<div class="tags">
|
965
|
+
|
966
|
+
|
967
|
+
</div><table class="source_code">
|
968
|
+
<tr>
|
969
|
+
<td>
|
970
|
+
<pre class="lines">
|
971
|
+
|
972
|
+
|
973
|
+
94
|
974
|
+
95
|
975
|
+
96
|
976
|
+
97
|
977
|
+
98
|
978
|
+
99
|
979
|
+
100
|
980
|
+
101
|
981
|
+
102
|
982
|
+
103
|
983
|
+
104
|
984
|
+
105
|
985
|
+
106
|
986
|
+
107
|
987
|
+
108
|
988
|
+
109
|
989
|
+
110
|
990
|
+
111
|
991
|
+
112
|
992
|
+
113
|
993
|
+
114
|
994
|
+
115
|
995
|
+
116
|
996
|
+
117</pre>
|
997
|
+
</td>
|
998
|
+
<td>
|
999
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 94</span>
|
1000
|
+
|
1001
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='comment'># Be sure to call base class initialize
|
1002
|
+
</span>
|
1003
|
+
<span class='kw'>super</span>
|
1004
|
+
|
1005
|
+
<span class='comment'># Set up the message map for this instance
|
1006
|
+
</span> <span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_CLEAR</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdClear</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1007
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_CLEAR</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdClear</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1008
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_REVERT</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdRevert</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1009
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_REVERT</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdRevert</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1010
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_UNDO</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdUndo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1011
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_UNDO</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdUndo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1012
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_REDO</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdRedo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1013
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_REDO</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdRedo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1014
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_UNDO_ALL</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdUndoAll</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1015
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_UNDO_ALL</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdUndo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1016
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span> <span class='const'>ID_REDO_ALL</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onCmdRedoAll</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1017
|
+
<span class='const'><span class='object_link'><a href="../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_UPDATE</span><span class='comma'>,</span> <span class='const'>ID_REDO_ALL</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>onUpdRedo</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1018
|
+
|
1019
|
+
<span class='comment'># Instance variables
|
1020
|
+
</span> <span class='ivar'>@undolist</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1021
|
+
<span class='ivar'>@redolist</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1022
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1023
|
+
<span class='ivar'>@size</span> <span class='op'>=</span> <span class='int'>0</span>
|
1024
|
+
<span class='kw'>end</span></pre>
|
1025
|
+
</td>
|
1026
|
+
</tr>
|
1027
|
+
</table>
|
1028
|
+
</div>
|
1029
|
+
|
1030
|
+
</div>
|
1031
|
+
|
1032
|
+
|
1033
|
+
<div id="instance_method_details" class="method_details_list">
|
1034
|
+
<h2>Instance Method Details</h2>
|
1035
|
+
|
1036
|
+
|
1037
|
+
<div class="method_details first">
|
1038
|
+
<h3 class="signature first" id="add-instance_method">
|
1039
|
+
|
1040
|
+
#<strong>add</strong>(command, doit = false) ⇒ <tt>Object</tt>
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
</h3><div class="docstring">
|
1047
|
+
<div class="discussion">
|
1048
|
+
|
1049
|
+
<p>Add new <em>command</em> (an FXCommand instance) to the list. If <em>doit</em> is <code>true</code>, the command is also executed.</p>
|
1050
|
+
|
1051
|
+
|
1052
|
+
</div>
|
1053
|
+
</div>
|
1054
|
+
<div class="tags">
|
1055
|
+
|
1056
|
+
|
1057
|
+
</div><table class="source_code">
|
1058
|
+
<tr>
|
1059
|
+
<td>
|
1060
|
+
<pre class="lines">
|
1061
|
+
|
1062
|
+
|
1063
|
+
133
|
1064
|
+
134
|
1065
|
+
135
|
1066
|
+
136
|
1067
|
+
137
|
1068
|
+
138
|
1069
|
+
139
|
1070
|
+
140
|
1071
|
+
141
|
1072
|
+
142
|
1073
|
+
143
|
1074
|
+
144
|
1075
|
+
145
|
1076
|
+
146
|
1077
|
+
147
|
1078
|
+
148
|
1079
|
+
149
|
1080
|
+
150
|
1081
|
+
151
|
1082
|
+
152
|
1083
|
+
153
|
1084
|
+
154</pre>
|
1085
|
+
</td>
|
1086
|
+
<td>
|
1087
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 133</span>
|
1088
|
+
|
1089
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_doit'>doit</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
|
1090
|
+
<span class='comment'># Cut redo list
|
1091
|
+
</span> <span class='id identifier rubyid_cut'>cut</span>
|
1092
|
+
|
1093
|
+
<span class='comment'># No command given?
|
1094
|
+
</span> <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1095
|
+
|
1096
|
+
<span class='comment'># Add it to the end of the undo list
|
1097
|
+
</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
1098
|
+
|
1099
|
+
<span class='comment'># Execute it right now?
|
1100
|
+
</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_redo'>redo</span> <span class='kw'>if</span> <span class='id identifier rubyid_doit'>doit</span>
|
1101
|
+
|
1102
|
+
<span class='comment'># Update size
|
1103
|
+
</span> <span class='ivar'>@size</span> <span class='op'>+=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='comment'># measured after redo
|
1104
|
+
</span>
|
1105
|
+
<span class='comment'># Update the mark distance
|
1106
|
+
</span> <span class='ivar'>@marker</span> <span class='op'>=</span> <span class='ivar'>@marker</span> <span class='op'>+</span> <span class='int'>1</span> <span class='kw'>unless</span> <span class='ivar'>@marker</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1107
|
+
|
1108
|
+
<span class='comment'># Done
|
1109
|
+
</span> <span class='kw'>return</span> <span class='kw'>true</span>
|
1110
|
+
<span class='kw'>end</span></pre>
|
1111
|
+
</td>
|
1112
|
+
</tr>
|
1113
|
+
</table>
|
1114
|
+
</div>
|
1115
|
+
|
1116
|
+
<div class="method_details ">
|
1117
|
+
<h3 class="signature " id="canRedo?-instance_method">
|
1118
|
+
|
1119
|
+
#<strong>canRedo?</strong> ⇒ <tt>Boolean</tt>
|
1120
|
+
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
</h3><div class="docstring">
|
1126
|
+
<div class="discussion">
|
1127
|
+
|
1128
|
+
<p>Return <code>true</code> if we can still redo some commands (i.e. the redo list is not empty).</p>
|
1129
|
+
|
1130
|
+
|
1131
|
+
</div>
|
1132
|
+
</div>
|
1133
|
+
<div class="tags">
|
1134
|
+
|
1135
|
+
<p class="tag_title">Returns:</p>
|
1136
|
+
<ul class="return">
|
1137
|
+
|
1138
|
+
<li>
|
1139
|
+
|
1140
|
+
|
1141
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
</li>
|
1146
|
+
|
1147
|
+
</ul>
|
1148
|
+
|
1149
|
+
</div><table class="source_code">
|
1150
|
+
<tr>
|
1151
|
+
<td>
|
1152
|
+
<pre class="lines">
|
1153
|
+
|
1154
|
+
|
1155
|
+
224
|
1156
|
+
225
|
1157
|
+
226</pre>
|
1158
|
+
</td>
|
1159
|
+
<td>
|
1160
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 224</span>
|
1161
|
+
|
1162
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_canRedo?'>canRedo?</span>
|
1163
|
+
<span class='lparen'>(</span><span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>==</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
1164
|
+
<span class='kw'>end</span></pre>
|
1165
|
+
</td>
|
1166
|
+
</tr>
|
1167
|
+
</table>
|
1168
|
+
</div>
|
1169
|
+
|
1170
|
+
<div class="method_details ">
|
1171
|
+
<h3 class="signature " id="canRevert?-instance_method">
|
1172
|
+
|
1173
|
+
#<strong>canRevert?</strong> ⇒ <tt>Boolean</tt>
|
1174
|
+
|
1175
|
+
|
1176
|
+
|
1177
|
+
|
1178
|
+
|
1179
|
+
</h3><div class="docstring">
|
1180
|
+
<div class="discussion">
|
1181
|
+
|
1182
|
+
<p>Return <code>true</code> if there is a previously marked state that we can revert to.</p>
|
1183
|
+
|
1184
|
+
|
1185
|
+
</div>
|
1186
|
+
</div>
|
1187
|
+
<div class="tags">
|
1188
|
+
|
1189
|
+
<p class="tag_title">Returns:</p>
|
1190
|
+
<ul class="return">
|
1191
|
+
|
1192
|
+
<li>
|
1193
|
+
|
1194
|
+
|
1195
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1196
|
+
|
1197
|
+
|
1198
|
+
|
1199
|
+
</li>
|
1200
|
+
|
1201
|
+
</ul>
|
1202
|
+
|
1203
|
+
</div><table class="source_code">
|
1204
|
+
<tr>
|
1205
|
+
<td>
|
1206
|
+
<pre class="lines">
|
1207
|
+
|
1208
|
+
|
1209
|
+
232
|
1210
|
+
233
|
1211
|
+
234</pre>
|
1212
|
+
</td>
|
1213
|
+
<td>
|
1214
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 232</span>
|
1215
|
+
|
1216
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_canRevert?'>canRevert?</span>
|
1217
|
+
<span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'>!=</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span>
|
1218
|
+
<span class='kw'>end</span></pre>
|
1219
|
+
</td>
|
1220
|
+
</tr>
|
1221
|
+
</table>
|
1222
|
+
</div>
|
1223
|
+
|
1224
|
+
<div class="method_details ">
|
1225
|
+
<h3 class="signature " id="canUndo?-instance_method">
|
1226
|
+
|
1227
|
+
#<strong>canUndo?</strong> ⇒ <tt>Boolean</tt>
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
1233
|
+
</h3><div class="docstring">
|
1234
|
+
<div class="discussion">
|
1235
|
+
|
1236
|
+
<p>Return <code>true</code> if we can still undo some commands (i.e. the undo list is not empty).</p>
|
1237
|
+
|
1238
|
+
|
1239
|
+
</div>
|
1240
|
+
</div>
|
1241
|
+
<div class="tags">
|
1242
|
+
|
1243
|
+
<p class="tag_title">Returns:</p>
|
1244
|
+
<ul class="return">
|
1245
|
+
|
1246
|
+
<li>
|
1247
|
+
|
1248
|
+
|
1249
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
</li>
|
1254
|
+
|
1255
|
+
</ul>
|
1256
|
+
|
1257
|
+
</div><table class="source_code">
|
1258
|
+
<tr>
|
1259
|
+
<td>
|
1260
|
+
<pre class="lines">
|
1261
|
+
|
1262
|
+
|
1263
|
+
216
|
1264
|
+
217
|
1265
|
+
218</pre>
|
1266
|
+
</td>
|
1267
|
+
<td>
|
1268
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 216</span>
|
1269
|
+
|
1270
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_canUndo?'>canUndo?</span>
|
1271
|
+
<span class='lparen'>(</span><span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>==</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
1272
|
+
<span class='kw'>end</span></pre>
|
1273
|
+
</td>
|
1274
|
+
</tr>
|
1275
|
+
</table>
|
1276
|
+
</div>
|
1277
|
+
|
1278
|
+
<div class="method_details ">
|
1279
|
+
<h3 class="signature " id="clear-instance_method">
|
1280
|
+
|
1281
|
+
#<strong>clear</strong> ⇒ <tt>Object</tt>
|
1282
|
+
|
1283
|
+
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
</h3><div class="docstring">
|
1288
|
+
<div class="discussion">
|
1289
|
+
|
1290
|
+
<p>Clear the list</p>
|
1291
|
+
|
1292
|
+
|
1293
|
+
</div>
|
1294
|
+
</div>
|
1295
|
+
<div class="tags">
|
1296
|
+
|
1297
|
+
|
1298
|
+
</div><table class="source_code">
|
1299
|
+
<tr>
|
1300
|
+
<td>
|
1301
|
+
<pre class="lines">
|
1302
|
+
|
1303
|
+
|
1304
|
+
284
|
1305
|
+
285
|
1306
|
+
286
|
1307
|
+
287
|
1308
|
+
288
|
1309
|
+
289</pre>
|
1310
|
+
</td>
|
1311
|
+
<td>
|
1312
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 284</span>
|
1313
|
+
|
1314
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span>
|
1315
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
1316
|
+
<span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
1317
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1318
|
+
<span class='ivar'>@size</span> <span class='op'>=</span> <span class='int'>0</span>
|
1319
|
+
<span class='kw'>end</span></pre>
|
1320
|
+
</td>
|
1321
|
+
</tr>
|
1322
|
+
</table>
|
1323
|
+
</div>
|
1324
|
+
|
1325
|
+
<div class="method_details ">
|
1326
|
+
<h3 class="signature " id="current-instance_method">
|
1327
|
+
|
1328
|
+
#<strong>current</strong> ⇒ <tt>Object</tt>
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
|
1333
|
+
|
1334
|
+
</h3><div class="docstring">
|
1335
|
+
<div class="discussion">
|
1336
|
+
|
1337
|
+
<p>Returns the current undo command.</p>
|
1338
|
+
|
1339
|
+
|
1340
|
+
</div>
|
1341
|
+
</div>
|
1342
|
+
<div class="tags">
|
1343
|
+
|
1344
|
+
|
1345
|
+
</div><table class="source_code">
|
1346
|
+
<tr>
|
1347
|
+
<td>
|
1348
|
+
<pre class="lines">
|
1349
|
+
|
1350
|
+
|
1351
|
+
239
|
1352
|
+
240
|
1353
|
+
241</pre>
|
1354
|
+
</td>
|
1355
|
+
<td>
|
1356
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 239</span>
|
1357
|
+
|
1358
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_current'>current</span>
|
1359
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
1360
|
+
<span class='kw'>end</span></pre>
|
1361
|
+
</td>
|
1362
|
+
</tr>
|
1363
|
+
</table>
|
1364
|
+
</div>
|
1365
|
+
|
1366
|
+
<div class="method_details ">
|
1367
|
+
<h3 class="signature " id="cut-instance_method">
|
1368
|
+
|
1369
|
+
#<strong>cut</strong> ⇒ <tt>Object</tt>
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
</h3><div class="docstring">
|
1376
|
+
<div class="discussion">
|
1377
|
+
|
1378
|
+
<p>Cut the redo list</p>
|
1379
|
+
|
1380
|
+
|
1381
|
+
</div>
|
1382
|
+
</div>
|
1383
|
+
<div class="tags">
|
1384
|
+
|
1385
|
+
|
1386
|
+
</div><table class="source_code">
|
1387
|
+
<tr>
|
1388
|
+
<td>
|
1389
|
+
<pre class="lines">
|
1390
|
+
|
1391
|
+
|
1392
|
+
122
|
1393
|
+
123
|
1394
|
+
124
|
1395
|
+
125
|
1396
|
+
126
|
1397
|
+
127</pre>
|
1398
|
+
</td>
|
1399
|
+
<td>
|
1400
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 122</span>
|
1401
|
+
|
1402
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cut'>cut</span>
|
1403
|
+
<span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
1404
|
+
<span class='kw'>unless</span> <span class='ivar'>@marker</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1405
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@marker</span> <span class='op'><</span> <span class='int'>0</span>
|
1406
|
+
<span class='kw'>end</span>
|
1407
|
+
<span class='kw'>end</span></pre>
|
1408
|
+
</td>
|
1409
|
+
</tr>
|
1410
|
+
</table>
|
1411
|
+
</div>
|
1412
|
+
|
1413
|
+
<div class="method_details ">
|
1414
|
+
<h3 class="signature " id="mark-instance_method">
|
1415
|
+
|
1416
|
+
#<strong>mark</strong> ⇒ <tt>Object</tt>
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
|
1421
|
+
|
1422
|
+
</h3><div class="docstring">
|
1423
|
+
<div class="discussion">
|
1424
|
+
|
1425
|
+
<p>Mark current state</p>
|
1426
|
+
|
1427
|
+
|
1428
|
+
</div>
|
1429
|
+
</div>
|
1430
|
+
<div class="tags">
|
1431
|
+
|
1432
|
+
|
1433
|
+
</div><table class="source_code">
|
1434
|
+
<tr>
|
1435
|
+
<td>
|
1436
|
+
<pre class="lines">
|
1437
|
+
|
1438
|
+
|
1439
|
+
322
|
1440
|
+
323
|
1441
|
+
324</pre>
|
1442
|
+
</td>
|
1443
|
+
<td>
|
1444
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 322</span>
|
1445
|
+
|
1446
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mark'>mark</span>
|
1447
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='int'>0</span>
|
1448
|
+
<span class='kw'>end</span></pre>
|
1449
|
+
</td>
|
1450
|
+
</tr>
|
1451
|
+
</table>
|
1452
|
+
</div>
|
1453
|
+
|
1454
|
+
<div class="method_details ">
|
1455
|
+
<h3 class="signature " id="marked?-instance_method">
|
1456
|
+
|
1457
|
+
#<strong>marked?</strong> ⇒ <tt>Boolean</tt>
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
1463
|
+
</h3><div class="docstring">
|
1464
|
+
<div class="discussion">
|
1465
|
+
|
1466
|
+
<p>Return <code>true</code> if the undo list is marked.</p>
|
1467
|
+
|
1468
|
+
|
1469
|
+
</div>
|
1470
|
+
</div>
|
1471
|
+
<div class="tags">
|
1472
|
+
|
1473
|
+
<p class="tag_title">Returns:</p>
|
1474
|
+
<ul class="return">
|
1475
|
+
|
1476
|
+
<li>
|
1477
|
+
|
1478
|
+
|
1479
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
1483
|
+
</li>
|
1484
|
+
|
1485
|
+
</ul>
|
1486
|
+
|
1487
|
+
</div><table class="source_code">
|
1488
|
+
<tr>
|
1489
|
+
<td>
|
1490
|
+
<pre class="lines">
|
1491
|
+
|
1492
|
+
|
1493
|
+
336
|
1494
|
+
337
|
1495
|
+
338</pre>
|
1496
|
+
</td>
|
1497
|
+
<td>
|
1498
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 336</span>
|
1499
|
+
|
1500
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_marked?'>marked?</span>
|
1501
|
+
<span class='ivar'>@marker</span> <span class='op'>==</span> <span class='int'>0</span>
|
1502
|
+
<span class='kw'>end</span></pre>
|
1503
|
+
</td>
|
1504
|
+
</tr>
|
1505
|
+
</table>
|
1506
|
+
</div>
|
1507
|
+
|
1508
|
+
<div class="method_details ">
|
1509
|
+
<h3 class="signature " id="onCmdClear-instance_method">
|
1510
|
+
|
1511
|
+
#<strong>onCmdClear</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1512
|
+
|
1513
|
+
|
1514
|
+
|
1515
|
+
|
1516
|
+
|
1517
|
+
</h3><div class="docstring">
|
1518
|
+
<div class="discussion">
|
1519
|
+
|
1520
|
+
<p>:nodoc:</p>
|
1521
|
+
|
1522
|
+
|
1523
|
+
</div>
|
1524
|
+
</div>
|
1525
|
+
<div class="tags">
|
1526
|
+
|
1527
|
+
|
1528
|
+
</div><table class="source_code">
|
1529
|
+
<tr>
|
1530
|
+
<td>
|
1531
|
+
<pre class="lines">
|
1532
|
+
|
1533
|
+
|
1534
|
+
368
|
1535
|
+
369
|
1536
|
+
370
|
1537
|
+
371</pre>
|
1538
|
+
</td>
|
1539
|
+
<td>
|
1540
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 368</span>
|
1541
|
+
|
1542
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdClear'>onCmdClear</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1543
|
+
</span> <span class='id identifier rubyid_clear'>clear</span>
|
1544
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1545
|
+
<span class='kw'>end</span></pre>
|
1546
|
+
</td>
|
1547
|
+
</tr>
|
1548
|
+
</table>
|
1549
|
+
</div>
|
1550
|
+
|
1551
|
+
<div class="method_details ">
|
1552
|
+
<h3 class="signature " id="onCmdRedo-instance_method">
|
1553
|
+
|
1554
|
+
#<strong>onCmdRedo</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1555
|
+
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1559
|
+
|
1560
|
+
</h3><div class="docstring">
|
1561
|
+
<div class="discussion">
|
1562
|
+
|
1563
|
+
<p>:nodoc:</p>
|
1564
|
+
|
1565
|
+
|
1566
|
+
</div>
|
1567
|
+
</div>
|
1568
|
+
<div class="tags">
|
1569
|
+
|
1570
|
+
|
1571
|
+
</div><table class="source_code">
|
1572
|
+
<tr>
|
1573
|
+
<td>
|
1574
|
+
<pre class="lines">
|
1575
|
+
|
1576
|
+
|
1577
|
+
354
|
1578
|
+
355
|
1579
|
+
356
|
1580
|
+
357</pre>
|
1581
|
+
</td>
|
1582
|
+
<td>
|
1583
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 354</span>
|
1584
|
+
|
1585
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdRedo'>onCmdRedo</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1586
|
+
</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_redo'>redo</span>
|
1587
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1588
|
+
<span class='kw'>end</span></pre>
|
1589
|
+
</td>
|
1590
|
+
</tr>
|
1591
|
+
</table>
|
1592
|
+
</div>
|
1593
|
+
|
1594
|
+
<div class="method_details ">
|
1595
|
+
<h3 class="signature " id="onCmdRedoAll-instance_method">
|
1596
|
+
|
1597
|
+
#<strong>onCmdRedoAll</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1598
|
+
|
1599
|
+
|
1600
|
+
|
1601
|
+
|
1602
|
+
|
1603
|
+
</h3><div class="docstring">
|
1604
|
+
<div class="discussion">
|
1605
|
+
|
1606
|
+
<p>:nodoc:</p>
|
1607
|
+
|
1608
|
+
|
1609
|
+
</div>
|
1610
|
+
</div>
|
1611
|
+
<div class="tags">
|
1612
|
+
|
1613
|
+
|
1614
|
+
</div><table class="source_code">
|
1615
|
+
<tr>
|
1616
|
+
<td>
|
1617
|
+
<pre class="lines">
|
1618
|
+
|
1619
|
+
|
1620
|
+
401
|
1621
|
+
402
|
1622
|
+
403
|
1623
|
+
404</pre>
|
1624
|
+
</td>
|
1625
|
+
<td>
|
1626
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 401</span>
|
1627
|
+
|
1628
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdRedoAll'>onCmdRedoAll</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1629
|
+
</span> <span class='id identifier rubyid_redoAll'>redoAll</span>
|
1630
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1631
|
+
<span class='kw'>end</span></pre>
|
1632
|
+
</td>
|
1633
|
+
</tr>
|
1634
|
+
</table>
|
1635
|
+
</div>
|
1636
|
+
|
1637
|
+
<div class="method_details ">
|
1638
|
+
<h3 class="signature " id="onCmdRevert-instance_method">
|
1639
|
+
|
1640
|
+
#<strong>onCmdRevert</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
1644
|
+
|
1645
|
+
|
1646
|
+
</h3><div class="docstring">
|
1647
|
+
<div class="discussion">
|
1648
|
+
|
1649
|
+
<p>:nodoc:</p>
|
1650
|
+
|
1651
|
+
|
1652
|
+
</div>
|
1653
|
+
</div>
|
1654
|
+
<div class="tags">
|
1655
|
+
|
1656
|
+
|
1657
|
+
</div><table class="source_code">
|
1658
|
+
<tr>
|
1659
|
+
<td>
|
1660
|
+
<pre class="lines">
|
1661
|
+
|
1662
|
+
|
1663
|
+
382
|
1664
|
+
383
|
1665
|
+
384
|
1666
|
+
385</pre>
|
1667
|
+
</td>
|
1668
|
+
<td>
|
1669
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 382</span>
|
1670
|
+
|
1671
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdRevert'>onCmdRevert</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1672
|
+
</span> <span class='id identifier rubyid_revert'>revert</span>
|
1673
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1674
|
+
<span class='kw'>end</span></pre>
|
1675
|
+
</td>
|
1676
|
+
</tr>
|
1677
|
+
</table>
|
1678
|
+
</div>
|
1679
|
+
|
1680
|
+
<div class="method_details ">
|
1681
|
+
<h3 class="signature " id="onCmdUndo-instance_method">
|
1682
|
+
|
1683
|
+
#<strong>onCmdUndo</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1684
|
+
|
1685
|
+
|
1686
|
+
|
1687
|
+
|
1688
|
+
|
1689
|
+
</h3><div class="docstring">
|
1690
|
+
<div class="discussion">
|
1691
|
+
|
1692
|
+
<p>:nodoc:</p>
|
1693
|
+
|
1694
|
+
|
1695
|
+
</div>
|
1696
|
+
</div>
|
1697
|
+
<div class="tags">
|
1698
|
+
|
1699
|
+
|
1700
|
+
</div><table class="source_code">
|
1701
|
+
<tr>
|
1702
|
+
<td>
|
1703
|
+
<pre class="lines">
|
1704
|
+
|
1705
|
+
|
1706
|
+
340
|
1707
|
+
341
|
1708
|
+
342
|
1709
|
+
343</pre>
|
1710
|
+
</td>
|
1711
|
+
<td>
|
1712
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 340</span>
|
1713
|
+
|
1714
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdUndo'>onCmdUndo</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1715
|
+
</span> <span class='id identifier rubyid_undo'>undo</span>
|
1716
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1717
|
+
<span class='kw'>end</span></pre>
|
1718
|
+
</td>
|
1719
|
+
</tr>
|
1720
|
+
</table>
|
1721
|
+
</div>
|
1722
|
+
|
1723
|
+
<div class="method_details ">
|
1724
|
+
<h3 class="signature " id="onCmdUndoAll-instance_method">
|
1725
|
+
|
1726
|
+
#<strong>onCmdUndoAll</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1727
|
+
|
1728
|
+
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
</h3><div class="docstring">
|
1733
|
+
<div class="discussion">
|
1734
|
+
|
1735
|
+
<p>:nodoc:</p>
|
1736
|
+
|
1737
|
+
|
1738
|
+
</div>
|
1739
|
+
</div>
|
1740
|
+
<div class="tags">
|
1741
|
+
|
1742
|
+
|
1743
|
+
</div><table class="source_code">
|
1744
|
+
<tr>
|
1745
|
+
<td>
|
1746
|
+
<pre class="lines">
|
1747
|
+
|
1748
|
+
|
1749
|
+
396
|
1750
|
+
397
|
1751
|
+
398
|
1752
|
+
399</pre>
|
1753
|
+
</td>
|
1754
|
+
<td>
|
1755
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 396</span>
|
1756
|
+
|
1757
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onCmdUndoAll'>onCmdUndoAll</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1758
|
+
</span> <span class='id identifier rubyid_undoAll'>undoAll</span>
|
1759
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1760
|
+
<span class='kw'>end</span></pre>
|
1761
|
+
</td>
|
1762
|
+
</tr>
|
1763
|
+
</table>
|
1764
|
+
</div>
|
1765
|
+
|
1766
|
+
<div class="method_details ">
|
1767
|
+
<h3 class="signature " id="onUpdClear-instance_method">
|
1768
|
+
|
1769
|
+
#<strong>onUpdClear</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1770
|
+
|
1771
|
+
|
1772
|
+
|
1773
|
+
|
1774
|
+
|
1775
|
+
</h3><div class="docstring">
|
1776
|
+
<div class="discussion">
|
1777
|
+
|
1778
|
+
<p>:nodoc:</p>
|
1779
|
+
|
1780
|
+
|
1781
|
+
</div>
|
1782
|
+
</div>
|
1783
|
+
<div class="tags">
|
1784
|
+
|
1785
|
+
|
1786
|
+
</div><table class="source_code">
|
1787
|
+
<tr>
|
1788
|
+
<td>
|
1789
|
+
<pre class="lines">
|
1790
|
+
|
1791
|
+
|
1792
|
+
373
|
1793
|
+
374
|
1794
|
+
375
|
1795
|
+
376
|
1796
|
+
377
|
1797
|
+
378
|
1798
|
+
379
|
1799
|
+
380</pre>
|
1800
|
+
</td>
|
1801
|
+
<td>
|
1802
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 373</span>
|
1803
|
+
|
1804
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onUpdClear'>onUpdClear</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1805
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_canUndo?'>canUndo?</span> <span class='op'>||</span> <span class='id identifier rubyid_canRedo?'>canRedo?</span>
|
1806
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_ENABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1807
|
+
<span class='kw'>else</span>
|
1808
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_DISABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1809
|
+
<span class='kw'>end</span>
|
1810
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1811
|
+
<span class='kw'>end</span></pre>
|
1812
|
+
</td>
|
1813
|
+
</tr>
|
1814
|
+
</table>
|
1815
|
+
</div>
|
1816
|
+
|
1817
|
+
<div class="method_details ">
|
1818
|
+
<h3 class="signature " id="onUpdRedo-instance_method">
|
1819
|
+
|
1820
|
+
#<strong>onUpdRedo</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1821
|
+
|
1822
|
+
|
1823
|
+
|
1824
|
+
|
1825
|
+
|
1826
|
+
</h3><div class="docstring">
|
1827
|
+
<div class="discussion">
|
1828
|
+
|
1829
|
+
<p>:nodoc:</p>
|
1830
|
+
|
1831
|
+
|
1832
|
+
</div>
|
1833
|
+
</div>
|
1834
|
+
<div class="tags">
|
1835
|
+
|
1836
|
+
|
1837
|
+
</div><table class="source_code">
|
1838
|
+
<tr>
|
1839
|
+
<td>
|
1840
|
+
<pre class="lines">
|
1841
|
+
|
1842
|
+
|
1843
|
+
359
|
1844
|
+
360
|
1845
|
+
361
|
1846
|
+
362
|
1847
|
+
363
|
1848
|
+
364
|
1849
|
+
365
|
1850
|
+
366</pre>
|
1851
|
+
</td>
|
1852
|
+
<td>
|
1853
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 359</span>
|
1854
|
+
|
1855
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onUpdRedo'>onUpdRedo</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1856
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_canRedo?'>canRedo?</span>
|
1857
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_ENABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1858
|
+
<span class='kw'>else</span>
|
1859
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_DISABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1860
|
+
<span class='kw'>end</span>
|
1861
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1862
|
+
<span class='kw'>end</span></pre>
|
1863
|
+
</td>
|
1864
|
+
</tr>
|
1865
|
+
</table>
|
1866
|
+
</div>
|
1867
|
+
|
1868
|
+
<div class="method_details ">
|
1869
|
+
<h3 class="signature " id="onUpdRevert-instance_method">
|
1870
|
+
|
1871
|
+
#<strong>onUpdRevert</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1872
|
+
|
1873
|
+
|
1874
|
+
|
1875
|
+
|
1876
|
+
|
1877
|
+
</h3><div class="docstring">
|
1878
|
+
<div class="discussion">
|
1879
|
+
|
1880
|
+
<p>:nodoc:</p>
|
1881
|
+
|
1882
|
+
|
1883
|
+
</div>
|
1884
|
+
</div>
|
1885
|
+
<div class="tags">
|
1886
|
+
|
1887
|
+
|
1888
|
+
</div><table class="source_code">
|
1889
|
+
<tr>
|
1890
|
+
<td>
|
1891
|
+
<pre class="lines">
|
1892
|
+
|
1893
|
+
|
1894
|
+
387
|
1895
|
+
388
|
1896
|
+
389
|
1897
|
+
390
|
1898
|
+
391
|
1899
|
+
392
|
1900
|
+
393
|
1901
|
+
394</pre>
|
1902
|
+
</td>
|
1903
|
+
<td>
|
1904
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 387</span>
|
1905
|
+
|
1906
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onUpdRevert'>onUpdRevert</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1907
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_canRevert?'>canRevert?</span>
|
1908
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_ENABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1909
|
+
<span class='kw'>else</span>
|
1910
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_DISABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1911
|
+
<span class='kw'>end</span>
|
1912
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1913
|
+
<span class='kw'>end</span></pre>
|
1914
|
+
</td>
|
1915
|
+
</tr>
|
1916
|
+
</table>
|
1917
|
+
</div>
|
1918
|
+
|
1919
|
+
<div class="method_details ">
|
1920
|
+
<h3 class="signature " id="onUpdUndo-instance_method">
|
1921
|
+
|
1922
|
+
#<strong>onUpdUndo</strong>(sender, sel, ptr) ⇒ <tt>Object</tt>
|
1923
|
+
|
1924
|
+
|
1925
|
+
|
1926
|
+
|
1927
|
+
|
1928
|
+
</h3><div class="docstring">
|
1929
|
+
<div class="discussion">
|
1930
|
+
|
1931
|
+
<p>:nodoc:</p>
|
1932
|
+
|
1933
|
+
|
1934
|
+
</div>
|
1935
|
+
</div>
|
1936
|
+
<div class="tags">
|
1937
|
+
|
1938
|
+
|
1939
|
+
</div><table class="source_code">
|
1940
|
+
<tr>
|
1941
|
+
<td>
|
1942
|
+
<pre class="lines">
|
1943
|
+
|
1944
|
+
|
1945
|
+
345
|
1946
|
+
346
|
1947
|
+
347
|
1948
|
+
348
|
1949
|
+
349
|
1950
|
+
350
|
1951
|
+
351
|
1952
|
+
352</pre>
|
1953
|
+
</td>
|
1954
|
+
<td>
|
1955
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 345</span>
|
1956
|
+
|
1957
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_onUpdUndo'>onUpdUndo</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span> <span class='comment'># :nodoc:
|
1958
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_canUndo?'>canUndo?</span>
|
1959
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_ENABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1960
|
+
<span class='kw'>else</span>
|
1961
|
+
<span class='id identifier rubyid_sender'>sender</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></span><span class='op'>::</span><span class='const'>ID_DISABLE</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1962
|
+
<span class='kw'>end</span>
|
1963
|
+
<span class='kw'>return</span> <span class='int'>1</span>
|
1964
|
+
<span class='kw'>end</span></pre>
|
1965
|
+
</td>
|
1966
|
+
</tr>
|
1967
|
+
</table>
|
1968
|
+
</div>
|
1969
|
+
|
1970
|
+
<div class="method_details ">
|
1971
|
+
<h3 class="signature " id="redo-instance_method">
|
1972
|
+
|
1973
|
+
#<strong>redo</strong> ⇒ <tt>Object</tt>
|
1974
|
+
|
1975
|
+
|
1976
|
+
|
1977
|
+
|
1978
|
+
|
1979
|
+
</h3><div class="docstring">
|
1980
|
+
<div class="discussion">
|
1981
|
+
|
1982
|
+
<p>Redo next command</p>
|
1983
|
+
|
1984
|
+
|
1985
|
+
</div>
|
1986
|
+
</div>
|
1987
|
+
<div class="tags">
|
1988
|
+
|
1989
|
+
|
1990
|
+
</div><table class="source_code">
|
1991
|
+
<tr>
|
1992
|
+
<td>
|
1993
|
+
<pre class="lines">
|
1994
|
+
|
1995
|
+
|
1996
|
+
174
|
1997
|
+
175
|
1998
|
+
176
|
1999
|
+
177
|
2000
|
+
178
|
2001
|
+
179
|
2002
|
+
180
|
2003
|
+
181
|
2004
|
+
182
|
2005
|
+
183
|
2006
|
+
184</pre>
|
2007
|
+
</td>
|
2008
|
+
<td>
|
2009
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 174</span>
|
2010
|
+
|
2011
|
+
<span class='kw'>def</span> <span class='kw'>redo</span>
|
2012
|
+
<span class='kw'>unless</span> <span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
2013
|
+
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
2014
|
+
<span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_redo'>redo</span>
|
2015
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
2016
|
+
<span class='ivar'>@size</span> <span class='op'>+=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
2017
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='ivar'>@marker</span> <span class='op'>+</span> <span class='int'>1</span> <span class='kw'>unless</span> <span class='ivar'>@marker</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2018
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
2019
|
+
<span class='kw'>end</span>
|
2020
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
2021
|
+
<span class='kw'>end</span></pre>
|
2022
|
+
</td>
|
2023
|
+
</tr>
|
2024
|
+
</table>
|
2025
|
+
</div>
|
2026
|
+
|
2027
|
+
<div class="method_details ">
|
2028
|
+
<h3 class="signature " id="redoAll-instance_method">
|
2029
|
+
|
2030
|
+
#<strong>redoAll</strong> ⇒ <tt>Object</tt>
|
2031
|
+
|
2032
|
+
|
2033
|
+
|
2034
|
+
|
2035
|
+
|
2036
|
+
</h3><div class="docstring">
|
2037
|
+
<div class="discussion">
|
2038
|
+
|
2039
|
+
<p>Redo all commands</p>
|
2040
|
+
|
2041
|
+
|
2042
|
+
</div>
|
2043
|
+
</div>
|
2044
|
+
<div class="tags">
|
2045
|
+
|
2046
|
+
|
2047
|
+
</div><table class="source_code">
|
2048
|
+
<tr>
|
2049
|
+
<td>
|
2050
|
+
<pre class="lines">
|
2051
|
+
|
2052
|
+
|
2053
|
+
196
|
2054
|
+
197
|
2055
|
+
198</pre>
|
2056
|
+
</td>
|
2057
|
+
<td>
|
2058
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 196</span>
|
2059
|
+
|
2060
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_redoAll'>redoAll</span>
|
2061
|
+
<span class='kw'>redo</span> <span class='kw'>while</span> <span class='id identifier rubyid_canRedo?'>canRedo?</span>
|
2062
|
+
<span class='kw'>end</span></pre>
|
2063
|
+
</td>
|
2064
|
+
</tr>
|
2065
|
+
</table>
|
2066
|
+
</div>
|
2067
|
+
|
2068
|
+
<div class="method_details ">
|
2069
|
+
<h3 class="signature " id="redoName-instance_method">
|
2070
|
+
|
2071
|
+
#<strong>redoName</strong> ⇒ <tt>Object</tt>
|
2072
|
+
|
2073
|
+
|
2074
|
+
|
2075
|
+
|
2076
|
+
|
2077
|
+
</h3><div class="docstring">
|
2078
|
+
<div class="discussion">
|
2079
|
+
|
2080
|
+
<p>Return the name of the first available redo command. If no redo command is available, returns <code>nil</code>.</p>
|
2081
|
+
|
2082
|
+
|
2083
|
+
</div>
|
2084
|
+
</div>
|
2085
|
+
<div class="tags">
|
2086
|
+
|
2087
|
+
|
2088
|
+
</div><table class="source_code">
|
2089
|
+
<tr>
|
2090
|
+
<td>
|
2091
|
+
<pre class="lines">
|
2092
|
+
|
2093
|
+
|
2094
|
+
259
|
2095
|
+
260
|
2096
|
+
261
|
2097
|
+
262
|
2098
|
+
263
|
2099
|
+
264
|
2100
|
+
265</pre>
|
2101
|
+
</td>
|
2102
|
+
<td>
|
2103
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 259</span>
|
2104
|
+
|
2105
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_redoName'>redoName</span>
|
2106
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_canRedo?'>canRedo?</span>
|
2107
|
+
<span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_redoName'>redoName</span>
|
2108
|
+
<span class='kw'>else</span>
|
2109
|
+
<span class='kw'>nil</span>
|
2110
|
+
<span class='kw'>end</span>
|
2111
|
+
<span class='kw'>end</span></pre>
|
2112
|
+
</td>
|
2113
|
+
</tr>
|
2114
|
+
</table>
|
2115
|
+
</div>
|
2116
|
+
|
2117
|
+
<div class="method_details ">
|
2118
|
+
<h3 class="signature " id="revert-instance_method">
|
2119
|
+
|
2120
|
+
#<strong>revert</strong> ⇒ <tt>Object</tt>
|
2121
|
+
|
2122
|
+
|
2123
|
+
|
2124
|
+
|
2125
|
+
|
2126
|
+
</h3><div class="docstring">
|
2127
|
+
<div class="discussion">
|
2128
|
+
|
2129
|
+
<p>Revert to marked</p>
|
2130
|
+
|
2131
|
+
|
2132
|
+
</div>
|
2133
|
+
</div>
|
2134
|
+
<div class="tags">
|
2135
|
+
|
2136
|
+
|
2137
|
+
</div><table class="source_code">
|
2138
|
+
<tr>
|
2139
|
+
<td>
|
2140
|
+
<pre class="lines">
|
2141
|
+
|
2142
|
+
|
2143
|
+
203
|
2144
|
+
204
|
2145
|
+
205
|
2146
|
+
206
|
2147
|
+
207
|
2148
|
+
208
|
2149
|
+
209
|
2150
|
+
210</pre>
|
2151
|
+
</td>
|
2152
|
+
<td>
|
2153
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 203</span>
|
2154
|
+
|
2155
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_revert'>revert</span>
|
2156
|
+
<span class='kw'>unless</span> <span class='ivar'>@marker</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2157
|
+
<span class='id identifier rubyid_undo'>undo</span> <span class='kw'>while</span> <span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'>></span> <span class='int'>0</span><span class='rparen'>)</span>
|
2158
|
+
<span class='kw'>redo</span> <span class='kw'>while</span> <span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'><</span> <span class='int'>0</span><span class='rparen'>)</span>
|
2159
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
2160
|
+
<span class='kw'>end</span>
|
2161
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
2162
|
+
<span class='kw'>end</span></pre>
|
2163
|
+
</td>
|
2164
|
+
</tr>
|
2165
|
+
</table>
|
2166
|
+
</div>
|
2167
|
+
|
2168
|
+
<div class="method_details ">
|
2169
|
+
<h3 class="signature " id="trimCount-instance_method">
|
2170
|
+
|
2171
|
+
#<strong>trimCount</strong>(nc) ⇒ <tt>Object</tt>
|
2172
|
+
|
2173
|
+
|
2174
|
+
|
2175
|
+
|
2176
|
+
|
2177
|
+
</h3><div class="docstring">
|
2178
|
+
<div class="discussion">
|
2179
|
+
|
2180
|
+
<p>Trim undo list down to at most <em>nc</em> commands.</p>
|
2181
|
+
|
2182
|
+
|
2183
|
+
</div>
|
2184
|
+
</div>
|
2185
|
+
<div class="tags">
|
2186
|
+
|
2187
|
+
|
2188
|
+
</div><table class="source_code">
|
2189
|
+
<tr>
|
2190
|
+
<td>
|
2191
|
+
<pre class="lines">
|
2192
|
+
|
2193
|
+
|
2194
|
+
294
|
2195
|
+
295
|
2196
|
+
296
|
2197
|
+
297
|
2198
|
+
298
|
2199
|
+
299
|
2200
|
+
300
|
2201
|
+
301</pre>
|
2202
|
+
</td>
|
2203
|
+
<td>
|
2204
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 294</span>
|
2205
|
+
|
2206
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_trimCount'>trimCount</span><span class='lparen'>(</span><span class='id identifier rubyid_nc'>nc</span><span class='rparen'>)</span>
|
2207
|
+
<span class='kw'>if</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>></span> <span class='id identifier rubyid_nc'>nc</span>
|
2208
|
+
<span class='id identifier rubyid_numRemoved'>numRemoved</span> <span class='op'>=</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>-</span> <span class='id identifier rubyid_nc'>nc</span>
|
2209
|
+
<span class='ivar'>@undolist</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_numRemoved'>numRemoved</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_command'>command</span><span class='op'>|</span> <span class='ivar'>@size</span> <span class='op'>-=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='rbrace'>}</span>
|
2210
|
+
<span class='ivar'>@undolist</span><span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_numRemoved'>numRemoved</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
2211
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='op'>&&</span> <span class='ivar'>@marker</span> <span class='op'>></span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
|
2212
|
+
<span class='kw'>end</span>
|
2213
|
+
<span class='kw'>end</span></pre>
|
2214
|
+
</td>
|
2215
|
+
</tr>
|
2216
|
+
</table>
|
2217
|
+
</div>
|
2218
|
+
|
2219
|
+
<div class="method_details ">
|
2220
|
+
<h3 class="signature " id="trimSize-instance_method">
|
2221
|
+
|
2222
|
+
#<strong>trimSize</strong>(sz) ⇒ <tt>Object</tt>
|
2223
|
+
|
2224
|
+
|
2225
|
+
|
2226
|
+
|
2227
|
+
|
2228
|
+
</h3><div class="docstring">
|
2229
|
+
<div class="discussion">
|
2230
|
+
|
2231
|
+
<p>Trim undo list down to at most <em>size</em>.</p>
|
2232
|
+
|
2233
|
+
|
2234
|
+
</div>
|
2235
|
+
</div>
|
2236
|
+
<div class="tags">
|
2237
|
+
|
2238
|
+
|
2239
|
+
</div><table class="source_code">
|
2240
|
+
<tr>
|
2241
|
+
<td>
|
2242
|
+
<pre class="lines">
|
2243
|
+
|
2244
|
+
|
2245
|
+
306
|
2246
|
+
307
|
2247
|
+
308
|
2248
|
+
309
|
2249
|
+
310
|
2250
|
+
311
|
2251
|
+
312
|
2252
|
+
313
|
2253
|
+
314
|
2254
|
+
315
|
2255
|
+
316
|
2256
|
+
317</pre>
|
2257
|
+
</td>
|
2258
|
+
<td>
|
2259
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 306</span>
|
2260
|
+
|
2261
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_trimSize'>trimSize</span><span class='lparen'>(</span><span class='id identifier rubyid_sz'>sz</span><span class='rparen'>)</span>
|
2262
|
+
<span class='kw'>if</span> <span class='ivar'>@size</span> <span class='op'>></span> <span class='id identifier rubyid_sz'>sz</span>
|
2263
|
+
<span class='id identifier rubyid_s'>s</span> <span class='op'>=</span> <span class='int'>0</span>
|
2264
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_reverse'>reverse</span><span class='period'>.</span><span class='id identifier rubyid_each_index'>each_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span>
|
2265
|
+
<span class='id identifier rubyid_j'>j</span> <span class='op'>=</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_i'>i</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span>
|
2266
|
+
<span class='id identifier rubyid_s'>s</span> <span class='op'>+=</span> <span class='ivar'>@undolist</span><span class='lbracket'>[</span><span class='id identifier rubyid_j'>j</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
2267
|
+
<span class='ivar'>@undolist</span><span class='lbracket'>[</span><span class='id identifier rubyid_j'>j</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_s'>s</span> <span class='op'>></span> <span class='id identifier rubyid_sz'>sz</span><span class='rparen'>)</span>
|
2268
|
+
<span class='rbrace'>}</span>
|
2269
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_compact!'>compact!</span>
|
2270
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@marker</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='op'>&&</span> <span class='ivar'>@marker</span> <span class='op'>></span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
|
2271
|
+
<span class='kw'>end</span>
|
2272
|
+
<span class='kw'>end</span></pre>
|
2273
|
+
</td>
|
2274
|
+
</tr>
|
2275
|
+
</table>
|
2276
|
+
</div>
|
2277
|
+
|
2278
|
+
<div class="method_details ">
|
2279
|
+
<h3 class="signature " id="undo-instance_method">
|
2280
|
+
|
2281
|
+
#<strong>undo</strong> ⇒ <tt>Object</tt>
|
2282
|
+
|
2283
|
+
|
2284
|
+
|
2285
|
+
|
2286
|
+
|
2287
|
+
</h3><div class="docstring">
|
2288
|
+
<div class="discussion">
|
2289
|
+
|
2290
|
+
<p>Undo last command.</p>
|
2291
|
+
|
2292
|
+
|
2293
|
+
</div>
|
2294
|
+
</div>
|
2295
|
+
<div class="tags">
|
2296
|
+
|
2297
|
+
|
2298
|
+
</div><table class="source_code">
|
2299
|
+
<tr>
|
2300
|
+
<td>
|
2301
|
+
<pre class="lines">
|
2302
|
+
|
2303
|
+
|
2304
|
+
159
|
2305
|
+
160
|
2306
|
+
161
|
2307
|
+
162
|
2308
|
+
163
|
2309
|
+
164
|
2310
|
+
165
|
2311
|
+
166
|
2312
|
+
167
|
2313
|
+
168
|
2314
|
+
169</pre>
|
2315
|
+
</td>
|
2316
|
+
<td>
|
2317
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 159</span>
|
2318
|
+
|
2319
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_undo'>undo</span>
|
2320
|
+
<span class='kw'>unless</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
2321
|
+
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
2322
|
+
<span class='ivar'>@size</span> <span class='op'>-=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
2323
|
+
<span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_undo'>undo</span>
|
2324
|
+
<span class='ivar'>@redolist</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
2325
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='ivar'>@marker</span> <span class='op'>-</span> <span class='int'>1</span> <span class='kw'>unless</span> <span class='ivar'>@marker</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2326
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
2327
|
+
<span class='kw'>end</span>
|
2328
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
2329
|
+
<span class='kw'>end</span></pre>
|
2330
|
+
</td>
|
2331
|
+
</tr>
|
2332
|
+
</table>
|
2333
|
+
</div>
|
2334
|
+
|
2335
|
+
<div class="method_details ">
|
2336
|
+
<h3 class="signature " id="undoAll-instance_method">
|
2337
|
+
|
2338
|
+
#<strong>undoAll</strong> ⇒ <tt>Object</tt>
|
2339
|
+
|
2340
|
+
|
2341
|
+
|
2342
|
+
|
2343
|
+
|
2344
|
+
</h3><div class="docstring">
|
2345
|
+
<div class="discussion">
|
2346
|
+
|
2347
|
+
<p>Undo all commands</p>
|
2348
|
+
|
2349
|
+
|
2350
|
+
</div>
|
2351
|
+
</div>
|
2352
|
+
<div class="tags">
|
2353
|
+
|
2354
|
+
|
2355
|
+
</div><table class="source_code">
|
2356
|
+
<tr>
|
2357
|
+
<td>
|
2358
|
+
<pre class="lines">
|
2359
|
+
|
2360
|
+
|
2361
|
+
189
|
2362
|
+
190
|
2363
|
+
191</pre>
|
2364
|
+
</td>
|
2365
|
+
<td>
|
2366
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 189</span>
|
2367
|
+
|
2368
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_undoAll'>undoAll</span>
|
2369
|
+
<span class='id identifier rubyid_undo'>undo</span> <span class='kw'>while</span> <span class='id identifier rubyid_canUndo?'>canUndo?</span>
|
2370
|
+
<span class='kw'>end</span></pre>
|
2371
|
+
</td>
|
2372
|
+
</tr>
|
2373
|
+
</table>
|
2374
|
+
</div>
|
2375
|
+
|
2376
|
+
<div class="method_details ">
|
2377
|
+
<h3 class="signature " id="undoCount-instance_method">
|
2378
|
+
|
2379
|
+
#<strong>undoCount</strong> ⇒ <tt>Object</tt>
|
2380
|
+
|
2381
|
+
|
2382
|
+
|
2383
|
+
|
2384
|
+
|
2385
|
+
</h3><div class="docstring">
|
2386
|
+
<div class="discussion">
|
2387
|
+
|
2388
|
+
<p>Returns the number of undo records.</p>
|
2389
|
+
|
2390
|
+
|
2391
|
+
</div>
|
2392
|
+
</div>
|
2393
|
+
<div class="tags">
|
2394
|
+
|
2395
|
+
|
2396
|
+
</div><table class="source_code">
|
2397
|
+
<tr>
|
2398
|
+
<td>
|
2399
|
+
<pre class="lines">
|
2400
|
+
|
2401
|
+
|
2402
|
+
270
|
2403
|
+
271
|
2404
|
+
272</pre>
|
2405
|
+
</td>
|
2406
|
+
<td>
|
2407
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 270</span>
|
2408
|
+
|
2409
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_undoCount'>undoCount</span>
|
2410
|
+
<span class='ivar'>@undolist</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
2411
|
+
<span class='kw'>end</span></pre>
|
2412
|
+
</td>
|
2413
|
+
</tr>
|
2414
|
+
</table>
|
2415
|
+
</div>
|
2416
|
+
|
2417
|
+
<div class="method_details ">
|
2418
|
+
<h3 class="signature " id="undoName-instance_method">
|
2419
|
+
|
2420
|
+
#<strong>undoName</strong> ⇒ <tt>Object</tt>
|
2421
|
+
|
2422
|
+
|
2423
|
+
|
2424
|
+
|
2425
|
+
|
2426
|
+
</h3><div class="docstring">
|
2427
|
+
<div class="discussion">
|
2428
|
+
|
2429
|
+
<p>Return the name of the first available undo command. If no undo command is available, returns <code>nil</code>.</p>
|
2430
|
+
|
2431
|
+
|
2432
|
+
</div>
|
2433
|
+
</div>
|
2434
|
+
<div class="tags">
|
2435
|
+
|
2436
|
+
|
2437
|
+
</div><table class="source_code">
|
2438
|
+
<tr>
|
2439
|
+
<td>
|
2440
|
+
<pre class="lines">
|
2441
|
+
|
2442
|
+
|
2443
|
+
247
|
2444
|
+
248
|
2445
|
+
249
|
2446
|
+
250
|
2447
|
+
251
|
2448
|
+
252
|
2449
|
+
253</pre>
|
2450
|
+
</td>
|
2451
|
+
<td>
|
2452
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 247</span>
|
2453
|
+
|
2454
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_undoName'>undoName</span>
|
2455
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_canUndo?'>canUndo?</span>
|
2456
|
+
<span class='id identifier rubyid_current'>current</span><span class='period'>.</span><span class='id identifier rubyid_undoName'>undoName</span>
|
2457
|
+
<span class='kw'>else</span>
|
2458
|
+
<span class='kw'>nil</span>
|
2459
|
+
<span class='kw'>end</span>
|
2460
|
+
<span class='kw'>end</span></pre>
|
2461
|
+
</td>
|
2462
|
+
</tr>
|
2463
|
+
</table>
|
2464
|
+
</div>
|
2465
|
+
|
2466
|
+
<div class="method_details ">
|
2467
|
+
<h3 class="signature " id="undoSize-instance_method">
|
2468
|
+
|
2469
|
+
#<strong>undoSize</strong> ⇒ <tt>Object</tt>
|
2470
|
+
|
2471
|
+
|
2472
|
+
|
2473
|
+
|
2474
|
+
|
2475
|
+
</h3><div class="docstring">
|
2476
|
+
<div class="discussion">
|
2477
|
+
|
2478
|
+
<p>Returns the total size of undo information.</p>
|
2479
|
+
|
2480
|
+
|
2481
|
+
</div>
|
2482
|
+
</div>
|
2483
|
+
<div class="tags">
|
2484
|
+
|
2485
|
+
|
2486
|
+
</div><table class="source_code">
|
2487
|
+
<tr>
|
2488
|
+
<td>
|
2489
|
+
<pre class="lines">
|
2490
|
+
|
2491
|
+
|
2492
|
+
277
|
2493
|
+
278
|
2494
|
+
279</pre>
|
2495
|
+
</td>
|
2496
|
+
<td>
|
2497
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 277</span>
|
2498
|
+
|
2499
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_undoSize'>undoSize</span>
|
2500
|
+
<span class='ivar'>@size</span>
|
2501
|
+
<span class='kw'>end</span></pre>
|
2502
|
+
</td>
|
2503
|
+
</tr>
|
2504
|
+
</table>
|
2505
|
+
</div>
|
2506
|
+
|
2507
|
+
<div class="method_details ">
|
2508
|
+
<h3 class="signature " id="unmark-instance_method">
|
2509
|
+
|
2510
|
+
#<strong>unmark</strong> ⇒ <tt>Object</tt>
|
2511
|
+
|
2512
|
+
|
2513
|
+
|
2514
|
+
|
2515
|
+
|
2516
|
+
</h3><div class="docstring">
|
2517
|
+
<div class="discussion">
|
2518
|
+
|
2519
|
+
<p>Unmark undo list</p>
|
2520
|
+
|
2521
|
+
|
2522
|
+
</div>
|
2523
|
+
</div>
|
2524
|
+
<div class="tags">
|
2525
|
+
|
2526
|
+
|
2527
|
+
</div><table class="source_code">
|
2528
|
+
<tr>
|
2529
|
+
<td>
|
2530
|
+
<pre class="lines">
|
2531
|
+
|
2532
|
+
|
2533
|
+
329
|
2534
|
+
330
|
2535
|
+
331</pre>
|
2536
|
+
</td>
|
2537
|
+
<td>
|
2538
|
+
<pre class="code"><span class="info file"># File 'lib/fox16/undolist.rb', line 329</span>
|
2539
|
+
|
2540
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unmark'>unmark</span>
|
2541
|
+
<span class='ivar'>@marker</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
2542
|
+
<span class='kw'>end</span></pre>
|
2543
|
+
</td>
|
2544
|
+
</tr>
|
2545
|
+
</table>
|
2546
|
+
</div>
|
2547
|
+
|
2548
|
+
</div>
|
2549
|
+
|
2550
|
+
</div>
|
2551
|
+
|
2552
|
+
<div id="footer">
|
2553
|
+
Generated on Fri Nov 27 21:11:36 2020 by
|
2554
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2555
|
+
0.9.24 (ruby-2.7.2).
|
2556
|
+
</div>
|
2557
|
+
|
2558
|
+
</div>
|
2559
|
+
</body>
|
2560
|
+
</html>
|