Author Topic: wxAuiNotebook introduction in TRUNK  (Read 46262 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
wxAuiNotebook introduction in TRUNK
« on: July 07, 2009, 02:36:52 pm »
On behalf of the Code::Blocks team I am hereby to inform you that a major modification has been done in SVN trunk that will affect the next nightlies:
As of now we are using wxAUI for notebook and layout management completely. This will introduce some major new features like any number of editors side-by-side. We have tested it thoroughly for a long period of time but there may still be some minor issues. If so, the this thread is the right place to report.

Some information in short:
- We though a long time when to merge this into trunk. There are good reasons to do it now - don't post any comments on that topic (especially in relation to a release)... I'll probably delete them.
- This merge introduces the ability to focus on further development steps which will be introduced in new branches.
- I have patches literally ANY plugin I know to be compatible with wxAUI - if you area plugin dev and don't have yours sources under the C::B repo, ask me for a patch.

Last but not least I would like to thank dermeister for patch #002495 and Ganbito for wxSmithAui which was the initial work on that topic. That was one of the most exciting patches for me... ;-)

Ps: Signing off for holiday soon, so don't expect fast response.
« Last Edit: July 09, 2009, 09:19:01 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxAuiNotebook introduction in TRUNK
« Reply #1 on: July 07, 2009, 03:28:04 pm »
hoorah! (compiling now)

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxAuiNotebook introduction in TRUNK
« Reply #2 on: July 07, 2009, 03:38:47 pm »
EVT_AUINOTEBOOK_TAB_RIGHT_UP Undefined... (I'm on wxWidgets 2.8.4 -- I'm downloading 2.8.9 now)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: wxAuiNotebook introduction in TRUNK
« Reply #3 on: July 07, 2009, 04:51:13 pm »
EVT_AUINOTEBOOK_TAB_RIGHT_UP Undefined... (I'm on wxWidgets 2.8.4 -- I'm downloading 2.8.9 now)

I think EVT_AUINOTEBOOK_TAB_RIGHT_UP was added in 2.8.5.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxAuiNotebook introduction in TRUNK
« Reply #4 on: July 07, 2009, 05:11:07 pm »
thanks. Now I'm getting this:

Code
-------------- Build: src in Code::Blocks ---------------

mingw32-g++.exe -Ldevel -Lbase\tinyxml -LD:\damien\Source\wx-2.8.9\lib\gcc_dll  -o devel\codeblocks.exe .objs\src\app.o .objs\src\appglobals.o .objs\src\associations.o .objs\src\compilersettingsdlg.o .objs\src\crashhandler.o .objs\src\dlgabout.o .objs\src\dlgaboutplugin.o .objs\src\environmentsettingsdlg.o .objs\src\infopane.o .objs\src\main.o .objs\src\notebookstyles.o .objs\src\printdlg.o .objs\src\scriptconsole.o .objs\src\scriptingsettingsdlg.o .objs\src\splashscreen.o .objs\src\startherepage.o .objs\src\switcherdlg.o  .objs\src\resources\resources.res  -Wl,--enable-auto-import  -lcodeblocks -lwxscintilla -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw28u  -mwindows
.objs\src\main.o: In function `_ZN9MainFrame21OnEditCommentSelectedER14wxCommandEvent':
d:/damien/Source/codeblockssrc/trunk/src/src/main.cpp:3040: undefined reference to `EditorColourSet::GetCommentToken(wxString)'
.objs\src\main.o: In function `_ZN9MainFrame23OnEditUncommentSelectedER14wxCommandEvent':
d:/damien/Source/codeblockssrc/trunk/src/src/main.cpp:3090: undefined reference to `EditorColourSet::GetCommentToken(wxString)'
.objs\src\main.o: In function `_ZN9MainFrame27OnEditToggleCommentSelectedER14wxCommandEvent':
d:/damien/Source/codeblockssrc/trunk/src/src/main.cpp:3176: undefined reference to `EditorColourSet::GetCommentToken(wxString)'
.objs\src\main.o: In function `_ZN9MainFrame27OnEditStreamCommentSelectedER14wxCommandEvent':
d:/damien/Source/codeblockssrc/trunk/src/src/main.cpp:3234: undefined reference to `EditorColourSet::GetCommentToken(wxString)'
.objs\src\main.o: In function `_ZN9MainFrame24OnEditBoxCommentSelectedER14wxCommandEvent':
d:/damien/Source/codeblockssrc/trunk/src/src/main.cpp:3280: undefined reference to `EditorColourSet::GetCommentToken(wxString)'
.objs\src\startherepage.o: In function `_ZN13StartHerePageC2EP12wxEvtHandlerP8wxWindow':
d:/damien/Source/codeblockssrc/trunk/src/src/startherepage.cpp:85: undefined reference to `EditorBase::IsContextMenuOpened() const'
collect2: ld returned 1 exit status

« Last Edit: July 07, 2009, 05:23:11 pm by dmoore »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: wxAuiNotebook introduction in TRUNK
« Reply #5 on: July 07, 2009, 05:18:06 pm »
it does NOT build on linux 64 bit :
Quote
killerbot@thorgal:~/Documents/CodeBlocksDev/trunk> make
cd . && /bin/sh /home/killerbot/Documents/CodeBlocksDev/trunk/missing --run aclocal-1.9
 cd . && /bin/sh /home/killerbot/Documents/CodeBlocksDev/trunk/missing --run automake-1.9 --foreign
configure.in:479: required file `src/plugins/contrib/wxSmithAui/Makefile.in' not found
configure.in:479: required file `src/plugins/contrib/wxSmithAui/wxsmithaui.pc.in' not found
make: *** [Makefile.in] Error 1

also I already so strange things during svn update ..

Like this : already on 2 different systems :

Quote
svn: Failed to add file 'src/plugins/contrib/devpak_plugin/bzip2/Makefile': object of the same name already exists


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: wxAuiNotebook introduction in TRUNK
« Reply #6 on: July 07, 2009, 05:20:06 pm »
deleting that Makefile and doing svn update again, makes things go forward ...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxAuiNotebook introduction in TRUNK
« Reply #7 on: July 07, 2009, 05:26:23 pm »
Builds without problems on debian 64-bit unstable/experimental (automake and via project-file) and on clean  64- and 32-bit lenny (pbuilder chroot).
All against wx2.8.10 from apt.wxwidgets.org.

I recommend at least a clean rebuild, better a clean svn source-tree.

Also no problems with svn-update.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: wxAuiNotebook introduction in TRUNK
« Reply #8 on: July 07, 2009, 05:27:29 pm »
I had trouble building Lib Finder on Windows using Project file; was the changes committed for it.
Was still looking for flatnotebook.


Edit: Deleting, most of, output and devel files and trying again.

Edit: My Workspace was the problem; Lib Finder now depends on wxSmith Contrib Items and I must have used the old Workspace sequence.

Tim S
« Last Edit: July 07, 2009, 08:16:20 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxAuiNotebook introduction in TRUNK
« Reply #9 on: July 07, 2009, 05:41:35 pm »
built successfully on a fresh CB checkout (win32, gcc 3.4.5, wx2.8.10).

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: wxAuiNotebook introduction in TRUNK
« Reply #10 on: July 07, 2009, 06:04:22 pm »
in the end : both machines build OK.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxAuiNotebook introduction in TRUNK
« Reply #11 on: July 07, 2009, 06:26:39 pm »
I've updated FileManager and PowerShell plugins to build with AUI (hopefully :))

Code
cd [codeblockssource]/src/plugins/contrib
svn checkout http://svn.berlios.de/svnroot/repos/cbilplugin/branches/FileManager
svn checkout http://svn.berlios.de/svnroot/repos/cbilplugin/branches/PowerShell

Offline XayC

  • Multiple posting newcomer
  • *
  • Posts: 94
Re: wxAuiNotebook introduction in TRUNK
« Reply #12 on: July 07, 2009, 07:26:12 pm »
I've found these two problems with this revision (5687):

- CB crashes when opening a project file that uses a user-defined compiler (and the user-defined compiler is not configured - i.e. reset to default settings).
- The background color of the text control (scintilla) is applied only where text is drawn, where no text is drawn the background is white.

I don't think these two things are coming from the AUI merge, but i wanted to point them out anyway.
If not already there I will soon fill two bug-reports.

XayC

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: wxAuiNotebook introduction in TRUNK
« Reply #13 on: July 08, 2009, 08:30:17 am »
I don't think these two things are coming from the AUI merge, but i wanted to point them out anyway.
Make sure you do a complete clean compile. I mean: Remove *all* sources, checkout from scratch and build again. for installation remove C::B *completely* and install from scratch. Anything else will likely cause errors.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline vix

  • Multiple posting newcomer
  • *
  • Posts: 60
Re: wxAuiNotebook introduction in TRUNK
« Reply #14 on: July 09, 2009, 12:00:49 pm »
Make sure you do a complete clean compile. I mean: Remove *all* sources, checkout from scratch and build again. for installation remove C::B *completely* and install from scratch. Anything else will likely cause errors.

I did it (remove old C::B, and the codeblocks folder under user\$APPDATA$), but I have the background color problem too.
Is there a hidden flag to set, or something ike that?

PS: I noticed the same thing when I compiled the wxAUI branch in the past weeks, but I thought it was my mistake.
No problem compiling C::B TRUNK until you merged the wxAUI branch