Split view for two source files aside

General questions regarding the usage of CodeLite
mareb
CodeLite Enthusiast
Posts: 13
Joined: Fri Jun 14, 2013 11:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Split view for two source files aside

Post by mareb » Fri Jun 14, 2013 11:10 pm

Hello,
I just start to evaluate codelite IDE. For me a very important feature is, to split the source window into two parts. I love to edit the header on the left and the source on the right side. Also I often use a splitted view and edit to one file (look to the first 100 lines left and edit down the same file).

Is this possible?

Thank you

Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by Gibbon1 » Sat Jun 15, 2013 3:29 am

I don't think codelite supports vertical tiling,

Programmers Notepad (http://www.pnotepad.org/) does have that feature. I think they are based on the same editing component, so maybe that could be added to codelite.

Verax
CodeLite Enthusiast
Posts: 46
Joined: Sat Jan 19, 2013 10:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by Verax » Sat Jun 15, 2013 5:27 am

Is this what you're looking for:
SplitPane.png
Just choose and open tab and drag it into position.
You do not have the required permissions to view the files attached to this post.
Last edited by Verax on Sat Jun 15, 2013 9:08 am, edited 2 times in total.

mareb
CodeLite Enthusiast
Posts: 13
Joined: Fri Jun 14, 2013 11:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by mareb » Sat Jun 15, 2013 8:23 am

Verax wrote:Is this what you're looking for:

Just choose and open tab and drag it into position.
Hi,
that sounds great, but it doesn't work. Is there are a trick for "choosing" and "open tab"?

I use codelite 5.1 on kubuntu 12.04

Verax
CodeLite Enthusiast
Posts: 46
Joined: Sat Jan 19, 2013 10:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by Verax » Sat Jun 15, 2013 9:04 am

Just choose and open tab and drag it into position.
That was supposed to say "choose any open tab". Sorry for the typo.

One you've opened a file, you'll see that tab for it appear across the top of the editor. Just left-click and hold on one of the tabs, and then move (drag) it to the left or right side of the editor. You can also drag it to the top or bottom to split the editor horizontally instead of vertically.

I haven't tested it in Linux, but it seems to work fine in Windows.

Update:
Just tried it in Linux Mint. You're right it doesn't work. Maybe one of the developers can comment.

User avatar
eranif
CodeLite Plugin
Posts: 6089
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by eranif » Sat Jun 15, 2013 10:10 am

Verax wrote:I haven't tested it in Linux, but it seems to work fine in Windows.
This functionality is disabled on Linux.
You need to recompile codelite from sources to enable this behavior on Linux.

To build codelite:
Prerequisites: http://codelite.org/Developers/Linux#toc1
Building: http://codelite.org/Developers/Linux#toc4

To enable this feature, (wxAuiNotebook):
http://codelite.org/Developers/Linux#toc6

Eran
Make sure you have read the HOW TO POST thread

mareb
CodeLite Enthusiast
Posts: 13
Joined: Fri Jun 14, 2013 11:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by mareb » Sat Jun 15, 2013 4:09 pm

eranif wrote:
Verax wrote:I haven't tested it in Linux, but it seems to work fine in Windows.
This functionality is disabled on Linux.
You need to recompile codelite from sources to enable this behavior on Linux.

To build codelite:
Prerequisites: http://codelite.org/Developers/Linux#toc1
Building: http://codelite.org/Developers/Linux#toc4

To enable this feature, (wxAuiNotebook):
http://codelite.org/Developers/Linux#toc6

Eran
Thank you very much! I try to compile codelite with this feature.

mareb
CodeLite Enthusiast
Posts: 13
Joined: Fri Jun 14, 2013 11:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by mareb » Sun Jun 16, 2013 12:30 pm

Hm,
codelite need wxWidgets 2.9.4 but on my system (kubuntu 12.04) is 2.8.12.1-6ubuntu2 installed and needed by some software.

Code: Select all

:~/develop/CodeLite/codelitegit/build-release$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DGTK_USE_AUIBOOK=1 WITH_PCH=0 -DWITH_MYSQL=1 ..
-- OS name Linux
CMake Error at CMakeLists.txt:68 (message):
  

  I'm afraid your wxWidgets version is too old.

  Building CodeLite requires at least wxWidgets-2.9.4


-- Configuring incomplete, errors occurred!

User avatar
eranif
CodeLite Plugin
Posts: 6089
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by eranif » Sun Jun 16, 2013 4:58 pm

Please read the instructions on the wiki more carefully:

http://codelite.org/Developers/Linux#toc1

Specifically this paragraph:
You should have wxWidgets 294 or later built on your machine. If you don't know how to build (or you just lazy ...) you can download
and install a wxwidgets package from codelite's repository
And here is the link to the wx repo we maintain:
http://www.codelite.org/LiteEditor/WxWidgets29Binaries
Eran
Make sure you have read the HOW TO POST thread

mareb
CodeLite Enthusiast
Posts: 13
Joined: Fri Jun 14, 2013 11:04 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Split view for two source files aside

Post by mareb » Fri Jun 21, 2013 12:14 pm

Hey eranif!

Thank you very much! You was right, I did'nt read carefully. With the codelite binary repo for wx it does compile.
Now I going to learn codelite...

Post Reply