[SOLVED] QuadraticLook and CommonFileDialog

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

[SOLVED] QuadraticLook and CommonFileDialog

Postby mrzli777 » Sat Jan 26, 2008 17:46

Hi.

I'm using CommonFileDialog and QuadraticLook in my application. CommonFileDialog worked fine while I was using Taharez, but with Quadratic I can't move into another folder by selecting it from the list.

The thing is that folder selection occurs on a doubleclick and this event is never executed (so I'm guessing the problem is something involving the doubleclick).

I'd appreciate it if anyone had any idea on why this is happening with Quadratic look and not Taharez (can a look disable doubleclick or something like that?).

Thanks in advance.
Last edited by mrzli777 on Sun Feb 03, 2008 18:16, edited 1 time in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: QuadraticLook and CommonFileDialog

Postby CrazyEddie » Tue Jan 29, 2008 10:07

mrzli777 wrote:(can a look disable doubleclick or something like that?).

No, that should not be possible.

Can you post, or have a look in the CEGUI.log for errors - I would guess that some required element that exists in TaharezLook is missing in QuadraticLook.

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Thu Jan 31, 2008 13:59

I changed my program so it moves into folder by a single click and this works, but the original problem (doubleclick) remains. Log is a bit lengthy so I cut the unimportant part, but it's still quite long:

--Log was here but I cut it because it was long and useless for this problem.--
Last edited by mrzli777 on Sun Feb 03, 2008 17:49, edited 2 times in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Thu Jan 31, 2008 14:25

Hi,

There's nothing useful in that log part. Though I was just thinking about it, and I believe I know what the issue is.

Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false - I know I said that you can't disable double-clicks in a skin, which goes to show I have no idea what I'm on about half the time. Sorry for getting this wrong, but it was my first day! :oops:

Anyway, if you find and remove that property setting from the skin it should work. (Just search the skin file for "WantsMultiClickEvents" and you should be able to work out what to delete or comment out).

Edit:
Another option is to re-set the property to true in the layout / code for the dialog.

CE

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Sun Feb 03, 2008 18:13

Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false


That was it. Changed from "False" to "True" in "QuadraticLook/Listbox" and it works like a charm. Thanks.

I know I said that you can't disable double-clicks in a skin, which goes to show I have no idea what I'm on about half the time. Sorry for getting this wrong, but it was my first day!


I'll forgive you this time, but don't let it happen again. :x


No, really, thanks for the info. CEGUI is a big project and I guess you don't do it all alone (sourceforge says 15 developers), so it would be really strange if you knew everything. I forget what my code does in 2 days if it's more than 500 lines. That's probably because I'm etremely skilled with design and very diligent when it comes to commenting. 8)

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon Feb 04, 2008 01:26

[quote="mrzli777]I forget what my code does in 2 days if it's more than 500 lines. That's probably because I'm etremely skilled with design and very diligent when it comes to commenting. 8)[/quote]

At work I sometimes come across code that has been written more than 10 years ago and it's quite difficult to read at times. There's no comment and the variables are meaningless: l_i, l_ii, lPrice, lTotPrice, lPriceTot.

Or sometimes two programs were merged quickly. You read the code and figure out what the variable dQty does only to come across a line such as dQte = dQty and from now on the variable dQty is used differently. Miss that single assign and you've misunderstood the second part of the program. To clarify, I'm working in a bilingual environment where qty means quantity in english and qte also means quantity but in french. Fun fun fun.

But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job.

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Mon Feb 04, 2008 17:00

But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job.


I agree. Same goes for OGRE. Wonder how long it took to complete just the design part for CEGUI? Is there some sort of design/technical document for CEGUI available online?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Feb 04, 2008 17:05

mrzli777 wrote:Is there some sort of design/technical document for CEGUI available online?

:lol: What is this "design" that you speak of? I know nothing of such things...

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Mon Feb 04, 2008 18:31

What is this "design" that you speak of? I know nothing of such things...


Well, before writing CEGUI code, someone had to think about how it will function, how the event system will be implemented, how input will be recieved, what widgets will be supported, blah blah... Right? :D

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Feb 04, 2008 21:17

Hehe :) Yeah, you're right, someone did think about those things, though nothing much was written down or formally specified.

You might consider CEGUI as my experiment as to what happens without BDUF, which is what I had kind of been a fan of previously.

mrzli777
Just popping in
Just popping in
Posts: 19
Joined: Fri Jan 04, 2008 11:22

Postby mrzli777 » Tue Feb 05, 2008 11:33

Hehe Yeah, you're right, someone did think about those things, though nothing much was written down or formally specified.

Oh. :)
You might consider CEGUI as my experiment as to what happens without BDUF, which is what I had kind of been a fan of previously.

Not a fan of BDUF any more?

I'm just the opposite. Now triing to design before coding (as much as possible), unlike before.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Feb 05, 2008 19:19

mrzli777 wrote:Not a fan of BDUF any more?

No, not really. It's not particularly flexible enough - by the time you've finished designing the thing, everyone's stopped caring ;)

Obviously some parts of systems need to be designed or modelled, though IMO you're better off just doing enough to solve the problem at hand to enable progress to continue.

As you might be able to tell, personally I've become much more interested in agile design and development processes. Things like TDD are definitely the way forward - CEGUI would have been light-years ahead of what it is now had it used such an approach.

All just my opinion of course :)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests