From 78bc9664ef5f23a7b405b5d940bc891a0ebbf841 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:32 -0600 Subject: Fix FTBFS --- .../selectiontools/chalkselectiontools.desktop | 52 -- .../selectiontools/chaltdeselectiontools.desktop | 52 ++ .../plugins/tools/tool_crop/chalktoolcrop.desktop | 47 -- .../tools/tool_crop/chaltdetoolcrop.desktop | 47 ++ .../tools/tool_curves/chalktoolcurves.desktop | 36 - .../tools/tool_curves/chaltdetoolcurves.desktop | 36 + .../tools/tool_filter/chalktoolfilter.desktop | 92 --- .../tools/tool_filter/chaltdetoolfilter.desktop | 92 +++ .../chalktoolperspectivegrid.desktop | 35 - .../chaltdetoolperspectivegrid.desktop | 35 + .../chalktoolperspectivetransform.desktop | 37 -- .../chaltdetoolperspectivetransform.desktop | 37 ++ .../tools/tool_polygon/chalktoolpolygon.desktop | 52 -- .../tools/tool_polygon/chaltdetoolpolygon.desktop | 52 ++ .../tools/tool_polyline/chalktoolpolyline.desktop | 49 -- .../tool_polyline/chaltdetoolpolyline.desktop | 49 ++ .../chalktoolselectsimilar.desktop | 43 -- .../chaltdetoolselectsimilar.desktop | 43 ++ .../plugins/tools/tool_star/chalktoolstar.desktop | 52 -- .../tools/tool_star/chaltdetoolstar.desktop | 52 ++ .../tool_transform/chalktooltransform.desktop | 46 -- .../tool_transform/chaltdetooltransform.desktop | 46 ++ .../selectopaque/chalkselectopaque.desktop | 26 - .../selectopaque/chaltdeselectopaque.desktop | 26 + doc/api/kfontdialog.png | Bin 4910 -> 0 bytes doc/api/tdefontdialog.png | Bin 0 -> 4910 bytes doc/kformula/kfontinst1.png | Bin 19071 -> 0 bytes doc/kformula/kfontinst2.png | Bin 25570 -> 0 bytes doc/kformula/kfontinst3.png | Bin 10378 -> 0 bytes doc/kformula/kfontinst4.png | Bin 10381 -> 0 bytes doc/kformula/kfontinst5.png | Bin 5001 -> 0 bytes doc/kformula/kfontinst6.png | Bin 6516 -> 0 bytes doc/kformula/tdefontinst1.png | Bin 0 -> 19071 bytes doc/kformula/tdefontinst2.png | Bin 0 -> 25570 bytes doc/kformula/tdefontinst3.png | Bin 0 -> 10378 bytes doc/kformula/tdefontinst4.png | Bin 0 -> 10381 bytes doc/kformula/tdefontinst5.png | Bin 0 -> 5001 bytes doc/kformula/tdefontinst6.png | Bin 0 -> 6516 bytes kexi/widget/utils/klistviewitemtemplate.h | 50 -- kexi/widget/utils/tdelistviewitemtemplate.h | 50 ++ kplato/reports/tasklist.desktop | 46 -- kplato/reports/tasklist.ktf | 225 ------- kplato/reports/tastdelist.desktop | 46 ++ kplato/reports/tastdelist.ktf | 225 +++++++ .../templates/HomeFamily/VacationChecklist.desktop | 51 -- kspread/templates/HomeFamily/VacationChecklist.kst | 722 --------------------- .../HomeFamily/VacationChectdelist.desktop | 51 ++ .../templates/HomeFamily/VacationChectdelist.kst | 722 +++++++++++++++++++++ .../cr48-action-template_vacationchecklist.png | Bin 1645 -> 0 bytes .../cr48-action-template_vacationchectdelist.png | Bin 0 -> 1645 bytes .../crsc-action-template_vacationchecklist.svgz | Bin 2292 -> 0 bytes .../crsc-action-template_vacationchectdelist.svgz | Bin 0 -> 2292 bytes lib/kofficeui/tkaction.cpp | 300 --------- lib/kofficeui/tkaction.h | 126 ---- lib/kofficeui/tktoolbarbutton.cpp | 532 --------------- lib/kofficeui/tktoolbarbutton.h | 228 ------- lib/kofficeui/ttdeaction.cpp | 300 +++++++++ lib/kofficeui/ttdeaction.h | 126 ++++ lib/kofficeui/ttdetoolbarbutton.cpp | 532 +++++++++++++++ lib/kofficeui/ttdetoolbarbutton.h | 228 +++++++ 60 files changed, 2847 insertions(+), 2847 deletions(-) delete mode 100644 chalk/plugins/tools/selectiontools/chalkselectiontools.desktop create mode 100644 chalk/plugins/tools/selectiontools/chaltdeselectiontools.desktop delete mode 100644 chalk/plugins/tools/tool_crop/chalktoolcrop.desktop create mode 100644 chalk/plugins/tools/tool_crop/chaltdetoolcrop.desktop delete mode 100644 chalk/plugins/tools/tool_curves/chalktoolcurves.desktop create mode 100644 chalk/plugins/tools/tool_curves/chaltdetoolcurves.desktop delete mode 100644 chalk/plugins/tools/tool_filter/chalktoolfilter.desktop create mode 100644 chalk/plugins/tools/tool_filter/chaltdetoolfilter.desktop delete mode 100644 chalk/plugins/tools/tool_perspectivegrid/chalktoolperspectivegrid.desktop create mode 100644 chalk/plugins/tools/tool_perspectivegrid/chaltdetoolperspectivegrid.desktop delete mode 100644 chalk/plugins/tools/tool_perspectivetransform/chalktoolperspectivetransform.desktop create mode 100644 chalk/plugins/tools/tool_perspectivetransform/chaltdetoolperspectivetransform.desktop delete mode 100644 chalk/plugins/tools/tool_polygon/chalktoolpolygon.desktop create mode 100644 chalk/plugins/tools/tool_polygon/chaltdetoolpolygon.desktop delete mode 100644 chalk/plugins/tools/tool_polyline/chalktoolpolyline.desktop create mode 100644 chalk/plugins/tools/tool_polyline/chaltdetoolpolyline.desktop delete mode 100644 chalk/plugins/tools/tool_selectsimilar/chalktoolselectsimilar.desktop create mode 100644 chalk/plugins/tools/tool_selectsimilar/chaltdetoolselectsimilar.desktop delete mode 100644 chalk/plugins/tools/tool_star/chalktoolstar.desktop create mode 100644 chalk/plugins/tools/tool_star/chaltdetoolstar.desktop delete mode 100644 chalk/plugins/tools/tool_transform/chalktooltransform.desktop create mode 100644 chalk/plugins/tools/tool_transform/chaltdetooltransform.desktop delete mode 100644 chalk/plugins/viewplugins/selectopaque/chalkselectopaque.desktop create mode 100644 chalk/plugins/viewplugins/selectopaque/chaltdeselectopaque.desktop delete mode 100644 doc/api/kfontdialog.png create mode 100644 doc/api/tdefontdialog.png delete mode 100644 doc/kformula/kfontinst1.png delete mode 100644 doc/kformula/kfontinst2.png delete mode 100644 doc/kformula/kfontinst3.png delete mode 100644 doc/kformula/kfontinst4.png delete mode 100644 doc/kformula/kfontinst5.png delete mode 100644 doc/kformula/kfontinst6.png create mode 100644 doc/kformula/tdefontinst1.png create mode 100644 doc/kformula/tdefontinst2.png create mode 100644 doc/kformula/tdefontinst3.png create mode 100644 doc/kformula/tdefontinst4.png create mode 100644 doc/kformula/tdefontinst5.png create mode 100644 doc/kformula/tdefontinst6.png delete mode 100644 kexi/widget/utils/klistviewitemtemplate.h create mode 100644 kexi/widget/utils/tdelistviewitemtemplate.h delete mode 100644 kplato/reports/tasklist.desktop delete mode 100644 kplato/reports/tasklist.ktf create mode 100644 kplato/reports/tastdelist.desktop create mode 100644 kplato/reports/tastdelist.ktf delete mode 100644 kspread/templates/HomeFamily/VacationChecklist.desktop delete mode 100644 kspread/templates/HomeFamily/VacationChecklist.kst create mode 100644 kspread/templates/HomeFamily/VacationChectdelist.desktop create mode 100644 kspread/templates/HomeFamily/VacationChectdelist.kst delete mode 100644 kspread/templates/HomeFamily/cr48-action-template_vacationchecklist.png create mode 100644 kspread/templates/HomeFamily/cr48-action-template_vacationchectdelist.png delete mode 100644 kspread/templates/HomeFamily/crsc-action-template_vacationchecklist.svgz create mode 100644 kspread/templates/HomeFamily/crsc-action-template_vacationchectdelist.svgz delete mode 100644 lib/kofficeui/tkaction.cpp delete mode 100644 lib/kofficeui/tkaction.h delete mode 100644 lib/kofficeui/tktoolbarbutton.cpp delete mode 100644 lib/kofficeui/tktoolbarbutton.h create mode 100644 lib/kofficeui/ttdeaction.cpp create mode 100644 lib/kofficeui/ttdeaction.h create mode 100644 lib/kofficeui/ttdetoolbarbutton.cpp create mode 100644 lib/kofficeui/ttdetoolbarbutton.h diff --git a/chalk/plugins/tools/selectiontools/chalkselectiontools.desktop b/chalk/plugins/tools/selectiontools/chalkselectiontools.desktop deleted file mode 100644 index f005126b..00000000 --- a/chalk/plugins/tools/selectiontools/chalkselectiontools.desktop +++ /dev/null @@ -1,52 +0,0 @@ -[Desktop Entry] -Name=Selection Tools -Name[bg]=Инструмент за маркиране -Name[br]=Ostilhoù choazh -Name[ca]=Eines de selecció -Name[cy]=Offer Detholi -Name[da]=Markeringsværktøj -Name[de]=Auswahlwerkzeuge -Name[el]=Εργαλεία επιλογής -Name[eo]=Elektado-iloj -Name[es]=Herramientas de selección -Name[et]=Valikutööriistad -Name[eu]=Hautapen-tresnak -Name[fa]=ابزارهای گزینش -Name[fi]=Valintatyökalut -Name[fr]=Outils de sélection -Name[fy]=Seleksje-ark -Name[ga]=Uirlisí Roghnúcháin -Name[gl]=Ferramentas de Selección -Name[he]=כלי בחירה -Name[hu]=Kiválasztó eszközök -Name[is]=Valtól -Name[it]=Strumenti di selezione -Name[ja]=選択ツール -Name[km]=ឧបករណ៍​ជ្រើស​ -Name[lt]=Pažymėjimo įrankiai -Name[lv]=Izvēles rīki -Name[ms]=Alat Pemilihan -Name[nb]=Velgeverktøy -Name[nds]=Utwahlwarktüüch -Name[ne]=चयन उपकरण -Name[nl]=Selectiegereedschappen -Name[nn]=Veljeverktøy -Name[pl]=Narzędzia wyboru -Name[pt]=Ferramentas de Selecção -Name[pt_BR]=Ferramentas de Seleção -Name[ru]=Инструменты выделения -Name[se]=Válljenreaiddut -Name[sk]=Štetec výberu -Name[sl]=Orodja za izbiro -Name[sr]=Алати за избор -Name[sr@Latn]=Alati za izbor -Name[sv]=Markeringsverktyg -Name[uk]=Засоби виділення -Name[uz]=Tanlash vositalari -Name[uz@cyrillic]=Танлаш воситалари -Name[zh_CN]=选择工具 -Name[zh_TW]=選取區工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalkselectiontools -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/selectiontools/chaltdeselectiontools.desktop b/chalk/plugins/tools/selectiontools/chaltdeselectiontools.desktop new file mode 100644 index 00000000..f005126b --- /dev/null +++ b/chalk/plugins/tools/selectiontools/chaltdeselectiontools.desktop @@ -0,0 +1,52 @@ +[Desktop Entry] +Name=Selection Tools +Name[bg]=Инструмент за маркиране +Name[br]=Ostilhoù choazh +Name[ca]=Eines de selecció +Name[cy]=Offer Detholi +Name[da]=Markeringsværktøj +Name[de]=Auswahlwerkzeuge +Name[el]=Εργαλεία επιλογής +Name[eo]=Elektado-iloj +Name[es]=Herramientas de selección +Name[et]=Valikutööriistad +Name[eu]=Hautapen-tresnak +Name[fa]=ابزارهای گزینش +Name[fi]=Valintatyökalut +Name[fr]=Outils de sélection +Name[fy]=Seleksje-ark +Name[ga]=Uirlisí Roghnúcháin +Name[gl]=Ferramentas de Selección +Name[he]=כלי בחירה +Name[hu]=Kiválasztó eszközök +Name[is]=Valtól +Name[it]=Strumenti di selezione +Name[ja]=選択ツール +Name[km]=ឧបករណ៍​ជ្រើស​ +Name[lt]=Pažymėjimo įrankiai +Name[lv]=Izvēles rīki +Name[ms]=Alat Pemilihan +Name[nb]=Velgeverktøy +Name[nds]=Utwahlwarktüüch +Name[ne]=चयन उपकरण +Name[nl]=Selectiegereedschappen +Name[nn]=Veljeverktøy +Name[pl]=Narzędzia wyboru +Name[pt]=Ferramentas de Selecção +Name[pt_BR]=Ferramentas de Seleção +Name[ru]=Инструменты выделения +Name[se]=Válljenreaiddut +Name[sk]=Štetec výberu +Name[sl]=Orodja za izbiro +Name[sr]=Алати за избор +Name[sr@Latn]=Alati za izbor +Name[sv]=Markeringsverktyg +Name[uk]=Засоби виділення +Name[uz]=Tanlash vositalari +Name[uz@cyrillic]=Танлаш воситалари +Name[zh_CN]=选择工具 +Name[zh_TW]=選取區工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalkselectiontools +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_crop/chalktoolcrop.desktop b/chalk/plugins/tools/tool_crop/chalktoolcrop.desktop deleted file mode 100644 index 325fbf78..00000000 --- a/chalk/plugins/tools/tool_crop/chalktoolcrop.desktop +++ /dev/null @@ -1,47 +0,0 @@ -[Desktop Entry] -Name=Crop Tool -Name[bg]=Инструмент за изрязване -Name[br]=Ostilh krennañ -Name[ca]=Eina de tall -Name[cy]=Hidlen Docio -Name[da]=Beskæringsværktøj -Name[de]=Zuschneidewerkzeug -Name[el]=Εργαλείο αποκοπής -Name[eo]=Tondado-ilo -Name[es]=Herramienta para recortar -Name[et]=Kärpimistööriist -Name[eu]=Ebaki tresna -Name[fa]=ابزار خط برش -Name[fr]=Outil découpage -Name[fy]=Bysnei-ark -Name[ga]=Uirlis Bhearrtha -Name[gl]=Ferramenta de Recorte -Name[he]=כלי חיתוך -Name[hu]=Levágó eszköz -Name[is]=Sniðtól -Name[it]=Strumento di taglio -Name[ja]=切り取りツール -Name[km]=ឧបករណ៍​ច្រឹប -Name[ms]=Alat Pangkas -Name[nb]=Beskjæringsverktøy -Name[nds]=Tosniedwarktüüch -Name[ne]=उपकरण काटछाँट गर्नुहोस् -Name[nl]=Snijgereedschap -Name[nn]=Beskjæringsverktøy -Name[pl]=Narzędzie przycinania -Name[pt]=Ferramenta de Recorte -Name[pt_BR]=Ferramenta de Recorte -Name[ru]=Обрезка -Name[se]=Čuohpanreaiddut -Name[sk]=Orezávač -Name[sl]=Orodje za obrezavo -Name[sr]=Алат за сасецање -Name[sr@Latn]=Alat za sasecanje -Name[sv]=Beskärningsverktyg -Name[uk]=Засіб обрізування -Name[zh_CN]=裁剪工具 -Name[zh_TW]=剪裁工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolcrop -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_crop/chaltdetoolcrop.desktop b/chalk/plugins/tools/tool_crop/chaltdetoolcrop.desktop new file mode 100644 index 00000000..325fbf78 --- /dev/null +++ b/chalk/plugins/tools/tool_crop/chaltdetoolcrop.desktop @@ -0,0 +1,47 @@ +[Desktop Entry] +Name=Crop Tool +Name[bg]=Инструмент за изрязване +Name[br]=Ostilh krennañ +Name[ca]=Eina de tall +Name[cy]=Hidlen Docio +Name[da]=Beskæringsværktøj +Name[de]=Zuschneidewerkzeug +Name[el]=Εργαλείο αποκοπής +Name[eo]=Tondado-ilo +Name[es]=Herramienta para recortar +Name[et]=Kärpimistööriist +Name[eu]=Ebaki tresna +Name[fa]=ابزار خط برش +Name[fr]=Outil découpage +Name[fy]=Bysnei-ark +Name[ga]=Uirlis Bhearrtha +Name[gl]=Ferramenta de Recorte +Name[he]=כלי חיתוך +Name[hu]=Levágó eszköz +Name[is]=Sniðtól +Name[it]=Strumento di taglio +Name[ja]=切り取りツール +Name[km]=ឧបករណ៍​ច្រឹប +Name[ms]=Alat Pangkas +Name[nb]=Beskjæringsverktøy +Name[nds]=Tosniedwarktüüch +Name[ne]=उपकरण काटछाँट गर्नुहोस् +Name[nl]=Snijgereedschap +Name[nn]=Beskjæringsverktøy +Name[pl]=Narzędzie przycinania +Name[pt]=Ferramenta de Recorte +Name[pt_BR]=Ferramenta de Recorte +Name[ru]=Обрезка +Name[se]=Čuohpanreaiddut +Name[sk]=Orezávač +Name[sl]=Orodje za obrezavo +Name[sr]=Алат за сасецање +Name[sr@Latn]=Alat za sasecanje +Name[sv]=Beskärningsverktyg +Name[uk]=Засіб обрізування +Name[zh_CN]=裁剪工具 +Name[zh_TW]=剪裁工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolcrop +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_curves/chalktoolcurves.desktop b/chalk/plugins/tools/tool_curves/chalktoolcurves.desktop deleted file mode 100644 index 76ea7b29..00000000 --- a/chalk/plugins/tools/tool_curves/chalktoolcurves.desktop +++ /dev/null @@ -1,36 +0,0 @@ -[Desktop Entry] -Name=Curves Tool -Name[bg]=Инструмент криви -Name[ca]=Eina de corbes -Name[da]=Kurveværktøj -Name[de]=Kurvenwerkzeug -Name[el]=Εργαλείο καμπύλων -Name[eo]=Kurvado-ilo -Name[es]=Herramienta Curvas -Name[et]=Kõverate tööriist -Name[fa]=ابزار منحنیها -Name[fy]=Krommings-ark -Name[gl]=Ferramenta de Curvas -Name[hu]=Görberajzoló -Name[it]=Strumento curve -Name[ja]=曲線ツール -Name[km]=ឧបករណ៍​ខ្សែ​កោង -Name[nb]=Kurveverktøy -Name[nds]=Bagenwarktüüch -Name[ne]=वक्र उपकरण -Name[nl]=Krommen-gereedschap -Name[pl]=Narzędzie krzywych -Name[pt]=Ferramenta de Curvas -Name[pt_BR]=Ferramenta de Curvas -Name[ru]=Кривые -Name[sk]=Krivky -Name[sl]=Orodje za krivulje -Name[sr]=Алат за криве -Name[sr@Latn]=Alat za krive -Name[sv]=Kurvverktyg -Name[uk]=Криві -Name[zh_TW]=曲線工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolcurves -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_curves/chaltdetoolcurves.desktop b/chalk/plugins/tools/tool_curves/chaltdetoolcurves.desktop new file mode 100644 index 00000000..76ea7b29 --- /dev/null +++ b/chalk/plugins/tools/tool_curves/chaltdetoolcurves.desktop @@ -0,0 +1,36 @@ +[Desktop Entry] +Name=Curves Tool +Name[bg]=Инструмент криви +Name[ca]=Eina de corbes +Name[da]=Kurveværktøj +Name[de]=Kurvenwerkzeug +Name[el]=Εργαλείο καμπύλων +Name[eo]=Kurvado-ilo +Name[es]=Herramienta Curvas +Name[et]=Kõverate tööriist +Name[fa]=ابزار منحنیها +Name[fy]=Krommings-ark +Name[gl]=Ferramenta de Curvas +Name[hu]=Görberajzoló +Name[it]=Strumento curve +Name[ja]=曲線ツール +Name[km]=ឧបករណ៍​ខ្សែ​កោង +Name[nb]=Kurveverktøy +Name[nds]=Bagenwarktüüch +Name[ne]=वक्र उपकरण +Name[nl]=Krommen-gereedschap +Name[pl]=Narzędzie krzywych +Name[pt]=Ferramenta de Curvas +Name[pt_BR]=Ferramenta de Curvas +Name[ru]=Кривые +Name[sk]=Krivky +Name[sl]=Orodje za krivulje +Name[sr]=Алат за криве +Name[sr@Latn]=Alat za krive +Name[sv]=Kurvverktyg +Name[uk]=Криві +Name[zh_TW]=曲線工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolcurves +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_filter/chalktoolfilter.desktop b/chalk/plugins/tools/tool_filter/chalktoolfilter.desktop deleted file mode 100644 index 991709b9..00000000 --- a/chalk/plugins/tools/tool_filter/chalktoolfilter.desktop +++ /dev/null @@ -1,92 +0,0 @@ -[Desktop Entry] -Name=Filter Tool -Name[bg]=Инструмент за филтриране -Name[br]=Ostil ar sil -Name[ca]=Eina de filtre -Name[cy]=Erfyn Hidlen -Name[da]=Filterværktøj -Name[de]=Filterwerkzeug -Name[el]=Εργαλείο φίλτρου -Name[eo]=Filtrado-ilo -Name[es]=Herramienta para filtrar -Name[et]=Filtritööriist -Name[eu]=Iragazkia tresna -Name[fa]=ابزار پالایه -Name[fi]=Suodintyökalu -Name[fr]=Outil filtre -Name[fy]=Filter-ark -Name[ga]=Uirlis Scagaire -Name[gl]=Ferramenta de Filtraxe -Name[he]=כלי סינון -Name[hu]=Szűrő eszköz -Name[is]=Síutól -Name[it]=Strumento di filtro -Name[ja]=フィルタツール -Name[km]=ឧបករណ៍​ត្រង -Name[lv]=Filtru rīki -Name[ms]=Alat Penapis -Name[nb]=Filterverktøy -Name[nds]=Filterwarktüüch -Name[ne]=फिल्टर उपकरण -Name[nl]=Filtergereedschap -Name[nn]=Filterverktøy -Name[pl]=Narzędzie filtru -Name[pt]=Ferramenta de Filtragem -Name[pt_BR]=Ferramenta de Filtragem -Name[ru]=Фильтр -Name[se]=Sillenreaidu -Name[sk]=Filter -Name[sl]=Orodje za filtriranje -Name[sr]=Филтерски алат -Name[sr@Latn]=Filterski alat -Name[sv]=Filtreringsverktyg -Name[uk]=Засіб фільтрування -Name[uz]=Filter vositasi -Name[uz@cyrillic]=Филтер воситаси -Name[zh_CN]=过滤工具 -Name[zh_TW]=濾鏡工具 -Comment=Filter tool and paint operation -Comment[bg]=Инструмент за филтриране и рисуване -Comment[ca]=Operació d'eina de filtre i pintura -Comment[cy]=Erfyn hidlen a gweithrediadau paent -Comment[da]=Filterværktøj og maleoperation -Comment[de]=Filterwerkzeug und Maloperation -Comment[el]=Εργαλείο φίλτρου και λειτουργία ζωγραφικής -Comment[eo]=Escepto ĉe kalkulado kun realaj nombroj. -Comment[es]=Herramienta de filtrado y operaciones de pintado -Comment[et]=Filtritööriist ja joonistamistoiming -Comment[eu]=Iragazkia tresna eta margotze-eragiketa -Comment[fa]=ابزار پالایه و عمل رنگ‌آمیزی -Comment[fi]=Suodintyökalu ja väritystoimepinde -Comment[fr]=Outil de filtrage et opération de dessin -Comment[fy]=Filter-ark en skildersaksje -Comment[gl]=Ferramenta de filtraxe e operación de pintura -Comment[he]=כלי סינון ופעולת ציור -Comment[hu]=Szűrő eszköz és festési művelet -Comment[is]=Síutól og málunaraðgerðir -Comment[it]=Strumento di filtro e operazione di disegno -Comment[ja]=フィルタツールと画像操作 -Comment[km]=ដំណើរ​ការ​គូរ និង​ឧបករណ៍​តម្រង -Comment[ms]=Alat penapis dan operasi warna -Comment[nb]=Filterverktøy og maleteknikker -Comment[nds]=Filterwarktüüch un Malen -Comment[ne]=फिल्टर उपकरण र पेन्ट अपरेसन -Comment[nl]=Filtergereedschap en schilderoperatie -Comment[nn]=Filterverktøy og måleoperasjon -Comment[pl]=Narzędzie filtrat oraz operacje malowania -Comment[pt]=Ferramenta de filtragem e operação de pintura -Comment[pt_BR]=Ferramenta de filtragem e operação de pintura -Comment[ru]=Фильтр обработки изображения -Comment[se]=Sillenreaidu ja málendoaibma -Comment[sk]=Nástroj filter a operácie kreslenia -Comment[sl]=Orodje za filtriranje in operacije za slikanje -Comment[sr]=Филтерски алат и операција цртања -Comment[sr@Latn]=Filterski alat i operacija crtanja -Comment[sv]=Filtreringsverktyg och målningsåtgärd -Comment[uk]=Засіб фільтрування та дій малювання -Comment[zh_CN]=过滤器工具和绘图集成 -Comment[zh_TW]=濾鏡工具與繪圖操作 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolfilter -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_filter/chaltdetoolfilter.desktop b/chalk/plugins/tools/tool_filter/chaltdetoolfilter.desktop new file mode 100644 index 00000000..991709b9 --- /dev/null +++ b/chalk/plugins/tools/tool_filter/chaltdetoolfilter.desktop @@ -0,0 +1,92 @@ +[Desktop Entry] +Name=Filter Tool +Name[bg]=Инструмент за филтриране +Name[br]=Ostil ar sil +Name[ca]=Eina de filtre +Name[cy]=Erfyn Hidlen +Name[da]=Filterværktøj +Name[de]=Filterwerkzeug +Name[el]=Εργαλείο φίλτρου +Name[eo]=Filtrado-ilo +Name[es]=Herramienta para filtrar +Name[et]=Filtritööriist +Name[eu]=Iragazkia tresna +Name[fa]=ابزار پالایه +Name[fi]=Suodintyökalu +Name[fr]=Outil filtre +Name[fy]=Filter-ark +Name[ga]=Uirlis Scagaire +Name[gl]=Ferramenta de Filtraxe +Name[he]=כלי סינון +Name[hu]=Szűrő eszköz +Name[is]=Síutól +Name[it]=Strumento di filtro +Name[ja]=フィルタツール +Name[km]=ឧបករណ៍​ត្រង +Name[lv]=Filtru rīki +Name[ms]=Alat Penapis +Name[nb]=Filterverktøy +Name[nds]=Filterwarktüüch +Name[ne]=फिल्टर उपकरण +Name[nl]=Filtergereedschap +Name[nn]=Filterverktøy +Name[pl]=Narzędzie filtru +Name[pt]=Ferramenta de Filtragem +Name[pt_BR]=Ferramenta de Filtragem +Name[ru]=Фильтр +Name[se]=Sillenreaidu +Name[sk]=Filter +Name[sl]=Orodje za filtriranje +Name[sr]=Филтерски алат +Name[sr@Latn]=Filterski alat +Name[sv]=Filtreringsverktyg +Name[uk]=Засіб фільтрування +Name[uz]=Filter vositasi +Name[uz@cyrillic]=Филтер воситаси +Name[zh_CN]=过滤工具 +Name[zh_TW]=濾鏡工具 +Comment=Filter tool and paint operation +Comment[bg]=Инструмент за филтриране и рисуване +Comment[ca]=Operació d'eina de filtre i pintura +Comment[cy]=Erfyn hidlen a gweithrediadau paent +Comment[da]=Filterværktøj og maleoperation +Comment[de]=Filterwerkzeug und Maloperation +Comment[el]=Εργαλείο φίλτρου και λειτουργία ζωγραφικής +Comment[eo]=Escepto ĉe kalkulado kun realaj nombroj. +Comment[es]=Herramienta de filtrado y operaciones de pintado +Comment[et]=Filtritööriist ja joonistamistoiming +Comment[eu]=Iragazkia tresna eta margotze-eragiketa +Comment[fa]=ابزار پالایه و عمل رنگ‌آمیزی +Comment[fi]=Suodintyökalu ja väritystoimepinde +Comment[fr]=Outil de filtrage et opération de dessin +Comment[fy]=Filter-ark en skildersaksje +Comment[gl]=Ferramenta de filtraxe e operación de pintura +Comment[he]=כלי סינון ופעולת ציור +Comment[hu]=Szűrő eszköz és festési művelet +Comment[is]=Síutól og málunaraðgerðir +Comment[it]=Strumento di filtro e operazione di disegno +Comment[ja]=フィルタツールと画像操作 +Comment[km]=ដំណើរ​ការ​គូរ និង​ឧបករណ៍​តម្រង +Comment[ms]=Alat penapis dan operasi warna +Comment[nb]=Filterverktøy og maleteknikker +Comment[nds]=Filterwarktüüch un Malen +Comment[ne]=फिल्टर उपकरण र पेन्ट अपरेसन +Comment[nl]=Filtergereedschap en schilderoperatie +Comment[nn]=Filterverktøy og måleoperasjon +Comment[pl]=Narzędzie filtrat oraz operacje malowania +Comment[pt]=Ferramenta de filtragem e operação de pintura +Comment[pt_BR]=Ferramenta de filtragem e operação de pintura +Comment[ru]=Фильтр обработки изображения +Comment[se]=Sillenreaidu ja málendoaibma +Comment[sk]=Nástroj filter a operácie kreslenia +Comment[sl]=Orodje za filtriranje in operacije za slikanje +Comment[sr]=Филтерски алат и операција цртања +Comment[sr@Latn]=Filterski alat i operacija crtanja +Comment[sv]=Filtreringsverktyg och målningsåtgärd +Comment[uk]=Засіб фільтрування та дій малювання +Comment[zh_CN]=过滤器工具和绘图集成 +Comment[zh_TW]=濾鏡工具與繪圖操作 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolfilter +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_perspectivegrid/chalktoolperspectivegrid.desktop b/chalk/plugins/tools/tool_perspectivegrid/chalktoolperspectivegrid.desktop deleted file mode 100644 index 9899e284..00000000 --- a/chalk/plugins/tools/tool_perspectivegrid/chalktoolperspectivegrid.desktop +++ /dev/null @@ -1,35 +0,0 @@ -[Desktop Entry] -Name=Perspective Grid Tool -Name[bg]=Инструмент мрежа -Name[ca]=Eina de graella de perspectiva -Name[da]=Perspektivgitterværktøj -Name[de]=Perspektive-Raster-Werkzeug -Name[el]=Εργαλείο προοπτικού πλέγματος -Name[eo]=Perspektivkrado-ilo -Name[es]=Herramienta Cuadrícula de perspectiva -Name[et]=Perspektiivvõrgu tööriist -Name[fa]=ابزار توری بُعدنما -Name[fy]=Perspeksjeraster-ark -Name[hu]=Perspektívarács -Name[it]=Strumento di reticolo prospettico -Name[ja]=遠近法グリッドツール -Name[km]=ឧបករណ៍​ក្រឡា​ចត្រង្គ​យថាទស្សន៍ -Name[nb]=Perspektivnett-verktøy -Name[nds]=Kietwinkelgadder-Warktüüch -Name[ne]=दृश्यात्मक ग्रीड उपकरण -Name[nl]=Perspectiefraster-gereedschap -Name[pl]=Narzędzie siatki perspektywy -Name[pt]=Ferramenta de Grelha em Perspectiva -Name[pt_BR]=Ferramenta de Grade em Perspectiva -Name[ru]=Перспектива -Name[sk]=Perspektívna mriežka -Name[sl]=Orodja Mreža za perspektivo -Name[sr]=Алат за мрежу у перспективи -Name[sr@Latn]=Alat za mrežu u perspektivi -Name[sv]=Perspektivrutnätsverktyg -Name[uk]=Засіб ґратки перспективи -Name[zh_TW]=透視格工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolperspectivegrid -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_perspectivegrid/chaltdetoolperspectivegrid.desktop b/chalk/plugins/tools/tool_perspectivegrid/chaltdetoolperspectivegrid.desktop new file mode 100644 index 00000000..9899e284 --- /dev/null +++ b/chalk/plugins/tools/tool_perspectivegrid/chaltdetoolperspectivegrid.desktop @@ -0,0 +1,35 @@ +[Desktop Entry] +Name=Perspective Grid Tool +Name[bg]=Инструмент мрежа +Name[ca]=Eina de graella de perspectiva +Name[da]=Perspektivgitterværktøj +Name[de]=Perspektive-Raster-Werkzeug +Name[el]=Εργαλείο προοπτικού πλέγματος +Name[eo]=Perspektivkrado-ilo +Name[es]=Herramienta Cuadrícula de perspectiva +Name[et]=Perspektiivvõrgu tööriist +Name[fa]=ابزار توری بُعدنما +Name[fy]=Perspeksjeraster-ark +Name[hu]=Perspektívarács +Name[it]=Strumento di reticolo prospettico +Name[ja]=遠近法グリッドツール +Name[km]=ឧបករណ៍​ក្រឡា​ចត្រង្គ​យថាទស្សន៍ +Name[nb]=Perspektivnett-verktøy +Name[nds]=Kietwinkelgadder-Warktüüch +Name[ne]=दृश्यात्मक ग्रीड उपकरण +Name[nl]=Perspectiefraster-gereedschap +Name[pl]=Narzędzie siatki perspektywy +Name[pt]=Ferramenta de Grelha em Perspectiva +Name[pt_BR]=Ferramenta de Grade em Perspectiva +Name[ru]=Перспектива +Name[sk]=Perspektívna mriežka +Name[sl]=Orodja Mreža za perspektivo +Name[sr]=Алат за мрежу у перспективи +Name[sr@Latn]=Alat za mrežu u perspektivi +Name[sv]=Perspektivrutnätsverktyg +Name[uk]=Засіб ґратки перспективи +Name[zh_TW]=透視格工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolperspectivegrid +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_perspectivetransform/chalktoolperspectivetransform.desktop b/chalk/plugins/tools/tool_perspectivetransform/chalktoolperspectivetransform.desktop deleted file mode 100644 index 9f1a9b9c..00000000 --- a/chalk/plugins/tools/tool_perspectivetransform/chalktoolperspectivetransform.desktop +++ /dev/null @@ -1,37 +0,0 @@ -[Desktop Entry] -Icon= -Name=Perspective transform Tool -Name[bg]=Инструмент трансформиране -Name[ca]=Eina de transformació de perspectiva -Name[da]=Perspectivetransformeringsværktøj -Name[de]=Perspektive-Transformationswerkzeug -Name[el]=Εργαλείο προοπτικού μετασχηματισμού -Name[eo]=Perspektivŝanĝo-ilo -Name[es]=Herramienta Transformar perspectiva -Name[et]=Perspektiivteisenduse tööriist -Name[fa]=ابزار تبدیل بُعدنما -Name[fr]=Outils de transformation de perspective -Name[fy]=Perspeksje oerset ark -Name[hu]=Perspektívaátalakító eszköz -Name[it]=Strumento di trasformazione della prospettiva -Name[ja]=視点変更ツール -Name[km]=ឧបករណ៍​ប្លែង​យថាទស្សន៍ -Name[nb]=Verktøy for perspektivtransformasjon -Name[nds]=Warktüüch för't Kietwinkeltopassen -Name[ne]=दृश्यात्मक रूपान्तरण उपकरण -Name[nl]=Perspectiefrooster-gereedschap -Name[pl]=Narzędzie zmiany perspektywy -Name[pt]=Ferramenta de Transformação em Perspectiva -Name[pt_BR]=Ferramentas de Transformação em Perspectiva -Name[ru]=Перспектива -Name[sk]=Perspektívna transformácia -Name[sl]=Orodje za transformacijo perspektive -Name[sr]=Алати за трансформацију перспективе -Name[sr@Latn]=Alati za transformaciju perspektive -Name[sv]=Perspektivtransformverktyg -Name[uk]=Засіб перспективи -Name[zh_TW]=透視轉換工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolperspectivetransform -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_perspectivetransform/chaltdetoolperspectivetransform.desktop b/chalk/plugins/tools/tool_perspectivetransform/chaltdetoolperspectivetransform.desktop new file mode 100644 index 00000000..9f1a9b9c --- /dev/null +++ b/chalk/plugins/tools/tool_perspectivetransform/chaltdetoolperspectivetransform.desktop @@ -0,0 +1,37 @@ +[Desktop Entry] +Icon= +Name=Perspective transform Tool +Name[bg]=Инструмент трансформиране +Name[ca]=Eina de transformació de perspectiva +Name[da]=Perspectivetransformeringsværktøj +Name[de]=Perspektive-Transformationswerkzeug +Name[el]=Εργαλείο προοπτικού μετασχηματισμού +Name[eo]=Perspektivŝanĝo-ilo +Name[es]=Herramienta Transformar perspectiva +Name[et]=Perspektiivteisenduse tööriist +Name[fa]=ابزار تبدیل بُعدنما +Name[fr]=Outils de transformation de perspective +Name[fy]=Perspeksje oerset ark +Name[hu]=Perspektívaátalakító eszköz +Name[it]=Strumento di trasformazione della prospettiva +Name[ja]=視点変更ツール +Name[km]=ឧបករណ៍​ប្លែង​យថាទស្សន៍ +Name[nb]=Verktøy for perspektivtransformasjon +Name[nds]=Warktüüch för't Kietwinkeltopassen +Name[ne]=दृश्यात्मक रूपान्तरण उपकरण +Name[nl]=Perspectiefrooster-gereedschap +Name[pl]=Narzędzie zmiany perspektywy +Name[pt]=Ferramenta de Transformação em Perspectiva +Name[pt_BR]=Ferramentas de Transformação em Perspectiva +Name[ru]=Перспектива +Name[sk]=Perspektívna transformácia +Name[sl]=Orodje za transformacijo perspektive +Name[sr]=Алати за трансформацију перспективе +Name[sr@Latn]=Alati za transformaciju perspektive +Name[sv]=Perspektivtransformverktyg +Name[uk]=Засіб перспективи +Name[zh_TW]=透視轉換工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolperspectivetransform +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_polygon/chalktoolpolygon.desktop b/chalk/plugins/tools/tool_polygon/chalktoolpolygon.desktop deleted file mode 100644 index 2b10ed9d..00000000 --- a/chalk/plugins/tools/tool_polygon/chalktoolpolygon.desktop +++ /dev/null @@ -1,52 +0,0 @@ -[Desktop Entry] -Name=Polygon Tool -Name[bg]=Инструмент многоъгълник -Name[br]=Ostilh liestueg -Name[ca]=Eina de polígon -Name[cy]=Erfyn Polygon -Name[da]=Polygonværktøj -Name[de]=Vieleck-Werkzeug -Name[el]=Εργαλείο πολυγώνου -Name[eo]=Poligon-ilo -Name[es]=Herramienta Polígono -Name[et]=Hulknurga tööriist -Name[eu]=Poligonoa tresna -Name[fa]=ابزار چندضلعی -Name[fi]=Monikulmiotyökalu -Name[fr]=Outil polygone -Name[fy]=Meardere-hoek-ark -Name[ga]=Uirlis Pholagáin -Name[gl]=Ferramenta de Polígonos -Name[he]=כלי מצולע -Name[hu]=Sokszög eszköz -Name[is]=Marghyrnitól -Name[it]=Strumento poligono -Name[ja]=多角形ツール -Name[km]=ឧបករណ៍​រាង​ពហុកោណ -Name[lt]=Daugiakampio įrankis -Name[lv]=Poligonu rīks -Name[ms]=Alat Poligon -Name[nb]=Verktøy for mangekanter -Name[nds]=Veeleck-Warktüüch -Name[ne]=बहुभुज उपकरण -Name[nl]=Veelhoeksgereedschap -Name[nn]=Verktøy for mangekant -Name[pl]=Narzędzie do rysowania wielokątów -Name[pt]=Ferramenta de Polígonos -Name[pt_BR]=Ferramenta Polígono -Name[ru]=Многоугольник -Name[se]=Moanáčiegareaidu -Name[sk]=Mnohouholník -Name[sl]=Orodje za poligon -Name[sr]=Алат за полигоне -Name[sr@Latn]=Alat za poligone -Name[sv]=Polygonverktyg -Name[uk]=Засіб багатокутника -Name[uz]=Pligon vositasi -Name[uz@cyrillic]=Плигон воситаси -Name[zh_CN]=多边形工具 -Name[zh_TW]=多邊形工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolpolygon -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_polygon/chaltdetoolpolygon.desktop b/chalk/plugins/tools/tool_polygon/chaltdetoolpolygon.desktop new file mode 100644 index 00000000..2b10ed9d --- /dev/null +++ b/chalk/plugins/tools/tool_polygon/chaltdetoolpolygon.desktop @@ -0,0 +1,52 @@ +[Desktop Entry] +Name=Polygon Tool +Name[bg]=Инструмент многоъгълник +Name[br]=Ostilh liestueg +Name[ca]=Eina de polígon +Name[cy]=Erfyn Polygon +Name[da]=Polygonværktøj +Name[de]=Vieleck-Werkzeug +Name[el]=Εργαλείο πολυγώνου +Name[eo]=Poligon-ilo +Name[es]=Herramienta Polígono +Name[et]=Hulknurga tööriist +Name[eu]=Poligonoa tresna +Name[fa]=ابزار چندضلعی +Name[fi]=Monikulmiotyökalu +Name[fr]=Outil polygone +Name[fy]=Meardere-hoek-ark +Name[ga]=Uirlis Pholagáin +Name[gl]=Ferramenta de Polígonos +Name[he]=כלי מצולע +Name[hu]=Sokszög eszköz +Name[is]=Marghyrnitól +Name[it]=Strumento poligono +Name[ja]=多角形ツール +Name[km]=ឧបករណ៍​រាង​ពហុកោណ +Name[lt]=Daugiakampio įrankis +Name[lv]=Poligonu rīks +Name[ms]=Alat Poligon +Name[nb]=Verktøy for mangekanter +Name[nds]=Veeleck-Warktüüch +Name[ne]=बहुभुज उपकरण +Name[nl]=Veelhoeksgereedschap +Name[nn]=Verktøy for mangekant +Name[pl]=Narzędzie do rysowania wielokątów +Name[pt]=Ferramenta de Polígonos +Name[pt_BR]=Ferramenta Polígono +Name[ru]=Многоугольник +Name[se]=Moanáčiegareaidu +Name[sk]=Mnohouholník +Name[sl]=Orodje za poligon +Name[sr]=Алат за полигоне +Name[sr@Latn]=Alat za poligone +Name[sv]=Polygonverktyg +Name[uk]=Засіб багатокутника +Name[uz]=Pligon vositasi +Name[uz@cyrillic]=Плигон воситаси +Name[zh_CN]=多边形工具 +Name[zh_TW]=多邊形工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolpolygon +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_polyline/chalktoolpolyline.desktop b/chalk/plugins/tools/tool_polyline/chalktoolpolyline.desktop deleted file mode 100644 index b68aa879..00000000 --- a/chalk/plugins/tools/tool_polyline/chalktoolpolyline.desktop +++ /dev/null @@ -1,49 +0,0 @@ -[Desktop Entry] -Name=Polyline Tool -Name[bg]=Инструмент съставна линия -Name[br]=Ostilh lieslinenn -Name[ca]=Eina de polilínia -Name[cy]=Erfyn Polylinell -Name[da]=Flerlinjeværktøj -Name[de]=Linienketten-Werkzeug -Name[el]=Εργαλείο συνεχούς γραμμής -Name[eo]=Plurlinio-ilo -Name[es]=Herramienta Polilínea -Name[et]=Kompleksjoone tööriist -Name[eu]=Polilerroa tresna -Name[fa]=ابزار چندخطی -Name[fr]=Outil lignes multiples -Name[fy]=Brútsen-streek-ark -Name[ga]=Uirlis Il-líne -Name[gl]=Ferramenta de Liñas Poligonais -Name[he]=כלי קו שבור -Name[hu]=Sokszögvonal eszköz -Name[is]=Fjöllínutól -Name[it]=Strumento polilinea -Name[ja]=ポリラインツール -Name[km]=ឧបករណ៍​ពហុបន្ទាត់ -Name[ms]=Alat Poligaris -Name[nb]=Verktøy for flerstrekslinje -Name[nds]=Lienenkeden-Warktüüch (Polygon-Tog) -Name[ne]=बहुरेखा उपकरण -Name[nl]=Gebroken-lijngereedschap -Name[nn]=Verktøy for fleirstrekslinje -Name[pl]=Narzędzie do rysowania łamanej -Name[pt]=Ferramenta de Linhas Poligonais -Name[pt_BR]=Ferramenta Poli-linha -Name[ru]=Ломаная -Name[se]=Moanálinnjáreaidu -Name[sk]=Lomená čiara -Name[sl]=Orodje za lomljeno črto -Name[sr]=Алат за полилиније -Name[sr@Latn]=Alat za polilinije -Name[sv]=Flerlinjesverktyg -Name[uk]=Засіб ламаної лінії -Name[uz]=Koʻpburchak asbobi -Name[uz@cyrillic]=Кўпбурчак асбоби -Name[zh_CN]=折线工具 -Name[zh_TW]=任意線工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolpolyline -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_polyline/chaltdetoolpolyline.desktop b/chalk/plugins/tools/tool_polyline/chaltdetoolpolyline.desktop new file mode 100644 index 00000000..b68aa879 --- /dev/null +++ b/chalk/plugins/tools/tool_polyline/chaltdetoolpolyline.desktop @@ -0,0 +1,49 @@ +[Desktop Entry] +Name=Polyline Tool +Name[bg]=Инструмент съставна линия +Name[br]=Ostilh lieslinenn +Name[ca]=Eina de polilínia +Name[cy]=Erfyn Polylinell +Name[da]=Flerlinjeværktøj +Name[de]=Linienketten-Werkzeug +Name[el]=Εργαλείο συνεχούς γραμμής +Name[eo]=Plurlinio-ilo +Name[es]=Herramienta Polilínea +Name[et]=Kompleksjoone tööriist +Name[eu]=Polilerroa tresna +Name[fa]=ابزار چندخطی +Name[fr]=Outil lignes multiples +Name[fy]=Brútsen-streek-ark +Name[ga]=Uirlis Il-líne +Name[gl]=Ferramenta de Liñas Poligonais +Name[he]=כלי קו שבור +Name[hu]=Sokszögvonal eszköz +Name[is]=Fjöllínutól +Name[it]=Strumento polilinea +Name[ja]=ポリラインツール +Name[km]=ឧបករណ៍​ពហុបន្ទាត់ +Name[ms]=Alat Poligaris +Name[nb]=Verktøy for flerstrekslinje +Name[nds]=Lienenkeden-Warktüüch (Polygon-Tog) +Name[ne]=बहुरेखा उपकरण +Name[nl]=Gebroken-lijngereedschap +Name[nn]=Verktøy for fleirstrekslinje +Name[pl]=Narzędzie do rysowania łamanej +Name[pt]=Ferramenta de Linhas Poligonais +Name[pt_BR]=Ferramenta Poli-linha +Name[ru]=Ломаная +Name[se]=Moanálinnjáreaidu +Name[sk]=Lomená čiara +Name[sl]=Orodje za lomljeno črto +Name[sr]=Алат за полилиније +Name[sr@Latn]=Alat za polilinije +Name[sv]=Flerlinjesverktyg +Name[uk]=Засіб ламаної лінії +Name[uz]=Koʻpburchak asbobi +Name[uz@cyrillic]=Кўпбурчак асбоби +Name[zh_CN]=折线工具 +Name[zh_TW]=任意線工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolpolyline +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_selectsimilar/chalktoolselectsimilar.desktop b/chalk/plugins/tools/tool_selectsimilar/chalktoolselectsimilar.desktop deleted file mode 100644 index cc83dccc..00000000 --- a/chalk/plugins/tools/tool_selectsimilar/chalktoolselectsimilar.desktop +++ /dev/null @@ -1,43 +0,0 @@ -[Desktop Entry] -Name=Select Similar Colors Tool -Name[bg]=Инструмент за маркиране на подобни цветове -Name[ca]=Selecciona eines de colors similars -Name[cy]=Offer Detholi Lliwiau Tebyg -Name[da]=Vælg lignende farve-værktøjer -Name[de]="Auswahl nach ähnlichen Farben"-Werkzeug -Name[el]=Εργαλείο επιλογής παρόμοιων χρωμάτων -Name[en_GB]=Select Similar Colours Tool -Name[eo]=Similkolorelekto-ilo -Name[es]=Herramienta de selección de colores similares -Name[et]=Sarnase värvi valimise tööriist -Name[fa]=برگزیدن ابزار رنگهای مشابه -Name[fr]=Outils de sélection des couleurs similaires -Name[fy]=Lykense kleur seleksje ark -Name[gl]=Ferramenta de Selección de Cores Semellantes -Name[he]=בחירת כלי צבעים דומים -Name[hu]=Hasonló színeket kiválasztó eszköz -Name[is]=Velja svipaða liti tól -Name[it]=Strumento per la selezione dei colori simili -Name[ja]=類似色選択ツール -Name[km]=ឧបករណ៍​ជ្រើស​ពណ៌​ស្រដៀង​គ្នា -Name[nb]=Verktøy som velger liknende farger -Name[nds]=Warktüüch för de Utwahl vun lieke Klören -Name[ne]=समान रङ उपकरणहरू चयन गर्नुहोस् -Name[nl]=Gereedschap voor soortgelijke kleuren -Name[pl]=Narzędzie wyboru podobnych kolorów -Name[pt]=Ferramenta de Selecção de Cores Semelhantes -Name[pt_BR]=Ferramenta de Seleção de Cores Semelhantes -Name[ru]=Выделение по цвету -Name[se]=Reaidu mii vállje sullosaš ivnniid -Name[sk]=Výber podobných farieb -Name[sl]=Orodje za izbiro podobnih barv -Name[sr]=Алат за избор сличних боја -Name[sr@Latn]=Alat za izbor sličnih boja -Name[sv]=Välj liknande färg-verktyg -Name[uk]=Засіб вибору подібних кольорів -Name[zh_CN]=选择相似颜色工具 -Name[zh_TW]=選取近似色彩工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolselectsimilar -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_selectsimilar/chaltdetoolselectsimilar.desktop b/chalk/plugins/tools/tool_selectsimilar/chaltdetoolselectsimilar.desktop new file mode 100644 index 00000000..cc83dccc --- /dev/null +++ b/chalk/plugins/tools/tool_selectsimilar/chaltdetoolselectsimilar.desktop @@ -0,0 +1,43 @@ +[Desktop Entry] +Name=Select Similar Colors Tool +Name[bg]=Инструмент за маркиране на подобни цветове +Name[ca]=Selecciona eines de colors similars +Name[cy]=Offer Detholi Lliwiau Tebyg +Name[da]=Vælg lignende farve-værktøjer +Name[de]="Auswahl nach ähnlichen Farben"-Werkzeug +Name[el]=Εργαλείο επιλογής παρόμοιων χρωμάτων +Name[en_GB]=Select Similar Colours Tool +Name[eo]=Similkolorelekto-ilo +Name[es]=Herramienta de selección de colores similares +Name[et]=Sarnase värvi valimise tööriist +Name[fa]=برگزیدن ابزار رنگهای مشابه +Name[fr]=Outils de sélection des couleurs similaires +Name[fy]=Lykense kleur seleksje ark +Name[gl]=Ferramenta de Selección de Cores Semellantes +Name[he]=בחירת כלי צבעים דומים +Name[hu]=Hasonló színeket kiválasztó eszköz +Name[is]=Velja svipaða liti tól +Name[it]=Strumento per la selezione dei colori simili +Name[ja]=類似色選択ツール +Name[km]=ឧបករណ៍​ជ្រើស​ពណ៌​ស្រដៀង​គ្នា +Name[nb]=Verktøy som velger liknende farger +Name[nds]=Warktüüch för de Utwahl vun lieke Klören +Name[ne]=समान रङ उपकरणहरू चयन गर्नुहोस् +Name[nl]=Gereedschap voor soortgelijke kleuren +Name[pl]=Narzędzie wyboru podobnych kolorów +Name[pt]=Ferramenta de Selecção de Cores Semelhantes +Name[pt_BR]=Ferramenta de Seleção de Cores Semelhantes +Name[ru]=Выделение по цвету +Name[se]=Reaidu mii vállje sullosaš ivnniid +Name[sk]=Výber podobných farieb +Name[sl]=Orodje za izbiro podobnih barv +Name[sr]=Алат за избор сличних боја +Name[sr@Latn]=Alat za izbor sličnih boja +Name[sv]=Välj liknande färg-verktyg +Name[uk]=Засіб вибору подібних кольорів +Name[zh_CN]=选择相似颜色工具 +Name[zh_TW]=選取近似色彩工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolselectsimilar +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_star/chalktoolstar.desktop b/chalk/plugins/tools/tool_star/chalktoolstar.desktop deleted file mode 100644 index f2b68b7a..00000000 --- a/chalk/plugins/tools/tool_star/chalktoolstar.desktop +++ /dev/null @@ -1,52 +0,0 @@ -[Desktop Entry] -Name=Star Tool -Name[bg]=Инструмент звезда -Name[br]=Ostilh steredenn -Name[ca]=Eina d'estrella -Name[cy]=Erfyn Seren -Name[da]=Stjerneværktøj -Name[de]=Stern-Werkzeug -Name[el]=Εργαλείο αστεριού -Name[eo]=Stelo-ilo -Name[es]=Herramienta Estrella -Name[et]=Tähe tööriist -Name[eu]=Izarra tresna -Name[fa]=ابزار ستاره -Name[fi]=Tähtityökalu -Name[fr]=Outil étoile -Name[fy]=Sjer-ark -Name[ga]=Uirlis Réiltín -Name[gl]=Ferramenta de Estrelas -Name[he]=כלי כוכב -Name[hu]=Csillag eszköz -Name[is]=Stjörnutól -Name[it]=Strumento stella -Name[ja]=星型ツール -Name[km]=ឧបករណ៍​រាង​ផ្កាយ -Name[lt]=Žvaigždės įrankis -Name[lv]=Zvaigznes rīks -Name[ms]=Alat Bintang -Name[nb]=Stjerneverktøy -Name[nds]=Steern-Warktüüch -Name[ne]=तारा उपकरण -Name[nl]=Stergereedschap -Name[nn]=Stjerneverktøy -Name[pl]=Narzędzie do rysowania gwiazdki -Name[pt]=Ferramenta de Estrelas -Name[pt_BR]=Ferramenta Estrela -Name[ru]=Звезда -Name[se]=Nástereaidu -Name[sk]=Hviezda -Name[sl]=Zvezdno orodje -Name[sr]=Алат за звезде -Name[sr@Latn]=Alat za zvezde -Name[sv]=Stjärnverktyg -Name[uk]=Інструмент зірки -Name[uz]=Yulduz vositasi -Name[uz@cyrillic]=Юлдуз воситаси -Name[zh_CN]=星形工具 -Name[zh_TW]=星形工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktoolstar -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_star/chaltdetoolstar.desktop b/chalk/plugins/tools/tool_star/chaltdetoolstar.desktop new file mode 100644 index 00000000..f2b68b7a --- /dev/null +++ b/chalk/plugins/tools/tool_star/chaltdetoolstar.desktop @@ -0,0 +1,52 @@ +[Desktop Entry] +Name=Star Tool +Name[bg]=Инструмент звезда +Name[br]=Ostilh steredenn +Name[ca]=Eina d'estrella +Name[cy]=Erfyn Seren +Name[da]=Stjerneværktøj +Name[de]=Stern-Werkzeug +Name[el]=Εργαλείο αστεριού +Name[eo]=Stelo-ilo +Name[es]=Herramienta Estrella +Name[et]=Tähe tööriist +Name[eu]=Izarra tresna +Name[fa]=ابزار ستاره +Name[fi]=Tähtityökalu +Name[fr]=Outil étoile +Name[fy]=Sjer-ark +Name[ga]=Uirlis Réiltín +Name[gl]=Ferramenta de Estrelas +Name[he]=כלי כוכב +Name[hu]=Csillag eszköz +Name[is]=Stjörnutól +Name[it]=Strumento stella +Name[ja]=星型ツール +Name[km]=ឧបករណ៍​រាង​ផ្កាយ +Name[lt]=Žvaigždės įrankis +Name[lv]=Zvaigznes rīks +Name[ms]=Alat Bintang +Name[nb]=Stjerneverktøy +Name[nds]=Steern-Warktüüch +Name[ne]=तारा उपकरण +Name[nl]=Stergereedschap +Name[nn]=Stjerneverktøy +Name[pl]=Narzędzie do rysowania gwiazdki +Name[pt]=Ferramenta de Estrelas +Name[pt_BR]=Ferramenta Estrela +Name[ru]=Звезда +Name[se]=Nástereaidu +Name[sk]=Hviezda +Name[sl]=Zvezdno orodje +Name[sr]=Алат за звезде +Name[sr@Latn]=Alat za zvezde +Name[sv]=Stjärnverktyg +Name[uk]=Інструмент зірки +Name[uz]=Yulduz vositasi +Name[uz@cyrillic]=Юлдуз воситаси +Name[zh_CN]=星形工具 +Name[zh_TW]=星形工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktoolstar +X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_transform/chalktooltransform.desktop b/chalk/plugins/tools/tool_transform/chalktooltransform.desktop deleted file mode 100644 index 48fe8042..00000000 --- a/chalk/plugins/tools/tool_transform/chalktooltransform.desktop +++ /dev/null @@ -1,46 +0,0 @@ -[Desktop Entry] -Name=Transform Tool -Name[bg]=Инструмент за трансформиране -Name[br]=Ostilh treuzfurmiñ -Name[ca]=Eina de transformació -Name[cy]=Erfyn Trawsffurfio -Name[da]=Transformeringsværktøj -Name[de]=Transformation-Werkzeug -Name[el]=Εργαλείο μετασχηματισμού -Name[eo]=Transform-ilo -Name[es]=Herramienta para transformar -Name[et]=Transformeermistööriist -Name[fa]=ابزار تبدیل -Name[fr]=Outil transformation -Name[fy]=ferfoarmingsark -Name[ga]=Uirlis Trasfhoirmithe -Name[gl]=Ferramenta de Transformación -Name[hu]=Átalakító eszköz -Name[is]=Ummyndunartól -Name[it]=Strumento di trasformazione -Name[ja]=変換ツール -Name[km]=ឧបករណ៍​ប្លែង -Name[lt]=Transformavimo įrankis -Name[lv]=Transformāciju rīks -Name[nb]=Transformeringsverktøy -Name[nds]=Ümwanneln-Warktüüch -Name[ne]=रूपान्तरण उपकरण -Name[nl]=Vervormgereedschap -Name[pl]=Narzędzie przekształcania -Name[pt]=Ferramenta de Transformação -Name[pt_BR]=Ferramenta de Transformação -Name[ru]=Преобразование -Name[sk]=Transformácia -Name[sl]=Orodje za pretvorbo -Name[sr]=Алат за трансформацију -Name[sr@Latn]=Alat za transformaciju -Name[sv]=Transformeringsverktyg -Name[uk]=Засіб перетворення -Name[uz]=Aylantirish asbobi -Name[uz@cyrillic]=Айлантириш асбоби -Name[zh_CN]=变形工具 -Name[zh_TW]=變形工具 -ServiceTypes=Chalk/Tool -Type=Service -X-TDE-Library=chalktooltransform -X-Chalk-Version=2 diff --git a/chalk/plugins/tools/tool_transform/chaltdetooltransform.desktop b/chalk/plugins/tools/tool_transform/chaltdetooltransform.desktop new file mode 100644 index 00000000..48fe8042 --- /dev/null +++ b/chalk/plugins/tools/tool_transform/chaltdetooltransform.desktop @@ -0,0 +1,46 @@ +[Desktop Entry] +Name=Transform Tool +Name[bg]=Инструмент за трансформиране +Name[br]=Ostilh treuzfurmiñ +Name[ca]=Eina de transformació +Name[cy]=Erfyn Trawsffurfio +Name[da]=Transformeringsværktøj +Name[de]=Transformation-Werkzeug +Name[el]=Εργαλείο μετασχηματισμού +Name[eo]=Transform-ilo +Name[es]=Herramienta para transformar +Name[et]=Transformeermistööriist +Name[fa]=ابزار تبدیل +Name[fr]=Outil transformation +Name[fy]=ferfoarmingsark +Name[ga]=Uirlis Trasfhoirmithe +Name[gl]=Ferramenta de Transformación +Name[hu]=Átalakító eszköz +Name[is]=Ummyndunartól +Name[it]=Strumento di trasformazione +Name[ja]=変換ツール +Name[km]=ឧបករណ៍​ប្លែង +Name[lt]=Transformavimo įrankis +Name[lv]=Transformāciju rīks +Name[nb]=Transformeringsverktøy +Name[nds]=Ümwanneln-Warktüüch +Name[ne]=रूपान्तरण उपकरण +Name[nl]=Vervormgereedschap +Name[pl]=Narzędzie przekształcania +Name[pt]=Ferramenta de Transformação +Name[pt_BR]=Ferramenta de Transformação +Name[ru]=Преобразование +Name[sk]=Transformácia +Name[sl]=Orodje za pretvorbo +Name[sr]=Алат за трансформацију +Name[sr@Latn]=Alat za transformaciju +Name[sv]=Transformeringsverktyg +Name[uk]=Засіб перетворення +Name[uz]=Aylantirish asbobi +Name[uz@cyrillic]=Айлантириш асбоби +Name[zh_CN]=变形工具 +Name[zh_TW]=變形工具 +ServiceTypes=Chalk/Tool +Type=Service +X-TDE-Library=chalktooltransform +X-Chalk-Version=2 diff --git a/chalk/plugins/viewplugins/selectopaque/chalkselectopaque.desktop b/chalk/plugins/viewplugins/selectopaque/chalkselectopaque.desktop deleted file mode 100644 index 654e809c..00000000 --- a/chalk/plugins/viewplugins/selectopaque/chalkselectopaque.desktop +++ /dev/null @@ -1,26 +0,0 @@ -[Desktop Entry] -Name=SelectOpaque -Name[bg]=Негатив -Name[da]=Markér ugennemsigtig -Name[de]=UndurchsichtigeAuswählen -Name[et]=Läbipaistmatute pikslite valik -Name[fy]=Untrochsichtige selektearje -Name[it]=Seleziona i pixel opachi -Name[km]=ជ្រើស​ស្រអាប់ -Name[nds]=Decken utsöken -Name[ne]=अपारदर्शी चयन -Name[nl]=Ondoorzichtige selecteren -Name[pl]=Zaznaczanie nieprzezroczystości -Name[pt]=Selecção Opaca -Name[pt_BR]=Seleção Opaca -Name[ru]=Выделение непрозрачных областей -Name[sk]=Invertovať Výber -Name[sr]=Избор непрозирног -Name[sr@Latn]=Izbor neprozirnog -Name[sv]=Markera ogenomskinliga -Name[uk]=Виділення непрозорих ділянок -Name[zh_TW]=選擇不透明 -ServiceTypes=Chalk/ViewPlugin -Type=Service -X-TDE-Library=chalkselectopaque -X-Chalk-Version=2 diff --git a/chalk/plugins/viewplugins/selectopaque/chaltdeselectopaque.desktop b/chalk/plugins/viewplugins/selectopaque/chaltdeselectopaque.desktop new file mode 100644 index 00000000..654e809c --- /dev/null +++ b/chalk/plugins/viewplugins/selectopaque/chaltdeselectopaque.desktop @@ -0,0 +1,26 @@ +[Desktop Entry] +Name=SelectOpaque +Name[bg]=Негатив +Name[da]=Markér ugennemsigtig +Name[de]=UndurchsichtigeAuswählen +Name[et]=Läbipaistmatute pikslite valik +Name[fy]=Untrochsichtige selektearje +Name[it]=Seleziona i pixel opachi +Name[km]=ជ្រើស​ស្រអាប់ +Name[nds]=Decken utsöken +Name[ne]=अपारदर्शी चयन +Name[nl]=Ondoorzichtige selecteren +Name[pl]=Zaznaczanie nieprzezroczystości +Name[pt]=Selecção Opaca +Name[pt_BR]=Seleção Opaca +Name[ru]=Выделение непрозрачных областей +Name[sk]=Invertovať Výber +Name[sr]=Избор непрозирног +Name[sr@Latn]=Izbor neprozirnog +Name[sv]=Markera ogenomskinliga +Name[uk]=Виділення непрозорих ділянок +Name[zh_TW]=選擇不透明 +ServiceTypes=Chalk/ViewPlugin +Type=Service +X-TDE-Library=chalkselectopaque +X-Chalk-Version=2 diff --git a/doc/api/kfontdialog.png b/doc/api/kfontdialog.png deleted file mode 100644 index 4cdc6815..00000000 Binary files a/doc/api/kfontdialog.png and /dev/null differ diff --git a/doc/api/tdefontdialog.png b/doc/api/tdefontdialog.png new file mode 100644 index 00000000..4cdc6815 Binary files /dev/null and b/doc/api/tdefontdialog.png differ diff --git a/doc/kformula/kfontinst1.png b/doc/kformula/kfontinst1.png deleted file mode 100644 index 88cf8c15..00000000 Binary files a/doc/kformula/kfontinst1.png and /dev/null differ diff --git a/doc/kformula/kfontinst2.png b/doc/kformula/kfontinst2.png deleted file mode 100644 index 20df4d6e..00000000 Binary files a/doc/kformula/kfontinst2.png and /dev/null differ diff --git a/doc/kformula/kfontinst3.png b/doc/kformula/kfontinst3.png deleted file mode 100644 index 83a89dd3..00000000 Binary files a/doc/kformula/kfontinst3.png and /dev/null differ diff --git a/doc/kformula/kfontinst4.png b/doc/kformula/kfontinst4.png deleted file mode 100644 index 1c4223ff..00000000 Binary files a/doc/kformula/kfontinst4.png and /dev/null differ diff --git a/doc/kformula/kfontinst5.png b/doc/kformula/kfontinst5.png deleted file mode 100644 index 927d2dba..00000000 Binary files a/doc/kformula/kfontinst5.png and /dev/null differ diff --git a/doc/kformula/kfontinst6.png b/doc/kformula/kfontinst6.png deleted file mode 100644 index a22fb2bb..00000000 Binary files a/doc/kformula/kfontinst6.png and /dev/null differ diff --git a/doc/kformula/tdefontinst1.png b/doc/kformula/tdefontinst1.png new file mode 100644 index 00000000..88cf8c15 Binary files /dev/null and b/doc/kformula/tdefontinst1.png differ diff --git a/doc/kformula/tdefontinst2.png b/doc/kformula/tdefontinst2.png new file mode 100644 index 00000000..20df4d6e Binary files /dev/null and b/doc/kformula/tdefontinst2.png differ diff --git a/doc/kformula/tdefontinst3.png b/doc/kformula/tdefontinst3.png new file mode 100644 index 00000000..83a89dd3 Binary files /dev/null and b/doc/kformula/tdefontinst3.png differ diff --git a/doc/kformula/tdefontinst4.png b/doc/kformula/tdefontinst4.png new file mode 100644 index 00000000..1c4223ff Binary files /dev/null and b/doc/kformula/tdefontinst4.png differ diff --git a/doc/kformula/tdefontinst5.png b/doc/kformula/tdefontinst5.png new file mode 100644 index 00000000..927d2dba Binary files /dev/null and b/doc/kformula/tdefontinst5.png differ diff --git a/doc/kformula/tdefontinst6.png b/doc/kformula/tdefontinst6.png new file mode 100644 index 00000000..a22fb2bb Binary files /dev/null and b/doc/kformula/tdefontinst6.png differ diff --git a/kexi/widget/utils/klistviewitemtemplate.h b/kexi/widget/utils/klistviewitemtemplate.h deleted file mode 100644 index 9a4a3be4..00000000 --- a/kexi/widget/utils/klistviewitemtemplate.h +++ /dev/null @@ -1,50 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2005 Jaroslaw Staniek - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. -*/ - -#ifndef KLISTVIEWITEMTEMPLATE_H -#define KLISTVIEWITEMTEMPLATE_H - -#include - -//! TQListViewItem class with ability for storing additional data member -template -class TDEListViewItemTemplate : public TDEListViewItem -{ - public: - TDEListViewItemTemplate(type _data, TQListView *parent) - : TDEListViewItem(parent), data(_data) {} - TDEListViewItemTemplate(type _data, TQListViewItem *parent) - : TDEListViewItem(parent), data(_data) {} - TDEListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after) - : TDEListViewItem(parent, after), data(_data) {} - TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after) - : TDEListViewItem(parent, after), data(_data) {} - TDEListViewItemTemplate(type _data, TQListView *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - TDEListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) - : TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} - - type data; -}; - -#endif diff --git a/kexi/widget/utils/tdelistviewitemtemplate.h b/kexi/widget/utils/tdelistviewitemtemplate.h new file mode 100644 index 00000000..9a4a3be4 --- /dev/null +++ b/kexi/widget/utils/tdelistviewitemtemplate.h @@ -0,0 +1,50 @@ +/* This file is part of the KDE project + Copyright (C) 2005 Jaroslaw Staniek + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#ifndef KLISTVIEWITEMTEMPLATE_H +#define KLISTVIEWITEMTEMPLATE_H + +#include + +//! TQListViewItem class with ability for storing additional data member +template +class TDEListViewItemTemplate : public TDEListViewItem +{ + public: + TDEListViewItemTemplate(type _data, TQListView *parent) + : TDEListViewItem(parent), data(_data) {} + TDEListViewItemTemplate(type _data, TQListViewItem *parent) + : TDEListViewItem(parent), data(_data) {} + TDEListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after) + : TDEListViewItem(parent, after), data(_data) {} + TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after) + : TDEListViewItem(parent, after), data(_data) {} + TDEListViewItemTemplate(type _data, TQListView *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + TDEListViewItemTemplate(type _data, TQListView *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + TDEListViewItemTemplate(type _data, TQListViewItem *parent, TQListViewItem *after, TQString label1, TQString label2=TQString(), TQString label3=TQString(), TQString label4=TQString(), TQString label5=TQString(), TQString label6=TQString(), TQString label7=TQString(), TQString label8=TQString()) + : TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8), data(_data) {} + + type data; +}; + +#endif diff --git a/kplato/reports/tasklist.desktop b/kplato/reports/tasklist.desktop deleted file mode 100644 index aaa2b7f3..00000000 --- a/kplato/reports/tasklist.desktop +++ /dev/null @@ -1,46 +0,0 @@ -[Desktop Entry] -Name=List of Tasks -Name[bg]=Списък със задачи -Name[ca]=Llista de tasques -Name[da]=Opgaveliste -Name[de]=Liste von Aufgaben -Name[el]=Λίστα εργασιών -Name[eo]=Listo de taskoj -Name[es]=Lista de tareas -Name[et]=Ülesannete nimekiri -Name[fa]=فهرست تکالیف -Name[fi]=Tehtäväluettelo -Name[fr]=Liste de tâches -Name[fy]=List fan taken -Name[gl]=Lista de Tarefas -Name[he]=רשימת מטלות -Name[hr]=Popis zadataka -Name[hu]=Feladatlista -Name[is]=Listi yfir verkefni -Name[it]=Elenco di attività -Name[ja]=タスクのリスト -Name[km]=​បញ្ជីភារកិច្ច -Name[lt]=Užduočių sąrašas -Name[lv]=Darbu saraksts -Name[nb]=Oppgaveliste -Name[nds]=Opgavenlist -Name[ne]=कार्यहरूको सूची -Name[nl]=Lijst van taken -Name[pl]=Lista zadań -Name[pt]=Lista de Tarefas -Name[pt_BR]=Lista de Tarefas -Name[ru]=Список задач -Name[se]=Bargolistu -Name[sk]=Zoznam úloh -Name[sl]=Seznam opravil -Name[sr]=Листа задатака -Name[sr@Latn]=Lista zadataka -Name[sv]=Aktivitetslista -Name[uk]=Список завдань -Name[uz]=Vazifalar roʻyxati -Name[uz@cyrillic]=Вазифалар рўйхати -Name[zh_CN]=任务列表 -Name[zh_TW]=工作清單 -Type=Link -URL= .source/tasklist.ktf -X-TDE-Hidden=false diff --git a/kplato/reports/tasklist.ktf b/kplato/reports/tasklist.ktf deleted file mode 100644 index ecfceb57..00000000 --- a/kplato/reports/tasklist.ktf +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/kplato/reports/tastdelist.desktop b/kplato/reports/tastdelist.desktop new file mode 100644 index 00000000..aaa2b7f3 --- /dev/null +++ b/kplato/reports/tastdelist.desktop @@ -0,0 +1,46 @@ +[Desktop Entry] +Name=List of Tasks +Name[bg]=Списък със задачи +Name[ca]=Llista de tasques +Name[da]=Opgaveliste +Name[de]=Liste von Aufgaben +Name[el]=Λίστα εργασιών +Name[eo]=Listo de taskoj +Name[es]=Lista de tareas +Name[et]=Ülesannete nimekiri +Name[fa]=فهرست تکالیف +Name[fi]=Tehtäväluettelo +Name[fr]=Liste de tâches +Name[fy]=List fan taken +Name[gl]=Lista de Tarefas +Name[he]=רשימת מטלות +Name[hr]=Popis zadataka +Name[hu]=Feladatlista +Name[is]=Listi yfir verkefni +Name[it]=Elenco di attività +Name[ja]=タスクのリスト +Name[km]=​បញ្ជីភារកិច្ច +Name[lt]=Užduočių sąrašas +Name[lv]=Darbu saraksts +Name[nb]=Oppgaveliste +Name[nds]=Opgavenlist +Name[ne]=कार्यहरूको सूची +Name[nl]=Lijst van taken +Name[pl]=Lista zadań +Name[pt]=Lista de Tarefas +Name[pt_BR]=Lista de Tarefas +Name[ru]=Список задач +Name[se]=Bargolistu +Name[sk]=Zoznam úloh +Name[sl]=Seznam opravil +Name[sr]=Листа задатака +Name[sr@Latn]=Lista zadataka +Name[sv]=Aktivitetslista +Name[uk]=Список завдань +Name[uz]=Vazifalar roʻyxati +Name[uz@cyrillic]=Вазифалар рўйхати +Name[zh_CN]=任务列表 +Name[zh_TW]=工作清單 +Type=Link +URL= .source/tasklist.ktf +X-TDE-Hidden=false diff --git a/kplato/reports/tastdelist.ktf b/kplato/reports/tastdelist.ktf new file mode 100644 index 00000000..ecfceb57 --- /dev/null +++ b/kplato/reports/tastdelist.ktf @@ -0,0 +1,225 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kspread/templates/HomeFamily/VacationChecklist.desktop b/kspread/templates/HomeFamily/VacationChecklist.desktop deleted file mode 100644 index 2655c7e3..00000000 --- a/kspread/templates/HomeFamily/VacationChecklist.desktop +++ /dev/null @@ -1,51 +0,0 @@ -[Desktop Entry] -Type=Link -URL=.source/VacationChecklist.kst -Name=Vacation Checklist -Name[bg]=Ваканция -Name[ca]=Llista de comprovació de vacances -Name[cs]=Dovolená -Name[cy]=Rhestr Wirio Gwyliau -Name[da]=Ferie-tjekliste -Name[de]=Urlaubs-Checkliste -Name[el]=Λίστα ελέγχου διακοπών -Name[eo]=Marklisto por Feriado -Name[es]=Lista de comprobación de vacaciones -Name[et]=Puhkuseplaan -Name[eu]=Oporretako zerrenda -Name[fa]=فهرست بررسی تعطیلی -Name[fi]=Loman tarkistuslista -Name[fr]=Checklist des vacances -Name[fy]=Fakânsje kontrôlelist -Name[gl]=Lista para Viaxes -Name[he]=בדיקת חופשות -Name[hi]=अवकाश जाँच-सूची -Name[hu]=Utazási tennivalók listája -Name[is]=Ferðalags gáttlisti­ -Name[it]=Lista per le vacanze -Name[ja]=休暇チェックリスト -Name[km]=បញ្ជី​វិស្សមកាល -Name[ms]=Senarai Semak Percutian -Name[nb]=Sjekkliste for ferie -Name[nds]=Oorlööf-Pröövlist -Name[ne]=बिदा जाँचसूची -Name[nl]=Vakantie-controlelijst -Name[nn]=Sjekkliste for ferie -Name[pl]=Wakacyjny spis kontrolny -Name[pt]=Lista para Férias -Name[pt_BR]=Lista de Verificação de Férias -Name[ru]=Подготовка к отпуску -Name[se]=Luopmodárkkistanlistu -Name[sk]=Zoznam pre dovolenku -Name[sl]=Seznam za dopust -Name[sr]=Листа за проверу одмора -Name[sr@Latn]=Lista za proveru odmora -Name[sv]=Semesterchecklista -Name[tg]=Раҳонидани Рӯйхати Тафтиш -Name[tr]=İzin Takibi -Name[uk]=Список для підготовки до відпустки -Name[uz]=Dam olishga tayyorgarlik -Name[uz@cyrillic]=Дам олишга тайёргарлик -Name[zh_CN]=度假核对表 -Name[zh_TW]=渡假查核表 -Icon=template_vacationchecklist diff --git a/kspread/templates/HomeFamily/VacationChecklist.kst b/kspread/templates/HomeFamily/VacationChecklist.kst deleted file mode 100644 index 141ff1e4..00000000 --- a/kspread/templates/HomeFamily/VacationChecklist.kst +++ /dev/null @@ -1,722 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vacation Checklist - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TRIP - - - - Luggage - - - - Maps - - - - Get traveler's check - - - - Check travel insurance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PERSONAL - - - - Auto loan - - - - Insurance - - - - House/mortage - - - - - - Bills - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Leave Date - - - - Return Date - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Airplane - - - - Hotel - - - - - - Reservations - - - - - - - - - Newspaper - - - - Dairy - - - - - - Home delivery - - - - - - - - - - - OTHERS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Keys left with: - - - - Notify police: - - - - - - - - - Batteries - - - - Tires - - - - Tuneup - - - - - - Auto check - - - - - - - - - - - - - - - - - - Magazine - - - - Inform post office - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
-
-
diff --git a/kspread/templates/HomeFamily/VacationChectdelist.desktop b/kspread/templates/HomeFamily/VacationChectdelist.desktop new file mode 100644 index 00000000..2655c7e3 --- /dev/null +++ b/kspread/templates/HomeFamily/VacationChectdelist.desktop @@ -0,0 +1,51 @@ +[Desktop Entry] +Type=Link +URL=.source/VacationChecklist.kst +Name=Vacation Checklist +Name[bg]=Ваканция +Name[ca]=Llista de comprovació de vacances +Name[cs]=Dovolená +Name[cy]=Rhestr Wirio Gwyliau +Name[da]=Ferie-tjekliste +Name[de]=Urlaubs-Checkliste +Name[el]=Λίστα ελέγχου διακοπών +Name[eo]=Marklisto por Feriado +Name[es]=Lista de comprobación de vacaciones +Name[et]=Puhkuseplaan +Name[eu]=Oporretako zerrenda +Name[fa]=فهرست بررسی تعطیلی +Name[fi]=Loman tarkistuslista +Name[fr]=Checklist des vacances +Name[fy]=Fakânsje kontrôlelist +Name[gl]=Lista para Viaxes +Name[he]=בדיקת חופשות +Name[hi]=अवकाश जाँच-सूची +Name[hu]=Utazási tennivalók listája +Name[is]=Ferðalags gáttlisti­ +Name[it]=Lista per le vacanze +Name[ja]=休暇チェックリスト +Name[km]=បញ្ជី​វិស្សមកាល +Name[ms]=Senarai Semak Percutian +Name[nb]=Sjekkliste for ferie +Name[nds]=Oorlööf-Pröövlist +Name[ne]=बिदा जाँचसूची +Name[nl]=Vakantie-controlelijst +Name[nn]=Sjekkliste for ferie +Name[pl]=Wakacyjny spis kontrolny +Name[pt]=Lista para Férias +Name[pt_BR]=Lista de Verificação de Férias +Name[ru]=Подготовка к отпуску +Name[se]=Luopmodárkkistanlistu +Name[sk]=Zoznam pre dovolenku +Name[sl]=Seznam za dopust +Name[sr]=Листа за проверу одмора +Name[sr@Latn]=Lista za proveru odmora +Name[sv]=Semesterchecklista +Name[tg]=Раҳонидани Рӯйхати Тафтиш +Name[tr]=İzin Takibi +Name[uk]=Список для підготовки до відпустки +Name[uz]=Dam olishga tayyorgarlik +Name[uz@cyrillic]=Дам олишга тайёргарлик +Name[zh_CN]=度假核对表 +Name[zh_TW]=渡假查核表 +Icon=template_vacationchecklist diff --git a/kspread/templates/HomeFamily/VacationChectdelist.kst b/kspread/templates/HomeFamily/VacationChectdelist.kst new file mode 100644 index 00000000..141ff1e4 --- /dev/null +++ b/kspread/templates/HomeFamily/VacationChectdelist.kst @@ -0,0 +1,722 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vacation Checklist + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TRIP + + + + Luggage + + + + Maps + + + + Get traveler's check + + + + Check travel insurance + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PERSONAL + + + + Auto loan + + + + Insurance + + + + House/mortage + + + + + + Bills + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Leave Date + + + + Return Date + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Airplane + + + + Hotel + + + + + + Reservations + + + + + + + + + Newspaper + + + + Dairy + + + + + + Home delivery + + + + + + + + + + + OTHERS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Keys left with: + + + + Notify police: + + + + + + + + + Batteries + + + + Tires + + + + Tuneup + + + + + + Auto check + + + + + + + + + + + + + + + + + + Magazine + + + + Inform post office + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + +
+
+
diff --git a/kspread/templates/HomeFamily/cr48-action-template_vacationchecklist.png b/kspread/templates/HomeFamily/cr48-action-template_vacationchecklist.png deleted file mode 100644 index 1311301b..00000000 Binary files a/kspread/templates/HomeFamily/cr48-action-template_vacationchecklist.png and /dev/null differ diff --git a/kspread/templates/HomeFamily/cr48-action-template_vacationchectdelist.png b/kspread/templates/HomeFamily/cr48-action-template_vacationchectdelist.png new file mode 100644 index 00000000..1311301b Binary files /dev/null and b/kspread/templates/HomeFamily/cr48-action-template_vacationchectdelist.png differ diff --git a/kspread/templates/HomeFamily/crsc-action-template_vacationchecklist.svgz b/kspread/templates/HomeFamily/crsc-action-template_vacationchecklist.svgz deleted file mode 100644 index d69968ad..00000000 Binary files a/kspread/templates/HomeFamily/crsc-action-template_vacationchecklist.svgz and /dev/null differ diff --git a/kspread/templates/HomeFamily/crsc-action-template_vacationchectdelist.svgz b/kspread/templates/HomeFamily/crsc-action-template_vacationchectdelist.svgz new file mode 100644 index 00000000..d69968ad Binary files /dev/null and b/kspread/templates/HomeFamily/crsc-action-template_vacationchectdelist.svgz differ diff --git a/lib/kofficeui/tkaction.cpp b/lib/kofficeui/tkaction.cpp deleted file mode 100644 index 56c626f8..00000000 --- a/lib/kofficeui/tkaction.cpp +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Kivio - Visual Modelling and Flowcharting - * Copyright (C) 2000 theKompany.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#include "tkaction.h" -#include "tktoolbarbutton.h" -#include "tkcombobox.h" - -#include -#include - -#include -#include - -#define SET_FOR_ALL_CONTAINER(WIDGET_TYPE,METHOD_NAME,VALUE) \ - for( int id = 0; id < containerCount(); ++id ) { \ - TQWidget* w = container(id); \ - if ( w->inherits("TDEToolBar") ) { \ - TQWidget* r = static_cast(w)->getWidget(itemId(id)); \ - if (qstrcmp(r->name(),"KTToolBarLayout")==0) \ - r = (TQWidget*)r->child("widget"); \ - if ( r && r->inherits(#WIDGET_TYPE) ) { \ - WIDGET_TYPE* b = static_cast(r); \ - b->METHOD_NAME(VALUE); \ - } \ - } \ - } - -TTDEAction::TTDEAction(TQObject* parent, const char* name) -: TDEAction( "", 0, parent, name ) -{ - m_imode = TK::IconOnly; -} - -TTDEAction::~TTDEAction() -{ -} - -int TTDEAction::plug(TQWidget* widget, int index) -{ - if ( widget->inherits("TDEToolBar") ) { - TDEToolBar* bar = static_cast(widget); - int id_ = TDEAction::getToolButtonID(); - TDEInstance *instance; - - if ( parentCollection() ) - instance = parentCollection()->instance(); - else - instance = TDEGlobal::instance(); - - TTDEToolBarButton* b = new TTDEToolBarButton(icon(),plainText(),bar,name(),instance); - // we don't need clicked() and buttonClicked(), do we? - // connect(b,TQT_SIGNAL(clicked()),TQT_SLOT(slotActivated())); - b->setIconMode(m_imode); - initToolBarButton(b); - - bar->insertWidget( id_, 100, b, index ); - addContainer(bar,id_); - connect( bar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) ); - - return containerCount() - 1; - } - return TDEAction::plug(widget,index); -} - -void TTDEAction::initToolBarButton(TTDEToolBarButton* button) -{ - connect(button,TQT_SIGNAL(buttonClicked()),TQT_SLOT(slotActivated())); -} - -TK::IconMode TTDEAction::iconMode() -{ - return m_imode; -} - -void TTDEAction::setIconMode(TK::IconMode mode) -{ - m_imode = mode; - SET_FOR_ALL_CONTAINER(TTDEToolBarButton,setIconMode,mode) -} - -void TTDEAction::setText(const TQString& text) -{ - TDEAction::setText(text); - updateLayout(); -} - -void TTDEAction::setIcon(const TQString& icon) -{ - TDEAction::setIcon(icon); - updateLayout(); -} - -void TTDEAction::updateLayout() -{ - int len = containerCount(); - for( int id = 0; id < len; ++id ) { - TQWidget* w = container( id ); - if (w->inherits("TDEToolBar")) { - TQWidget* r = static_cast(w)->getWidget(itemId(id)); - if (qstrcmp(r->name(),"KTToolBarLayout")==0) { - updateLayout(r); - } - } - } -} - -TQWidget* TTDEAction::createLayout(TQWidget* parent, TQWidget* children) -{ - TQWidget* base = new TQWidget(parent,"KTToolBarLayout"); - TQLabel* textLabel = new TQLabel(base,"text"); - textLabel->setMinimumHeight(1); - TQLabel* pixLabel = new TQLabel(base,"pixmap"); - children->reparent(base,TQPoint(0,0)); - children->setName("widget"); - TQHBoxLayout* layout = new TQHBoxLayout(base,0,3); - layout->setResizeMode(TQLayout::Minimum); - layout->addWidget(textLabel); - layout->addWidget(pixLabel); - layout->addWidget(children,1); - - updateLayout(base); - return base; -} - -void TTDEAction::updateLayout(TQWidget* base) -{ - TQLabel* textLabel = (TQLabel*)base->child("text"); - TQLabel* pixLabel = (TQLabel*)base->child("pixmap"); - TQWidget* w = (TQWidget*)base->child("widget"); - - if (!textLabel || !pixLabel || !w) - return; - - if (!text().isEmpty() && m_imode != TK::IconOnly ) { - textLabel->setText(text()); - textLabel->show(); - } else - textLabel->hide(); - - TQPixmap pix; - if (hasIcon()) - pix = iconSet(KIcon::Small).pixmap(); - - if (!icon().isEmpty()) - pix = BarIcon(icon()); - - if (!pix.isNull() && m_imode != TK::TextOnly) { - pixLabel->setPixmap(pix); - pixLabel->show(); - } else - pixLabel->hide(); - - base->setFixedWidth( w->sizeHint().width() + - (textLabel->isVisible() ? textLabel->sizeHint().width():0) + - (pixLabel->isVisible() ? pixLabel->sizeHint().width():0) ); -} -/******************************************************************************/ -TKBaseSelectAction::TKBaseSelectAction( TQObject* parent, const char* name ) -: TTDEAction(parent,name) -{ - m_current = 0; - m_editable = false; -} - -TKBaseSelectAction::~TKBaseSelectAction() -{ -} - -int TKBaseSelectAction::plug(TQWidget* widget, int index) -{ - if ( widget->inherits("TDEToolBar") ) - { - TDEToolBar* bar = static_cast( widget ); - int id_ = TDEAction::getToolButtonID(); - - TKComboBox* cb = new TKComboBox(m_editable,bar); - initComboBox(cb); - cb->setMinimumWidth( cb->sizeHint().width() ); - TQWidget* base = createLayout(bar,cb); - - bar->insertWidget( id_, 100, base, index ); - addContainer( bar, id_ ); - - connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); - - setCurrentItem(currentItem()); - - return containerCount() - 1; - } - return -1; -} - -int TKBaseSelectAction::currentItem() -{ - return m_current; -} - -void TKBaseSelectAction::initComboBox(TKComboBox* cb) -{ - connect(cb,TQT_SIGNAL(activated(int)),TQT_SLOT(slotActivated(int))); -} - -void TKBaseSelectAction::setEditable(bool editable) -{ - m_editable = editable; - SET_FOR_ALL_CONTAINER(TKComboBox,setEditable,editable) -} - -bool TKBaseSelectAction::isEditable() -{ - return m_editable; -} - -void TKBaseSelectAction::setCurrentItem(int index) -{ - m_current = index; - SET_FOR_ALL_CONTAINER(TKComboBox,setCurrentItem,index) -} - -void TKBaseSelectAction::slotActivated(int id) -{ - if ( m_current == id ) - return; - - m_current = id; - setCurrentItem(id); - activate(id); -} - -void TKBaseSelectAction::activate(int id) -{ - emit activated(id); -} -/******************************************************************************/ -TTDESelectAction::TTDESelectAction( TQObject* parent, const char* name ) -: TKBaseSelectAction(parent,name) -{ -} - -TTDESelectAction::~TTDESelectAction() -{ -} - -void TTDESelectAction::initComboBox(TKComboBox* cb) -{ - TKBaseSelectAction::initComboBox(cb); - connect(cb,TQT_SIGNAL(activated(const TQString&)),TQT_SLOT(slotActivated(const TQString&))); - cb->insertStringList(items()); -} - -void TTDESelectAction::slotActivated(const TQString& text) -{ - emit activated(text); -} - -void TTDESelectAction::setItems(const TQStringList& lst ) -{ - m_list = lst; - m_current = -1; - - SET_FOR_ALL_CONTAINER(TKComboBox,clear, ) - SET_FOR_ALL_CONTAINER(TKComboBox,insertStringList,lst) - - // Disable if empty and not editable - setEnabled ( lst.count() > 0 || m_editable ); -} - -TQStringList TTDESelectAction::items() const -{ - return m_list; -} - -void TTDESelectAction::clear() -{ - SET_FOR_ALL_CONTAINER(TKComboBox,clear, ) -} - -void TTDESelectAction::setEditText(const TQString& text) -{ - SET_FOR_ALL_CONTAINER(TKComboBox,setEditText,text) -} - -#undef SET_FOR_ALL_CONTAINER -#include "tkaction.moc" diff --git a/lib/kofficeui/tkaction.h b/lib/kofficeui/tkaction.h deleted file mode 100644 index 736bb141..00000000 --- a/lib/kofficeui/tkaction.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Kivio - Visual Modelling and Flowcharting - * Copyright (C) 2000 theKompany.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#ifndef TKACTION_H -#define TKACTION_H - -#include -#include -#include -namespace TK { - enum IconMode { IconOnly, IconAndText, TextOnly }; -} - -class TTDEToolBarButton; -class TKComboBox; - -class KOFFICEUI_EXPORT TTDEAction : public TDEAction -{ Q_OBJECT - -public: - TTDEAction(TQObject* parent, const char* name); - ~TTDEAction(); - - virtual int plug(TQWidget* widget, int index = -1); - - TK::IconMode iconMode(); - -protected: - virtual void initToolBarButton(TTDEToolBarButton*); - - TQWidget* createLayout(TQWidget* parent, TQWidget* children); - void updateLayout(); - virtual void updateLayout(TQWidget*); - -public slots: - virtual void setIconMode(TK::IconMode); - void setText(const TQString&); - void setIcon(const TQString&); - -private: - TK::IconMode m_imode; - class TTDEActionPrivate; - TTDEActionPrivate *d; -}; -/******************************************************************************/ -class KOFFICEUI_EXPORT TKBaseSelectAction : public TTDEAction -{ Q_OBJECT - -friend class TTDESelectAction; -public: - TKBaseSelectAction(TQObject* parent, const char* name); - ~TKBaseSelectAction(); - - virtual int plug(TQWidget* widget, int index = -1); - - int currentItem(); - bool isEditable(); - - void activate(int); - -protected: - virtual void initComboBox(TKComboBox*); - -public slots: - virtual void setCurrentItem(int index); - virtual void setEditable(bool); - -protected slots: - virtual void slotActivated(int); - -signals: - void activated(int); - -private: - int m_current; - bool m_editable; - class TKBaseSelectActionPrivate; - TKBaseSelectActionPrivate *d; -}; -/******************************************************************************/ -class KOFFICEUI_EXPORT TTDESelectAction : public TKBaseSelectAction -{ Q_OBJECT - -public: - TTDESelectAction(TQObject* parent, const char* name); - ~TTDESelectAction(); - - TQStringList items() const; - -public slots: - virtual void setItems(const TQStringList& ); - virtual void setEditText(const TQString&); - virtual void clear(); - -protected: - virtual void initComboBox(TKComboBox*); - -protected slots: - void slotActivated(const TQString&); - -signals: - void activated(const TQString&); - -private: - TQStringList m_list; - class TTDESelectActionPrivate; - TTDESelectActionPrivate *d; -}; -/******************************************************************************/ -#endif diff --git a/lib/kofficeui/tktoolbarbutton.cpp b/lib/kofficeui/tktoolbarbutton.cpp deleted file mode 100644 index c4c8e27b..00000000 --- a/lib/kofficeui/tktoolbarbutton.cpp +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Kivio - Visual Modelling and Flowcharting - * Copyright (C) 2000 theKompany.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#include - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -// Delay in ms before delayed popup pops up -#define POPUP_DELAY 500 - -class TTDEToolBarButton::TTDEToolBarButtonPrivate -{ -public: - TTDEToolBarButtonPrivate() - { - m_iconMode = TK::IconOnly; - m_isPopup = false; - m_isToggle = false; - m_isOn = false; - m_isRaised = false; - m_autoRaised = true; - ignoreNextMousePress = false; - - m_text = TQString(); - m_iconName = TQString(); - m_arrowPressed = false; - m_delayTimer = 0L; - m_popup = 0L; - - m_disabledIconName = TQString(); - m_defaultIconName = TQString(); - - m_instance = TDEGlobal::instance(); - } - - ~TTDEToolBarButtonPrivate() - { - delete m_delayTimer; - m_delayTimer = 0; - } - - bool m_isPopup; - bool m_isToggle; - bool m_isOn; - bool m_isRaised; - bool m_autoRaised; - bool m_arrowPressed; - bool ignoreNextMousePress; - - TQString m_text; - TQString m_iconName; - TQString m_disabledIconName; - TQString m_defaultIconName; - - TK::IconMode m_iconMode; - - TQTimer *m_delayTimer; - TQPopupMenu *m_popup; - - TDEInstance *m_instance; -}; - -TTDEToolBarButton::TTDEToolBarButton( const TQString& icon, const TQString& txt, - TQWidget* parent, const char* name, - TDEInstance *instance ) -: TQToolButton(parent,name) -{ - d = new TTDEToolBarButtonPrivate; - d->m_text = txt; - d->m_instance = instance; - - setFocusPolicy( TQ_NoFocus ); - - connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); - connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); - connect(this, TQT_SIGNAL(released()), TQT_SLOT(slotReleased()) ); - - installEventFilter(this); - - setIcon(icon); - modeChange(); -} - -TTDEToolBarButton::TTDEToolBarButton( const TQPixmap& pixmap, const TQString& txt, TQWidget* parent, const char* name ) -: TQToolButton(parent,name ) -{ - d = new TTDEToolBarButtonPrivate; - d->m_text = txt; - - setFocusPolicy( TQ_NoFocus ); - - connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); - connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); - connect(this, TQT_SIGNAL(released()), TQT_SLOT(slotReleased()) ); - - installEventFilter(this); - - setPixmap(pixmap); - modeChange(); -} - -TTDEToolBarButton::~TTDEToolBarButton() -{ - delete d; -} - -TQString TTDEToolBarButton::text() -{ - return d->m_text; -} - -void TTDEToolBarButton::modeChange() -{ - TQToolTip::add(this,d->m_text); - - int border = 3; - int w = 2*border; - int h = 2*border; - - if (pixmap()) { - w += pixmap()->width(); - h = TQMAX(h,pixmap()->height()+2*border); - if (d->m_iconMode == TK::IconAndText && !d->m_text.isEmpty()) - w += border; - } - - if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty()) - { - TQFont tmp_font = TDEGlobalSettings::toolBarFont(); - TQFontMetrics fm(tmp_font); - - h = TQMAX(h,fm.lineSpacing()+2*border); - w += fm.width(d->m_text); - } - - if (d->m_popup && !d->m_isToggle) - w += 11; - - TQSize size(w,h); - setMinimumSize(size); - - updateGeometry(); -} - -void TTDEToolBarButton::setEnabled( bool enabled ) -{ - if (isEnabled()==enabled) - return; - - TQToolButton::setPixmap( (enabled ? defaultPixmap : disabledPixmap) ); - TQToolButton::setEnabled( enabled ); -} - -void TTDEToolBarButton::setText( const TQString& text) -{ - d->m_text = text; - repaint(false); -} - -void TTDEToolBarButton::setIcon( const TQString& icon ) -{ - d->m_iconName = icon; - int iconSize = 16; - - setPixmap( BarIcon(icon, iconSize, KIcon::ActiveState, d->m_instance), false ); - setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); - setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); -} - -void TTDEToolBarButton::setDisabledIcon( const TQString &icon ) -{ - d->m_disabledIconName = icon; - int iconSize = 16; - setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); -} - -void TTDEToolBarButton::setDefaultIcon( const TQString &icon ) -{ - d->m_defaultIconName = icon; - int iconSize = 16; - setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); -} - -TQPixmap TTDEToolBarButton::getActivePixmap() const -{ - return activePixmap; -} - -void TTDEToolBarButton::setPixmap( const TQPixmap &pixmap ) -{ - setPixmap( pixmap, true ); -} - -void TTDEToolBarButton::setPixmap( const TQPixmap &pixmap, bool generate ) -{ - activePixmap = pixmap; - - if ( generate ) - { - makeDefaultPixmap(); - makeDisabledPixmap(); - } - else - { - if (defaultPixmap.isNull()) - defaultPixmap = activePixmap; - if (disabledPixmap.isNull()) - disabledPixmap = activePixmap; - } - - TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); -} - -void TTDEToolBarButton::setDefaultPixmap( const TQPixmap &pixmap ) -{ - defaultPixmap = pixmap; - TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); -} - -void TTDEToolBarButton::setDisabledPixmap( const TQPixmap &pixmap ) -{ - disabledPixmap = pixmap; - TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); -} - -void TTDEToolBarButton::setPopup(TQPopupMenu *p) -{ - d->m_popup = p; - d->m_popup->setFont(TDEGlobalSettings::toolBarFont()); - p->installEventFilter(this); - - modeChange(); -} - -TQPopupMenu *TTDEToolBarButton::popup() -{ - return d->m_popup; -} - -void TTDEToolBarButton::setDelayedPopup (TQPopupMenu *p, bool toggle ) -{ - d->m_isPopup = true; - setToggle(toggle); - - if (!d->m_delayTimer) { - d->m_delayTimer = new TQTimer(this); - connect(d->m_delayTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDelayTimeout())); - } - - setPopup(p); -} - -void TTDEToolBarButton::setRaised(bool f) -{ - d->m_isRaised = f; - repaint(false); -} - -void TTDEToolBarButton::setAutoRaised(bool f) -{ - d->m_autoRaised = f; -} - -void TTDEToolBarButton::leaveEvent(TQEvent *) -{ - if (!d->m_isToggle && !(d->m_popup && d->m_popup->isVisible()) ) { - TQToolButton::setPixmap(isEnabled() ? defaultPixmap : disabledPixmap); - if (d->m_autoRaised) - setRaised(false); - } -} - -void TTDEToolBarButton::enterEvent(TQEvent *) -{ - if (!d->m_isToggle) { - if (isEnabled()) { - TQToolButton::setPixmap(activePixmap); - if (d->m_autoRaised) - setRaised(true); - } else { - TQToolButton::setPixmap(disabledPixmap); - } - repaint(false); - } -} - -bool TTDEToolBarButton::eventFilter(TQObject *o, TQEvent *ev) -{ - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) ) - if (ev->type() == TQEvent::MouseButtonPress && d->m_popup && d->m_isPopup ) { - if (!d->m_isToggle) { - d->m_arrowPressed = arrowPressed( mapFromGlobal(TQCursor::pos()) ); - } else { - d->m_delayTimer->start(POPUP_DELAY); - } - } - - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(d->m_popup)) { - switch (ev->type()) - { - case TQEvent::Show: - on(true); - return false; - case TQEvent::Hide: - on(false); - setDown(false); - if ( !geometry().contains(parentWidget()->mapFromGlobal(TQCursor::pos())) ) - leaveEvent(0L); - return false; - break; - case TQEvent::MouseButtonPress: { - d->m_arrowPressed = arrowPressed( mapFromGlobal(TQCursor::pos()) ); - d->ignoreNextMousePress = d->m_arrowPressed; - break; - } - default: - break; - } - } - return false; -} - -void TTDEToolBarButton::drawButton( TQPainter* p ) -{ -#define DRAW_PIXMAP_AND_TEXT \ - int x = 3;\ - if (pixmap()) {\ - style().drawItem( p, TQRect( x, 0, pixmap()->width(), height() ), AlignCenter, colorGroup(), isEnabled(), pixmap(), TQString() );\ - if (d->m_iconMode==TK::IconAndText && !d->m_text.isEmpty()) {\ - x += pixmap()->width() + 3;\ - }\ - }\ - if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty()) {\ - TQFontMetrics fm(TDEGlobalSettings::toolBarFont());\ - style().drawItem( p, TQRect( x, 0, fm.width(d->m_text), height() ), AlignCenter, colorGroup(), isEnabled(), 0, d->m_text );\ - } - - const char* arrow[] = { - "7 4 2 1", - "# c Black", - ". c None", - "#######", - ".#####.", - "..###..", - "...#..."}; - TQPixmap arrow_pix(arrow); - bool f = d->m_isOn || isDown(); - - if (d->m_popup && !d->m_isToggle) - { - if (d->m_isPopup) - { - TQStyle::SFlags flags = TQStyle::Style_Default; - if (isEnabled()) flags |= TQStyle::Style_Enabled; - if (isOn()) flags |= TQStyle::Style_On; - if (d->m_isRaised) flags |= TQStyle::Style_Raised; - if (hasFocus()) flags |= TQStyle::Style_HasFocus; - - style().drawComplexControl( TQStyle::CC_ToolButton, p, this, TQRect( 0, 0, width()-12, height() ), colorGroup(), flags, TQStyle::SC_ToolButton ); - style().drawComplexControl( TQStyle::CC_ToolButton, p, this, TQRect( width()-13, 0, 13, height() ), colorGroup(), flags, TQStyle::SC_ToolButton ); - style().drawItem( p, TQRect( width()-13, 0, 13, height() ), AlignCenter, colorGroup(), isEnabled(), &arrow_pix, TQString() ); - if ( d->m_isRaised ) - qDrawShadeLine( p, width()-12, 0, width()-12, height(), colorGroup(), true ); - DRAW_PIXMAP_AND_TEXT - } else { - style().drawControl( TQStyle::CE_PushButton, p, this, TQRect( 0, 0, width(), height() ), isEnabled() ? colorGroup() : palette().disabled(), f ); - DRAW_PIXMAP_AND_TEXT - int z = f ? 1:0; - p->drawPixmap(width()-11+z,(height()-4)/2+z ,arrow_pix); - } - } else { - style().drawControl( TQStyle::CE_PushButton, p, this, TQRect( 0, 0, width(), height() ), isEnabled() ? colorGroup() : palette().disabled(), f ); - DRAW_PIXMAP_AND_TEXT - } -} - -void TTDEToolBarButton::paletteChange(const TQPalette &) -{ - makeDisabledPixmap(); - if ( !isEnabled() ) - TQToolButton::setPixmap( disabledPixmap ); - else - TQToolButton::setPixmap( defaultPixmap ); - repaint(false); -} - -void TTDEToolBarButton::makeDefaultPixmap() -{ - if (activePixmap.isNull()) - return; - - KIconEffect effect; - defaultPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DefaultState); -} - -void TTDEToolBarButton::makeDisabledPixmap() -{ - if (activePixmap.isNull()) - return; - - KIconEffect effect; - disabledPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DisabledState); -} - -TQSize TTDEToolBarButton::sizeHint() const -{ - return minimumSize(); -} - -TQSize TTDEToolBarButton::minimumSizeHint() const -{ - return minimumSize(); -} - -void TTDEToolBarButton::showMenu() -{ - TQPoint p ( mapToGlobal( TQPoint( 0, 0 ) ) ); - const int deskHeight = TDEGlobalSettings::desktopGeometry(this).height(); - if ( p.y() + height() + d->m_popup->height() > deskHeight ) - p.setY( p.y() - d->m_popup->height() ); - else - p.setY( p.y() + height( )); - - d->m_popup->popup(p); -} - -void TTDEToolBarButton::slotDelayTimeout() -{ - d->m_delayTimer->stop(); - showMenu(); -} - -void TTDEToolBarButton::slotClicked() -{ - if ( d->ignoreNextMousePress ) { - d->ignoreNextMousePress=false; - return; - } - - if (d->m_popup && !d->m_isPopup) - showMenu(); - else - emit buttonClicked(); -} - -void TTDEToolBarButton::slotPressed() -{ - if ( d->ignoreNextMousePress ) - return; - - if (d->m_popup) { - if (!d->m_isPopup || d->m_isPopup && d->m_arrowPressed) - showMenu(); - } - else - emit buttonPressed(); - - d->ignoreNextMousePress = false; -} - -void TTDEToolBarButton::slotReleased() -{ - if (d->m_popup && d->m_isPopup) - d->m_delayTimer->stop(); - - emit buttonReleased(); -} - -void TTDEToolBarButton::slotToggled() -{ - emit buttonToggled(); -} - -void TTDEToolBarButton::on(bool flag) -{ - d->m_isOn = flag; - repaint(); -} - -void TTDEToolBarButton::toggle() -{ - on(!d->m_isOn); -} - -void TTDEToolBarButton::setToggle(bool flag) -{ - d->m_isToggle = flag; - if (flag == true) - connect(this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggled())); - else - disconnect(this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggled())); - - modeChange(); - repaint(); -} - -void TTDEToolBarButton::setIconMode( TK::IconMode m ) -{ - d->m_iconMode = m; - modeChange(); - repaint(); -} - -#include diff --git a/lib/kofficeui/tktoolbarbutton.h b/lib/kofficeui/tktoolbarbutton.h deleted file mode 100644 index 14d3b285..00000000 --- a/lib/kofficeui/tktoolbarbutton.h +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Kivio - Visual Modelling and Flowcharting - * Copyright (C) 2000 theKompany.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#ifndef TKTOOLBARBUTTON_H -#define TKTOOLBARBUTTON_H - -#include - -#include -#include -#include - -class TDEToolBar; -class TDEInstance; -class TQPopupMenu; -class TQPainter; - -class TTDEToolBarButton : public TQToolButton -{ Q_OBJECT - -public: - TTDEToolBarButton(const TQString& icon, const TQString& txt, - TQWidget* parent = 0, const char *name=0L, - TDEInstance *_instance = TDEGlobal::instance()); - - TTDEToolBarButton(const TQPixmap&, const TQString&, TQWidget* parent=0, const char* name=0); - ~TTDEToolBarButton(); - - void setIconMode(TK::IconMode); - void setRaised(bool); - void setAutoRaised(bool); - - /** - * Enable/Disable this button - * - * @param enable Defaults to true - */ - void setEnabled(bool enable = true); - - /** - * Set the pixmap directly for this button. This pixmap should be - * the active one... the dimmed and disabled pixmaps are constructed - * based on this one. However, don't use this function unless you - * are positive that you don't want to use @ref setIcon. - * - * @param pixmap The active pixmap - */ - virtual void setPixmap(const TQPixmap &pixmap); - - /** - * Set the pixmap directly for this button. This pixmap should be - * the active one.. however, the disabled and default pixmaps will - * only be constructed if @ref #generate is true. In any event, - * don't use this function unless you are positive that you don't - * want to use @ref setIcon. - * - * @param pixmap The active pixmap - * @param generate If true, then the other pixmaps will be - * automatically generated using configurable effects - */ - virtual void setPixmap(const TQPixmap &pixmap, bool generate); - - /** - * Force the button to use this pixmap as the default one rather - * then generating it using effects. - * - * @param pixmap The pixmap to use as the default (normal) one - */ - virtual void setDefaultPixmap(const TQPixmap& pixmap); - - /** - * Force the button to use this pixmap when disabled one rather then - * generating it using effects. - * - * @param pixmap The pixmap to use when disabled - */ - virtual void setDisabledPixmap(const TQPixmap& pixmap); - - /** - * Set the text for this button. The text will be either used as a - * tooltip (IconOnly) or will be along side the icon - * - * @param text The button (or tooltip) text - */ - virtual void setText(const TQString &text); - TQString text(); - - /** - * Set the icon for this button. This icon should be the active - * one... the dimmed and disabled icons are constructed based on - * this one. The actual pixmap will be loaded internally. This - * function is preferred over @ref setPixmap - * - * @param icon The name of the active pixmap - */ - virtual void setIcon(const TQString &icon); - - /** - * Force the button to use this icon as the default one rather - * then generating it using effects. - * - * @param icon The icon to use as the default (normal) one - */ - virtual void setDefaultIcon(const TQString& icon); - - /** - * Force the button to use this icon when disabled one rather then - * generating it using effects. - * - * @param icon The icon to use when disabled - */ - virtual void setDisabledIcon(const TQString& icon); - - /** - * Turn this button on or off - * - * @param flag true or false - */ - void on(bool flag = true); - - /** - * Toggle this button - */ - void toggle(); - - /** - * Turn this button into a toggle button or disable the toggle - * aspects of it. This does not toggle the button itself. Use @ref - * toggle for that. - * - * @param toggle true or false - */ - void setToggle(bool toggle = true); - - /** - * Return a pointer to this button's popup menu (if it exists) - */ - TQPopupMenu *popup(); - - /** - * Give this button a popup menu. There will not be a delay when - * you press the button. Use @ref setDelayedPopup if you want that - * behavior - * - * @param p The new popup menu - */ - void setPopup (TQPopupMenu *p); - - /** - * Gives this button a delayed popup menu. - * - * This function allows you to add a delayed popup menu to the button. - * The popup menu is then only displayed when the button is pressed and - * held down for about half a second. You can also make the poup-menu - * "sticky", i.e. visible until a selection is made or the mouse is - * clikced elsewhere, by simply setting the second argument to true. - * This "sticky" button feature allows you to make a selection without - * having to press and hold down the mouse while making a selection. - * - * @param p the new popup menu - * @param toggle if true, makes the button "sticky" (toggled) - */ - void setDelayedPopup(TQPopupMenu *p, bool toggle = false); - - TQPixmap getActivePixmap() const; - - virtual TQSize sizeHint() const; - virtual TQSize minimumSizeHint() const; - -signals: - void buttonClicked(); - void buttonPressed(); - void buttonReleased(); - void buttonToggled(); - -public slots: - void modeChange(); - -protected: - void paletteChange(const TQPalette &); - void leaveEvent(TQEvent *e); - void enterEvent(TQEvent *e); - void drawButton(TQPainter *p); - bool eventFilter (TQObject *o, TQEvent *e); - void showMenu(); - - void makeDefaultPixmap(); - void makeDisabledPixmap(); - bool arrowPressed( const TQPoint& pos ) { - int x = pos.x(); - int y = pos.y(); - return (x > width() - 12 && x <= width() && y > 0 && y < height()); - } - -private: - TQPixmap defaultPixmap; - TQPixmap activePixmap; - TQPixmap disabledPixmap; - virtual void setIcon(const TQPixmap &p) { TQButton::setIcon(p); } - class TTDEToolBarButtonPrivate; - TTDEToolBarButtonPrivate *d; - - -protected slots: - void slotClicked(); - void slotPressed(); - void slotReleased(); - void slotToggled(); - void slotDelayTimeout(); -}; - -#endif diff --git a/lib/kofficeui/ttdeaction.cpp b/lib/kofficeui/ttdeaction.cpp new file mode 100644 index 00000000..56c626f8 --- /dev/null +++ b/lib/kofficeui/ttdeaction.cpp @@ -0,0 +1,300 @@ +/* + * Kivio - Visual Modelling and Flowcharting + * Copyright (C) 2000 theKompany.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ +#include "tkaction.h" +#include "tktoolbarbutton.h" +#include "tkcombobox.h" + +#include +#include + +#include +#include + +#define SET_FOR_ALL_CONTAINER(WIDGET_TYPE,METHOD_NAME,VALUE) \ + for( int id = 0; id < containerCount(); ++id ) { \ + TQWidget* w = container(id); \ + if ( w->inherits("TDEToolBar") ) { \ + TQWidget* r = static_cast(w)->getWidget(itemId(id)); \ + if (qstrcmp(r->name(),"KTToolBarLayout")==0) \ + r = (TQWidget*)r->child("widget"); \ + if ( r && r->inherits(#WIDGET_TYPE) ) { \ + WIDGET_TYPE* b = static_cast(r); \ + b->METHOD_NAME(VALUE); \ + } \ + } \ + } + +TTDEAction::TTDEAction(TQObject* parent, const char* name) +: TDEAction( "", 0, parent, name ) +{ + m_imode = TK::IconOnly; +} + +TTDEAction::~TTDEAction() +{ +} + +int TTDEAction::plug(TQWidget* widget, int index) +{ + if ( widget->inherits("TDEToolBar") ) { + TDEToolBar* bar = static_cast(widget); + int id_ = TDEAction::getToolButtonID(); + TDEInstance *instance; + + if ( parentCollection() ) + instance = parentCollection()->instance(); + else + instance = TDEGlobal::instance(); + + TTDEToolBarButton* b = new TTDEToolBarButton(icon(),plainText(),bar,name(),instance); + // we don't need clicked() and buttonClicked(), do we? + // connect(b,TQT_SIGNAL(clicked()),TQT_SLOT(slotActivated())); + b->setIconMode(m_imode); + initToolBarButton(b); + + bar->insertWidget( id_, 100, b, index ); + addContainer(bar,id_); + connect( bar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) ); + + return containerCount() - 1; + } + return TDEAction::plug(widget,index); +} + +void TTDEAction::initToolBarButton(TTDEToolBarButton* button) +{ + connect(button,TQT_SIGNAL(buttonClicked()),TQT_SLOT(slotActivated())); +} + +TK::IconMode TTDEAction::iconMode() +{ + return m_imode; +} + +void TTDEAction::setIconMode(TK::IconMode mode) +{ + m_imode = mode; + SET_FOR_ALL_CONTAINER(TTDEToolBarButton,setIconMode,mode) +} + +void TTDEAction::setText(const TQString& text) +{ + TDEAction::setText(text); + updateLayout(); +} + +void TTDEAction::setIcon(const TQString& icon) +{ + TDEAction::setIcon(icon); + updateLayout(); +} + +void TTDEAction::updateLayout() +{ + int len = containerCount(); + for( int id = 0; id < len; ++id ) { + TQWidget* w = container( id ); + if (w->inherits("TDEToolBar")) { + TQWidget* r = static_cast(w)->getWidget(itemId(id)); + if (qstrcmp(r->name(),"KTToolBarLayout")==0) { + updateLayout(r); + } + } + } +} + +TQWidget* TTDEAction::createLayout(TQWidget* parent, TQWidget* children) +{ + TQWidget* base = new TQWidget(parent,"KTToolBarLayout"); + TQLabel* textLabel = new TQLabel(base,"text"); + textLabel->setMinimumHeight(1); + TQLabel* pixLabel = new TQLabel(base,"pixmap"); + children->reparent(base,TQPoint(0,0)); + children->setName("widget"); + TQHBoxLayout* layout = new TQHBoxLayout(base,0,3); + layout->setResizeMode(TQLayout::Minimum); + layout->addWidget(textLabel); + layout->addWidget(pixLabel); + layout->addWidget(children,1); + + updateLayout(base); + return base; +} + +void TTDEAction::updateLayout(TQWidget* base) +{ + TQLabel* textLabel = (TQLabel*)base->child("text"); + TQLabel* pixLabel = (TQLabel*)base->child("pixmap"); + TQWidget* w = (TQWidget*)base->child("widget"); + + if (!textLabel || !pixLabel || !w) + return; + + if (!text().isEmpty() && m_imode != TK::IconOnly ) { + textLabel->setText(text()); + textLabel->show(); + } else + textLabel->hide(); + + TQPixmap pix; + if (hasIcon()) + pix = iconSet(KIcon::Small).pixmap(); + + if (!icon().isEmpty()) + pix = BarIcon(icon()); + + if (!pix.isNull() && m_imode != TK::TextOnly) { + pixLabel->setPixmap(pix); + pixLabel->show(); + } else + pixLabel->hide(); + + base->setFixedWidth( w->sizeHint().width() + + (textLabel->isVisible() ? textLabel->sizeHint().width():0) + + (pixLabel->isVisible() ? pixLabel->sizeHint().width():0) ); +} +/******************************************************************************/ +TKBaseSelectAction::TKBaseSelectAction( TQObject* parent, const char* name ) +: TTDEAction(parent,name) +{ + m_current = 0; + m_editable = false; +} + +TKBaseSelectAction::~TKBaseSelectAction() +{ +} + +int TKBaseSelectAction::plug(TQWidget* widget, int index) +{ + if ( widget->inherits("TDEToolBar") ) + { + TDEToolBar* bar = static_cast( widget ); + int id_ = TDEAction::getToolButtonID(); + + TKComboBox* cb = new TKComboBox(m_editable,bar); + initComboBox(cb); + cb->setMinimumWidth( cb->sizeHint().width() ); + TQWidget* base = createLayout(bar,cb); + + bar->insertWidget( id_, 100, base, index ); + addContainer( bar, id_ ); + + connect( bar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); + + setCurrentItem(currentItem()); + + return containerCount() - 1; + } + return -1; +} + +int TKBaseSelectAction::currentItem() +{ + return m_current; +} + +void TKBaseSelectAction::initComboBox(TKComboBox* cb) +{ + connect(cb,TQT_SIGNAL(activated(int)),TQT_SLOT(slotActivated(int))); +} + +void TKBaseSelectAction::setEditable(bool editable) +{ + m_editable = editable; + SET_FOR_ALL_CONTAINER(TKComboBox,setEditable,editable) +} + +bool TKBaseSelectAction::isEditable() +{ + return m_editable; +} + +void TKBaseSelectAction::setCurrentItem(int index) +{ + m_current = index; + SET_FOR_ALL_CONTAINER(TKComboBox,setCurrentItem,index) +} + +void TKBaseSelectAction::slotActivated(int id) +{ + if ( m_current == id ) + return; + + m_current = id; + setCurrentItem(id); + activate(id); +} + +void TKBaseSelectAction::activate(int id) +{ + emit activated(id); +} +/******************************************************************************/ +TTDESelectAction::TTDESelectAction( TQObject* parent, const char* name ) +: TKBaseSelectAction(parent,name) +{ +} + +TTDESelectAction::~TTDESelectAction() +{ +} + +void TTDESelectAction::initComboBox(TKComboBox* cb) +{ + TKBaseSelectAction::initComboBox(cb); + connect(cb,TQT_SIGNAL(activated(const TQString&)),TQT_SLOT(slotActivated(const TQString&))); + cb->insertStringList(items()); +} + +void TTDESelectAction::slotActivated(const TQString& text) +{ + emit activated(text); +} + +void TTDESelectAction::setItems(const TQStringList& lst ) +{ + m_list = lst; + m_current = -1; + + SET_FOR_ALL_CONTAINER(TKComboBox,clear, ) + SET_FOR_ALL_CONTAINER(TKComboBox,insertStringList,lst) + + // Disable if empty and not editable + setEnabled ( lst.count() > 0 || m_editable ); +} + +TQStringList TTDESelectAction::items() const +{ + return m_list; +} + +void TTDESelectAction::clear() +{ + SET_FOR_ALL_CONTAINER(TKComboBox,clear, ) +} + +void TTDESelectAction::setEditText(const TQString& text) +{ + SET_FOR_ALL_CONTAINER(TKComboBox,setEditText,text) +} + +#undef SET_FOR_ALL_CONTAINER +#include "tkaction.moc" diff --git a/lib/kofficeui/ttdeaction.h b/lib/kofficeui/ttdeaction.h new file mode 100644 index 00000000..736bb141 --- /dev/null +++ b/lib/kofficeui/ttdeaction.h @@ -0,0 +1,126 @@ +/* + * Kivio - Visual Modelling and Flowcharting + * Copyright (C) 2000 theKompany.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ +#ifndef TKACTION_H +#define TKACTION_H + +#include +#include +#include +namespace TK { + enum IconMode { IconOnly, IconAndText, TextOnly }; +} + +class TTDEToolBarButton; +class TKComboBox; + +class KOFFICEUI_EXPORT TTDEAction : public TDEAction +{ Q_OBJECT + +public: + TTDEAction(TQObject* parent, const char* name); + ~TTDEAction(); + + virtual int plug(TQWidget* widget, int index = -1); + + TK::IconMode iconMode(); + +protected: + virtual void initToolBarButton(TTDEToolBarButton*); + + TQWidget* createLayout(TQWidget* parent, TQWidget* children); + void updateLayout(); + virtual void updateLayout(TQWidget*); + +public slots: + virtual void setIconMode(TK::IconMode); + void setText(const TQString&); + void setIcon(const TQString&); + +private: + TK::IconMode m_imode; + class TTDEActionPrivate; + TTDEActionPrivate *d; +}; +/******************************************************************************/ +class KOFFICEUI_EXPORT TKBaseSelectAction : public TTDEAction +{ Q_OBJECT + +friend class TTDESelectAction; +public: + TKBaseSelectAction(TQObject* parent, const char* name); + ~TKBaseSelectAction(); + + virtual int plug(TQWidget* widget, int index = -1); + + int currentItem(); + bool isEditable(); + + void activate(int); + +protected: + virtual void initComboBox(TKComboBox*); + +public slots: + virtual void setCurrentItem(int index); + virtual void setEditable(bool); + +protected slots: + virtual void slotActivated(int); + +signals: + void activated(int); + +private: + int m_current; + bool m_editable; + class TKBaseSelectActionPrivate; + TKBaseSelectActionPrivate *d; +}; +/******************************************************************************/ +class KOFFICEUI_EXPORT TTDESelectAction : public TKBaseSelectAction +{ Q_OBJECT + +public: + TTDESelectAction(TQObject* parent, const char* name); + ~TTDESelectAction(); + + TQStringList items() const; + +public slots: + virtual void setItems(const TQStringList& ); + virtual void setEditText(const TQString&); + virtual void clear(); + +protected: + virtual void initComboBox(TKComboBox*); + +protected slots: + void slotActivated(const TQString&); + +signals: + void activated(const TQString&); + +private: + TQStringList m_list; + class TTDESelectActionPrivate; + TTDESelectActionPrivate *d; +}; +/******************************************************************************/ +#endif diff --git a/lib/kofficeui/ttdetoolbarbutton.cpp b/lib/kofficeui/ttdetoolbarbutton.cpp new file mode 100644 index 00000000..c4c8e27b --- /dev/null +++ b/lib/kofficeui/ttdetoolbarbutton.cpp @@ -0,0 +1,532 @@ +/* + * Kivio - Visual Modelling and Flowcharting + * Copyright (C) 2000 theKompany.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ +#include + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Delay in ms before delayed popup pops up +#define POPUP_DELAY 500 + +class TTDEToolBarButton::TTDEToolBarButtonPrivate +{ +public: + TTDEToolBarButtonPrivate() + { + m_iconMode = TK::IconOnly; + m_isPopup = false; + m_isToggle = false; + m_isOn = false; + m_isRaised = false; + m_autoRaised = true; + ignoreNextMousePress = false; + + m_text = TQString(); + m_iconName = TQString(); + m_arrowPressed = false; + m_delayTimer = 0L; + m_popup = 0L; + + m_disabledIconName = TQString(); + m_defaultIconName = TQString(); + + m_instance = TDEGlobal::instance(); + } + + ~TTDEToolBarButtonPrivate() + { + delete m_delayTimer; + m_delayTimer = 0; + } + + bool m_isPopup; + bool m_isToggle; + bool m_isOn; + bool m_isRaised; + bool m_autoRaised; + bool m_arrowPressed; + bool ignoreNextMousePress; + + TQString m_text; + TQString m_iconName; + TQString m_disabledIconName; + TQString m_defaultIconName; + + TK::IconMode m_iconMode; + + TQTimer *m_delayTimer; + TQPopupMenu *m_popup; + + TDEInstance *m_instance; +}; + +TTDEToolBarButton::TTDEToolBarButton( const TQString& icon, const TQString& txt, + TQWidget* parent, const char* name, + TDEInstance *instance ) +: TQToolButton(parent,name) +{ + d = new TTDEToolBarButtonPrivate; + d->m_text = txt; + d->m_instance = instance; + + setFocusPolicy( TQ_NoFocus ); + + connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); + connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); + connect(this, TQT_SIGNAL(released()), TQT_SLOT(slotReleased()) ); + + installEventFilter(this); + + setIcon(icon); + modeChange(); +} + +TTDEToolBarButton::TTDEToolBarButton( const TQPixmap& pixmap, const TQString& txt, TQWidget* parent, const char* name ) +: TQToolButton(parent,name ) +{ + d = new TTDEToolBarButtonPrivate; + d->m_text = txt; + + setFocusPolicy( TQ_NoFocus ); + + connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotClicked()) ); + connect(this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) ); + connect(this, TQT_SIGNAL(released()), TQT_SLOT(slotReleased()) ); + + installEventFilter(this); + + setPixmap(pixmap); + modeChange(); +} + +TTDEToolBarButton::~TTDEToolBarButton() +{ + delete d; +} + +TQString TTDEToolBarButton::text() +{ + return d->m_text; +} + +void TTDEToolBarButton::modeChange() +{ + TQToolTip::add(this,d->m_text); + + int border = 3; + int w = 2*border; + int h = 2*border; + + if (pixmap()) { + w += pixmap()->width(); + h = TQMAX(h,pixmap()->height()+2*border); + if (d->m_iconMode == TK::IconAndText && !d->m_text.isEmpty()) + w += border; + } + + if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty()) + { + TQFont tmp_font = TDEGlobalSettings::toolBarFont(); + TQFontMetrics fm(tmp_font); + + h = TQMAX(h,fm.lineSpacing()+2*border); + w += fm.width(d->m_text); + } + + if (d->m_popup && !d->m_isToggle) + w += 11; + + TQSize size(w,h); + setMinimumSize(size); + + updateGeometry(); +} + +void TTDEToolBarButton::setEnabled( bool enabled ) +{ + if (isEnabled()==enabled) + return; + + TQToolButton::setPixmap( (enabled ? defaultPixmap : disabledPixmap) ); + TQToolButton::setEnabled( enabled ); +} + +void TTDEToolBarButton::setText( const TQString& text) +{ + d->m_text = text; + repaint(false); +} + +void TTDEToolBarButton::setIcon( const TQString& icon ) +{ + d->m_iconName = icon; + int iconSize = 16; + + setPixmap( BarIcon(icon, iconSize, KIcon::ActiveState, d->m_instance), false ); + setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); + setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); +} + +void TTDEToolBarButton::setDisabledIcon( const TQString &icon ) +{ + d->m_disabledIconName = icon; + int iconSize = 16; + setDisabledPixmap( BarIcon(icon, iconSize, KIcon::DisabledState, d->m_instance) ); +} + +void TTDEToolBarButton::setDefaultIcon( const TQString &icon ) +{ + d->m_defaultIconName = icon; + int iconSize = 16; + setDefaultPixmap( BarIcon(icon, iconSize, KIcon::DefaultState, d->m_instance) ); +} + +TQPixmap TTDEToolBarButton::getActivePixmap() const +{ + return activePixmap; +} + +void TTDEToolBarButton::setPixmap( const TQPixmap &pixmap ) +{ + setPixmap( pixmap, true ); +} + +void TTDEToolBarButton::setPixmap( const TQPixmap &pixmap, bool generate ) +{ + activePixmap = pixmap; + + if ( generate ) + { + makeDefaultPixmap(); + makeDisabledPixmap(); + } + else + { + if (defaultPixmap.isNull()) + defaultPixmap = activePixmap; + if (disabledPixmap.isNull()) + disabledPixmap = activePixmap; + } + + TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); +} + +void TTDEToolBarButton::setDefaultPixmap( const TQPixmap &pixmap ) +{ + defaultPixmap = pixmap; + TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); +} + +void TTDEToolBarButton::setDisabledPixmap( const TQPixmap &pixmap ) +{ + disabledPixmap = pixmap; + TQToolButton::setPixmap( isEnabled() ? defaultPixmap : disabledPixmap ); +} + +void TTDEToolBarButton::setPopup(TQPopupMenu *p) +{ + d->m_popup = p; + d->m_popup->setFont(TDEGlobalSettings::toolBarFont()); + p->installEventFilter(this); + + modeChange(); +} + +TQPopupMenu *TTDEToolBarButton::popup() +{ + return d->m_popup; +} + +void TTDEToolBarButton::setDelayedPopup (TQPopupMenu *p, bool toggle ) +{ + d->m_isPopup = true; + setToggle(toggle); + + if (!d->m_delayTimer) { + d->m_delayTimer = new TQTimer(this); + connect(d->m_delayTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotDelayTimeout())); + } + + setPopup(p); +} + +void TTDEToolBarButton::setRaised(bool f) +{ + d->m_isRaised = f; + repaint(false); +} + +void TTDEToolBarButton::setAutoRaised(bool f) +{ + d->m_autoRaised = f; +} + +void TTDEToolBarButton::leaveEvent(TQEvent *) +{ + if (!d->m_isToggle && !(d->m_popup && d->m_popup->isVisible()) ) { + TQToolButton::setPixmap(isEnabled() ? defaultPixmap : disabledPixmap); + if (d->m_autoRaised) + setRaised(false); + } +} + +void TTDEToolBarButton::enterEvent(TQEvent *) +{ + if (!d->m_isToggle) { + if (isEnabled()) { + TQToolButton::setPixmap(activePixmap); + if (d->m_autoRaised) + setRaised(true); + } else { + TQToolButton::setPixmap(disabledPixmap); + } + repaint(false); + } +} + +bool TTDEToolBarButton::eventFilter(TQObject *o, TQEvent *ev) +{ + if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) ) + if (ev->type() == TQEvent::MouseButtonPress && d->m_popup && d->m_isPopup ) { + if (!d->m_isToggle) { + d->m_arrowPressed = arrowPressed( mapFromGlobal(TQCursor::pos()) ); + } else { + d->m_delayTimer->start(POPUP_DELAY); + } + } + + if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(d->m_popup)) { + switch (ev->type()) + { + case TQEvent::Show: + on(true); + return false; + case TQEvent::Hide: + on(false); + setDown(false); + if ( !geometry().contains(parentWidget()->mapFromGlobal(TQCursor::pos())) ) + leaveEvent(0L); + return false; + break; + case TQEvent::MouseButtonPress: { + d->m_arrowPressed = arrowPressed( mapFromGlobal(TQCursor::pos()) ); + d->ignoreNextMousePress = d->m_arrowPressed; + break; + } + default: + break; + } + } + return false; +} + +void TTDEToolBarButton::drawButton( TQPainter* p ) +{ +#define DRAW_PIXMAP_AND_TEXT \ + int x = 3;\ + if (pixmap()) {\ + style().drawItem( p, TQRect( x, 0, pixmap()->width(), height() ), AlignCenter, colorGroup(), isEnabled(), pixmap(), TQString() );\ + if (d->m_iconMode==TK::IconAndText && !d->m_text.isEmpty()) {\ + x += pixmap()->width() + 3;\ + }\ + }\ + if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty()) {\ + TQFontMetrics fm(TDEGlobalSettings::toolBarFont());\ + style().drawItem( p, TQRect( x, 0, fm.width(d->m_text), height() ), AlignCenter, colorGroup(), isEnabled(), 0, d->m_text );\ + } + + const char* arrow[] = { + "7 4 2 1", + "# c Black", + ". c None", + "#######", + ".#####.", + "..###..", + "...#..."}; + TQPixmap arrow_pix(arrow); + bool f = d->m_isOn || isDown(); + + if (d->m_popup && !d->m_isToggle) + { + if (d->m_isPopup) + { + TQStyle::SFlags flags = TQStyle::Style_Default; + if (isEnabled()) flags |= TQStyle::Style_Enabled; + if (isOn()) flags |= TQStyle::Style_On; + if (d->m_isRaised) flags |= TQStyle::Style_Raised; + if (hasFocus()) flags |= TQStyle::Style_HasFocus; + + style().drawComplexControl( TQStyle::CC_ToolButton, p, this, TQRect( 0, 0, width()-12, height() ), colorGroup(), flags, TQStyle::SC_ToolButton ); + style().drawComplexControl( TQStyle::CC_ToolButton, p, this, TQRect( width()-13, 0, 13, height() ), colorGroup(), flags, TQStyle::SC_ToolButton ); + style().drawItem( p, TQRect( width()-13, 0, 13, height() ), AlignCenter, colorGroup(), isEnabled(), &arrow_pix, TQString() ); + if ( d->m_isRaised ) + qDrawShadeLine( p, width()-12, 0, width()-12, height(), colorGroup(), true ); + DRAW_PIXMAP_AND_TEXT + } else { + style().drawControl( TQStyle::CE_PushButton, p, this, TQRect( 0, 0, width(), height() ), isEnabled() ? colorGroup() : palette().disabled(), f ); + DRAW_PIXMAP_AND_TEXT + int z = f ? 1:0; + p->drawPixmap(width()-11+z,(height()-4)/2+z ,arrow_pix); + } + } else { + style().drawControl( TQStyle::CE_PushButton, p, this, TQRect( 0, 0, width(), height() ), isEnabled() ? colorGroup() : palette().disabled(), f ); + DRAW_PIXMAP_AND_TEXT + } +} + +void TTDEToolBarButton::paletteChange(const TQPalette &) +{ + makeDisabledPixmap(); + if ( !isEnabled() ) + TQToolButton::setPixmap( disabledPixmap ); + else + TQToolButton::setPixmap( defaultPixmap ); + repaint(false); +} + +void TTDEToolBarButton::makeDefaultPixmap() +{ + if (activePixmap.isNull()) + return; + + KIconEffect effect; + defaultPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DefaultState); +} + +void TTDEToolBarButton::makeDisabledPixmap() +{ + if (activePixmap.isNull()) + return; + + KIconEffect effect; + disabledPixmap = effect.apply(activePixmap, KIcon::Toolbar, KIcon::DisabledState); +} + +TQSize TTDEToolBarButton::sizeHint() const +{ + return minimumSize(); +} + +TQSize TTDEToolBarButton::minimumSizeHint() const +{ + return minimumSize(); +} + +void TTDEToolBarButton::showMenu() +{ + TQPoint p ( mapToGlobal( TQPoint( 0, 0 ) ) ); + const int deskHeight = TDEGlobalSettings::desktopGeometry(this).height(); + if ( p.y() + height() + d->m_popup->height() > deskHeight ) + p.setY( p.y() - d->m_popup->height() ); + else + p.setY( p.y() + height( )); + + d->m_popup->popup(p); +} + +void TTDEToolBarButton::slotDelayTimeout() +{ + d->m_delayTimer->stop(); + showMenu(); +} + +void TTDEToolBarButton::slotClicked() +{ + if ( d->ignoreNextMousePress ) { + d->ignoreNextMousePress=false; + return; + } + + if (d->m_popup && !d->m_isPopup) + showMenu(); + else + emit buttonClicked(); +} + +void TTDEToolBarButton::slotPressed() +{ + if ( d->ignoreNextMousePress ) + return; + + if (d->m_popup) { + if (!d->m_isPopup || d->m_isPopup && d->m_arrowPressed) + showMenu(); + } + else + emit buttonPressed(); + + d->ignoreNextMousePress = false; +} + +void TTDEToolBarButton::slotReleased() +{ + if (d->m_popup && d->m_isPopup) + d->m_delayTimer->stop(); + + emit buttonReleased(); +} + +void TTDEToolBarButton::slotToggled() +{ + emit buttonToggled(); +} + +void TTDEToolBarButton::on(bool flag) +{ + d->m_isOn = flag; + repaint(); +} + +void TTDEToolBarButton::toggle() +{ + on(!d->m_isOn); +} + +void TTDEToolBarButton::setToggle(bool flag) +{ + d->m_isToggle = flag; + if (flag == true) + connect(this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggled())); + else + disconnect(this, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggled())); + + modeChange(); + repaint(); +} + +void TTDEToolBarButton::setIconMode( TK::IconMode m ) +{ + d->m_iconMode = m; + modeChange(); + repaint(); +} + +#include diff --git a/lib/kofficeui/ttdetoolbarbutton.h b/lib/kofficeui/ttdetoolbarbutton.h new file mode 100644 index 00000000..14d3b285 --- /dev/null +++ b/lib/kofficeui/ttdetoolbarbutton.h @@ -0,0 +1,228 @@ +/* + * Kivio - Visual Modelling and Flowcharting + * Copyright (C) 2000 theKompany.com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ +#ifndef TKTOOLBARBUTTON_H +#define TKTOOLBARBUTTON_H + +#include + +#include +#include +#include + +class TDEToolBar; +class TDEInstance; +class TQPopupMenu; +class TQPainter; + +class TTDEToolBarButton : public TQToolButton +{ Q_OBJECT + +public: + TTDEToolBarButton(const TQString& icon, const TQString& txt, + TQWidget* parent = 0, const char *name=0L, + TDEInstance *_instance = TDEGlobal::instance()); + + TTDEToolBarButton(const TQPixmap&, const TQString&, TQWidget* parent=0, const char* name=0); + ~TTDEToolBarButton(); + + void setIconMode(TK::IconMode); + void setRaised(bool); + void setAutoRaised(bool); + + /** + * Enable/Disable this button + * + * @param enable Defaults to true + */ + void setEnabled(bool enable = true); + + /** + * Set the pixmap directly for this button. This pixmap should be + * the active one... the dimmed and disabled pixmaps are constructed + * based on this one. However, don't use this function unless you + * are positive that you don't want to use @ref setIcon. + * + * @param pixmap The active pixmap + */ + virtual void setPixmap(const TQPixmap &pixmap); + + /** + * Set the pixmap directly for this button. This pixmap should be + * the active one.. however, the disabled and default pixmaps will + * only be constructed if @ref #generate is true. In any event, + * don't use this function unless you are positive that you don't + * want to use @ref setIcon. + * + * @param pixmap The active pixmap + * @param generate If true, then the other pixmaps will be + * automatically generated using configurable effects + */ + virtual void setPixmap(const TQPixmap &pixmap, bool generate); + + /** + * Force the button to use this pixmap as the default one rather + * then generating it using effects. + * + * @param pixmap The pixmap to use as the default (normal) one + */ + virtual void setDefaultPixmap(const TQPixmap& pixmap); + + /** + * Force the button to use this pixmap when disabled one rather then + * generating it using effects. + * + * @param pixmap The pixmap to use when disabled + */ + virtual void setDisabledPixmap(const TQPixmap& pixmap); + + /** + * Set the text for this button. The text will be either used as a + * tooltip (IconOnly) or will be along side the icon + * + * @param text The button (or tooltip) text + */ + virtual void setText(const TQString &text); + TQString text(); + + /** + * Set the icon for this button. This icon should be the active + * one... the dimmed and disabled icons are constructed based on + * this one. The actual pixmap will be loaded internally. This + * function is preferred over @ref setPixmap + * + * @param icon The name of the active pixmap + */ + virtual void setIcon(const TQString &icon); + + /** + * Force the button to use this icon as the default one rather + * then generating it using effects. + * + * @param icon The icon to use as the default (normal) one + */ + virtual void setDefaultIcon(const TQString& icon); + + /** + * Force the button to use this icon when disabled one rather then + * generating it using effects. + * + * @param icon The icon to use when disabled + */ + virtual void setDisabledIcon(const TQString& icon); + + /** + * Turn this button on or off + * + * @param flag true or false + */ + void on(bool flag = true); + + /** + * Toggle this button + */ + void toggle(); + + /** + * Turn this button into a toggle button or disable the toggle + * aspects of it. This does not toggle the button itself. Use @ref + * toggle for that. + * + * @param toggle true or false + */ + void setToggle(bool toggle = true); + + /** + * Return a pointer to this button's popup menu (if it exists) + */ + TQPopupMenu *popup(); + + /** + * Give this button a popup menu. There will not be a delay when + * you press the button. Use @ref setDelayedPopup if you want that + * behavior + * + * @param p The new popup menu + */ + void setPopup (TQPopupMenu *p); + + /** + * Gives this button a delayed popup menu. + * + * This function allows you to add a delayed popup menu to the button. + * The popup menu is then only displayed when the button is pressed and + * held down for about half a second. You can also make the poup-menu + * "sticky", i.e. visible until a selection is made or the mouse is + * clikced elsewhere, by simply setting the second argument to true. + * This "sticky" button feature allows you to make a selection without + * having to press and hold down the mouse while making a selection. + * + * @param p the new popup menu + * @param toggle if true, makes the button "sticky" (toggled) + */ + void setDelayedPopup(TQPopupMenu *p, bool toggle = false); + + TQPixmap getActivePixmap() const; + + virtual TQSize sizeHint() const; + virtual TQSize minimumSizeHint() const; + +signals: + void buttonClicked(); + void buttonPressed(); + void buttonReleased(); + void buttonToggled(); + +public slots: + void modeChange(); + +protected: + void paletteChange(const TQPalette &); + void leaveEvent(TQEvent *e); + void enterEvent(TQEvent *e); + void drawButton(TQPainter *p); + bool eventFilter (TQObject *o, TQEvent *e); + void showMenu(); + + void makeDefaultPixmap(); + void makeDisabledPixmap(); + bool arrowPressed( const TQPoint& pos ) { + int x = pos.x(); + int y = pos.y(); + return (x > width() - 12 && x <= width() && y > 0 && y < height()); + } + +private: + TQPixmap defaultPixmap; + TQPixmap activePixmap; + TQPixmap disabledPixmap; + virtual void setIcon(const TQPixmap &p) { TQButton::setIcon(p); } + class TTDEToolBarButtonPrivate; + TTDEToolBarButtonPrivate *d; + + +protected slots: + void slotClicked(); + void slotPressed(); + void slotReleased(); + void slotToggled(); + void slotDelayTimeout(); +}; + +#endif -- cgit v1.2.1