summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-09-10 03:44:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:50 -0500
commit15c1801a5c13479f1bf67e0e3c1ad7c0af8e3af7 (patch)
treec5bcb824e04cb1de4cccb07a148c113ff1831298 /webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object
parent37de963f67a1331b6402f901d2bda79b7119a155 (diff)
downloadsamba-15c1801a5c13479f1bf67e0e3c1ad7c0af8e3af7.tar.gz
samba-15c1801a5c13479f1bf67e0e3c1ad7c0af8e3af7.tar.bz2
samba-15c1801a5c13479f1bf67e0e3c1ad7c0af8e3af7.zip
r25051: Move SWAT back to the old-style form-submit modal.
The Web 2.0, async client tools were really interesting, but without developer backing they remain impossible to support into a release. The most interesting app was the LDB browser, and I intend to replace this with phpLdapAdmin, preconfigured for Apache during provision. This also removes the need to 'compile' SWAT on SVN checkouts. Andrew Bartlett (This used to be commit cda965e908055d45b1c05bc29cc791f7238d2fae)
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AliasManager.js239
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js154
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js230
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/IframeManager.js77
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImageManager.js315
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImagePreloaderManager.js84
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/MenuManager.js111
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ObjectManager.js119
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/PopupManager.js84
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ToolTipManager.js193
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/WindowManager.js160
11 files changed, 0 insertions, 1766 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AliasManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AliasManager.js
deleted file mode 100644
index e1247d8a81..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AliasManager.js
+++ /dev/null
@@ -1,239 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(core)
-
-************************************************************************ */
-
-/**
- * This singleton manage global resource aliases
- *
- * @event change {qx.event.type.Event}
- */
-qx.OO.defineClass("qx.manager.object.AliasManager", qx.core.Target,
-function()
-{
- qx.core.Target.call(this);
-
- // Contains defined aliases (like icons/, widgets/, application/, ...)
- this._aliases = {};
-
- // Containes computed paths
- this._uris = {};
-
- // Define static alias from setting
- this.add("static", this.getSetting("staticUri"));
-});
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFAULT SETTINGS
----------------------------------------------------------------------------
-*/
-
-qx.Settings.setDefault("resourceUri", "../../resource");
-qx.Settings.setDefault("staticUri", qx.Settings.getValue("resourceUri") + "/static");
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- ALIAS MANAGMENT
----------------------------------------------------------------------------
-*/
-
-/**
- * Define an alias to a resource path
- *
- * @param vAlias {String} alias name for the resource path/url
- * @param vUriStart {String} first part of URI for all images which use this alias
- */
-qx.Proto.add = function(vAlias, vUriStart)
-{
- this._aliases[vAlias] = vUriStart;
-
- // Cleanup old uris which use this alias
- for (var vPath in this._uris)
- {
- if (vPath.substring(0, vPath.indexOf("/")) == vAlias) {
- this._uris[vPath] = null;
- }
- }
-
- // Fire change event (for ImageManager, etc.)
- this.createDispatchEvent("change");
-}
-
-/**
- * Remove a previously defined alias
- *
- * @param vAlias {String} alias name for the resource path/url
- */
-qx.Proto.remove = function(vAlias)
-{
- delete this._aliases[vAlias];
-
- // Cleanup old uris which use this alias
- for (var vPath in this._uris)
- {
- if (vPath.substring(0, vPath.indexOf("/")) == vAlias) {
- this._uris[vPath] = null;
- }
- }
-
- // Fire change event (for ImageManager, etc.)
- this.createDispatchEvent("change");
-}
-
-/**
- * Resolve an alias to the actual resource path/url
- *
- * @param vAlias {String} alias name for the resource path/url
- * @return {String} resource path/url
- */
-qx.Proto.resolve = function(vAlias) {
- return this._aliases[vAlias];
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- URI HANDLING
----------------------------------------------------------------------------
-*/
-
-/**
- * Resolve a path name to a resource URI taking the defined aliases into account
- * and cache the result.
- *
- * If the first part of the path is a defined alias, the alias is resolved.
- * Otherwhise the path is returned unmodified.
- *
- * @param vPath {String} path name
- * @param vForceUpdate {Boolean} (default=false) wether the cached value should be ignored
- * @return {String} reolved path/url
- */
-qx.Proto.resolvePath = function(vPath, vForceUpdate)
-{
- var vUri = this._uris[vPath];
-
- if (vUri == null) {
- vUri = this._uris[vPath] = this._computePath(vPath);
- }
-
- // this.debug("URI: " + vPath + " => " + vUri);
-
- return vUri;
-}
-
-
-/**
- * Resolve a path name to a resource URI taking the defined aliases into account.
- *
- * If the first part of the path is a defined alias, the alias is resolved.
- * Otherwhise the path is returned unmodified.
- *
- * @param vPath {String} path name
- * @return {String} reolved path/url
- */
-qx.Proto._computePath = function(vPath)
-{
- switch(vPath.charAt(0))
- {
- case "/":
- case ".":
- return vPath;
-
- default:
- if (
- qx.lang.String.startsWith(vPath, qx.net.Protocol.URI_HTTP) ||
- qx.lang.String.startsWith(vPath, qx.net.Protocol.URI_HTTPS) ||
- qx.lang.String.startsWith(vPath, qx.net.Protocol.URI_FILE)
- ) {
- return vPath;
- }
-
- var vAlias = vPath.substring(0, vPath.indexOf("/"));
- var vResolved = this._aliases[vAlias];
-
- if (vResolved != null) {
- return vResolved + vPath.substring(vAlias.length);
- }
-
- return vPath;
- }
-}
-
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DISPOSER
----------------------------------------------------------------------------
-*/
-
-/**
- * Disposer
- */
-qx.Proto.dispose = function()
-{
- if (this.getDisposed()) {
- return;
- }
-
- this._aliases = null;
- this._uris = null;
-
- return qx.core.Target.prototype.dispose.call(this);
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js
deleted file mode 100644
index cf7ea1edb4..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js
+++ /dev/null
@@ -1,154 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_core)
-
-************************************************************************ */
-
-/**
- * This singleton manages the current theme
- */
-qx.OO.defineClass("qx.manager.object.AppearanceManager", qx.manager.object.ObjectManager,
-function() {
- qx.manager.object.ObjectManager.call(this);
-
- // Themes
- this._appearanceThemes = {};
-});
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFAULT SETTINGS
----------------------------------------------------------------------------
-*/
-
-qx.Settings.setDefault("appearanceTheme", "qx.theme.appearance.Classic");
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- PROPERTIES
----------------------------------------------------------------------------
-*/
-
-/** currently used apperance theme */
-qx.OO.addProperty({ name : "appearanceTheme", type : "object", allowNull : false, instance : "qx.renderer.theme.AppearanceTheme" });
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- REGISTRATION
----------------------------------------------------------------------------
-*/
-
-/**
- * Register an theme class.
- * The theme is applied if it is the default apperance
- *
- * @param vThemeClass {qx.renderer.theme.AppearanceTheme}
- */
-qx.Proto.registerAppearanceTheme = function(vThemeClass)
-{
- this._appearanceThemes[vThemeClass.classname] = vThemeClass;
-
- if (vThemeClass.classname == this.getSetting("appearanceTheme")) {
- this.setAppearanceTheme(vThemeClass.getInstance());
- }
-}
-
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MODIFIER
----------------------------------------------------------------------------
-*/
-
-qx.Proto._modifyAppearanceTheme = function(propValue, propOldValue, propData)
-{
- var vComp = qx.core.Init.getInstance().getComponent();
-
- if (vComp && vComp.isUiReady()) {
- qx.ui.core.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(propValue, propOldValue);
- }
-
- return true;
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DISPOSER
----------------------------------------------------------------------------
-*/
-
-/**
- * Disposer
- */
-qx.Proto.dispose = function()
-{
- if (this.getDisposed()) {
- return;
- }
-
- // Themes
- this._appearanceThemes = null;
-
- return qx.manager.object.ObjectManager.prototype.dispose.call(this);
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js
deleted file mode 100644
index 4298aeda0b..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js
+++ /dev/null
@@ -1,230 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_core)
-#optional(qx.ui.form.Button)
-#embed(qx.icontheme/16/actions/format-color.png)
-
-************************************************************************ */
-
-qx.OO.defineClass("qx.manager.object.ColorManager", qx.manager.object.ObjectManager,
-function()
-{
- qx.manager.object.ObjectManager.call(this);
-
- // Themes
- this._colorThemes = {};
-
- // Contains the qx.renderer.color.ColorObjects which
- // represent a themed color.
- this._dependentObjects = {};
-});
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFAULT SETTINGS
----------------------------------------------------------------------------
-*/
-
-qx.Settings.setDefault("colorTheme", "qx.theme.color.WindowsRoyale");
-
-
-
-
-/*
----------------------------------------------------------------------------
- PROPERTIES
----------------------------------------------------------------------------
-*/
-
-qx.OO.addProperty({ name : "colorTheme", type : "object", allowNull : false, instance : "qx.renderer.theme.ColorTheme" });
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- REGISTRATION
----------------------------------------------------------------------------
-*/
-
-qx.Proto.registerColorTheme = function(vThemeClass)
-{
- this._colorThemes[vThemeClass.classname] = vThemeClass;
-
- if (vThemeClass.classname == this.getSetting("colorTheme")) {
- this.setColorTheme(vThemeClass.getInstance());
- }
-}
-
-qx.Proto.setColorThemeById = function(vId) {
- this.setColorTheme(this._colorThemes[vId].getInstance());
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- PUBLIC METHODS FOR qx.renderer.color.ColorOBJECTS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.add = function(oObject)
-{
- var vValue = oObject.getValue();
-
- this._objects[vValue] = oObject;
-
- if (oObject.isThemedColor()) {
- this._dependentObjects[vValue] = oObject;
- }
-}
-
-qx.Proto.remove = function(oObject)
-{
- var vValue = oObject.getValue();
-
- delete this._objects[vValue];
- delete this._dependentObjects[vValue];
-}
-
-qx.Proto.has = function(vValue) {
- return this._objects[vValue] != null;
-}
-
-qx.Proto.get = function(vValue) {
- return this._objects[vValue];
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MODIFIER
----------------------------------------------------------------------------
-*/
-
-qx.Proto._modifyColorTheme = function(propValue, propOldValue, propData)
-{
- propValue.compile();
-
- for (var i in this._dependentObjects) {
- this._dependentObjects[i]._updateTheme(propValue);
- }
-
- return true;
-}
-
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- UTILITY
----------------------------------------------------------------------------
-*/
-
-qx.Proto.createThemeList = function(vParent, xCor, yCor)
-{
- var vButton;
- var vThemes = this._colorThemes;
- var vIcon = "icon/16/actions/format-color.png";
- var vPrefix = "Color Theme: ";
- var vEvent = "execute";
-
- for (var vId in vThemes)
- {
- var vObj = vThemes[vId].getInstance();
- var vButton = new qx.ui.form.Button(vPrefix + vObj.getTitle(), vIcon);
-
- vButton.setLocation(xCor, yCor);
- vButton.addEventListener(vEvent, new Function("qx.manager.object.ColorManager.getInstance().setColorThemeById('" + vId + "')"));
-
- vParent.add(vButton);
-
- yCor += 30;
- }
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DISPOSER
----------------------------------------------------------------------------
-*/
-
-qx.Proto.dispose = function()
-{
- if (this.getDisposed()) {
- return;
- }
-
- // Themes
- this._colorThemes = null;
-
- // Cleanup dependent objects
- for (var i in this._dependentObjects) {
- delete this._dependentObjects[i];
- }
-
- delete this._dependentObjects;
-
- return qx.manager.object.ObjectManager.prototype.dispose.call(this);
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/IframeManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/IframeManager.js
deleted file mode 100644
index f7337f4e6d..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/IframeManager.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Til Schneider (til132)
-
-************************************************************************ */
-
-/**
- * This singleton manages multiple instances of qx.ui.embed.Iframe.
- * <p>
- * The problem: When dragging over an iframe then all mouse events will be
- * passed to the document of the iframe, not the main document.
- * <p>
- * The solution: In order to be able to track mouse events over iframes, this
- * manager will block all iframes during a drag with a glasspane.
- */
-qx.OO.defineClass("qx.manager.object.IframeManager", qx.manager.object.ObjectManager,
-function(){
- qx.manager.object.ObjectManager.call(this);
-});
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- METHODS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.handleMouseDown = function(evt) {
- var iframeMap = this.getAll();
-
- for (var key in iframeMap) {
- var iframe = iframeMap[key];
- iframe.block();
- }
-}
-
-qx.Proto.handleMouseUp = function(evt) {
- var iframeMap = this.getAll();
-
- for (var key in iframeMap) {
- var iframe = iframeMap[key];
- iframe.release();
- }
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImageManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImageManager.js
deleted file mode 100644
index a71b43488c..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImageManager.js
+++ /dev/null
@@ -1,315 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_core)
-#optional(qx.ui.form.Button)
-#embed(qx.icontheme/16/apps/preferences-desktop-theme.png)
-#require(qx.manager.object.ImagePreloaderManager)
-
-************************************************************************ */
-
-/*!
- This singleton manage the global image path (prefix) and allowes themed icons.
-*/
-qx.OO.defineClass("qx.manager.object.ImageManager", qx.manager.object.ObjectManager,
-function()
-{
- qx.manager.object.ObjectManager.call(this);
-
- // Themes
- this._iconThemes = {};
- this._widgetThemes = {};
-
- // Contains known image sources (all of them, if loaded or not)
- // The value is a number which represents the number of image
- // instances which use this source
- this._sources = {};
-
- // Change event connection to AliasManager
- qx.manager.object.AliasManager.getInstance().addEventListener("change", this._onaliaschange, this);
-});
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFAULT SETTINGS
----------------------------------------------------------------------------
-*/
-
-/*
- Make sure to select an icon theme that is compatible to the license you
- chose to receive the qooxdoo code under. For more information, please
- see the LICENSE file in the project's top-level directory.
- */
-qx.Settings.setDefault("iconTheme", "qx.theme.icon.Nuvola");
-
-qx.Settings.setDefault("widgetTheme", "qx.theme.widget.Windows");
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- PROPERTIES
----------------------------------------------------------------------------
-*/
-
-qx.OO.addProperty({ name : "iconTheme", type : "object", instance : "qx.renderer.theme.IconTheme" });
-qx.OO.addProperty({ name : "widgetTheme", type : "object", instance : "qx.renderer.theme.WidgetTheme" });
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- REGISTRATION
----------------------------------------------------------------------------
-*/
-
-qx.Proto.registerIconTheme = function(vThemeClass)
-{
- this._iconThemes[vThemeClass.classname] = vThemeClass;
-
- if (vThemeClass.classname == this.getSetting("iconTheme")) {
- this.setIconTheme(vThemeClass.getInstance());
- }
-}
-
-qx.Proto.registerWidgetTheme = function(vThemeClass)
-{
- this._widgetThemes[vThemeClass.classname] = vThemeClass;
-
- if (vThemeClass.classname == this.getSetting("widgetTheme")) {
- this.setWidgetTheme(vThemeClass.getInstance());
- }
-}
-
-qx.Proto.setIconThemeById = function(vId) {
- this.setIconTheme(this._iconThemes[vId].getInstance());
-}
-
-qx.Proto.setWidgetThemeById = function(vId) {
- this.setWidgetTheme(this._widgetThemes[vId].getInstance());
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- EVENTS
----------------------------------------------------------------------------
-*/
-
-qx.Proto._onaliaschange = function() {
- this._updateImages();
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MODIFIERS
----------------------------------------------------------------------------
-*/
-
-qx.Proto._modifyIconTheme = function(propValue, propOldValue, propData)
-{
- propValue ? qx.manager.object.AliasManager.getInstance().add("icon", propValue.getSetting("imageUri")) : qx.manager.object.AliasManager.getInstance().remove("icon");
- return true;
-}
-
-qx.Proto._modifyWidgetTheme = function(propValue, propOldValue, propData)
-{
- propValue ? qx.manager.object.AliasManager.getInstance().add("widget", propValue.getSetting("imageUri")) : qx.manager.object.AliasManager.getInstance().remove("widget");
- return true;
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- PRELOAD API
----------------------------------------------------------------------------
-*/
-
-qx.Proto.getPreloadImageList = function()
-{
- var vPreload = {};
-
- for (var vSource in this._sources)
- {
- if (this._sources[vSource]) {
- vPreload[vSource] = true;
- }
- }
-
- return vPreload;
-}
-
-qx.Proto.getPostPreloadImageList = function()
-{
- var vPreload = {};
-
- for (var vSource in this._sources)
- {
- if (!this._sources[vSource]) {
- vPreload[vSource] = true;
- }
- }
-
- return vPreload;
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- INTERNAL HELPER
----------------------------------------------------------------------------
-*/
-
-qx.Proto._updateImages = function()
-{
- var vAll = this.getAll();
- var vPreMgr = qx.manager.object.ImagePreloaderManager.getInstance();
- var vAliasMgr = qx.manager.object.AliasManager.getInstance();
- var vObject;
-
- // Recreate preloader of affected images
- for (var vHashCode in vAll)
- {
- vObject = vAll[vHashCode];
- vObject.setPreloader(vPreMgr.create(vAliasMgr.resolvePath(vObject.getSource())));
- }
-
- return true;
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- UTILITY
----------------------------------------------------------------------------
-*/
-
-// TODO: rename to createIconThemeList
-qx.Proto.createThemeList = function(vParent, xCor, yCor)
-{
- var vButton;
- var vThemes = this._iconThemes;
- var vIcon = "icon/16/apps/preferences-desktop-theme.png";
- var vPrefix = "Icon Theme: ";
- var vEvent = "execute";
-
- for (var vId in vThemes)
- {
- var vObj = vThemes[vId].getInstance();
- var vButton = new qx.ui.form.Button(vPrefix + vObj.getTitle(), vIcon);
-
- vButton.setLocation(xCor, yCor);
- vButton.addEventListener(vEvent, new Function("qx.manager.object.ImageManager.getInstance().setIconThemeById('" + vId + "')"));
-
- vParent.add(vButton);
-
- yCor += 30;
- }
-}
-
-qx.Proto.preload = function(vPath) {
- qx.manager.object.ImagePreloaderManager.getInstance().create(qx.manager.object.AliasManager.getInstance().resolvePath(vPath));
-}
-
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DISPOSER
----------------------------------------------------------------------------
-*/
-
-qx.Proto.dispose = function()
-{
- if (this.getDisposed()) {
- return;
- }
-
- // Change event connection to AliasManager
- qx.manager.object.AliasManager.getInstance().removeEventListener("change", this._onaliaschange, this);
-
- // Delete counter field
- this._sources = null;
-
- // Themes
- this._iconThemes = null;
- this._widgetThemes = null;
-
- return qx.manager.object.ObjectManager.prototype.dispose.call(this);
-}
-
-
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImagePreloaderManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImagePreloaderManager.js
deleted file mode 100644
index 400e481398..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ImagePreloaderManager.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_core)
-
-************************************************************************ */
-
-/*!
- This singleton manage all qx.io.image.Preloader instances.
-*/
-qx.OO.defineClass("qx.manager.object.ImagePreloaderManager", qx.manager.object.ObjectManager,
-function() {
- qx.manager.object.ObjectManager.call(this);
-});
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- METHODS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.add = function(vObject) {
- this._objects[vObject.getUri()] = vObject;
-}
-
-qx.Proto.remove = function(vObject) {
- delete this._objects[vObject.getUri()];
-}
-
-qx.Proto.has = function(vSource) {
- return this._objects[vSource] != null;
-}
-
-qx.Proto.get = function(vSource) {
- return this._objects[vSource];
-}
-
-qx.Proto.create = function(vSource)
-{
- if (this._objects[vSource]) {
- return this._objects[vSource];
- }
-
- return new qx.io.image.Preloader(vSource);
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/MenuManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/MenuManager.js
deleted file mode 100644
index ee34ddfe25..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/MenuManager.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_menu)
-
-************************************************************************ */
-
-/*!
- This singleton manages multiple instances of qx.ui.menu.Menu and their state.
-*/
-qx.OO.defineClass("qx.manager.object.MenuManager", qx.manager.object.ObjectManager,
-function(){
- qx.manager.object.ObjectManager.call(this);
-});
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- METHODS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.update = function(vTarget, vEventName)
-{
- var vMenu, vHashCode;
- var vAll = this.getAll();
-
- for (vHashCode in vAll)
- {
- vMenu = vAll[vHashCode];
-
- if(!vMenu.getAutoHide()) {
- continue;
- }
-
- if (vTarget && vTarget.getMenu && vTarget.getMenu()) {
- continue;
- }
-
- // Hide on global events (mouseup, window focus, window blur, ...)
- if (!vTarget)
- {
- vMenu.hide();
- continue;
- }
-
- // Hide only if the target is not a button inside this
- // or any sub menu and is not the opener
- var isMouseDown = vEventName == "mousedown";
- var isMouseUp = vEventName == "mouseup";
-
- //Close menu if the target is not the opener button...
- if (vMenu.getOpener() !== vTarget
-
- // and
- && ( vTarget &&
- // the event is a mouse down on a non-child of the menu
- (!vMenu.isSubElement(vTarget) && isMouseDown)
-
- // or the event is a mouse up on a child button of the menu
- || (vMenu.isSubElement(vTarget, true) && isMouseUp)
-
- // or the event is a key (esc) event
- || (!isMouseDown && !isMouseUp )))
-
-
- {
- vMenu.hide();
- continue;
- }
- }
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ObjectManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ObjectManager.js
deleted file mode 100644
index b53e62b453..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ObjectManager.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-
-************************************************************************ */
-
-/*!
- This class allows basic managment of assigned objects.
-*/
-qx.OO.defineClass("qx.manager.object.ObjectManager", qx.core.Target,
-function()
-{
- qx.core.Target.call(this);
-
- this._objects = {};
-});
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- USER API
----------------------------------------------------------------------------
-*/
-
-qx.Proto.add = function(vObject)
-{
- if (this.getDisposed()) {
- return;
- }
-
- this._objects[vObject.toHashCode()] = vObject;
- return true;
-}
-
-qx.Proto.remove = function(vObject)
-{
- if (this.getDisposed()) {
- return;
- }
-
- delete this._objects[vObject.toHashCode()];
- return true;
-}
-
-qx.Proto.has = function(vObject) {
- return this._objects[vObject.toHashCode()] != null;
-}
-
-qx.Proto.get = function(vObject) {
- return this._objects[vObject.toHashCode()];
-}
-
-qx.Proto.getAll = function() {
- return this._objects;
-}
-
-qx.Proto.enableAll = function()
-{
- for (var vHashCode in this._objects) {
- this._objects[vHashCode].setEnabled(true);
- };
-};
-
-qx.Proto.disableAll = function()
-{
- for (var vHashCode in this._objects) {
- this._objects[vHashCode].setEnabled(false);
- };
-};
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DISPOSER
----------------------------------------------------------------------------
-*/
-
-qx.Proto.dispose = function()
-{
- if(this.getDisposed()) {
- return;
- }
-
- if (this._objects)
- {
- for (var i in this._objects) {
- delete this._objects[i];
- }
-
- delete this._objects;
- }
-
- return qx.core.Target.prototype.dispose.call(this);
-}
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/PopupManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/PopupManager.js
deleted file mode 100644
index f81509300b..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/PopupManager.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_popup)
-#optional(qx.ui.popup.ToolTip)
-
-************************************************************************ */
-
-/*!
- This singleton is used to manager multiple instances of popups and their state.
-*/
-qx.OO.defineClass("qx.manager.object.PopupManager", qx.manager.object.ObjectManager,
-function() {
- qx.manager.object.ObjectManager.call(this);
-});
-
-
-
-/*
----------------------------------------------------------------------------
- METHODS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.update = function(vTarget)
-{
- // be sure that target is correctly set (needed for contains() later)
- if (!(vTarget instanceof qx.ui.core.Widget)) {
- vTarget = null;
- }
-
- var vPopup, vHashCode;
- var vAll = this.getAll();
-
- for (vHashCode in vAll)
- {
- vPopup = vAll[vHashCode];
-
- if(!vPopup.getAutoHide() || vTarget == vPopup || vPopup.contains(vTarget)) {
- continue;
- }
-
- if (qx.OO.isAvailable("qx.ui.popup.ToolTip") && vTarget instanceof qx.ui.popup.ToolTip && !(vPopup instanceof qx.ui.popup.ToolTip)) {
- continue;
- }
-
- vPopup.hide();
- }
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ToolTipManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ToolTipManager.js
deleted file mode 100644
index 7cd07e7365..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ToolTipManager.js
+++ /dev/null
@@ -1,193 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_popup)
-
-************************************************************************ */
-
-/*!
- This manages ToolTip instances
-*/
-qx.OO.defineClass("qx.manager.object.ToolTipManager", qx.manager.object.ObjectManager,
-function() {
- qx.manager.object.ObjectManager.call(this);
-});
-
-qx.OO.addProperty({ name : "currentToolTip", type : "object", instance : "qx.ui.popup.ToolTip" });
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MODIFIER
----------------------------------------------------------------------------
-*/
-
-qx.Proto._modifyCurrentToolTip = function(propValue, propOldValue, propData)
-{
- // Return if the new tooltip is a child of the old one
- if(propOldValue && propOldValue.contains(propValue)) {
- return;
- }
-
- // If old tooltip existing, hide it and clear widget binding
- if(propOldValue)
- {
- propOldValue.hide();
-
- propOldValue._stopShowTimer();
- propOldValue._stopHideTimer();
- }
-
- // If new tooltip is not null, set it up and start the timer
- if(propValue) {
- propValue._startShowTimer();
- }
-
- return true;
-}
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- EVENT INTERFACE: MOUSE
----------------------------------------------------------------------------
-*/
-
-qx.Proto.handleMouseOver = function(e)
-{
- var vTarget = e.getTarget();
- var vToolTip;
-
- // Allows us to use DOM Nodes as tooltip target :)
- if (!(vTarget instanceof qx.ui.core.Widget) && vTarget.nodeType == 1) {
- vTarget = qx.event.handler.EventHandler.getTargetObject(vTarget);
- }
-
- //Search first parent which has a tooltip
- while(vTarget != null && !(vToolTip = vTarget.getToolTip())) {
- vTarget = vTarget.getParent();
- }
-
- // Bind tooltip to widget
- if (vToolTip != null) {
- vToolTip.setBoundToWidget(vTarget);
- }
-
- // Set Property
- this.setCurrentToolTip(vToolTip);
-}
-
-qx.Proto.handleMouseOut = function(e)
-{
- var vTarget = e.getTarget();
- var vRelatedTarget = e.getRelatedTarget();
-
- var vToolTip = this.getCurrentToolTip();
-
- // If there was a tooltip and
- // - the destination target is the current tooltip
- // or
- // - the current tooltip contains the destination target
- if(vToolTip && (vRelatedTarget == vToolTip || vToolTip.contains(vRelatedTarget))) {
- return;
- }
-
- // If the destination target exists and the target contains it
- if(vRelatedTarget && vTarget && vTarget.contains(vRelatedTarget)) {
- return;
- }
-
- // If there was a tooltip and there is no new one
- if(vToolTip && !vRelatedTarget) {
- this.setCurrentToolTip(null);
- }
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- EVENT INTERFACE: FOCUS
----------------------------------------------------------------------------
-*/
-
-qx.Proto.handleFocus = function(e)
-{
- var vTarget = e.getTarget();
- var vToolTip = vTarget.getToolTip();
-
- // Only set new tooltip if focus widget
- // has one
- if(vToolTip != null)
- {
- // Bind tooltip to widget
- vToolTip.setBoundToWidget(vTarget);
-
- // Set Property
- this.setCurrentToolTip(vToolTip);
- }
-}
-
-qx.Proto.handleBlur = function(e)
-{
- var vTarget = e.getTarget();
-
- if(!vTarget) {
- return;
- }
-
- var vToolTip = this.getCurrentToolTip();
-
- // Only set to null if blured widget is the
- // one which has created the current tooltip
- if(vToolTip && vToolTip == vTarget.getToolTip()) {
- this.setCurrentToolTip(null);
- }
-}
-
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- DEFER SINGLETON INSTANCE
----------------------------------------------------------------------------
-*/
-
-/**
- * Singleton Instance Getter
- */
-qx.Class.getInstance = qx.lang.Function.returnInstance;
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/WindowManager.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/WindowManager.js
deleted file mode 100644
index c0af466db6..0000000000
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/WindowManager.js
+++ /dev/null
@@ -1,160 +0,0 @@
-/* ************************************************************************
-
- qooxdoo - the new era of web development
-
- http://qooxdoo.org
-
- Copyright:
- 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
-
- License:
- LGPL: http://www.gnu.org/licenses/lgpl.html
- EPL: http://www.eclipse.org/org/documents/epl-v10.php
- See the LICENSE file in the project's top-level directory for details.
-
- Authors:
- * Sebastian Werner (wpbasti)
- * Andreas Ecker (ecker)
-
-************************************************************************ */
-
-/* ************************************************************************
-
-#module(ui_window)
-
-************************************************************************ */
-
-/*!
- This singleton manages qx.ui.window.Windows
-*/
-qx.OO.defineClass("qx.manager.object.WindowManager", qx.manager.object.ObjectManager,
-function() {
- qx.manager.object.ObjectManager.call(this);
-});
-
-qx.OO.addProperty({ name : "activeWindow", type : "object" });
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MODIFIER
----------------------------------------------------------------------------
-*/
-
-qx.Proto._modifyActiveWindow = function(propValue, propOldValue, propData)
-{
- qx.manager.object.PopupManager.getInstance().update();
-
- if (propOldValue) {
- propOldValue.setActive(false);
- }
-
- if (propValue) {
- propValue.setActive(true);
- }
-
- if (propOldValue && propOldValue.getModal()) {
- propOldValue.getTopLevelWidget().release(propOldValue);
- }
-
- if (propValue && propValue.getModal()) {
- propValue.getTopLevelWidget().block(propValue);
- }
-
- return true;
-}
-
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- UTILITIES
----------------------------------------------------------------------------
-*/
-
-qx.Proto.update = function(oTarget)
-{
- var vWindow, vHashCode;
- var vAll = this.getAll();
-
- for (var vHashCode in vAll)
- {
- vWindow = vAll[vHashCode];
-
- if(!vWindow.getAutoHide()) {
- continue;
- }
-
- vWindow.hide();
- }
-}
-
-
-
-
-
-/*
----------------------------------------------------------------------------
- MANAGER INTERFACE
----------------------------------------------------------------------------
-*/
-
-qx.Proto.compareWindows = function(w1, w2)
-{
- switch(w1.getWindowManager().getActiveWindow())
- {
- case w1:
- return 1;
-
- case w2:
- return -1;
- }
-
- return w1.getZIndex() - w2.getZIndex();
-}
-
-qx.Proto.add = function(vWindow)
-{
- qx.manager.object.ObjectManager.prototype.add.call(this, vWindow);
-
- // this.debug("Add: " + vWindow);
- this.setActiveWindow(vWindow);
-}
-
-qx.Proto.remove = function(vWindow)
-{
- qx.manager.object.ObjectManager.prototype.remove.call(this, vWindow);
-
- // this.debug("Remove: " + vWindow);
-
- if (this.getActiveWindow() == vWindow)
- {
- var a = [];
- for (var i in this._objects) {
- a.push(this._objects[i]);
- }
-
- var l = a.length;
-
- if (l==0)
- {
- this.setActiveWindow(null);
- }
- else if (l==1)
- {
- this.setActiveWindow(a[0]);
- }
- else if (l>1)
- {
- a.sort(this.compareWindows);
- this.setActiveWindow(a[l-1]);
- }
- }
-}