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

List:       kde-pim
Subject:    Re: [Kde-pim] KORganizer "Go Forward / Backward" functions
From:       Reinhold Kainhofer <reinhold () kainhofer ! com>
Date:       2005-10-27 8:15:36
Message-ID: 200510271015.41307.reinhold () kainhofer ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 27 October 2005 00:53, Kevin Gilbert wrote:
> --- datenavigator.cpp   2005-09-10 17:54:47.000000000 +0930
> +++
> /usr/local/src/kde/kde-3.5-beta-2/kdepim-3.4.92/korganizer/datenavigator.cp
>p 2005-10-26 18:15:54.000000000 +0930
> @@ -218,6 +218,11 @@
>    if ( datesCount() == 1 ) {
>      offset = -1;
>    }
> +  else
> +  if ( datesCount() == 3 ) {
> +    offset = -3;

The problem is that the "next N days" can be configured to any value, so 
checking for a hardcoded 3 is not really useful...

How about:
datesCount()==1: advance 1 day
1<N=datesCount()<5: advance N days
5<=datesCount()<30: advance 1 week
30<=datesCount(): advance 1 month

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDYIytTqjEwhXvPN0RAo8rAJ9rpY+58mlUIKT1lznqQfWNkVV6MwCgkMBc
c1vJ3I3VvZD+q24nm8MrpMM=
=/im5
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

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