diff options
Diffstat (limited to 'kontact/plugins/specialdates')
-rw-r--r-- | kontact/plugins/specialdates/CMakeLists.txt | 13 | ||||
-rw-r--r-- | kontact/plugins/specialdates/kcmsdsummary.cpp | 22 | ||||
-rw-r--r-- | kontact/plugins/specialdates/kcmsdsummary.desktop | 104 | ||||
-rw-r--r-- | kontact/plugins/specialdates/kcmsdsummary.h | 2 | ||||
-rw-r--r-- | kontact/plugins/specialdates/sdsummarywidget.cpp | 32 | ||||
-rw-r--r-- | kontact/plugins/specialdates/sdsummarywidget.h | 2 | ||||
-rw-r--r-- | kontact/plugins/specialdates/specialdates_plugin.cpp | 2 | ||||
-rw-r--r-- | kontact/plugins/specialdates/specialdatesplugin.desktop | 67 |
8 files changed, 44 insertions, 200 deletions
diff --git a/kontact/plugins/specialdates/CMakeLists.txt b/kontact/plugins/specialdates/CMakeLists.txt index d760fd12..f52bb51f 100644 --- a/kontact/plugins/specialdates/CMakeLists.txt +++ b/kontact/plugins/specialdates/CMakeLists.txt @@ -28,8 +28,17 @@ link_directories( ##### other data ################################ -install( FILES specialdatesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) -install( FILES kcmsdsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE specialdatesplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact + PO_DIR kontact-desktops +) + +tde_create_translated_desktop( + SOURCE kcmsdsummary.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kontact-desktops +) ##### libkontact_specialdatesplugin (module) #### diff --git a/kontact/plugins/specialdates/kcmsdsummary.cpp b/kontact/plugins/specialdates/kcmsdsummary.cpp index 93c7bd8b..3a97d2c1 100644 --- a/kontact/plugins/specialdates/kcmsdsummary.cpp +++ b/kontact/plugins/specialdates/kcmsdsummary.cpp @@ -39,11 +39,11 @@ #include "kcmsdsummary.h" -#include <tdepimmacros.h> +#include <tdemacros.h> extern "C" { - KDE_EXPORT TDECModule *create_sdsummary( TQWidget *parent, const char * ) + TDE_EXPORT TDECModule *create_sdsummary( TQWidget *parent, const char * ) { return new KCMSDSummary( parent, "kcmsdsummary" ); } @@ -56,12 +56,12 @@ KCMSDSummary::KCMSDSummary( TQWidget *parent, const char *name ) customDaysChanged( 1 ); - connect( mDaysGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); - connect( mDaysGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( buttonClicked( int ) ) ); - connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); - connect( mContactGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); - connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( modified() ) ); - connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( customDaysChanged( int ) ) ); + connect( mDaysGroup, TQ_SIGNAL( clicked( int ) ), TQ_SLOT( modified() ) ); + connect( mDaysGroup, TQ_SIGNAL( clicked( int ) ), TQ_SLOT( buttonClicked( int ) ) ); + connect( mCalendarGroup, TQ_SIGNAL( clicked( int ) ), TQ_SLOT( modified() ) ); + connect( mContactGroup, TQ_SIGNAL( clicked( int ) ), TQ_SLOT( modified() ) ); + connect( mCustomDays, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( modified() ) ); + connect( mCustomDays, TQ_SIGNAL( valueChanged( int ) ), TQ_SLOT( customDaysChanged( int ) ) ); TDEAcceleratorManager::manage( this ); @@ -87,7 +87,7 @@ void KCMSDSummary::initGUI() { TQGridLayout *layout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() ); - mDaysGroup = new TQButtonGroup( 0, Qt::Vertical, i18n( "Special Dates Summary" ), this ); + mDaysGroup = new TQButtonGroup( 0, TQt::Vertical, i18n( "Special Dates Summary" ), this ); TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->layout(), KDialog::spacingHint() ); @@ -119,7 +119,7 @@ void KCMSDSummary::initGUI() layout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 ); - mCalendarGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Special Dates From Calendar" ), this ); + mCalendarGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Special Dates From Calendar" ), this ); mShowBirthdaysFromCal = new TQCheckBox( i18n( "Show birthdays" ), mCalendarGroup ); mShowAnniversariesFromCal = new TQCheckBox( i18n( "Show anniversaries" ), mCalendarGroup ); @@ -127,7 +127,7 @@ void KCMSDSummary::initGUI() mShowSpecialsFromCal = new TQCheckBox( i18n( "Show special occasions" ), mCalendarGroup ); - mContactGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Special Dates From Contact List" ), this ); + mContactGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Special Dates From Contact List" ), this ); mShowBirthdaysFromKAB = new TQCheckBox( i18n( "Show birthdays" ), mContactGroup ); mShowAnniversariesFromKAB = new TQCheckBox( i18n( "Show anniversaries" ), mContactGroup ); diff --git a/kontact/plugins/specialdates/kcmsdsummary.desktop b/kontact/plugins/specialdates/kcmsdsummary.desktop index 1afc1a9d..fd75d3db 100644 --- a/kontact/plugins/specialdates/kcmsdsummary.desktop +++ b/kontact/plugins/specialdates/kcmsdsummary.desktop @@ -11,107 +11,7 @@ X-TDE-ParentComponents=kontact_specialdatesplugin X-TDE-CfgDlgHierarchy=KontactSummary Name=Special Dates Overview -Name[bg]=Преглед на специални случаи -Name[ca]=Resum de dates especials -Name[da]=Oversigt over særlige datoer -Name[de]=Übersicht über besondere Termine -Name[el]=Επισκόπηση σημαντικών ημερομηνιών -Name[et]=Tähtpäevade ülevaade -Name[it]=Panoramica delle date speciali -Name[ja]=特別な日の要約 -Name[nds]=Översicht besünner Daten -Name[nl]=Overzicht van speciale data -Name[pl]=Daty specjalne -Name[sr]=Преглед посебних датума -Name[sr@Latn]=Pregled posebnih datuma -Name[sv]=Översikt av speciella datum -Name[zh_CN]=特殊日期概览 -Name[zh_TW]=特殊日期概觀 + Comment=Special Dates Summary Setup -Comment[af]=Spesiale datums opsomming opstelling -Comment[bg]=Настройки на специалните случаи -Comment[ca]=Configuració del resum de les dates especials -Comment[cs]=Nastavení souhrnu speciálních datumů -Comment[da]=Opsummering af opsætning af særlige datoer -Comment[de]=Einstellung der Übersicht über besondere Termine -Comment[el]=Ρύθμιση σύνοψης σημαντικών ημερομηνιών -Comment[es]=Configuración del resumen de las fechas especiales -Comment[et]=Tähtpäevade kokkuvõtte seadistus -Comment[eu]=Data berezien laburpenen konfigurazioa -Comment[fa]=برپایی خلاصۀ تاریخهای ویژه -Comment[fi]=Erikoispäivien yhteenvedon asetukset -Comment[fr]=Configuration du résumé des dates particulières -Comment[fy]=Spesjale datums oersichts opset -Comment[gl]=Configuración do Resumo de Datas Especiais -Comment[he]=תצורת תאריכים מיוחדים -Comment[hu]=A fontos dátumok áttekintőjének beállításai -Comment[is]=Yfirlitsuppsetning sérstakra daga -Comment[it]=Impostazioni per le date speciali -Comment[ja]=特別な日の要約設定 -Comment[kk]=Ерекше күндер тұжырымының баптауы -Comment[km]=រៀបចំសេចក្ដីសង្ខេបថ្ងៃពិសេស -Comment[lt]=Ypatingų datų santraukos sąranka -Comment[mk]=Поставувања за прегледот на специјални датуми -Comment[ms]=Setup Ringkasan Tarikh Khusus -Comment[nb]=Sammendragsoppsett for spesielle datoer -Comment[nds]=Översicht över besünner Daag instellen -Comment[ne]=विशेष मिति सारांश सेटअप -Comment[nl]=Instellingen voor speciale data in overzicht -Comment[nn]=Oppsett av samandrag for spesielle datoar -Comment[pl]=Ustawienia podsumowania dat specjalnych -Comment[pt]=Configuração do Sumário de Datas Especiais -Comment[pt_BR]=Configuração do Resumo de Datas Especiais -Comment[ru]=Настройка особых дат -Comment[sk]=Nastavenie súhrnu špeciálnych dátumov -Comment[sl]=Nastavitve povzetka posebnih datumov -Comment[sr]=Подешавање сажетка посебних датума -Comment[sr@Latn]=Podešavanje sažetka posebnih datuma -Comment[sv]=Inställning av översikt av speciella datum -Comment[ta]=விசேஷ தேதிகள் சுருக்க அமைப்பு -Comment[th]=ต้้งค่าส่วนสรุปวันพิเศษ -Comment[tr]=Özel Tarih Özeti Yapılandırması -Comment[uk]=Налаштування підсумку особливих дат -Comment[zh_CN]=特殊日期摘要设置 -Comment[zh_TW]=特殊日期摘要設定 + Keywords=birthday; anniversary; holiday; configure; settings; -Keywords[af]=birtday;anniversary; holiday; conifugre; settings; verjaarsdag; herdenking; vakansie; -Keywords[bg]=рождени; рожден; дни; ден; годишнина; годишнини; обобщение; birthday; anniversary; configure; settings; -Keywords[ca]=data de naixement; aniversari; vacances; configuració; arranjament; -Keywords[cs]=narozeniny;výročí;nastavení;nastavit;svátek; -Keywords[da]=fødselsdag; årsdag; helligdage; indstil; opsætning; -Keywords[de]=Geburtstag;Jahrestag;Feiertag;einstellen;Einstellungen;Einrichten; -Keywords[el]=γενέθλια; επέτειος; εορτή; ρύθμιση; ρυθμίσεις; -Keywords[es]=cumpleaños; aniversario; vacaciones; configurar; preferencias; -Keywords[et]=sünnipäev; tähtpäev; pidupäev; seadistamine; seadistused; -Keywords[eu]=urtebetezea; urteurrena; jaia; konfiguratu; ezarpenak; -Keywords[fa]=تولد، جشن سالانه، تعطیلات، پیکربندی، تنظیمات; -Keywords[fi]=syntymäpäivä; juhlapäivä; loma; aseta; asetukset; -Keywords[fr]=anniversaire;date de naissance;vacances;configurer;paramètres;préférences; -Keywords[fy]=verjaardag;jubileum;vakantie;instellingen;configuratie;feestdag; jierdei; fakânsje; ynstellings; feestdei; -Keywords[gl]=cumpreanos; aniversario; vacacións; configurar; opcións; -Keywords[he]=birthday; anniversary; holiday; configure; settings; יום הולדת; הולדת; שנה; יום שנה; חג; חגים; תצורה; הגדרות; -Keywords[hu]=születésnap;évforduló;szabadság;konfigurálás;beállítások; -Keywords[is]=afmæli; frídagar; stillingar; stilla; -Keywords[it]=compleanno; anniversario; vacanze; configura; impostazioni; -Keywords[ja]=誕生日;記念日;休日;設定;設定; -Keywords[km]=ថ្ងៃខួបកំណើត;បុណ្យខួប;វិស្សមកាល;កំណត់រចនាសម្ព័ន្ធ;ការកំណត់; -Keywords[lt]=birthday; anniversary; holiday; configure; settings; konfigūruoti; nustatymai; gimtadieniai; išeiginės;sukaktys; -Keywords[mk]=birthday; anniversary; holiday; configure; settings; роденден; годишнина; конфигурирање; конфигурација; поставувања; -Keywords[ms]=tarikh lahir; ulang tahun; cuti; konfigur; seting; -Keywords[nb]=fødselsdag; jubileum; ferie; sette opp; innstillinger; -Keywords[nds]=Geboortsdag;Johrdag;Fierdag;instellen; -Keywords[ne]=जन्मदिन; वार्षिकोत्सव; बिदा; कन्फिगर; सेटिङ; -Keywords[nl]=verjaardag;jubileum;vakantie;instellingen;configuratie;feestdag; -Keywords[nn]=fødselsdag;bursdag;gebursdag;jubileum;ferie;helgedag;merkedag;oppsett;innstillingar; -Keywords[pl]=urodziny;rocznica;rocznice;wakacje;urlop;konfiguracja;ustawienia; -Keywords[pt]=data de nascimento; aniversário; feriado; configurar; configuração; -Keywords[pt_BR]=aniversário;aniversário de casamento; feriados;configurar;configurações; -Keywords[ru]=birthday;anniversary;configure;settings;дни рождения;настройки;праздники;годовщины; -Keywords[sl]=rojstni dan; obletnica; praznik; nastavi; nastavitve; -Keywords[sr]=birthday; anniversary; holiday; configure; settings; рођендан; годишњица; подеси; поставке; подешавања; -Keywords[sr@Latn]=birthday; anniversary; holiday; configure; settings; rođendan; godišnjica; podesi; postavke; podešavanja; -Keywords[sv]=födelsedag;årsdag;helgdag;anpassa;inställningar; -Keywords[ta]=பிறந்தநாள்; ஆண்டுவிழா; விடுமுறை; வடிவமைப்பு; அமைப்புகள்; -Keywords[tr]=doğumgünü; evlilik yıldönümü; tatil; yapılandır; ypılandırma; -Keywords[uk]=birthday; anniversary; holiday; configure; settings; день народження; ювілей; свято; налаштування; параметри; -Keywords[zh_CN]=birthday; anniversary; holiday; configure; settings; 周年纪念; 配置; 设置; 假日; diff --git a/kontact/plugins/specialdates/kcmsdsummary.h b/kontact/plugins/specialdates/kcmsdsummary.h index c0095dfa..e3189656 100644 --- a/kontact/plugins/specialdates/kcmsdsummary.h +++ b/kontact/plugins/specialdates/kcmsdsummary.h @@ -35,7 +35,7 @@ class TDEAboutData; class KCMSDSummary : public TDECModule { - Q_OBJECT + TQ_OBJECT public: diff --git a/kontact/plugins/specialdates/sdsummarywidget.cpp b/kontact/plugins/specialdates/sdsummarywidget.cpp index 376389f9..083392ef 100644 --- a/kontact/plugins/specialdates/sdsummarywidget.cpp +++ b/kontact/plugins/specialdates/sdsummarywidget.cpp @@ -39,7 +39,7 @@ #include <tdelocale.h> #include <tdeparts/part.h> #include <tdepopupmenu.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <kurllabel.h> #include <libkcal/event.h> #include <libkcal/resourcecalendar.h> @@ -95,10 +95,10 @@ SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, TQWidget *parent, // Setup the Addressbook TDEABC::StdAddressBook *ab = TDEABC::StdAddressBook::self( true ); - connect( ab, TQT_SIGNAL( addressBookChanged( AddressBook* ) ), - this, TQT_SLOT( updateView() ) ); - connect( mPlugin->core(), TQT_SIGNAL( dayChanged( const TQDate& ) ), - this, TQT_SLOT( updateView() ) ); + connect( ab, TQ_SIGNAL( addressBookChanged( AddressBook* ) ), + this, TQ_SLOT( updateView() ) ); + connect( mPlugin->core(), TQ_SIGNAL( dayChanged( const TQDate& ) ), + this, TQ_SLOT( updateView() ) ); // Setup the Calendar mCalendar = new KCal::CalendarResources( KPimPrefs::timezone() ); @@ -128,10 +128,10 @@ SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, TQWidget *parent, } mCalendar = KOrg::StdCalendar::self(); - connect( mCalendar, TQT_SIGNAL( calendarChanged() ), - this, TQT_SLOT( updateView() ) ); - connect( mPlugin->core(), TQT_SIGNAL( dayChanged( const TQDate& ) ), - this, TQT_SLOT( updateView() ) ); + connect( mCalendar, TQ_SIGNAL( calendarChanged() ), + this, TQ_SLOT( updateView() ) ); + connect( mPlugin->core(), TQ_SIGNAL( dayChanged( const TQDate& ) ), + this, TQ_SLOT( updateView() ) ); // Update Configuration configUpdated(); @@ -250,7 +250,7 @@ void SDSummaryWidget::updateView() TQString anniversaryAsString = (*it).custom( "KADDRESSBOOK" , "X-Anniversary" ); if ( !anniversaryAsString.isEmpty() ) { - TQDate anniversary = TQDate::fromString( anniversaryAsString, Qt::ISODate ); + TQDate anniversary = TQDate::fromString( anniversaryAsString, TQt::ISODate ); if ( anniversary.isValid() && mShowAnniversariesFromKAB ) { SDEntry entry; entry.type = IncidenceTypeContact; @@ -506,10 +506,10 @@ void SDSummaryWidget::updateView() mLayout->addWidget( urlLabel, counter, 4 ); mLabels.append( urlLabel ); - connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ), - this, TQT_SLOT( mailContact( const TQString& ) ) ); - connect( urlLabel, TQT_SIGNAL( rightClickedURL( const TQString& ) ), - this, TQT_SLOT( popupMenu( const TQString& ) ) ); + connect( urlLabel, TQ_SIGNAL( leftClickedURL( const TQString& ) ), + this, TQ_SLOT( mailContact( const TQString& ) ) ); + connect( urlLabel, TQ_SIGNAL( rightClickedURL( const TQString& ) ), + this, TQ_SLOT( popupMenu( const TQString& ) ) ); } else { label = new TQLabel( this ); label->setText( (*addrIt).summary ); @@ -558,7 +558,7 @@ void SDSummaryWidget::mailContact( const TQString &uid ) TDEABC::StdAddressBook *ab = TDEABC::StdAddressBook::self( true ); TQString email = ab->findByUid( uid ).fullEmail(); - kapp->invokeMailer( email, TQString() ); + tdeApp->invokeMailer( email, TQString() ); } void SDSummaryWidget::viewContact( const TQString &uid ) @@ -593,7 +593,7 @@ void SDSummaryWidget::popupMenu( const TQString &uid ) bool SDSummaryWidget::eventFilter( TQObject *obj, TQEvent* e ) { if ( obj->inherits( "KURLLabel" ) ) { - KURLLabel* label = static_cast<KURLLabel*>( TQT_TQWIDGET(obj) ); + KURLLabel* label = static_cast<KURLLabel*>( obj ); if ( e->type() == TQEvent::Enter ) emit message( i18n( "Mail to:\"%1\"" ).arg( label->text() ) ); if ( e->type() == TQEvent::Leave ) diff --git a/kontact/plugins/specialdates/sdsummarywidget.h b/kontact/plugins/specialdates/sdsummarywidget.h index ff9fb70a..2c63b259 100644 --- a/kontact/plugins/specialdates/sdsummarywidget.h +++ b/kontact/plugins/specialdates/sdsummarywidget.h @@ -42,7 +42,7 @@ class TQLabel; class SDSummaryWidget : public Kontact::Summary { - Q_OBJECT + TQ_OBJECT public: diff --git a/kontact/plugins/specialdates/specialdates_plugin.cpp b/kontact/plugins/specialdates/specialdates_plugin.cpp index 58c830c8..a1893aef 100644 --- a/kontact/plugins/specialdates/specialdates_plugin.cpp +++ b/kontact/plugins/specialdates/specialdates_plugin.cpp @@ -38,7 +38,7 @@ K_EXPORT_COMPONENT_FACTORY( libkontact_specialdatesplugin, SpecialdatesPluginFactory( "kontact_specialdatesplugin" ) ) SpecialdatesPlugin::SpecialdatesPlugin( Kontact::Core *core, const char *name, const TQStringList& ) - : Kontact::Plugin( core, TQT_TQOBJECT(core), name ), + : Kontact::Plugin( core, core, name ), mAboutData( 0 ) { setInstance( SpecialdatesPluginFactory::instance() ); diff --git a/kontact/plugins/specialdates/specialdatesplugin.desktop b/kontact/plugins/specialdates/specialdatesplugin.desktop index f71ccbd4..32c830d2 100644 --- a/kontact/plugins/specialdates/specialdatesplugin.desktop +++ b/kontact/plugins/specialdates/specialdatesplugin.desktop @@ -14,70 +14,5 @@ X-TDE-PluginInfo-License=GPL X-TDE-PluginInfo-EnabledByDefault=true Name=Special Dates -Name[af]=Spesiale datums -Name[ar]=التواريخ المرقومة -Name[bg]=Специални случаи -Name[br]=Deiziadoù dibar -Name[ca]=Dates especials -Name[cs]=Speciální data -Name[da]=Særlige datoer -Name[de]=Besondere Termine -Name[el]=Σημαντικές ημερομηνίες -Name[eo]=Specialaj Datoj -Name[es]=Fechas especiales -Name[et]=Tähtpäevad -Name[eu]=Data bereziak -Name[fa]=تاریخهای ویژه -Name[fi]=Erikoispäivät -Name[fr]=Dates particulières -Name[fy]=Spesjale datums -Name[ga]=Dátaí Speisialta -Name[gl]=Datas Especiais -Name[he]=תאריכים מיוחדים -Name[hu]=Fontos dátumok -Name[is]=Sérstakir dagar -Name[it]=Date speciali -Name[ja]=特別な日 -Name[kk]=Ерекше күндер -Name[km]=ថ្ងៃពិសេស -Name[lt]=Ypatingos datos -Name[mk]=Специјални датуми -Name[ms]=Tarikh Khusus -Name[nb]=Spesielle datoer -Name[nds]=Besünner Daag -Name[ne]=विशेष मिति -Name[nl]=Speciale data -Name[nn]=Spesielle datoar -Name[pl]=Daty specjalne -Name[pt]=Datas Especiais -Name[pt_BR]=Datas Especiais -Name[ru]=Особые даты -Name[sk]=Špeciálne dátumy -Name[sl]=Posebni datumi -Name[sr]=Посебни датуми -Name[sr@Latn]=Posebni datumi -Name[sv]=Speciella datum -Name[ta]=விசேஷ தேதிகள் -Name[th]=วันพิเศษ -Name[tr]=Özel Tarihler -Name[uk]=Особливі дати -Name[uz]=Махсус кунлар -Name[zh_CN]=特殊日期 -Name[zh_TW]=特殊日期 + Comment=Special Dates Component -Comment[bg]=Обобщение на специалните случаи -Comment[ca]=Component de dates especials -Comment[da]=Komponent til særlige datoer -Comment[de]=Komponente für Übersicht über besondere Termine -Comment[el]=Συστατικό σημαντικών ημερομηνιών -Comment[et]=Tähtpäevade plugin -Comment[it]=Componente per le date speciali -Comment[ja]=特別な日コンポーネント -Comment[nds]=Komponent för besünner Daten -Comment[nl]=Component voor overzicht van speciale data -Comment[pl]=Składnik dat specjalnych -Comment[sr]=Компонента посебних датума -Comment[sr@Latn]=Komponenta posebnih datuma -Comment[sv]=Speciella datumkomponent -Comment[zh_CN]=特殊日期组件 -Comment[zh_TW]=特殊日期組件 |