123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*******************************************************************************
- AToMPM - A Tool for Multi-Paradigm Modelling
- Copyright (c) 2012 Conner Hansen (chansen@crimson.ua.edu)
- This file is part of AToMPM.
- AToMPM is free software: you can redistribute it and/or modify it under the
- terms of the GNU Lesser General Public License as published by the Free Software
- Foundation, either version 3 of the License, or (at your option) any later
- version.
- AToMPM is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License along
- with AToMPM. If not, see <http://www.gnu.org/licenses/>.
- *******************************************************************************/
- /**
- * The purpose of this file is to insert the needed global variables
- * into the namespace. This allows for functions that require access
- * to the global objects that would otherwise be defined after that
- * objects creation to still be accessible
- */
- var WindowManagement; /* The Window Management object. This handles management of the display, such as the popup dialogs. Could be merged with GUIUtils */
- var WindowEventHelper; /* The Window Event Helper object. This processes window events. */
- var HttpUtils; /* The HTTP Utilities object. This handles communication with the server. */
- var UserManagement; /* User Management object. This handles user operations, such as log in, log out, and registration. */
- var AtomPMClient; /* The AToMPM client object. This handles many core operations of the client. */
- var InputBarStateChart; /* The Input Bar state chart object. To be removed */
- var InputBarUtils; /* The Input Bar Utilities object. To be removed. */
- var GUIUtils; /* The GUI Utilities object. This handles GUI manipulation and display. Could be merged with WindowManagement. */
- var Collaboration; /* The Collaboration object. This handles the chat windows */
- var BehaviorManager; /* The Behavior Manager object. This drives the original state charts */
- var CompileUtils; /* The Compile Utilities object. This handles the compilation of the model into a metamodel */
- var ConnectionUtils; /* The Connection Utilities object. This handles edges, connections, control points, etc. */
- var DataUtils; /* The Data Utilities object. Handles the loaded objects, edges, toolbars, etc */
- var EditUtils; /* Handles the Copy, Paste, Undo, and Redo options. Consider merging this with GUIUtils */
- var GeometryUtils; /* Handles transformations and translations. */
- var MMMUtils;
- var currentKeys = [];
- // Command Keys
- var KEY_TAB = 9,
- KEY_ENTER = 13,
- KEY_SHIFT = 16,
- KEY_CTRL = 17,
- KEY_ALT = 18,
- KEY_ESC = 27,
- KEY_INS = 45,
- KEY_DEL = 46,
- KEY_CMD1 = 91,
- KEY_CMD2 = 92,
- KEY_CMD3 = 224;
- // Arrow Keys
- var KEY_RIGHT_ARROW = 39,
- KEY_LEFT_ARROW = 37,
- KEY_UP_ARROW = 38,
- KEY_DOWN_ARROW = 40;
- // Mouse Buttons
- var MOUSE_RIGHT = 2,
- MOUSE_LEFT = 0,
- MOUSE_MIDDLE = 1;
|