Page 1 of 1

Specify precompiled headers folder

Posted: Wed May 02, 2012 7:30 pm
by Alexis
Hello all,

I recently (re)discovered CodeLite and found it far better than Code::Blocks.
C::B however permits to specify what to do with the .pch file (in Project settings):
  • Generate PCH in a directory alonside ariginal header
    Generate PCH in the object output dir
    Generate PCH alongside original header (default)
Is there something similar in CodeLite? I couldn't find. I'd like to put my .pch in object dir (cleaner!)

On a side note, here is what I'd like to find in CodeLite to drop definitely C::B:
  • C::B project import
    wxSmith integration (yes, I know: wxFormBuilder. But it's an external app)
    valgrind integration
    split views
Thanks.

Alexis

Re: Specify precompiled headers folder

Posted: Thu May 03, 2012 1:38 am
by eranif
Alexis wrote:valgrind integration
I think someone is already working on this one (michalb)
Alexis wrote:split views
If you are refering to the ability to split notebooks (wxAuiNotebook) AND you are under linux,
then you will need to build codelite from sources:

Open the file cl_defs.h, at line 29, replace:

Code: Select all

#    define CL_USE_NATIVEBOOK 1
with:

Code: Select all

#    define CL_USE_NATIVEBOOK 0
Otherwise, please explain what do you mean.
Alexis wrote:Generate PCH in a directory alonside ariginal header
Generate PCH in the object output dir
Generate PCH alongside original header (default)
atm, codelite generates the PCH file alongside the original header file.
Alexis wrote:wxSmith integration
I am pretty sure that its impossible. wxSmith is a C::B plugin

Eran

Re: Specify precompiled headers folder

Posted: Fri May 04, 2012 3:58 pm
by Alexis
eranif wrote:valgrind integration
I think someone is already working on this one (michalb)
Great! :)
split views
If you are refering to the ability to split notebooks (wxAuiNotebook) AND you are under linux,
then you will need to build codelite from sources:
Otherwise, please explain what do you mean.
I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
I am under Linux, but I don't really want to tweak my CL.
IMHO, any modern IDE should feature this functionality (Eclipse, C::B, VC++ all do).
atm, codelite generates the PCH file alongside the original header file.
okay. Can the option "use separate compilation flags for the PCH file" help me, or is it aimed at something else?
wxSmith integration
I am pretty sure that its impossible. wxSmith is a C::B plugin
I am almost sure it is possible!
wxSmith is written in C++ wxWidgets. CodeLite also is.
C::B plugin and CL plugin interfaces are different, but the core code would remain the same between both IDE.
So, integrating wxSmith inside CL is possible, by adapting the plugin interface.
But I agree this would require a quite huge amount of work, and this isn't - I guess - the priority for CL.

Anyway, thanks a lot for your answers, eranif.

Cheers.

Re: Specify precompiled headers folder

Posted: Fri May 04, 2012 4:15 pm
by Jarod42
Alexis wrote: I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
That is possible,
when you have several files opened, drag the "tab file" on a side of the editor
and you will see the 2 (or more) files side by side.
I didn't see it in any menu though.

Re: Specify precompiled headers folder

Posted: Wed May 09, 2012 3:26 pm
by Alexis
Jarod42 wrote:
Alexis wrote: I was thinking about the ability to edit 2 (or more) files side-by-side. Very useful.
That is possible,
when you have several files opened, drag the "tab file" on a side of the editor
and you will see the 2 (or more) files side by side.
I didn't see it in any menu though.
No, I can't do it on Linux.
You probably are using Windows?

Re: Specify precompiled headers folder

Posted: Wed May 09, 2012 5:34 pm
by Jarod42
Yes, I am on windows.

Are you able to move Pane ?

Re: Specify precompiled headers folder

Posted: Thu May 10, 2012 7:14 pm
by eranif
To clarify: wxAuiNotebook is enabled by default on Windows / Mac, while wxGTK uses the native wxNotbook (wxAuiNotebook is the control that allows you to split the notebook to multiple notebooks)

To enable wxAuiNotebook on wxGTK, please use the instructions I provided in my first reply

Eran