@ -221,7 +221,7 @@ static TQString displayViewLinkPerson( const TQString& email, TQString name, TQS
mailto . setProtocol ( " mailto " ) ;
mailto . setPath ( email ) ;
const TQString iconPath =
K Global: : iconLoader ( ) - > iconPath ( " mail_new " , KIcon : : Small ) ;
TDE Global: : 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 =
K Global: : iconLoader ( ) - > iconPath ( " calendaranniversary " , KIcon : : Small ) ;
TDE Global: : iconLoader ( ) - > iconPath ( " calendaranniversary " , KIcon : : Small ) ;
} else {
iconPath = K Global: : iconLoader ( ) - > iconPath ( " calendarbirthday " , KIcon : : Small ) ;
iconPath = TDE Global: : iconLoader ( ) - > iconPath ( " calendarbirthday " , KIcon : : Small ) ;
}
} else {
iconPath = K Global: : iconLoader ( ) - > iconPath ( " appointment " , KIcon : : Small ) ;
iconPath = TDE Global: : iconLoader ( ) - > iconPath ( " appointment " , KIcon : : Small ) ;
}
tmpStr + = " <img valign= \" top \" src= \" " + iconPath + " \" > " ;
}
if ( incidence - > type ( ) = = " Todo " ) {
tmpStr + = " <img valign= \" top \" src= \" " +
K Global: : iconLoader ( ) - > iconPath ( " todo " , KIcon : : Small ) +
TDE Global: : iconLoader ( ) - > iconPath ( " todo " , KIcon : : Small ) +
" \" > " ;
}
if ( incidence - > type ( ) = = " Journal " ) {
tmpStr + = " <img valign= \" top \" src= \" " +
K Global: : iconLoader ( ) - > iconPath ( " journal " , KIcon : : Small ) +
TDE Global: : iconLoader ( ) - > iconPath ( " journal " , KIcon : : Small ) +
" \" > " ;
}
if ( incidence - > isAlarmEnabled ( ) ) {
tmpStr + = " <img valign= \" top \" src= \" " +
K Global: : iconLoader ( ) - > iconPath ( " bell " , KIcon : : Small ) +
TDE Global: : iconLoader ( ) - > iconPath ( " bell " , KIcon : : Small ) +
" \" > " ;
}
if ( incidence - > doesRecur ( ) ) {
tmpStr + = " <img valign= \" top \" src= \" " +
K Global: : iconLoader ( ) - > iconPath ( " recur " , KIcon : : Small ) +
TDE Global: : iconLoader ( ) - > iconPath ( " recur " , KIcon : : Small ) +
" \" > " ;
}
if ( incidence - > isReadOnly ( ) ) {
tmpStr + = " <img valign= \" top \" src= \" " +
K Global: : iconLoader ( ) - > iconPath ( " readonlyevent " , KIcon : : Small ) +
TDE Global: : 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 =
K Global: : iconLoader ( ) - > iconPath ( " mail_new " , KIcon : : Small ) ;
TDE Global: : iconLoader ( ) - > iconPath ( " mail_new " , KIcon : : Small ) ;
tmpString + = " " +
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: " ) , K Global: : locale ( ) - > formatDate ( * ex_iter ) ) ;
html + = invitationRow ( i18n ( " Cancelled on: " ) , TDE Global: : locale ( ) - > formatDate ( * ex_iter ) ) ;
}
else {
html + = invitationRow ( " " , K Global: : locale ( ) - > formatDate ( * ex_iter ) ) ;
html + = invitationRow ( " " , TDE Global: : 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: " ) ,
K Global: : locale ( ) - > formatDate ( fb - > dtEnd ( ) . date ( ) , true ) ) ;
TDE Global: : 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 ( K Global: : locale ( ) - > formatDateTime ( per . start ( ) , false ) )
. arg ( TDE Global: : 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 ( K Global: : locale ( ) - > formatDate ( per . start ( ) . date ( ) ) )
. arg ( K Global: : locale ( ) - > formatTime ( per . start ( ) . time ( ) ) )
. arg ( K Global: : locale ( ) - > formatTime ( per . end ( ) . time ( ) ) ) ;
. arg ( TDE Global: : locale ( ) - > formatDate ( per . start ( ) . date ( ) ) )
. arg ( TDE Global: : locale ( ) - > formatTime ( per . start ( ) . time ( ) ) )
. arg ( TDE Global: : locale ( ) - > formatTime ( per . end ( ) . time ( ) ) ) ;
} else {
cont = i18n ( " fromDateTime - toDateTime " , " %1 - %2 " )
. arg ( K Global: : locale ( ) - > formatDateTime ( per . start ( ) , false ) )
. arg ( K Global: : locale ( ) - > formatDateTime ( per . end ( ) , false ) ) ;
. arg ( TDE Global: : locale ( ) - > formatDateTime ( per . start ( ) , false ) )
. arg ( TDE Global: : 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 = K Global: : iconLoader ( ) - > iconPath ( iconStr , KIcon : : Small ) ;
const TQString iconPath = TDE Global: : 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> %1 " ) ) ;
TQString ret = tmp . arg ( K Global: : locale ( ) - > formatDateTime ( fb - > dtStart ( ) ) ) ;
TQString ret = tmp . arg ( TDE Global: : locale ( ) - > formatDateTime ( fb - > dtStart ( ) ) ) ;
tmp = " <br> " + i18n ( " <i>Period start:</i> %1 " ) ;
ret + = tmp . arg ( K Global: : locale ( ) - > formatDateTime ( fb - > dtEnd ( ) ) ) ;
ret + = tmp . arg ( TDE Global: : 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 = K Global: : locale ( ) - > formatDate ( recur - > endDate ( ) ) ;
endstr = TDE Global: : locale ( ) - > formatDate ( recur - > endDate ( ) ) ;
} else {
endstr = K Global: : locale ( ) - > formatDateTime ( recur - > endDateTime ( ) ) ;
endstr = TDE Global: : 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 ( K Global: : locale ( ) - > formatDate ( * ex_iter ) ) ;
mResult + = i18n ( " %1 \n " ) . arg ( TDE Global: : locale ( ) - > formatDate ( * ex_iter ) ) ;
}
}
}
@ -3722,9 +3722,9 @@ static TQString recurEnd( Incidence *incidence )
{
TQString endstr ;
if ( incidence - > doesFloat ( ) ) {
endstr = K Global: : locale ( ) - > formatDate ( incidence - > recurrence ( ) - > endDate ( ) ) ;
endstr = TDE Global: : locale ( ) - > formatDate ( incidence - > recurrence ( ) - > endDate ( ) ) ;
} else {
endstr = K Global: : locale ( ) - > formatDateTime ( incidence - > recurrence ( ) - > endDateTime ( ) ) ;
endstr = TDE Global: : 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 = K Global: : locale ( ) - > weekStartDay ( ) ;
int weekStart = TDE Global: : locale ( ) - > weekStartDay ( ) ;
TQString dayNames ;
TQString recurStr , txt ;
const KCalendarSystem * calSys = K Global: : locale ( ) - > calendar ( ) ;
const KCalendarSystem * calSys = TDE Global: : 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 K Global: : locale ( ) - > formatTime ( date . time ( ) , ! shortfmt ) ;
return TDE Global: : locale ( ) - > formatTime ( date . time ( ) , ! shortfmt ) ;
}
TQString IncidenceFormatter : : dateToString ( const TQDateTime & date , bool shortfmt )
{
return
K Global: : locale ( ) - > formatDate ( date . date ( ) , shortfmt ) ;
TDE Global: : 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 K Global: : locale ( ) - > formatDateTime ( date , shortfmt ) ;
return TDE Global: : 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 = K Global: : locale ( ) - > formatDateTime ( alarm - > time ( ) ) ;
atStr = TDE Global: : 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 = K Global: : locale ( ) - > formatDateTime ( incidence - > dtStart ( ) ) ;
atStr = TDE Global: : 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 = K Global: : locale ( ) - > formatDateTime ( t - > dtDue ( ) ) ;
atStr = TDE Global: : locale ( ) - > formatDateTime ( t - > dtDue ( ) ) ;
}
} else {
Event * e = static_cast < Event * > ( incidence ) ;
if ( e - > dtEnd ( ) . isValid ( ) ) {
atStr = K Global: : locale ( ) - > formatDateTime ( e - > dtEnd ( ) ) ;
atStr = TDE Global: : locale ( ) - > formatDateTime ( e - > dtEnd ( ) ) ;
}
}
}