Architecture Refactor Suggestion: Bigger reorganization

Jaroslaw Staniek staniek at kde.org
Mon Oct 22 20:23:46 BST 2012


On 22 October 2012 19:49, Sven Langkamp <sven.langkamp at gmail.com> wrote:

>> In the core/ directory the parts of the applications that are UI
>> independent
>> should reside. It should be basically loading, storage, saving (i.e. the
>> document), painting, an API for data manipulation and all commands.
>>
>> All views under ui/ will of course link to core/*. The filters should be
>> allowed to link to core/* for loading, storage model or saving.
>
>
> I would prefer to have it at
>
> app/
>     core/
>     uidesktop/
>     uiactive/

I wouldn't like to have it set in a stone, instead leaving that given
apps. For example we have Kexi desktop and Kexi mobile. The latter is
not for Active. Even more, nobody can say some QML UIs will be just
for Active - they can be useful for the future desktop.

BTW, even if I have a dir for desktop and active, it'll be called
active, not uidesktop and uiactive; the reason is that shell users
like me prefer to avoid common prefixes :>

> The reason behind is that it's much better to keep everything in a single
> folder. For example if I commit somthing in krita/image and krita/ui, the
> commit message shows it as krita/, with the new structure it would show
> calligra/. Considering how many problems the distributions have with a
> seperate filter folder, I think it's better to keep it together.

+1 for keeping everything what's app-specific in app's dir

-- 
regards / pozdrawiam, Jaroslaw Staniek
 Kexi & Calligra & KDE | http://calligra.org/kexi | http://kde.org
 Qt Certified Specialist | http://qt-project.org
 http://www.linkedin.com/in/jstaniek



More information about the calligra-devel mailing list