diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js')
-rw-r--r-- | webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/manager/object/AppearanceManager.js | 154 |
1 files changed, 0 insertions, 154 deletions
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; |