summaryrefslogtreecommitdiffstats
path: root/libkcal/incidenceformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/incidenceformatter.cpp')
-rw-r--r--libkcal/incidenceformatter.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/libkcal/incidenceformatter.cpp b/libkcal/incidenceformatter.cpp
index 063ccf07..7632b17e 100644
--- a/libkcal/incidenceformatter.cpp
+++ b/libkcal/incidenceformatter.cpp
@@ -221,7 +221,7 @@ static TQString displayViewLinkPerson( const TQString& email, TQString name, TQS
mailto.setProtocol( "mailto" );
mailto.setPath( email );
const TQString iconPath =
- KGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
+ TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
tmpString += " " +
htmlAddLink( mailto.url(),
"<img valign=\"top\" src=\"" + iconPath + "\">" );
@@ -401,38 +401,38 @@ static TQString displayViewFormatHeader( Incidence *incidence )
if ( incidence->customProperty( "KABC", "BIRTHDAY" ) == "YES" ) {
if ( incidence->customProperty( "KABC", "ANNIVERSARY" ) == "YES" ) {
iconPath =
- KGlobal::iconLoader()->iconPath( "calendaranniversary", KIcon::Small );
+ TDEGlobal::iconLoader()->iconPath( "calendaranniversary", KIcon::Small );
} else {
- iconPath = KGlobal::iconLoader()->iconPath( "calendarbirthday", KIcon::Small );
+ iconPath = TDEGlobal::iconLoader()->iconPath( "calendarbirthday", KIcon::Small );
}
} else {
- iconPath = KGlobal::iconLoader()->iconPath( "appointment", KIcon::Small );
+ iconPath = TDEGlobal::iconLoader()->iconPath( "appointment", KIcon::Small );
}
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
}
if ( incidence->type() == "Todo" ) {
tmpStr += "<img valign=\"top\" src=\"" +
- KGlobal::iconLoader()->iconPath( "todo", KIcon::Small ) +
+ TDEGlobal::iconLoader()->iconPath( "todo", KIcon::Small ) +
"\">";
}
if ( incidence->type() == "Journal" ) {
tmpStr += "<img valign=\"top\" src=\"" +
- KGlobal::iconLoader()->iconPath( "journal", KIcon::Small ) +
+ TDEGlobal::iconLoader()->iconPath( "journal", KIcon::Small ) +
"\">";
}
if ( incidence->isAlarmEnabled() ) {
tmpStr += "<img valign=\"top\" src=\"" +
- KGlobal::iconLoader()->iconPath( "bell", KIcon::Small ) +
+ TDEGlobal::iconLoader()->iconPath( "bell", KIcon::Small ) +
"\">";
}
if ( incidence->doesRecur() ) {
tmpStr += "<img valign=\"top\" src=\"" +
- KGlobal::iconLoader()->iconPath( "recur", KIcon::Small ) +
+ TDEGlobal::iconLoader()->iconPath( "recur", KIcon::Small ) +
"\">";
}
if ( incidence->isReadOnly() ) {
tmpStr += "<img valign=\"top\" src=\"" +
- KGlobal::iconLoader()->iconPath( "readonlyevent", KIcon::Small ) +
+ TDEGlobal::iconLoader()->iconPath( "readonlyevent", KIcon::Small ) +
"\">";
}
@@ -1174,7 +1174,7 @@ static TQString invitationPerson( const TQString& email, TQString name, TQString
mailto.setProtocol( "mailto" );
mailto.setPath( person.fullName() );
const TQString iconPath =
- KGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
+ TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
tmpString += "&nbsp;" +
htmlAddLink( mailto.url(), "<img src=\"" + iconPath + "\">" )
;
@@ -1365,10 +1365,10 @@ static TQString invitationDetailsEvent( Event* event, bool noHtmlMode )
for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) {
if (isFirstExRow == true) {
isFirstExRow = false;
- html += invitationRow( i18n("Cancelled on:"), KGlobal::locale()->formatDate(* ex_iter ) );
+ html += invitationRow( i18n("Cancelled on:"), TDEGlobal::locale()->formatDate(* ex_iter ) );
}
else {
- html += invitationRow(" ", KGlobal::locale()->formatDate(* ex_iter ) );
+ html += invitationRow(" ", TDEGlobal::locale()->formatDate(* ex_iter ) );
}
}
}
@@ -1487,7 +1487,7 @@ static TQString invitationDetailsFreeBusy( FreeBusy *fb, bool /*noHtmlMode*/ )
html += invitationRow( i18n("Start date:"),
IncidenceFormatter::dateToString( fb->dtStart(), true ) );
html += invitationRow( i18n("End date:"),
- KGlobal::locale()->formatDate( fb->dtEnd().date(), true ) );
+ TDEGlobal::locale()->formatDate( fb->dtEnd().date(), true ) );
html += "<tr><td colspan=2><hr></td></tr>\n";
html += "<tr><td colspan=2>Busy periods given in this free/busy object:</td></tr>\n";
@@ -1511,19 +1511,19 @@ static TQString invitationDetailsFreeBusy( FreeBusy *fb, bool /*noHtmlMode*/ )
cont += i18n("1 second", "%n seconds", dur);
}
html += invitationRow( TQString(), i18n("startDate for duration", "%1 for %2")
- .arg( KGlobal::locale()->formatDateTime( per.start(), false ) )
+ .arg( TDEGlobal::locale()->formatDateTime( per.start(), false ) )
.arg(cont) );
} else {
TQString cont;
if ( per.start().date() == per.end().date() ) {
cont = i18n("date, fromTime - toTime ", "%1, %2 - %3")
- .arg( KGlobal::locale()->formatDate( per.start().date() ) )
- .arg( KGlobal::locale()->formatTime( per.start().time() ) )
- .arg( KGlobal::locale()->formatTime( per.end().time() ) );
+ .arg( TDEGlobal::locale()->formatDate( per.start().date() ) )
+ .arg( TDEGlobal::locale()->formatTime( per.start().time() ) )
+ .arg( TDEGlobal::locale()->formatTime( per.end().time() ) );
} else {
cont = i18n("fromDateTime - toDateTime", "%1 - %2")
- .arg( KGlobal::locale()->formatDateTime( per.start(), false ) )
- .arg( KGlobal::locale()->formatDateTime( per.end(), false ) );
+ .arg( TDEGlobal::locale()->formatDateTime( per.start(), false ) )
+ .arg( TDEGlobal::locale()->formatDateTime( per.end(), false ) );
}
html += invitationRow( TQString(), cont );
@@ -2005,7 +2005,7 @@ static TQString invitationAttachments( InvitationFormatterHelper *helper, Incide
// Attachment icon
KMimeType::Ptr mimeType = KMimeType::mimeType( a->mimeType() );
const TQString iconStr = mimeType ? mimeType->icon( a->uri(), false ) : TQString( "application-octet-stream" );
- const TQString iconPath = KGlobal::iconLoader()->iconPath( iconStr, KIcon::Small );
+ const TQString iconPath = TDEGlobal::iconLoader()->iconPath( iconStr, KIcon::Small );
if ( !iconPath.isEmpty() ) {
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
}
@@ -3320,9 +3320,9 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal )
TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb )
{
TQString tmp( "<br>" + i18n("<i>Period start:</i>&nbsp;%1") );
- TQString ret = tmp.arg( KGlobal::locale()->formatDateTime( fb->dtStart() ) );
+ TQString ret = tmp.arg( TDEGlobal::locale()->formatDateTime( fb->dtStart() ) );
tmp = "<br>" + i18n("<i>Period start:</i>&nbsp;%1");
- ret += tmp.arg( KGlobal::locale()->formatDateTime( fb->dtEnd() ) );
+ ret += tmp.arg( TDEGlobal::locale()->formatDateTime( fb->dtEnd() ) );
return ret;
}
@@ -3637,9 +3637,9 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
// TODO_Recurrence: What to do with floating
TQString endstr;
if ( event->doesFloat() ) {
- endstr = KGlobal::locale()->formatDate( recur->endDate() );
+ endstr = TDEGlobal::locale()->formatDate( recur->endDate() );
} else {
- endstr = KGlobal::locale()->formatDateTime( recur->endDateTime() );
+ endstr = TDEGlobal::locale()->formatDateTime( recur->endDateTime() );
}
mResult += i18n("Repeat until: %1\n").arg( endstr );
} else {
@@ -3652,7 +3652,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
mResult += i18n("This recurring meeting has been cancelled on the following days:\n");
DateList::ConstIterator ex_iter;
for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) {
- mResult += i18n(" %1\n").arg( KGlobal::locale()->formatDate(* ex_iter ) );
+ mResult += i18n(" %1\n").arg( TDEGlobal::locale()->formatDate(* ex_iter ) );
}
}
}
@@ -3722,9 +3722,9 @@ static TQString recurEnd( Incidence *incidence )
{
TQString endstr;
if ( incidence->doesFloat() ) {
- endstr = KGlobal::locale()->formatDate( incidence->recurrence()->endDate() );
+ endstr = TDEGlobal::locale()->formatDate( incidence->recurrence()->endDate() );
} else {
- endstr = KGlobal::locale()->formatDateTime( incidence->recurrence()->endDateTime() );
+ endstr = TDEGlobal::locale()->formatDateTime( incidence->recurrence()->endDateTime() );
}
return endstr;
}
@@ -3801,10 +3801,10 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence )
dayList.append( i18n( "29th" ) );
dayList.append( i18n( "30th" ) );
dayList.append( i18n( "31st" ) );
- int weekStart = KGlobal::locale()->weekStartDay();
+ int weekStart = TDEGlobal::locale()->weekStartDay();
TQString dayNames;
TQString recurStr, txt;
- const KCalendarSystem *calSys = KGlobal::locale()->calendar();
+ const KCalendarSystem *calSys = TDEGlobal::locale()->calendar();
Recurrence *recur = incidence->recurrence();
switch ( recur->recurrenceType() ) {
case Recurrence::rNone:
@@ -4017,13 +4017,13 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence )
TQString IncidenceFormatter::timeToString( const TQDateTime &date, bool shortfmt )
{
- return KGlobal::locale()->formatTime( date.time(), !shortfmt );
+ return TDEGlobal::locale()->formatTime( date.time(), !shortfmt );
}
TQString IncidenceFormatter::dateToString( const TQDateTime &date, bool shortfmt )
{
return
- KGlobal::locale()->formatDate( date.date(), shortfmt );
+ TDEGlobal::locale()->formatDate( date.date(), shortfmt );
}
TQString IncidenceFormatter::dateTimeToString( const TQDateTime &date,
@@ -4033,7 +4033,7 @@ TQString IncidenceFormatter::dateTimeToString( const TQDateTime &date,
return dateToString( date, shortfmt );
}
- return KGlobal::locale()->formatDateTime( date, shortfmt );
+ return TDEGlobal::locale()->formatDateTime( date, shortfmt );
}
TQString IncidenceFormatter::resourceString( Calendar *calendar, Incidence *incidence )
@@ -4133,7 +4133,7 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
if ( alarm->hasTime() ) {
offset = 0;
if ( alarm->time().isValid() ) {
- atStr = KGlobal::locale()->formatDateTime( alarm->time() );
+ atStr = TDEGlobal::locale()->formatDateTime( alarm->time() );
}
} else if ( alarm->hasStartOffset() ) {
offset = alarm->startOffset().asSeconds();
@@ -4146,7 +4146,7 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
"%1 after the start" );
} else { //offset is 0
if ( incidence->dtStart().isValid() ) {
- atStr = KGlobal::locale()->formatDateTime( incidence->dtStart() );
+ atStr = TDEGlobal::locale()->formatDateTime( incidence->dtStart() );
}
}
} else if ( alarm->hasEndOffset() ) {
@@ -4172,12 +4172,12 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
if ( incidence->type() == "Todo" ) {
Todo *t = static_cast<Todo *>( incidence );
if ( t->dtDue().isValid() ) {
- atStr = KGlobal::locale()->formatDateTime( t->dtDue() );
+ atStr = TDEGlobal::locale()->formatDateTime( t->dtDue() );
}
} else {
Event *e = static_cast<Event *>( incidence );
if ( e->dtEnd().isValid() ) {
- atStr = KGlobal::locale()->formatDateTime( e->dtEnd() );
+ atStr = TDEGlobal::locale()->formatDateTime( e->dtEnd() );
}
}
}