diff options
author | Derrell Lipman <derrell@samba.org> | 2007-01-03 19:57:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:36:06 -0500 |
commit | 2e7c59c24470766e37309c7a8bfa4c7b81c57614 (patch) | |
tree | c44c89911868c52f25ca66bdefa68e13248db8e6 /webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview | |
parent | 57f5bf78fa9fc9d190c3cb25251e686a1488f790 (diff) | |
download | samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.gz samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.bz2 samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.zip |
r20515: Continued work on the Web Application Framework. Until we get all of the
functionality of the old scripts incorporated into the new framework, the old
scripts need to still be available. I've reverted to having the old scripts
be the default pages, and added an option to access the preview of the new
SWAT.
(This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4)
Diffstat (limited to 'webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview')
5 files changed, 0 insertions, 374 deletions
diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Bar.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Bar.js deleted file mode 100644 index 43ed8c1f85..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Bar.js +++ /dev/null @@ -1,75 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_buttonview) - -************************************************************************ */ - -qx.OO.defineClass("qx.ui.pageview.buttonview.Bar", qx.ui.pageview.AbstractBar, -function() { - qx.ui.pageview.AbstractBar.call(this); -}); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view-bar" }); - - - - -/* ---------------------------------------------------------------------------- - EVENTS ---------------------------------------------------------------------------- -*/ - -qx.Proto.getWheelDelta = function(e) -{ - var vWheelDelta = e.getWheelDelta(); - - switch(this.getParent().getBarPosition()) - { - case "left": - case "right": - vWheelDelta *= -1; - } - - return vWheelDelta; -} - - - - - -/* ---------------------------------------------------------------------------- - APPEARANCE ADDITIONS ---------------------------------------------------------------------------- -*/ - -qx.Proto._applyStateAppearance = function() -{ - var vPos = this.getParent().getBarPosition(); - - this._states.barLeft = vPos === "left"; - this._states.barRight = vPos === "right"; - this._states.barTop = vPos === "top"; - this._states.barBottom = vPos === "bottom"; - - qx.ui.pageview.AbstractButton.prototype._applyStateAppearance.call(this); -} diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Button.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Button.js deleted file mode 100644 index 2ea00867a9..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Button.js +++ /dev/null @@ -1,120 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_buttonview) - -************************************************************************ */ - -qx.OO.defineClass("qx.ui.pageview.buttonview.Button", qx.ui.pageview.AbstractButton, -function(vText, vIcon, vIconWidth, vIconHeight, vFlash) { - qx.ui.pageview.AbstractButton.call(this, vText, vIcon, vIconWidth, vIconHeight, vFlash); -}); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view-button" }); - - - - - - -/* ---------------------------------------------------------------------------- - EVENT HANDLER ---------------------------------------------------------------------------- -*/ - -qx.Proto._onkeypress = function(e) -{ - switch(this.getView().getBarPosition()) - { - case "top": - case "bottom": - switch(e.getKeyIdentifier()) - { - case "Left": - var vPrevious = true; - break; - - case "Right": - var vPrevious = false; - break; - - default: - return; - } - - break; - - case "left": - case "right": - switch(e.getKeyIdentifier()) - { - case "Up": - var vPrevious = true; - break; - - case "Down": - var vPrevious = false; - break; - - default: - return; - } - - break; - - default: - return; - } - - var vChild = vPrevious ? this.isFirstChild() ? this.getParent().getLastChild() : this.getPreviousSibling() : this.isLastChild() ? this.getParent().getFirstChild() : this.getNextSibling(); - - // focus next/previous button - vChild.setFocused(true); - - // and naturally also check it - vChild.setChecked(true); -} - - - - - - - - - -/* ---------------------------------------------------------------------------- - APPEARANCE ADDITIONS ---------------------------------------------------------------------------- -*/ - -qx.Proto._applyStateAppearance = function() -{ - var vPos = this.getView().getBarPosition(); - - this._states.barLeft = vPos === "left"; - this._states.barRight = vPos === "right"; - this._states.barTop = vPos === "top"; - this._states.barBottom = vPos === "bottom"; - - qx.ui.pageview.AbstractButton.prototype._applyStateAppearance.call(this); -} diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/ButtonView.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/ButtonView.js deleted file mode 100644 index 7521b67683..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/ButtonView.js +++ /dev/null @@ -1,98 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_buttonview) - -************************************************************************ */ - -/*! - One of the widgets which could be used to structurize the interface. - - qx.ui.pageview.buttonview.ButtonView creates the typical apple-like tabview-replacements which could also - be found in more modern versions of the settings dialog in Mozilla Firefox. -*/ -qx.OO.defineClass("qx.ui.pageview.buttonview.ButtonView", qx.ui.pageview.AbstractPageView, -function() -{ - qx.ui.pageview.AbstractPageView.call(this, qx.ui.pageview.buttonview.Bar, qx.ui.pageview.buttonview.Pane); - - this.setOrientation("vertical"); -}); - - - - - -/* ---------------------------------------------------------------------------- - PROPERTIES ---------------------------------------------------------------------------- -*/ - -qx.OO.addProperty({ name : "barPosition", type : "string", defaultValue : "top", possibleValues : [ "top", "right", "bottom", "left" ] }); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view" }); - - - - - -/* ---------------------------------------------------------------------------- - MODIFIER ---------------------------------------------------------------------------- -*/ - -qx.Proto._modifyBarPosition = function(propValue, propOldValue, propData) -{ - var vBar = this._bar; - - // move bar around and change orientation - switch(propValue) - { - case "top": - vBar.moveSelfToBegin(); - this.setOrientation("vertical"); - break; - - case "bottom": - vBar.moveSelfToEnd(); - this.setOrientation("vertical"); - break; - - case "left": - vBar.moveSelfToBegin(); - this.setOrientation("horizontal"); - break; - - case "right": - vBar.moveSelfToEnd(); - this.setOrientation("horizontal"); - break; - } - - // force re-apply of states for bar and pane - this._addChildrenToStateQueue(); - - // force re-apply of states for all tabs - vBar._addChildrenToStateQueue(); - - return true; -} diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Page.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Page.js deleted file mode 100644 index d5d4b15d4f..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Page.js +++ /dev/null @@ -1,30 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_buttonview) - -************************************************************************ */ - -qx.OO.defineClass("qx.ui.pageview.buttonview.Page", qx.ui.pageview.AbstractPage, -function(vButton) { - qx.ui.pageview.AbstractPage.call(this, vButton); -}); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view-page" }); diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Pane.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Pane.js deleted file mode 100644 index 6f8aabebc4..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/ui/pageview/buttonview/Pane.js +++ /dev/null @@ -1,51 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_buttonview) - -************************************************************************ */ - -qx.OO.defineClass("qx.ui.pageview.buttonview.Pane", qx.ui.pageview.AbstractPane, -function() { - qx.ui.pageview.AbstractPane.call(this); -}); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "bar-view-pane" }); - - - - - - - -/* ---------------------------------------------------------------------------- - APPEARANCE ADDITIONS ---------------------------------------------------------------------------- -*/ - -qx.Proto._applyStateAppearance = function() -{ - var vPos = this.getParent().getBarPosition(); - - this._states.barHorizontal = vPos === "top" || vPos === "bottom"; - - qx.ui.pageview.AbstractButton.prototype._applyStateAppearance.call(this); -} |