Merge lp:~schwann/gallery-app/gallery-remove-directory-includes into lp:gallery-app

Proposed by Günter Schwann
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 688
Merged at revision: 688
Proposed branch: lp:~schwann/gallery-app/gallery-remove-directory-includes
Merge into: lp:gallery-app
Diff against target: 1610 lines (+402/-227)
74 files modified
src/CMakeLists.txt (+10/-2)
src/album/CMakeLists.txt (+14/-0)
src/album/album-collection.cpp (+9/-3)
src/album/album-collection.h (+6/-4)
src/album/album-default-template.h (+2/-2)
src/album/album-page.cpp (+7/-4)
src/album/album-page.h (+8/-4)
src/album/album-template.h (+2/-2)
src/album/album.cpp (+18/-7)
src/album/album.h (+9/-5)
src/core/CMakeLists.txt (+2/-1)
src/core/container-source-collection.h (+2/-2)
src/core/container-source.h (+3/-3)
src/core/data-collection.cpp (+2/-2)
src/core/data-collection.h (+4/-3)
src/core/data-object.cpp (+2/-2)
src/core/selectable-view-collection.h (+2/-2)
src/database/CMakeLists.txt (+12/-0)
src/database/album-table.cpp (+6/-2)
src/database/album-table.h (+1/-1)
src/database/database.cpp (+1/-1)
src/database/database.h (+2/-2)
src/database/media-table.cpp (+3/-3)
src/database/media-table.h (+2/-2)
src/database/photo-edit-table.cpp (+6/-4)
src/event/CMakeLists.txt (+10/-0)
src/event/event-collection.cpp (+9/-3)
src/event/event-collection.h (+2/-2)
src/event/event.cpp (+5/-3)
src/event/event.h (+7/-4)
src/gallery-application.cpp (+28/-16)
src/gallery-application.h (+1/-1)
src/gallery-manager.cpp (+22/-11)
src/gallery-manager.h (+2/-1)
src/media/CMakeLists.txt (+14/-0)
src/media/media-collection.cpp (+13/-7)
src/media/media-collection.h (+2/-1)
src/media/media-monitor.h (+1/-1)
src/media/media-source.cpp (+17/-7)
src/media/media-source.h (+6/-3)
src/media/preview-manager.cpp (+8/-4)
src/photo/CMakeLists.txt (+12/-0)
src/photo/photo-caches.h (+2/-2)
src/photo/photo-edit-state.h (+2/-2)
src/photo/photo-metadata.cpp (+2/-2)
src/photo/photo-metadata.h (+1/-1)
src/photo/photo.cpp (+20/-10)
src/photo/photo.h (+6/-4)
src/qml/CMakeLists.txt (+15/-0)
src/qml/gallery-standard-image-provider.cpp (+7/-5)
src/qml/gallery-standard-image-provider.h (+4/-4)
src/qml/gallery-thumbnail-image-provider.cpp (+3/-1)
src/qml/qml-album-collection-model.cpp (+5/-5)
src/qml/qml-event-collection-model.cpp (+3/-3)
src/qml/qml-event-overview-model.cpp (+5/-5)
src/qml/qml-media-collection-model.cpp (+8/-8)
src/qml/qml-view-collection-model.cpp (+3/-3)
src/qml/qml-view-collection-model.h (+1/-1)
src/util/CMakeLists.txt (+1/-1)
src/util/collections.h (+1/-0)
tests/unittests/command-line-parser/CMakeLists.txt (+1/-1)
tests/unittests/command-line-parser/tst_commandlineparser.cpp (+1/-1)
tests/unittests/gallerystandardimageprovider/CMakeLists.txt (+3/-0)
tests/unittests/gallerystandardimageprovider/photometa-data.cpp (+1/-1)
tests/unittests/gallerystandardimageprovider/preview-manager.cpp (+2/-2)
tests/unittests/gallerystandardimageprovider/tst_gallerystandardimageprovidertest.cpp (+3/-3)
tests/unittests/gallerythumbnailimageprovider/CMakeLists.txt (+2/-1)
tests/unittests/gallerythumbnailimageprovider/media/media-collection.h (+0/-28)
tests/unittests/gallerythumbnailimageprovider/preview-manager.cpp (+1/-1)
tests/unittests/gallerythumbnailimageprovider/tst_gallerythumbnailimageprovider.cpp (+1/-1)
tests/unittests/imaging/CMakeLists.txt (+1/-1)
tests/unittests/imaging/tst_imaging.cpp (+1/-1)
tests/unittests/resource/CMakeLists.txt (+1/-1)
tests/unittests/resource/tst_resource.cpp (+1/-1)
To merge this branch: bzr merge lp:~schwann/gallery-app/gallery-remove-directory-includes
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Olivier Tilloy Approve
Review via email: mp+167702@code.launchpad.net

Commit message

Remove directories from includes, but set them in the include paths

Description of the change

Remove the directories in the includes.
Set the include paths in the cmake files instead. As well as the target_library dependencies.
This nicely hightlights the dependencies (lots of circular dependencies).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
686. By Günter Schwann

Work around cmake issues with circular dependencies

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

44 + ${gallery_src_SOURCE_DIR}/database
45 + ${gallery_src_SOURCE_DIR}/media
46 + ${gallery_src_SOURCE_DIR}/photo
47 + ${gallery_src_SOURCE_DIR}/qml

Shouldn’t this be:

    ${gallery_database_src_SOURCE_DIR}
    ${gallery_media_src_SOURCE_DIR}
    ${gallery_photo_src_SOURCE_DIR}
    ${gallery_qml_src_SOURCE_DIR}

review: Needs Information
Revision history for this message
Olivier Tilloy (osomon) wrote :

A suggestion: since #include statements are not prefixed with the subproject directory anymore, I would group them by subproject and separate each group with a blank line, and prefix it with a comment with the name of the subproject, e.g.:

    // core
    #include "container-source.h"
    #include "selectable-view-collection.h"

    // media
    #include "media-collection.h"

    // util
    #include "collections.h"
    #include "resource.h"

Revision history for this message
Günter Schwann (schwann) wrote :

> 44 + ${gallery_src_SOURCE_DIR}/database
> 45 + ${gallery_src_SOURCE_DIR}/media
> 46 + ${gallery_src_SOURCE_DIR}/photo
> 47 + ${gallery_src_SOURCE_DIR}/qml
>
> Shouldn’t this be:
>
> ${gallery_database_src_SOURCE_DIR}
> ${gallery_media_src_SOURCE_DIR}
> ${gallery_photo_src_SOURCE_DIR}
> ${gallery_qml_src_SOURCE_DIR}

I had this before. But I had to do this because of the cmake issues with circular dependencies

Revision history for this message
Günter Schwann (schwann) wrote :

> A suggestion: since #include statements are not prefixed with the subproject
> directory anymore, I would group them by subproject and separate each group
> with a blank line, and prefix it with a comment with the name of the
> subproject, e.g.:

Ok - I will do this

Revision history for this message
Olivier Tilloy (osomon) wrote :

> > 44 + ${gallery_src_SOURCE_DIR}/database
> > 45 + ${gallery_src_SOURCE_DIR}/media
> > 46 + ${gallery_src_SOURCE_DIR}/photo
> > 47 + ${gallery_src_SOURCE_DIR}/qml
> >
> > Shouldn’t this be:
> >
> > ${gallery_database_src_SOURCE_DIR}
> > ${gallery_media_src_SOURCE_DIR}
> > ${gallery_photo_src_SOURCE_DIR}
> > ${gallery_qml_src_SOURCE_DIR}
>
> I had this before. But I had to do this because of the cmake issues with
> circular dependencies

Ouch :(
Can you please add a comment there to explain?

687. By Günter Schwann

Comment the workaround in the cmake files

688. By Günter Schwann

Group and sort includes

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks good now.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -1,13 +1,13 @@
1project(gallery_src)1project(gallery_src)
22
3add_subdirectory(util)
4add_subdirectory(core)
3add_subdirectory(album)5add_subdirectory(album)
4add_subdirectory(core)
5add_subdirectory(database)6add_subdirectory(database)
6add_subdirectory(event)7add_subdirectory(event)
7add_subdirectory(media)8add_subdirectory(media)
8add_subdirectory(photo)9add_subdirectory(photo)
9add_subdirectory(qml)10add_subdirectory(qml)
10add_subdirectory(util)
1111
12configure_file(12configure_file(
13 config.h.in13 config.h.in
@@ -18,6 +18,14 @@
18set(GALLERY gallery-app)18set(GALLERY gallery-app)
1919
20include_directories(20include_directories(
21 ${gallery_album_src_SOURCE_DIR}
22 ${gallery_core_src_SOURCE_DIR}
23 ${gallery_database_src_SOURCE_DIR}
24 ${gallery_event_src_SOURCE_DIR}
25 ${gallery_media_src_SOURCE_DIR}
26 ${gallery_photo_src_SOURCE_DIR}
27 ${gallery_qml_src_SOURCE_DIR}
28 ${gallery_util_src_SOURCE_DIR}
21 ${CMAKE_BINARY_DIR}29 ${CMAKE_BINARY_DIR}
22 ${GSTLIB_INCLUDE_DIRS}30 ${GSTLIB_INCLUDE_DIRS}
23 )31 )
2432
=== modified file 'src/album/CMakeLists.txt'
--- src/album/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/album/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,14 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 ${gallery_core_src_SOURCE_DIR}
8 # because of circulate dependencies the sub project can't be used directly
9 # FIXME resolve the circulate dependencies
10 ${gallery_src_SOURCE_DIR}/database
11 ${gallery_src_SOURCE_DIR}/media
12 ${gallery_src_SOURCE_DIR}/photo
13 ${gallery_src_SOURCE_DIR}/qml
14 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}15 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}16 ${GSTLIB_INCLUDE_DIRS}
9 )17 )
@@ -33,5 +41,11 @@
33qt5_use_modules(${GALLERY_ALBUM_LIB} Widgets Core Qml)41qt5_use_modules(${GALLERY_ALBUM_LIB} Widgets Core Qml)
3442
35target_link_libraries( ${GALLERY_ALBUM_LIB}43target_link_libraries( ${GALLERY_ALBUM_LIB}
44 gallery-core
45 gallery-database
46 gallery-media
47 gallery-photo
48 gallery-qml
49 gallery-util
36 ${GSTLIB_LDFLAGS}50 ${GSTLIB_LDFLAGS}
37 )51 )
3852
=== modified file 'src/album/album-collection.cpp'
--- src/album/album-collection.cpp 2013-05-28 13:50:03 +0000
+++ src/album/album-collection.cpp 2013-06-06 16:04:27 +0000
@@ -18,9 +18,15 @@
18 */18 */
1919
20#include "album-collection.h"20#include "album-collection.h"
21#include "media/media-collection.h"21
22#include "database/database.h"22// database
23#include "database/album-table.h"23#include "album-table.h"
24#include "database.h"
25
26// media
27#include "media-collection.h"
28
29// src
24#include "gallery-manager.h"30#include "gallery-manager.h"
2531
26/*!32/*!
2733
=== modified file 'src/album/album-collection.h'
--- src/album/album-collection.h 2013-05-28 13:50:03 +0000
+++ src/album/album-collection.h 2013-06-06 16:04:27 +0000
@@ -20,12 +20,14 @@
20#ifndef GALLERY_ALBUM_COLLECTION_H_20#ifndef GALLERY_ALBUM_COLLECTION_H_
21#define GALLERY_ALBUM_COLLECTION_H_21#define GALLERY_ALBUM_COLLECTION_H_
2222
23#include "album.h"
24
25// core
26#include "container-source-collection.h"
27#include "data-object.h"
28
23#include <QObject>29#include <QObject>
2430
25#include "album.h"
26#include "core/container-source-collection.h"
27#include "core/data-object.h"
28
29/*!31/*!
30 * \brief The AlbumCollection class32 * \brief The AlbumCollection class
31 */33 */
3234
=== modified file 'src/album/album-default-template.h'
--- src/album/album-default-template.h 2013-05-28 13:50:03 +0000
+++ src/album/album-default-template.h 2013-06-06 16:04:27 +0000
@@ -21,10 +21,10 @@
21#ifndef GALLERY_ALBUM_DEFAULT_TEMPLATE_H_21#ifndef GALLERY_ALBUM_DEFAULT_TEMPLATE_H_
22#define GALLERY_ALBUM_DEFAULT_TEMPLATE_H_22#define GALLERY_ALBUM_DEFAULT_TEMPLATE_H_
2323
24#include "album-template.h"
25
24#include <QObject>26#include <QObject>
2527
26#include "album-template.h"
27
28/*!28/*!
29 * \brief The AlbumDefaultTemplate class29 * \brief The AlbumDefaultTemplate class
30 */30 */
3131
=== modified file 'src/album/album-page.cpp'
--- src/album/album-page.cpp 2013-05-28 13:50:03 +0000
+++ src/album/album-page.cpp 2013-06-06 16:04:27 +0000
@@ -19,10 +19,13 @@
1919
20#include "album-page.h"20#include "album-page.h"
21#include "album.h"21#include "album.h"
22#include "media/media-collection.h"22
23#include "util/collections.h"23// media
24#include "util/resource.h"24#include "media-collection.h"
25#include "gallery-manager.h"25
26// util
27#include "collections.h"
28#include "resource.h"
2629
27/*!30/*!
28 * \brief AlbumPage::AlbumPage31 * \brief AlbumPage::AlbumPage
2932
=== modified file 'src/album/album-page.h'
--- src/album/album-page.h 2013-05-28 13:50:03 +0000
+++ src/album/album-page.h 2013-06-06 16:04:27 +0000
@@ -20,13 +20,17 @@
20#ifndef GALLERY_ALBUM_PAGE_H_20#ifndef GALLERY_ALBUM_PAGE_H_
21#define GALLERY_ALBUM_PAGE_H_21#define GALLERY_ALBUM_PAGE_H_
2222
23#include "album-template-page.h"
24
25// core
26#include "container-source.h"
27
28// media
29#include "media-source.h"
30
23#include <QObject>31#include <QObject>
24#include <QUrl>32#include <QUrl>
2533
26#include "album-template-page.h"
27#include "core/container-source.h"
28#include "media/media-source.h"
29
30class Album;34class Album;
3135
32/*!36/*!
3337
=== modified file 'src/album/album-template.h'
--- src/album/album-template.h 2013-05-28 13:50:03 +0000
+++ src/album/album-template.h 2013-06-06 16:04:27 +0000
@@ -20,12 +20,12 @@
20#ifndef GALLERY_ALBUM_TEMPLATE_H_20#ifndef GALLERY_ALBUM_TEMPLATE_H_
21#define GALLERY_ALBUM_TEMPLATE_H_21#define GALLERY_ALBUM_TEMPLATE_H_
2222
23#include "album-template-page.h"
24
23#include <QObject>25#include <QObject>
24#include <QList>26#include <QList>
25#include <QString>27#include <QString>
2628
27#include "album-template-page.h"
28
29/*!29/*!
30 * \brief The AlbumTemplate class30 * \brief The AlbumTemplate class
31 */31 */
3232
=== modified file 'src/album/album.cpp'
--- src/album/album.cpp 2013-05-28 13:50:03 +0000
+++ src/album/album.cpp 2013-06-06 16:04:27 +0000
@@ -18,17 +18,28 @@
18 * Charles Lindsay <chaz@yorba.org>18 * Charles Lindsay <chaz@yorba.org>
19 */19 */
2020
21
22#include "album.h"21#include "album.h"
23#include "album-collection.h"22#include "album-collection.h"
24#include "album-default-template.h"23#include "album-default-template.h"
25#include "core/selectable-view-collection.h"24
26#include "database/album-table.h"25// core
27#include "database/database.h"26#include "selectable-view-collection.h"
27
28// database
29#include "album-table.h"
30#include "database.h"
31
32// media
33#include "media-collection.h"
34
35// qml
36#include "qml-media-collection-model.h"
37
38// util
39#include "variants.h"
40
41// src
28#include "gallery-manager.h"42#include "gallery-manager.h"
29#include "media/media-collection.h"
30#include "qml/qml-media-collection-model.h"
31#include "util/variants.h"
3243
33const char *Album::DEFAULT_TITLE = "New Photo Album";44const char *Album::DEFAULT_TITLE = "New Photo Album";
34const char *Album::DEFAULT_SUBTITLE = "Subtitle";45const char *Album::DEFAULT_SUBTITLE = "Subtitle";
3546
=== modified file 'src/album/album.h'
--- src/album/album.h 2013-05-28 13:50:03 +0000
+++ src/album/album.h 2013-06-06 16:04:27 +0000
@@ -21,16 +21,20 @@
21#ifndef GALLERY_ALBUM_H_21#ifndef GALLERY_ALBUM_H_
22#define GALLERY_ALBUM_H_22#define GALLERY_ALBUM_H_
2323
24#include "album-page.h"
25#include "album-template.h"
26
27// core
28#include "container-source.h"
29
30// media
31#include "media-source.h"
32
24#include <QDateTime>33#include <QDateTime>
25#include <QQmlListProperty>34#include <QQmlListProperty>
26#include <QString>35#include <QString>
27#include <QVariant>36#include <QVariant>
2837
29#include "album-page.h"
30#include "album-template.h"
31#include "core/container-source.h"
32#include "media/media-source.h"
33
34/*!38/*!
35 * \brief The AlbumTemplate class39 * \brief The AlbumTemplate class
3640
3741
=== modified file 'src/core/CMakeLists.txt'
--- src/core/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/core/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -3,7 +3,7 @@
3set(GALLERY_CORE_LIB gallery-core)3set(GALLERY_CORE_LIB gallery-core)
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}7 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}8 ${GSTLIB_INCLUDE_DIRS}
9 )9 )
@@ -37,5 +37,6 @@
37qt5_use_modules(${GALLERY_CORE_LIB} Core Quick)37qt5_use_modules(${GALLERY_CORE_LIB} Core Quick)
3838
39target_link_libraries( ${GALLERY_CORE_LIB}39target_link_libraries( ${GALLERY_CORE_LIB}
40 gallery-util
40 ${GSTLIB_LDFLAGS}41 ${GSTLIB_LDFLAGS}
41 )42 )
4243
=== modified file 'src/core/container-source-collection.h'
--- src/core/container-source-collection.h 2013-05-28 13:50:03 +0000
+++ src/core/container-source-collection.h 2013-06-06 16:04:27 +0000
@@ -20,11 +20,11 @@
20#ifndef GALLERY_CONTAINER_SOURCE_COLLECTION_H_20#ifndef GALLERY_CONTAINER_SOURCE_COLLECTION_H_
21#define GALLERY_CONTAINER_SOURCE_COLLECTION_H_21#define GALLERY_CONTAINER_SOURCE_COLLECTION_H_
2222
23#include <QString>
24
25#include "data-object.h"23#include "data-object.h"
26#include "source-collection.h"24#include "source-collection.h"
2725
26#include <QString>
27
28/**28/**
29 * ContainerSourceCollection is a SourceCollection that holds ContainerSources.29 * ContainerSourceCollection is a SourceCollection that holds ContainerSources.
30 * That is, it represents all active ContainerSources of a particular finalized30 * That is, it represents all active ContainerSources of a particular finalized
3131
=== modified file 'src/core/container-source.h'
--- src/core/container-source.h 2013-05-28 13:50:03 +0000
+++ src/core/container-source.h 2013-06-06 16:04:27 +0000
@@ -20,13 +20,13 @@
20#ifndef GALLERY_CONTAINER_SOURCE_H_20#ifndef GALLERY_CONTAINER_SOURCE_H_
21#define GALLERY_CONTAINER_SOURCE_H_21#define GALLERY_CONTAINER_SOURCE_H_
2222
23#include <QObject>
24#include <QSet>
25
26#include "data-object.h"23#include "data-object.h"
27#include "data-source.h"24#include "data-source.h"
28#include "view-collection.h"25#include "view-collection.h"
2926
27#include <QObject>
28#include <QSet>
29
30/**30/**
31 * A ContainerSource is a DataSource that holds other DataSources. Generally31 * A ContainerSource is a DataSource that holds other DataSources. Generally
32 * these are used for organizational features.32 * these are used for organizational features.
3333
=== modified file 'src/core/data-collection.cpp'
--- src/core/data-collection.cpp 2013-05-28 13:50:03 +0000
+++ src/core/data-collection.cpp 2013-06-06 16:04:27 +0000
@@ -17,11 +17,11 @@
17 * Jim Nelson <jim@yorba.org>17 * Jim Nelson <jim@yorba.org>
18 */18 */
1919
20#include <QQmlEngine>
21
22#include "data-collection.h"20#include "data-collection.h"
23#include "data-object.h"21#include "data-object.h"
2422
23#include <QQmlEngine>
24
25/*!25/*!
26 * \brief DataCollection::DataCollection26 * \brief DataCollection::DataCollection
27 * \param name27 * \param name
2828
=== modified file 'src/core/data-collection.h'
--- src/core/data-collection.h 2013-05-29 15:02:27 +0000
+++ src/core/data-collection.h 2013-06-06 16:04:27 +0000
@@ -20,14 +20,15 @@
20#ifndef GALLERY_DATA_COLLECTION_H_20#ifndef GALLERY_DATA_COLLECTION_H_
21#define GALLERY_DATA_COLLECTION_H_21#define GALLERY_DATA_COLLECTION_H_
2222
23#include <QObject>23// core
24#include "collections.h"
25
24#include <QByteArray>26#include <QByteArray>
25#include <QList>27#include <QList>
28#include <QObject>
26#include <QSet>29#include <QSet>
27#include <QString>30#include <QString>
2831
29#include "util/collections.h"
30
31class DataObject;32class DataObject;
3233
33// Defined as a LessThan comparator (return true if a is less than b)34// Defined as a LessThan comparator (return true if a is less than b)
3435
=== modified file 'src/core/data-object.cpp'
--- src/core/data-object.cpp 2013-05-28 13:50:03 +0000
+++ src/core/data-object.cpp 2013-06-06 16:04:27 +0000
@@ -17,10 +17,10 @@
17 * Jim Nelson <jim@yorba.org>17 * Jim Nelson <jim@yorba.org>
18 */18 */
1919
20#include "data-object.h"
21
20#include <QQmlEngine>22#include <QQmlEngine>
2123
22#include "data-object.h"
23
24DataObjectNumber DataObject::next_number_ = 0;24DataObjectNumber DataObject::next_number_ = 0;
2525
26/*!26/*!
2727
=== modified file 'src/core/selectable-view-collection.h'
--- src/core/selectable-view-collection.h 2013-05-28 13:50:03 +0000
+++ src/core/selectable-view-collection.h 2013-06-06 16:04:27 +0000
@@ -20,11 +20,11 @@
20#ifndef GALLERY_SELECTABLE_VIEW_COLLECTION_H_20#ifndef GALLERY_SELECTABLE_VIEW_COLLECTION_H_
21#define GALLERY_SELECTABLE_VIEW_COLLECTION_H_21#define GALLERY_SELECTABLE_VIEW_COLLECTION_H_
2222
23#include <QSet>
24
25#include "data-object.h"23#include "data-object.h"
26#include "view-collection.h"24#include "view-collection.h"
2725
26#include <QSet>
27
28/**28/**
29 * SelectableViewCollection adds the notion of selection to a ViewCollection.29 * SelectableViewCollection adds the notion of selection to a ViewCollection.
30 * It's primarily of use in grid or checkerboard views when the user may want30 * It's primarily of use in grid or checkerboard views when the user may want
3131
=== modified file 'src/database/CMakeLists.txt'
--- src/database/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/database/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,13 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 # because of circulate dependencies the sub project can't be used directly
8 # FIXME resolve the circulate dependencies
9 ${gallery_src_SOURCE_DIR}/album
10 ${gallery_core_src_SOURCE_DIR}
11 ${gallery_src_SOURCE_DIR}/media
12 ${gallery_src_SOURCE_DIR}/photo
13 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}14 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}15 ${GSTLIB_INCLUDE_DIRS}
9 )16 )
@@ -29,5 +36,10 @@
29qt5_use_modules(${GALLERY_DATABASE_LIB} Widgets Core Qml Quick Sql)36qt5_use_modules(${GALLERY_DATABASE_LIB} Widgets Core Qml Quick Sql)
3037
31target_link_libraries( ${GALLERY_DATABASE_LIB}38target_link_libraries( ${GALLERY_DATABASE_LIB}
39 gallery-album
40 gallery-core
41 gallery-media
42 gallery-photo
43 gallery-util
32 ${GSTLIB_LDFLAGS}44 ${GSTLIB_LDFLAGS}
33 )45 )
3446
=== modified file 'src/database/album-table.cpp'
--- src/database/album-table.cpp 2013-05-28 13:50:03 +0000
+++ src/database/album-table.cpp 2013-06-06 16:04:27 +0000
@@ -19,8 +19,12 @@
1919
20#include "album-table.h"20#include "album-table.h"
21#include "database.h"21#include "database.h"
22#include "album/album.h"22
23#include "album/album-default-template.h"23// album
24#include "album.h"
25#include "album-default-template.h"
26
27// src
24#include "gallery-manager.h"28#include "gallery-manager.h"
2529
26#include <QtSql>30#include <QtSql>
2731
=== modified file 'src/database/album-table.h'
--- src/database/album-table.h 2013-04-18 13:42:50 +0000
+++ src/database/album-table.h 2013-06-06 16:04:27 +0000
@@ -20,8 +20,8 @@
20#ifndef ALBUMTABLE_H20#ifndef ALBUMTABLE_H
21#define ALBUMTABLE_H21#define ALBUMTABLE_H
2222
23#include <QList>
23#include <QObject>24#include <QObject>
24#include <QList>
2525
26class Album;26class Album;
27class Database;27class Database;
2828
=== modified file 'src/database/database.cpp'
--- src/database/database.cpp 2013-06-05 08:52:51 +0000
+++ src/database/database.cpp 2013-06-06 16:04:27 +0000
@@ -24,8 +24,8 @@
24#include "photo-edit-table.h"24#include "photo-edit-table.h"
2525
26#include <QFile>26#include <QFile>
27#include <QSqlTableModel>
27#include <QtSql>28#include <QtSql>
28#include <QSqlTableModel>
2929
30/*!30/*!
31 * \brief Database::Database31 * \brief Database::Database
3232
=== modified file 'src/database/database.h'
--- src/database/database.h 2013-06-03 15:18:06 +0000
+++ src/database/database.h 2013-06-06 16:04:27 +0000
@@ -20,16 +20,16 @@
20#ifndef DATABASE_H20#ifndef DATABASE_H
21#define DATABASE_H21#define DATABASE_H
2222
23#include <QFile>
23#include <QObject>24#include <QObject>
24#include <QFile>
25#include <QString>25#include <QString>
2626
27class AlbumTable;27class AlbumTable;
28class MediaTable;28class MediaTable;
29class PhotoEditTable;29class PhotoEditTable;
3030
31class QSqlDatabase;
31class QSqlQuery;32class QSqlQuery;
32class QSqlDatabase;
3333
34const qint64 INVALID_ID = -1;34const qint64 INVALID_ID = -1;
3535
3636
=== modified file 'src/database/media-table.cpp'
--- src/database/media-table.cpp 2013-05-28 13:50:03 +0000
+++ src/database/media-table.cpp 2013-06-06 16:04:27 +0000
@@ -17,12 +17,12 @@
17 * Eric Gregory <eric@yorba.org>17 * Eric Gregory <eric@yorba.org>
18 */18 */
1919
20#include "media-table.h"
21#include "database.h"
22
20#include <QApplication>23#include <QApplication>
21#include <QtSql>24#include <QtSql>
2225
23#include "media-table.h"
24#include "database.h"
25
26/*!26/*!
27 * \brief MediaTable::MediaTable27 * \brief MediaTable::MediaTable
28 * \param db28 * \param db
2929
=== modified file 'src/database/media-table.h'
--- src/database/media-table.h 2013-02-25 10:16:29 +0000
+++ src/database/media-table.h 2013-06-06 16:04:27 +0000
@@ -20,10 +20,10 @@
20#ifndef MEDIATABLE_H20#ifndef MEDIATABLE_H
21#define MEDIATABLE_H21#define MEDIATABLE_H
2222
23#include "photo-metadata.h"
24
23#include <QObject>25#include <QObject>
2426
25#include "photo/photo-metadata.h"
26
27class Database;27class Database;
2828
29/*!29/*!
3030
=== modified file 'src/database/photo-edit-table.cpp'
--- src/database/photo-edit-table.cpp 2013-06-03 15:46:21 +0000
+++ src/database/photo-edit-table.cpp 2013-06-06 16:04:27 +0000
@@ -17,14 +17,16 @@
17 * Charles Lindsay <chaz@yorba.org>17 * Charles Lindsay <chaz@yorba.org>
18 */18 */
1919
20#include "photo-edit-table.h"
21#include "database.h"
22
23// photo
24#include "photo-edit-state.h"
25
20#include <QSqlQuery>26#include <QSqlQuery>
21#include <QStringList>27#include <QStringList>
22#include <QVariant>28#include <QVariant>
2329
24#include "photo-edit-table.h"
25#include "database.h"
26#include "photo/photo-edit-state.h"
27
28/*!30/*!
29 * \brief PhotoEditTable::PhotoEditTable31 * \brief PhotoEditTable::PhotoEditTable
30 * \param db32 * \param db
3133
=== modified file 'src/event/CMakeLists.txt'
--- src/event/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/event/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,12 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 ${gallery_core_src_SOURCE_DIR}
8 # because of circulate dependencies the sub project can't be used directly
9 # FIXME resolve the circulate dependencies
10 ${gallery_src_SOURCE_DIR}/media
11 ${gallery_src_SOURCE_DIR}/photo
12 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}13 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}14 ${GSTLIB_INCLUDE_DIRS}
9 )15 )
@@ -25,5 +31,9 @@
25qt5_use_modules(${GALLERY_EVENT_LIB} Widgets Core Qml)31qt5_use_modules(${GALLERY_EVENT_LIB} Widgets Core Qml)
2632
27target_link_libraries( ${GALLERY_EVENT_LIB}33target_link_libraries( ${GALLERY_EVENT_LIB}
34 gallery-core
35 gallery-media
36 gallery-photo
37 gallery-util
28 ${GSTLIB_LDFLAGS}38 ${GSTLIB_LDFLAGS}
29 )39 )
3040
=== modified file 'src/event/event-collection.cpp'
--- src/event/event-collection.cpp 2013-05-28 13:50:03 +0000
+++ src/event/event-collection.cpp 2013-06-06 16:04:27 +0000
@@ -19,9 +19,15 @@
1919
20#include "event-collection.h"20#include "event-collection.h"
21#include "event.h"21#include "event.h"
22#include "core/data-object.h"22
23#include "media/media-collection.h"23// core
24#include "media/media-source.h"24#include "data-object.h"
25
26// media
27#include "media-collection.h"
28#include "media-source.h"
29
30// src
25#include "gallery-manager.h"31#include "gallery-manager.h"
2632
27/*!33/*!
2834
=== modified file 'src/event/event-collection.h'
--- src/event/event-collection.h 2013-02-25 10:16:29 +0000
+++ src/event/event-collection.h 2013-06-06 16:04:27 +0000
@@ -20,12 +20,12 @@
20#ifndef GALLERY_EVENT_COLLECTION_H_20#ifndef GALLERY_EVENT_COLLECTION_H_
21#define GALLERY_EVENT_COLLECTION_H_21#define GALLERY_EVENT_COLLECTION_H_
2222
23#include "source-collection.h"
24
23#include <QDate>25#include <QDate>
24#include <QHash>26#include <QHash>
25#include <QSet>27#include <QSet>
2628
27#include "core/source-collection.h"
28
29class DataObject;29class DataObject;
30class Event;30class Event;
31class MediaSource;31class MediaSource;
3232
=== modified file 'src/event/event.cpp'
--- src/event/event.cpp 2013-02-25 10:16:29 +0000
+++ src/event/event.cpp 2013-06-06 16:04:27 +0000
@@ -17,11 +17,13 @@
17 * Jim Nelson <jim@yorba.org>17 * Jim Nelson <jim@yorba.org>
18 */18 */
1919
20#include "event.h"
21
22// media
23#include "media-collection.h"
24
20#include <QString>25#include <QString>
2126
22#include "event.h"
23#include "media/media-collection.h"
24
25/*!27/*!
26 * \brief Event::Event28 * \brief Event::Event
27 * \param parent29 * \param parent
2830
=== modified file 'src/event/event.h'
--- src/event/event.h 2013-02-25 10:16:29 +0000
+++ src/event/event.h 2013-06-06 16:04:27 +0000
@@ -20,12 +20,15 @@
20#ifndef GALLERY_EVENT_H_20#ifndef GALLERY_EVENT_H_
21#define GALLERY_EVENT_H_21#define GALLERY_EVENT_H_
2222
23#include <QObject>23// core
24#include "container-source.h"
25
26// media
27#include "media-source.h"
28
24#include <QDate>29#include <QDate>
25#include <QDateTime>30#include <QDateTime>
2631#include <QObject>
27#include "core/container-source.h"
28#include "media/media-source.h"
2932
30/*!33/*!
31 * \brief The Event class34 * \brief The Event class
3235
=== modified file 'src/gallery-application.cpp'
--- src/gallery-application.cpp 2013-05-28 13:50:03 +0000
+++ src/gallery-application.cpp 2013-06-06 16:04:27 +0000
@@ -23,22 +23,34 @@
2323
24#include "gallery-application.h"24#include "gallery-application.h"
25#include "gallery-manager.h"25#include "gallery-manager.h"
26#include "album/album.h"26
27#include "album/album-page.h"27// album
28#include "event/event.h"28#include "album.h"
29#include "media/media-collection.h"29#include "album-page.h"
30#include "media/media-monitor.h"30
31#include "media/media-source.h"31// event
32#include "photo/photo.h"32#include "event.h"
33#include "qml/gallery-standard-image-provider.h"33
34#include "qml/gallery-thumbnail-image-provider.h"34// media
35#include "qml/qml-album-collection-model.h"35#include "media-collection.h"
36#include "qml/qml-event-collection-model.h"36#include "media-monitor.h"
37#include "qml/qml-event-overview-model.h"37#include "media-source.h"
38#include "qml/qml-media-collection-model.h"38
39#include "util/command-line-parser.h"39// photo
40#include "util/resource.h"40#include "photo.h"
41#include "util/sharefile.h"41
42// qml
43#include "gallery-standard-image-provider.h"
44#include "gallery-thumbnail-image-provider.h"
45#include "qml-album-collection-model.h"
46#include "qml-event-collection-model.h"
47#include "qml-event-overview-model.h"
48#include "qml-media-collection-model.h"
49
50// util
51#include "command-line-parser.h"
52#include "resource.h"
53#include "sharefile.h"
4254
43/*!55/*!
44 * \brief GalleryApplication::GalleryApplication56 * \brief GalleryApplication::GalleryApplication
4557
=== modified file 'src/gallery-application.h'
--- src/gallery-application.h 2013-05-28 13:50:03 +0000
+++ src/gallery-application.h 2013-06-06 16:04:27 +0000
@@ -21,9 +21,9 @@
21#define GALLERYAPPLICATION_H21#define GALLERYAPPLICATION_H
2222
23#include <QApplication>23#include <QApplication>
24#include <QQuickView>
25#include <QElapsedTimer>24#include <QElapsedTimer>
26#include <QFileInfo>25#include <QFileInfo>
26#include <QQuickView>
2727
28class CommandLineParser;28class CommandLineParser;
29class GalleryManager;29class GalleryManager;
3030
=== modified file 'src/gallery-manager.cpp'
--- src/gallery-manager.cpp 2013-06-04 10:21:17 +0000
+++ src/gallery-manager.cpp 2013-06-06 16:04:27 +0000
@@ -19,17 +19,28 @@
19 */19 */
2020
21#include "gallery-manager.h"21#include "gallery-manager.h"
22#include "album/album-collection.h"22
23#include "album/album-default-template.h"23// album
24#include "database/database.h"24#include "album-collection.h"
25#include "database/media-table.h"25#include "album-default-template.h"
26#include "event/event-collection.h"26
27#include "media/media-collection.h"27// database
28#include "media/preview-manager.h"28#include "database.h"
29#include "qml/gallery-standard-image-provider.h"29#include "media-table.h"
30#include "qml/gallery-thumbnail-image-provider.h"30
31#include "util/command-line-parser.h"31// event
32#include "util/resource.h"32#include "event-collection.h"
33
34// media
35#include "media-collection.h"
36#include "preview-manager.h"
37
38// qml
39#include "gallery-standard-image-provider.h"
40#include "gallery-thumbnail-image-provider.h"
41
42// util
43#include "resource.h"
3344
34GalleryManager* GalleryManager::gallery_mgr_ = NULL;45GalleryManager* GalleryManager::gallery_mgr_ = NULL;
3546
3647
=== modified file 'src/gallery-manager.h'
--- src/gallery-manager.h 2013-06-04 10:21:17 +0000
+++ src/gallery-manager.h 2013-06-06 16:04:27 +0000
@@ -20,8 +20,9 @@
20#ifndef GALLERYMANAGER_H20#ifndef GALLERYMANAGER_H
21#define GALLERYMANAGER_H21#define GALLERYMANAGER_H
2222
23#include <QDir>
24
23#include <cstddef>25#include <cstddef>
24#include <QDir>
2526
26class QQuickView;27class QQuickView;
2728
2829
=== modified file 'src/media/CMakeLists.txt'
--- src/media/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/media/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,14 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 ${gallery_core_src_SOURCE_DIR}
8 # because of circulate dependencies the sub project can't be used directly
9 # FIXME resolve the circulate dependencies
10 ${gallery_src_SOURCE_DIR}/database
11 ${gallery_src_SOURCE_DIR}/event
12 ${gallery_src_SOURCE_DIR}/photo
13 ${gallery_src_SOURCE_DIR}/qml
14 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}15 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}16 ${GSTLIB_INCLUDE_DIRS}
9 )17 )
@@ -29,5 +37,11 @@
29qt5_use_modules(${GALLERY_MEDIA_LIB} Core Quick)37qt5_use_modules(${GALLERY_MEDIA_LIB} Core Quick)
3038
31target_link_libraries( ${GALLERY_MEDIA_LIB}39target_link_libraries( ${GALLERY_MEDIA_LIB}
40 gallery-core
41 gallery-database
42 gallery-event
43 gallery-photo
44 gallery-qml
45 gallery-util
32 ${GSTLIB_LDFLAGS}46 ${GSTLIB_LDFLAGS}
33 )47 )
3448
=== modified file 'src/media/media-collection.cpp'
--- src/media/media-collection.cpp 2013-05-28 13:50:03 +0000
+++ src/media/media-collection.cpp 2013-06-06 16:04:27 +0000
@@ -17,15 +17,21 @@
17 * Jim Nelson <jim@yorba.org>17 * Jim Nelson <jim@yorba.org>
18 */18 */
1919
20#include "media-collection.h"
21
22// database
23#include "database.h"
24#include "media-table.h"
25
26// photo
27#include "photo.h"
28
29// src
30#include "gallery-manager.h"
31
20#include <QFileInfo>32#include <QFileInfo>
33#include <QString>
21#include <QStringList>34#include <QStringList>
22#include <QString>
23
24#include "media-collection.h"
25#include "photo/photo.h"
26#include "database/database.h"
27#include "database/media-table.h"
28#include "gallery-manager.h"
2935
30/*!36/*!
31 * \brief MediaCollection::MediaCollection37 * \brief MediaCollection::MediaCollection
3238
=== modified file 'src/media/media-collection.h'
--- src/media/media-collection.h 2013-02-25 10:16:29 +0000
+++ src/media/media-collection.h 2013-06-06 16:04:27 +0000
@@ -24,7 +24,8 @@
24#include <QHash>24#include <QHash>
25#include <QSet>25#include <QSet>
2626
27#include "core/source-collection.h"27// core
28#include "source-collection.h"
2829
29class DataObject;30class DataObject;
30class MediaSource;31class MediaSource;
3132
=== modified file 'src/media/media-monitor.h'
--- src/media/media-monitor.h 2013-02-25 10:16:29 +0000
+++ src/media/media-monitor.h 2013-06-06 16:04:27 +0000
@@ -20,9 +20,9 @@
20#ifndef GALLERY_MEDIA_MONITOR_H_20#ifndef GALLERY_MEDIA_MONITOR_H_
21#define GALLERY_MEDIA_MONITOR_H_21#define GALLERY_MEDIA_MONITOR_H_
2222
23#include <QObject>
24#include <QDir>23#include <QDir>
25#include <QFileSystemWatcher>24#include <QFileSystemWatcher>
25#include <QObject>
26#include <QStringList>26#include <QStringList>
27#include <QTimer>27#include <QTimer>
2828
2929
=== modified file 'src/media/media-source.cpp'
--- src/media/media-source.cpp 2013-06-04 09:24:50 +0000
+++ src/media/media-source.cpp 2013-06-06 16:04:27 +0000
@@ -19,13 +19,23 @@
1919
20#include "media-source.h"20#include "media-source.h"
21#include "preview-manager.h"21#include "preview-manager.h"
22#include "database/database.h"22
23#include "database/media-table.h"23// database
24#include "event/event.h"24#include "database.h"
25#include "event/event-collection.h"25#include "media-table.h"
26#include "qml/gallery-standard-image-provider.h"26
27#include "qml/gallery-thumbnail-image-provider.h"27// event
28#include "util/resource.h"28#include "event.h"
29#include "event-collection.h"
30
31// qml
32#include "gallery-standard-image-provider.h"
33#include "gallery-thumbnail-image-provider.h"
34
35// util
36#include "resource.h"
37
38// src
29#include "gallery-manager.h"39#include "gallery-manager.h"
3040
31/*!41/*!
3242
=== modified file 'src/media/media-source.h'
--- src/media/media-source.h 2013-06-04 09:24:50 +0000
+++ src/media/media-source.h 2013-06-06 16:04:27 +0000
@@ -20,6 +20,12 @@
20#ifndef GALLERY_MEDIA_SOURCE_H_20#ifndef GALLERY_MEDIA_SOURCE_H_
21#define GALLERY_MEDIA_SOURCE_H_21#define GALLERY_MEDIA_SOURCE_H_
2222
23// core
24#include "data-source.h"
25
26// photo
27#include "photo-metadata.h"
28
23#include <QDate>29#include <QDate>
24#include <QDateTime>30#include <QDateTime>
25#include <QFileInfo>31#include <QFileInfo>
@@ -29,9 +35,6 @@
29#include <QVariant>35#include <QVariant>
30#include <QtQml>36#include <QtQml>
3137
32#include "core/data-source.h"
33#include "photo/photo-metadata.h"
34
35class Event;38class Event;
36class GalleryManager;39class GalleryManager;
3740
3841
=== modified file 'src/media/preview-manager.cpp'
--- src/media/preview-manager.cpp 2013-06-05 08:52:51 +0000
+++ src/media/preview-manager.cpp 2013-06-06 16:04:27 +0000
@@ -17,14 +17,18 @@
17 * Jim Nelson <jim@yorba.org>17 * Jim Nelson <jim@yorba.org>
18 */18 */
1919
20#include "preview-manager.h"
21
22// media
23#include "media-collection.h"
24
25// photo
26#include "photo.h"
27
20#include <QCryptographicHash>28#include <QCryptographicHash>
21#include <QDir>29#include <QDir>
22#include <QMutexLocker>30#include <QMutexLocker>
2331
24#include "preview-manager.h"
25#include "media-collection.h"
26#include "photo/photo.h"
27
28// FIXME adapt to different sizes. This is fixed size for the demo device32// FIXME adapt to different sizes. This is fixed size for the demo device
29const int PreviewManager::PREVIEW_SIZE = 360; // in pixel33const int PreviewManager::PREVIEW_SIZE = 360; // in pixel
30const int PreviewManager::THUMBNAIL_SIZE = 216; // in pixel34const int PreviewManager::THUMBNAIL_SIZE = 216; // in pixel
3135
=== modified file 'src/photo/CMakeLists.txt'
--- src/photo/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/photo/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,13 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 ${gallery_core_src_SOURCE_DIR}
8 # because of circulate dependencies the sub project can't be used directly
9 # FIXME resolve the circulate dependencies
10 ${gallery_src_SOURCE_DIR}/media
11 ${gallery_src_SOURCE_DIR}/database
12 ${gallery_src_SOURCE_DIR}/qml
13 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}14 ${CMAKE_BINARY_DIR}
8 ${EXIV2_INCLUDEDIR}15 ${EXIV2_INCLUDEDIR}
9 ${GSTLIB_INCLUDE_DIRS}16 ${GSTLIB_INCLUDE_DIRS}
@@ -30,6 +37,11 @@
30qt5_use_modules(${GALLERY_PHOTO_LIB} Widgets Core Quick)37qt5_use_modules(${GALLERY_PHOTO_LIB} Widgets Core Quick)
3138
32target_link_libraries( ${GALLERY_PHOTO_LIB}39target_link_libraries( ${GALLERY_PHOTO_LIB}
40 gallery-core
41 gallery-media
42 gallery-database
43 gallery-qml
44 gallery-util
33 ${EXIV2_LIBRARIES}45 ${EXIV2_LIBRARIES}
34 ${GSTLIB_LDFLAGS}46 ${GSTLIB_LDFLAGS}
35 )47 )
3648
=== modified file 'src/photo/photo-caches.h'
--- src/photo/photo-caches.h 2013-02-25 10:16:29 +0000
+++ src/photo/photo-caches.h 2013-06-06 16:04:27 +0000
@@ -20,9 +20,9 @@
20#ifndef GALLERY_PHOTO_CACHES_H_20#ifndef GALLERY_PHOTO_CACHES_H_
21#define GALLERY_PHOTO_CACHES_H_21#define GALLERY_PHOTO_CACHES_H_
2222
23#include <QFile>
24#include <QFileInfo>
23#include <QString>25#include <QString>
24#include <QFileInfo>
25#include <QFile>
2626
27/*!27/*!
28 * \brief The PhotoCaches class28 * \brief The PhotoCaches class
2929
=== modified file 'src/photo/photo-edit-state.h'
--- src/photo/photo-edit-state.h 2013-05-28 13:50:03 +0000
+++ src/photo/photo-edit-state.h 2013-06-06 16:04:27 +0000
@@ -20,11 +20,11 @@
20#ifndef GALLERY_PHOTO_EDIT_STATE_H_20#ifndef GALLERY_PHOTO_EDIT_STATE_H_
21#define GALLERY_PHOTO_EDIT_STATE_H_21#define GALLERY_PHOTO_EDIT_STATE_H_
2222
23#include "photo-metadata.h"
24
23#include <QRect>25#include <QRect>
24#include <QVector4D>26#include <QVector4D>
2527
26#include "photo-metadata.h"
27
28/*!28/*!
29 * \brief The PhotoEditState class29 * \brief The PhotoEditState class
30 *30 *
3131
=== modified file 'src/photo/photo-metadata.cpp'
--- src/photo/photo-metadata.cpp 2013-02-25 10:16:29 +0000
+++ src/photo/photo-metadata.cpp 2013-06-06 16:04:27 +0000
@@ -17,10 +17,10 @@
17 * Lucas Beeler <lucas@yorba.org>17 * Lucas Beeler <lucas@yorba.org>
18 */18 */
1919
20#include "photo-metadata.h"
21
20#include <cstdio>22#include <cstdio>
2123
22#include "photo-metadata.h"
23
24namespace {24namespace {
25const Orientation DEFAULT_ORIENTATION = TOP_LEFT_ORIGIN;25const Orientation DEFAULT_ORIENTATION = TOP_LEFT_ORIGIN;
26const char* EXIF_ORIENTATION_KEY = "Exif.Image.Orientation";26const char* EXIF_ORIENTATION_KEY = "Exif.Image.Orientation";
2727
=== modified file 'src/photo/photo-metadata.h'
--- src/photo/photo-metadata.h 2013-02-25 10:16:29 +0000
+++ src/photo/photo-metadata.h 2013-06-06 16:04:27 +0000
@@ -20,9 +20,9 @@
20#ifndef GALLERY_PHOTO_METADATA_H_20#ifndef GALLERY_PHOTO_METADATA_H_
21#define GALLERY_PHOTO_METADATA_H_21#define GALLERY_PHOTO_METADATA_H_
2222
23#include <QObject>
24#include <QDateTime>23#include <QDateTime>
25#include <QFileInfo>24#include <QFileInfo>
25#include <QObject>
26#include <QString>26#include <QString>
27#include <QSet>27#include <QSet>
28#include <QTransform>28#include <QTransform>
2929
=== modified file 'src/photo/photo.cpp'
--- src/photo/photo.cpp 2013-05-28 13:50:03 +0000
+++ src/photo/photo.cpp 2013-06-06 16:04:27 +0000
@@ -21,22 +21,32 @@
21 * Clint Rogers <clinton@yorba.org>21 * Clint Rogers <clinton@yorba.org>
22 */22 */
2323
24#include "photo.h"
25
26// database
27#include "database.h"
28#include "media-table.h"
29#include "photo-edit-table.h"
30
31// media
32#include "media-collection.h"
33
34// qml
35#include "gallery-standard-image-provider.h"
36#include "gallery-thumbnail-image-provider.h"
37
38// util
39#include "imaging.h"
40
41// src
42#include "gallery-manager.h"
43
24#include <QApplication>44#include <QApplication>
25#include <QFileInfo>45#include <QFileInfo>
26#include <QImage>46#include <QImage>
27#include <QImageReader>47#include <QImageReader>
28#include <QImageWriter>48#include <QImageWriter>
2949
30#include "photo.h"
31#include "database/database.h"
32#include "database/media-table.h"
33#include "database/photo-edit-table.h"
34#include "media/media-collection.h"
35#include "qml/gallery-standard-image-provider.h"
36#include "qml/gallery-thumbnail-image-provider.h"
37#include "util/imaging.h"
38#include "gallery-manager.h"
39
40// A simple class for dealing with an undo-/redo-able stack of applied edits.50// A simple class for dealing with an undo-/redo-able stack of applied edits.
41class EditStack {51class EditStack {
42public:52public:
4353
=== modified file 'src/photo/photo.h'
--- src/photo/photo.h 2013-05-28 13:50:03 +0000
+++ src/photo/photo.h 2013-06-06 16:04:27 +0000
@@ -22,13 +22,15 @@
22#ifndef GALLERY_PHOTO_H_22#ifndef GALLERY_PHOTO_H_
23#define GALLERY_PHOTO_H_23#define GALLERY_PHOTO_H_
2424
25#include <QDateTime>
26#include <QStack>
27
28#include "photo-caches.h"25#include "photo-caches.h"
29#include "photo-edit-state.h"26#include "photo-edit-state.h"
30#include "photo-metadata.h"27#include "photo-metadata.h"
31#include "media/media-source.h"28
29// media
30#include "media-source.h"
31
32#include <QDateTime>
33#include <QStack>
3234
33class PhotoPrivate;35class PhotoPrivate;
3436
3537
=== modified file 'src/qml/CMakeLists.txt'
--- src/qml/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/qml/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,6 +4,14 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 # because of circulate dependencies the sub project can't be used directly
8 # FIXME resolve the circulate dependencies
9 ${gallery_src_SOURCE_DIR}/album
10 ${gallery_core_src_SOURCE_DIR}
11 ${gallery_src_SOURCE_DIR}/event
12 ${gallery_src_SOURCE_DIR}/media
13 ${gallery_src_SOURCE_DIR}/photo
14 ${gallery_util_src_SOURCE_DIR}
7 ${CMAKE_BINARY_DIR}15 ${CMAKE_BINARY_DIR}
8 ${GSTLIB_INCLUDE_DIRS}16 ${GSTLIB_INCLUDE_DIRS}
9 )17 )
@@ -35,5 +43,12 @@
35qt5_use_modules(${GALLERY_QML_LIB} Core Quick)43qt5_use_modules(${GALLERY_QML_LIB} Core Quick)
3644
37target_link_libraries( ${GALLERY_QML_LIB}45target_link_libraries( ${GALLERY_QML_LIB}
46 gallery-album
47 gallery-core
48 gallery-event
49 gallery-media
50 gallery-photo
51 gallery-qml
52 gallery-util
38 ${GSTLIB_LDFLAGS}53 ${GSTLIB_LDFLAGS}
39 )54 )
4055
=== modified file 'src/qml/gallery-standard-image-provider.cpp'
--- src/qml/gallery-standard-image-provider.cpp 2013-06-04 09:24:50 +0000
+++ src/qml/gallery-standard-image-provider.cpp 2013-06-06 16:04:27 +0000
@@ -18,14 +18,16 @@
18 * Jim Nelson <jim@yorba.org>18 * Jim Nelson <jim@yorba.org>
19 */19 */
2020
21#include "gallery-standard-image-provider.h"
22
23// media
24#include "preview-manager.h"
25
26#include <QDebug>
27#include <QElapsedTimer>
21#include <QImageReader>28#include <QImageReader>
22#include <QSize>29#include <QSize>
23#include <QElapsedTimer>
24#include <QUrlQuery>30#include <QUrlQuery>
25#include <QDebug>
26
27#include "gallery-standard-image-provider.h"
28#include "media/preview-manager.h"
2931
30const char* GalleryStandardImageProvider::PROVIDER_ID = "gallery-standard";32const char* GalleryStandardImageProvider::PROVIDER_ID = "gallery-standard";
31const char* GalleryStandardImageProvider::PROVIDER_ID_SCHEME = "image://gallery-standard/";33const char* GalleryStandardImageProvider::PROVIDER_ID_SCHEME = "image://gallery-standard/";
3234
=== modified file 'src/qml/gallery-standard-image-provider.h'
--- src/qml/gallery-standard-image-provider.h 2013-06-04 09:24:50 +0000
+++ src/qml/gallery-standard-image-provider.h 2013-06-06 16:04:27 +0000
@@ -21,18 +21,18 @@
21#ifndef GALLERY_GALLERY_STANDARD_IMAGE_PROVIDER_H_21#ifndef GALLERY_GALLERY_STANDARD_IMAGE_PROVIDER_H_
22#define GALLERY_GALLERY_STANDARD_IMAGE_PROVIDER_H_22#define GALLERY_GALLERY_STANDARD_IMAGE_PROVIDER_H_
2323
24#include <QObject>24#include "photo-metadata.h"
25#include <QQuickImageProvider>25
26#include <QFileInfo>26#include <QFileInfo>
27#include <QImage>27#include <QImage>
28#include <QMap>28#include <QMap>
29#include <QMutex>29#include <QMutex>
30#include <QObject>
31#include <QQuickImageProvider>
30#include <QSize>32#include <QSize>
31#include <QString>33#include <QString>
32#include <QUrl>34#include <QUrl>
3335
34#include "photo/photo-metadata.h"
35
36class PreviewManager;36class PreviewManager;
3737
38/*!38/*!
3939
=== modified file 'src/qml/gallery-thumbnail-image-provider.cpp'
--- src/qml/gallery-thumbnail-image-provider.cpp 2013-06-04 09:24:50 +0000
+++ src/qml/gallery-thumbnail-image-provider.cpp 2013-06-06 16:04:27 +0000
@@ -18,7 +18,9 @@
18*/18*/
1919
20#include "gallery-thumbnail-image-provider.h"20#include "gallery-thumbnail-image-provider.h"
21#include "media/preview-manager.h"21
22// media
23#include "preview-manager.h"
2224
23#include <QDebug>25#include <QDebug>
24#include <QElapsedTimer>26#include <QElapsedTimer>
2527
=== modified file 'src/qml/qml-album-collection-model.cpp'
--- src/qml/qml-album-collection-model.cpp 2013-05-28 13:50:03 +0000
+++ src/qml/qml-album-collection-model.cpp 2013-06-06 16:04:27 +0000
@@ -18,11 +18,11 @@
18 */18 */
1919
20#include "qml-album-collection-model.h"20#include "qml-album-collection-model.h"
21#include "album/album.h"21#include "album.h"
22#include "album/album-collection.h"22#include "album-collection.h"
23#include "album/album-default-template.h"23#include "album-default-template.h"
24#include "core/selectable-view-collection.h"24#include "selectable-view-collection.h"
25#include "util/variants.h"25#include "variants.h"
26#include "gallery-manager.h"26#include "gallery-manager.h"
2727
28/*!28/*!
2929
=== modified file 'src/qml/qml-event-collection-model.cpp'
--- src/qml/qml-event-collection-model.cpp 2013-05-28 13:50:03 +0000
+++ src/qml/qml-event-collection-model.cpp 2013-06-06 16:04:27 +0000
@@ -18,9 +18,9 @@
18 */18 */
1919
20#include "qml-event-collection-model.h"20#include "qml-event-collection-model.h"
21#include "event/event.h"21#include "event.h"
22#include "event/event-collection.h"22#include "event-collection.h"
23#include "util/variants.h"23#include "variants.h"
24#include "gallery-manager.h"24#include "gallery-manager.h"
2525
26/*!26/*!
2727
=== modified file 'src/qml/qml-event-overview-model.cpp'
--- src/qml/qml-event-overview-model.cpp 2013-05-28 13:50:03 +0000
+++ src/qml/qml-event-overview-model.cpp 2013-06-06 16:04:27 +0000
@@ -18,11 +18,11 @@
18 */18 */
1919
20#include "qml-event-overview-model.h"20#include "qml-event-overview-model.h"
21#include "core/data-object.h"21#include "data-object.h"
22#include "core/selectable-view-collection.h"22#include "selectable-view-collection.h"
23#include "event/event.h"23#include "event.h"
24#include "event/event-collection.h"24#include "event-collection.h"
25#include "util/variants.h"25#include "variants.h"
26#include "gallery-manager.h"26#include "gallery-manager.h"
2727
28/*!28/*!
2929
=== modified file 'src/qml/qml-media-collection-model.cpp'
--- src/qml/qml-media-collection-model.cpp 2013-05-28 13:50:03 +0000
+++ src/qml/qml-media-collection-model.cpp 2013-06-06 16:04:27 +0000
@@ -20,14 +20,14 @@
2020
21#include "qml-media-collection-model.h"21#include "qml-media-collection-model.h"
2222
23#include "album/album.h"23#include "album.h"
24#include "album/album-collection.h"24#include "album-collection.h"
25#include "album/album-default-template.h"25#include "album-default-template.h"
26#include "core/data-object.h"26#include "data-object.h"
27#include "core/selectable-view-collection.h"27#include "selectable-view-collection.h"
28#include "media/media-source.h"28#include "media-source.h"
29#include "media/media-collection.h"29#include "media-collection.h"
30#include "util/variants.h"30#include "variants.h"
31#include "gallery-manager.h"31#include "gallery-manager.h"
3232
33/*!33/*!
3434
=== modified file 'src/qml/qml-view-collection-model.cpp'
--- src/qml/qml-view-collection-model.cpp 2013-02-25 10:16:29 +0000
+++ src/qml/qml-view-collection-model.cpp 2013-06-06 16:04:27 +0000
@@ -18,9 +18,9 @@
18 */18 */
1919
20#include "qml-view-collection-model.h"20#include "qml-view-collection-model.h"
21#include "core/container-source.h"21#include "container-source.h"
22#include "core/data-object.h"22#include "data-object.h"
23#include "core/selectable-view-collection.h"23#include "selectable-view-collection.h"
24#include "util/variants.h"24#include "util/variants.h"
2525
26/*!26/*!
2727
=== modified file 'src/qml/qml-view-collection-model.h'
--- src/qml/qml-view-collection-model.h 2013-02-25 10:16:29 +0000
+++ src/qml/qml-view-collection-model.h 2013-06-06 16:04:27 +0000
@@ -27,7 +27,7 @@
27#include <QModelIndex>27#include <QModelIndex>
28#include <QVariant>28#include <QVariant>
2929
30#include <core/data-collection.h>30#include <data-collection.h>
3131
32class DataObject;32class DataObject;
33class ContainerSource;33class ContainerSource;
3434
=== modified file 'src/util/CMakeLists.txt'
--- src/util/CMakeLists.txt 2013-06-03 07:06:50 +0000
+++ src/util/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -4,7 +4,7 @@
44
5include_directories(5include_directories(
6 ${gallery_src_SOURCE_DIR}6 ${gallery_src_SOURCE_DIR}
7 ${CMAKE_CURRENT_BINARY_DIR}/..7 ${gallery_src_BINARY_DIR}
8 ${CMAKE_BINARY_DIR}8 ${CMAKE_BINARY_DIR}
9 ${GSTLIB_INCLUDE_DIRS}9 ${GSTLIB_INCLUDE_DIRS}
10 )10 )
1111
=== modified file 'src/util/collections.h'
--- src/util/collections.h 2013-02-25 10:16:29 +0000
+++ src/util/collections.h 2013-06-06 16:04:27 +0000
@@ -21,6 +21,7 @@
21#define GALLERY_UTIL_COLLECTIONS_H_21#define GALLERY_UTIL_COLLECTIONS_H_
2222
23#include <QList>23#include <QList>
24#include <QObject>
24#include <QSet>25#include <QSet>
2526
26template <class F, class T>27template <class F, class T>
2728
=== modified file 'tests/unittests/command-line-parser/CMakeLists.txt'
--- tests/unittests/command-line-parser/CMakeLists.txt 2013-05-28 13:50:03 +0000
+++ tests/unittests/command-line-parser/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -5,8 +5,8 @@
5endif()5endif()
66
7include_directories(7include_directories(
8 ${gallery_util_src_SOURCE_DIR}
8 ${CMAKE_BINARY_DIR}9 ${CMAKE_BINARY_DIR}
9 ${gallery_src_SOURCE_DIR}
10 )10 )
1111
12add_executable(command-line-parser12add_executable(command-line-parser
1313
=== modified file 'tests/unittests/command-line-parser/tst_commandlineparser.cpp'
--- tests/unittests/command-line-parser/tst_commandlineparser.cpp 2013-05-28 13:50:03 +0000
+++ tests/unittests/command-line-parser/tst_commandlineparser.cpp 2013-06-06 16:04:27 +0000
@@ -21,7 +21,7 @@
21#include <QStringList>21#include <QStringList>
22#include <QtTest>22#include <QtTest>
2323
24#include "util/command-line-parser.h"24#include "command-line-parser.h"
2525
26class tst_CommandLineParser : public QObject26class tst_CommandLineParser : public QObject
27{27{
2828
=== modified file 'tests/unittests/gallerystandardimageprovider/CMakeLists.txt'
--- tests/unittests/gallerystandardimageprovider/CMakeLists.txt 2013-06-04 09:24:50 +0000
+++ tests/unittests/gallerystandardimageprovider/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -7,6 +7,9 @@
7include_directories(7include_directories(
8 ${CMAKE_BINARY_DIR}8 ${CMAKE_BINARY_DIR}
9 ${gallery_src_SOURCE_DIR}9 ${gallery_src_SOURCE_DIR}
10 ${gallery_media_src_SOURCE_DIR}
11 ${gallery_photo_src_SOURCE_DIR}
12 ${gallery_qml_src_SOURCE_DIR}
10 ${GSTLIB_INCLUDE_DIRS}13 ${GSTLIB_INCLUDE_DIRS}
11 )14 )
1215
1316
=== removed directory 'tests/unittests/gallerystandardimageprovider/media'
=== renamed file 'tests/unittests/gallerystandardimageprovider/media/media-collection.h' => 'tests/unittests/gallerystandardimageprovider/media-collection.h'
=== modified file 'tests/unittests/gallerystandardimageprovider/photometa-data.cpp'
--- tests/unittests/gallerystandardimageprovider/photometa-data.cpp 2013-01-16 11:01:23 +0000
+++ tests/unittests/gallerystandardimageprovider/photometa-data.cpp 2013-06-06 16:04:27 +0000
@@ -18,7 +18,7 @@
18 *18 *
19 */19 */
2020
21#include "photo/photo-metadata.h"21#include "photo-metadata.h"
2222
23Orientation PhotoMetadata::orientation() const23Orientation PhotoMetadata::orientation() const
24{24{
2525
=== modified file 'tests/unittests/gallerystandardimageprovider/preview-manager.cpp'
--- tests/unittests/gallerystandardimageprovider/preview-manager.cpp 2013-06-05 08:52:51 +0000
+++ tests/unittests/gallerystandardimageprovider/preview-manager.cpp 2013-06-06 16:04:27 +0000
@@ -20,8 +20,8 @@
2020
21#include <QDir>21#include <QDir>
2222
23#include "media/preview-manager.h"23#include "preview-manager.h"
24#include "media/media-collection.h"24#include "media-collection.h"
2525
26const int PreviewManager::PREVIEW_SIZE = 360;26const int PreviewManager::PREVIEW_SIZE = 360;
27const QString PreviewManager::PREVIEW_DIR = ".thumbs";27const QString PreviewManager::PREVIEW_DIR = ".thumbs";
2828
=== modified file 'tests/unittests/gallerystandardimageprovider/tst_gallerystandardimageprovidertest.cpp'
--- tests/unittests/gallerystandardimageprovider/tst_gallerystandardimageprovidertest.cpp 2013-06-04 11:32:12 +0000
+++ tests/unittests/gallerystandardimageprovider/tst_gallerystandardimageprovidertest.cpp 2013-06-06 16:04:27 +0000
@@ -23,9 +23,9 @@
23#include <QFileInfo>23#include <QFileInfo>
24#include <QUrl>24#include <QUrl>
2525
26#include "qml/gallery-standard-image-provider.h"26#include "gallery-standard-image-provider.h"
27#include "media/preview-manager.h"27#include "preview-manager.h"
28#include "media/media-collection.h"28#include "media-collection.h"
29#include "gallery-manager.h"29#include "gallery-manager.h"
3030
31class tst_GalleryStandardImageProvider : public QObject31class tst_GalleryStandardImageProvider : public QObject
3232
=== modified file 'tests/unittests/gallerythumbnailimageprovider/CMakeLists.txt'
--- tests/unittests/gallerythumbnailimageprovider/CMakeLists.txt 2013-06-04 09:24:50 +0000
+++ tests/unittests/gallerythumbnailimageprovider/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -5,8 +5,9 @@
5endif()5endif()
66
7include_directories(7include_directories(
8 ${gallery_media_src_SOURCE_DIR}
9 ${gallery_qml_src_SOURCE_DIR}
8 ${CMAKE_BINARY_DIR}10 ${CMAKE_BINARY_DIR}
9 ${gallery_src_SOURCE_DIR}
10 ${GSTLIB_INCLUDE_DIRS}11 ${GSTLIB_INCLUDE_DIRS}
11 )12 )
1213
1314
=== removed directory 'tests/unittests/gallerythumbnailimageprovider/media'
=== removed file 'tests/unittests/gallerythumbnailimageprovider/media/media-collection.h'
--- tests/unittests/gallerythumbnailimageprovider/media/media-collection.h 2013-06-04 11:32:12 +0000
+++ tests/unittests/gallerythumbnailimageprovider/media/media-collection.h 1970-01-01 00:00:00 +0000
@@ -1,28 +0,0 @@
1/*
2 * Copyright (C) 2013 Canonical Ltd
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef GALLERY_MEDIA_COLLECTION_H_
18#define GALLERY_MEDIA_COLLECTION_H_
19
20#include <QDir>
21
22class MediaCollection
23{
24public:
25 MediaCollection(const QDir& directory) {Q_UNUSED(directory);}
26};
27
28#endif
290
=== modified file 'tests/unittests/gallerythumbnailimageprovider/preview-manager.cpp'
--- tests/unittests/gallerythumbnailimageprovider/preview-manager.cpp 2013-06-05 08:52:51 +0000
+++ tests/unittests/gallerythumbnailimageprovider/preview-manager.cpp 2013-06-06 16:04:27 +0000
@@ -20,7 +20,7 @@
2020
21#include <QDir>21#include <QDir>
2222
23#include "media/preview-manager.h"23#include "preview-manager.h"
2424
25const QString PreviewManager::PREVIEW_DIR = ".thumbs";25const QString PreviewManager::PREVIEW_DIR = ".thumbs";
26const char* PreviewManager::PREVIEW_FILE_EXT = "JPG";26const char* PreviewManager::PREVIEW_FILE_EXT = "JPG";
2727
=== modified file 'tests/unittests/gallerythumbnailimageprovider/tst_gallerythumbnailimageprovider.cpp'
--- tests/unittests/gallerythumbnailimageprovider/tst_gallerythumbnailimageprovider.cpp 2013-05-28 13:50:03 +0000
+++ tests/unittests/gallerythumbnailimageprovider/tst_gallerythumbnailimageprovider.cpp 2013-06-06 16:04:27 +0000
@@ -21,7 +21,7 @@
21#include <QFileInfo>21#include <QFileInfo>
22#include <QUrl>22#include <QUrl>
2323
24#include "qml/gallery-thumbnail-image-provider.h"24#include "gallery-thumbnail-image-provider.h"
2525
26class tst_GalleryThumbnailImageProvider : public QObject26class tst_GalleryThumbnailImageProvider : public QObject
27{27{
2828
=== modified file 'tests/unittests/imaging/CMakeLists.txt'
--- tests/unittests/imaging/CMakeLists.txt 2013-05-28 13:50:03 +0000
+++ tests/unittests/imaging/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -5,8 +5,8 @@
5endif()5endif()
66
7include_directories(7include_directories(
8 ${gallery_util_src_SOURCE_DIR}
8 ${CMAKE_BINARY_DIR}9 ${CMAKE_BINARY_DIR}
9 ${gallery_src_SOURCE_DIR}
10 )10 )
1111
12add_executable(imaging12add_executable(imaging
1313
=== modified file 'tests/unittests/imaging/tst_imaging.cpp'
--- tests/unittests/imaging/tst_imaging.cpp 2013-02-19 12:50:54 +0000
+++ tests/unittests/imaging/tst_imaging.cpp 2013-06-06 16:04:27 +0000
@@ -17,7 +17,7 @@
17#include <QtTest/QtTest>17#include <QtTest/QtTest>
18#include <QString>18#include <QString>
1919
20#include "util/imaging.h"20#include "imaging.h"
2121
22class tst_Imaging : public QObject22class tst_Imaging : public QObject
23{23{
2424
=== modified file 'tests/unittests/resource/CMakeLists.txt'
--- tests/unittests/resource/CMakeLists.txt 2013-05-28 13:50:03 +0000
+++ tests/unittests/resource/CMakeLists.txt 2013-06-06 16:04:27 +0000
@@ -6,7 +6,7 @@
66
7include_directories(7include_directories(
8 ${CMAKE_BINARY_DIR}8 ${CMAKE_BINARY_DIR}
9 ${gallery_src_SOURCE_DIR}9 ${gallery_util_src_SOURCE_DIR}
10 )10 )
1111
12add_executable(resource12add_executable(resource
1313
=== modified file 'tests/unittests/resource/tst_resource.cpp'
--- tests/unittests/resource/tst_resource.cpp 2013-06-05 08:52:51 +0000
+++ tests/unittests/resource/tst_resource.cpp 2013-06-06 16:04:27 +0000
@@ -21,7 +21,7 @@
21#include <QStandardPaths>21#include <QStandardPaths>
22#include <QString>22#include <QString>
2323
24#include "util/resource.h"24#include "resource.h"
2525
26class tst_Resource : public QObject26class tst_Resource : public QObject
27{27{

Subscribers

People subscribed via source and target branches