mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 18:38:29 +02:00
Move all egw_action constants into egw_action_constants
This commit is contained in:
@ -11,7 +11,23 @@
|
||||
/*egw:uses
|
||||
egw_action_common;
|
||||
*/
|
||||
|
||||
import {
|
||||
EGW_AO_STATE_NORMAL,
|
||||
EGW_AO_STATE_VISIBLE,
|
||||
EGW_AO_STATE_SELECTED,
|
||||
EGW_AO_STATE_FOCUSED,
|
||||
EGW_AO_SHIFT_STATE_MULTI,
|
||||
EGW_AO_SHIFT_STATE_NONE,
|
||||
EGW_AO_FLAG_IS_CONTAINER,
|
||||
EGW_AO_SHIFT_STATE_BLOCK,
|
||||
EGW_KEY_ARROW_UP,
|
||||
EGW_KEY_ARROW_DOWN,
|
||||
EGW_KEY_PAGE_UP,
|
||||
EGW_KEY_PAGE_DOWN,
|
||||
EGW_AO_EXEC_THIS,
|
||||
EGW_AO_EXEC_SELECTED,
|
||||
EGW_KEY_A, EGW_KEY_SPACE
|
||||
} from './egw_action_constants.js';
|
||||
import {egwFnct, egwActionStoreJSON, egwBitIsSet, egwQueueCallback, egwSetBit, egwObjectLength} from './egw_action_common.js';
|
||||
import './egw_action_popup.js';
|
||||
import "./egw_action_dragdrop.js";
|
||||
@ -1043,32 +1059,6 @@ egwActionLink.prototype.set_actionId = function(_value)
|
||||
throw "Action object with id '"+_value+"' does not exist!";
|
||||
};
|
||||
|
||||
/** egwActionObject Object **/
|
||||
|
||||
//State bitmask (only use powers of two for new states!)
|
||||
export const EGW_AO_STATE_NORMAL = 0x00;
|
||||
export const EGW_AO_STATE_SELECTED = 0x01;
|
||||
export const EGW_AO_STATE_FOCUSED = 0x02;
|
||||
export const EGW_AO_STATE_VISIBLE = 0x04; //< Can only be set by the AOI, means that the object is attached to the DOM-Tree and visible
|
||||
|
||||
export const EGW_AO_EVENT_DRAG_OVER_ENTER = 0x00;
|
||||
export const EGW_AO_EVENT_DRAG_OVER_LEAVE = 0x01;
|
||||
|
||||
// No shift key is pressed
|
||||
export const EGW_AO_SHIFT_STATE_NONE = 0x00;
|
||||
// A shift key, which allows multiselection is pressed (usually CTRL on a PC keyboard)
|
||||
export const EGW_AO_SHIFT_STATE_MULTI = 0x01;
|
||||
// A shift key is pressed, which forces blockwise selection (SHIFT on a PC keyboard)
|
||||
export const EGW_AO_SHIFT_STATE_BLOCK = 0x02;
|
||||
|
||||
// If this flag is set, this object will not be returned as "focused". If this
|
||||
// flag is not applied to container objects, it may lead to some strange behaviour.
|
||||
export const EGW_AO_FLAG_IS_CONTAINER = 0x01;
|
||||
|
||||
// If this flag is set, the object will gets its focus when no other object is
|
||||
// selected and e.g. a key is pressed.
|
||||
export const EGW_AO_FLAG_DEFAULT_FOCUS = 0x02;
|
||||
|
||||
/**
|
||||
* The egwActionObject represents an abstract object to which actions may be
|
||||
* applied. Communication with the DOM tree is established by using the
|
||||
@ -2070,8 +2060,6 @@ egwActionObject.prototype.makeVisible = function()
|
||||
this.iface.makeVisible();
|
||||
};
|
||||
|
||||
export const EGW_AO_EXEC_SELECTED = 0;
|
||||
export const EGW_AO_EXEC_THIS = 1;
|
||||
|
||||
/**
|
||||
* Executes the action implementation which is associated to the given action type.
|
||||
@ -2536,7 +2524,3 @@ export function egwActionObjectManager(_id, _manager)
|
||||
|
||||
return ao;
|
||||
}
|
||||
|
||||
export const EGW_AI_DRAG = 0x0100; // Use the first byte as mask for event types - 01 is for events used with drag stuff
|
||||
export const EGW_AI_DRAG_OUT = EGW_AI_DRAG | 0x01;
|
||||
export const EGW_AI_DRAG_OVER = EGW_AI_DRAG | 0x02;
|
||||
|
@ -8,7 +8,7 @@
|
||||
* @package egw_action
|
||||
*/
|
||||
|
||||
import {EGW_AO_SHIFT_STATE_BLOCK, EGW_AO_SHIFT_STATE_MULTI, EGW_AO_SHIFT_STATE_NONE} from "./egw_action.js";
|
||||
import {EGW_AO_SHIFT_STATE_BLOCK, EGW_AO_SHIFT_STATE_MULTI, EGW_AO_SHIFT_STATE_NONE} from "./egw_action_constants.js";
|
||||
|
||||
/**
|
||||
* Sets properties given in _data in _obj. Checks whether the property keys
|
||||
|
@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
import {egwAction,egwActionImplementation} from "./egw_action.js";
|
||||
import {EGW_AI_DRAG_OUT, EGW_AI_DRAG_OVER} from "./egw_action_constants.js";
|
||||
|
||||
/**
|
||||
* Register the drag and drop handlers
|
||||
|
@ -18,6 +18,7 @@
|
||||
import {egwAction, egwActionImplementation, egwActionObject} from './egw_action.js';
|
||||
import {egwFnct} from './egw_action_common.js';
|
||||
import {egwMenu, _egw_active_menu} from "./egw_menu.js";
|
||||
import {EGW_KEY_ENTER, EGW_KEY_MENU} from "./egw_action_constants.js";
|
||||
|
||||
if (typeof window._egwActionClasses == "undefined")
|
||||
window._egwActionClasses = {};
|
||||
|
@ -11,9 +11,9 @@
|
||||
/*egw:uses
|
||||
egw_action;
|
||||
*/
|
||||
|
||||
import {EGW_AO_STATE_FOCUSED, EGW_AO_STATE_SELECTED, egwActionObjectInterface, EGW_AI_DRAG_OVER, EGW_AI_DRAG_OUT} from "./egw_action.js";
|
||||
import {egwActionObjectInterface} from "./egw_action.js";
|
||||
import {egwBitIsSet} from "./egw_action_common.js";
|
||||
import {EGW_AI_DRAG_OUT, EGW_AI_DRAG_OVER, EGW_AO_STATE_FOCUSED, EGW_AO_STATE_SELECTED} from "./egw_action_constants.js";
|
||||
|
||||
/**
|
||||
* This file contains an egw_actionObjectInterface which allows a dhtmlx tree
|
||||
|
@ -13,8 +13,9 @@
|
||||
egw_action;
|
||||
*/
|
||||
|
||||
import {EGW_AO_EXEC_SELECTED,egw_globalObjectManager} from "./egw_action.js";
|
||||
import {egw_getAppObjectManager, egw_globalObjectManager} from "./egw_action.js";
|
||||
import {_egw_active_menu} from "./egw_menu.js";
|
||||
import {EGW_AO_FLAG_DEFAULT_FOCUS, EGW_AO_EXEC_SELECTED} from "./egw_action_constants.js";
|
||||
|
||||
/**
|
||||
* Define the key constants (IE doesn't support "const" keyword)
|
||||
|
@ -11,6 +11,13 @@
|
||||
*/
|
||||
import {egwMenuImpl} from './egw_menu_dhtmlx.js';
|
||||
import {egw_shortcutIdx} from './egw_keymanager.js';
|
||||
import {
|
||||
EGW_KEY_ARROW_DOWN,
|
||||
EGW_KEY_ARROW_LEFT,
|
||||
EGW_KEY_ARROW_RIGHT,
|
||||
EGW_KEY_ARROW_UP, EGW_KEY_ENTER,
|
||||
EGW_KEY_ESCAPE
|
||||
} from "./egw_action_constants.js";
|
||||
//Global variable which is used to store the currently active menu so that it
|
||||
//may be closed when another menu openes
|
||||
export var _egw_active_menu = null;
|
||||
|
Reference in New Issue
Block a user