Re: [qooxdoo-devel] Appearance question

2009-08-07 Thread Jim Hunter
I guess I am not 'getting' the appearance class. Here is the class I added for my custom appearances, let me know what I am doing wrong: qx.Theme.define("swep.Appearance", { extend : qx.theme.modern.Appearance, title : "swep", appearances : { "sfNavDocArrowBar" : {}, "sfNavDocAr

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 23:14, Jim Hunter wrote: Since I don't have the full context of where these lines are used I can't tell yo why it's failing. Does it give you an error message? What does it say? I don't know the scope of 'this', that may be why it is failing, wrong scope. Yes, eval can be used i

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread Jim Hunter
Since I don't have the full context of where these lines are used I can't tell yo why it's failing. Does it give you an error message? What does it say? I don't know the scope of 'this', that may be why it is failing, wrong scope. Yes, eval can be used in lots of places, but in general it is a slo

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 20:17, Jim Hunter wrote: I have read this over a couple of times and I don't see why the following code won't work, eliminating the need for the eval in the first place: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.form.Label(this.tr (colum

Re: [qooxdoo-devel] Reorganization of qx.ui.form

2009-08-07 Thread Jim Hunter
I don't like change just for the sake of change. I am to the point where I know what the hierarchy is of the form elements so that I don't need to look them up every time I need to use one. If you change it all, then everyone will be back at ground 0 and have to learn it all over again just for the

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread Jim Hunter
I have read this over a couple of times and I don't see why the following code won't work, eliminating the need for the eval in the first place: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.form.Label(this.tr(columnTitle)) even if the variable name gets shortened, both ins

Re: [qooxdoo-devel] Convert qx.core.Object to map

2009-08-07 Thread panyasan
Sorry, the snippet was wrong: qx.Class.getProperties( qx.Class.getByName( object.classname ) ).forEach( function(property){ resultMap[property] = object.get( property ); },this); panyasan wrote: > > Hello, > > how do I convert a qx.core.Object object with its properties t

[qooxdoo-devel] Convert qx.core.Object to map

2009-08-07 Thread panyasan
Hello, how do I convert a qx.core.Object object with its properties to a simple JavaScript map? I was trying var resultMap = {}; qx.Class.getProperties( qx.Class.getByName( object.classname ) ).forEach( function(property){ resultMap[property] = this.getModel().get( property )

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread reimer
On Fri, 07 Aug 2009 17:39 +0200, "Fritz Zaucker" wrote: > ./generate.py source (not source-all) Thanks Fritz and Skar, using source (instead of source-all) brings it for me down to around 15 seconds. However, I realized my webserver (Lighttpd) is causing another serious delay. When I use file:

Re: [qooxdoo-devel] qx.ui.menubar.Button

2009-08-07 Thread A.Yerenkow
On 07.08.2009 17:09, Martin Wittemann wrote: > Hello Alexander, > i tried to reproduce your issue in the playground with your code but > that code you supplied was quite useless. But I did get the error > running in the playground so I opened a bug for it. > http://bugzilla.qooxdoo.org/show_bug.cgi

Re: [qooxdoo-devel] Problem with images

2009-08-07 Thread GlebM
INITIALIZING: IREQUEST_DJ >>> Configuration: config.json >>> Jobs: distclean >>> expanding: ${QOOXDOO_PATH}/tool/data/config/application.js

Re: [qooxdoo-devel] Problem with images

2009-08-07 Thread GlebM
Hi I am using the same version of Firefox as well. The issue is hard notice, because the buttons are indeed visible. However, there are no corner images visible on these buttons (the button is a rectangle, while it should have rounded corners). The source version looks exactly the same. I did cr

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread skar karthikeyan
On Fri, Aug 7, 2009 at 8:58 PM, reimer wrote: > On Fri, 07 Aug 2009 17:09 +0200, "Fritz Zaucker" > wrote: > > I just tried the > > > > createapplication-application demo (from svn trunk). It took about 8 > > Seconds > > Hi Fritz, > > Just to clarify: this is the "Hello World" application? > > I

Re: [qooxdoo-devel] qx.ui.table.model.Simple/Filtered and addRegex()

2009-08-07 Thread Fritz Zaucker
Hi Dave, I'll give it a try when you are done with your cleanup. I have a working (brute-force) solution for the moment and a few other things to attend to. Please let me know when you are done. Thanks and best regards, Fritz On Wed, 5 Aug 2009, dmbaggett wrote: > > Hi Fritz, > > I believe the

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread Fritz Zaucker
Hi "reimer", yes, the application with just a "Hello world" button. I did: tool/bin/create-application.py --name=test cd test ./generate.py source (not source-all) Doing it with source-all took 17 Seconds and gave two errors on the firebug console ... source-all includes all classes, probably

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread reimer
On Fri, 07 Aug 2009 17:09 +0200, "Fritz Zaucker" wrote: > I just tried the > > createapplication-application demo (from svn trunk). It took about 8 > Seconds Hi Fritz, Just to clarify: this is the "Hello World" application? I am running: $ tool/bin/create-application.py --name=custom --out=. $

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread Fritz Zaucker
I just tried the createapplication-application demo (from svn trunk). It took about 8 Seconds to load the application (Firefox 3.5.1 on Ubuntu-Jaunty). The browser is running on one (shared) machine (not very busy) and the file is stored on another machine and accessed through NFS. Cheers, Fritz

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread Jim Hunter
The source version is not supposed to load fast. It is there for debugging purposes only. Once you have your application working, you do a build version and deploy it to your server. And yes, the source version does take a long time to load. And it you are using an older browser, especially IE6 or

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread reimer
On Fri, 07 Aug 2009 18:46 +0530, "skar" wrote: > If you "build" the app, then it should have 2 files, the js, the html > and of course, the resources like images used for buttons etc. My build > dir is around 2.9M and it loads pretty fast, say 2-3 secs. Hi skar, just to clarify: I'm talking about

Re: [qooxdoo-devel] qx.ui.menubar.Button

2009-08-07 Thread Martin Wittemann
Hello Alexander, i tried to reproduce your issue in the playground with your code but that code you supplied was quite useless. But I did get the error running in the playground so I opened a bug for it. http://bugzilla.qooxdoo.org/show_bug.cgi?id=2664 Thanks for reporting this issue. :) Best,

Re: [qooxdoo-devel] add listener when app is fully loaded

2009-08-07 Thread Martin Wittemann
If you ommit the this in the listener call, which sets this context of the listener function, you will have a different this in the listener context. So its best practice always to add a context to the listener. Best, Martin Am 07.08.2009 um 14:02 schrieb skar: Martin Wittemann wrote: v

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread Martin Wittemann
Hello Reimer, wellcome to qooxdoo. :) More than 50sec for a page load is way too long an not as it supposed to be. But as skar said, the source version loads every single javascript class as a single file so there may be some hundred files to load, which can take some time you have a latency

Re: [qooxdoo-devel] A Tool Tip for TreeVirtual

2009-08-07 Thread Derrell Lipman
On Thu, Aug 6, 2009 at 08:51, thron7 wrote: > Hi Alex, > > I'm not a TreeVirtual expert, but as far as I can see only the > TreeVirtual widget itself derives from qx.ui.core.Widget, and therefore > has a .setToolTip() method. The component parts of a TreeVirtual do not > derive from qx.ui.core.Wi

Re: [qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread skar
reimer wrote: > Hi all, > > I am trying out qooxdoo since yesterday. The Getting Started > documentation is very clear, so I had no problem getting the "Hello > World" example up and running. However, opening source/index.html takes > very long (>50s). I am using a seperate server, so there will be

[qooxdoo-devel] Hello World (newbie)

2009-08-07 Thread reimer
Hi all, I am trying out qooxdoo since yesterday. The Getting Started documentation is very clear, so I had no problem getting the "Hello World" example up and running. However, opening source/index.html takes very long (>50s). I am using a seperate server, so there will be some download time, but

[qooxdoo-devel] Question about translation

2009-08-07 Thread A.Yerenkow
In framework itself deep in Tables there are such file: qooxdoo-0.8.2-sdk\framework\source\class\qx\ui\table\columnmodel\Resize.js there such message at 212 line: this.tr("Reset column widths") I created in my translation .po files such records: #: Tables; msgid "Reset column widths" msgstr "Rese

[qooxdoo-devel] qx.ui.menubar.Button

2009-08-07 Thread A.Yerenkow
qx.ui.menubar.Button without menu (maybe with menu too) not firing event "execute"; I have this code: var toolbar = new qx.ui.toolbar.ToolBar(); menuLogout = new qx.ui.menubar.Button(this.tr("Logout")); menuLogout.addListener("execute", this.doLogout, this

Re: [qooxdoo-devel] embedding google maps

2009-08-07 Thread Daniel Wagner
Hi Michael, I just tried to create an application using the code from your first post, but I'm getting the same result. Either the browser keeps waiting for gg.google.com or the "doc.body is null" error occurs. I did get it to work by using the old-style Maps API that doesn't use the Google AJ

Re: [qooxdoo-devel] add listener when app is fully loaded

2009-08-07 Thread skar
Martin Wittemann wrote: > var textfield = new qx.ui.form.TextField("affe"); > this.getRoot().addListener("resize", function() { >if (textfield.getBounds() != null) { > textfield.setWidth(this.getRoot().getBounds().width); >} > }, *this*); > this.getRoot().add(textfield); > I missed t

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 14:39, thron7 wrote: > >> I'd like to have ability to specify even scoped var names, which preserve; >> Can someone point me where to dig? :) >> In theory, this should be easy; parse config - find names which to >> preserve; when parsig/building, simply check var name against this

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread thron7
> I'd like to have ability to specify even scoped var names, which preserve; > Can someone point me where to dig? :) > In theory, this should be easy; parse config - find names which to > preserve; when parsig/building, simply check var name against this list. > > You might want to open an en

Re: [qooxdoo-devel] add listener when app is fully loaded

2009-08-07 Thread skar
Hi Marti, > the getBounds() mehtod returns null in the case the widget is not > rendered jet. But every widget fires a resize event on the first > rendering so it should be enough to add a listener to resize and > ignore all chases when the getBounds returns null. That dosn't work > for you

[qooxdoo-devel] Reorganization of qx.ui.form

2009-08-07 Thread Martin Wittemann
Hello list, we plan to reorganize the meanwhile big qx.ui.form namespace. I have postet the current proposal in a bug report. http://bugzilla.qooxdoo.org/show_bug.cgi?id=2661 Everyone on the list is welcome to add a comment to the bug and start of a discussion. Best, Martin ---

Re: [qooxdoo-devel] add listener when app is fully loaded

2009-08-07 Thread Martin Wittemann
Hello skar, the getBounds() mehtod returns null in the case the widget is not rendered jet. But every widget fires a resize event on the first rendering so it should be enough to add a listener to resize and ignore all chases when the getBounds returns null. That dosn't work for you? Just

Re: [qooxdoo-devel] embedding google maps

2009-08-07 Thread Michael Ochs
Hi, I tried importing the google script into the html/index-source.html and it works fine. Thanks for that. But the firefox is always "waiting for gg.google.com" and doesn't do anything whereas safari is done with the test almost instantly. Any idea on that one? Anyway, there still is the e

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 12:15, thron7 wrote: > >> I solved this, like this: >> >> var myLabel = new qx.ui.Label(eval("this.tr('" + columnTitle + "');")); >> >> which builds into something like this: >> var y = "this.tr('" + Dd+ "');"; >> var De = new qx.ui.Label(eval(y)); >> >> > Good catch. But yo

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread thron7
> I solved this, like this: > > var myLabel = new qx.ui.Label(eval("this.tr('" + columnTitle + "');")); > > which builds into something like this: > var y = "this.tr('" + Dd+ "');"; > var De = new qx.ui.Label(eval(y)); > Good catch. But you are aware that you are brushing the translation syst

[qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
Hello guys! I have a little problem with eval(); and run-build; because code like: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.Label(eval("this.tr(columnTitle);")); changes to: var y = "this.tr(columnTitle);" var Dd = "get from somewhere else"; var De = new qx.ui.Label(eva

[qooxdoo-devel] add listener when app is fully loaded

2009-08-07 Thread skar karthikeyan
Hi, I want to resize some of my widgets, whenever the app is resized. It works if I add a listener to the "resize" event. However, on app load, the getBounds() for the app returns null instead of the correct size, so the widgets aren't correctly resized. Is there a way to set a listener to the "app