Re: [qooxdoo-devel] redirect to main app after login success

2009-12-14 Thread Matthew Gregory
When you open a new window (tab or not) via window.open it runs under the security context of a popup window, this means you can safely use window.close to close it. However you cannot use window.close on a normal window.tab (IIRC some browsers provide an advanced setting to change this behavio

Re: [qooxdoo-devel] redirect to main app after login success

2009-12-14 Thread Matthew Gregory
I was under the impression you wanted to use the same window? If so you can do window.location = newURL HTH, Matt skar wrote: > Hi Sebastien, >> I used this code for my application with a separate login application. >> >> buttonLoginOk.addListener("execute", function (e) { >>

Re: [qooxdoo-devel] Your favorite aspects of qooxdoo !?

2009-12-09 Thread Matthew Gregory
Fritz Zaucker wrote: > I can't speak for the Qooxdoo developers, but I myself would be most > grateful if you pointed out "imperfect" things in my code to ... even better > with suggestions for improvement ... ;-) It's not often that it happens. If it is a problem then I report a bug (usually wit

Re: [qooxdoo-devel] Your favorite aspects of qooxdoo !?

2009-12-09 Thread Matthew Gregory
Hi, (Sorry it's been so long, been away doing server side coding). I agree with what most peopl have said, but wanted to comment on something possibly unique. When I find a bug or quirk in the framework, or I want to know how something works internally so I can tweak it, I just look at the sour

Re: [qooxdoo-devel] Your favorite aspects of qooxdoo !?

2009-12-09 Thread Matthew Gregory
> * a parameter in the build toolchain to allow to specify where the SDK will > be after a compile source build. This would allow to to compile source and > then move source somewhere else. I know source is not for production but for > validation purpose or to solve a tricky bug, we need debug m

Re: [qooxdoo-devel] generator and generic accesses to qx.ui.*

2009-11-30 Thread Matthew Gregory
You need to add the following to the top of your file /* #use(qx.ui.toolbar.*) #use(qx.ui.menu.*) */ I am not sure it if will pick up the classes correctly based on the wildchar, worth a shot. If it doesn't work you can use the same syntax but just list each class. HTH, Matt benco wrote: > He

Re: [qooxdoo-devel] about callAsync and scope

2009-11-23 Thread Matthew Gregory
Wouldn't it be possible just to check the type of the second parameter? If it is a derivitive of qx.core.Object use it as the context otherwise pass it as the first parameter? Derrell Lipman wrote: > On Mon, Nov 23, 2009 at 06:15, Fritz Zaucker > wrote: > > The r

Re: [qooxdoo-devel] about callAsync and scope

2009-11-23 Thread Matthew Gregory
Hi Tobias, You can your qx.lang.Function.bind server.callAsync(qx.lang.Function.bind(handler, this), arg1, arg2...); That should fix your issue :) HTH Matt Tobias Oetiker wrote: > While qooxdoo is hurling towards 1.0 there is this question that is > bugging me. > > I have learned, that using a

Re: [qooxdoo-devel] re moveListener problem - pls help

2009-11-19 Thread Matthew Gregory
You could also do this: var id = button.addListener("execute", function(e) {alert("test");}); button.removeListenerById(id); sikd wrote: > Maybe I just misunderstood something, but this code doesn't work: > > > var button = new qx.ui.form.Button("test"); > button.addLis

Re: [qooxdoo-devel] re moveListener problem - pls help

2009-11-19 Thread Matthew Gregory
You are creating two distict functions, the function that you are passing to removeListener is not the same as the one you are adding try this instead: function test() { alert("test"); } button.addListener("execute", test); button.removeListener("execute", test); HTH, Matt sikd wrote: > M

Re: [qooxdoo-devel] layout question

2009-11-18 Thread Matthew Gregory
Hi Jurij, A single container for each layout is really the way to go. It shouldn't matter that your children are in different containers. To use MSingleSelectionHandling you just need to make sure you return all children in _getItems . Currently, if you wanted to do away with the intermediate c

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-17 Thread Matthew Gregory
Good to know, I was starting to get puzzled why it wasn't working :) skar wrote: > Hi Alex, >> >> This line should be >> >> --snip-- >> this.fireDataEvent("changeReadOnly", value, old); >> --snip-- >> >> > Thanks. It was my mistake, I actually had the above line only. I ran > generator again

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-17 Thread Matthew Gregory
Strange, I am not sure why it would do that, from what you've said it sounds like this would work for you though: this.fireDataEvent("changeReadOnly", !!value, !!old); skar wrote: > Matthew Gregory wrote: >> Didn't this work? >> >> this.fireDataEvent(

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-17 Thread Matthew Gregory
Didn't this work? this.fireDataEvent("changeReadOnly", value, old); skar wrote: > Matthew Gregory wrote: >> That's strange, you e.getData() should return a boolean not an object. >> Can you copy and paste your code please and we'll have a look.

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-17 Thread Matthew Gregory
That's strange, you e.getData() should return a boolean not an object. Can you copy and paste your code please and we'll have a look. Matt skar wrote: > Matthew Gregory wrote: >> Alex beat to me to it! >> Just one small difference, it is usually better to pass the ol

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-16 Thread Matthew Gregory
Alex beat to me to it! Just one small difference, it is usually better to pass the old value whilst firing off a data event, it's not strictly required, but it is a good habbit to get into. Matthew Gregory wrote: > Yes, you can only refine the init key. > > Tr

Re: [qooxdoo-devel] any way to listen to change in readonly property of a textarea?

2009-11-16 Thread Matthew Gregory
Yes, you can only refine the init key. Try this instead: qx.Class.define("NewTextArea", { extend : qx.ui.form.TextArea, events : { "changeReadOnly" : "qx.event.type.Data" }, members : { _applyReadOnly : function(value, old) { this.base(arguments, value, o

Re: [qooxdoo-devel] How restrict window movement in desktop

2009-11-16 Thread Matthew Gregory
I have a widget I have created that puts scrollbars on the desktop that work perfectly, they will allow you to keep the status line in place. However it's not quite production ready :( I need to do a little more work on it before it can become a contrib. In the mean time you can overide setDomP

Re: [qooxdoo-devel] How to use timers

2009-11-13 Thread Matthew Gregory
Also, in addition to Stefan's reply, you are failing to call this.base(arguments) in your constructor, that will cause you some problems Stefan Volbers wrote: > Hi Ilkka, > > your code should work if, in the last line of the constructor, you add > the listener to 'this.__timer' instead of just

Re: [qooxdoo-devel] authentication

2009-11-13 Thread Matthew Gregory
I agree with Ilkka, the only way to fully support a completely stateless server is to send the login credentials with every request. I would discourage the use of cookies though, they introduce problems. I guess you are using a full blown qooxdoo application (as aposed to something inline across

Re: [qooxdoo-devel] Odd error after clearing child widgets in a composite

2009-11-10 Thread Matthew Gregory
Did you see my other email? Try using .destroy() instead of .dispose(). This way the widgets will be completely removed from the array you are refering to. HTH, Matt f...@mail.dnttm.ro wrote: > Me again. > > I had to dig a little more, and here's what I found: it seems that when you > .dispose

Re: [qooxdoo-devel] Odd error after clearing child widgets in a composite

2009-11-10 Thread Matthew Gregory
Try using .destroy() instead of .dispose(). IIRC destroy() will basically remove the widget from it's parent and the dispose it. Without removing it from the parent first you leave a reference to it behind which is what I think is causing your error. HTH, Matt f...@mail.dnttm.ro wrote: > Hi. >

Re: [qooxdoo-devel] calling components

2009-11-10 Thread Matthew Gregory
You are usually better off just storing a reference to each widget than trying to progmatically find it in a child array or similar. Alex Alvarez wrote: > I'm sure this has been answered many times before, but I haven't had > luck finding a related post. > > Q: What is/are the best ways for ide

Re: [qooxdoo-devel] pass a functions name to a class

2009-11-09 Thread Matthew Gregory
As a small optimization you could replace this: construct: function(currFn) { this.addListener("click", function(e) { currFn(e); }); }); with this: construct: function(currFn) { this.addListener("click", currFn); }); sikd wrote: > It works!!! > Thank You very much. > :D -

Re: [qooxdoo-devel] adding atoms to layout

2009-11-04 Thread Matthew Gregory
It might help if you explain a little what "next task" is, and also why these atoms are added in random order. If you know how many atoms are added, and you want to wait until they are all onscreen you could use the appear event and a counter. var count = 0; eachAtom.addListener("appear", funct

Re: [qooxdoo-devel] window is moved beyond the screen

2009-11-04 Thread Matthew Gregory
I had this same problem. I've created a scrollable desktop that I am planning on making a contrib. There are a few problems with it currently, I'll see if I get time to fix these, if not I'll commit as is. To stop the problems you are getting though you could just set allowGrowX and allowGrowY

Re: [qooxdoo-devel] Theming question: How to get rid of gradient background image

2009-11-03 Thread Matthew Gregory
Does undefined work? I would have thought null would be a better option? Jonathan Weiß wrote: > Hello Christian, > > > overriding entries in your application's theme is the correct way to go. :-) > > What have you tried so far? You can remove a decorator by setting the value > to undefined: >

Re: [qooxdoo-devel] how can I get the current date?

2009-11-03 Thread Matthew Gregory
new Date() That will return the current date as a new instance of the Date object (this is build into the JS engine). You can then format it using qx.util.form.Date(), the api has an example IIRC. HTH, Matt Riccardo-Maria BIANCHI wrote: > Hi, > > how can I get the current date, to be displa

Re: [qooxdoo-devel] get Focused widget / table

2009-11-03 Thread Matthew Gregory
Not that I can think of. You could though just reuse the same user data rather than create a new property? Daniel Hirtzbruch wrote: > Thank you much for your hint - that's what I'm already doing on tabs where > I've only got one table. In this special case I have two tables on one tab, > therefor

Re: [qooxdoo-devel] get Focused widget / table

2009-11-03 Thread Matthew Gregory
There are several solutions, I presume you only have one table per tab? If so you can call tabview.getSelection() to return an *array* containing the currently active tab, and then just get your table from there. page1.setUserData("table", table1); page2.setUserData("table", table2); ... var

Re: [qooxdoo-devel] Generator bug: Managled private names

2009-11-02 Thread Matthew Gregory
The trunk, 20551 thron7 wrote: > > Matthew Gregory wrote: >> Hi All, >> I think I might have stumbled across a generator bug. In a build version >> of our app, windows are not displayed at all. I have tracked it down to >> the following: calling this.getBou

[qooxdoo-devel] Generator bug: Managled private names

2009-11-02 Thread Matthew Gregory
Hi All, I think I might have stumbled across a generator bug. In a build version of our app, windows are not displayed at all. I have tracked it down to the following: calling this.getBounds() on a window returns this: "function () { var Q = this.__dT; if (!Q) { Q = this.__dT = new (qx.ui.core.

Re: [qooxdoo-devel] How can I access my os from the web browser?

2009-11-02 Thread Matthew Gregory
ind of program. Maybe in > some kind of limited scope? > > tom > > > Matthew Gregory wrote: >> You can't really. >> It does depend on what you are trying to achieve though, if you give >> more detail maybe there is a work around. Perhaps if you s

Re: [qooxdoo-devel] How can I access my os from the web browser?

2009-10-30 Thread Matthew Gregory
You can't really. It does depend on what you are trying to achieve though, if you give more detail maybe there is a work around. Perhaps if you start with explaining why do you want to notify the operating system and what do you expect it to do? Matt tsmiller wrote: > Developers, > I have writ

Re: [qooxdoo-devel] Wrong classes detected for error "Unknown class referenced"

2009-10-28 Thread Matthew Gregory
It is because it doesn't know what style is. To get rid or the warning change the begining of the first line to var style ;) Matt Sebastian Werner wrote: > Hi! > > Somehow the current version of the generator produces some interesting output: > > - ! Unknown class referenced: style (unify.co

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

2009-10-28 Thread Matthew Gregory
eval is evil! Also it won't work for grouped properties. I've modified Derrells example, hopefully this is what you want: http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%20%22function%2520getProperties%28object%29%250A%257B%250A%2520%2520var%2520clazz%2520%253D%2520object.constructor%

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

2009-10-28 Thread Matthew Gregory
Take a look at the "map" variable in Darrell's example. That is what you are interested in Gene Amtower wrote: > Derrell, > > I just had to try the Playground code for the first time, and that's > really neat! But, doesn't your code just provide a list of the > properties names for a given cla

Re: [qooxdoo-devel] solved: retrieval of a widget's enabled state

2009-10-27 Thread Matthew Gregory
I'm not on 0.7 so can't say if this is a bug or not, Either way, could you share your "other way" with the mailing list so others know what to do if they have the same problem? Thanks, Matt Dmitry Pryadkin wrote: > Solved it in other way, > thanks > > Dmitry Pryadkin wrote: >> isEnabled has beh

Re: [qooxdoo-devel] qx.util.Serializer.toJson() Bug?

2009-10-27 Thread Matthew Gregory
I agree, I just provided that code a temporary work around ;) panyasan wrote: > Yes, but still the serializer should not choke in cases where a property is a > plain object instead of a model. The result should be a valid json string in > any case, I think. > > C. > > > Noggin182 wrote: >> You

Re: [qooxdoo-devel] qx.util.Serializer.toJson() Bug?

2009-10-27 Thread Matthew Gregory
You could just set goo to another model: model.setGoo(qx.data.marshal.Json.createModel({ mi: "moo", la: "lili" })); 023684 playground.Application[96]: {"foo":"foo","bar":"bar","goo":{}}playground.js (line 14218) 023696 playground.Application[96]: {"foo":"foo","bar":"bar","goo":{"mi":"moo","la"

Re: [qooxdoo-devel] reference objects outside handler

2009-10-27 Thread Matthew Gregory
You can also bind your function. So where this won't work: this.rpc.callAsync(this._handleResult); You can do this: this.rpc.callAsync(qx.lang.Function.bind(this._handleResult, this)); That should help keep your code tidy :) Matt JB wrote: > Thanks, I got it. I am familiar with them from the

Re: [qooxdoo-devel] Grid decorator questions

2009-10-23 Thread Matthew Gregory
Jean-Noël Rivasseau wrote: I opened a bug report for this improvement: http://bugzilla.qooxdoo.org/show_bug.cgi?id=2962 What worries me more is the fact that the Grid decorator always try to find all images. This is *really* not nice, I got 404 in my apps just because it tries to load a top i

Re: [qooxdoo-devel] Table Height does not adjust inside Window

2009-10-23 Thread Matthew Gregory
Can you provide a code snippet? Shankar_java wrote: > I tried using VBox with flex for table, and without flex for toolbar, still > the table scrolls beyond the window. > > -Shankar > > > Matthew Gregory wrote: >> With the vbox layout use the layout property flex, j

Re: [qooxdoo-devel] loading an image into playground application

2009-10-21 Thread Matthew Gregory
Browsers won't let web pages access resources from your local drive, it is a massive security flaw if they do! As a work around you could run the playground utility locally rather than running it from the qooxdoo site. This way, as the page is already being run from your local disk, you will ha

Re: [qooxdoo-devel] Table Height does not adjust inside Window

2009-10-21 Thread Matthew Gregory
With the vbox layout use the layout property flex, just set it to 1 in this case and it should work. window.add(table, {flex : 1}); HTH, Matt Shankar_java wrote: > Hi, > > I have a toolbar and a table inside a window. > When window is maximized, the table height does not change? > I tried VB

Re: [qooxdoo-devel] Advice needed: Label for password field?

2009-10-21 Thread Matthew Gregory
You could overlay a label that gets hidden when there is a value, this shouldn't be too difficult and might actually make a nice improvement to the framework. HTH, Matt Max Tappenden wrote: > Hi there, > > I want to create a log-in screen for my application, and to have the > username and pa

Re: [qooxdoo-devel] Grid decorator questions

2009-10-21 Thread Matthew Gregory
Just a note to the team, this is something we would be interested in as well. The ability to specify the border width on each edge. Matt Jean-Noël Rivasseau wrote: > Hello, > > I am using the grid decorator quite a lot and got the following questions: > > * Sometimes I have to use not the whol

[qooxdoo-devel] Possible New Contrib: ScrollingDesktop

2009-10-20 Thread Matthew Gregory
Hi All, I am working on a new widget that I think might be useful for others. It is a replacement desktop widget that extends from AbstractScrollArea. The scrollbars behave in exactly the same way as a windows MDI application (I imagine the same would be true on Unix MDI). It is a little more c

Re: [qooxdoo-devel] Theming a button (its image actually)

2009-10-15 Thread Matthew Gregory
You are setting the icon inside the constructor for your page. If you provide a custom icon in this way the icon from the theme is always ignored. Try removing the icon from the constructor and use this in your appearance: return {"icon": states.hovered ? "common/margins-active.png" : "commo

Re: [qooxdoo-devel] getting 2 resize events for every resize of qx.ui.window.Window

2009-10-15 Thread Matthew Gregory
same event object for two different events on two different objects! (or at least I'm quite sure that's how it works) skar wrote: > Matthew Gregory wrote: >> I haven't looked at this but from what I have seen of the event system >> you can't safely save a referenc

Re: [qooxdoo-devel] getting 2 resize events for every resize of qx.ui.window.Window

2009-10-15 Thread Matthew Gregory
I haven't looked at this but from what I have seen of the event system you can't safely save a reference to an event object and compare it with another. The reason is that event objects are pooled so it could well be that the same event object is used for two different events. skar wrote: > Hi,

Re: [qooxdoo-devel] AIE

2009-10-15 Thread Matthew Gregory
Haven;t heard much of it but it is mentioned on the wiki here: http://qooxdoo.org/community/real_life_examples#appearance_is_everything Jean-Baptiste BRIAUD -- Novlog wrote: > Hi, > > Does anyone heard of AIE ? > http://sqville.com/aie/demos.html > > Any experience return ? > > It look like fr

Re: [qooxdoo-devel] "create-application.py -t contribution" doesn't build properly

2009-10-14 Thread Matthew Gregory
I am not sure if this helps but after I updated my qx revision recently I was getting all kind of errors until I did a distclean, might be worth a shot? Matt Derrell Lipman wrote: > I want to create a new contrib, so I typed: > > > /home/derrell/ME/qooxdoo.git/trunk/qooxdoo/tool/bin/create-

Re: [qooxdoo-devel] Running as build doesn't work!

2009-10-14 Thread Matthew Gregory
Pedro Vieira wrote: > I did that you said and it works fine. The firebug wasn't showing this > message for me. Hmm.. if you put something like this.error("testing") does that show up in your log ok? I have also noticed that sometimes the firebug log get's cleared during startup so early message

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-14 Thread Matthew Gregory
The demo and online documentation could be improved a lot I think. It is a powerful widget. For example you could put several panels in a dock layout to get some really nice effects ;) panyasan wrote: > This is totally awesome. > > Three cheers to Matt, he made this contribution a great success

Re: [qooxdoo-devel] Running as build doesn't work!

2009-10-14 Thread Matthew Gregory
Hi Pedro, As I said in my other mail this line should be giving you an error in your source application: win.setLayout(new qx.ui.layout.Grid(10,10).set({row: 1, column: 2})); You should see in firebug (or the log that you see when you hit F7) this: qx.ui.layout.Grid[xx]: No such property: row

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-14 Thread Matthew Gregory
panyasan wrote: > > No, that's perfect -- would you mind adding a button to turn the "accordeon" > effect on and off (the auto-closing of the non-opened panels)? Thanks so > much! > > C. > The accordian effect is made up of two parts. The first is using the radio group so that only one panel

Re: [qooxdoo-devel] how to insert a label before another label in a vbox composite container?

2009-10-14 Thread Matthew Gregory
you could use .addBefore(childWidget, beforeWidget) or .addAt(widget, index) skar wrote: > Hi, > > I need to add a label into a vbox composite container, but it must be > added before an already existing label. Any idea on how to do this? > > cheers, > skar. > ---

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-14 Thread Matthew Gregory
panyasan wrote: > I consider both ideas (vertical labels and animation) as "would be nice to > have" features that are not essential for the widget and do not need to be > implemented right now and by us. As you say, we should stay focused on > finishing the accordeon/collapsable panel widget in t

Re: [qooxdoo-devel] Running as build doesn't work!

2009-10-14 Thread Matthew Gregory
> win.setLayout(new qx.ui.layout.Grid(10,10).set({row:1,column:2})); row and rolumn aren't properties of qx.ui.layout.Grid. You should be getting an error at runtime in your source. HTH, Matt pesvieira wrote: > Hi. > > I have a problem with Firefox 3.5.3 (or Chrome 3.0.195.25) with qooxdoo >

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-14 Thread Matthew Gregory
panyasan wrote: > Cool.Of course, makes much more sense to include this behavior in the widget > itself instead of creating another one. I wonder - if the widget has > "accordeon" behavior, we don't need the icons, do we? I am thinking of the > side bar in outlook (at least the last time I used out

Re: [qooxdoo-devel] problem with SelectBox and rich ListItems

2009-10-13 Thread Matthew Gregory
I think somebody reported this as a bug last week? Fabian Jakobs wrote: > Hi Petr, > > I think this is a bug. Could you open a bug report for it? Until it is > fixed you can set the "rich" property of the "atom" sub widget manually: > > listbox.getChildControl("atom").setRich(true); > > http:/

Re: [qooxdoo-devel] CollapsablePanel

2009-10-13 Thread Matthew Gregory
skar wrote: It's cool. However, if I click on a pane in the horizontal mode, it doesn't expand that pane header. If I click on the pane's arrow, it expands. In the vertical mode, it expands a pane, if I click wherever I want to on the pane header. cheers, skar. Fixed :) I've updated the o

[qooxdoo-devel] CollapsablePanel

2009-10-13 Thread Matthew Gregory
Hi All, Just an update on this contribution. I've enhanced the widget today quite a lot and there is a new demo here: http://www.noggin182.com/qooxdoo/collapsablepanel/ It now impliments IRadioItem so you can add panels with flex:1 to a VBox or similar and a RadioGroup to get the accordian effe

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-13 Thread Matthew Gregory
This shouldn't be too hard I think. If we included IRadioItem in collapsablepanel then we could use the RadioGroup to easily ensure that only one panel is open at any one time skar wrote: > Matthew Gregory wrote: >> Hi, Sorry for the late reply but I'm back now (well at lea

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-13 Thread Matthew Gregory
Hi, Sorry for the late reply but I'm back now (well at least until Friday evening) You can remove the gap and seperator from the appearance as these are themeable properties. style : function(states) { return { gap : 0, showSeperator : false }; } I'll check out the cl

Re: [qooxdoo-devel] Floating Status Panel

2009-10-09 Thread Matthew Gregory
You can add it to your application root just fine. If you create a qx.ui.popup.Popup it adds itself (IIRC) at this level automatically. Nick Glencross wrote: > Hello, > > [I've looked on the lists and not seen anyone ask this previously] > > I've been trying to work out the best way to implemen

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
. This is also checked into svn Matt Matthew Gregory wrote: > panyasan wrote: >> Please, go ahead, > > Done! The behavious you requested for minimzing in a HBox isn't > implimented yet but if you can file an enhancement bug against myself I > will try and get round

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
panyasan wrote: > > Please, go ahead, Done! The behavious you requested for minimzing in a HBox isn't implimented yet but if you can file an enhancement bug against myself I will try and get round to it. > and thank you for your work!! No problem, we had a similar control that was tied into s

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
OK, Most of this should be handled already by the parent layout, I just need an easy way of getting the bar to fill the whole control when the container is colapsed. Will have a look when I get to that. Also, I wonder if "opened" should be renamed to "value" to keep it inline with the rest of t

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
panyasan wrote: > Maybe some input from the community - I am not attached to custom icons in > the label but thought it might be useful in some cases. But certainly, > looking at the collapsable panels in other frameworks, none of them has > additional icons in the bars. OK, if I was writing the c

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
OK just had a chance to look at the code and wanted to point out some things that might improve it. (This isn't meant to be critisism, just the spirit of sharing). I noticed you used a menu bar, surely this has a lot of over head? You could simply create a container with a HBox layout and set th

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
> > Which behavior feels more natural to you to toggle the collapse of the > panel: > > a) Simple click on bar > or: > b) Simple click on icon or doubleclick on bar > Definately a! Good contrib btw! -- Com

Re: [qooxdoo-devel] New Contribution: Collapsable Panel

2009-10-09 Thread Matthew Gregory
> I of course meant "Andreas' request". Unfortunately, no women yet among the > qooxdoo dev's. And very few among the qooxdoo user base. Guess that's kind > of representative of the profession. :-( Somewhat better among my profession > (social scientist). We have a female developer on our team, sh

Re: [qooxdoo-devel] SelectBox changed behavior !

2009-10-08 Thread Matthew Gregory
I am quite sure (not 100%) that if you use the modelSelection property than it should work OK. You need to set the model property of each list item to the data value for it first. HTH, Matt Jean-Noël Rivasseau wrote: > Hi > > On 0.8.2 with the old value API, if you registered an event or data

Re: [qooxdoo-devel] Javascript Scoping and Asynchronous Requests

2009-10-08 Thread Matthew Gregory
s that 'context.func' is not a > function. > > What is the difference between this code being in the 'ask' function as > below, and in a static class? > > -deech > > On Fri, Oct 2, 2009 at 7:14 AM, Matthew Gregory > mailto:matthew%2bqoox...@nogsne

Re: [qooxdoo-devel] Exact meaning of member attributes

2009-10-07 Thread Matthew Gregory
There are sometimes thought that this could be an advatange. The proper way to address to statics is via the full namespace (I think you can do something thike this.self(arguments) for short), while "member instances" are access via this. I agree though that this is a real bad practice but I do

Re: [qooxdoo-devel] Security implications of using rich labels

2009-10-07 Thread Matthew Gregory
Just a quick question, by user genererated do you mean the user enters some text that is stored in a database and possibly shown to other users? dmbaggett wrote: > Are there potential security issues with rich labels whose content is > user-generated? E.g., what if you set the text of a rich labe

Re: [qooxdoo-devel] New instance from classname

2009-10-02 Thread Matthew Gregory
Remove the space before the #require and is should OK :) HTH, Matt Loïc Bresson -- Novlog wrote: > thron7 wrote: >> Aparently, your #require hints are not being picked up, which is >> strange. I can only think of some weird or hidden characters around >> the #require lines spoiling the parse.

Re: [qooxdoo-devel] Concept, anonymous classes?

2009-10-02 Thread Matthew Gregory
It might help if you give a use case for this. It is possible to override something that is inherited from a prototype with a local member. For instance something like this would work: var btn = new qx.ui.form.Button(); btn.execute = function() { alert("this is the overridden execute fn that

Re: [qooxdoo-devel] qx.ui.core.Command + Themes?

2009-10-02 Thread Matthew Gregory
I would say yes. I am guessing you have several commands and want each individual command to have a themed icon. In that case, you could use a theme but you would have to apply the icons manually. define an appearance like this: "command-icons" : { style : function() { re

Re: [qooxdoo-devel] Javascript Scoping and Asynchronous Requests

2009-10-02 Thread Matthew Gregory
Axel's suggestion will work, but you need to pass the parameter class A: members : response : null, ask : function () { var that = this; var callback = function(resp) { that.setAndPrintResponse(resp); };

Re: [qooxdoo-devel] Libraries downloaded four times for build

2009-10-01 Thread Matthew Gregory
Thanks, So does this mean that for each library in a build we are actually going to the svn server multiple times to check what the latest revision is? Wouldn't it be possible to do this just the once? thron7 wrote: >> I fixed it in trunk. I'll get back with a bit of explanation. > > Ok, so thi

Re: [qooxdoo-devel] About objects registration in the ObjectRegistry

2009-09-29 Thread Matthew Gregory
Not sure if I understood you correctly, but if I did you should know that cannot rely on hash codes to uniquely identify objects in between sessions. The hash code is basically a counter, so if you create (e.g.) objectA and read it's has code, then re-run your application creating other objects

Re: [qooxdoo-devel] About objects registration in the ObjectRegistry

2009-09-29 Thread Matthew Gregory
Just to rule it out, are you calling this.base(arguments) in the constructor for each of your classes? Loïc Bresson -- Novlog wrote: > Hi. > > I'm trying to understand how the ObjectRegistry works. > I was thinking that every instantiated object was registered into the > ObjectRegistry when it

Re: [qooxdoo-devel] skip index.html from being built while running "./generate.py build"

2009-09-29 Thread Matthew Gregory
By default when you override a job it merges your definition with the orriginal definition: so the orriginal "files" : ["index.html"] merged with your "files" : [] is still "files" : ["index.html"] Using the equals character you are telling the generator to replace the existing job rather than

Re: [qooxdoo-devel] skip index.html from being built while running "./generate.py build"

2009-09-28 Thread Matthew Gregory
Hi skar, You can override the build-files job not to copy anything (it only copies the index.html by default) Add this to your config.json: "jobs" : { "=build-files" : { } } That should work, Matt skar wrote: > Hi, > > Since I'm using a variation of the index.html wit

Re: [qooxdoo-devel] API docu for contribs

2009-09-25 Thread Matthew Gregory
Sorry you are right, this didn't work. It has worked in the past. I ran the job yesterday and opened up the api viewer and saw the tileview documentation there. I didn't realise that the api job failed and I was actually looking at a very old version of the api. Sorry for the confusion but than

Re: [qooxdoo-devel] API docu for contribs

2009-09-24 Thread Matthew Gregory
You're welcome, I wouldn't say it's a stupid question. Our config.json file was very old and we were creating a new job to include the library, and then a new source job that extended the orriginal job and included the custom library one. We then did the same for build and api. It was only yest

Re: [qooxdoo-devel] API docu for contribs

2009-09-24 Thread Matthew Gregory
If you simply override the "libraries" job to include the relevant library it will do all this for you. For example in my config.json for my application I have this: "jobs" : { "libraries" : { "library" : [ { "manifest" : "contrib://TileView/trunk

Re: [qooxdoo-devel] Libraries downloaded four times for build

2009-09-24 Thread Matthew Gregory
x27;], u'format': True}, u'uris': {u'script': u'script'}} - expanding: u'${QXTHEME}' ==> u'custom.theme.Theme' - expanding: u'${APPLICATION_MAIN_CLASS}' ==> u'custom.Application' - expanding: [u'${Q

[qooxdoo-devel] Libraries downloaded four times for build

2009-09-23 Thread Matthew Gregory
Hi All, I think this is a bug but I wanted to see if anybodyu else has the same problem. I have this in my config.json "jobs" : { // Include the tileview library "libraries" : { "library" : [ { "manifest" : "contrib://TileView/trunk/Manifest.

Re: [qooxdoo-devel] Creating Custom Events

2009-09-23 Thread Matthew Gregory
This is quite simple: qc.Class.define("MyCustomObject", { events: { "myEvent" : "qx.event.type.Data" }, members : { foo : function() { this.fireDataEvent("myEvent", [any data here]); } } }); Should be straight forward to understand, if not then don't

Re: [qooxdoo-devel] API docu for contribs

2009-09-23 Thread Matthew Gregory
If you include the libraries in your own "api" job in config.json then your local API should have the api of wx, your own and all the libraries you use HTH, Matt Fritz Zaucker wrote: > Hi, > > I am wondering how I can access the API documentation of the modules in > qooxdoo-contrib, either on

Re: [qooxdoo-devel] Default button in forms (trigger "execute" when user presses Return anywhere)

2009-09-22 Thread Matthew Gregory
You could create a new qx.event.Command and pass "ENTER" to the constructor. This command will then be fired every time the user hits enter. HTH, Matt Konrad Anton wrote: > Hi all, > > I'm trying to build a CRUD application with qooxdoo 0.8.3. So far I've > built a form (using a couple of qx.u

Re: [qooxdoo-devel] Mailing List Problems

2009-09-22 Thread Matthew Gregory
I am using the newsgroup and it seems fine for me. Bit of delay with a few emails but haven't noticed any dropped thron7 wrote: > All, > > some of us are experiences troubles with mailing list postings not being > delivered. Dave Baggett reported just now that he received a mail that > doesn't

Re: [qooxdoo-devel] Call constructor of superclass of superclass

2009-09-11 Thread Matthew Gregory
you might be able to do something like: arguments.callee.base.base.call(this) I really wouldn't recomend it though. It should "work" but it is bad practice. Does the event handler refer to a public/protected function that you could override instead? You should be able to remove the event thoug

Re: [qooxdoo-devel] qooxdoo 0.8.3 released

2009-09-11 Thread Matthew Gregory
Wahey! Good Work! Andreas Ecker wrote: > Hi everyone, > > this is to let know that qooxdoo 0.8.3 is being released today as > planned. > > The SDK is already available for download at Sourceforge, the online > demos are up-to-date and links and info on the homepage have been > adjusted for the

Re: [qooxdoo-devel] label.setAlignX("center") works while the same for atom doesn't

2009-09-10 Thread Matthew Gregory
I am guessing you are in a VBox layout or similar? Either 1.) atom.setAllowGrowX(false); atom.setAlignX("center"); OR 2.) atom.setCenter(true); With the first one the atom will only be the size it needs to be and centered. With the second the atom will take up the full width, but the text

Re: [qooxdoo-devel] Using a List with something that a ListItem

2009-09-10 Thread Matthew Gregory
IF you have lots of different needs, you might be able to create a ListItem class that acts as a container as well, perhaps create a widget that derives from qx.ui.container.Composite, impliments qx.ui.form.IModel and includes qx.ui.form.MModelProperty? That should give you something that is hi

  1   2   3   4   >