Summary: | KOrganizer should round to the nearest 5 minutes, (or custom unit) instead of nearest 15 minutes | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | BryanFRitt <BryanFRitt> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | BryanFRitt, winter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
the modified koagenda.cpp
the modified koagendaview.cpp the modified korganizer.kcfg koagenda.cpp koagendaview.cpp korganizer.kcfg koagenda for KDE 3.5.10 koagendaview for KDE 3.5.10 korganizer for KDE 3.5.10 timelabels for KDE 3.5.10 |
Description
BryanFRitt
2008-06-16 11:41:52 UTC
p.s. 1 * 1 * day = 1440 * 1 * minute = 720 * 2 * minute = 480 * 3 * minute = 360 * 4 * minute = 288 * 5 * minute = 240 * 6 * minute = 144 * 10 * minute = 120 * 12 * minute = 96 * 15 * minute = 48 * 30 * minute = 24 * 60 * minute = 24 * 1 * hour = 1 * 1 * day... and most desktop screens resolution are now of days are from 800x600 to 2048x1536, which gives plenty of room 5 minute intervals and another weird idea to consider would be sub dividing each row up into individual minutes the in the perpendicular direction, but I betting it wouldn't be worth it. ----------- | | | | | | ----------- | | | | | | ----------- | | | | | | ----------- | | | | | | ----------- and 1440 = 2^5 * 3^2 * 5^1 720 = 2^4 * 3^2 * 5^1 480 = 2^5 * 3^1 * 5^1 360 = 2^3 * 3^2 * 5^1 288 = 2^5 * 3^1 * 5^0 240 = 2^4 * 3^1 * 5^1 144 = 2^4 * 3^2 * 5^0 120 = 2^3 * 3^1 * 5^1 96 = 2^5 * 3^1 * 5^0 48 = 2^4 * 3^1 * 5^0 24 = 2^3 * 3^1 * 5^0 1 = 2^0 * 3^0 * 5^0 4 = 2 * 2 6 = 2 * 3 10 = 2 * 5 12 = 2 * 2 * 3 15 = 3 * 5 30 = 2 * 3 * 5 60 = 2 * 2 * 3 * 5 not quite sure why I did all this math... I submitted the more than 24 hours a day bug to: http://bugs.kde.org/show_bug.cgi?id=164209 These two bugs kind of related (<-not really sure how to say, what I meant to say here) Being able to one mouse stroke to set the time and duration of an event would be really nice. Compare it to what I would have to do without this option: Select an approximate time frame go to and click on the start time delete the minutes type in the new minutes go to and click on the end time delete the minutes type in the new minutes If all that could be reduced to one mouse stroke, I'd be really greatfull. (and others too!) Thanks, Bryan Created attachment 25556 [details]
the modified koagenda.cpp
Created attachment 25557 [details]
the modified koagendaview.cpp
Created attachment 25558 [details]
the modified korganizer.kcfg
I looked at the source code, and modified it, so that I could use the agenda view at the 5 minute level, the time line now goes at 20 minute increments (like , 8:00, 8:20, 8:40, 9:00) but the view itself now goes at 5 minute intervals. I set it up so someone could (somewhat) easily change it from 5 minute intervals to something else. If you want you can add the option to change the base calendar unit to the settings configure views menu(my recommendation). All lines changes with changes that I've done say Bryan(me) on them, so you find what I've done, and modify it more easily. If you like it say thanks, make comments, etc... Thanks for the extensive patch Bryan. We are in feature freeze for the upcoming 4.1 release currently. But please remind us about this patch when we open up for 4.2 features, which should be in about 1 month. -Allen These were made from the KDE/KOrganizer 3.5.9 source code, feel free to modify/include in 4.2, etc... "But please remind us about this patch when we open up for 4.2 features, which should be in about 1 month." how? "But please remind us about this patch when we open up for 4.2 features, which should be in about 1 month." Posting here is the main way I thought of... I made some slight changes since last time... Created attachment 26670 [details]
koagenda.cpp
Created attachment 26671 [details]
koagendaview.cpp
Created attachment 26672 [details]
korganizer.kcfg
I don't remember which ones I changed since last time, but I know I didn't mess with any different files, so I just reposted all of them. I fixed a small bug or two since last time. Note: I didn't fix the bug caused by the width of the TimeLables being set by the Font size given in the Configure->Fonts->Time bar section instead of width of the actual font displayed. (p.s. it's been a few weeks since I last touched this code) These fixes don't change the 'Time Line View or Attendees View' (which was left 'per minute' at the original zoom), maybe somebody could fix 'Time Line View and Attendees View' to work like the above patches (which work for the other non-month views) and round to the nearest 5 minutes (or custom unit). I don't think I'll end up messing with it. (In reply to comment #8) > Thanks for the extensive patch Bryan. > > We are in feature freeze for the upcoming 4.1 release currently. > > But please remind us about this patch when we open up for 4.2 features, which > should be in about 1 month. > > -Allen > Can I get some conformation as to rather or not this, or something like this will be included in kde 4.2...? It can be. I am not ignoring you. But I am swamped with KDE stuff these days. Would you like to become a KOrganizer developer so you can help make a better product? We really need new blood in the project. If not.. well, I'll get to it when I can. Created attachment 33455 [details]
koagenda for KDE 3.5.10
remove the "-3.5.10" and compile with the other ones from "-3.5.10"
Created attachment 33456 [details]
koagendaview for KDE 3.5.10
remove the "-3.5.10" and compile with the other ones from "-3.5.10"
Created attachment 33457 [details]
korganizer for KDE 3.5.10
remove the "-3.5.10" and compile with the other ones from "-3.5.10"
Created attachment 33458 [details]
timelabels for KDE 3.5.10
remove the "-3.5.10" and compile with the other ones from "-3.5.10"
I got the original source for the "-3.5.10" ones from KUbuntu 8.04. and the older ones are for KDE 3.5.09 |