diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 08:19:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 08:19:44 -0600 |
commit | 6dea9442526e5ebacf313ad387c7dff4b87a53bf (patch) | |
tree | d400e34cbe644bd98c7f0d08e2e83b43597dd3ee | |
parent | 339bb51ad3721e188a57c529828a55400213ff70 (diff) | |
download | tdepim-6dea9442526e5ebacf313ad387c7dff4b87a53bf.tar.gz tdepim-6dea9442526e5ebacf313ad387c7dff4b87a53bf.zip |
Rename KLocale to enhance compatibility with KDE4
27 files changed, 45 insertions, 45 deletions
diff --git a/kaddressbook/main.cpp b/kaddressbook/main.cpp index 16c5156ec..fa2d03bf1 100644 --- a/kaddressbook/main.cpp +++ b/kaddressbook/main.cpp @@ -111,7 +111,7 @@ int KAddressBookApp::newInstance() int main( int argc, char *argv[] ) { - KLocale::setMainCatalogue( "kaddressbook" ); + TDELocale::setMainCatalogue( "kaddressbook" ); TDECmdLineArgs::init( argc, argv, KABCore::createAboutData() ); TDECmdLineArgs::addCmdLineOptions( kaddressbook_options ); diff --git a/kalarm/alarmlistview.cpp b/kalarm/alarmlistview.cpp index bf90dd864..6f88d3e4a 100644 --- a/kalarm/alarmlistview.cpp +++ b/kalarm/alarmlistview.cpp @@ -493,7 +493,7 @@ TQString AlarmListViewItem::alarmText(const KAEvent& event) const */ TQString AlarmListViewItem::alarmTimeText(const DateTime& dateTime) const { - KLocale* locale = TDEGlobal::locale(); + TDELocale* locale = TDEGlobal::locale(); TQString dateTimeText = locale->formatDate(dateTime.date(), true); if (!dateTime.isDateOnly()) { diff --git a/kmail/configuredialog.cpp b/kmail/configuredialog.cpp index 61e131b2f..6c9615185 100644 --- a/kmail/configuredialog.cpp +++ b/kmail/configuredialog.cpp @@ -3028,7 +3028,7 @@ void ComposerPage::PhrasesTab::slotAddNewLanguage( const TQString& lang ) { mPhraseLanguageCombo->setCurrentItem( mPhraseLanguageCombo->insertLanguage( lang ) ); - KLocale locale("kmail"); + TDELocale locale("kmail"); locale.setLanguage( lang ); mLanguageList.append( LanguageItem( lang, diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp index 1bf75f097..a762a7dbb 100644 --- a/kmail/headerstyle.cpp +++ b/kmail/headerstyle.cpp @@ -144,7 +144,7 @@ namespace KMail { TQString dateString; if( printing ) { TQDateTime dateTime; - KLocale * locale = TDEGlobal::locale(); + TDELocale * locale = TDEGlobal::locale(); dateTime.setTime_t( message->date() ); dateString = locale->formatDateTime( dateTime ); } else { @@ -243,7 +243,7 @@ namespace KMail { TQString dateString; if( printing ) { TQDateTime dateTime; - KLocale* locale = TDEGlobal::locale(); + TDELocale* locale = TDEGlobal::locale(); dateTime.setTime_t( message->date() ); dateString = locale->formatDateTime( dateTime ); } @@ -448,7 +448,7 @@ namespace KMail { TQString dateString; if( printing ) { TQDateTime dateTime; - KLocale* locale = TDEGlobal::locale(); + TDELocale* locale = TDEGlobal::locale(); dateTime.setTime_t( message->date() ); dateString = locale->formatDateTime( dateTime ); } @@ -914,7 +914,7 @@ namespace KMail { TQString dateString; if( printing ) { TQDateTime dateTime; - KLocale * locale = TDEGlobal::locale(); + TDELocale * locale = TDEGlobal::locale(); dateTime.setTime_t( message->date() ); dateString = locale->formatDateTime( dateTime ); } else { diff --git a/kmail/kmcomposewin.cpp b/kmail/kmcomposewin.cpp index fe145b827..636da6d37 100644 --- a/kmail/kmcomposewin.cpp +++ b/kmail/kmcomposewin.cpp @@ -2821,7 +2821,7 @@ void KMComposeWin::slotAttachFileResult(TDEIO::Job *job) partCharset = TQCString( ( *it ).url.fileEncoding().latin1() ); } else { EncodingDetector ed; - KLocale *loc = TDEGlobal::locale(); + TDELocale *loc = TDEGlobal::locale(); ed.setAutoDetectLanguage( EncodingDetector::scriptForLanguageCode ( loc->language() ) ); ed.analyze( (*it).data ); partCharset = ed.encoding(); diff --git a/kmail/kmstartup.cpp b/kmail/kmstartup.cpp index 43346fbcf..2473c8712 100644 --- a/kmail/kmstartup.cpp +++ b/kmail/kmstartup.cpp @@ -250,7 +250,7 @@ void insertLibraryCataloguesAndIcons() { "libkmime" }; - KLocale * l = TDEGlobal::locale(); + TDELocale * l = TDEGlobal::locale(); KIconLoader * il = TDEGlobal::iconLoader(); for ( unsigned int i = 0 ; i < sizeof catalogues / sizeof *catalogues ; ++i ) { l->insertCatalogue( catalogues[i] ); diff --git a/kmail/templateparser.cpp b/kmail/templateparser.cpp index 9f9a80cd2..2ff9f56a9 100644 --- a/kmail/templateparser.cpp +++ b/kmail/templateparser.cpp @@ -694,7 +694,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl ) kdDebug() << "Command: DATEEN" << endl; i += strlen( "DATEEN" ); TQDateTime date = TQDateTime::currentDateTime(); - KLocale locale( "C" ); + TDELocale locale( "C" ); TQString str = locale.formatDate( date.date(), false ); body.append( str ); @@ -723,7 +723,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl ) kdDebug() << "Command: TIMELONGEN" << endl; i += strlen( "TIMELONGEN" ); TQDateTime date = TQDateTime::currentDateTime(); - KLocale locale( "C"); + TDELocale locale( "C"); TQString str = locale.formatTime( date.time(), true ); body.append( str ); @@ -747,7 +747,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl ) if ( mOrigMsg ) { TQDateTime date; date.setTime_t( mOrigMsg->date() ); - KLocale locale( "C"); + TDELocale locale( "C"); TQString str = locale.formatDate( date.date(), false ); body.append( str ); } @@ -788,7 +788,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl ) if ( mOrigMsg ) { TQDateTime date; date.setTime_t( mOrigMsg->date() ); - KLocale locale( "C"); + TDELocale locale( "C"); TQString str = locale.formatTime( date.time(), true ); body.append( str ); } diff --git a/kmailcvt/main.cpp b/kmailcvt/main.cpp index e6c4e2431..c18dff153 100644 --- a/kmailcvt/main.cpp +++ b/kmailcvt/main.cpp @@ -28,7 +28,7 @@ static const KCmdLineOptions options[] = int main(int argc, char *argv[]) { - KLocale::setMainCatalogue("kmailcvt"); + TDELocale::setMainCatalogue("kmailcvt"); TDEAboutData aboutData( "kmailcvt", I18N_NOOP("KMailCVT"), "3", I18N_NOOP("KMail Import Filters"), TDEAboutData::License_GPL_V2, diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index 67c0654b4..47cb603a8 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp @@ -468,7 +468,7 @@ void KOEditorGeneralEvent::setDuration() void KOEditorGeneralEvent::emitDateTimeStr() { - KLocale *l = TDEGlobal::locale(); + TDELocale *l = TDEGlobal::locale(); TQString from,to; if (mAlldayEventCheckbox->isChecked()) { diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp index 22667c46e..132c32901 100644 --- a/korganizer/koeditorgeneraltodo.cpp +++ b/korganizer/koeditorgeneraltodo.cpp @@ -565,7 +565,7 @@ void KOEditorGeneralTodo::completedChanged() void KOEditorGeneralTodo::dateChanged() { - KLocale *l = TDEGlobal::locale(); + TDELocale *l = TDEGlobal::locale(); TQString dateTimeStr = ""; if ( mStartCheck->isChecked() ) { diff --git a/korganizer/korgac/korgacmain.cpp b/korganizer/korgac/korgacmain.cpp index afa7fe458..0db40fed1 100644 --- a/korganizer/korgac/korgacmain.cpp +++ b/korganizer/korgac/korgacmain.cpp @@ -61,7 +61,7 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { - KLocale::setMainCatalogue( "korganizer" ); + TDELocale::setMainCatalogue( "korganizer" ); TDEAboutData aboutData( "korgac", I18N_NOOP("KOrganizer Reminder Daemon"), korgacVersion, I18N_NOOP("KOrganizer Reminder Daemon"), TDEAboutData::License_GPL, diff --git a/korganizer/plugins/printing/year/yearprint.cpp b/korganizer/plugins/printing/year/yearprint.cpp index bf039d2d5..41d54c243 100644 --- a/korganizer/plugins/printing/year/yearprint.cpp +++ b/korganizer/plugins/printing/year/yearprint.cpp @@ -138,7 +138,7 @@ void CalPrintYear::setDateRange( const TQDate& from, const TQDate& to ) void CalPrintYear::print( TQPainter &p, int width, int height ) { const KCalendarSystem *calsys = calendarSystem(); - KLocale *locale = TDEGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); if ( !calsys || !locale ) return; TQRect headerBox( 0, 0, width, headerHeight() ); diff --git a/korganizer/printing/calprintdefaultplugins.cpp b/korganizer/printing/calprintdefaultplugins.cpp index 8ed37660c..6491e548b 100644 --- a/korganizer/printing/calprintdefaultplugins.cpp +++ b/korganizer/printing/calprintdefaultplugins.cpp @@ -705,7 +705,7 @@ void CalPrintDay::print( TQPainter &p, int width, int height ) TQRect footerBox( 0, height - footerHeight(), width, footerHeight() ); height -= footerHeight(); - KLocale *local = TDEGlobal::locale(); + TDELocale *local = TDEGlobal::locale(); do { TQTime curStartTime( mStartTime ); @@ -915,7 +915,7 @@ void CalPrintWeek::print( TQPainter &p, int width, int height ) toWeek = mToDate.addDays( 6 - weekdayCol ); curWeek = fromWeek.addDays( 6 ); - KLocale *local = TDEGlobal::locale(); + TDELocale *local = TDEGlobal::locale(); TQString line1, line2, title; TQRect headerBox( 0, 0, width, headerHeight() ); diff --git a/korganizer/printing/calprintpluginbase.cpp b/korganizer/printing/calprintpluginbase.cpp index f754e52df..9eecda396 100644 --- a/korganizer/printing/calprintpluginbase.cpp +++ b/korganizer/printing/calprintpluginbase.cpp @@ -927,7 +927,7 @@ void CalPrintPluginBase::drawDayBox( TQPainter &p, const TQDate &qd, bool fullDate, bool printRecurDaily, bool printRecurWeekly ) { TQString dayNumStr; - const KLocale*local = TDEGlobal::locale(); + const TDELocale*local = TDEGlobal::locale(); // This has to be localized if ( fullDate && mCalSys ) { @@ -1423,7 +1423,7 @@ void CalPrintPluginBase::drawTodo( int &count, Todo *todo, TQPainter &p, TodoParentStart *r ) { TQString outStr; - const KLocale *local = TDEGlobal::locale(); + const TDELocale *local = TDEGlobal::locale(); TQRect rect; TodoParentStart startpt; diff --git a/korganizer/timezone.cpp b/korganizer/timezone.cpp index 73891c2d6..69e0b4f0e 100644 --- a/korganizer/timezone.cpp +++ b/korganizer/timezone.cpp @@ -58,6 +58,6 @@ int main(int argc,char **argv) kdDebug(5850) << "TQDateTime::currentTime(): " << qtime.toString( TQt::ISODate ) << endl; - kdDebug(5850) << "KLocale::formatTime(): " + kdDebug(5850) << "TDELocale::formatTime(): " << TDEGlobal::locale()->formatTime( qtime ) << endl; } diff --git a/libkmime/kmime_util.cpp b/libkmime/kmime_util.cpp index 601401814..38f282752 100644 --- a/libkmime/kmime_util.cpp +++ b/libkmime/kmime_util.cpp @@ -636,7 +636,7 @@ DateFormatter::qdateToTimeT(const TQDateTime& dt) const TQString DateFormatter::fancy(time_t otime) const { - KLocale *locale = TDEGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); if ( otime <= 0 ) return i18n( "unknown" ); @@ -691,13 +691,13 @@ DateFormatter::localized(time_t otime, bool shortFormat, bool includeSecs, { TQDateTime tmp; TQString ret; - KLocale *locale = TDEGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); tmp.setTime_t( otime ); if ( !localeLanguage.isEmpty() ) { - locale=new KLocale(localeLanguage); + locale=new TDELocale(localeLanguage); locale->setLanguage(localeLanguage); locale->setCountry(localeLanguage); ret = locale->formatDateTime( tmp, shortFormat, includeSecs ); diff --git a/libkmime/kmime_util.h b/libkmime/kmime_util.h index 34f8bd5d7..4619446a4 100644 --- a/libkmime/kmime_util.h +++ b/libkmime/kmime_util.h @@ -223,8 +223,8 @@ namespace KMime { * set format. * @param otime time to format * @param lang used <em>only</em> by the Localized format, sets the used language - * @param shortFormat used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime */ TQString dateString(time_t otime, const TQString& lang = TQString(), bool shortFormat = true, bool includeSecs=false) const; @@ -263,8 +263,8 @@ namespace KMime { * @param time time to format * @param data is either the format when FormatType is Custom, or language * when FormatType is Localized - * @param shortFormat used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime */ static TQString formatDate( DateFormatter::FormatType t, time_t time, const TQString& data = TQString(), @@ -275,8 +275,8 @@ namespace KMime { * @param t specifies the FormatType to use * @param data is either the format when FormatType is Custom, or language * when FormatType is Localized - * @param shortFormat used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used <em>only</em> by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used <em>only</em> by the Localized format, is passed to TDELocale::formatDateTime */ static TQString formatCurrentDate( DateFormatter::FormatType t, const TQString& data = TQString(), diff --git a/libtdepim/broadcaststatus.cpp b/libtdepim/broadcaststatus.cpp index 45a7b51cc..d7a26944e 100644 --- a/libtdepim/broadcaststatus.cpp +++ b/libtdepim/broadcaststatus.cpp @@ -55,7 +55,7 @@ void BroadcastStatus::setStatusMsg( const TQString& message ) void BroadcastStatus::setStatusMsgWithTimestamp( const TQString& message ) { - KLocale* locale = TDEGlobal::locale(); + TDELocale* locale = TDEGlobal::locale(); setStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" ) .arg( locale->formatTime( TQTime::currentTime(), true /* with seconds */ ) ) diff --git a/libtdepim/ktimeedit.cpp b/libtdepim/ktimeedit.cpp index 2a58fc54c..2fe849c5f 100644 --- a/libtdepim/ktimeedit.cpp +++ b/libtdepim/ktimeedit.cpp @@ -53,7 +53,7 @@ public: return Intermediate; bool ok = false; - /*TQTime time =*/ TDEGlobal::locale()->readTime(str, KLocale::WithoutSeconds, &ok); + /*TQTime time =*/ TDEGlobal::locale()->readTime(str, TDELocale::WithoutSeconds, &ok); if ( ok ) return Acceptable; // kdDebug(5300)<<"Time "<<str<<" not directly acceptable, trying military format "<<endl; @@ -91,7 +91,7 @@ public: } virtual void fixup ( TQString & input ) const { bool ok = false; - TDEGlobal::locale()->readTime( input, KLocale::WithoutSeconds, &ok ); + TDEGlobal::locale()->readTime( input, TDELocale::WithoutSeconds, &ok ); if ( !ok ) { // Also try to accept times in "military format", i.e. no delimiter, like 1200 int tm = input.toInt( &ok ); @@ -149,9 +149,9 @@ bool KTimeEdit::hasTime() const TQTime KTimeEdit::getTime() const { //kdDebug(5300) << "KTimeEdit::getTime(), currentText() = " << currentText() << endl; - // TODO use KLocale::WithoutSeconds in HEAD + // TODO use TDELocale::WithoutSeconds in HEAD bool ok = false; - TQTime time = TDEGlobal::locale()->readTime( currentText(), KLocale::WithoutSeconds, &ok ); + TQTime time = TDEGlobal::locale()->readTime( currentText(), TDELocale::WithoutSeconds, &ok ); if ( !ok ) { // Also try to accept times in "military format", i.e. no delimiter, like 1200 int tm = currentText().toInt( &ok ); diff --git a/tdeioslaves/mbox/mbox.cc b/tdeioslaves/mbox/mbox.cc index 3236e14cd..91a324889 100644 --- a/tdeioslaves/mbox/mbox.cc +++ b/tdeioslaves/mbox/mbox.cc @@ -42,7 +42,7 @@ extern "C" { KDE_EXPORT int kdemain(int argc, char* argv[]); } int kdemain( int argc, char * argv[] ) { - KLocale::setMainCatalogue("tdelibs"); + TDELocale::setMainCatalogue("tdelibs"); TDEInstance instance("tdeio_mbox"); (void) TDEGlobal::locale(); diff --git a/wizards/egroupwaremain.cpp b/wizards/egroupwaremain.cpp index aa115cc82..59a16d036 100644 --- a/wizards/egroupwaremain.cpp +++ b/wizards/egroupwaremain.cpp @@ -34,7 +34,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "egroupwarewizard", "eGroupware Server Configuration Wizard", diff --git a/wizards/exchangemain.cpp b/wizards/exchangemain.cpp index a3d78909d..3f10b8710 100644 --- a/wizards/exchangemain.cpp +++ b/wizards/exchangemain.cpp @@ -35,7 +35,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "exchangewizard", I18N_NOOP( "Microsoft Exchange Server Configuration Wizard" ), "0.1" ); diff --git a/wizards/groupwisemain.cpp b/wizards/groupwisemain.cpp index f7eab0bec..407551b68 100644 --- a/wizards/groupwisemain.cpp +++ b/wizards/groupwisemain.cpp @@ -35,7 +35,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "groupwisewizard", I18N_NOOP( "Novell GroupWise Configuration Wizard" ), diff --git a/wizards/kolabmain.cpp b/wizards/kolabmain.cpp index 8b316a456..f094b64f6 100644 --- a/wizards/kolabmain.cpp +++ b/wizards/kolabmain.cpp @@ -36,7 +36,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "kolabwizard", I18N_NOOP( "Kolab Configuration Wizard" ), "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); diff --git a/wizards/main.cpp b/wizards/main.cpp index 4b66356c1..3c45aae49 100644 --- a/wizards/main.cpp +++ b/wizards/main.cpp @@ -14,7 +14,7 @@ static const KCmdLineOptions options[] = int main( int argc, char **argv ) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "groupwarewizard", I18N_NOOP( "TDE-PIM Groupware Configuration Wizard" ), "0.1" ); diff --git a/wizards/scalixmain.cpp b/wizards/scalixmain.cpp index 06fa5341e..feca97f60 100644 --- a/wizards/scalixmain.cpp +++ b/wizards/scalixmain.cpp @@ -36,7 +36,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "scalixwizard", I18N_NOOP( "Scalix Configuration Wizard" ), "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); diff --git a/wizards/sloxmain.cpp b/wizards/sloxmain.cpp index d63c43ae7..f9ec84bf0 100644 --- a/wizards/sloxmain.cpp +++ b/wizards/sloxmain.cpp @@ -35,7 +35,7 @@ static const KCmdLineOptions options[] = int main(int argc,char **argv) { - KLocale::setMainCatalogue( "tdepimwizards" ); + TDELocale::setMainCatalogue( "tdepimwizards" ); TDEAboutData aboutData( "sloxwizard", I18N_NOOP( "SUSE LINUX Openexchange Server Configuration Wizard" ), "0.1" ); |