[Digikam-devel] [Bug 134037] New: order of images returned is not same as that of current digikam view

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] New: order of images returned is not same as that of current digikam view

D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
           Summary: order of images returned is not same as that of current
                    digikam view
           Product: digikam
           Version: unspecified
          Platform: Mandriva RPMs
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: Kipiinterface
        AssignedTo: digikam-devel kde org
        ReportedBy: dbera.web gmail com


Version:           CVS (0.9b) (using KDE KDE 3.5.4)
Installed from:    Mandriva RPMs
OS:                Linux

The list of images returned to kipi plugins are sorted in the order in which they are stored in the database which _may_not_ be same as the current view order. This causes problem in some kipi plugins - like HTML export plugin in which frequently users would want to have the images sorted according to the date.

Either the kipi plugins could ask for a specific sort order which asking for the list of images or (by default) could return them in the same sorting order as in the current view.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From dbera.web gmail com  2006-09-13 23:54 -------
A bad way of fixing the problems for date order would be to add replace

execSql( QString("SELECT Albums.url||'/'||Images.name FROM Images, Albums "
                 "WHERE Albums.id=%1 AND Albums.id=Images.dirid;")

by

execSql( QString("SELECT Albums.url||'/'||Images.name FROM Images, Albums "
                 "WHERE Albums.id=%1 AND Albums.id=Images.dirid ORDER BY Images.datetime;")

Obviously this only works when the images should be returned according to date but not for anything else. A better and complete fix is in order.
Thanks.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

D Bera
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
dbera.web gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |0.9.0-svn



------- Additional Comments From dbera.web gmail com  2006-09-14 22:40 -------
Blocks #127888
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Bugzilla from owner@bugs.kde.org
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
caulier.gilles free fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marko freebsd org



------- Additional Comments From caulier.gilles free fr  2006-09-14 22:44 -------
*** Bug 127888 has been marked as a duplicate of this bug. ***
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

D Bera
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From dbera.web gmail com  2006-09-18 22:51 -------
Created an attachment (id=17831)
 --> (http://bugs.kde.org/attachment.cgi?id=17831&action=view)
AlbumDB returns images in current digikam-view order

Based on what the current "sort images" order is in digikam, return the images
in the same sort order. This way the user gets a consistent ordering of images
when trying to use some kipi plugin on the images.

File-size isnt stored in the database. I wasnt sure if this is the right way to
fix this, so I didnt make extra effort to sort it according to filesize if
thats the current view. I can add sorting by file-size (I need to know where to
get file-size information from) if this is the preferred to way to return
images in correct order.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Bugzilla from owner@bugs.kde.org
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
dbera.web gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frederic.coiffier free fr



------- Additional Comments From dbera.web gmail com  2006-09-19 13:55 -------
*** Bug 129870 has been marked as a duplicate of this bug. ***
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Frédéric COIFFIER
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From frederic.coiffier free fr  2006-11-15 09:51 -------
Will this patch be integrated in Digikam-0.9 ?
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Gilles Caulier-2
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
caulier.gilles kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|NOR                         |VHI



------- Additional Comments From caulier.gilles kdemail net  2006-11-15 11:11 -------
yes, it think it can be. We will take a look. Marcel, Paco ?

Gilles Caulier
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Marcel Wiesweg
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From marcel.wiesweg gmx de  2006-11-15 17:14 -------
No objection from me.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

D Bera
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From dbera.web gmail com  2006-11-15 17:30 -------
Marcel, in case you overlooked, my patch doesnt work when digikam images are sorted in order of "size". It works for everything else. I explain this in my comment above. Its a limitation/bug that I want whoever commits it to be aware of.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Gilles Caulier-2
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From caulier.gilles kdemail net  2006-11-15 18:11 -------
Debajyoti,

Are you a solution for this problem ?

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

D Bera
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From dbera.web gmail com  2006-11-15 18:29 -------
Nops Gilles. I dont have a quick and easy solution. The size info is not stored in the database, so it would involve substantial change of code in kipi and maybe other place.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Frédéric COIFFIER
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From frederic.coiffier free fr  2006-11-17 12:12 -------
Is it possible to store file sizes in the database without breaking the compatibility ? When the database content is refreshed ? If a file size changed, will its value in the database be refreshed automatically ?
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Gilles Caulier-2
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From caulier.gilles kdemail net  2006-11-17 12:35 -------
no. We won't touch database with 0.9.0 release. But, we will do it later 0.9.0. In fact we wil working on a new DB interface and a new DB structure with more informations like GPS, image size, photo info form Exif/makenote, etc.

Fréderic, if you is interessed to work with digiKam team about this subject, let's me hear...

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Gilles Caulier-2
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From caulier.gilles kdemail net  2006-11-17 13:09 -------
ok, clean up all kipi-plugins source code (remove), do a fresh checkout from svn and try again.

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Arnd Baecker
still the same compile error:
[...]
kpaboutdata.cpp: In constructor
`KIPIPlugins::KPAboutData::KPAboutData(const
   char*, const char*, int, const char*, const char*)':
kpaboutdata.cpp:51: error: invalid use of undefined type `struct QImage'
/usr/share/qt3/include/qwindowdefs.h:74: error: forward declaration of
`struct
   QImage'
kpaboutdata.cpp:51: error: `setProgramLogo' undeclared (first use this
   function)
[...]

I am just running
http://www.digikam.org/?q=system/files&file=compile_digikam.txt
So if this works for others, it could well be my system
(too old libraries etc.?), but I don't know which it could be ...

Best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Arnd Baecker
In reply to this post by Gilles Caulier-2
OK, I made some progress:

googling for the error message lead me to
http://sourceforge.net/mailarchive/forum.php?forum_id=6890&max_rows=25&style=flat&viewmonth=200510
which suggested to include
  #include <qimage.h>
which I did in kpaboutdata.cpp.
Then the next error I get is (still the same file ;-()

kpaboutdata.cpp: In constructor
`KIPIPlugins::KPAboutData::KPAboutData(const
   char*, const char*, int, const char*, const char*)':
kpaboutdata.cpp:53: error: `setProgramLogo' undeclared (first use this
   function)
kpaboutdata.cpp:53: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)

Another google makes me believe that setProgramLogo
is KDE >=3.4,
http://archives.devshed.com/forums/kde-96/kde-version-in-define-1334583.html

So this would mean I cannot compile current svn at all presently ...

Best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Arnd Baecker
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From arnd.baecker web de  2006-11-17 14:53 -------
OK, I made some progress:

googling for the error message lead me to
http://sourceforge.net/mailarchive/forum.php?forum_id=6890&max_rows=25&style=flat&viewmonth=200510
which suggested to include
  #include <qimage.h>
which I did in kpaboutdata.cpp.
Then the next error I get is (still the same file ;-()

kpaboutdata.cpp: In constructor
`KIPIPlugins::KPAboutData::KPAboutData(const
   char*, const char*, int, const char*, const char*)':
kpaboutdata.cpp:53: error: `setProgramLogo' undeclared (first use this
   function)
kpaboutdata.cpp:53: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)

Another google makes me believe that setProgramLogo
is KDE >=3.4,
http://archives.devshed.com/forums/kde-96/kde-version-in-define-1334583.html

So this would mean I cannot compile current svn at all presently ...

Best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Arnd Baecker
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         




------- Additional Comments From arnd.baecker web de  2006-11-17 14:59 -------
still the same compile error:
[...]
kpaboutdata.cpp: In constructor
`KIPIPlugins::KPAboutData::KPAboutData(const
   char*, const char*, int, const char*, const char*)':
kpaboutdata.cpp:51: error: invalid use of undefined type `struct QImage'
/usr/share/qt3/include/qwindowdefs.h:74: error: forward declaration of
`struct
   QImage'
kpaboutdata.cpp:51: error: `setProgramLogo' undeclared (first use this
   function)
[...]

I am just running
http://www.digikam.org/?q=system/files&file=compile_digikam.txt
So if this works for others, it could well be my system
(too old libraries etc.?), but I don't know which it could be ...

Best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [Bug 134037] order of images returned is not same as that of current digikam view

Gilles Caulier-2
In reply to this post by D Bera
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134037         
caulier.gilles kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |valerio.fuoglio kdemail net



------- Additional Comments From caulier.gilles kdemail net  2006-11-17 15:56 -------
Valerio, Angelo, KAboutData must be compilable at least with under all KDE 3.3 release. Thanks in advance to fix it.

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
12