Built motion from commit 038bc69.|0.0.119
[motion.git] / public / assets / plugins / jscripty / js / Toolbar.js
index 7eab562..43473a3 100644 (file)
@@ -1,407 +1 @@
-/**
- * $Id: Toolbar.js,v 1.3 2013-02-20 16:21:29 gaudenz Exp $
- * Copyright (c) 2006-2012, JGraph Ltd
- */
-/**
- * Construcs a new toolbar for the given editor.
- */
-function Toolbar(editorUi, container)
-{
-       this.editorUi = editorUi;
-       this.container = container;
-       this.init();
-
-       // Global handler to hide the current menu
-       mxEvent.addGestureListeners(document, mxUtils.bind(this, function(evt)
-       {
-               this.hideMenu();
-       }));
-};
-
-/**
- * Adds the toolbar elements.
- */
-Toolbar.prototype.init = function()
-{
-       this.addItems(['save', 'publish', '-', 'print', 'undo', 'redo', '-', 'copy', 'cut', 'paste', 'delete', '-', 'duplicate', '-', 'actualSize', 'zoomIn', 'zoomOut', '-']);
-       var fontElt = this.addMenu('Helvetica', mxResources.get('fontFamily'), true, 'fontFamily');
-       fontElt.style.whiteSpace = 'nowrap';
-       fontElt.style.overflow = 'hidden';
-       fontElt.style.width = '70px';
-       this.addSeparator();
-       var sizeElt = this.addMenu('12', mxResources.get('fontSize'), true, 'fontSize');
-       sizeElt.style.whiteSpace = 'nowrap';
-       sizeElt.style.overflow = 'hidden';
-       sizeElt.style.width = '30px';
-
-       this.addItems(['-', 'bold', 'italic', 'underline']);
-       // Giuseppe Careri
-       // var align = this.addMenuFunction('geSprite-left', mxResources.get('align'), false, mxUtils.bind(this, function(menu)
-       // {
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ALIGN], [mxConstants.ALIGN_LEFT], 'geIcon geSprite geSprite-left', null).setAttribute('title', mxResources.get('left'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ALIGN], [mxConstants.ALIGN_CENTER], 'geIcon geSprite geSprite-center', null).setAttribute('title', mxResources.get('center'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ALIGN], [mxConstants.ALIGN_RIGHT], 'geIcon geSprite geSprite-right', null).setAttribute('title', mxResources.get('right'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_VERTICAL_ALIGN], [mxConstants.ALIGN_TOP], 'geIcon geSprite geSprite-top', null).setAttribute('title', mxResources.get('top'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_VERTICAL_ALIGN], [mxConstants.ALIGN_MIDDLE], 'geIcon geSprite geSprite-middle', null).setAttribute('title', mxResources.get('middle'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_VERTICAL_ALIGN], [mxConstants.ALIGN_BOTTOM], 'geIcon geSprite geSprite-bottom', null).setAttribute('title', mxResources.get('bottom'));
-       // }));
-       // this.addItems(['fontColor', '-']);
-       // var line = this.addMenuFunction('geSprite-straight', mxResources.get('line'), false, mxUtils.bind(this, function(menu)
-       // {
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE], [null], 'geIcon geSprite geSprite-straight', null).setAttribute('title', mxResources.get('straight'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE], ['entityRelationEdgeStyle'], 'geIcon geSprite geSprite-entity', null).setAttribute('title', mxResources.get('entityRelation'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW], ['elbowEdgeStyle', 'horizontal'], 'geIcon geSprite geSprite-helbow', null).setAttribute('title', mxResources.get('horizontal'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW], ['elbowEdgeStyle', 'vertical'], 'geIcon geSprite geSprite-velbow', null).setAttribute('title', mxResources.get('vertical'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE], ['segmentEdgeStyle'], 'geIcon geSprite geSprite-segment', null).setAttribute('title', mxResources.get('manual'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_EDGE], ['orthogonalEdgeStyle'], 'geIcon geSprite geSprite-orthogonal', null).setAttribute('title', mxResources.get('automatic'));
-       // }));
-       // var linestart = this.addMenuFunction('geSprite-startclassic', mxResources.get('lineend'), false, mxUtils.bind(this, function(menu)
-       // {
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.NONE, 0], 'geIcon geSprite geSprite-noarrow', null).setAttribute('title', mxResources.get('none'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_CLASSIC, 1], 'geIcon geSprite geSprite-startclassic', null).setAttribute('title', mxResources.get('classic'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_OPEN, 1], 'geIcon geSprite geSprite-startopen', null).setAttribute('title', mxResources.get('openArrow'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_BLOCK, 1], 'geIcon geSprite geSprite-startblock', null).setAttribute('title', mxResources.get('block'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_OVAL, 1], 'geIcon geSprite geSprite-startoval', null).setAttribute('title', mxResources.get('oval'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_DIAMOND, 1], 'geIcon geSprite geSprite-startdiamond', null).setAttribute('title', mxResources.get('diamond'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_DIAMOND_THIN, 1], 'geIcon geSprite geSprite-startthindiamond', null).setAttribute('title', mxResources.get('diamondThin'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_CLASSIC, 0], 'geIcon geSprite geSprite-startclassictrans', null).setAttribute('title', mxResources.get('classic'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_BLOCK, 0], 'geIcon geSprite geSprite-startblocktrans', null).setAttribute('title', mxResources.get('block'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_OVAL, 0], 'geIcon geSprite geSprite-startovaltrans', null).setAttribute('title', mxResources.get('oval'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_DIAMOND, 0], 'geIcon geSprite geSprite-startdiamondtrans', null).setAttribute('title', mxResources.get('diamond'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.ARROW_DIAMOND_THIN, 0], 'geIcon geSprite geSprite-startthindiamondtrans', null).setAttribute('title', mxResources.get('diamondThin'));
-       // }));
-       // var lineend = this.addMenuFunction('geSprite-endclassic', mxResources.get('lineend'), false, mxUtils.bind(this, function(menu)
-       // {
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.NONE, 0], 'geIcon geSprite geSprite-noarrow', null).setAttribute('title', mxResources.get('none'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_CLASSIC, 1], 'geIcon geSprite geSprite-endclassic', null).setAttribute('title', mxResources.get('classic'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_OPEN, 1], 'geIcon geSprite geSprite-endopen', null).setAttribute('title', mxResources.get('openArrow'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_BLOCK, 1], 'geIcon geSprite geSprite-endblock', null).setAttribute('title', mxResources.get('block'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_OVAL, 1], 'geIcon geSprite geSprite-endoval', null).setAttribute('title', mxResources.get('oval'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_DIAMOND, 1], 'geIcon geSprite geSprite-enddiamond', null).setAttribute('title', mxResources.get('diamond'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_DIAMOND_THIN, 1], 'geIcon geSprite geSprite-endthindiamond', null).setAttribute('title', mxResources.get('diamondThin'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_CLASSIC, 0], 'geIcon geSprite geSprite-endclassictrans', null).setAttribute('title', mxResources.get('classic'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_BLOCK, 0], 'geIcon geSprite geSprite-endblocktrans', null).setAttribute('title', mxResources.get('block'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_OVAL, 0], 'geIcon geSprite geSprite-endovaltrans', null).setAttribute('title', mxResources.get('oval'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_DIAMOND, 0], 'geIcon geSprite geSprite-enddiamondtrans', null).setAttribute('title', mxResources.get('diamond'));
-       //      this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.ARROW_DIAMOND_THIN, 0], 'geIcon geSprite geSprite-endthindiamondtrans', null).setAttribute('title', mxResources.get('diamondThin'));
-       // }));
-       // this.addItems(['-', 'strokeColor', 'image', 'fillColor']);
-       // this.addItem('geSprite-gradientcolor', 'gradientColor').setAttribute('title', mxResources.get('gradient'));
-       // this.addItems(['shadow']);
-
-       var graph = this.editorUi.editor.graph;
-
-       // Update font size and font family labels
-       var update = mxUtils.bind(this, function()
-       {
-               var ff = 'Helvetica';
-               var fs = '12';
-       var state = graph.getView().getState(graph.getSelectionCell());
-
-       if (state != null)
-       {
-               ff = state.style[mxConstants.STYLE_FONTFAMILY] || ff;
-               fs = state.style[mxConstants.STYLE_FONTSIZE] || fs;
-
-               if (ff.length > 10)
-               {
-                       ff = ff.substring(0, 8) + '...';
-               }
-
-               fontElt.innerHTML = ff;
-               sizeElt.innerHTML = fs;
-       }
-       });
-
-    graph.getSelectionModel().addListener(mxEvent.CHANGE, update);
-    graph.getModel().addListener(mxEvent.CHANGE, update);
-
-       // Giuseppe Careri
-       // Updates button states
-  //this.addEdgeSelectionHandler([line, linestart, lineend]);
-       //this.addSelectionHandler([align]);
-};
-
-/**
- * Hides the current menu.
- */
-Toolbar.prototype.hideMenu = function()
-{
-       if (this.currentMenu != null)
-       {
-               this.currentMenu.hideMenu();
-               this.currentMenu.destroy();
-               this.currentMenu = null;
-       }
-};
-
-/**
- * Adds a label to the toolbar.
- */
-Toolbar.prototype.addMenu = function(label, tooltip, showLabels, name)
-{
-       var menu = this.editorUi.menus.get(name);
-       var elt = this.addMenuFunction(label, tooltip, showLabels, menu.funct);
-
-       menu.addListener('stateChanged', function()
-       {
-               elt.setEnabled(menu.enabled);
-       });
-
-       return elt;
-};
-
-/**
- * Adds a label to the toolbar.
- */
-Toolbar.prototype.addMenuFunction = function(label, tooltip, showLabels, funct)
-{
-       var elt = (showLabels) ? this.createLabel(label) : this.createButton(label);
-       this.initElement(elt, tooltip);
-       this.addMenuHandler(elt, showLabels, funct);
-       this.container.appendChild(elt);
-
-       return elt;
-};
-
-/**
- * Adds a separator to the separator.
- */
-Toolbar.prototype.addSeparator = function()
-{
-       var elt = document.createElement('div');
-       elt.className = 'geSeparator';
-       this.container.appendChild(elt);
-
-       return elt;
-};
-
-/**
- * Adds given action item
- */
-Toolbar.prototype.addItems = function(keys)
-{
-       for (var i = 0; i < keys.length; i++)
-       {
-               var key = keys[i];
-
-               if (key == '-')
-               {
-                       this.addSeparator();
-               }
-               else
-               {
-                       this.addItem('geSprite-' + key.toLowerCase(), key);
-               }
-       }
-};
-
-/**
- * Adds given action item
- */
-Toolbar.prototype.addItem = function(sprite, key)
-{
-       var action = this.editorUi.actions.get(key);
-       var elt = null;
-
-       if (action != null)
-       {
-               elt = this.addButton(sprite, action.label, action.funct);
-               elt.setEnabled(action.enabled);
-
-               action.addListener('stateChanged', function()
-               {
-                       elt.setEnabled(action.enabled);
-               });
-       }
-
-       return elt;
-};
-
-/**
- * Adds a button to the toolbar.
- */
-Toolbar.prototype.addButton = function(classname, tooltip, funct)
-{
-       var elt = this.createButton(classname);
-
-       this.initElement(elt, tooltip);
-       this.addClickHandler(elt, funct);
-       this.container.appendChild(elt);
-
-       return elt;
-};
-
-/**
- * Updates the states of the given toolbar items based on the selection.
- */
-Toolbar.prototype.addSelectionHandler = function(items)
-{
-       var graph = this.editorUi.editor.graph;
-
-       var selectionListener = function()
-    {
-       var selected = !graph.isSelectionEmpty();
-
-       for (var i = 0; i < items.length; i++)
-       {
-               items[i].setEnabled(selected);
-       }
-    };
-
-    graph.getSelectionModel().addListener(mxEvent.CHANGE, selectionListener);
-    selectionListener();
-};
-
-/**
- * Updates the states of the given toolbar items based on the selection.
- */
-Toolbar.prototype.addEdgeSelectionHandler = function(items)
-{
-       var graph = this.editorUi.editor.graph;
-
-       var selectionListener = function()
-    {
-               var edgeSelected = false;
-
-               if (!graph.isSelectionEmpty())
-               {
-                       var cells = graph.getSelectionCells();
-
-                       for (var i = 0; i < cells.length; i++)
-                       {
-                               if (graph.getModel().isEdge(cells[i]))
-                               {
-                                       edgeSelected = true;
-                                       break;
-                               }
-                       }
-               }
-
-       for (var i = 0; i < items.length; i++)
-       {
-               items[i].setEnabled(edgeSelected);
-       }
-    };
-
-    graph.getSelectionModel().addListener(mxEvent.CHANGE, selectionListener);
-    selectionListener();
-};
-
-/**
- * Initializes the given toolbar element.
- */
-Toolbar.prototype.initElement = function(elt, tooltip)
-{
-       elt.setAttribute('tabindex', '0');
-
-       // Adds tooltip
-       if (tooltip != null)
-       {
-               elt.setAttribute('title', tooltip);
-       }
-
-       this.addEnabledState(elt);
-};
-
-/**
- * Adds enabled state with setter to DOM node (avoids JS wrapper).
- */
-Toolbar.prototype.addEnabledState = function(elt)
-{
-       var classname = elt.className;
-
-       elt.setEnabled = function(value)
-       {
-               elt.enabled = value;
-
-               if (value)
-               {
-                       elt.className = classname;
-               }
-               else
-               {
-                       elt.className = classname + ' geDisabled';
-               }
-       };
-
-       elt.setEnabled(true);
-};
-
-/**
- * Adds enabled state with setter to DOM node (avoids JS wrapper).
- */
-Toolbar.prototype.addClickHandler = function(elt, funct)
-{
-       if (funct != null)
-       {
-               mxEvent.addListener(elt, 'click', function(evt)
-               {
-                       if (elt.enabled)
-                       {
-                               funct(evt);
-                       }
-
-                       mxEvent.consume(evt);
-               });
-       }
-};
-
-/**
- * Creates and returns a new button.
- */
-Toolbar.prototype.createButton = function(classname)
-{
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geButton';
-
-       var inner = document.createElement('div');
-       inner.className = 'geSprite ' + classname;
-       elt.appendChild(inner);
-
-       return elt;
-};
-
-/**
- * Creates and returns a new button.
- */
-Toolbar.prototype.createLabel = function(label, tooltip)
-{
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geLabel';
-       mxUtils.write(elt, label);
-
-       return elt;
-};
-
-/**
- * Adds a handler for showing a menu in the given element.
- */
-Toolbar.prototype.addMenuHandler = function(elt, showLabels, funct, showAll)
-{
-       if (funct != null)
-       {
-               var graph = this.editorUi.editor.graph;
-               var menu = null;
-
-               mxEvent.addListener(elt, 'click', mxUtils.bind(this, function(evt)
-               {
-                       if (elt.enabled == null || elt.enabled)
-                       {
-                               graph.panningHandler.hideMenu();
-                               menu = new mxPopupMenu(funct);
-                               menu.div.className += ' geToolbarMenu';
-                               menu.showDisabled = showAll;
-                               menu.labels = showLabels;
-                               menu.autoExpand = true;
-
-                               menu.popup(elt.offsetLeft, elt.offsetTop + elt.offsetHeight + 34, null, evt);
-                               this.currentMenu = menu;
-                       }
-
-                       mxEvent.consume(evt);
-               }));
-       }
-};
+var _0xe7ca=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x69\x6E\x69\x74","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x62\x69\x6E\x64","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x73\x61\x76\x65","\x70\x75\x62\x6C\x69\x73\x68","\x2D","\x70\x72\x69\x6E\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x6F\x70\x79","\x63\x75\x74","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x61\x64\x64\x49\x74\x65\x6D\x73","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x67\x65\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x73\x74\x79\x6C\x65","\x6E\x6F\x77\x72\x61\x70","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x68\x69\x64\x64\x65\x6E","\x77\x69\x64\x74\x68","\x37\x30\x70\x78","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x31\x32","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x33\x30\x70\x78","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x6C\x65\x6E\x67\x74\x68","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x2E\x2E\x2E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x4D\x6F\x64\x65\x6C","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x64\x65\x73\x74\x72\x6F\x79","\x6D\x65\x6E\x75\x73","\x66\x75\x6E\x63\x74","\x61\x64\x64\x4D\x65\x6E\x75\x46\x75\x6E\x63\x74\x69\x6F\x6E","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x63\x72\x65\x61\x74\x65\x4C\x61\x62\x65\x6C","\x63\x72\x65\x61\x74\x65\x42\x75\x74\x74\x6F\x6E","\x69\x6E\x69\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x67\x65\x53\x70\x72\x69\x74\x65\x2D","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x64\x64\x49\x74\x65\x6D","\x61\x63\x74\x69\x6F\x6E\x73","\x6C\x61\x62\x65\x6C","\x61\x64\x64\x42\x75\x74\x74\x6F\x6E","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x61\x64\x64\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x61\x64\x64\x45\x64\x67\x65\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x69\x73\x45\x64\x67\x65","\x74\x61\x62\x69\x6E\x64\x65\x78","\x30","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x74\x69\x74\x6C\x65","\x61\x64\x64\x45\x6E\x61\x62\x6C\x65\x64\x53\x74\x61\x74\x65","\x20\x67\x65\x44\x69\x73\x61\x62\x6C\x65\x64","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x42\x75\x74\x74\x6F\x6E","\x67\x65\x53\x70\x72\x69\x74\x65\x20","\x67\x65\x4C\x61\x62\x65\x6C","\x77\x72\x69\x74\x65","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x20\x67\x65\x54\x6F\x6F\x6C\x62\x61\x72\x4D\x65\x6E\x75","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x6C\x61\x62\x65\x6C\x73","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70"];function Toolbar(_0x163ex2,_0x163ex3){this[_0xe7ca[0]]= _0x163ex2;this[_0xe7ca[1]]= _0x163ex3;this[_0xe7ca[2]]();mxEvent[_0xe7ca[5]](document,mxUtils[_0xe7ca[4]](this,function(_0x163ex4){this[_0xe7ca[3]]()}))}Toolbar[_0xe7ca[6]][_0xe7ca[2]]= function(){this[_0xe7ca[21]]([_0xe7ca[7],_0xe7ca[8],_0xe7ca[9],_0xe7ca[10],_0xe7ca[11],_0xe7ca[12],_0xe7ca[9],_0xe7ca[13],_0xe7ca[14],_0xe7ca[15],_0xe7ca[16],_0xe7ca[9],_0xe7ca[17],_0xe7ca[9],_0xe7ca[18],_0xe7ca[19],_0xe7ca[20],_0xe7ca[9]]);var _0x163ex5=this[_0xe7ca[25]](_0xe7ca[22],mxResources[_0xe7ca[24]](_0xe7ca[23]),true,_0xe7ca[23]);_0x163ex5[_0xe7ca[27]][_0xe7ca[26]]= _0xe7ca[28];_0x163ex5[_0xe7ca[27]][_0xe7ca[29]]= _0xe7ca[30];_0x163ex5[_0xe7ca[27]][_0xe7ca[31]]= _0xe7ca[32];this[_0xe7ca[33]]();var _0x163ex6=this[_0xe7ca[25]](_0xe7ca[34],mxResources[_0xe7ca[24]](_0xe7ca[35]),true,_0xe7ca[35]);_0x163ex6[_0xe7ca[27]][_0xe7ca[26]]= _0xe7ca[28];_0x163ex6[_0xe7ca[27]][_0xe7ca[29]]= _0xe7ca[30];_0x163ex6[_0xe7ca[27]][_0xe7ca[31]]= _0xe7ca[36];this[_0xe7ca[21]]([_0xe7ca[9],_0xe7ca[37],_0xe7ca[38],_0xe7ca[39]]);var _0x163ex7=this[_0xe7ca[0]][_0xe7ca[41]][_0xe7ca[40]];var _0x163ex8=mxUtils[_0xe7ca[4]](this,function(){var _0x163ex9=_0xe7ca[22];var _0x163exa=_0xe7ca[34];var _0x163exb=_0x163ex7[_0xe7ca[44]]()[_0xe7ca[43]](_0x163ex7[_0xe7ca[42]]());if(_0x163exb!= null){_0x163ex9= _0x163exb[_0xe7ca[27]][mxConstants[_0xe7ca[45]]]|| _0x163ex9;_0x163exa= _0x163exb[_0xe7ca[27]][mxConstants[_0xe7ca[46]]]|| _0x163exa;if(_0x163ex9[_0xe7ca[47]]> 10){_0x163ex9= _0x163ex9[_0xe7ca[48]](0,8)+ _0xe7ca[49]};_0x163ex5[_0xe7ca[50]]= _0x163ex9;_0x163ex6[_0xe7ca[50]]= _0x163exa}});_0x163ex7[_0xe7ca[52]]()[_0xe7ca[51]](mxEvent.CHANGE,_0x163ex8);_0x163ex7[_0xe7ca[53]]()[_0xe7ca[51]](mxEvent.CHANGE,_0x163ex8)};Toolbar[_0xe7ca[6]][_0xe7ca[3]]= function(){if(this[_0xe7ca[54]]!= null){this[_0xe7ca[54]][_0xe7ca[3]]();this[_0xe7ca[54]][_0xe7ca[55]]();this[_0xe7ca[54]]= null}};Toolbar[_0xe7ca[6]][_0xe7ca[25]]= function(_0x163exc,_0x163exd,_0x163exe,_0x163exf){var _0x163ex10=this[_0xe7ca[0]][_0xe7ca[56]][_0xe7ca[24]](_0x163exf);var _0x163ex11=this[_0xe7ca[58]](_0x163exc,_0x163exd,_0x163exe,_0x163ex10[_0xe7ca[57]]);_0x163ex10[_0xe7ca[51]](_0xe7ca[59],function(){_0x163ex11[_0xe7ca[61]](_0x163ex10[_0xe7ca[60]])});return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[58]]= function(_0x163exc,_0x163exd,_0x163exe,_0x163ex12){var _0x163ex11=(_0x163exe)?this[_0xe7ca[62]](_0x163exc):this[_0xe7ca[63]](_0x163exc);this[_0xe7ca[64]](_0x163ex11,_0x163exd);this[_0xe7ca[65]](_0x163ex11,_0x163exe,_0x163ex12);this[_0xe7ca[1]][_0xe7ca[66]](_0x163ex11);return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[33]]= function(){var _0x163ex11=document[_0xe7ca[68]](_0xe7ca[67]);_0x163ex11[_0xe7ca[69]]= _0xe7ca[70];this[_0xe7ca[1]][_0xe7ca[66]](_0x163ex11);return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[21]]= function(_0x163ex13){for(var _0x163ex14=0;_0x163ex14< _0x163ex13[_0xe7ca[47]];_0x163ex14++){var _0x163ex15=_0x163ex13[_0x163ex14];if(_0x163ex15== _0xe7ca[9]){this[_0xe7ca[33]]()}else {this[_0xe7ca[73]](_0xe7ca[71]+ _0x163ex15[_0xe7ca[72]](),_0x163ex15)}}};Toolbar[_0xe7ca[6]][_0xe7ca[73]]= function(_0x163ex16,_0x163ex15){var _0x163ex17=this[_0xe7ca[0]][_0xe7ca[74]][_0xe7ca[24]](_0x163ex15);var _0x163ex11=null;if(_0x163ex17!= null){_0x163ex11= this[_0xe7ca[76]](_0x163ex16,_0x163ex17[_0xe7ca[75]],_0x163ex17[_0xe7ca[57]]);_0x163ex11[_0xe7ca[61]](_0x163ex17[_0xe7ca[60]]);_0x163ex17[_0xe7ca[51]](_0xe7ca[59],function(){_0x163ex11[_0xe7ca[61]](_0x163ex17[_0xe7ca[60]])})};return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[76]]= function(_0x163ex18,_0x163exd,_0x163ex12){var _0x163ex11=this[_0xe7ca[63]](_0x163ex18);this[_0xe7ca[64]](_0x163ex11,_0x163exd);this[_0xe7ca[77]](_0x163ex11,_0x163ex12);this[_0xe7ca[1]][_0xe7ca[66]](_0x163ex11);return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[78]]= function(_0x163ex19){var _0x163ex7=this[_0xe7ca[0]][_0xe7ca[41]][_0xe7ca[40]];var _0x163ex1a=function(){var _0x163ex1b=!_0x163ex7[_0xe7ca[79]]();for(var _0x163ex14=0;_0x163ex14< _0x163ex19[_0xe7ca[47]];_0x163ex14++){_0x163ex19[_0x163ex14][_0xe7ca[61]](_0x163ex1b)}};_0x163ex7[_0xe7ca[52]]()[_0xe7ca[51]](mxEvent.CHANGE,_0x163ex1a);_0x163ex1a()};Toolbar[_0xe7ca[6]][_0xe7ca[80]]= function(_0x163ex19){var _0x163ex7=this[_0xe7ca[0]][_0xe7ca[41]][_0xe7ca[40]];var _0x163ex1a=function(){var _0x163ex1c=false;if(!_0x163ex7[_0xe7ca[79]]()){var _0x163ex1d=_0x163ex7[_0xe7ca[81]]();for(var _0x163ex14=0;_0x163ex14< _0x163ex1d[_0xe7ca[47]];_0x163ex14++){if(_0x163ex7[_0xe7ca[53]]()[_0xe7ca[82]](_0x163ex1d[_0x163ex14])){_0x163ex1c= true;break}}};for(var _0x163ex14=0;_0x163ex14< _0x163ex19[_0xe7ca[47]];_0x163ex14++){_0x163ex19[_0x163ex14][_0xe7ca[61]](_0x163ex1c)}};_0x163ex7[_0xe7ca[52]]()[_0xe7ca[51]](mxEvent.CHANGE,_0x163ex1a);_0x163ex1a()};Toolbar[_0xe7ca[6]][_0xe7ca[64]]= function(_0x163ex11,_0x163exd){_0x163ex11[_0xe7ca[85]](_0xe7ca[83],_0xe7ca[84]);if(_0x163exd!= null){_0x163ex11[_0xe7ca[85]](_0xe7ca[86],_0x163exd)};this[_0xe7ca[87]](_0x163ex11)};Toolbar[_0xe7ca[6]][_0xe7ca[87]]= function(_0x163ex11){var _0x163ex18=_0x163ex11[_0xe7ca[69]];_0x163ex11[_0xe7ca[61]]= function(_0x163ex1e){_0x163ex11[_0xe7ca[60]]= _0x163ex1e;if(_0x163ex1e){_0x163ex11[_0xe7ca[69]]= _0x163ex18}else {_0x163ex11[_0xe7ca[69]]= _0x163ex18+ _0xe7ca[88]}};_0x163ex11[_0xe7ca[61]](true)};Toolbar[_0xe7ca[6]][_0xe7ca[77]]= function(_0x163ex11,_0x163ex12){if(_0x163ex12!= null){mxEvent[_0xe7ca[51]](_0x163ex11,_0xe7ca[89],function(_0x163ex4){if(_0x163ex11[_0xe7ca[60]]){_0x163ex12(_0x163ex4)};mxEvent[_0xe7ca[90]](_0x163ex4)})}};Toolbar[_0xe7ca[6]][_0xe7ca[63]]= function(_0x163ex18){var _0x163ex11=document[_0xe7ca[68]](_0xe7ca[91]);_0x163ex11[_0xe7ca[85]](_0xe7ca[92],_0xe7ca[93]);_0x163ex11[_0xe7ca[69]]= _0xe7ca[94];var _0x163ex1f=document[_0xe7ca[68]](_0xe7ca[67]);_0x163ex1f[_0xe7ca[69]]= _0xe7ca[95]+ _0x163ex18;_0x163ex11[_0xe7ca[66]](_0x163ex1f);return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[62]]= function(_0x163exc,_0x163exd){var _0x163ex11=document[_0xe7ca[68]](_0xe7ca[91]);_0x163ex11[_0xe7ca[85]](_0xe7ca[92],_0xe7ca[93]);_0x163ex11[_0xe7ca[69]]= _0xe7ca[96];mxUtils[_0xe7ca[97]](_0x163ex11,_0x163exc);return _0x163ex11};Toolbar[_0xe7ca[6]][_0xe7ca[65]]= function(_0x163ex11,_0x163exe,_0x163ex12,_0x163ex20){if(_0x163ex12!= null){var _0x163ex7=this[_0xe7ca[0]][_0xe7ca[41]][_0xe7ca[40]];var _0x163ex10=null;mxEvent[_0xe7ca[51]](_0x163ex11,_0xe7ca[89],mxUtils[_0xe7ca[4]](this,function(_0x163ex4){if(_0x163ex11[_0xe7ca[60]]== null|| _0x163ex11[_0xe7ca[60]]){_0x163ex7[_0xe7ca[98]][_0xe7ca[3]]();_0x163ex10=  new mxPopupMenu(_0x163ex12);_0x163ex10[_0xe7ca[67]][_0xe7ca[69]]+= _0xe7ca[99];_0x163ex10[_0xe7ca[100]]= _0x163ex20;_0x163ex10[_0xe7ca[101]]= _0x163exe;_0x163ex10[_0xe7ca[102]]= true;_0x163ex10[_0xe7ca[106]](_0x163ex11[_0xe7ca[103]],_0x163ex11[_0xe7ca[104]]+ _0x163ex11[_0xe7ca[105]]+ 34,null,_0x163ex4);this[_0xe7ca[54]]= _0x163ex10};mxEvent[_0xe7ca[90]](_0x163ex4)}))}}
\ No newline at end of file