Permalink
Browse files

ClusterPane renamed to SchemaPane

---------------------------------------------
manually added Dialog contribution and refactored to guarantee compatibility with newest qx version
  • Loading branch information...
1 parent 194aee6 commit 9ead90b19b87eb561a9d9e69bcbc838a0f68e995 tomek committed Jul 19, 2012
Showing with 3,413 additions and 6 deletions.
  1. +1 −1 .gitignore
  2. +3 −1 src/main/frontend/config.json
  3. +34 −0 src/main/frontend/contribs/dialog/Manifest.json
  4. +77 −0 src/main/frontend/contribs/dialog/config.json
  5. +72 −0 src/main/frontend/contribs/dialog/generate.py
  6. +6 −0 src/main/frontend/contribs/dialog/readme.txt
  7. +95 −0 src/main/frontend/contribs/dialog/source/class/dialog/Alert.js
  8. +4 −0 src/main/frontend/contribs/dialog/source/class/dialog/Application.js
  9. +233 −0 src/main/frontend/contribs/dialog/source/class/dialog/Confirm.js
  10. +654 −0 src/main/frontend/contribs/dialog/source/class/dialog/Dialog.js
  11. +652 −0 src/main/frontend/contribs/dialog/source/class/dialog/Form.js
  12. +173 −0 src/main/frontend/contribs/dialog/source/class/dialog/FormRenderer.js
  13. +311 −0 src/main/frontend/contribs/dialog/source/class/dialog/Login.js
  14. +148 −0 src/main/frontend/contribs/dialog/source/class/dialog/Prompt.js
  15. +149 −0 src/main/frontend/contribs/dialog/source/class/dialog/Select.js
  16. +380 −0 src/main/frontend/contribs/dialog/source/class/dialog/Wizard.js
  17. +6 −0 src/main/frontend/contribs/dialog/source/class/dialog/__init__.js
  18. +55 −0 src/main/frontend/contribs/dialog/source/class/dialog/test/DemoTest.js
  19. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/classic/Appearance.js
  20. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/classic/Color.js
  21. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/classic/Decoration.js
  22. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/classic/Font.js
  23. +20 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/classic/Theme.js
  24. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/modern/Appearance.js
  25. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/modern/Color.js
  26. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/modern/Decoration.js
  27. +16 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/modern/Font.js
  28. +20 −0 src/main/frontend/contribs/dialog/source/class/dialog/theme/modern/Theme.js
  29. +9 −0 src/main/frontend/contribs/dialog/source/index.html
  30. BIN src/main/frontend/contribs/dialog/source/resource/dialog/logo.gif
  31. +52 −0 src/main/frontend/contribs/dialog/source/translation/de.po
  32. +52 −0 src/main/frontend/contribs/dialog/source/translation/en.po
  33. +52 −0 src/main/frontend/contribs/dialog/source/translation/fr.po
  34. +3 −0 src/main/frontend/contribs/dialog/source/translation/readme.txt
  35. +3 −2 src/main/frontend/source/class/helenos/components/MainPane.js
  36. +1 −1 src/main/frontend/source/class/helenos/components/{ClusterPane.js → SchemaPane.js}
  37. +10 −1 src/main/frontend/source/class/helenos/components/menu/KeyspaceContextMenu.js
  38. +10 −0 src/main/frontend/source/class/helenos/util/GuiObserver.js
View
@@ -4,4 +4,4 @@
/src/main/frontend/build/
/src/main/frontend/source/script/
/src/main/webapp/helenos/
-/src/main/frontend/contribs/
+/src/main/frontend/contribs/dialog/build/
@@ -53,7 +53,9 @@
{
"library" :
[
-
+ {
+ "manifest" : "contribs/dialog/Manifest.json"
+ }
]
}
}
@@ -0,0 +1,34 @@
+{
+ "info" :
+ {
+ "name" : "Dialog",
+
+ "summary" : "Dialog Contribution",
+ "description" : "The dialog package provides many often-used widgets required in user interaction, such as alert, confirm, prompt, and others that simplify the web developer's daily work.",
+
+ "homepage" : "http://contrib.qooxdoo.org/project/Dialog",
+
+ "license" : "LGPL/EPL",
+ "authors" :
+ [
+ {
+ "name" : "Christian Boulanger (cboulanger)",
+ "email" : "c.boulanger@qxtransformer.org"
+ }
+ ],
+
+ "version" : "trunk",
+ "qooxdoo-versions": ["2.0"]
+ },
+
+ "provides" :
+ {
+ "namespace" : "dialog",
+ "encoding" : "utf-8",
+ "class" : "source/class",
+ "resource" : "source/resource",
+ "translation" : "source/translation",
+ "type" : "contribution"
+ }
+}
+
@@ -0,0 +1,77 @@
+{
+ "name" : "Dialog",
+
+ "include" :
+ [
+ {
+ "path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
+ }
+ ],
+
+ "export" :
+ [
+ "api",
+ "build",
+ "clean",
+ "distclean",
+ "fix",
+ "inspector",
+ "lint",
+ "migration",
+ "pretty",
+ "profiling",
+ "source",
+ "source-all",
+ "test",
+ "test-source",
+ "translation"
+ ],
+
+ "let" :
+ {
+ "APPLICATION" : "dialog",
+ "QOOXDOO_PATH" : "../../../../../../../../../tools/qooxdoo",
+ //"QXTHEME" : "dialog.theme.modern.Theme",
+ "QXTHEME" : "qx.theme.Modern",
+ "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*"],
+ "LOCALES" : [ "en","de","fr" ],
+ "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache",
+ "ROOT" : "."
+ }
+
+ // You only need to edit the remainder of this file, if you want to customize
+ // specific jobs, or add own job definitions.
+
+ /*
+ "jobs" :
+ {
+ // Uncomment the following entry to add a contrib or library to your
+ // project; make sure to adapt the path to the Manifest.json; if you are
+ // using a contrib: library, it will be downloaded into the path specified
+ // by the 'cache/downloads' config key
+ "libraries" :
+ {
+ "library" :
+ [
+ {
+ "manifest" : "contrib://SkeletonApplication/trunk/Manifest.json"
+ }
+ ]
+ },
+
+ // If you want to tweak a job setting, see the following sample where
+ // the "format" feature of the "build-script" job is overridden.
+ // To see a list of available jobs, invoke 'generate.py x'.
+ "build-script" :
+ {
+ "compile-dist" :
+ {
+ "code" :
+ {
+ "format" : false
+ }
+ }
+ }
+ }
+ */
+}
@@ -0,0 +1,72 @@
+#!/usr/bin/env python
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2008 1&1 Internet AG, Germany, http://www.1und1.de
+#
+# 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:
+# * Thomas Herchenroeder (thron7)
+#
+################################################################################
+
+##
+# This is a stub proxy for the real generator.py
+##
+
+import sys, os, re, subprocess
+
+CMD_PYTHON = 'python'
+QOOXDOO_PATH = '../../qooxdoo/0.9-pre'
+
+def getQxPath():
+ path = QOOXDOO_PATH
+ # try updating from config file
+ if os.path.exists('config.json'):
+ # "using QOOXDOO_PATH from config.json"
+ qpathr=re.compile(r'"QOOXDOO_PATH"\s*:\s*"([^"]*)"\s*,?')
+ conffile = open('config.json')
+ aconffile = conffile.readlines()
+ for line in aconffile:
+ mo = qpathr.search(line)
+ if mo:
+ path = mo.group(1)
+ break # assume first occurrence is ok
+ path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), path))
+
+ return path
+
+os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) # switch to skeleton dir
+qxpath = getQxPath()
+REAL_GENERATOR = os.path.join(qxpath, 'tool', 'bin', 'generator.py')
+
+if not os.path.exists(REAL_GENERATOR):
+ print "Cannot find real generator script under: \"%s\"; aborting" % REAL_GENERATOR
+ sys.exit(1)
+
+argList = []
+argList.append(CMD_PYTHON)
+argList.append(REAL_GENERATOR)
+argList.extend(sys.argv[1:])
+if sys.platform == "win32":
+ argList1=[]
+ for arg in argList:
+ if arg.find(' ')>-1:
+ argList1.append('"%s"' % arg)
+ else:
+ argList1.append(arg)
+ argList = argList1
+else:
+ argList = ['"%s"' % x for x in argList] # quote argv elements
+
+cmd = " ".join(argList)
+retval = subprocess.call(cmd, shell=True)
+sys.exit(retval)
@@ -0,0 +1,6 @@
+Dialog contrib
+==============
+
+The Dialog project provides many often-used widgets required in user
+interaction, such as alert, confirm, prompt, and others that simplify
+the web developer's daily work.
@@ -0,0 +1,95 @@
+/* ************************************************************************
+
+ qooxdoo dialog library
+
+ http://qooxdoo.org/contrib/project#dialog
+
+ Copyright:
+ 2007-2010 Christian Boulanger
+
+ 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:
+ * Christian Boulanger (cboulanger)
+
+************************************************************************ */
+
+/* ************************************************************************
+#asset(qx/icon/${qx.icontheme}/48/status/dialog-information.png)
+************************************************************************ */
+
+/**
+ * A dialog that alerts the user to something.
+ */
+qx.Class.define("dialog.Alert",
+{
+ extend : dialog.Dialog,
+
+ /*
+ *****************************************************************************
+ MEMBERS
+ *****************************************************************************
+ */
+ members :
+ {
+
+ /*
+ ---------------------------------------------------------------------------
+ WIDGET LAYOUT
+ ---------------------------------------------------------------------------
+ */
+
+ /**
+ * Create the main content of the widget
+ */
+ _createWidgetContent : function()
+ {
+
+ /*
+ * groupbox
+ */
+ var groupboxContainer = new qx.ui.groupbox.GroupBox().set({
+ contentPadding: [16, 16, 16, 16]
+ });
+ groupboxContainer.setLayout( new qx.ui.layout.VBox(10) );
+ this.add( groupboxContainer );
+
+ var hbox = new qx.ui.container.Composite;
+ hbox.setLayout( new qx.ui.layout.HBox(10) );
+ groupboxContainer.add( hbox );
+
+ /*
+ * add image
+ */
+ this._image = new qx.ui.basic.Image(this.getImage() || "icon/48/status/dialog-information.png" );
+ hbox.add( this._image );
+
+ /*
+ * Add message label
+ */
+ this._message = new qx.ui.basic.Label();
+ this._message.setRich(true);
+ this._message.setWidth(200);
+ this._message.setAllowStretchX(true);
+ hbox.add( this._message, {flex:1} );
+
+ /*
+ * Ok Button
+ */
+ var okButton = this._createOkButton();
+
+ /*
+ * buttons pane
+ */
+ var buttonPane = new qx.ui.container.Composite;
+ var bpLayout = new qx.ui.layout.HBox();
+ bpLayout.setAlignX("center");
+ buttonPane.setLayout(bpLayout);
+ buttonPane.add(okButton);
+ groupboxContainer.add(buttonPane);
+ }
+ }
+});
@@ -0,0 +1,4 @@
+qx.Class.define("dialog.Application",
+{
+
+});
Oops, something went wrong.

0 comments on commit 9ead90b

Please sign in to comment.