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)
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); }
Thank you. That's great!