Author Topic: wxAUI evaluation  (Read 15093 times)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
wxAUI evaluation
« on: December 31, 2005, 12:05:57 am »
Well folks, in order to evaluate wxAUI, I created a branch named "aui_test".
It was an easy drop-in replacement instead of wxDockit and works just fine :)
Additionally, I implemented saving of view layouts and switching between them. It was a breeze to do this with wxAUI.
I 've been using/testing it all afternoon and it works flawlessly. Not to mention we 're not using binary data to save the layouts anymore ;).

So, if anyone wants to test-drive it before merging it to HEAD, here's your chance. Just switch your working copy to /branches/aui_test instead of /trunk and build it.
Be patient!
This bug will be fixed soon...

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: wxAUI evaluation
« Reply #1 on: December 31, 2005, 12:07:07 am »
Ok, I'll do :)

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: wxAUI evaluation
« Reply #2 on: December 31, 2005, 01:13:52 am »
Ok, I built it and looks promising, but it isn't saving or loading any layout (you said you implemented that, so where did you hid it?).

The second problem is the toolbars are a bit bigger than the space assigned for them when icons are 32x32, and smaller when 16x16. In the first case it's painting a few extra pixels, in the second case it isn't painting all pixels (the ones at the bottom), and, also for 16x16, the space for the toolbar is larger than needed.

I suppose those are wxAUI problems, right?

[attachment deleted by admin]

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI evaluation
« Reply #3 on: December 31, 2005, 01:18:57 am »
I'll try this out. :) The wxAUI sample app worked great. That's cool that it was easy to integrate!
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxAUI evaluation
« Reply #4 on: December 31, 2005, 01:30:39 am »
The toolbars flicker like crazy while being dragged, and I can confirm Ceniza's spacing issue.
As a sidenote, the grey dock window titles are a bit boring (but that is certainly tunable).

Apart from these few issues, there is only one word to describe it... great :)
Very intuitive, and the blending effect when dragging is quite cool.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI evaluation
« Reply #5 on: December 31, 2005, 05:55:52 am »
I get some flicker, but I only "noticed" it once I was looking for it (after seeing your post). I guess it would bother me if I moved toolbars more, but I don't (just once to set them up). :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

takeshimiya

  • Guest
Re: wxAUI evaluation
« Reply #6 on: December 31, 2005, 05:57:09 am »
A new SVN C::B branch can be created for testing wxAUI in the meantime.
:)

As for wxAUI, it's good that we'll can (with relative easyness), solve any of it's glitches ourselves, because I can't call it a "library", being only a h/cpp (hey, even tinyxml is more bigger :P).

Going to test now.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxAUI evaluation
« Reply #7 on: December 31, 2005, 09:11:01 am »
The flickering is a C::B problem and is probably happening because of the UI update handlers.
Be patient!
This bug will be fixed soon...

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI evaluation
« Reply #8 on: December 31, 2005, 09:16:01 am »
Do you think we will end up switching to wxAUI in the trunk?

I've already fixed some bugs in my local copy and implemented active/inactive windows.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxAUI evaluation
« Reply #9 on: December 31, 2005, 09:31:40 am »
Do you think we will end up switching to wxAUI in the trunk?

Quite possibly, yes.

I've already fixed some bugs in my local copy and implemented active/inactive windows.

Do you care to explain?
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: wxAUI evaluation
« Reply #10 on: December 31, 2005, 09:34:17 am »
Just for the record, the next version (1.0) will address:
    * Add "chevron" button support for toolbars that become partially hidden off screen
    * Add hide/show control for docked panes
    * Fix minimum/maximum size issues
    * Optimize frame docking hint locations and mouse drop locations
    * Streamline the "feel" of frame and toolbar dragging
    * Fix various drawing glitches and toolbar instability

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI evaluation
« Reply #11 on: December 31, 2005, 09:48:50 am »
Do you think we will end up switching to wxAUI in the trunk?

Quite possibly, yes.

I've already fixed some bugs in my local copy and implemented active/inactive windows.

Do you care to explain?

If you click the close button with your left mouse button, then move off the button before letting the mouse button up, the close button will not be highlighted but the pane still closes. I fixed that.

I made the default caption colors for inactive panes wxSYS_COLOUR_INACTIVECAPTION and for the active pane wxSYS_COLOUR_ACTIVECAPTION. Nothing too special about that part.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI evaluation
« Reply #12 on: December 31, 2005, 09:54:02 am »
Just for the record, the next version (1.0) will address:
    * Add "chevron" button support for toolbars that become partially hidden off screen
    * Add hide/show control for docked panes
    * Fix minimum/maximum size issues
    * Optimize frame docking hint locations and mouse drop locations
    * Streamline the "feel" of frame and toolbar dragging
    * Fix various drawing glitches and toolbar instability


I really hope 1.0 comes along quickly. It's kinda hard to tell how that project is developing. The source for 0.9 is available, but the forum is empty and there is no svn access (that I saw).

I'll post over there and see about some things I have questions about. I expect C::B to keep using their code, but if for some reason we need to change it in the future it wouldn't be too hard.


I'm going to switch back to trunk for now. I really liked what I saw in wxAUI, and the "feel" was excellent (pane positioning and movable toolbars especially). I hope to see it merged soon.  8)
« Last Edit: December 31, 2005, 09:59:47 am by 280Z28 »
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxAUI evaluation
« Reply #13 on: December 31, 2005, 10:07:26 am »
Ok, I built it and looks promising, but it isn't saving or loading any layout (you said you implemented that, so where did you hid it?).

Lol, I 've hidden it in "View->Layouts" :)
(although I noticed a little glitch and I 'll fix it soon)

The second problem is the toolbars are a bit bigger than the space assigned for them when icons are 32x32, and smaller when 16x16. In the first case it's painting a few extra pixels, in the second case it isn't painting all pixels (the ones at the bottom), and, also for 16x16, the space for the toolbar is larger than needed.

I suppose those are wxAUI problems, right?

This problem already appears with wxDockit. It is probably a C::B issue, specifically because we 're loading the toolbars from XRC. Somehow it seems the bitmap size is not correct. When using the 16x16 bitmaps, if you edit the toolbars' XRCs <bitmapsize> and make it 16,14 instead of 16,16 everything is ok then. Except that some icons are clipped...
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: wxAUI evaluation
« Reply #14 on: December 31, 2005, 01:10:41 pm »
Reporting in.

Noticed all the problems with the toolbars. Can't we just not load them from XRC?

I'd suggest adding settings for: Allow Floating, Transparent Hint, Transparent Hint Fade-in, and Transparent Drag, somewhere in Settings->Environment.

I would also like to have the ability to set-up Pane Border Size, Gripper Color, etc but a dialog (GUI) for those others is rather worthless.

As I don't like having any hard-coded settings in C::B, here's when my idea comes:
What about those settings (among a lot others) which doesn't deserve a GUI, being setteable from an about:config like in Firefox?
Which of course can be implemented as a tree/listbox in a dialog that haves all the settings of the xml default.conf.
« Last Edit: December 31, 2005, 01:16:32 pm by Takeshi Miya »