summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js
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/ColorManager.js
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/ColorManager.js')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/ColorManager.js230
1 files changed, 0 insertions, 230 deletions
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;