Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on July 07, 2009, 02:36:52 pm

Title: wxAuiNotebook introduction in TRUNK
Post by: MortenMacFly 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.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: dmoore on July 07, 2009, 03:28:04 pm
hoorah! (compiling now)
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: 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)
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 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
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: dmoore 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

Title: Re: wxAuiNotebook introduction in TRUNK
Post by: killerbot 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

Title: Re: wxAuiNotebook introduction in TRUNK
Post by: killerbot on July 07, 2009, 05:20:06 pm
deleting that Makefile and doing svn update again, makes things go forward ...
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Jenna 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.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 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
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: dmoore on July 07, 2009, 05:41:35 pm
built successfully on a fresh CB checkout (win32, gcc 3.4.5, wx2.8.10).
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: killerbot on July 07, 2009, 06:04:22 pm
in the end : both machines build OK.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: dmoore 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
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: XayC 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
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: MortenMacFly 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.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix 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
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 11, 2009, 03:23:50 am
Hi, all.
I found that the context menu item like

clear content
copy content to clipboard
....

was lot in the new AUI version. see  the screen shot

(http://img200.imageshack.us/img200/9763/logsh.png)
By ollydbg (http://profile.imageshack.us/user/ollydbg) at 2009-07-10
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: killerbot on July 11, 2009, 09:58:53 am
could you file this one in our bug tracker. Serious issue I would say.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Jenna on July 11, 2009, 10:11:11 am
Hi, all.
I found that the context menu item like

clear content
copy content to clipboard
....

was lot in the new AUI version. see  the screen shot

This is not correct (at least not at my windows build).

They are gone from the tabs context-menu (they never belonged there in my opinion, but that's another thing), but they are still available in the client area of the notebook-page.

Now the context-menus behave more or less the same way on linux and windows.

EDIT:

but I see now the Code::Blocks and Code::Blocks debug all TextCtrlLogger pages only have the standard windows context-menu for text areas. I don't know if this is new with wxAui or if it worked different before.

EDIT2:

just tested with 8.02-release: was the same on windows (only wxTextCtrl-standard context menus).
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 11, 2009, 04:22:20 pm
I have fired a bug report in BerliOS.

By the way, it works ok in the last official nightly build, see the screen shot:

(http://img22.imageshack.us/img22/2642/logs2.png)
By ollydbg (http://profile.imageshack.us/user/ollydbg) at 2009-07-11
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Jenna on July 12, 2009, 05:47:37 pm
Should be fxed in trunk and cc-branch.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Pecan on July 13, 2009, 12:49:57 am
I cannot seem to solve this ugly text formatting problem since the merge of wxAUINotebook.

(http://img401.imageshack.us/img401/3108/20090712184309.png)

Does anyone else have this problem?

I restored wxScintilla to the version before the merge. So it appears to be a AUI effect.

Any suggestions on where to look?

Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 13, 2009, 04:21:23 am
what is the ugly text formatting problem? I can't see any ugly format from your image..

@Jens
Thanks for the fix!!! works fine now!
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Pecan on July 13, 2009, 05:01:16 am
what is the ugly text formatting problem? I can't see any ugly format from your image..

Note that only the text has a background color.

The underlying page is white.

The background of the whole page should be the same color as the text background. As it was before the addition of wxAuiNotebook.

Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 on July 13, 2009, 05:34:44 am
what is the ugly text formatting problem? I can't see any ugly format from your image..

Note that only the text has a background color.

The underlying page is white.

The background of the whole page should be the same color as the text background. As it was before the addition of wxAuiNotebook.



I can confirm difference between SVN 5678 and SVN 5689.

To duplicate:

Settings -> Editor
Syntax Highlighting
Change "background" color for "Default"

Note: The effect shows in example window below settings.

Tim S

[attachment deleted by admin]
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Jenna on July 13, 2009, 12:57:32 pm
The background-colouring issue should be fixed in trunk and cc-branch.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Pecan on July 13, 2009, 02:47:58 pm
The background-colouring issue should be fixed in trunk and cc-branch.

Thank you!
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: TDragon on July 13, 2009, 03:37:57 pm
I would kill for a good stack-based ("most recent first") tab switcher. In other words, every time a tab is activated it moves to the top of the stack; Ctrl+Tab(x1) selects the previously active tab, Ctrl+Tab(x2) selects the one active before that, and so on. Just like Windows XP's Alt+Tab switcher.

Hopefully someone who is already familiar with that part of the sources can do this, because it would take me a while to come up with a good patch (and even then it probably wouldn't work cross-platform).
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 13, 2009, 04:05:56 pm
I would kill for a good stack-based ("most recent first") tab switcher. In other words, every time a tab is activated it moves to the top of the stack; Ctrl+Tab(x1) selects the previously active tab, Ctrl+Tab(x2) selects the one active before that, and so on. Just like Windows XP's Alt+Tab switcher.

Hopefully someone who is already familiar with that part of the sources can do this, because it would take me a while to come up with a good patch (and even then it probably wouldn't work cross-platform).

Is "browsetracker plug-in" already do the similar thing? Just use "alt+left arrow" or "alt+ right arrow" to switch between different tabs. :D
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: TDragon on July 13, 2009, 04:43:51 pm
You might see it as similar, but it's not at all the same thing. I want to be able to tab among open files in most-recently-visible order; the BrowseTracker plugin, as I understand it, keeps a full history, so if I switch back and forth between 2 tabs several times, I'll then have to hit the shortcut keys many more times in order to get to a tab I haven't activated in a while.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: oBFusCATed on July 13, 2009, 07:36:20 pm
TDragon: This is a limitation in wxAUI, so it can't be done without brutal-nasty HACKs :(
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Pecan on July 13, 2009, 10:57:32 pm
You might see it as similar, but it's not at all the same thing. I want to be able to tab among open files in most-recently-visible order; the BrowseTracker plugin, as I understand it, keeps a full history, so if I switch back and forth between 2 tabs several times, I'll then have to hit the shortcut keys many more times in order to get to a tab I haven't activated in a while.

BrowseTracker does, I believe, exactly as you ask. It only keeps track of "activated" editors and keeps the previously activated as the next to be activated on the next use of the Alt-LeftArrow key.

It ignores any editors that have never been activated.

It activates editors in an order that reflects the order in which they have recently been activated.

So if you want the previous to previous editor activated, just hit the Alt-LeftArrow two times.

Currently it is being fixed, since wxAuiNotebook has a different interface to the NavigationKey.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: rhf on July 14, 2009, 12:06:17 am
Currently it is being fixed, since wxAuiNotebook has a different interface to the NavigationKey.
Thanks very much for your fix!  I didn't realize how much I used BrowseTracker until it was broken.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: TDragon on July 14, 2009, 01:34:04 am
BrowseTracker does, I believe, exactly as you ask. It only keeps track of "activated" editors and keeps the previously activated as the next to be activated on the next use of the Alt-LeftArrow key.

It ignores any editors that have never been activated.

It activates editors in an order that reflects the order in which they have recently been activated.

So if you want the previous to previous editor activated, just hit the Alt-LeftArrow two times.

So if start out on one tab, hit Alt+Left, then let go, then hit Alt+Left again, I'll be on that same tab?
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Pecan on July 14, 2009, 01:22:23 pm
BrowseTracker does, I believe, exactly as you ask. It only keeps track of "activated" editors and keeps the previously activated as the next to be activated on the next use of the Alt-LeftArrow key.

It ignores any editors that have never been activated.

It activates editors in an order that reflects the order in which they have recently been activated.

So if you want the previous to previous editor activated, just hit the Alt-LeftArrow two times.

So if start out on one tab, hit Alt+Left, then let go, then hit Alt+Left again, I'll be on that same tab?

Correct.

Lets say I activated a.cpp, then b.cpp which is now the active editor.
If I hit Alt-LeftArrow, I'll be at a.cpp. If I now hit Alt-LeftArrow again, I'll be back at b.cpp.

The current activate editor is always re-inserted as the previous editor whenever the Alt-LeftArrow is used.



Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 14, 2009, 01:34:46 pm

Currently it is being fixed, since wxAuiNotebook has a different interface to the NavigationKey.


Thanks for the fix!!! I love this plug-in. :D
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix on July 14, 2009, 01:38:38 pm
The background-colouring issue should be fixed in trunk and cc-branch.
Thank you.

I noticed a problem with the BrowseTracker plugin too. (ALT+left and ALT+right don't work).

Another thing: when I right-click on a function name I can see 'Find declaration' and 'Find implementation', but not 'Find occurencies'
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: ollydbg on July 14, 2009, 01:45:47 pm

I noticed a problem with the BrowseTracker plugin too. (ALT+left and ALT+right don't work).

Another thing: when I right-click on a function name I can see 'Find declaration' and 'Find implementation', but not 'Find occurencies'

It works fine in the current SVN version.
Both BrowseTracker plugin and "Find occurrences" work fine.

Which version Code::Blocks do you use?
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: dje on July 14, 2009, 02:38:55 pm
Another thing: when I right-click on a function name I can see 'Find declaration' and 'Find implementation', but not 'Find occurencies'
"Find occurrences" is given by ThreadSearch plugin. Is it activated?

Dje
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix on July 15, 2009, 05:12:16 pm
I've been trying to recompile all the plugins from sources (loading the ContribPlugins.workspace), but I have this error

Code
c:/programmi/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -ltxml

Code
||=== Code Snippets, Plugin - Win32 ===|
ld.exe||cannot find -ltxml|
||=== Build finished: 1 errors, 0 warnings ===|

PS: I have the GCC 4.4.0-tdm-1 for MinGW
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 on July 15, 2009, 08:23:17 pm
I've been trying to recompile all the plugins from sources (loading the ContribPlugins.workspace), but I have this error

Code
c:/programmi/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -ltxml

Code
||=== Code Snippets, Plugin - Win32 ===|
ld.exe||cannot find -ltxml|
||=== Build finished: 1 errors, 0 warnings ===|

PS: I have the GCC 4.4.0-tdm-1 for MinGW

Did you first compile the Code::Blocks main project?

Tim S
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix on July 16, 2009, 08:11:46 am
Did you first compile the Code::Blocks main project?

Yes, successfully.
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 on July 16, 2009, 04:00:15 pm
Edit: Important, what Code::Blocks version or SVN is being used to compile?

Turn on full command line logging and hopefully it will show the problem.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Here's my Link Command for the plugin the "-L..\..\..\base\tinyxml" missing is a possible case of error.
Code
mingw32-g++.exe -shared   -Wl,--dll -L..\..\..\devel -L..\..\..\base\tinyxml -LC:\SourceCode\Projects\wxWidgets\wxWidgets-2.8.x-MonoLib\lib\gcc_dll -LC:\GreenApps\MinGW_Boost\lib  ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetsconfig.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\DirectoryParamsPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\InsertIndexManager.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\MainPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\SearchInPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcher.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcherRegEx.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcherText.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearch.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchConfPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchEvent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchFindData.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchFrame.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerList.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerTree.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchThread.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchTrace.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchView.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerLayout.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerMessagesNotebook.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippets.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetsevent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetstreectrl.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetswindow.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\csutils.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscroll.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscrollcfg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscrollevent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\editproperties.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\prefs.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\scbeditor.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditorbase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditorcolourset.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditormanager.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\sprintdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editsnippetframe.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\settingsdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\settingsdlgform.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetitemdata.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetproperty.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetpropertyform.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\GenericMessageBox.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetsimages.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\version.o  ..\..\..\.objs\plugins\contrib\codesnippets\plugin\generic.res  -o ..\..\..\devel\share\CodeBlocks\plugins\codesnippets.dll -Wl,--enable-auto-import  -lwxmsw28u -ltxml -lwxscintilla -lcodeblocks -lcodeblocks 

Tim S
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix on July 16, 2009, 04:12:32 pm
I used C::B SVN 5678 to compile.

Here is my link command for the plugin
Code
mingw32-g++.exe -shared   -Wl,--dll -L..\..\..\devel -L..\..\..\base\tinyxml -LD:\projects\wxMSW-2.8.9\lib\gcc_dll -LC:\Programmi\MinGW\lib  ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetsconfig.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\DirectoryParamsPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\InsertIndexManager.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\MainPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\SearchInPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcher.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcherRegEx.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\TextFileSearcherText.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearch.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchConfPanel.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchEvent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchFindData.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchFrame.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerList.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchLoggerTree.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchThread.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchTrace.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchView.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerBase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerLayout.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\Search\ThreadSearchViewManagerMessagesNotebook.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippets.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetsevent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetstreectrl.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\codesnippetswindow.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\csutils.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscroll.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscrollcfg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\dragscrollevent.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\editproperties.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\prefs.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\scbeditor.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditorbase.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditorcolourset.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\seditormanager.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editor\sprintdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\editsnippetframe.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\settingsdlg.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\settingsdlgform.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetitemdata.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetproperty.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetpropertyform.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\GenericMessageBox.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\snippetsimages.o ..\..\..\.objs\plugins\contrib\codesnippets\plugin\version.o  ..\..\..\.objs\plugins\contrib\codesnippets\plugin\generic.res  -o ..\..\..\devel\share\CodeBlocks\plugins\codesnippets.dll -Wl,--enable-auto-import  -lwxmsw28u -ltxml -lwxscintilla -lcodeblocks -lcodeblocks 
c:/programmi/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -ltxml
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
1 errors, 0 warnings
I noticed that for the wxWidget library I have the -LD option;
your Link Command has the -LC option
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 on July 16, 2009, 04:18:29 pm
I noticed that for the wxWidget library I have the -LD option;
your Link Command has the -LC option

The C is the C Drive.

Edit: Please verify the folder "..\..\..\base\tinyxml" / "src\base\tinyxml" holds the file "libtxml.a"?

@vix: This problem has little to do with the Code::Blocks development/source code; please open an thread in  "General" Forum. http://forums.codeblocks.org/index.php/board,5.0.html

I am guessing it might be a Compiler or Code::Blocks bug that only shows up with a setup like yours.

Tim S
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: vix on July 16, 2009, 04:37:29 pm
The folder "src\base\tinyxml" doesn't hold the file "libtxml.a".
There are only

vix
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: stahta01 on July 16, 2009, 04:40:35 pm
The folder "src\base\tinyxml" doesn't hold the file "libtxml.a".
There are only
  • Makefile.am
  • tinystr.cpp
  • tinywxuni.cpp
  • tinyxml.cpp
  • tinyxmlerror.cpp
  • tinyxmlparser.cpp

vix
Then you did not Compile the Main Code::Blocks project right. Compile it again.

Edit: And please start a new thread on the Topic of "How to compile Code::Blocks trunk" in the General sub-forum.

Tim S
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Orgulas on July 25, 2009, 10:37:05 pm
TDragon: This is a limitation in wxAUI, so it can't be done without brutal-nasty HACKs :(

Does this mean that switching to the left/right tab with Ctrl+Shift+Tab/Ctrl+Tab (not View->Switch Tabs!) even after reordering the tabs is limited the same way?
It seems like it always cycles in the order of opening the files, not in the order of the tabs.

I have bound those shortcuts to multimedia hotkeys on my keyboard and use them frequently, now they are pretty useless in C::B.
No more blind tab switching :(

I'm on Windows Vista 64...

//Edit:
I doesn't even save/restore the new tab order when closing/reopening the project...
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: Jenna on July 25, 2009, 11:18:47 pm
TDragon: This is a limitation in wxAUI, so it can't be done without brutal-nasty HACKs :(

Does this mean that switching to the left/right tab with Ctrl+Shift+Tab/Ctrl+Tab (not View->Switch Tabs!) even after reordering the tabs is limited the same way?
It seems like it always cycles in the order of opening the files, not in the order of the tabs.

I have bound those shortcuts to multimedia hotkeys on my keyboard and use them frequently, now they are pretty useless in C::B.
No more blind tab switching :(

I'm on Windows Vista 64...

//Edit:
I doesn't even save/restore the new tab order when closing/reopening the project...

I have a working patch that partly fixes the first issue. But we have to use an own class derived from wxAuiNotebook see this post: http://forums.codeblocks.org/index.php/topic,8595.msg73710.html#msg73710 (http://forums.codeblocks.org/index.php/topic,8595.msg73710.html#msg73710).

The second issue is not easily fixable, but I found a post in the wxWidgets forum (http://wxforum.shadonet.com/viewtopic.php?t=21868 (http://wxforum.shadonet.com/viewtopic.php?t=21868)) and will try it together with my taborder-patch.
But whether it makes it into trunk is not only my decision, because it will break C::B's api (again).
Title: Re: wxAuiNotebook introduction in TRUNK
Post by: MortenMacFly on July 29, 2009, 08:38:53 am
To all devs that compile C::B from the sources:
Please make sure that you remove the old wxAUI reference (the hack) and the wxFlatNotebook sources if not done yet. Otherwise this may lead to compile issues and may re-introduce wxFlatNotebook references which is not what we want.
A clean completely (!) new checkout will do it perfectly.