Author Topic: wxAUI  (Read 29879 times)

sethjackson

  • Guest
wxAUI
« on: January 10, 2006, 08:25:19 pm »
Hey guys new release of wxAUI.

http://www.kirix.com/en/community/opensource/wxaui/about_wxaui.html

Just a heads up. :)

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: wxAUI
« Reply #1 on: January 10, 2006, 08:31:41 pm »
Quote
wxAUI version 0.9.1 adds:

    * Support for MDI frames
    * Gradient captions option
    * Active/Inactive panes option
    * Fix for screen artifacts/paint problems
    * Fix for hiding/showing floated window problem
    * Fix for floating pane sizing problem
    * Fix for drop position problem when dragging around center pane margins
    * Fix for 64-bit compilation
    * LF-only text file formatting for source code
Since they are in 0.9.x there are more to expect when they release 1.0?

Edit: OK I continued reading the roadmap, spoke too early  :oops:
« Last Edit: January 10, 2006, 08:33:56 pm by yop »
Life would be so much easier if we could just look at the source code.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxAUI
« Reply #2 on: January 10, 2006, 08:41:44 pm »
0.91 doesn't behave nice in linux. I 'm still looking into it...
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: wxAUI
« Reply #3 on: January 10, 2006, 08:45:25 pm »
0.91 doesn't behave nice in linux. I 'm still looking into it...

 :P That isn't too good.   :?

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5514
Re: wxAUI
« Reply #5 on: January 10, 2006, 09:58:22 pm »
that was fast Sam !!! :shock:

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI
« Reply #6 on: January 10, 2006, 10:03:43 pm »
Small goof. I didn't try to change the colors.

This has to be added to the event table for EnvironmentSettingsDlg (in addition to that patch).

Code
    EVT_BUTTON(XRCID("btnAuiActiveCaptionColor"), EnvironmentSettingsDlg::OnChooseColor)
    EVT_BUTTON(XRCID("btnAuiActiveCaptionGradientColor"), EnvironmentSettingsDlg::OnChooseColor)
    EVT_BUTTON(XRCID("btnAuiActiveCaptionTextColor"), EnvironmentSettingsDlg::OnChooseColor)
    EVT_BUTTON(XRCID("btnAuiInactiveCaptionColor"), EnvironmentSettingsDlg::OnChooseColor)
    EVT_BUTTON(XRCID("btnAuiInaCaptionGradientColor"), EnvironmentSettingsDlg::OnChooseColor)
    EVT_BUTTON(XRCID("btnAuiInaCaptionTextColor"), EnvironmentSettingsDlg::OnChooseColor)
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
« Reply #7 on: January 10, 2006, 10:06:28 pm »
Screenshot

[attachment deleted by admin]
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
« Reply #8 on: January 10, 2006, 10:09:35 pm »
So it was you Sam, the "nobody" who posted this patch at SF.
Afraid to say it but it doesn't apply to the current SVN HEAD...

Quote from: ubuntu

patching file src/environmentsettingsdlg.cpp
patching file src/main.cpp
Hunk #1 succeeded at 1228 (offset -1 lines).
patching file src/resources/env_settings.xrc
patching file src/wxAUI/manager.cpp
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/wxAUI/manager.cpp.rej
patching file src/wxAUI/manager.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/wxAUI/manager.h.rej

Be patient!
This bug will be fixed soon...

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI
« Reply #9 on: January 10, 2006, 10:12:01 pm »
So it was you Sam, the "nobody" who posted this patch at SF.
Afraid to say it but it doesn't apply to the current SVN HEAD...

It's a patch on 1701. Do you want me to make one on 1703?
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
« Reply #10 on: January 10, 2006, 10:17:52 pm »
Here you go.

If I included main.h in the previous patch, I shouldn't have.

This includes the fix from a couple posts up too.

I can't post this on SF because I'm not logged in and can't modify a "nobody" post :(

[attachment deleted by admin]
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
« Reply #11 on: January 10, 2006, 10:38:30 pm »
LOL, this is even worse. Never mind, I 'll fix your original patch.

Quote from: ubuntu

(Stripping trailing CRs from patch.)
patching file src/environmentsettingsdlg.cpp
(Stripping trailing CRs from patch.)
patching file src/main.cpp
(Stripping trailing CRs from patch.)
patching file src/resources/env_settings.xrc
(Stripping trailing CRs from patch.)
patching file src/wxAUI/manager.cpp
Hunk #1 FAILED at 18.
Hunk #2 FAILED at 40.
Hunk #3 FAILED at 145.
Hunk #4 FAILED at 156.
Hunk #5 FAILED at 168.
Hunk #6 FAILED at 184.
Hunk #7 FAILED at 193.
Hunk #8 FAILED at 213.
Hunk #9 FAILED at 260.
Hunk #10 FAILED at 268.
Hunk #11 FAILED at 293.
Hunk #12 FAILED at 351.
Hunk #13 FAILED at 381.
Hunk #14 FAILED at 395.
Hunk #15 FAILED at 415.
Hunk #16 FAILED at 492.
Hunk #17 FAILED at 602.
Hunk #18 FAILED at 647.
Hunk #19 FAILED at 742.
Hunk #20 FAILED at 922.
Hunk #21 FAILED at 957.
Hunk #22 FAILED at 1024.
Hunk #23 FAILED at 1038.
Hunk #24 FAILED at 1072.
Hunk #25 FAILED at 1100.
Hunk #26 FAILED at 1625.
Hunk #27 FAILED at 1651.
Hunk #28 FAILED at 1676.
Hunk #29 FAILED at 2303.
Hunk #30 FAILED at 2359.
Hunk #31 FAILED at 2449.
Hunk #32 FAILED at 2503.
Hunk #33 FAILED at 2591.
Hunk #34 FAILED at 2751.
Hunk #35 FAILED at 2800.
Hunk #36 FAILED at 2850.
Hunk #37 FAILED at 2868.
Hunk #38 FAILED at 2990.
Hunk #39 FAILED at 3084.
Hunk #40 FAILED at 3216.
Hunk #41 FAILED at 3254.
Hunk #42 FAILED at 3281.
Hunk #43 FAILED at 3307.
Hunk #44 FAILED at 3348.
Hunk #45 FAILED at 3410.
Hunk #46 FAILED at 3483.
Hunk #47 FAILED at 3529.
Hunk #48 FAILED at 3605.
Hunk #49 FAILED at 3947.
49 out of 49 hunks FAILED -- saving rejects to file src/wxAUI/manager.cpp.rej
(Stripping trailing CRs from patch.)
patching file src/wxAUI/manager.h
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 45.
Hunk #3 FAILED at 81.
Hunk #4 FAILED at 142.
Hunk #5 FAILED at 163.
Hunk #6 FAILED at 208.
Hunk #7 FAILED at 294.
Hunk #8 FAILED at 328.
Hunk #9 FAILED at 413.
Hunk #10 FAILED at 445.
Hunk #11 FAILED at 551.
Hunk #12 FAILED at 597.
12 out of 12 hunks FAILED -- saving rejects to file src/wxAUI/manager.h.rej

« Last Edit: January 10, 2006, 10:44:10 pm by mandrav »
Be patient!
This bug will be fixed soon...

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI
« Reply #12 on: January 10, 2006, 10:40:32 pm »
Only TortoiseSVN can apply patches created by TortoiseSVN :(

Although I wrote a Perl script to apply them without TSVN.

Edit: this is it. It'd have to be modified to use with another directory structure but you get the idea.

Code
# fix line endings
perl -pi -e 's/\r\n/\n/;' *.c *.h *.patch testing/*.c testing/*.h testing/Makefile

# prepare the checkout
perl -pi -e 's/\$Id[^\$]+\$/\$Id\$/;' *.c *.h testing/*.c testing/*.h testing/Makefile

# apply the patch
patch -p0 -N < library.patch
« Last Edit: January 10, 2006, 10:42:53 pm 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 Der Meister

  • Regular
  • ***
  • Posts: 307
Re: wxAUI
« Reply #13 on: January 10, 2006, 10:47:51 pm »
Only TortoiseSVN can apply patches created by TortoiseSVN :(
I don't use TortoiseSVN but the plain svn can create patches (i.e. diff-files) that can be applied using the linux/unix tool 'patch'. Just run 'svn diff <the file you want to create the patch from> > yourpatchfile' (This produces a normal svn diff and saves the output in the file named 'yourpatchfile' - works on linux but should work also on Windows). To apply the patch just run 'patch -p yourpatchfile' (iirc).
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: wxAUI
« Reply #14 on: January 10, 2006, 10:55:23 pm »
0.9.1 doesn't detect a pane losing focus. The only way a pane become inactive is if another pane in the same FrameManager becomes active. Here's the idea of the fix:

Edit: removed until I find a better solution
« Last Edit: January 10, 2006, 11:45:01 pm 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: