[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Conventions and good examples
From:       Aekold Helbrass <helbrass () gmail ! com>
Date:       2010-08-27 8:11:53
Message-ID: AANLkTi=02mU+pwa6+EERJ_UiMr_4b4Kzwu0fsHTstjNb () mail ! gmail ! com
[Download RAW message or body]

Aaron, thanx alot! That's exactly what i needed.

On Tue, Aug 24, 2010 at 8:31 PM, Aaron J. Seigo <aseigo@kde.org> wrote:
> On Friday, August 20, 2010, Aekold Helbrass wrote:
>> 1. I noticed that some apps are using CamelCase in filenames (like
>> amarok) and some are not (like kaffeine). Looks like lowercase names
>> are used in apps ported from KDE3, while KDE4 sources and native KDE4
>> apps are using CamelCase, am I right?
>
> no, it's up to the individual application.
>
>> 2. I am not used with that includes system of C++, still organizing
>> project like in Java. And when I have includes like
>> "../ui/SomeClass.h" is it ok or I should better read some cmake
>> documentation and follow some rules of project organization to avoid
>> situations like that?
>
> assuming that the ui/ direcdtory is in the top level of your sources, you
> should be able to just do:
>
> #include "ui/SomeClass.h"
>
> if that isn't working, then you can use the cmake include_directories(<LIST>)
> directive. so if ui/ is under src/ you could do:
>
> include_directories(${CMAKE_SOURCE_DIR}/src)
>
> and then in your file in src/foo/, #include "ui/SomeClass.h" will work.
>
> and if you haven't already been pointed to it, this is a useful document:
>
>        http://techbase.kde.org/Policies/Kdelibs_Coding_Style
>
> it's only mandated for kdelibs, but many other KDE projects also use it. while
> each project is free to choose the style that best suits them, it is nice to
> be able to move from project to project and find some consistency :)
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic