Author Topic: Split view only splits a single file?  (Read 7336 times)

meganite

  • Guest
Split view only splits a single file?
« on: March 13, 2008, 05:18:17 pm »
I tried to use the split view and it only split it for that one file, so I could only see two panes of that single file, rather than both files on the screen. I think it would be handy, and I know Notepad++ does this, if you can split different files into two separate columns. Basically what it does is moves the tab for one file into the new column, while leaving the other tabs in the previous column. If there's any way to do this using the current release, please let me know. Seeing two files at once helps my workflow immensely.

Thanks, and y'all are doing a great job!
--Megan
P.S. I am using the latest release of the windows version, not the one from SVN.
Also, I tried posting this in the feature request tracker page, but it gave me an error that only an admin was allowed to change it or something. So I'm posting it here, I hope that's okay.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Split view only splits a single file?
« Reply #1 on: March 13, 2008, 05:56:50 pm »
That's how it works right now. What you are asking for has been requested many times, and we are aware it would be lovely. Be sure if it were that easy, we would have done it by now.

I even think that request is already in BerliOS, but don't expect it anytime soon.

Another user (dmoore) was working on something that achieved that (it was actually to detach editor windows), but his patch caused many crashes. It was only tested by a few. Instead of that, we considered moving from wxFlatNoteBook to the one provided by wxAUI, but now I don't remember the reason it wasn't done.

meganite

  • Guest
Re: Split view only splits a single file?
« Reply #2 on: March 13, 2008, 08:30:28 pm »
Well that's a bummer. At least I know it's been considered =) Thanks for your reply!

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Split view only splits a single file?
« Reply #3 on: March 14, 2008, 12:31:14 am »
That's how it works right now. What you are asking for has been requested many times, and we are aware it would be lovely. Be sure if it were that easy, we would have done it by now.

I even think that request is already in BerliOS, but don't expect it anytime soon.

Another user (dmoore) was working on something that achieved that (it was actually to detach editor windows), but his patch caused many crashes. It was only tested by a few. Instead of that, we considered moving from wxFlatNoteBook to the one provided by wxAUI, but now I don't remember the reason it wasn't done.

Hm...perhaps dmoore's work was too ambitious.  Although I like the sound of what he tried.

Would the Powers That Be here humor another attempt at a patch?

At least we're on the same page that it would be nice.   :)

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: Split view only splits a single file?
« Reply #4 on: March 14, 2008, 01:24:06 am »
Instead of that, we considered moving from wxFlatNoteBook to the one provided by wxAUI, but now I don't remember the reason it wasn't done.

It is very easy to replace wxFlatNotebook with wxAUINotebook. I just did it with the 4 notebooks in a branch of wxFormBuilder. The APIs are very similar, and once you are done, the splitting "just works". It works very well.

I think the biggest problem with wxAUINotebook is that people expect it to work with an external wxAUIManager and allow tearing off the tabs and docking into other wxAUI panes. Or they expect it to save its layout with SavePerspective(), or the like. It does not do either of those things.

wxAUINotebook is a stand-alone notebook that allows splitting the notebook's window into multiple panes, and dragging tabs around that notebook, or optionally to other notebooks, and it works great. Expect only that, which IMHO would be a very nice feature for C::B, and you won't be disappointed.

Offline Belgabor

  • Multiple posting newcomer
  • *
  • Posts: 90
Re: Split view only splits a single file?
« Reply #5 on: March 14, 2008, 05:28:42 am »
If you don't mind patching wxWidgets, there is a patch to save the Notebook perspective here:
http://www.kirix.com/forums/viewtopic.php?f=15&t=542

I haven't tried it yet though.

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: Split view only splits a single file?
« Reply #6 on: March 15, 2008, 06:42:14 pm »
If you don't mind patching wxWidgets, there is a patch to save the Notebook perspective here:
http://www.kirix.com/forums/viewtopic.php?f=15&t=542

I haven't tried it yet though.

I've experimented with making a custom notebook class that inherits from wxAUINotebook and adds some features - I think that I personally would prefer this approach, as deploying a patched wxWidgets gets tricky.

But, my point was, in Code::Blocks, saving the layout of the notebook is unnecessary. It doesn't save now. Splitting the notebook would be a very nice feature add even if the layout doesn't persist. Maybe there are more notebook features that are desired, but that is no reason to not accept the features that wxAUINotebook does provide; especially when switching to wxAUINotebook is so easy, and would remove a dependency on wxFlatNotebook - so there would be that much less code that the C::B devs need to manage.

Offline tkd

  • Single posting newcomer
  • *
  • Posts: 3
Re: Split view only splits a single file?
« Reply #7 on: March 19, 2010, 04:57:30 pm »
Hi,

I would like to use a wxAuiManager object to manage several sub-frames as in eclipse, for example.

I'm completly new on codeblocks, and on wxsmith user and I didn't find how to include my manager in the main wxFrame.
Of course, I wrote it by myself in the code, but, drawing new objects in the MainFrame.swx delete each time my code. I'm a little bit frustrated  :?

How is the normal process to use an external manager with the wxsmith designer (drag and drop) ?
Does a way exist to integrate the wxauimanager widget in the wxs designer ?
To manage cool frames, there is addpane method, but, this is not automatically with the drawer. The best way I found is to use the part of extra code in object properties. Does an easier way exist doing the same ?

Thanks in advance for some help ...

tkd