fxruby 1.6.48 → 1.6.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/binary.yml +12 -11
  4. data/.github/workflows/ci.yml +25 -7
  5. data/Gemfile +1 -1
  6. data/History.md +9 -0
  7. data/Rakefile +15 -13
  8. data/appveyor.yml +1 -1
  9. data/doap.rdf +2 -2
  10. data/docs/Fox/Canvas/CanvasError.html +2 -2
  11. data/docs/Fox/Canvas/CircleShape.html +2 -2
  12. data/docs/Fox/Canvas/ImageShape.html +2 -2
  13. data/docs/Fox/Canvas/LineShape.html +2 -2
  14. data/docs/Fox/Canvas/PolygonShape.html +2 -2
  15. data/docs/Fox/Canvas/RectangleShape.html +2 -2
  16. data/docs/Fox/Canvas/SelectionPolicy.html +2 -2
  17. data/docs/Fox/Canvas/Shape.html +2 -2
  18. data/docs/Fox/Canvas/ShapeCanvas.html +2 -2
  19. data/docs/Fox/Canvas/ShapeGroup.html +2 -2
  20. data/docs/Fox/Canvas/SingleSelectionPolicy.html +2 -2
  21. data/docs/Fox/Canvas/TextShape.html +2 -2
  22. data/docs/Fox/Canvas.html +2 -2
  23. data/docs/Fox/FTNonModal.html +2 -2
  24. data/docs/Fox/FX4Splitter.html +2 -2
  25. data/docs/Fox/FX7Segment.html +2 -2
  26. data/docs/Fox/FXAccelTable.html +2 -2
  27. data/docs/Fox/FXApp.html +2 -2
  28. data/docs/Fox/FXArc.html +2 -2
  29. data/docs/Fox/FXArrowButton.html +2 -2
  30. data/docs/Fox/FXBMPIcon.html +2 -2
  31. data/docs/Fox/FXBMPImage.html +2 -2
  32. data/docs/Fox/FXBitmap.html +2 -2
  33. data/docs/Fox/FXBitmapFrame.html +2 -2
  34. data/docs/Fox/FXBitmapView.html +2 -2
  35. data/docs/Fox/FXButton.html +2 -2
  36. data/docs/Fox/FXCURCursor.html +2 -2
  37. data/docs/Fox/FXCalendar.html +2 -2
  38. data/docs/Fox/FXCanvas.html +2 -2
  39. data/docs/Fox/FXCheckButton.html +2 -2
  40. data/docs/Fox/FXChoiceBox.html +2 -2
  41. data/docs/Fox/FXColor.html +2 -2
  42. data/docs/Fox/FXColorBar.html +2 -2
  43. data/docs/Fox/FXColorDialog.html +2 -2
  44. data/docs/Fox/FXColorItem.html +2 -2
  45. data/docs/Fox/FXColorList.html +2 -2
  46. data/docs/Fox/FXColorRing.html +2 -2
  47. data/docs/Fox/FXColorSelector.html +2 -2
  48. data/docs/Fox/FXColorWell.html +2 -2
  49. data/docs/Fox/FXColorWheel.html +2 -2
  50. data/docs/Fox/FXComboBox.html +2 -2
  51. data/docs/Fox/FXComboTableItem.html +2 -2
  52. data/docs/Fox/FXCommand.html +2 -2
  53. data/docs/Fox/FXComposite.html +2 -2
  54. data/docs/Fox/FXCursor.html +2 -2
  55. data/docs/Fox/FXDC.html +2 -2
  56. data/docs/Fox/FXDCPrint.html +2 -2
  57. data/docs/Fox/FXDCWindow.html +2 -2
  58. data/docs/Fox/FXDataTarget.html +2 -2
  59. data/docs/Fox/FXDebugTarget.html +2 -2
  60. data/docs/Fox/FXDelegator.html +2 -2
  61. data/docs/Fox/FXDial.html +2 -2
  62. data/docs/Fox/FXDialogBox.html +21 -7
  63. data/docs/Fox/FXDict.html +2 -2
  64. data/docs/Fox/FXDirBox.html +2 -2
  65. data/docs/Fox/FXDirDialog.html +2 -2
  66. data/docs/Fox/FXDirItem.html +2 -2
  67. data/docs/Fox/FXDirList.html +2 -2
  68. data/docs/Fox/FXDirSelector.html +2 -2
  69. data/docs/Fox/FXDockBar.html +2 -2
  70. data/docs/Fox/FXDockHandler.html +2 -2
  71. data/docs/Fox/FXDockSite.html +2 -2
  72. data/docs/Fox/FXDockTitle.html +2 -2
  73. data/docs/Fox/FXDocument.html +2 -2
  74. data/docs/Fox/FXDragCorner.html +2 -2
  75. data/docs/Fox/FXDrawable.html +2 -2
  76. data/docs/Fox/FXDriveBox.html +2 -2
  77. data/docs/Fox/FXEvent.html +2 -2
  78. data/docs/Fox/FXExtentd.html +2 -2
  79. data/docs/Fox/FXExtentf.html +2 -2
  80. data/docs/Fox/FXFileAssoc.html +2 -2
  81. data/docs/Fox/FXFileDialog.html +2 -2
  82. data/docs/Fox/FXFileDict.html +2 -2
  83. data/docs/Fox/FXFileItem.html +2 -2
  84. data/docs/Fox/FXFileList.html +2 -2
  85. data/docs/Fox/FXFileSelector.html +2 -2
  86. data/docs/Fox/FXFileStream.html +2 -2
  87. data/docs/Fox/FXFoldingItem.html +2 -2
  88. data/docs/Fox/FXFoldingList.html +2 -2
  89. data/docs/Fox/FXFont.html +2 -2
  90. data/docs/Fox/FXFontDesc.html +2 -2
  91. data/docs/Fox/FXFontDialog.html +2 -2
  92. data/docs/Fox/FXFontSelector.html +2 -2
  93. data/docs/Fox/FXFrame.html +2 -2
  94. data/docs/Fox/FXGIFCursor.html +2 -2
  95. data/docs/Fox/FXGIFIcon.html +2 -2
  96. data/docs/Fox/FXGIFImage.html +2 -2
  97. data/docs/Fox/FXGLCanvas.html +2 -2
  98. data/docs/Fox/FXGLCone.html +2 -2
  99. data/docs/Fox/FXGLContext.html +2 -2
  100. data/docs/Fox/FXGLCube.html +2 -2
  101. data/docs/Fox/FXGLCylinder.html +2 -2
  102. data/docs/Fox/FXGLGroup.html +2 -2
  103. data/docs/Fox/FXGLLine.html +2 -2
  104. data/docs/Fox/FXGLObject.html +2 -2
  105. data/docs/Fox/FXGLPoint.html +2 -2
  106. data/docs/Fox/FXGLShape.html +2 -2
  107. data/docs/Fox/FXGLSphere.html +2 -2
  108. data/docs/Fox/FXGLViewer.html +2 -2
  109. data/docs/Fox/FXGLVisual.html +2 -2
  110. data/docs/Fox/FXGradient.html +2 -2
  111. data/docs/Fox/FXGradientBar.html +2 -2
  112. data/docs/Fox/FXGroupBox.html +2 -2
  113. data/docs/Fox/FXHeader.html +2 -2
  114. data/docs/Fox/FXHeaderItem.html +2 -2
  115. data/docs/Fox/FXHiliteStyle.html +2 -2
  116. data/docs/Fox/FXHorizontalFrame.html +2 -2
  117. data/docs/Fox/FXHorizontalSeparator.html +2 -2
  118. data/docs/Fox/FXICOIcon.html +2 -2
  119. data/docs/Fox/FXICOImage.html +2 -2
  120. data/docs/Fox/FXIcon.html +2 -2
  121. data/docs/Fox/FXIconDict.html +2 -2
  122. data/docs/Fox/FXIconItem.html +2 -2
  123. data/docs/Fox/FXIconList.html +2 -2
  124. data/docs/Fox/FXIconSource.html +2 -2
  125. data/docs/Fox/FXId.html +2 -2
  126. data/docs/Fox/FXImage.html +2 -2
  127. data/docs/Fox/FXImageFrame.html +2 -2
  128. data/docs/Fox/FXImageView.html +2 -2
  129. data/docs/Fox/FXInputDialog.html +2 -2
  130. data/docs/Fox/FXIrb.html +2 -2
  131. data/docs/Fox/FXJPGIcon.html +2 -2
  132. data/docs/Fox/FXJPGImage.html +2 -2
  133. data/docs/Fox/FXKnob.html +2 -2
  134. data/docs/Fox/FXLabel.html +2 -2
  135. data/docs/Fox/FXLight.html +2 -2
  136. data/docs/Fox/FXList.html +2 -2
  137. data/docs/Fox/FXListBox.html +2 -2
  138. data/docs/Fox/FXListItem.html +2 -2
  139. data/docs/Fox/FXMDIChild.html +2 -2
  140. data/docs/Fox/FXMDIClient.html +2 -2
  141. data/docs/Fox/FXMDIDeleteButton.html +2 -2
  142. data/docs/Fox/FXMDIMaximizeButton.html +2 -2
  143. data/docs/Fox/FXMDIMenu.html +2 -2
  144. data/docs/Fox/FXMDIMinimizeButton.html +2 -2
  145. data/docs/Fox/FXMDIRestoreButton.html +2 -2
  146. data/docs/Fox/FXMDIWindowButton.html +2 -2
  147. data/docs/Fox/FXMainWindow.html +2 -2
  148. data/docs/Fox/FXMaterial.html +2 -2
  149. data/docs/Fox/FXMatrix.html +2 -2
  150. data/docs/Fox/FXMemoryBuffer.html +2 -2
  151. data/docs/Fox/FXMemoryStream.html +2 -2
  152. data/docs/Fox/FXMenuBar.html +2 -2
  153. data/docs/Fox/FXMenuButton.html +2 -2
  154. data/docs/Fox/FXMenuCaption.html +2 -2
  155. data/docs/Fox/FXMenuCascade.html +2 -2
  156. data/docs/Fox/FXMenuCheck.html +2 -2
  157. data/docs/Fox/FXMenuCommand.html +2 -2
  158. data/docs/Fox/FXMenuPane.html +2 -2
  159. data/docs/Fox/FXMenuRadio.html +2 -2
  160. data/docs/Fox/FXMenuSeparator.html +2 -2
  161. data/docs/Fox/FXMenuTitle.html +2 -2
  162. data/docs/Fox/FXMessageBox.html +2 -2
  163. data/docs/Fox/FXObject.html +2 -2
  164. data/docs/Fox/FXOption.html +2 -2
  165. data/docs/Fox/FXOptionMenu.html +2 -2
  166. data/docs/Fox/FXPCXIcon.html +2 -2
  167. data/docs/Fox/FXPCXImage.html +2 -2
  168. data/docs/Fox/FXPNGIcon.html +2 -2
  169. data/docs/Fox/FXPNGImage.html +2 -2
  170. data/docs/Fox/FXPPMIcon.html +2 -2
  171. data/docs/Fox/FXPPMImage.html +2 -2
  172. data/docs/Fox/FXPSBounds.html +2 -2
  173. data/docs/Fox/FXPacker.html +2 -2
  174. data/docs/Fox/FXPicker.html +2 -2
  175. data/docs/Fox/FXPopup.html +2 -2
  176. data/docs/Fox/FXPrintDialog.html +2 -2
  177. data/docs/Fox/FXPrinter.html +2 -2
  178. data/docs/Fox/FXProgressBar.html +2 -2
  179. data/docs/Fox/FXProgressDialog.html +2 -2
  180. data/docs/Fox/FXPseudoKeyboard.html +2 -2
  181. data/docs/Fox/FXPseudoMouse.html +2 -2
  182. data/docs/Fox/FXPseudoTarget.html +2 -2
  183. data/docs/Fox/FXQuatd.html +2 -2
  184. data/docs/Fox/FXQuatf.html +2 -2
  185. data/docs/Fox/FXRGBIcon.html +2 -2
  186. data/docs/Fox/FXRGBImage.html +2 -2
  187. data/docs/Fox/FXRadioButton.html +2 -2
  188. data/docs/Fox/FXRanged.html +2 -2
  189. data/docs/Fox/FXRangef.html +2 -2
  190. data/docs/Fox/FXRealSlider.html +2 -2
  191. data/docs/Fox/FXRealSpinner.html +2 -2
  192. data/docs/Fox/FXRecentFiles.html +2 -2
  193. data/docs/Fox/FXRectangle.html +2 -2
  194. data/docs/Fox/FXRegion.html +2 -2
  195. data/docs/Fox/FXRegistry.html +2 -2
  196. data/docs/Fox/FXReplaceDialog.html +2 -2
  197. data/docs/Fox/FXRootWindow.html +2 -2
  198. data/docs/Fox/FXRuler.html +2 -2
  199. data/docs/Fox/FXRulerView.html +2 -2
  200. data/docs/Fox/FXScintilla.html +2 -2
  201. data/docs/Fox/FXScrollArea.html +2 -2
  202. data/docs/Fox/FXScrollBar.html +2 -2
  203. data/docs/Fox/FXScrollCorner.html +2 -2
  204. data/docs/Fox/FXScrollPane.html +2 -2
  205. data/docs/Fox/FXScrollWindow.html +2 -2
  206. data/docs/Fox/FXSearchDialog.html +2 -2
  207. data/docs/Fox/FXSegment.html +2 -2
  208. data/docs/Fox/FXSeparator.html +2 -2
  209. data/docs/Fox/FXSettings.html +2 -2
  210. data/docs/Fox/FXShell.html +2 -2
  211. data/docs/Fox/FXShutter.html +2 -2
  212. data/docs/Fox/FXShutterItem.html +2 -2
  213. data/docs/Fox/FXSize.html +2 -2
  214. data/docs/Fox/FXSlider.html +2 -2
  215. data/docs/Fox/FXSphered.html +2 -2
  216. data/docs/Fox/FXSpheref.html +2 -2
  217. data/docs/Fox/FXSpinner.html +2 -2
  218. data/docs/Fox/FXSplashScreen.html +2 -2
  219. data/docs/Fox/FXSplashWindow.html +2 -2
  220. data/docs/Fox/FXSplitter.html +2 -2
  221. data/docs/Fox/FXSpring.html +2 -2
  222. data/docs/Fox/FXStatusBar.html +2 -2
  223. data/docs/Fox/FXStatusLine.html +2 -2
  224. data/docs/Fox/FXStream.html +2 -2
  225. data/docs/Fox/FXStreamAllocError.html +2 -2
  226. data/docs/Fox/FXStreamEndError.html +2 -2
  227. data/docs/Fox/FXStreamError.html +2 -2
  228. data/docs/Fox/FXStreamFailureError.html +2 -2
  229. data/docs/Fox/FXStreamFormatError.html +2 -2
  230. data/docs/Fox/FXStreamFullError.html +2 -2
  231. data/docs/Fox/FXStreamNoReadError.html +2 -2
  232. data/docs/Fox/FXStreamNoWriteError.html +2 -2
  233. data/docs/Fox/FXStreamUnknownError.html +2 -2
  234. data/docs/Fox/FXStringDict.html +2 -2
  235. data/docs/Fox/FXSwitcher.html +2 -2
  236. data/docs/Fox/FXTGAIcon.html +2 -2
  237. data/docs/Fox/FXTGAImage.html +2 -2
  238. data/docs/Fox/FXTIFIcon.html +2 -2
  239. data/docs/Fox/FXTIFImage.html +2 -2
  240. data/docs/Fox/FXTabBar.html +2 -2
  241. data/docs/Fox/FXTabBook.html +2 -2
  242. data/docs/Fox/FXTabItem.html +2 -2
  243. data/docs/Fox/FXTable.html +2 -2
  244. data/docs/Fox/FXTableItem.html +2 -2
  245. data/docs/Fox/FXTablePos.html +2 -2
  246. data/docs/Fox/FXTableRange.html +2 -2
  247. data/docs/Fox/FXText.html +2 -2
  248. data/docs/Fox/FXTextChange.html +2 -2
  249. data/docs/Fox/FXTextField.html +2 -2
  250. data/docs/Fox/FXToggleButton.html +2 -2
  251. data/docs/Fox/FXToolBar.html +2 -2
  252. data/docs/Fox/FXToolBarGrip.html +2 -2
  253. data/docs/Fox/FXToolBarShell.html +2 -2
  254. data/docs/Fox/FXToolBarTab.html +2 -2
  255. data/docs/Fox/FXToolTip.html +2 -2
  256. data/docs/Fox/FXTopWindow.html +6 -9
  257. data/docs/Fox/FXTranslator.html +2 -2
  258. data/docs/Fox/FXTreeItem.html +2 -2
  259. data/docs/Fox/FXTreeList.html +2 -2
  260. data/docs/Fox/FXTreeListBox.html +2 -2
  261. data/docs/Fox/FXTriStateButton.html +2 -2
  262. data/docs/Fox/FXUndoList.html +2 -2
  263. data/docs/Fox/FXVec2d.html +2 -2
  264. data/docs/Fox/FXVec2f.html +2 -2
  265. data/docs/Fox/FXVec3d.html +2 -2
  266. data/docs/Fox/FXVec3f.html +2 -2
  267. data/docs/Fox/FXVec4d.html +2 -2
  268. data/docs/Fox/FXVec4f.html +2 -2
  269. data/docs/Fox/FXVerticalFrame.html +2 -2
  270. data/docs/Fox/FXVerticalSeparator.html +2 -2
  271. data/docs/Fox/FXViewport.html +2 -2
  272. data/docs/Fox/FXVisual.html +2 -2
  273. data/docs/Fox/FXWindow.html +3 -3
  274. data/docs/Fox/FXWizard.html +2 -2
  275. data/docs/Fox/FXXBMIcon.html +2 -2
  276. data/docs/Fox/FXXBMImage.html +2 -2
  277. data/docs/Fox/FXXPMIcon.html +2 -2
  278. data/docs/Fox/FXXPMImage.html +2 -2
  279. data/docs/Fox/NotifyHeader.html +2 -2
  280. data/docs/Fox/SCNotification.html +2 -2
  281. data/docs/Fox/TextRange.html +2 -2
  282. data/docs/Fox.html +3 -3
  283. data/docs/IRB.html +2 -2
  284. data/docs/Responder.html +2 -2
  285. data/docs/Responder2.html +2 -2
  286. data/docs/_index.html +2 -2
  287. data/docs/class_list.html +6 -3
  288. data/docs/css/full_list.css +3 -3
  289. data/docs/css/style.css +6 -0
  290. data/docs/file.History.html +21 -3
  291. data/docs/file.README.html +2 -2
  292. data/docs/file_list.html +5 -2
  293. data/docs/frames.html +9 -4
  294. data/docs/index.html +3 -3
  295. data/docs/js/app.js +294 -264
  296. data/docs/js/full_list.js +30 -4
  297. data/docs/method_list.html +5 -2
  298. data/docs/top-level-namespace.html +2 -2
  299. data/ext/fox16_c/extconf.rb +32 -17
  300. data/ext/fox16_c/scintilla_wrap.cpp +8 -1
  301. data/fxruby.gemspec +2 -2
  302. data/lib/fox16/scintilla.rb +750 -22
  303. data/lib/fox16/version.rb +1 -1
  304. data/rdoc-sources/FXDialogBox.rb +12 -0
  305. data/rdoc-sources/FXToolTip.rb +1 -1
  306. data/rdoc-sources/FXTopWindow.rb +1 -1
  307. data/rdoc-sources/FXWindow.rb +1 -1
  308. data/swig-interfaces/FXScintilla.i +8 -1
  309. data/test/TC_FXApp.rb +2 -1
  310. data/test/TC_FXButton.rb +2 -1
  311. data/test/TC_FXDialogBox.rb +2 -1
  312. data/test/TC_FXGLViewer.rb +2 -1
  313. data/test/TC_FXMainWindow.rb +2 -1
  314. data/test/TC_FXMessageBox.rb +2 -1
  315. data/test/TC_FXScrollArea.rb +2 -1
  316. data/test/TC_FXShell.rb +2 -1
  317. data/test/TC_FXSize.rb +4 -2
  318. data.tar.gz.sig +0 -0
  319. metadata +16 -16
  320. metadata.gz.sig +0 -0
data/docs/js/app.js CHANGED
@@ -1,314 +1,344 @@
1
- (function() {
1
+ (function () {
2
+ var localStorage = {},
3
+ sessionStorage = {};
4
+ try {
5
+ localStorage = window.localStorage;
6
+ } catch (e) {}
7
+ try {
8
+ sessionStorage = window.sessionStorage;
9
+ } catch (e) {}
2
10
 
3
- var localStorage = {}, sessionStorage = {};
4
- try { localStorage = window.localStorage; } catch (e) { }
5
- try { sessionStorage = window.sessionStorage; } catch (e) { }
6
-
7
- function createSourceLinks() {
8
- $('.method_details_list .source_code').
9
- before("<span class='showSource'>[<a href='#' class='toggleSource'>View source</a>]</span>");
10
- $('.toggleSource').toggle(function() {
11
- $(this).parent().nextAll('.source_code').slideDown(100);
12
- $(this).text("Hide source");
13
- },
14
- function() {
15
- $(this).parent().nextAll('.source_code').slideUp(100);
11
+ function createSourceLinks() {
12
+ $(".method_details_list .source_code").before(
13
+ "<span class='showSource'>[<a href='#' class='toggleSource'>View source</a>]</span>"
14
+ );
15
+ $(".toggleSource").toggle(
16
+ function () {
17
+ $(this).parent().nextAll(".source_code").slideDown(100);
18
+ $(this).text("Hide source");
19
+ },
20
+ function () {
21
+ $(this).parent().nextAll(".source_code").slideUp(100);
16
22
  $(this).text("View source");
17
- });
18
- }
23
+ }
24
+ );
25
+ }
19
26
 
20
- function createDefineLinks() {
27
+ function createDefineLinks() {
21
28
  var tHeight = 0;
22
- $('.defines').after(" <a href='#' class='toggleDefines'>more...</a>");
23
- $('.toggleDefines').toggle(function() {
29
+ $(".defines").after(" <a href='#' class='toggleDefines'>more...</a>");
30
+ $(".toggleDefines").toggle(
31
+ function () {
24
32
  tHeight = $(this).parent().prev().height();
25
- $(this).prev().css('display', 'inline');
33
+ $(this).prev().css("display", "inline");
26
34
  $(this).parent().prev().height($(this).parent().height());
27
35
  $(this).text("(less)");
28
- },
29
- function() {
36
+ },
37
+ function () {
30
38
  $(this).prev().hide();
31
39
  $(this).parent().prev().height(tHeight);
32
40
  $(this).text("more...");
33
- });
34
- }
41
+ }
42
+ );
43
+ }
35
44
 
36
- function createFullTreeLinks() {
45
+ function createFullTreeLinks() {
37
46
  var tHeight = 0;
38
- $('.inheritanceTree').toggle(function() {
47
+ $(".inheritanceTree").toggle(
48
+ function () {
39
49
  tHeight = $(this).parent().prev().height();
40
- $(this).parent().toggleClass('showAll');
50
+ $(this).parent().toggleClass("showAll");
41
51
  $(this).text("(hide)");
42
52
  $(this).parent().prev().height($(this).parent().height());
43
- },
44
- function() {
45
- $(this).parent().toggleClass('showAll');
53
+ },
54
+ function () {
55
+ $(this).parent().toggleClass("showAll");
46
56
  $(this).parent().prev().height(tHeight);
47
57
  $(this).text("show all");
58
+ }
59
+ );
60
+ }
61
+
62
+ function searchFrameButtons() {
63
+ $(".full_list_link").click(function () {
64
+ toggleSearchFrame(this, $(this).attr("href"));
65
+ return false;
66
+ });
67
+ window.addEventListener("message", function (e) {
68
+ if (e.data === "navEscape") {
69
+ $("#nav").slideUp(100);
70
+ $("#search a").removeClass("active inactive");
71
+ $(window).focus();
72
+ }
48
73
  });
49
- }
50
74
 
51
- function searchFrameButtons() {
52
- $('.full_list_link').click(function() {
53
- toggleSearchFrame(this, $(this).attr('href'));
54
- return false;
55
- });
56
- window.addEventListener('message', function(e) {
57
- if (e.data === 'navEscape') {
58
- $('#nav').slideUp(100);
59
- $('#search a').removeClass('active inactive');
60
- $(window).focus();
61
- }
62
- });
75
+ $(window).resize(function () {
76
+ if ($("#search:visible").length === 0) {
77
+ $("#nav").removeAttr("style");
78
+ $("#search a").removeClass("active inactive");
79
+ $(window).focus();
80
+ }
81
+ });
82
+ }
63
83
 
64
- $(window).resize(function() {
65
- if ($('#search:visible').length === 0) {
66
- $('#nav').removeAttr('style');
67
- $('#search a').removeClass('active inactive');
68
- $(window).focus();
84
+ function toggleSearchFrame(id, link) {
85
+ var frame = $("#nav");
86
+ $("#search a").removeClass("active").addClass("inactive");
87
+ if (frame.attr("src") === link && frame.css("display") !== "none") {
88
+ frame.slideUp(100);
89
+ $("#search a").removeClass("active inactive");
90
+ } else {
91
+ $(id).addClass("active").removeClass("inactive");
92
+ if (frame.attr("src") !== link) frame.attr("src", link);
93
+ frame.slideDown(100);
69
94
  }
70
- });
71
- }
72
-
73
- function toggleSearchFrame(id, link) {
74
- var frame = $('#nav');
75
- $('#search a').removeClass('active').addClass('inactive');
76
- if (frame.attr('src') === link && frame.css('display') !== "none") {
77
- frame.slideUp(100);
78
- $('#search a').removeClass('active inactive');
79
95
  }
80
- else {
81
- $(id).addClass('active').removeClass('inactive');
82
- if (frame.attr('src') !== link) frame.attr('src', link);
83
- frame.slideDown(100);
84
- }
85
- }
86
96
 
87
- function linkSummaries() {
88
- $('.summary_signature').click(function() {
89
- document.location = $(this).find('a').attr('href');
90
- });
91
- }
97
+ function linkSummaries() {
98
+ $(".summary_signature").click(function () {
99
+ document.location = $(this).find("a").attr("href");
100
+ });
101
+ }
92
102
 
93
- function summaryToggle() {
94
- $('.summary_toggle').click(function(e) {
95
- e.preventDefault();
96
- localStorage.summaryCollapsed = $(this).text();
97
- $('.summary_toggle').each(function() {
98
- $(this).text($(this).text() == "collapse" ? "expand" : "collapse");
99
- var next = $(this).parent().parent().nextAll('ul.summary').first();
100
- if (next.hasClass('compact')) {
101
- next.toggle();
102
- next.nextAll('ul.summary').first().toggle();
103
- }
104
- else if (next.hasClass('summary')) {
105
- var list = $('<ul class="summary compact" />');
106
- list.html(next.html());
107
- list.find('.summary_desc, .note').remove();
108
- list.find('a').each(function() {
109
- $(this).html($(this).find('strong').html());
110
- $(this).parent().html($(this)[0].outerHTML);
111
- });
112
- next.before(list);
113
- next.toggle();
114
- }
103
+ function summaryToggle() {
104
+ $(".summary_toggle").click(function (e) {
105
+ e.preventDefault();
106
+ localStorage.summaryCollapsed = $(this).text();
107
+ $(".summary_toggle").each(function () {
108
+ $(this).text($(this).text() == "collapse" ? "expand" : "collapse");
109
+ var next = $(this).parent().parent().nextAll("ul.summary").first();
110
+ if (next.hasClass("compact")) {
111
+ next.toggle();
112
+ next.nextAll("ul.summary").first().toggle();
113
+ } else if (next.hasClass("summary")) {
114
+ var list = $('<ul class="summary compact" />');
115
+ list.html(next.html());
116
+ list.find(".summary_desc, .note").remove();
117
+ list.find("a").each(function () {
118
+ $(this).html($(this).find("strong").html());
119
+ $(this).parent().html($(this)[0].outerHTML);
120
+ });
121
+ next.before(list);
122
+ next.toggle();
123
+ }
124
+ });
125
+ return false;
115
126
  });
116
- return false;
117
- });
118
- if (localStorage.summaryCollapsed == "collapse") {
119
- $('.summary_toggle').first().click();
120
- } else { localStorage.summaryCollapsed = "expand"; }
121
- }
127
+ if (localStorage.summaryCollapsed == "collapse") {
128
+ $(".summary_toggle").first().click();
129
+ } else {
130
+ localStorage.summaryCollapsed = "expand";
131
+ }
132
+ }
122
133
 
123
- function constantSummaryToggle() {
124
- $('.constants_summary_toggle').click(function(e) {
125
- e.preventDefault();
126
- localStorage.summaryCollapsed = $(this).text();
127
- $('.constants_summary_toggle').each(function() {
128
- $(this).text($(this).text() == "collapse" ? "expand" : "collapse");
129
- var next = $(this).parent().parent().nextAll('dl.constants').first();
130
- if (next.hasClass('compact')) {
131
- next.toggle();
132
- next.nextAll('dl.constants').first().toggle();
133
- }
134
- else if (next.hasClass('constants')) {
135
- var list = $('<dl class="constants compact" />');
136
- list.html(next.html());
137
- list.find('dt').each(function() {
138
- $(this).addClass('summary_signature');
139
- $(this).text( $(this).text().split('=')[0]);
140
- if ($(this).has(".deprecated").length) {
141
- $(this).addClass('deprecated');
142
- };
143
- });
144
- // Add the value of the constant as "Tooltip" to the summary object
145
- list.find('pre.code').each(function() {
146
- console.log($(this).parent());
147
- var dt_element = $(this).parent().prev();
148
- var tooltip = $(this).text();
149
- if (dt_element.hasClass("deprecated")) {
150
- tooltip = 'Deprecated. ' + tooltip;
151
- };
152
- dt_element.attr('title', tooltip);
153
- });
154
- list.find('.docstring, .tags, dd').remove();
155
- next.before(list);
156
- next.toggle();
157
- }
134
+ function constantSummaryToggle() {
135
+ $(".constants_summary_toggle").click(function (e) {
136
+ e.preventDefault();
137
+ localStorage.summaryCollapsed = $(this).text();
138
+ $(".constants_summary_toggle").each(function () {
139
+ $(this).text($(this).text() == "collapse" ? "expand" : "collapse");
140
+ var next = $(this).parent().parent().nextAll("dl.constants").first();
141
+ if (next.hasClass("compact")) {
142
+ next.toggle();
143
+ next.nextAll("dl.constants").first().toggle();
144
+ } else if (next.hasClass("constants")) {
145
+ var list = $('<dl class="constants compact" />');
146
+ list.html(next.html());
147
+ list.find("dt").each(function () {
148
+ $(this).addClass("summary_signature");
149
+ $(this).text($(this).text().split("=")[0]);
150
+ if ($(this).has(".deprecated").length) {
151
+ $(this).addClass("deprecated");
152
+ }
153
+ });
154
+ // Add the value of the constant as "Tooltip" to the summary object
155
+ list.find("pre.code").each(function () {
156
+ console.log($(this).parent());
157
+ var dt_element = $(this).parent().prev();
158
+ var tooltip = $(this).text();
159
+ if (dt_element.hasClass("deprecated")) {
160
+ tooltip = "Deprecated. " + tooltip;
161
+ }
162
+ dt_element.attr("title", tooltip);
163
+ });
164
+ list.find(".docstring, .tags, dd").remove();
165
+ next.before(list);
166
+ next.toggle();
167
+ }
168
+ });
169
+ return false;
158
170
  });
159
- return false;
160
- });
161
- if (localStorage.summaryCollapsed == "collapse") {
162
- $('.constants_summary_toggle').first().click();
163
- } else { localStorage.summaryCollapsed = "expand"; }
164
- }
171
+ if (localStorage.summaryCollapsed == "collapse") {
172
+ $(".constants_summary_toggle").first().click();
173
+ } else {
174
+ localStorage.summaryCollapsed = "expand";
175
+ }
176
+ }
165
177
 
166
- function generateTOC() {
167
- if ($('#filecontents').length === 0) return;
168
- var _toc = $('<ol class="top"></ol>');
169
- var show = false;
170
- var toc = _toc;
171
- var counter = 0;
172
- var tags = ['h2', 'h3', 'h4', 'h5', 'h6'];
173
- var i;
174
- var curli;
175
- if ($('#filecontents h1').length > 1) tags.unshift('h1');
176
- for (i = 0; i < tags.length; i++) { tags[i] = '#filecontents ' + tags[i]; }
177
- var lastTag = parseInt(tags[0][1], 10);
178
- $(tags.join(', ')).each(function() {
179
- if ($(this).parents('.method_details .docstring').length != 0) return;
180
- if (this.id == "filecontents") return;
181
- show = true;
182
- var thisTag = parseInt(this.tagName[1], 10);
183
- if (this.id.length === 0) {
184
- var proposedId = $(this).attr('toc-id');
185
- if (typeof(proposedId) != "undefined") this.id = proposedId;
186
- else {
187
- var proposedId = $(this).text().replace(/[^a-z0-9-]/ig, '_');
188
- if ($('#' + proposedId).length > 0) { proposedId += counter; counter++; }
189
- this.id = proposedId;
190
- }
178
+ function generateTOC() {
179
+ if ($("#filecontents").length === 0) return;
180
+ var _toc = $('<ol class="top"></ol>');
181
+ var show = false;
182
+ var toc = _toc;
183
+ var counter = 0;
184
+ var tags = ["h2", "h3", "h4", "h5", "h6"];
185
+ var i;
186
+ var curli;
187
+ if ($("#filecontents h1").length > 1) tags.unshift("h1");
188
+ for (i = 0; i < tags.length; i++) {
189
+ tags[i] = "#filecontents " + tags[i];
191
190
  }
192
- if (thisTag > lastTag) {
193
- for (i = 0; i < thisTag - lastTag; i++) {
194
- if ( typeof(curli) == "undefined" ) {
195
- curli = $('<li/>');
196
- toc.append(curli);
191
+ var lastTag = parseInt(tags[0][1], 10);
192
+ $(tags.join(", ")).each(function () {
193
+ if ($(this).parents(".method_details .docstring").length != 0) return;
194
+ if (this.id == "filecontents") return;
195
+ show = true;
196
+ var thisTag = parseInt(this.tagName[1], 10);
197
+ if (this.id.length === 0) {
198
+ var proposedId = $(this).attr("toc-id");
199
+ if (typeof proposedId != "undefined") this.id = proposedId;
200
+ else {
201
+ var proposedId = $(this)
202
+ .text()
203
+ .replace(/[^a-z0-9-]/gi, "_");
204
+ if ($("#" + proposedId).length > 0) {
205
+ proposedId += counter;
206
+ counter++;
207
+ }
208
+ this.id = proposedId;
197
209
  }
198
- toc = $('<ol/>');
199
- curli.append(toc);
200
- curli = undefined;
201
210
  }
202
- }
203
- if (thisTag < lastTag) {
204
- for (i = 0; i < lastTag - thisTag; i++) {
205
- toc = toc.parent();
206
- toc = toc.parent();
211
+ if (thisTag > lastTag) {
212
+ for (i = 0; i < thisTag - lastTag; i++) {
213
+ if (typeof curli == "undefined") {
214
+ curli = $("<li/>");
215
+ toc.append(curli);
216
+ }
217
+ toc = $("<ol/>");
218
+ curli.append(toc);
219
+ curli = undefined;
220
+ }
207
221
  }
208
- }
209
- var title = $(this).attr('toc-title');
210
- if (typeof(title) == "undefined") title = $(this).text();
211
- curli =$('<li><a href="#' + this.id + '">' + title + '</a></li>');
212
- toc.append(curli);
213
- lastTag = thisTag;
214
- });
215
- if (!show) return;
216
- html = '<div id="toc"><p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p></div>';
217
- $('#content').prepend(html);
218
- $('#toc').append(_toc);
219
- $('#toc .hide_toc').toggle(function() {
220
- $('#toc .top').slideUp('fast');
221
- $('#toc').toggleClass('hidden');
222
- $('#toc .title small').toggle();
223
- }, function() {
224
- $('#toc .top').slideDown('fast');
225
- $('#toc').toggleClass('hidden');
226
- $('#toc .title small').toggle();
227
- });
228
- }
229
-
230
- function navResizeFn(e) {
231
- if (e.which !== 1) {
232
- navResizeFnStop();
233
- return;
222
+ if (thisTag < lastTag) {
223
+ for (i = 0; i < lastTag - thisTag; i++) {
224
+ toc = toc.parent();
225
+ toc = toc.parent();
226
+ }
227
+ }
228
+ var title = $(this).attr("toc-title");
229
+ if (typeof title == "undefined") title = $(this).text();
230
+ curli = $('<li><a href="#' + this.id + '">' + title + "</a></li>");
231
+ toc.append(curli);
232
+ lastTag = thisTag;
233
+ });
234
+ if (!show) return;
235
+ html =
236
+ '<div id="toc"><p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p></div>';
237
+ $("#content").prepend(html);
238
+ $("#toc").append(_toc);
239
+ $("#toc .hide_toc").toggle(
240
+ function () {
241
+ $("#toc .top").slideUp("fast");
242
+ $("#toc").toggleClass("hidden");
243
+ $("#toc .title small").toggle();
244
+ },
245
+ function () {
246
+ $("#toc .top").slideDown("fast");
247
+ $("#toc").toggleClass("hidden");
248
+ $("#toc .title small").toggle();
249
+ }
250
+ );
234
251
  }
235
252
 
236
- sessionStorage.navWidth = e.pageX.toString();
237
- $('.nav_wrap').css('width', e.pageX);
238
- $('.nav_wrap').css('-ms-flex', 'inherit');
239
- }
240
-
241
- function navResizeFnStop() {
242
- $(window).unbind('mousemove', navResizeFn);
243
- window.removeEventListener('message', navMessageFn, false);
244
- }
245
-
246
- function navMessageFn(e) {
247
- if (e.data.action === 'mousemove') navResizeFn(e.data.event);
248
- if (e.data.action === 'mouseup') navResizeFnStop();
249
- }
253
+ function navResizeFn(e) {
254
+ if (e.which !== 1) {
255
+ navResizeFnStop();
256
+ return;
257
+ }
250
258
 
251
- function navResizer() {
252
- $('#resizer').mousedown(function(e) {
253
- e.preventDefault();
254
- $(window).mousemove(navResizeFn);
255
- window.addEventListener('message', navMessageFn, false);
256
- });
257
- $(window).mouseup(navResizeFnStop);
259
+ sessionStorage.navWidth = e.pageX.toString();
260
+ $(".nav_wrap").css("width", e.pageX);
261
+ $(".nav_wrap").css("-ms-flex", "inherit");
262
+ }
258
263
 
259
- if (sessionStorage.navWidth) {
260
- navResizeFn({which: 1, pageX: parseInt(sessionStorage.navWidth, 10)});
264
+ function navResizeFnStop() {
265
+ $(window).unbind("mousemove", navResizeFn);
266
+ window.removeEventListener("message", navMessageFn, false);
261
267
  }
262
- }
263
268
 
264
- function navExpander() {
265
- var done = false, timer = setTimeout(postMessage, 500);
266
- function postMessage() {
267
- if (done) return;
268
- clearTimeout(timer);
269
- var opts = { action: 'expand', path: pathId };
270
- document.getElementById('nav').contentWindow.postMessage(opts, '*');
271
- done = true;
269
+ function navMessageFn(e) {
270
+ if (e.data.action === "mousemove") navResizeFn(e.data.event);
271
+ if (e.data.action === "mouseup") navResizeFnStop();
272
272
  }
273
273
 
274
- window.addEventListener('message', function(event) {
275
- if (event.data === 'navReady') postMessage();
276
- return false;
277
- }, false);
278
- }
274
+ function navResizer() {
275
+ $("#resizer").mousedown(function (e) {
276
+ e.preventDefault();
277
+ $(window).mousemove(navResizeFn);
278
+ window.addEventListener("message", navMessageFn, false);
279
+ });
280
+ $(window).mouseup(navResizeFnStop);
279
281
 
280
- function mainFocus() {
281
- var hash = window.location.hash;
282
- if (hash !== '' && $(hash)[0]) {
283
- $(hash)[0].scrollIntoView();
282
+ if (sessionStorage.navWidth) {
283
+ navResizeFn({ which: 1, pageX: parseInt(sessionStorage.navWidth, 10) });
284
+ }
284
285
  }
285
286
 
286
- setTimeout(function() { $('#main').focus(); }, 10);
287
- }
287
+ function navExpander() {
288
+ if (typeof pathId === "undefined") return;
289
+ var done = false,
290
+ timer = setTimeout(postMessage, 500);
291
+ function postMessage() {
292
+ if (done) return;
293
+ clearTimeout(timer);
294
+ var opts = { action: "expand", path: pathId };
295
+ document.getElementById("nav").contentWindow.postMessage(opts, "*");
296
+ done = true;
297
+ }
288
298
 
289
- function navigationChange() {
290
- // This works around the broken anchor navigation with the YARD template.
291
- window.onpopstate = function() {
299
+ window.addEventListener(
300
+ "message",
301
+ function (event) {
302
+ if (event.data === "navReady") postMessage();
303
+ return false;
304
+ },
305
+ false
306
+ );
307
+ }
308
+
309
+ function mainFocus() {
292
310
  var hash = window.location.hash;
293
- if (hash !== '' && $(hash)[0]) {
311
+ if (hash !== "" && $(hash)[0]) {
294
312
  $(hash)[0].scrollIntoView();
295
313
  }
296
- };
297
- }
298
314
 
299
- $(document).ready(function() {
300
- navResizer();
301
- navExpander();
302
- createSourceLinks();
303
- createDefineLinks();
304
- createFullTreeLinks();
305
- searchFrameButtons();
306
- linkSummaries();
307
- summaryToggle();
308
- constantSummaryToggle();
309
- generateTOC();
310
- mainFocus();
311
- navigationChange();
312
- });
315
+ setTimeout(function () {
316
+ $("#main").focus();
317
+ }, 10);
318
+ }
313
319
 
320
+ function navigationChange() {
321
+ // This works around the broken anchor navigation with the YARD template.
322
+ window.onpopstate = function () {
323
+ var hash = window.location.hash;
324
+ if (hash !== "" && $(hash)[0]) {
325
+ $(hash)[0].scrollIntoView();
326
+ }
327
+ };
328
+ }
329
+
330
+ $(document).ready(function () {
331
+ navResizer();
332
+ navExpander();
333
+ createSourceLinks();
334
+ createDefineLinks();
335
+ createFullTreeLinks();
336
+ searchFrameButtons();
337
+ linkSummaries();
338
+ summaryToggle();
339
+ constantSummaryToggle();
340
+ generateTOC();
341
+ mainFocus();
342
+ navigationChange();
343
+ });
314
344
  })();