Bug 118936 - Calendar wizard should default to next year
Summary: Calendar wizard should default to next year
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Calendar (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-24 01:18 UTC by Thomas Bettler
Modified: 2018-03-23 21:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2005-12-24 01:18:34 UTC
Version:           0.1.0_rc1 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
OS:                Linux

kipi calendar wizard should default to next year if current date > june

Most people use the wizzard to create next year's calendar in november or december. Therefore the year should default to next year in this situation. This helps avoiding mistakes... (Yes, I just realized I forgot to put 2006)
Comment 1 Tom Albers 2005-12-28 16:06:28 UTC
SVN commit 492038 by toma:

Put in an extra warning for making a calendar for a year in the past and for the current year if it is in the second half of the year...
BUG: 118936


 M  +15 -5     calwizard.cpp  


--- trunk/extragear/libs/kipi-plugins/calendar/calwizard.cpp #492037:492038
@@ -224,17 +224,27 @@
                 printList.append(month);
             }
         }
-
+        
         if (!monthNumbers_.empty()) {
             QString year = QString::number(cSettings_->getYear());
-            wPrintLabel_->setText(i18n("Click Next to start Printing\n\n"
+            
+            QString extra;
+            if (QDate::currentDate().month() >= 6 && 
+                QDate::currentDate().year() >= cSettings_->getYear())
+                extra = "<br><br><b>"+i18n("Please note that you are making a "
+                        "calendar for the current year or a year in the "
+                        "past.")+"</b>";
+            
+            wPrintLabel_->setText(i18n("Click Next to start Printing<br><br>"
                                        "Following months will be printed for year %1:").arg(year)
-                                  + QString("\n")
-                             + printList.join("\n"));
+                                  + QString("<br>")
+                             + printList.join("<br>") + extra);
+            wPrintLabel_->setTextFormat(Qt::RichText);
+                
             setNextEnabled(wPrint_, true);
         }
         else {
-            wPrintLabel_->setText(i18n("No valid images selected for months\n"
+            wPrintLabel_->setText(i18n("No valid images selected for months<br>"
                                        "Click Back to select images"));
             setNextEnabled(wPrint_, false);
         }
Comment 2 Thomas Bettler 2005-12-28 20:35:28 UTC
Thank you. That's great!