News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxAuiNotebook introduction in TRUNK

Started by MortenMacFly, July 07, 2009, 02:36:52 PM

Previous topic - Next topic

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dmoore

EVT_AUINOTEBOOK_TAB_RIGHT_UP Undefined... (I'm on wxWidgets 2.8.4 -- I'm downloading 2.8.9 now)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

stahta01

Quote from: dmoore 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)

I think EVT_AUINOTEBOOK_TAB_RIGHT_UP was added in 2.8.5.

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

dmoore

#4
thanks. Now I'm getting this:


-------------- 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


Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

killerbot

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 :

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


killerbot

deleting that Makefile and doing svn update again, makes things go forward ...

Jenna

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.

stahta01

#8
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

dmoore

built successfully on a fresh CB checkout (win32, gcc 3.4.5, wx2.8.10).
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

killerbot

in the end : both machines build OK.

dmoore

I've updated FileManager and PowerShell plugins to build with AUI (hopefully :))


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

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

XayC

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

MortenMacFly

Quote from: XayC on July 07, 2009, 07:26:12 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

vix

Quote from: MortenMacFly on July 08, 2009, 08:30:17 AM
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