[-]
[+]
|
Changed |
kwalletmanager.spec
|
|
[-]
[+]
|
Deleted |
kwalletmanager-5.1.90.tar.xz/kwalletmanager5-kwalletd.desktop
^
|
@@ -1,78 +0,0 @@
-[Desktop Entry]
-Name=Wallet Management Tool
-Name[ar]=أداة إدارة المحفظة
-Name[ast]=Ferramienta pa xestionar cartera
-Name[bg]=Инструмент за настройване на "Портфейл"
-Name[br]=Merour an doug-paperoù
-Name[bs]=Alatka za upravljanje novčanicima
-Name[ca]=Eina de gestió de carteres
-Name[ca@valencia]=Eina de gestió de carteres
-Name[cs]=Nástroj pro správu úschovny
-Name[cy]=Erfyn Rheoli Waled
-Name[da]=Håndteringsværktøj for tegnebog
-Name[de]=Passwortverwaltung
-Name[el]=Εργαλείο διαχείρισης πορτοφολιού
-Name[en_GB]=Wallet Management Tool
-Name[eo]=Paperuja administrilo
-Name[es]=Herramienta de gestión de cartera
-Name[et]=Turvalaeka haldur
-Name[eu]=Zorroa kudeatzeko tresna
-Name[fa]=ابزار مدیریت Wallet
-Name[fi]=Lompakonhallinta
-Name[fr]=Outil de gestion de portefeuilles
-Name[ga]=Uirlis Bhainisteoireachta Wallet
-Name[gl]=Utilidade de xestión de carteiras
-Name[he]=כלי לניהול הארנק של KDE
-Name[hne]=बटुआ प्रबंधन औजार
-Name[hr]=Alat za upravljanje novčanikom
-Name[hu]=Jelszókezelő eszköz
-Name[ia]=Instrumento de gestion de portafolio
-Name[id]=Perkakas Manajemen Dompet
-Name[is]=Tól til að stýra eiginleikum veskisins
-Name[it]=Strumento per la gestione dei portafogli
-Name[ja]=ウォレット管理ツール
-Name[kk]=Әмиянын басқару құралы
-Name[km]=ឧបករណ៍គ្រប់គ្រងកាបូប
-Name[ko]=지갑 관리 도구
-Name[lt]=Spatažodinių tvarkymo įrankis
-Name[lv]=Maka pārvaldības rīks
-Name[mk]=Алатка за менаџирање на паричници
-Name[mr]=पाकीट व्यवस्थापन साधन
-Name[nb]=Wallet administrasjonsverktøy
-Name[nds]=Knippenpleger
-Name[ne]=वालेट व्यवस्थापन उपकरण
-Name[nl]=Portefeuillebeheer
-Name[nn]=Wallet-administrasjonsverktøy
-Name[pa]=ਵਾਲਿਟ ਪਰਬੰਧਨ ਟੂਲ
-Name[pl]=Narzędzie do zarządzania portfelem
-Name[pt]=Ferramenta de Gestão da Carteira
-Name[pt_BR]=Ferramenta de gerenciamento de carteiras
-Name[ro]=Administrare portofel
-Name[ru]=Управление бумажниками
-Name[sk]=Nástroj pre správu KDE Wallet
-Name[sl]=Orodje za upravljanje z listnicami
-Name[sq]=Mjet i Menaxhimit të Portofolit
-Name[sr]=Алатка за управљање новчаницима
-Name[sr@ijekavian]=Алатка за управљање новчаницима
-Name[sr@ijekavianlatin]=Alatka za upravljanje novčanicima
-Name[sr@latin]=Alatka za upravljanje novčanicima
-Name[sv]=Hanteringsverktyg för plånbok
-Name[ta]=வாலட் மேலாண்மை கருவி
-Name[tg]=Асбоби Идоракунии Ҳамён
-Name[th]=เครื่องมือจัดการกระเป๋าคุมข้อมูล
-Name[tr]=Cüzdan Yönetim Aracı
-Name[ug]=ھەميان باشقۇرۇش قورالى
-Name[uk]=Засіб керування торбинками
-Name[uz]=Qopchiq boshqarish vositasi
-Name[uz@cyrillic]=Қопчиқ бошқариш воситаси
-Name[vi]=Công Cụ Quản Lý Ví
-Name[x-test]=xxWallet Management Toolxx
-Name[zh_CN]=钱包管理工具
-Name[zh_TW]=錢包管理工具
-Exec=kwalletmanager5 --kwalletd
-Icon=kwalletmanager
-Type=Application
-Terminal=false
-X-KDE-StartupNotify=false
-NoDisplay=true
-
|
[-]
[+]
|
Deleted |
kwalletmanager-5.1.90.tar.xz/org.kde.kwalletmanager5.desktop
^
|
@@ -1,125 +0,0 @@
-[Desktop Entry]
-Name=KWalletManager
-Name[ar]=KWalletManager
-Name[ast]=KWalletManager
-Name[bg]=KWalletManager
-Name[bs]=KWalletManager
-Name[ca]=KWalletManager
-Name[ca@valencia]=KWalletManager
-Name[cs]=KWalletManager
-Name[da]=KWalletManager
-Name[de]=KWalletManager
-Name[el]=KWalletManager
-Name[en_GB]=KWalletManager
-Name[es]=KWalletManager
-Name[et]=Turvalaeka haldur
-Name[eu]=KWalletManager
-Name[fi]=KWalletManager
-Name[fr]=KWalletManager
-Name[ga]=KWalletManager
-Name[gl]=KWalletManager
-Name[hne]=के-वालेट-मैनेजर
-Name[hr]=KWalletManager
-Name[hu]=KWalletManager
-Name[ia]=Gerente KWallet
-Name[id]=KWalletManager
-Name[it]=KWalletManager
-Name[ja]=KWalletManager
-Name[kk]=KWalletManager
-Name[km]=KWalletManager
-Name[ko]=KWalletManager
-Name[lt]=KWalletManager
-Name[lv]=KWalletManager
-Name[mr]=के-वॉलेट व्यवस्थापक
-Name[nb]=KWalletManager
-Name[nds]=KDE-Knippenpleger
-Name[nl]=KWalletManager
-Name[nn]=KWalletManager
-Name[pa]=ਕੇਵਾਲਿਟ-ਮੈਨੇਜਰ
-Name[pl]=Zarządzanie Portfelem
-Name[pt]=KWalletManager
-Name[pt_BR]=KWalletManager
-Name[ro]=KWalletManager
-Name[ru]=KWalletManager
-Name[sk]=KWalletManager
-Name[sl]=KWalletManager
-Name[sq]=KWalletManager
-Name[sr]=Менаџер К‑новчаника
-Name[sr@ijekavian]=Менаџер К‑новчаника
-Name[sr@ijekavianlatin]=Menadžer K‑novčanika
-Name[sr@latin]=Menadžer K‑novčanika
-Name[sv]=Hanteringsverktyg för plånbok
-Name[th]=จัดการกระเป๋าคุมข้อมูล-K
-Name[tr]=KWallet Yönetim Aracı
-Name[ug]=KWalletManager
-Name[uk]=KWalletManager
-Name[x-test]=xxKWalletManagerxx
-Name[zh_CN]=KWalletManager
-Name[zh_TW]=KDE 錢包管理員
-GenericName=Wallet Management Tool
-GenericName[ar]=أداة إدارة المحفظة
-GenericName[ast]=Ferramienta pa xestionar cartera
-GenericName[bg]=Управление на "Портфейл"
-GenericName[bs]=Alatka za upravljanje novčanicima
-GenericName[ca]=Eina de gestió de carteres
-GenericName[ca@valencia]=Eina de gestió de carteres
-GenericName[cs]=Nástroj pro správu úschovny
-GenericName[da]=Værktøj til håndtering af tegnebog
-GenericName[de]=Passwortverwaltung
-GenericName[el]=Εργαλείο διαχείρισης πορτοφολιού
-GenericName[en_GB]=Wallet Management Tool
-GenericName[es]=Herramienta de gestión de carteras
-GenericName[et]=Turvalaeka haldur
-GenericName[eu]=Zorroa kudeatzeko tresna
-GenericName[fi]=Lompakonhallinta
-GenericName[fr]=Outil de gestion de portefeuilles
-GenericName[ga]=Uirlis Bhainisteoireachta Sparáin
-GenericName[gl]=Utilidade de xestión de carteiras
-GenericName[hne]=बटुआ प्रबंधन औजार
-GenericName[hr]=Alat za upravljanje novčanikom
-GenericName[hu]=Jelszókezelő eszköz
-GenericName[ia]=Instrumento de gestion de portafolio
-GenericName[id]=Perkakas Manajemen Dompet
-GenericName[it]=Strumento per la gestione dei portafogli
-GenericName[ja]=ウォレット管理ツール
-GenericName[kk]=Әмиянын басқару құралы
-GenericName[km]=ឧបករណ៍គ្រប់គ្រងកាបូប
-GenericName[ko]=지갑 관리 도구
-GenericName[lt]=Spatažodinių tvarkymo įrankis
-GenericName[lv]=Maka pārvaldības rīks
-GenericName[mr]=पाकीट व्यवस्थापन साधन
-GenericName[nb]=Wallet administrasjonsverktøy
-GenericName[nds]=Knippenpleger
-GenericName[nl]=Portefeuillebeheer
-GenericName[nn]=Wallet-administrasjonsverktøy
-GenericName[pa]=ਵਾਲਿਟ ਪਰਬੰਧਨ ਟੂਲ
-GenericName[pl]=Narzędzie do zarządzania Portfelem
-GenericName[pt]=Ferramenta de Gestão da Carteira
-GenericName[pt_BR]=Ferramenta de gerenciamento de carteiras
-GenericName[ro]=Administrare portofel
-GenericName[ru]=Управление бумажниками
-GenericName[sk]=Nástroj pre správu KDE Wallet
-GenericName[sl]=Orodje za upravljanje z listnicami
-GenericName[sq]=Mjet i Menaxhimit të Portofolit
-GenericName[sr]=Алатка за управљање новчаницима
-GenericName[sr@ijekavian]=Алатка за управљање новчаницима
-GenericName[sr@ijekavianlatin]=Alatka za upravljanje novčanicima
-GenericName[sr@latin]=Alatka za upravljanje novčanicima
-GenericName[sv]=Hanteringsverktyg för plånbok
-GenericName[th]=เครื่องมือจัดการกระเป๋าคุมข้อมูล
-GenericName[tr]=Cüzdan Yönetim Aracı
-GenericName[ug]=ھەميان باشقۇرۇش قورالى
-GenericName[uk]=Засіб керування торбинками
-GenericName[x-test]=xxWallet Management Toolxx
-GenericName[zh_CN]=钱包管理工具
-GenericName[zh_TW]=錢包管理工具
-Exec=kwalletmanager5 %u
-MimeType=application/x-kwallet;
-InitialPreference=6
-Icon=kwalletmanager
-Type=Application
-Terminal=false
-X-KDE-StartupNotify=false
-Categories=Qt;KDE;System;Security;
-X-DocPath=kwallet/index.html
-X-DBUS-ServiceName=org.kde.kwalletmanager5
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/CMakeLists.txt
^
|
@@ -1,42 +1,26 @@
-project(kwalletmanager5)
+project(kwallet)
-cmake_minimum_required(VERSION 2.8.12)
-
-find_package(ECM 1.2.0 REQUIRED NO_MODULE)
-
-set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
-
-find_package(Qt5 5.2.0 CONFIG REQUIRED Core Gui Widgets DBus)
-
-include(KDEInstallDirs)
-include(KDECMakeSettings)
-include(KDECompilerSettings)
-include(FeatureSummary)
-include(ECMInstallIcons)
-
-find_package(KF5 5.2.0 REQUIRED
- CoreAddons
- DocTools
- Auth
- Wallet
- Service
- KCMUtils
- KDELibs4Support
- I18n
- XmlGui
- Config
- ConfigWidgets
- DBusAddons
-)
+if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
+ find_package(KDE4)
+ include( KDE4Defaults )
+ include_directories(${KDE4_INCLUDES})
+
+ add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+ add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
+
+ # If definitions like -D_GNU_SOURCE are needed for these checks they
+ # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
+ # defined outside this file. Here we include these definitions in
+ # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
+ # checks below.
+ set( CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} )
+endif()
add_subdirectory( doc )
-add_subdirectory( icons )
-add_subdirectory( src )
+add_subdirectory( icons )
+add_subdirectory( src )
-if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
- feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
-endif()
########### install files ###############
-install( PROGRAMS org.kde.kwalletmanager5.desktop kwalletmanager5-kwalletd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+install( PROGRAMS kwalletmanager.desktop kwalletmanager-kwalletd.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/CTestConfig.cmake
^
|
@@ -4,10 +4,10 @@
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
-set(CTEST_PROJECT_NAME "kwalletmanager")
+set(CTEST_PROJECT_NAME "kwallet")
set(CTEST_NIGHTLY_START_TIME "20:00:00 CET")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
-set(CTEST_DROP_LOCATION "/submit.php?project=kwalletmanager")
+set(CTEST_DROP_LOCATION "/submit.php?project=kwallet")
set(CTEST_DROP_SITE_CDASH TRUE)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/doc/CMakeLists.txt
^
|
@@ -1,4 +1,4 @@
########### install files ###############
#
#
-kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kwallet)
+kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kwallet)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/doc/index.docbook
^
|
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kwallet "<application>KWallet</application>">
<!ENTITY kwalletmanager "<application>KWallet Manager</application>">
<!ENTITY package "kwallet">
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/icons/CMakeLists.txt
^
|
@@ -1 +1 @@
-ecm_install_icons( ${DATA_INSTALL_DIR}/kwalletmanager5/icons )
+kde4_install_icons( ${DATA_INSTALL_DIR}/kwalletmanager/icons )
|
[-]
[+]
|
Added |
kwalletmanager-5.2.0.tar.xz/kwalletmanager-kwalletd.desktop
^
|
@@ -0,0 +1,78 @@
+[Desktop Entry]
+Name=Wallet Management Tool
+Name[ar]=أداة إدارة المحفظة
+Name[ast]=Ferramienta pa xestionar cartera
+Name[bg]=Инструмент за настройване на "Портфейл"
+Name[br]=Merour an doug-paperoù
+Name[bs]=Alatka za upravljanje novčanicima
+Name[ca]=Eina de gestió de carteres
+Name[ca@valencia]=Eina de gestió de carteres
+Name[cs]=Nástroj pro správu úschovny
+Name[cy]=Erfyn Rheoli Waled
+Name[da]=Håndteringsværktøj for tegnebog
+Name[de]=Passwortverwaltung
+Name[el]=Εργαλείο διαχείρισης πορτοφολιού
+Name[en_GB]=Wallet Management Tool
+Name[eo]=Paperuja administrilo
+Name[es]=Herramienta de gestión de carteras
+Name[et]=Turvalaeka haldur
+Name[eu]=Zorroa kudeatzeko tresna
+Name[fa]=ابزار مدیریت Wallet
+Name[fi]=Lompakonhallinta
+Name[fr]=Outil de gestion de portefeuilles
+Name[ga]=Uirlis Bhainisteoireachta Wallet
+Name[gl]=Utilidade de xestión de carteiras
+Name[he]=כלי לניהול הארנק של KDE
+Name[hne]=बटुआ प्रबंधन औजार
+Name[hr]=Alat za upravljanje novčanikom
+Name[hu]=Jelszókezelő eszköz
+Name[ia]=Instrumento de gestion de portafolio
+Name[id]=Perkakas Manajemen Dompet
+Name[is]=Tól til að stýra eiginleikum veskisins
+Name[it]=Strumento per la gestione dei portafogli
+Name[ja]=ウォレット管理ツール
+Name[kk]=Әмиянын басқару құралы
+Name[km]=ឧបករណ៍គ្រប់គ្រងកាបូប
+Name[ko]=지갑 관리 도구
+Name[lt]=Spatažodinių tvarkymo įrankis
+Name[lv]=Maka pārvaldības rīks
+Name[mk]=Алатка за менаџирање на паричници
+Name[mr]=पाकीट व्यवस्थापन साधन
+Name[nb]=Wallet administrasjonsverktøy
+Name[nds]=Knippenpleger
+Name[ne]=वालेट व्यवस्थापन उपकरण
+Name[nl]=Portefeuillebeheer
+Name[nn]=Wallet-administrasjonsverktøy
+Name[pa]=ਵਾਲਿਟ ਪਰਬੰਧਨ ਟੂਲ
+Name[pl]=Zarządzanie portfelem
+Name[pt]=Ferramenta de Gestão da Carteira
+Name[pt_BR]=Ferramenta de gerenciamento de carteiras
+Name[ro]=Administrare portofel
+Name[ru]=Управление бумажниками
+Name[sk]=Nástroj pre správu KDE Wallet
+Name[sl]=Orodje za upravljanje z listnicami
+Name[sq]=Mjet i Menaxhimit të Portofolit
+Name[sr]=Алатка за управљање новчаницима
+Name[sr@ijekavian]=Алатка за управљање новчаницима
+Name[sr@ijekavianlatin]=Alatka za upravljanje novčanicima
+Name[sr@latin]=Alatka za upravljanje novčanicima
+Name[sv]=Hanteringsverktyg för plånbok
+Name[ta]=வாலட் மேலாண்மை கருவி
+Name[tg]=Асбоби Идоракунии Ҳамён
+Name[th]=เครื่องมือจัดการกระเป๋าคุมข้อมูล
+Name[tr]=Cüzdan Yönetim Aracı
+Name[ug]=ھەميان باشقۇرۇش قورالى
+Name[uk]=Засіб керування торбинками
+Name[uz]=Qopchiq boshqarish vositasi
+Name[uz@cyrillic]=Қопчиқ бошқариш воситаси
+Name[vi]=Công Cụ Quản Lý Ví
+Name[x-test]=xxWallet Management Toolxx
+Name[zh_CN]=钱包管理工具
+Name[zh_TW]=錢包管理工具
+Exec=kwalletmanager --kwalletd
+Icon=kwalletmanager
+Type=Application
+Terminal=false
+X-KDE-StartupNotify=false
+NoDisplay=true
+
|
[-]
[+]
|
Added |
kwalletmanager-5.2.0.tar.xz/kwalletmanager.desktop
^
|
@@ -0,0 +1,124 @@
+[Desktop Entry]
+Name=KWalletManager
+Name[ar]=KWalletManager
+Name[ast]=KWalletManager
+Name[bg]=KWalletManager
+Name[bs]=KWalletManager
+Name[ca]=KWalletManager
+Name[ca@valencia]=KWalletManager
+Name[cs]=KWalletManager
+Name[da]=KWalletManager
+Name[de]=KWalletManager
+Name[el]=KWalletManager
+Name[en_GB]=KWalletManager
+Name[es]=KWalletManager
+Name[et]=Turvalaeka haldur
+Name[eu]=KWalletManager
+Name[fi]=KWalletManager
+Name[fr]=KWalletManager
+Name[ga]=KWalletManager
+Name[gl]=KWalletManager
+Name[hne]=के-वालेट-मैनेजर
+Name[hr]=KWalletManager
+Name[hu]=KWalletManager
+Name[ia]=Gerente KWallet
+Name[id]=KWalletManager
+Name[it]=KWalletManager
+Name[ja]=KWalletManager
+Name[kk]=KWalletManager
+Name[km]=KWalletManager
+Name[ko]=KWalletManager
+Name[lt]=KWalletManager
+Name[lv]=KWalletManager
+Name[mr]=के-वॉलेट व्यवस्थापक
+Name[nb]=KWalletManager
+Name[nds]=KDE-Knippenpleger
+Name[nl]=KWalletManager
+Name[nn]=KWalletManager
+Name[pa]=ਕੇਵਾਲਿਟ-ਮੈਨੇਜਰ
+Name[pl]=KWalletManager
+Name[pt]=KWalletManager
+Name[pt_BR]=KWalletManager
+Name[ro]=KWalletManager
+Name[ru]=KWalletManager
+Name[sk]=KWalletManager
+Name[sl]=Upravljalnik Listnice za KDE
+Name[sq]=KWalletManager
+Name[sr]=Менаџер К‑новчаника
+Name[sr@ijekavian]=Менаџер К‑новчаника
+Name[sr@ijekavianlatin]=Menadžer K‑novčanika
+Name[sr@latin]=Menadžer K‑novčanika
+Name[sv]=Hanteringsverktyg för plånbok
+Name[th]=จัดการกระเป๋าคุมข้อมูล-K
+Name[tr]=KWallet Yönetim Aracı
+Name[ug]=KWalletManager
+Name[uk]=KWalletManager
+Name[x-test]=xxKWalletManagerxx
+Name[zh_CN]=KWalletManager
+Name[zh_TW]=KDE 錢包管理員
+GenericName=Wallet Management Tool
+GenericName[ar]=أداة إدارة المحفظة
+GenericName[ast]=Ferramienta pa xestionar cartera
+GenericName[bg]=Управление на "Портфейл"
+GenericName[bs]=Alatka za upravljanje novčanicima
+GenericName[ca]=Eina de gestió de carteres
+GenericName[ca@valencia]=Eina de gestió de carteres
+GenericName[cs]=Nástroj pro správu úschovny
+GenericName[da]=Værktøj til håndtering af tegnebog
+GenericName[de]=Passwortverwaltung
+GenericName[el]=Εργαλείο διαχείρισης πορτοφολιού
+GenericName[en_GB]=Wallet Management Tool
+GenericName[es]=Herramienta de gestión de carteras
+GenericName[et]=Turvalaeka haldur
+GenericName[eu]=Zorroa kudeatzeko tresna
+GenericName[fi]=Lompakonhallinta
+GenericName[fr]=Outil de gestion de portefeuilles
+GenericName[ga]=Uirlis Bhainisteoireachta Sparáin
+GenericName[gl]=Utilidade de xestión de carteiras
+GenericName[hne]=बटुआ प्रबंधन औजार
+GenericName[hr]=Alat za upravljanje novčanikom
+GenericName[hu]=Jelszókezelő eszköz
+GenericName[ia]=Instrumento de gestion de portafolio
+GenericName[id]=Perkakas Manajemen Dompet
+GenericName[it]=Strumento per la gestione dei portafogli
+GenericName[ja]=ウォレット管理ツール
+GenericName[kk]=Әмиянын басқару құралы
+GenericName[km]=ឧបករណ៍គ្រប់គ្រងកាបូប
+GenericName[ko]=지갑 관리 도구
+GenericName[lt]=Spatažodinių tvarkymo įrankis
+GenericName[lv]=Maka pārvaldības rīks
+GenericName[mr]=पाकीट व्यवस्थापन साधन
+GenericName[nb]=Wallet administrasjonsverktøy
+GenericName[nds]=Knippenpleger
+GenericName[nl]=Portefeuillebeheer
+GenericName[nn]=Wallet-administrasjonsverktøy
+GenericName[pa]=ਵਾਲਿਟ ਪਰਬੰਧਨ ਟੂਲ
+GenericName[pl]=Zarządzanie portfelem
+GenericName[pt]=Ferramenta de Gestão da Carteira
+GenericName[pt_BR]=Ferramenta de gerenciamento de carteiras
+GenericName[ro]=Administrare portofel
+GenericName[ru]=Управление бумажниками
+GenericName[sk]=Nástroj pre správu KDE Wallet
+GenericName[sl]=Orodje za upravljanje z listnicami
+GenericName[sq]=Mjet i Menaxhimit të Portofolit
+GenericName[sr]=Алатка за управљање новчаницима
+GenericName[sr@ijekavian]=Алатка за управљање новчаницима
+GenericName[sr@ijekavianlatin]=Alatka za upravljanje novčanicima
+GenericName[sr@latin]=Alatka za upravljanje novčanicima
+GenericName[sv]=Hanteringsverktyg för plånbok
+GenericName[th]=เครื่องมือจัดการกระเป๋าคุมข้อมูล
+GenericName[tr]=Cüzdan Yönetim Aracı
+GenericName[ug]=ھەميان باشقۇرۇش قورالى
+GenericName[uk]=Засіб керування торбинками
+GenericName[x-test]=xxWallet Management Toolxx
+GenericName[zh_CN]=钱包管理工具
+GenericName[zh_TW]=錢包管理工具
+Exec=kwalletmanager %u
+MimeType=application/x-kwallet;
+InitialPreference=6
+Icon=kwalletmanager
+Type=Application
+Terminal=false
+X-KDE-StartupNotify=false
+Categories=Qt;KDE;System;Security;
+X-DocPath=kwallet/index.html
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/CMakeLists.txt
^
|
@@ -1,40 +1,30 @@
+
+
+
+
########### next target ###############
-add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwallet\")
set(kcm_kwallet_PART_SRCS konfigurator.cpp )
-ki18n_wrap_ui(kcm_kwallet_PART_SRCS walletconfigwidget.ui )
+kde4_add_ui_files(kcm_kwallet_PART_SRCS walletconfigwidget.ui )
-add_library(kcm_kwallet MODULE ${kcm_kwallet_PART_SRCS})
+kde4_add_plugin(kcm_kwallet ${kcm_kwallet_PART_SRCS})
-target_link_libraries(kcm_kwallet
- Qt5::Core
- KF5::Auth
- KF5::CoreAddons
- KF5::KCMUtils
- KF5::Wallet
- KF5::I18n
- Qt5::DBus
-)
+target_link_libraries(kcm_kwallet ${KDE4_KDEUI_LIBS})
install(TARGETS kcm_kwallet DESTINATION ${PLUGIN_INSTALL_DIR})
########### kauth helper ################
set(kcm_kwallet_helper_SRCS savehelper.cpp)
-add_executable(kcm_kwallet_helper ${kcm_kwallet_helper_SRCS})
-target_link_libraries(kcm_kwallet_helper
- Qt5::Core
- KF5::Auth
- KF5::Wallet
- KF5::CoreAddons
-)
+kde4_add_executable(kcm_kwallet_helper ${kcm_kwallet_helper_SRCS})
+target_link_libraries(kcm_kwallet_helper ${KDE4_KDECORE_LIBS})
-install(TARGETS kcm_kwallet_helper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
+install(TARGETS kcm_kwallet_helper DESTINATION ${LIBEXEC_INSTALL_DIR})
-kauth_install_helper_files(kcm_kwallet_helper org.kde.kcontrol.kcmkwallet root)
-kauth_install_actions(org.kde.kcontrol.kcmkwallet kwallet.actions)
+kde4_install_auth_helper_files(kcm_kwallet_helper org.kde.kcontrol.kcmkwallet root)
+kde4_install_auth_actions(org.kde.kcontrol.kcmkwallet kwallet.actions)
########### install files ###############
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/konfigurator.cpp
^
|
@@ -18,213 +18,213 @@
*/
#include "konfigurator.h"
+#include <QtDBus/QtDBus>
+#include <kaboutdata.h>
+#include <kapplication.h>
#include <ksharedconfig.h>
+#include <kdialog.h>
#include <kpluginfactory.h>
#include <kpluginloader.h>
-#include <qinputdialog.h>
+#include <kinputdialog.h>
+#include <kmenu.h>
#include <kwallet.h>
#include <kauthaction.h>
-#include <kauthactionreply.h>
-#include <kauthexecutejob.h>
-#include <ktoolinvocation.h>
-#include <kconfiggroup.h>
-#include <kmessagebox.h>
+#include <kdebug.h>
-#include <kaboutdata.h>
-
-#include <QDebug>
#include <QCheckBox>
-#include <QDialog>
-#include <QMenu>
#include <QPushButton>
-#include <QtDBus/QtDBus>
#include <QVBoxLayout>
-
+#include <ktoolinvocation.h>
+#include <kconfiggroup.h>
+#include <kmessagebox.h>
+#include <kstandarddirs.h>
#define KWALLETMANAGERINTERFACE "org.kde.KWallet"
K_PLUGIN_FACTORY(KWalletFactory, registerPlugin<KWalletConfig>();)
+K_EXPORT_PLUGIN(KWalletFactory("kcmkwallet"))
+
+
+KWalletConfig::KWalletConfig(QWidget *parent, const QVariantList& args)
+: KCModule(KWalletFactory::componentData(), parent, args),
+ _cfg(KSharedConfig::openConfig(QLatin1String( "kwalletrc" ), KConfig::NoGlobals)) {
+
+ KAboutData *about =
+ new KAboutData(I18N_NOOP("kcmkwallet"), 0,
+ ki18n("KDE Wallet Control Module"),
+ 0, KLocalizedString(), KAboutData::License_GPL,
+ ki18n("(c) 2003 George Staikos"));
+ about->addAuthor(ki18n("George Staikos"), KLocalizedString(), "staikos@kde.org");
+ setAboutData( about );
-KWalletConfig::KWalletConfig(QWidget *parent, const QVariantList &args)
- : KCModule(parent, args),
- _cfg(KSharedConfig::openConfig(QLatin1String("kwalletrc"), KConfig::NoGlobals))
-{
- KAboutData *about =
- new KAboutData(QLatin1String("kcmkwallet"),
- i18n("KDE Wallet Control Module"),
- QString(), QString(), KAboutLicense::GPL,
- i18n("(c) 2003 George Staikos"));
- about->addAuthor(i18n("George Staikos"), QString(), QLatin1String("staikos@kde.org"));
- setAboutData(about);
setNeedsAuthorization(true);
- QVBoxLayout *vbox = new QVBoxLayout(this);
- //PORT QT5 vbox->setSpacing(KDialog::spacingHint());
- vbox->setMargin(0);
- _wcw = new WalletConfigWidget(this);
- vbox->addWidget(_wcw);
-
- connect(_wcw->_enabled, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_launchManager, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_autocloseManager, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_autoclose, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_closeIdle, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_openPrompt, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_screensaverLock, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_localWalletSelected, &QCheckBox::clicked, this, &KWalletConfig::configChanged);
- connect(_wcw->_idleTime, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &KWalletConfig::configChanged);
- connect(_wcw->_launch, &QPushButton::clicked, this, &KWalletConfig::launchManager);
- connect(_wcw->_newWallet, &QPushButton::clicked, this, &KWalletConfig::newNetworkWallet);
- connect(_wcw->_newLocalWallet, &QPushButton::clicked, this, &KWalletConfig::newLocalWallet);
- connect(_wcw->_localWallet, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &KWalletConfig::configChanged);
- connect(_wcw->_defaultWallet, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &KWalletConfig::configChanged);
- connect(_wcw->_accessList, &QTreeWidget::customContextMenuRequested, this, &KWalletConfig::customContextMenuRequested);
-
- _wcw->_accessList->setAllColumnsShowFocus(true);
- _wcw->_accessList->setContextMenuPolicy(Qt::CustomContextMenu);
- updateWalletLists();
+ QVBoxLayout *vbox = new QVBoxLayout(this);
+ vbox->setSpacing(KDialog::spacingHint());
+ vbox->setMargin(0);
+ _wcw = new WalletConfigWidget(this);
+ vbox->addWidget(_wcw);
- if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.kde.kwalletmanager"))) {
- _wcw->_launch->hide();
- }
+ connect(_wcw->_enabled, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_launchManager, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_autocloseManager, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_autoclose, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_closeIdle, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_openPrompt, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_screensaverLock, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_localWalletSelected, SIGNAL(clicked()), this, SLOT(configChanged()));
+ connect(_wcw->_idleTime, SIGNAL(valueChanged(int)), this, SLOT(configChanged()));
+ connect(_wcw->_launch, SIGNAL(clicked()), this, SLOT(launchManager()));
+ connect(_wcw->_newWallet, SIGNAL(clicked()), this, SLOT(newNetworkWallet()));
+ connect(_wcw->_newLocalWallet, SIGNAL(clicked()), this, SLOT(newLocalWallet()));
+ connect(_wcw->_localWallet, SIGNAL(activated(int)), this, SLOT(configChanged()));
+ connect(_wcw->_defaultWallet, SIGNAL(activated(int)), this, SLOT(configChanged()));
+ connect(_wcw->_accessList, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(customContextMenuRequested(QPoint)));
+
+ _wcw->_accessList->setAllColumnsShowFocus(true);
+ _wcw->_accessList->setContextMenuPolicy(Qt::CustomContextMenu);
+ updateWalletLists();
+
+ if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String( "org.kde.kwalletmanager" ))) {
+ _wcw->_launch->hide();
+ }
}
-KWalletConfig::~KWalletConfig()
-{
+
+KWalletConfig::~KWalletConfig() {
}
-void KWalletConfig::updateWalletLists()
-{
- const QString p1(_wcw->_localWallet->currentText());
- const QString p2(_wcw->_defaultWallet->currentText());
- _wcw->_localWallet->clear();
- _wcw->_defaultWallet->clear();
+void KWalletConfig::updateWalletLists() {
+ const QString p1( _wcw->_localWallet->currentText() );
+ const QString p2( _wcw->_defaultWallet->currentText() );
- const QStringList wl = KWallet::Wallet::walletList();
- _wcw->_localWallet->addItems(wl);
- _wcw->_defaultWallet->addItems(wl);
+ _wcw->_localWallet->clear();
+ _wcw->_defaultWallet->clear();
- int index = wl.indexOf(p1);
- if (index != -1) {
- _wcw->_localWallet->setCurrentIndex(index);
- }
+ const QStringList wl = KWallet::Wallet::walletList();
+ _wcw->_localWallet->addItems(wl);
+ _wcw->_defaultWallet->addItems(wl);
- index = wl.indexOf(p2);
- if (index != -1) {
- _wcw->_defaultWallet->setCurrentIndex(index);
- }
+ int index = wl.indexOf(p1);
+ if (index != -1) {
+ _wcw->_localWallet->setCurrentIndex(index);
+ }
+
+ index = wl.indexOf(p2);
+ if (index != -1) {
+ _wcw->_defaultWallet->setCurrentIndex(index);
+ }
}
-QString KWalletConfig::newWallet()
-{
- bool ok;
-
- const QString n = QInputDialog::getText(this, i18n("New Wallet"),
- i18n("Please choose a name for the new wallet:"),
- QLineEdit::Normal, QString(),
- &ok);
- if (!ok) {
- return QString();
- }
+QString KWalletConfig::newWallet() {
+ bool ok;
- KWallet::Wallet *w = KWallet::Wallet::openWallet(n, topLevelWidget()->winId());
- if (!w) {
- return QString();
- }
+ const QString n = KInputDialog::getText(i18n("New Wallet"),
+ i18n("Please choose a name for the new wallet:"),
+ QString(),
+ &ok,
+ this);
+
+ if (!ok) {
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/konfigurator.h
^
|
@@ -26,38 +26,37 @@
class WalletConfigWidget : public QWidget, public Ui::WalletConfigWidget
{
public:
- WalletConfigWidget(QWidget *parent) : QWidget(parent)
- {
- setupUi(this);
- }
+ WalletConfigWidget( QWidget *parent ) : QWidget( parent ) {
+ setupUi( this );
+ }
};
-class KWalletConfig : public KCModule
-{
- Q_OBJECT
-public:
- explicit KWalletConfig(QWidget *parent = 0L, const QVariantList & = QVariantList());
- virtual ~KWalletConfig();
- void load();
- void save();
- void defaults();
-
- QString quickHelp() const;
-
-public slots:
- void configChanged();
- void launchManager();
- void newLocalWallet();
- void newNetworkWallet();
- void updateWalletLists();
- QString newWallet();
- void deleteEntry();
- void customContextMenuRequested(const QPoint &pos);
-
-private:
- WalletConfigWidget *_wcw;
- KSharedConfig::Ptr _cfg;
+class KWalletConfig : public KCModule {
+ Q_OBJECT
+ public:
+ explicit KWalletConfig(QWidget *parent = 0L, const QVariantList& = QVariantList());
+ virtual ~KWalletConfig();
+
+ void load();
+ void save();
+ void defaults();
+
+ QString quickHelp() const;
+
+ public slots:
+ void configChanged();
+ void launchManager();
+ void newLocalWallet();
+ void newNetworkWallet();
+ void updateWalletLists();
+ QString newWallet();
+ void deleteEntry();
+ void customContextMenuRequested(const QPoint& pos);
+
+ private:
+ WalletConfigWidget *_wcw;
+ KSharedConfig::Ptr _cfg;
};
#endif
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/kwallet.actions
^
|
@@ -1,13 +1,15 @@
[Domain]
Name=KDE Wallet system
Name[bs]=Sistem KDE novčanika
-Name[ca]=Sistema de cartera del KDE
+Name[ca]=Sistema de carteres del KDE
Name[ca@valencia]=Sistema de cartera del KDE
Name[cs]=Systém úschovny pro KDE
Name[da]=KDE's tegnebogssystem
Name[de]=Passwortspeicher für KDE
Name[el]=Σύστημα πορτοφολιού του KDE
+Name[en_GB]=KDE Wallet system
Name[es]=Sistema de carteras de KDE
+Name[et]=KDE turvalaekasüsteem
Name[eu]=KDEren zorro sistema
Name[fi]=KDE:n lompakkojärjestelmä
Name[fr]=Systèmes de portefeuilles de KDE
@@ -20,6 +22,7 @@
Name[nb]=KDEs Lommebok-system
Name[nds]=KDE-Knippensysteem
Name[nl]=KDE-portefeuillesysteem
+Name[pa]=KDE ਵਾਲਿਟ ਸਿਸਟਮ
Name[pl]=System portfela KDE
Name[pt]=Sistema da Carteira do KDE
Name[pt_BR]=Sistema de carteiras do KDE
@@ -48,7 +51,9 @@
Name[da]=Gem konfiguration af tegnebog
Name[de]=Einstellungen des Passwortspeichers speichern
Name[el]=Αποθήκευση διαμόρφωσης πορτοφολιού KDE
+Name[en_GB]=Save wallet configuration
Name[es]=Guardar la configuración de la cartera
+Name[et]=Turvalaeka seadistuse salvestamine
Name[eu]=Gorde zorroaren Konfigurazioa
Name[fi]=Tallenna lompakon asetukset
Name[fr]=Enregistrer la configuration du portefeuille
@@ -61,7 +66,8 @@
Name[nb]=Lagre lommebok-oppsett
Name[nds]=Knippinstellen sekern
Name[nl]=Portefeuille-instellingen opslaan
-Name[pl]=Zapisz konfigurację portfela
+Name[pa]=ਵਾਲਿਟ ਸੰਰਚਨਾ ਸੰਭਾਲੋ
+Name[pl]=Zapisz ustawienia portfela
Name[pt]=Gravar a configuração da carteira
Name[pt_BR]=Salvar a configuração da carteira
Name[ro]=Salvează configurarea portofelului
@@ -86,7 +92,9 @@
Description[da]=Tillad gemning af tegnebogsindstillinger
Description[de]=Ermöglicht es, die Einstellungen des Passwortspeichers zu speichern
Description[el]=Να επιτρέπεται η αποθήκευση της διαμόρφωσης πορτοφολιού
+Description[en_GB]=Allow saving wallet configuration settings
Description[es]=Permitir que se guarde la configuración de la cartera
+Description[et]=Turvalaeka seadistuse salvestamise lubamine
Description[eu]=Baimendu zorroaren konfigurazio ezarpenak gordetzea
Description[fi]=Salli lompakon asetusten tallentaminen
Description[fr]=Autoriser l'enregistrement les paramètres de la configuration du portefeuille
@@ -99,7 +107,7 @@
Description[nb]=Kan lagre oppsettsinnstillingene for lommeboka
Description[nds]=Sekern vun Knippinstellen tolaten
Description[nl]=Opslaan van instellingen van de portefeuille toestaan
-Description[pl]=Zezwól na zapisywanie konfiguracji portfela
+Description[pl]=Zezwól na zapisywanie ustawień portfela
Description[pt]=Permitir a gravação das definições da carteira
Description[pt_BR]=Permite salvar as configurações da carteira
Description[ro]=Permite salvarea parametrilor de configurare ai portofelului
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/kwalletconfig.desktop
^
|
@@ -4,11 +4,11 @@
Type=Service
X-KDE-ServiceTypes=KCModule
-Exec=kcmshell5 kwalletconfig
+Exec=kcmshell4 kwalletconfig
X-DocPath=kwallet/index.html#kwallet-kcontrol-module
X-KDE-Library=kcm_kwallet
X-KDE-ParentApp=kcontrol
-X-KDE-System-Settings-Parent-Category=accountdetails
+X-KDE-System-Settings-Parent-Category=account-details
Name=KDE Wallet
Name[ar]=محفظة كدى
@@ -91,7 +91,7 @@
Comment[cs]=Nastavení úschovny KDE
Comment[cy]=Ffurfweddiad Waled KDE
Comment[da]=Konfiguration af KDE's tegnebog
-Comment[de]=Einrichten des Passwortspeicher (KWallet)
+Comment[de]=Einrichten des Passwortspeichers (KWallet)
Comment[el]=Διαμόρφωση του πορτοφολιού του KDE
Comment[en_GB]=KDE Wallet Configuration
Comment[eo]=KDE paperuja agordo
@@ -125,7 +125,7 @@
Comment[nl]=KDE-portefeuille instellen
Comment[nn]=Oppsett av KDE-lommeboka
Comment[pa]=KDE ਵਾਲਿਟ ਸੰਰਚਨਾ
-Comment[pl]=Konfiguracja portfela KDE
+Comment[pl]=Ustawienia portfela KDE
Comment[pt]=Configuração da Carteira do KDE
Comment[pt_BR]=Configuração da carteira do KDE
Comment[ro]=Configurează portofelul KDE
@@ -150,13 +150,14 @@
Comment[zh_CN]=KDE 钱包配置
Comment[zh_TW]=KDE 錢包設定
X-KDE-Keywords=Wallet,Form Fill,Passwords,Form Data
-X-KDE-Keywords[bs]=Wallet,Form Fill,Passwords,Form Data;Novčanik;Lozinke;Formular
+X-KDE-Keywords[bs]=Wallet,Form Fill,Passwords,Form Data,Novčanik,Lozinke,Formular
X-KDE-Keywords[ca]=Cartera,Omplir formulari,Contrasenyes,Dades de formulari
X-KDE-Keywords[ca@valencia]=Cartera,Omplir formulari,Contrasenyes,Dades de formulari
X-KDE-Keywords[cs]=Úschovna,Vyplnění formuláře,Hesla,Data formuláře
X-KDE-Keywords[da]=tegnebog,formularudfyldning,adgangskoder,formulardata
X-KDE-Keywords[de]=Geheimfach,Formular,Passwort,Passwortspeicher,Formulardaten
X-KDE-Keywords[el]=Πορτοφόλι,συμπλήρωση φόρμας,κωδικοί πρόσβασης,δεδομένα φόρμας
+X-KDE-Keywords[en_GB]=Wallet,Form Fill,Passwords,Form Data
X-KDE-Keywords[es]=Cartera,Rellenar formulario,Contraseñas,Datos de formulario
X-KDE-Keywords[et]=turvalaegas,vormide täitmine,paroolid,vormiandmed
X-KDE-Keywords[eu]=Zorroa, formularioak betetzea, pasahitzak, formularioko datuak
@@ -190,6 +191,6 @@
X-KDE-Keywords[sv]=Plånbok,Formulär,Lösenord,Formulärdata
X-KDE-Keywords[tr]=Cüzdan,Form Doldurma,Parolalar,Form Verileri
X-KDE-Keywords[uk]=кишеня,торбинка,форма,форми,заповнення форм,пароль,паролі,дані форми,реєстрація
-X-KDE-Keywords[x-test]=xxWallet,Form Fill,Passwords,Form Dataxx
+X-KDE-Keywords[x-test]=xxWalletxx,xxForm Fillxx,xxPasswordsxx,xxForm Dataxx
X-KDE-Keywords[zh_CN]=Wallet,Form Fill,Passwords,Form Data,钱包,表单填写,密码,表单数据
X-KDE-Keywords[zh_TW]=Wallet,Form Fill,Passwords,Form Data
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/kwalletmanager_show.desktop
^
|
@@ -14,7 +14,7 @@
Name[el]=Εργαλείο διαχείρισης πορτοφολιού
Name[en_GB]=Wallet Management Tool
Name[eo]=Paperuja administrilo
-Name[es]=Herramienta de gestión de cartera
+Name[es]=Herramienta de gestión de carteras
Name[et]=Turvalaeka haldur
Name[eu]=Zorroa kudeatzeko tresna
Name[fa]=ابزار مدیریت Wallet
@@ -44,7 +44,7 @@
Name[nl]=Portefeuillebeheer
Name[nn]=Wallet-administrasjonsverktøy
Name[pa]=ਵਾਲਿਟ ਪਰਬੰਧਨ ਟੂਲ
-Name[pl]=Narzędzie do zarządzania portfelem
+Name[pl]=Zarządzanie portfelem
Name[pt]=Ferramenta de Gestão da Carteira
Name[pt_BR]=Ferramenta de gerenciamento de carteiras
Name[ro]=Administrare portofel
@@ -69,7 +69,7 @@
Name[x-test]=xxWallet Management Toolxx
Name[zh_CN]=钱包管理工具
Name[zh_TW]=錢包管理工具
-Exec=kwalletmanager5 --show
+Exec=kwalletmanager --show
MimeType=application/x-kwallet;
InitialPreference=6
Icon=kwalletmanager
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/savehelper.cpp
^
|
@@ -19,10 +19,7 @@
#include "savehelper.h"
-#include <kauthhelpersupport.h>
-
-#include <QDebug>
-
+#include <kdebug.h>
#include <unistd.h>
#if defined(Q_CC_MSVC)
@@ -33,9 +30,9 @@
ActionReply SaveHelper::save(QVariantMap args)
{
__uid_t uid = getuid();
- qDebug() << "executing uid=" << uid;
+ kDebug() << "executing uid=" << uid;
- return ActionReply::SuccessReply();
+ return ActionReply::SuccessReply;
}
-KAUTH_HELPER_MAIN("org.kde.kcontrol.kcmkwallet", SaveHelper)
+KDE4_AUTH_HELPER_MAIN("org.kde.kcontrol.kcmkwallet", SaveHelper)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/konfigurator/savehelper.h
^
|
@@ -24,8 +24,7 @@
using namespace KAuth;
-class SaveHelper : public QObject
-{
+class SaveHelper : public QObject {
Q_OBJECT;
public slots:
ActionReply save(QVariantMap args);
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/CMakeLists.txt
^
|
@@ -1,5 +1,4 @@
########### next target ###############
-add_definitions(-DTRANSLATION_DOMAIN=\"kwalletmanager\")
set(kwalletmanager_SRCS
kwalletmanager.cpp
@@ -22,53 +21,17 @@
revokeauthbutton.cpp
)
-qt5_add_dbus_interface(kwalletmanager_SRCS
- ${KWALLET_DBUS_INTERFACES_DIR}/kf5_org.kde.KWallet.xml kwallet_interface
-)
+qt4_add_dbus_interface(kwalletmanager_SRCS ${KDE4_DBUS_INTERFACES_DIR}/org.kde.KWallet.xml kwallet_interface)
-ki18n_wrap_ui(kwalletmanager_SRCS
- walletwidget.ui
- kbetterthankdialogbase.ui
- walletcontrolwidget.ui
- applicationsmanager.ui
-)
+kde4_add_ui_files(kwalletmanager_SRCS walletwidget.ui kbetterthankdialogbase.ui walletcontrolwidget.ui applicationsmanager.ui)
-# Sets the icon on Windows and OSX, TODO: port to KF5
-#kde4_add_app_icon(kwalletmanager_SRCS
-# "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-kwalletmanager.png"
-#)
-
-add_executable(kwalletmanager5 ${kwalletmanager_SRCS})
-
-target_link_libraries(kwalletmanager5
- Qt5::Core
- KF5::CoreAddons
- KF5::I18n
- KF5::XmlGui #KActionCollection
- KF5::ConfigWidgets
- KF5::ItemViews
- KF5::Wallet
- KF5::DBusAddons
- KF5::ConfigCore
- KF5::Service
- KF5::KDELibs4Support
- KF5::Archive
-)
+kde4_add_app_icon(kwalletmanager_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-kwalletmanager.png")
+
+kde4_add_executable(kwalletmanager ${kwalletmanager_SRCS})
+
+target_link_libraries(kwalletmanager ${KDE4_KIO_LIBS})
+
+install(TARGETS kwalletmanager ${INSTALL_TARGETS_DEFAULT_ARGS} )
+install( FILES kwalletmanager.rc DESTINATION ${DATA_INSTALL_DIR}/kwalletmanager)
-install(TARGETS kwalletmanager5 ${INSTALL_TARGETS_DEFAULT_ARGS} )
-install(FILES kwalletmanager.rc
- DESTINATION ${KXMLGUI_INSTALL_DIR}/kwalletmanager5)
-
-ecm_install_icons( ICONS
-hi128-apps-kwalletmanager2.png
-hi128-apps-kwalletmanager.png
-hi16-apps-kwalletmanager2.png
-hi16-apps-kwalletmanager.png
-hi22-apps-kwalletmanager.png
-hi32-apps-kwalletmanager2.png
-hi32-apps-kwalletmanager.png
-hi48-apps-kwalletmanager2.png
-hi48-apps-kwalletmanager.png
-hi64-apps-kwalletmanager2.png
-hi64-apps-kwalletmanager.png
-DESTINATION ${ICON_INSTALL_DIR} )
+kde4_install_icons( ${ICON_INSTALL_DIR} )
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/allyourbase.cpp
^
|
@@ -20,17 +20,19 @@
#include "allyourbase.h"
+#include <kdebug.h>
+#include <kcomponentdata.h>
+#include <kglobal.h>
#include <kio/netaccess.h>
-#include <klocalizedstring.h>
+#include <klocale.h>
#include <kmessagebox.h>
-#include <qurl.h>
+#include <kstandarddirs.h>
+#include <kurl.h>
#include <kwallet.h>
-#include <QApplication>
-#include <QDebug>
-#include <QDrag>
#include <QFile>
-#include <QMimeData>
+#include <QApplication>
+//Added by qt3to4:
#include <QPixmap>
#include <QDropEvent>
#include <QDragEnterEvent>
@@ -39,625 +41,585 @@
/****************
* KWalletFolderItem - ListView items to represent kwallet folders
*/
-KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, QTreeWidget *parent, const QString &name, int entries)
- : QTreeWidgetItem(parent, KWalletFolderItemClass), _wallet(w), _name(name), _entries(entries)
-{
+KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, QTreeWidget* parent, const QString &name, int entries)
+: QTreeWidgetItem(parent, KWalletFolderItemClass),_wallet(w),_name(name),_entries(entries) {
setText(0, QString::fromLatin1("%1 (%2)").arg(_name).arg(_entries));
- setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | Qt::ItemIsEnabled);
- setIcon(0, getFolderIcon(KIconLoader::Small));
-}
-
-QPixmap KWalletFolderItem::getFolderIcon(KIconLoader::Group group)
-{
- KIconLoader *loader = KIconLoader::global();
- QPixmap pix = loader->loadIcon(_name, group, 0,
- KIconLoader::DefaultState, QStringList(), 0, true);
- if (pix.isNull())
- pix = loader->loadIcon(_name.toLower(), group, 0,
- KIconLoader::DefaultState, QStringList(), 0, true);
- if (pix.isNull())
- pix = loader->loadIcon(QLatin1String("folder-red"), group, 0,
- KIconLoader::DefaultState, QStringList(), 0, true);
- return pix;
+ setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | Qt::ItemIsEnabled);
+ setIcon(0, getFolderIcon(KIconLoader::Small));
}
-void KWalletFolderItem::refresh()
-{
- const QString saveFolder = _wallet->currentFolder();
- _wallet->setFolder(_name);
- setText(0, QString::fromLatin1("%1 (%2)").arg(_name).arg(_wallet->entryList().count()));
- _wallet->setFolder(saveFolder);
+QPixmap KWalletFolderItem::getFolderIcon(KIconLoader::Group group){
+ KIconLoader *loader = KIconLoader::global();
+ QPixmap pix = loader->loadIcon( _name, group, 0,
+ KIconLoader::DefaultState, QStringList(),0, true );
+ if (pix.isNull())
+ pix = loader->loadIcon( _name.toLower(), group, 0,
+ KIconLoader::DefaultState, QStringList(),0, true);
+ if (pix.isNull())
+ pix = loader->loadIcon( QLatin1String( "folder-red" ), group, 0,
+ KIconLoader::DefaultState, QStringList(),0, true);
+ return pix;
+}
+
+void KWalletFolderItem::refresh() {
+ const QString saveFolder = _wallet->currentFolder();
+ _wallet->setFolder(_name);
+ setText(0, QString::fromLatin1("%1 (%2)").arg(_name).arg(_wallet->entryList().count()));
+ _wallet->setFolder(saveFolder);
}
void KWalletFolderItem::refreshItemsCount()
{
- int visibleLeafCount = 0;
- for (int i = 0; i < childCount(); i++) {
- QTreeWidgetItem *wi = child(i);
+ int visibleLeafCount =0;
+ for (int i=0; i < childCount(); i++) {
+ QTreeWidgetItem* wi = child(i);
if (wi->childCount()) {
- for (int l = 0; l < wi->childCount(); l++) {
- QTreeWidgetItem *li = wi->child(l);
- if (!li->isHidden()) {
+ for (int l=0; l < wi->childCount(); l++) {
+ QTreeWidgetItem* li = wi->child(l);
+ if (!li->isHidden())
visibleLeafCount++;
- }
}
}
}
setText(0, QString::fromLatin1("%1 (%2)").arg(_name).arg(visibleLeafCount));
}
-KWalletContainerItem *KWalletFolderItem::getContainer(KWallet::Wallet::EntryType type)
-{
- for (int i = 0; i < childCount(); ++i) {
- KWalletContainerItem *ci = dynamic_cast<KWalletContainerItem *>(child(i));
- if (!ci) {
- continue;
- }
- if (ci->entryType() == type) {
- return ci;
- }
- }
- return 0;
-}
-
-bool KWalletFolderItem::contains(const QString &key)
-{
- return (getItem(key) != 0);
+KWalletContainerItem* KWalletFolderItem::getContainer(KWallet::Wallet::EntryType type) {
+ for (int i = 0; i < childCount(); ++i) {
+ KWalletContainerItem *ci = dynamic_cast<KWalletContainerItem *>(child(i));
+ if (!ci) {
+ continue;
+ }
+ if (ci->entryType() == type) {
+ return ci;
+ }
+ }
+ return 0;
+}
+
+bool KWalletFolderItem::contains(const QString& key) {
+ return (getItem(key) != 0);
+}
+
+QTreeWidgetItem* KWalletFolderItem::getItem(const QString& key) {
+ for (int i = 0; i < childCount(); ++i) {
+ KWalletContainerItem *ci = dynamic_cast<KWalletContainerItem *>(child(i));
+ if (!ci) {
+ continue;
+ }
+ QTreeWidgetItem *tmp = ci->getItem(key);
+ if (tmp) {
+ return tmp;
+ }
+ }
+ return 0;
+}
+
+bool KWalletFolderItem::acceptDrop(const QMimeSource *mime) const {
+ return mime->provides("application/x-kwallet-entry") ||
+ mime->provides("text/uri-list");
}
-QTreeWidgetItem *KWalletFolderItem::getItem(const QString &key)
-{
- for (int i = 0; i < childCount(); ++i) {
- KWalletContainerItem *ci = dynamic_cast<KWalletContainerItem *>(child(i));
- if (!ci) {
- continue;
- }
- QTreeWidgetItem *tmp = ci->getItem(key);
- if (tmp) {
- return tmp;
- }
- }
- return 0;
+QString KWalletFolderItem::name() const {
+ return _name;
}
-bool KWalletFolderItem::acceptDrop(const QMimeData *mime) const
-{
- return mime->hasFormat("application/x-kwallet-entry") ||
- mime->hasFormat("text/uri-list");
-}
-
-QString KWalletFolderItem::name() const
-{
- return _name;
-}
-
-KWalletFolderItem::~KWalletFolderItem()
-{
+KWalletFolderItem::~KWalletFolderItem() {
}
/****************
* KWalletContainerItem - ListView items to represent kwallet containers, i.e.
* passwords, maps, ...
*/
-KWalletContainerItem::KWalletContainerItem(QTreeWidgetItem *parent, const QString &name, KWallet::Wallet::EntryType entryType)
- : QTreeWidgetItem(parent, QStringList() << name, KWalletContainerItemClass), _type(entryType)
-{
- setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled);
+KWalletContainerItem::KWalletContainerItem(QTreeWidgetItem* parent, const QString &name, KWallet::Wallet::EntryType entryType)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/allyourbase.h
^
|
@@ -24,8 +24,7 @@
#include <kwallet.h>
#include <kiconloader.h>
#include <kicontheme.h>
-#include <QListWidget>
-
+#include <klistwidget.h>
#include <QPixmap>
#include <QDropEvent>
#include <QDragEnterEvent>
@@ -35,150 +34,141 @@
#define KWALLETENTRYMAGIC ((quint32) 0x6B776C65)
#define KWALLETFOLDERMAGIC ((quint32) 0x6B776C66)
+
enum KWalletListItemClasses {
- KWalletFolderItemClass = QTreeWidgetItem::UserType,
- KWalletContainerItemClass,
- KWalletEntryItemClass,
- KWalletUnknownClass
-};
-
-class KWalletEntryItem : public QTreeWidgetItem
-{
-public:
- KWalletEntryItem(KWallet::Wallet *w, QTreeWidgetItem *parent, const QString &ename);
- virtual ~KWalletEntryItem();
-
- const QString &name() const
- {
- return m_name;
- }
- void setName(const QString &n);
- // Cancel renaming
- void restoreName();
-
-public:
- KWallet::Wallet *_wallet;
-
-private:
- void setText(int, const QString &) {} // forbidden
- QString m_name;
-};
-
-class KWalletContainerItem : public QTreeWidgetItem
-{
-public:
- KWalletContainerItem(QTreeWidgetItem *parent, const QString &name, KWallet::Wallet::EntryType entryType);
- virtual ~KWalletContainerItem();
-
-public:
- KWallet::Wallet::EntryType entryType();
- bool contains(const QString &itemKey);
- QTreeWidgetItem *getItem(const QString &itemKey);
-
-private:
- KWallet::Wallet::EntryType _type;
-};
-
-class KWalletFolderItem : public QTreeWidgetItem
-{
-public:
- KWalletFolderItem(KWallet::Wallet *w, QTreeWidget *parent, const QString &name, int entries);
- virtual ~KWalletFolderItem();
-
- virtual bool acceptDrop(const QMimeData *mime) const;
-
- QString name() const;
- void refresh();
- KWalletContainerItem *getContainer(KWallet::Wallet::EntryType type);
- QPixmap getFolderIcon(KIconLoader::Group group);
- bool contains(const QString &itemKey);
- QTreeWidgetItem *getItem(const QString &itemKey);
- void refreshItemsCount();
-
-public:
- KWallet::Wallet *_wallet;
-
-private:
- QString _name;
- int _entries;
-};
-
-class KWalletEntryList : public QTreeWidget
-{
- Q_OBJECT
-
-public:
- explicit KWalletEntryList(QWidget *parent, const char *name = 0L);
- virtual ~KWalletEntryList();
-
- bool existsFolder(const QString &name);
- KWalletFolderItem *getFolder(const QString &name);
- void setWallet(KWallet::Wallet *w);
-
-protected:
- virtual void dragEnterEvent(QDragEnterEvent *e);
- virtual void dragMoveEvent(QDragMoveEvent *e);
- virtual void dropEvent(QDropEvent *e);
- virtual void mousePressEvent(QMouseEvent *e);
- virtual void mouseMoveEvent(QMouseEvent *e);
-
- void itemDropped(QDropEvent *e, QTreeWidgetItem *item);
-
-private:
- static KWalletFolderItem *getItemFolder(QTreeWidgetItem *item);
- QMimeData *itemMimeData(const QTreeWidgetItem *i) const;
-
-public:
- KWallet::Wallet *_wallet;
- QPoint _mousePos;
-
-public Q_SLOTS:
- void selectFirstVisible();
- void refreshItemsCount();
-};
-
-class KWalletItem : public QListWidgetItem
-{
-public:
- KWalletItem(QListWidget *parent, const QString &walletName);
- virtual ~KWalletItem();
-
- void setOpen(bool state);
-
- void processDropEvent(QDropEvent *e);
-
-private:
- bool _open;
-};
-
-inline QDataStream &operator<<(QDataStream &str, const KWalletEntryItem &w)
-{
- QString name = w.text(0);
- str << name;
- KWallet::Wallet::EntryType et = w._wallet->entryType(name);
- str << qint64(et);
- QByteArray a;
- w._wallet->readEntry(name, a);
- str << a;
- return str;
+ KWalletFolderItemClass = QTreeWidgetItem::UserType,
+ KWalletContainerItemClass,
+ KWalletEntryItemClass,
+ KWalletUnknownClass
+};
+
+class KWalletEntryItem : public QTreeWidgetItem {
+ public:
+ KWalletEntryItem(KWallet::Wallet *w, QTreeWidgetItem* parent, const QString& ename);
+ virtual ~KWalletEntryItem();
+
+ const QString& name() const { return m_name; }
+ void setName(const QString& n);
+ // Cancel renaming
+ void restoreName();
+
+ public:
+ KWallet::Wallet *_wallet;
+
+ private:
+ void setText(int, const QString&) {} // forbidden
+ QString m_name;
+};
+
+class KWalletContainerItem : public QTreeWidgetItem {
+ public:
+ KWalletContainerItem(QTreeWidgetItem* parent, const QString& name, KWallet::Wallet::EntryType entryType);
+ virtual ~KWalletContainerItem();
+
+ public:
+ KWallet::Wallet::EntryType entryType();
+ bool contains(const QString& itemKey);
+ QTreeWidgetItem* getItem(const QString& itemKey);
+
+ private:
+ KWallet::Wallet::EntryType _type;
+};
+
+class KWalletFolderItem : public QTreeWidgetItem {
+ public:
+ KWalletFolderItem(KWallet::Wallet *w, QTreeWidget* parent, const QString& name, int entries);
+ virtual ~KWalletFolderItem();
+
+ virtual bool acceptDrop(const QMimeSource *mime) const;
+
+ QString name() const;
+ void refresh();
+ KWalletContainerItem* getContainer(KWallet::Wallet::EntryType type);
+ QPixmap getFolderIcon(KIconLoader::Group group);
+ bool contains(const QString& itemKey);
+ QTreeWidgetItem* getItem(const QString& itemKey);
+ void refreshItemsCount();
+
+ public:
+ KWallet::Wallet *_wallet;
+
+ private:
+ QString _name;
+ int _entries;
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/applicationsmanager.cpp
^
|
@@ -25,9 +25,9 @@
#include <QStyledItemDelegate>
#include <QPainter>
#include <QStandardItemModel>
-#include <QDebug>
+#include <kdebug.h>
-ApplicationsManager::ApplicationsManager(QWidget *parent):
+ApplicationsManager::ApplicationsManager(QWidget* parent):
QWidget(parent),
_wallet(0),
_connectedAppsModel(0),
@@ -42,7 +42,7 @@
delete _authorizedAppModel;
}
-void ApplicationsManager::setWallet(KWallet::Wallet *wallet)
+void ApplicationsManager::setWallet(KWallet::Wallet* wallet)
{
Q_ASSERT(wallet != 0);
_wallet = wallet;
@@ -57,4 +57,4 @@
_authorizedApps->setModel(_authorizedAppModel);
}
-
+#include "applicationsmanager.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/applicationsmanager.h
^
|
@@ -25,11 +25,11 @@
class AuthorizedAppModel;
class ConnectedAppModel;
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
+
class ApplicationsManager : public QWidget, public Ui::ApplicationsManager
{
Q_OBJECT
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/authorizedapplicationstable.cpp
^
|
@@ -21,35 +21,35 @@
#include "authorizedappmodel.h"
#include "revokeauthbutton.h"
-AuthorizedApplicationsTable::AuthorizedApplicationsTable(QWidget *parent) :
+AuthorizedApplicationsTable::AuthorizedApplicationsTable(QWidget* parent) :
QTableView(parent),
_wallet(0)
{
}
-void AuthorizedApplicationsTable::setWallet(KWallet::Wallet *wallet)
+void AuthorizedApplicationsTable::setWallet(KWallet::Wallet* wallet)
{
_wallet = wallet;
}
-void AuthorizedApplicationsTable::setModel(QAbstractItemModel *model)
+void AuthorizedApplicationsTable::setModel(QAbstractItemModel* model)
{
Q_ASSERT(_wallet != 0);
- AuthorizedAppModel *appModel = qobject_cast<AuthorizedAppModel *>(model);
+ AuthorizedAppModel *appModel = qobject_cast<AuthorizedAppModel*>(model);
Q_ASSERT(appModel != 0);
QTableView::setModel(model);
- for (int row = 0; row < model->rowCount(); row++) {
- RevokeAuthButton *btn = new RevokeAuthButton(model->index(row, 0).data().toString(), _wallet);
+ for (int row =0; row < model->rowCount(); row++) {
+ RevokeAuthButton *btn = new RevokeAuthButton( model->index(row, 0).data().toString() , _wallet);
btn->setFixedHeight(btn->sizeHint().height());
setRowHeight(row, btn->height());
- setIndexWidget(model->index(row, 1), btn);
- connect(btn, &RevokeAuthButton::appRevoked, appModel, &AuthorizedAppModel::removeApp);
+ setIndexWidget( model->index(row, 1), btn);
+ connect(btn, SIGNAL(appRevoked(QString)), appModel, SLOT(removeApp(QString)));
}
}
-void AuthorizedApplicationsTable::resizeEvent(QResizeEvent *resizeEvent)
+void AuthorizedApplicationsTable::resizeEvent(QResizeEvent* resizeEvent)
{
// this will keep disconnect buttons column at it's minimum size and
// make the application names take the reminder of the horizontal space
@@ -59,4 +59,4 @@
QAbstractItemView::resizeEvent(resizeEvent);
}
-
+#include "authorizedapplicationstable.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/authorizedapplicationstable.h
^
|
@@ -17,13 +17,13 @@
Boston, MA 02110-1301, USA.
*/
+
#ifndef AUTHORIZEDAPPLICATIONSTABLE_H
#define AUTHORIZEDAPPLICATIONSTABLE_H
#include <QTableView>
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
@@ -31,7 +31,7 @@
{
Q_OBJECT
public:
- explicit AuthorizedApplicationsTable(QWidget *parent);
+ explicit AuthorizedApplicationsTable(QWidget* parent);
virtual void setModel(QAbstractItemModel *model);
void setWallet(KWallet::Wallet *wallet);
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/authorizedappmodel.cpp
^
|
@@ -21,12 +21,12 @@
#include <kconfiggroup.h>
#include <kwallet.h>
-#include <QDebug>
+#include <kdebug.h>
#include <QTimer>
-AuthorizedAppModel::AuthorizedAppModel(KWallet::Wallet *wallet):
+AuthorizedAppModel::AuthorizedAppModel(KWallet::Wallet* wallet):
QStandardItemModel(),
- _cfg(KSharedConfig::openConfig(QLatin1String("kwalletrc"), KConfig::NoGlobals)),
+ _cfg(KSharedConfig::openConfig(QLatin1String( "kwalletrc" ), KConfig::NoGlobals)),
_wallet(wallet)
{
// TODO: handle "Auto Deny" applications
@@ -55,11 +55,11 @@
QPersistentModelIndex idx = _authorizedAppsIndexMap[appName];
if (idx.isValid()) {
if (!removeRow(idx.row())) {
- qDebug() << "Remove row failed for app " << appName;
+ kDebug() << "Remove row failed for app " << appName;
}
}
} else {
- qDebug() << "Attempting to remove unknown application " << appName;
+ kDebug() << "Attempting to remove unknown application " << appName;
}
QTimer::singleShot(0, this, SLOT(saveConfig()));
}
@@ -67,7 +67,7 @@
void AuthorizedAppModel::saveConfig()
{
QStringList appList;
- for (int r = 0; r < rowCount(); r++) {
+ for (int r=0; r <rowCount(); r++) {
appList << item(r)->text();
}
QString walletName = _wallet->walletName();
@@ -77,4 +77,4 @@
_cfg->sync();
}
-
+#include "authorizedappmodel.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/authorizedappmodel.h
^
|
@@ -23,8 +23,7 @@
#include <QStandardItemModel>
#include <ksharedconfig.h>
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/connectedapplicationstable.cpp
^
|
@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
+
#include "connectedapplicationstable.h"
#include "disconnectappbutton.h"
#include "connectedappmodel.h"
@@ -24,35 +25,35 @@
#include <klocalizedstring.h>
#include <QPushButton>
-ConnectedApplicationsTable::ConnectedApplicationsTable(QWidget *parent):
+ConnectedApplicationsTable::ConnectedApplicationsTable(QWidget* parent):
QTableView(parent),
_wallet(0)
{
}
-void ConnectedApplicationsTable::setWallet(KWallet::Wallet *wallet)
+void ConnectedApplicationsTable::setWallet(KWallet::Wallet* wallet)
{
_wallet = wallet;
}
-void ConnectedApplicationsTable::setModel(QAbstractItemModel *model)
+void ConnectedApplicationsTable::setModel(QAbstractItemModel* model)
{
Q_ASSERT(_wallet != 0);
- ConnectedAppModel *appModel = qobject_cast<ConnectedAppModel *>(model);
+ ConnectedAppModel *appModel = qobject_cast<ConnectedAppModel*>(model);
Q_ASSERT(appModel != 0);
QTableView::setModel(model);
- for (int row = 0; row < model->rowCount(); row++) {
- DisconnectAppButton *btn = new DisconnectAppButton(model->index(row, 0).data().toString(), _wallet);
+ for (int row =0; row < model->rowCount(); row++) {
+ DisconnectAppButton *btn = new DisconnectAppButton( model->index(row, 0).data().toString() , _wallet);
btn->setFixedHeight(btn->sizeHint().height());
setRowHeight(row, btn->height());
- setIndexWidget(model->index(row, 1), btn);
- connect(btn, &DisconnectAppButton::appDisconnected, appModel, &ConnectedAppModel::removeApp);
+ setIndexWidget( model->index(row, 1), btn);
+ connect(btn, SIGNAL(appDisconnected(QString)), appModel, SLOT(removeApp(QString)));
}
}
-void ConnectedApplicationsTable::resizeEvent(QResizeEvent *resizeEvent)
+void ConnectedApplicationsTable::resizeEvent(QResizeEvent* resizeEvent)
{
// this will keep disconnect buttons column at it's minimum size and
// make the application names take the reminder of the horizontal space
@@ -62,4 +63,4 @@
QAbstractItemView::resizeEvent(resizeEvent);
}
-
+#include "connectedapplicationstable.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/connectedappmodel.cpp
^
|
@@ -20,9 +20,10 @@
#include "connectedappmodel.h"
#include <kwallet.h>
-#include <QDebug>
+#include <kdebug.h>
-ConnectedAppModel::ConnectedAppModel(KWallet::Wallet *wallet):
+
+ConnectedAppModel::ConnectedAppModel(KWallet::Wallet* wallet):
QStandardItemModel(),
_wallet(wallet)
{
@@ -35,11 +36,11 @@
_connectedAppsIndexMap.clear();
_connectedApps = KWallet::Wallet::users(_wallet->walletName());
- int row = 0;
- Q_FOREACH(QString appName, _connectedApps) {
+ int row =0;
+ Q_FOREACH(QString appName, _connectedApps ) {
// for un unknown reason, kwalletd returs empty strings so lets avoid inserting them
// FIXME: find out why kwalletd returns empty strings here
- if (appName.length() > 0) {
+ if (appName.length()>0) {
QStandardItem *item = new QStandardItem(appName);
item->setEditable(false);
setItem(row, 0, item);
@@ -57,12 +58,13 @@
QPersistentModelIndex idx = _connectedAppsIndexMap[appName];
if (idx.isValid()) {
if (!removeRow(idx.row())) {
- qDebug() << "Remove row failed for app " << appName;
+ kDebug() << "Remove row failed for app " << appName;
}
}
} else {
- qDebug() << "Attempting to remove unknown application " << appName;
+ kDebug() << "Attempting to remove unknown application " << appName;
}
}
+#include "connectedappmodel.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/connectedappmodel.h
^
|
@@ -22,8 +22,7 @@
#include <QStandardItemModel>
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
@@ -43,4 +42,5 @@
QMap<QString, QPersistentModelIndex> _connectedAppsIndexMap;
};
+
#endif // CONNECTEDAPPMODEL_H
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/disconnectappbutton.cpp
^
|
@@ -22,12 +22,12 @@
#include <klocalizedstring.h>
#include <kwallet.h>
-DisconnectAppButton::DisconnectAppButton(const QString &appName, KWallet::Wallet *wallet) :
- _appName(appName), _wallet(wallet)
+DisconnectAppButton::DisconnectAppButton(const QString& appName, KWallet::Wallet* wallet) :
+ _appName(appName), _wallet(wallet)
{
setObjectName(QString("Disconnect_%1").arg(appName));
setText(i18n("Disconnect"));
- connect(this, &DisconnectAppButton::clicked, this, &DisconnectAppButton::onClicked);
+ connect(this, SIGNAL(clicked(bool)), this, SLOT(onClicked()));
}
void DisconnectAppButton::onClicked()
@@ -37,4 +37,4 @@
}
}
-
+#include "disconnectappbutton.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/disconnectappbutton.h
^
|
@@ -22,16 +22,14 @@
#include <QPushButton>
-namespace KWallet
-{
-class Wallet;
+namespace KWallet {
+ class Wallet;
}
-class DisconnectAppButton : public QPushButton
-{
+class DisconnectAppButton : public QPushButton {
Q_OBJECT
public:
- DisconnectAppButton(const QString &appName, KWallet::Wallet *wallet);
+ DisconnectAppButton(const QString& appName, KWallet::Wallet *wallet);
Q_SIGNALS:
void appDisconnected(QString);
@@ -44,4 +42,6 @@
KWallet::Wallet *_wallet;
};
+
+
#endif // DISCONNECTAPPBUTTON_H
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi128-app-kwalletmanager.png
^
|
(renamed from src/manager/hi128-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi128-app-kwalletmanager2.png
^
|
(renamed from src/manager/hi128-apps-kwalletmanager2.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi16-app-kwalletmanager.png
^
|
(renamed from src/manager/hi16-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi16-app-kwalletmanager2.png
^
|
(renamed from src/manager/hi16-apps-kwalletmanager2.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi22-app-kwalletmanager.png
^
|
(renamed from src/manager/hi22-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi32-app-kwalletmanager.png
^
|
(renamed from src/manager/hi32-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi32-app-kwalletmanager2.png
^
|
(renamed from src/manager/hi32-apps-kwalletmanager2.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi48-app-kwalletmanager.png
^
|
(renamed from src/manager/hi48-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi48-app-kwalletmanager2.png
^
|
(renamed from src/manager/hi48-apps-kwalletmanager2.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi64-app-kwalletmanager.png
^
|
(renamed from src/manager/hi64-apps-kwalletmanager.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/hi64-app-kwalletmanager2.png
^
|
(renamed from src/manager/hi64-apps-kwalletmanager2.png)
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kbetterthankdialogbase.cpp
^
|
@@ -18,45 +18,50 @@
* Boston, MA 02110-1301, USA.
*/
+
#include "kbetterthankdialogbase.h"
void KBetterThanKDialogBase::clicked()
{
if (sender() == _allowOnce) {
- done(3);
+ done(3);
} else if (sender() == _allowAlways) {
- done(1);
+ done(1);
} else if (sender() == _deny) {
- done(4);
+ done(4);
} else if (sender() == _denyForever) {
- done(2);
+ done(2);
}
}
-void KBetterThanKDialogBase::setLabel(const QString &label)
+
+void KBetterThanKDialogBase::setLabel( const QString & label )
{
_label->setText(label);
}
-KBetterThanKDialogBase::KBetterThanKDialogBase(QWidget *parent)
- : QDialog(parent), Ui_KBetterThanKDialogBase()
+
+KBetterThanKDialogBase::KBetterThanKDialogBase( QWidget* parent )
+ : QDialog( parent ), Ui_KBetterThanKDialogBase()
{
- setupUi(this);
- connect(_allowOnce, &QPushButton::clicked, this, &KBetterThanKDialogBase::clicked);
- connect(_allowAlways, &QPushButton::clicked, this, &KBetterThanKDialogBase::clicked);
- connect(_deny, &QPushButton::clicked, this, &KBetterThanKDialogBase::clicked);
- connect(_denyForever, &QPushButton::clicked, this, &KBetterThanKDialogBase::clicked);
+ setupUi( this );
+ connect(_allowOnce, SIGNAL(clicked()), this, SLOT(clicked()));
+ connect(_allowAlways, SIGNAL(clicked()), this, SLOT(clicked()));
+ connect(_deny,SIGNAL(clicked()), this, SLOT(clicked()));
+ connect(_denyForever,SIGNAL(clicked()), this, SLOT(clicked()));
_allowOnce->setFocus();
}
+
void KBetterThanKDialogBase::accept()
{
setResult(3);
}
+
void KBetterThanKDialogBase::reject()
{
QDialog::reject();
setResult(4);
}
-
+#include "kbetterthankdialogbase.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kbetterthankdialogbase.h
^
|
@@ -23,15 +23,17 @@
#include "ui_kbetterthankdialogbase.h"
+
class KBetterThanKDialogBase : public QDialog, private Ui_KBetterThanKDialogBase
{
Q_OBJECT
public:
- KBetterThanKDialogBase(QWidget *parent = 0);
+ KBetterThanKDialogBase( QWidget* parent = 0 );
+
public slots:
- virtual void setLabel(const QString &label);
+ virtual void setLabel( const QString & label );
virtual void accept();
virtual void reject();
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalleteditor.cpp
^
|
@@ -23,145 +23,156 @@
#include "kwmapeditor.h"
#include "allyourbase.h"
-#include <qaction.h>
-#include <qdialog.h>
-#include <qinputdialog.h>
+#include <stdlib.h>
+#include <QDomElement>
+#include <QDomNode>
+#include <QDomDocument>
+#include <QXmlStreamWriter>
+#include <kaction.h>
+#include <kdebug.h>
+#include <kdialog.h>
+#include <kfiledialog.h>
+#include <kinputdialog.h>
#include <kio/netaccess.h>
#include <kactioncollection.h>
+#include <klocale.h>
#include <kcodecs.h>
#include <kmessagebox.h>
-#include <QMenu>
+#include <kmenu.h>
#include <ksqueezedtextlabel.h>
+#include <kstandarddirs.h>
#include <kstandardaction.h>
-#include <KConfigGroup>
-#include <QTemporaryFile>
+#include <ktemporaryfile.h>
#include <kxmlguifactory.h>
-#include <KSharedConfig>
-
-#include <ktoolbar.h>
-#include <QIcon>
-#include <KTreeWidgetSearchLine>
-
#include <QCheckBox>
#include <QClipboard>
-#include <QDebug>
-#include <QDomDocument>
-#include <QDomElement>
-#include <QDomNode>
-#include <QFileDialog>
-#include <QList>
#include <QPushButton>
-#include <QStack>
-#include <QStandardPaths>
+#include <QTimer>
#include <QSet>
#include <QTextStream>
-#include <QTimer>
-#include <QToolButton>
+#include <QList>
#include <QVBoxLayout>
-#include <QXmlStreamWriter>
+#include <QStack>
+#include <QToolButton>
#include <assert.h>
-#include <stdlib.h>
+#include <ktoolbar.h>
+#include <kicon.h>
+#include <KAction>
+#include <KTreeWidgetSearchLine>
-QAction *KWalletEditor::_newFolderAction = 0;
-QAction *KWalletEditor::_deleteFolderAction = 0;
-QAction *KWalletEditor::_exportAction = 0;
-QAction *KWalletEditor::_mergeAction = 0;
-QAction *KWalletEditor::_importAction = 0;
-QAction *KWalletEditor::_newEntryAction = 0;
-QAction *KWalletEditor::_renameEntryAction = 0;
-QAction *KWalletEditor::_deleteEntryAction = 0;
-QAction *KWalletEditor::_copyPassAction = 0;
-QAction *KWalletEditor::_alwaysShowContentsAction = 0;
-QAction *KWalletEditor::_alwaysHideContentsAction = 0;
+QAction *KWalletEditor::_newFolderAction =0;
+QAction *KWalletEditor::_deleteFolderAction =0;
+QAction *KWalletEditor::_exportAction =0;
+QAction *KWalletEditor::_saveAsAction =0;
+QAction *KWalletEditor::_mergeAction =0;
+QAction *KWalletEditor::_importAction =0;
+KAction *KWalletEditor::_newEntryAction =0;
+KAction *KWalletEditor::_renameEntryAction =0;
+KAction *KWalletEditor::_deleteEntryAction =0;
+KAction *KWalletEditor::_copyPassAction =0;
+QAction *KWalletEditor::_alwaysShowContentsAction =0;
+QAction *KWalletEditor::_alwaysHideContentsAction =0;
RegisterCreateActionsMethod KWalletEditor::_registerCreateActionMethod(&KWalletEditor::createActions);
-KWalletEditor::KWalletEditor(QWidget *parent, const char *name)
- : QWidget(parent), _displayedItem(0), _actionCollection(0), _alwaysShowContents(false)
-{
- setupUi(this);
- setObjectName(QLatin1String(name));
- _newWallet = false;
- _splitter->setStretchFactor(0, 1);
- _splitter->setStretchFactor(1, 2);
- _contextMenu = new QMenu(this);
-
- _undoChanges->setIcon(QIcon::fromTheme(QLatin1String("edit-undo")));
- _saveChanges->setIcon(QIcon::fromTheme(QLatin1String("document-save")));
-
- QVBoxLayout *box = new QVBoxLayout(_entryListFrame);
- box->setMargin(0);
- _entryList = new KWalletEntryList(_entryListFrame, "Wallet Entry List");
- _entryList->setContextMenuPolicy(Qt::CustomContextMenu);
+
+KWalletEditor::KWalletEditor(QWidget* parent, const char *name)
+: QWidget(parent), _displayedItem(0), _actionCollection(0), _alwaysShowContents(false) {
+ setupUi( this );
+ setObjectName( QLatin1String( name ) );
+ _newWallet = false;
+ _splitter->setStretchFactor(0, 1);
+ _splitter->setStretchFactor(1, 2);
+ _contextMenu = new KMenu(this);
+
+ _undoChanges->setIcon(KIcon( QLatin1String( "edit-undo" )));
+ _saveChanges->setIcon(KIcon( QLatin1String( "document-save" )));
+
+ QVBoxLayout *box = new QVBoxLayout(_entryListFrame);
+ box->setMargin(0);
+ _entryList = new KWalletEntryList(_entryListFrame, "Wallet Entry List");
+ _entryList->setContextMenuPolicy(Qt::CustomContextMenu);
_searchLine = new KTreeWidgetSearchLine(_entryListFrame, _entryList);
_searchLine->setClickMessage(i18n("Search"));
- connect(_searchLine, &KTreeWidgetSearchLine::textChanged, this, &KWalletEditor::onSearchTextChanged);
- box->addWidget(_searchLine);
- box->addWidget(_entryList);
-
- _entryStack->setEnabled(true);
-
- box = new QVBoxLayout(_entryStack->widget(2));
- box->setMargin(0);
- _mapEditorShowHide = new QCheckBox(i18n("&Show values"), _entryStack->widget(2));
- connect(_mapEditorShowHide, &QCheckBox::toggled, this, &KWalletEditor::showHideMapEditorValue);
- _mapEditor = new KWMapEditor(_currentMap, _entryStack->widget(2));
- box->addWidget(_mapEditorShowHide);
- box->addWidget(_mapEditor);
-
- // load splitter size
- KConfigGroup cg(KSharedConfig::openConfig(), "WalletEditor");
- QList<int> splitterSize = cg.readEntry("SplitterSize", QList<int>());
- if (splitterSize.size() != 2) {
- splitterSize.clear();
- splitterSize.append(_splitter->width() / 2);
- splitterSize.append(_splitter->width() / 2);
- }
- _splitter->setSizes(splitterSize);
+ connect(_searchLine, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString)));
+ box->addWidget(_searchLine);
+ box->addWidget(_entryList);
+
+ _entryStack->setEnabled(true);
+
+ box = new QVBoxLayout(_entryStack->widget(2));
+ box->setMargin(0);
+ _mapEditorShowHide = new QCheckBox(i18n("&Show values"), _entryStack->widget(2));
+ connect(_mapEditorShowHide, SIGNAL(toggled(bool)), this, SLOT(showHideMapEditorValue(bool)));
+ _mapEditor = new KWMapEditor(_currentMap, _entryStack->widget(2));
+ box->addWidget(_mapEditorShowHide);
+ box->addWidget(_mapEditor);
+
+ // load splitter size
+ KConfigGroup cg(KGlobal::config(), "WalletEditor");
+ QList<int> splitterSize = cg.readEntry("SplitterSize", QList<int>());
+ if (splitterSize.size() != 2) {
+ splitterSize.clear();
+ splitterSize.append(_splitter->width()/2);
+ splitterSize.append(_splitter->width()/2);
+ }
+ _splitter->setSizes(splitterSize);
_alwaysShowContents = cg.readEntry("AlwaysShowContents", false);
_searchLine->setFocus();
- connect(_entryList, &KWalletEntryList::currentItemChanged, this, &KWalletEditor::entrySelectionChanged);
- connect(_entryList, &KWalletEntryList::customContextMenuRequested, this, &KWalletEditor::listContextMenuRequested);
- connect(_entryList, &KWalletEntryList::itemChanged, this, &KWalletEditor::listItemChanged);
-
- connect(_passwordValue, &QTextEdit::textChanged, this, &KWalletEditor::entryEditted);
- connect(_mapEditor, &KWMapEditor::dirty, this, &KWalletEditor::entryEditted);
+ connect(_entryList, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
+ this, SLOT(entrySelectionChanged(QTreeWidgetItem*)));
+ connect(_entryList,
+ SIGNAL(customContextMenuRequested(QPoint)),
+ this,
+ SLOT(listContextMenuRequested(QPoint)));
+ connect(_entryList,
+ SIGNAL(itemChanged(QTreeWidgetItem*,int)),
+ this,
+ SLOT(listItemChanged(QTreeWidgetItem*,int)));
+
+ connect(_passwordValue, SIGNAL(textChanged()),
+ this, SLOT(entryEditted()));
+ connect(_mapEditor, SIGNAL(dirty()),
+ this, SLOT(entryEditted()));
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalleteditor.h
^
|
@@ -30,106 +30,105 @@
#include <QLabel>
class KActionCollection;
-class QMenu;
+class KMenu;
class QTreeWidgetItem;
class QCheckBox;
class KWalletEntryList;
class KWMapEditor;
+class KAction;
class KTreeWidgetSearchLine;
-class KWalletEditor : public QWidget, public Ui::WalletWidget
-{
- Q_OBJECT
-
-public:
- KWalletEditor(QWidget *parent, const char *name = 0);
- virtual ~KWalletEditor();
-
- void setWallet(KWallet::Wallet *wallet, bool isPath = false);
- bool isOpen() const
- {
- return _w != 0L;
- }
- void setNewWallet(bool newWallet);
+class KWalletEditor : public QWidget, public Ui::WalletWidget {
+ Q_OBJECT
+
+ public:
+ KWalletEditor(QWidget* parent, const char* name = 0);
+ virtual ~KWalletEditor();
+
+ void setWallet(KWallet::Wallet* wallet, bool isPath =false);
+ bool isOpen() const { return _w != 0L; }
+
+ void setNewWallet(bool newWallet);
protected:
- virtual void hideEvent(QHideEvent *);
- virtual void showEvent(QShowEvent *);
+ virtual void hideEvent(QHideEvent*);
+ virtual void showEvent(QShowEvent*);
-public slots:
- void walletClosed();
- void createFolder();
- void deleteFolder();
-
-private slots:
- void updateFolderList(bool checkEntries = false);
- void entrySelectionChanged(QTreeWidgetItem *item);
- void listItemChanged(QTreeWidgetItem *, int column);
- void listContextMenuRequested(const QPoint &pos);
- void updateEntries(const QString &folder);
-
- void newEntry();
- void renameEntry();
- void deleteEntry();
- void entryEditted();
- void restoreEntry();
- void saveEntry();
-
- void changePassword();
-
- void walletOpened(bool success);
- void hidePasswordContents();
- void showPasswordContents();
- void showHideMapEditorValue(bool show);
-
- void exportXML();
- void importXML();
- void importWallet();
-
- void copyPassword();
-
- void onSearchTextChanged(const QString &);
- void onAlwaysShowContents(bool);
- void onAlwaysHideContents(bool);
-
-signals:
- void enableWalletActions(bool enable);
- void enableFolderActions(bool enable);
- void enableContextFolderActions(bool enable);
-
-public:
- QString _walletName;
-
-private:
- static void createActions(KActionCollection *);
- void connectActions();
- void disconnectActions();
- KActionCollection *actionCollection();
-
- bool _nonLocal;
- KWallet::Wallet *_w;
- KWalletEntryList *_entryList;
- static RegisterCreateActionsMethod _registerCreateActionMethod;
- static QAction *_newFolderAction, *_deleteFolderAction;
- static QAction *_exportAction, *_saveAsAction, *_mergeAction, *_importAction;
- static QAction *_newEntryAction, *_renameEntryAction, *_deleteEntryAction;
- static QAction *_copyPassAction;
- QLabel *_details;
- QString _currentFolder;
- QMap<QString, QString> _currentMap; // save memory by storing
- // only the most recent map.
- KWMapEditor *_mapEditor;
- QCheckBox *_mapEditorShowHide;
- bool _newWallet;
- QMenu *_contextMenu;
- QTreeWidgetItem *_displayedItem; // used to find old item when selection just changed
- KActionCollection *_actionCollection;
- QMenu *_controlMenu;
- QMenu *_walletSubmenu;
- KTreeWidgetSearchLine *_searchLine;
- static QAction *_alwaysShowContentsAction, *_alwaysHideContentsAction;
- bool _alwaysShowContents;
+ public slots:
+ void walletClosed();
+ void createFolder();
+ void deleteFolder();
+
+ private slots:
+ void updateFolderList(bool checkEntries = false);
+ void entrySelectionChanged(QTreeWidgetItem *item);
+ void listItemChanged(QTreeWidgetItem *, int column);
+ void listContextMenuRequested(const QPoint& pos);
+ void updateEntries(const QString& folder);
+
+ void newEntry();
+ void renameEntry();
+ void deleteEntry();
+ void entryEditted();
+ void restoreEntry();
+ void saveEntry();
+
+ void changePassword();
+
+ void walletOpened(bool success);
+ void hidePasswordContents();
+ void showPasswordContents();
+ void showHideMapEditorValue(bool show);
+
+ void saveAs();
+ void exportXML();
+ void importXML();
+ void importWallet();
+
+ void copyPassword();
+
+ void onSearchTextChanged(const QString&);
+ void onAlwaysShowContents(bool);
+ void onAlwaysHideContents(bool);
+
+ signals:
+ void enableWalletActions(bool enable);
+ void enableFolderActions(bool enable);
+ void enableContextFolderActions(bool enable);
+
+ public:
+ QString _walletName;
+
+ private:
+ static void createActions(KActionCollection*);
+ void connectActions();
+ void disconnectActions();
+ KActionCollection *actionCollection();
+
+ bool _nonLocal;
+ KWallet::Wallet *_w;
+ KWalletEntryList *_entryList;
+ static RegisterCreateActionsMethod _registerCreateActionMethod;
+ static QAction *_newFolderAction, *_deleteFolderAction;
+ static QAction *_exportAction, *_saveAsAction, *_mergeAction, *_importAction;
+ static KAction *_newEntryAction, *_renameEntryAction, *_deleteEntryAction;
+ static KAction *_copyPassAction;
+ QLabel*_details;
+ QString _currentFolder;
+ QMap<QString,QString> _currentMap; // save memory by storing
+ // only the most recent map.
+ KWMapEditor *_mapEditor;
+ QCheckBox *_mapEditorShowHide;
+ bool _newWallet;
+ KMenu *_contextMenu;
+ QTreeWidgetItem *_displayedItem; // used to find old item when selection just changed
+ KActionCollection *_actionCollection;
+ KMenu *_controlMenu;
+ KMenu *_walletSubmenu;
+ KTreeWidgetSearchLine *_searchLine;
+ static QAction *_alwaysShowContentsAction, *_alwaysHideContentsAction;
+ bool _alwaysShowContents;
};
#endif
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanager.cpp
^
|
@@ -17,6 +17,7 @@
Boston, MA 02110-1301, USA.
*/
+
#include "kwalletmanager.h"
#include "kwalletmanagerwidget.h"
#include "kwalletpopup.h"
@@ -25,216 +26,221 @@
#include "kwallet_interface.h"
#include "registercreateactionmethod.h"
-#include <klocalizedstring.h>
-#include <KService/KToolInvocation>
-
-#include <qaction.h>
+#include <kaction.h>
+#include <kapplication.h>
#include <kconfig.h>
+#include <kdebug.h>
#include <kiconloader.h>
#include <kinputdialog.h>
+#include <klocale.h>
#include <kmessagebox.h>
+#include <kstandarddirs.h>
#include <kstandardaction.h>
#include <kstatusnotifieritem.h>
#include <kwallet.h>
#include <kxmlguifactory.h>
-#include <QIcon>
-#include <kactioncollection.h>
-#include <kconfiggroup.h>
-#include <KTar>
-
-#include <QDebug>
#include <QPointer>
#include <QRegExp>
+
#include <QRegExpValidator>
#include <QTimer>
-#include <QFileDialog>
-
+#include <ktoolinvocation.h>
+#include <kicon.h>
+#include <kactioncollection.h>
+#include <kconfiggroup.h>
KWalletManager::KWalletManager(QWidget *parent, const char *name, Qt::WFlags f)
: KXmlGuiWindow(parent, f)
{
RegisterCreateActionsMethod::createActions(actionCollection());
- setObjectName(QLatin1String(name));
- QDBusConnection::sessionBus().registerObject(QLatin1String("/KWalletManager"), this, QDBusConnection::ExportScriptableSlots);
- _kwalletdLaunch = false;
- _shuttingDown = false;
- m_kwalletdModule = 0;
- KConfig cfg(QLatin1String("kwalletrc")); // not sure why this setting isn't in kwalletmanagerrc...
- KConfigGroup walletConfigGroup(&cfg, "Wallet");
- if (walletConfigGroup.readEntry("Launch Manager", false)) {
- _tray = new KStatusNotifierItem(this);
- _tray->setObjectName(QLatin1String("kwalletmanager tray"));
- _tray->setCategory(KStatusNotifierItem::SystemServices);
- _tray->setStatus(KStatusNotifierItem::Passive);
- _tray->setIconByName(QLatin1String("wallet-closed"));
- _tray->setToolTip(QLatin1String("wallet-closed"), i18n("Wallet"), i18n("No wallets open."));
- //connect(_tray, SIGNAL(quitSelected()), SLOT(shuttingDown()));
- const QStringList wl = KWallet::Wallet::walletList();
- bool isOpen = false;
- for (QStringList::ConstIterator it = wl.begin(); it != wl.end(); ++it) {
- if (KWallet::Wallet::isOpen(*it)) {
- _tray->setIconByName(QLatin1String("wallet-open"));
- _tray->setToolTip(QLatin1String("wallet-open"), i18n("Wallet"), i18n("A wallet is open."));
- isOpen = true;
- break;
- }
- }
- if (!isOpen && qApp->isSessionRestored()) {
- delete _tray;
- _tray = 0;
- QTimer::singleShot(0, qApp, SLOT(quit()));
- return;
- }
- } else {
- _tray = 0;
- }
+ setObjectName(QLatin1String( name ) );
+ QDBusConnection::sessionBus().registerObject(QLatin1String( "/KWalletManager" ), this, QDBusConnection::ExportScriptableSlots);
+ KGlobal::dirs()->addResourceType("kwallet", 0, QLatin1String( "share/apps/kwallet" ));
+ _kwalletdLaunch = false;
+ _shuttingDown = false;
+ m_kwalletdModule = 0;
+ KConfig cfg( QLatin1String( "kwalletrc" )); // not sure why this setting isn't in kwalletmanagerrc...
+ KConfigGroup walletConfigGroup(&cfg, "Wallet");
+ if (walletConfigGroup.readEntry("Launch Manager", false)) {
+ _tray = new KStatusNotifierItem(this);
+ _tray->setObjectName( QLatin1String("kwalletmanager tray" ));
+ _tray->setCategory( KStatusNotifierItem::SystemServices );
+ _tray->setStatus( KStatusNotifierItem::Passive );
+ _tray->setIconByName(QLatin1String( "wallet-closed" ));
+ _tray->setToolTip( QLatin1String( "wallet-closed" ), i18n("KDE Wallet"), i18n("No wallets open."));
+ //connect(_tray, SIGNAL(quitSelected()), SLOT(shuttingDown()));
+ const QStringList wl = KWallet::Wallet::walletList();
+ bool isOpen = false;
+ for (QStringList::ConstIterator it = wl.begin(); it != wl.end(); ++it) {
+ if (KWallet::Wallet::isOpen(*it)) {
+ _tray->setIconByName(QLatin1String( "wallet-open" ));
+ _tray->setToolTip( QLatin1String( "wallet-open" ), i18n("KDE Wallet"), i18n("A wallet is open."));
+ isOpen = true;
+ break;
+ }
+ }
+ if (!isOpen && qApp->isSessionRestored()) {
+ delete _tray;
+ _tray = 0;
+ QTimer::singleShot( 0, qApp, SLOT(quit()));
+ return;
+ }
+ } else {
+ _tray = 0;
+ }
_managerWidget = new KWalletManagerWidget(this);
- updateWalletDisplay();
- setCentralWidget(_managerWidget);
- setAutoSaveSettings(QLatin1String("MainWindow"), true);
- QFontMetrics fm = fontMetrics();
- _managerWidget->setMinimumSize(16*fm.height(), 18*fm.height());
-
- m_kwalletdModule = new org::kde::KWallet(QLatin1String("org.kde.kwalletd5"), QLatin1String("/modules/kwalletd5"), QDBusConnection::sessionBus());
- connect(QDBusConnection::sessionBus().interface(), SIGNAL(serviceOwnerChanged(QString,QString,QString)), this,
- SLOT(possiblyRescan(QString,QString,QString)));
- connect(m_kwalletdModule, &OrgKdeKWalletInterface::allWalletsClosed, this, &KWalletManager::allWalletsClosed);
- connect(m_kwalletdModule, SIGNAL(walletClosed(QString)),
- this, SLOT(updateWalletDisplay()));
-
- connect(m_kwalletdModule, &OrgKdeKWalletInterface::walletOpened, this, &KWalletManager::aWalletWasOpened);
- connect(m_kwalletdModule, &OrgKdeKWalletInterface::walletDeleted, this, &KWalletManager::updateWalletDisplay);
- connect(m_kwalletdModule, &OrgKdeKWalletInterface::walletListDirty, this, &KWalletManager::updateWalletDisplay);
- connect(m_kwalletdModule, &OrgKdeKWalletInterface::walletCreated, this, &KWalletManager::walletCreated);
- // FIXME: slight race - a wallet can open, then we get launched, but the
- // wallet closes before we are done opening. We will then stay
- // open. Must check that a wallet is still open here.
-
- QAction *action = actionCollection()->addAction(QLatin1String("wallet_create"));
- action->setText(i18n("&New Wallet..."));
- action->setIcon(QIcon::fromTheme(QLatin1String("kwalletmanager")));
- connect(action, SIGNAL(triggered()), SLOT(createWallet()));
+ updateWalletDisplay();
+ setCentralWidget(_managerWidget);
+ setAutoSaveSettings(QLatin1String("MainWindow"), true);
+// _managerWidget->setMinimumSize(320, 200);
+
+ m_kwalletdModule = new org::kde::KWallet(QLatin1String( "org.kde.kwalletd" ), QLatin1String( "/modules/kwalletd" ), QDBusConnection::sessionBus());
+ connect(QDBusConnection::sessionBus().interface(),
+ SIGNAL(serviceOwnerChanged(QString,QString,QString)),
+ this,
+ SLOT(possiblyRescan(QString,QString,QString)));
+ connect( m_kwalletdModule, SIGNAL(allWalletsClosed()),
+ this, SLOT(allWalletsClosed()) );
+ connect( m_kwalletdModule, SIGNAL(walletClosed(QString)),
+ this, SLOT(updateWalletDisplay()) );
+ connect( m_kwalletdModule, SIGNAL(walletOpened(QString)),
+ this, SLOT(aWalletWasOpened()) );
+ connect( m_kwalletdModule, SIGNAL(walletDeleted(QString)),
+ this, SLOT(updateWalletDisplay()) );
+ connect( m_kwalletdModule, SIGNAL(walletListDirty()),
+ this, SLOT(updateWalletDisplay()) );
+ connect( m_kwalletdModule, SIGNAL(walletCreated(QString)), this, SLOT(walletCreated(QString)));
+ connect( m_kwalletdModule, SIGNAL(walletDeleted(QString)), this, SLOT(walletDeleted(QString)));
+ // FIXME: slight race - a wallet can open, then we get launched, but the
+ // wallet closes before we are done opening. We will then stay
+ // open. Must check that a wallet is still open here.
+
+ QAction *action = actionCollection()->addAction(QLatin1String( "wallet_create" ));
+ action->setText(i18n("&New Wallet..."));
+ action->setIcon(KIcon( QLatin1String( "kwalletmanager" )));
+ connect(action, SIGNAL(triggered()), SLOT(createWallet()));
- action = actionCollection()->addAction(QLatin1String("wallet_open"));
+ action = actionCollection()->addAction(QLatin1String( "wallet_open") );
action->setText(i18n("Open Wallet..."));
connect(action, SIGNAL(triggered()), this, SLOT(openWallet()));
+
+ _walletDeleteAction = actionCollection()->addAction(QLatin1String( "wallet_delete" ));
+ _walletDeleteAction->setText(i18n("&Delete Wallet..."));
+ _walletDeleteAction->setIcon(KIcon( QLatin1String( "trash-empty" )));
+ connect(_walletDeleteAction, SIGNAL(triggered()), SLOT(deleteWallet()));
+
+ QAction *act = actionCollection()->addAction(QLatin1String( "wallet_settings" ));
+ act->setText(i18n("Configure &Wallet..."));
+ act->setIcon(KIcon( QLatin1String( "configure" )));
+
+ connect(act, SIGNAL(triggered()), SLOT(setupWallet()));
+ if (_tray) {
+ _tray->contextMenu()->addAction( act );
+ }
+ act = actionCollection()->addAction(QLatin1String( "close_all_wallets" ));
+ act->setText(i18n("Close &All Wallets"));
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanager.h
^
|
@@ -27,59 +27,56 @@
class KStatusNotifierItem;
class QListWidgetItem;
class OrgKdeKWalletInterface;
-class QAction;
-class KWalletManager : public KXmlGuiWindow
-{
- Q_OBJECT
-
- Q_CLASSINFO("D-Bus Interface", "org.kde.kwallet.kwalletmanager")
-
-public:
- explicit KWalletManager(QWidget *parent = 0, const char *name = 0, Qt::WFlags f = 0);
- virtual ~KWalletManager();
-
- void kwalletdLaunch();
-
-public slots:
- void createWallet();
- void deleteWallet();
- void closeWallet(const QString &walletName);
- void changeWalletPassword(const QString &walletName);
- void openWallet(const QString &walletName);
- void openWalletFile(const QString &path);
-// void openWallet(QListWidgetItem *item);
- void contextMenu(const QPoint &pos);
- void walletCreated(const QString &walletName);
-
-protected:
- virtual bool queryClose();
-
-private:
-public Q_SLOTS: //dbus
- Q_SCRIPTABLE void allWalletsClosed();
- Q_SCRIPTABLE void updateWalletDisplay();
- Q_SCRIPTABLE void aWalletWasOpened();
-
-private slots:
- void shuttingDown();
- void possiblyQuit();
- void editorClosed(KXmlGuiWindow *e);
- void possiblyRescan(const QString &app, const QString &, const QString &);
- void setupWallet();
- void openWallet();
- void closeAllWallets();
- void exportWallets();
- void importWallets();
-
-private:
- KStatusNotifierItem *_tray;
- bool _shuttingDown;
- KWalletManagerWidget *_managerWidget;
- OrgKdeKWalletInterface *m_kwalletdModule;
- QList<KXmlGuiWindow *> _windows;
- bool _kwalletdLaunch;
- QAction *_walletsExportAction = nullptr;
+class KWalletManager : public KXmlGuiWindow {
+ Q_OBJECT
+
+ Q_CLASSINFO("D-Bus Interface", "org.kde.kwallet.kwalletmanager")
+
+ public:
+ explicit KWalletManager(QWidget *parent = 0, const char* name = 0, Qt::WFlags f = 0);
+ virtual ~KWalletManager();
+
+ void kwalletdLaunch();
+
+ public slots:
+ void createWallet();
+ void deleteWallet();
+ void closeWallet(const QString& walletName);
+ void changeWalletPassword(const QString& walletName);
+ void openWallet(const QString& walletName);
+ void openWalletFile(const QString& path);
+// void openWallet(QListWidgetItem *item);
+ void contextMenu(const QPoint& pos);
+ void walletCreated(const QString& walletName);
+
+ protected:
+ virtual bool queryClose();
+
+ private:
+ public Q_SLOTS: //dbus
+ Q_SCRIPTABLE void allWalletsClosed();
+ Q_SCRIPTABLE void updateWalletDisplay();
+ Q_SCRIPTABLE void aWalletWasOpened();
+
+ private slots:
+ void shuttingDown();
+ void possiblyQuit();
+ void editorClosed(KXmlGuiWindow* e);
+ void possiblyRescan(const QString& app, const QString&, const QString&);
+ void setupWallet();
+ void openWallet();
+ void closeAllWallets();
+ void walletDeleted(const QString& walletName);
+
+ private:
+ KStatusNotifierItem *_tray;
+ bool _shuttingDown;
+ KWalletManagerWidget *_managerWidget;
+ OrgKdeKWalletInterface *m_kwalletdModule;
+ QList<KXmlGuiWindow*> _windows;
+ bool _kwalletdLaunch;
+ QAction *_walletDeleteAction;
};
#endif
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanager.rc
^
|
@@ -4,11 +4,11 @@
<Menu name="file"><text>&File</text>
<Action name="wallet_create"/>
<Separator/>
+ <Action name="file_save_as"/>
+ <Separator/>
<Action name="wallet_merge"/>
<Action name="wallet_import"/>
<Action name="wallet_export"/>
- <Action name="wallet_import_encrypted"/>
- <Action name="wallet_export_encrypted"/>
<Separator/>
<Action name="close_all_wallets"/>
<Separator/>
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanagerwidget.cpp
^
|
@@ -23,19 +23,20 @@
#include "kwallet_interface.h"
#include <kwallet.h>
-#include <qurl.h>
+#include <kurl.h>
+#include <kglobal.h>
#include <kmessagebox.h>
#include <klocalizedstring.h>
#include <kio/netaccess.h>
#include <QDragEnterEvent>
-KWalletManagerWidget::KWalletManagerWidget(QWidget *parent, Qt::WindowFlags flags):
+KWalletManagerWidget::KWalletManagerWidget(QWidget* parent, Qt::WindowFlags flags):
KPageWidget(parent)
{
setFaceType(Auto);
setAcceptDrops(true);
- connect(this, &KWalletManagerWidget::currentPageChanged, this, &KWalletManagerWidget::onCurrentPageChanged);
+ connect(this, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)), SLOT(onCurrentPageChanged(KPageWidgetItem*,KPageWidgetItem*)));
}
KWalletManagerWidget::~KWalletManagerWidget()
@@ -43,7 +44,7 @@
}
-void KWalletManagerWidget::onCurrentPageChanged(KPageWidgetItem *current, KPageWidgetItem *before)
+void KWalletManagerWidget::onCurrentPageChanged(KPageWidgetItem* current, KPageWidgetItem* before)
{
}
@@ -52,30 +53,30 @@
{
// NOTE: this method is called upon several kwalletd events
static bool alreadyUpdating = false;
- if (alreadyUpdating) {
+ if (alreadyUpdating)
return;
- }
alreadyUpdating = true;
// find out pages corresponding to deleted wallets
const QStringList wl = KWallet::Wallet::walletList();
WalletPagesHash::iterator p = _walletPages.begin();
- while (p != _walletPages.end()) {
- if (!wl.contains(p.key())) {
+ while ( p != _walletPages.end() ) {
+ if ( !wl.contains(p.key()) ) {
// remove the page corresponding to the missing wallet
removePage(p.value());
p = _walletPages.erase(p);
- } else {
+ }
+ else {
++p;
}
}
// add new wallets
for (QStringList::const_iterator i = wl.begin(); i != wl.end(); ++i) {
- const QString &name = *i;
- if (!_walletPages.contains(name)) {
+ const QString& name = *i;
+ if ( !_walletPages.contains(name) ) {
KWalletManagerWidgetItem *wi = new KWalletManagerWidgetItem(this, name);
- addPage(wi);
+ addPage( wi );
_walletPages.insert(*i, wi);
}
}
@@ -83,29 +84,30 @@
// update existing wallets display, e.g. icon
WalletPagesHash::const_iterator cp = _walletPages.constBegin();
WalletPagesHash::const_iterator cend = _walletPages.constEnd();
- for (; cp != cend; cp++) {
- cp.value()->updateWalletDisplay();
+ for ( ; cp != cend; cp++ ) {
+ cp.value()->updateWalletDisplay();
}
if (!selectWallet.isEmpty()) {
setCurrentPage(_walletPages[selectWallet]);
}
+ setVisible(!KWallet::Wallet::walletList().isEmpty());
alreadyUpdating = false;
}
-bool KWalletManagerWidget::hasWallet(const QString &name) const
+bool KWalletManagerWidget::hasWallet(const QString& name) const
{
return _walletPages.contains(name);
}
-bool KWalletManagerWidget::openWalletFile(const QString &path)
+bool KWalletManagerWidget::openWalletFile(const QString& path)
{
Q_ASSERT(0);
// TODO: implement this method: add a new tab with an editor centered on a file
return false;
}
-bool KWalletManagerWidget::openWallet(const QString &name)
+bool KWalletManagerWidget::openWallet(const QString& name)
{
bool result = false;
if (_walletPages.contains(name)) {
@@ -116,21 +118,25 @@
return result;
}
-const QString &KWalletManagerWidget::activeWalletName() const
+const QString KWalletManagerWidget::activeWalletName() const
{
- return qobject_cast<KWalletManagerWidgetItem *>(currentPage())->walletName();
+ if (currentPage()) {
+ return qobject_cast<KWalletManagerWidgetItem*>(currentPage())->walletName();
+ } else {
+ return QString();
+ }
}
-void KWalletManagerWidget::dragEnterEvent(QDragEnterEvent *e)
+void KWalletManagerWidget::dragEnterEvent(QDragEnterEvent* e)
{
- if (e->mimeData()->hasFormat("application/x-kwallet-wallet")) {
+ if (e->provides("application/x-kwallet-wallet")) {
e->accept();
} else {
e->ignore();
}
}
-void KWalletManagerWidget::dragMoveEvent(QDragMoveEvent *e)
+void KWalletManagerWidget::dragMoveEvent(QDragMoveEvent* e)
{
qDebug("KWalletManagerWidget::dragMoveEvent");
// KUrl dummy;
@@ -142,7 +148,7 @@
// }
}
-void KWalletManagerWidget::dropEvent(QDropEvent *e)
+void KWalletManagerWidget::dropEvent(QDropEvent* e)
{
qDebug("KWalletManagerWidget::dropEvent");
// KUrl u;
@@ -151,7 +157,7 @@
// e->ignore();
// return;
// }
-//
+//
// if (!item) {
// // Not dropped over an item thus it is a wallet
// const QString dest = KGlobal::dirs()->saveLocation("kwallet") + u.fileName();
@@ -160,7 +166,7 @@
// e->ignore();
// return;
// }
-//
+//
// // FIXME: verify that it is a real wallet file first
// KIO::NetAccess::file_copy(u, KUrl(dest));
// e->accept();
@@ -174,19 +180,19 @@
// }
}
-bool KWalletManagerWidget::shouldIgnoreDropEvent(const QDropEvent *e, QUrl *u) const
+bool KWalletManagerWidget::shouldIgnoreDropEvent(const QDropEvent* e, KUrl* u) const
{
return false;
// if (e->source() == viewport()) {
// return true;
// }
-//
+//
// if (!e->provides("application/x-kwallet-folder") &&
// !e->provides("application/x-kwallet-wallet") &&
// !e->provides("text/uri-list")) {
// return true;
// }
-//
+//
// // Over wallets folders, over nothing wallets
// *item = itemAt(e->pos());
// const QByteArray edata = e->encodedData(item ? "application/x-kwallet-folder" : "application/x-kwallet-wallet");
@@ -194,8 +200,8 @@
// if (*u == KUrl()) {
// *u = decodeUrl(e->encodedData("text/uri-list"));
// }
-//
+//
// return *u == KUrl();
}
-
+#include "kwalletmanagerwidget.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanagerwidget.h
^
|
@@ -22,25 +22,22 @@
#include <kpagewidget.h>
-class QUrl;
+class KUrl;
class QDropEvent;
class KWalletManagerWidgetItem;
-class QDragEnterEvent;
-class QDragMoveEvent;
-class KWalletManagerWidget : public KPageWidget
-{
+class KWalletManagerWidget : public KPageWidget {
Q_OBJECT
public:
- explicit KWalletManagerWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
+ explicit KWalletManagerWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
virtual ~KWalletManagerWidget();
void updateWalletDisplay(QString selectWallet = QString());
- bool hasWallet(const QString &) const;
- bool openWalletFile(const QString &path);
- bool openWallet(const QString &name);
+ bool hasWallet(const QString&) const;
+ bool openWalletFile(const QString& path);
+ bool openWallet(const QString& name);
- const QString &activeWalletName() const;
+ const QString activeWalletName() const;
protected:
virtual void dragEnterEvent(QDragEnterEvent *e);
@@ -48,12 +45,12 @@
virtual void dropEvent(QDropEvent *e);
private Q_SLOTS:
- void onCurrentPageChanged(KPageWidgetItem *, KPageWidgetItem *);
+ void onCurrentPageChanged(KPageWidgetItem*,KPageWidgetItem*);
private:
- bool shouldIgnoreDropEvent(const QDropEvent *e, QUrl *u) const;
+ bool shouldIgnoreDropEvent(const QDropEvent *e, KUrl *u) const;
- typedef QHash<QString, KWalletManagerWidgetItem *> WalletPagesHash;
+ typedef QHash<QString, KWalletManagerWidgetItem*> WalletPagesHash;
WalletPagesHash _walletPages;
};
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanagerwidgetitem.cpp
^
|
@@ -22,10 +22,10 @@
#include "walletcontrolwidget.h"
#include <kwallet.h>
-#include <QIcon>
+#include <kicon.h>
-KWalletManagerWidgetItem::KWalletManagerWidgetItem(QWidget *widgetParent, const QString &walletName):
- KPageWidgetItem(_controlWidget = new WalletControlWidget(widgetParent, walletName), walletName),
+KWalletManagerWidgetItem::KWalletManagerWidgetItem(QWidget* widgetParent, const QString& walletName):
+ KPageWidgetItem( _controlWidget = new WalletControlWidget(widgetParent, walletName), walletName ),
_walletName(walletName)
{
updateWalletDisplay();
@@ -34,9 +34,9 @@
void KWalletManagerWidgetItem::updateWalletDisplay()
{
if (KWallet::Wallet::isOpen(_walletName)) {
- setIcon(QIcon::fromTheme(QLatin1String("wallet-open")));
+ setIcon( KIcon( QLatin1String("wallet-open") ) );
} else {
- setIcon(QIcon::fromTheme(QLatin1String("wallet-closed")));
+ setIcon( KIcon( QLatin1String("wallet-closed") ) );
}
_controlWidget->updateWalletDisplay();
}
@@ -46,4 +46,4 @@
return _controlWidget->openWallet();
}
-
+#include "kwalletmanagerwidgetitem.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwalletmanagerwidgetitem.h
^
|
@@ -23,17 +23,13 @@
#include <kpagewidgetmodel.h>
class WalletControlWidget;
-class KWalletManagerWidgetItem : public KPageWidgetItem
-{
+class KWalletManagerWidgetItem : public KPageWidgetItem {
Q_OBJECT
public:
- KWalletManagerWidgetItem(QWidget *widgetParent, const QString &walletName);
+ KWalletManagerWidgetItem(QWidget* widgetParent, const QString& walletName);
void updateWalletDisplay();
- const QString &walletName() const
- {
- return _walletName;
- }
+ const QString& walletName() const { return _walletName; }
bool openWallet();
private:
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwmapeditor.cpp
^
|
@@ -18,229 +18,228 @@
*/
#include "kwmapeditor.h"
-
-#include <qaction.h>
+#include <kaction.h>
#include <kactioncollection.h>
-#include <QIcon>
-#include <klocalizedstring.h>
-#include <QMenu>
+#include <kdebug.h>
+#include <klocale.h>
+#include <kmenu.h>
#include <kstandardaction.h>
#include <kwindowsystem.h>
-#include <ktextedit.h>
-
+#include <QPointer>
#include <QApplication>
#include <QClipboard>
-#include <QDebug>
-#include <QItemDelegate>
+#include <QToolButton>
+#include <ktextedit.h>
#include <QFocusEvent>
#include <QKeyEvent>
-#include <QPointer>
-#include <QToolButton>
+#include <QItemDelegate>
-class InlineEditor : public KTextEdit
-{
-public:
- InlineEditor(KWMapEditor *p) : KTextEdit(), _p(p)
- {
- setAttribute(Qt::WA_DeleteOnClose);
- setWindowFlags(Qt::Widget | Qt::FramelessWindowHint);
- setCheckSpellingEnabled(false);
- connect(p, SIGNAL(destroyed()), SLOT(close()));
- }
-
-protected:
- virtual void focusOutEvent(QFocusEvent *e)
- {
- if (e->reason() == Qt::PopupFocusReason) {
- // TODO: It seems we only get here if we're disturbed
- // by our own popup. this needs some clearance though.
- return;
- }
-
- close();
- }
- virtual void keyPressEvent(QKeyEvent *e)
- {
- if (e->key() == Qt::Key_Escape) {
- e->accept();
- close();
- } else {
- e->ignore();
- KTextEdit::keyPressEvent(e);
- }
- }
- virtual void contextMenuEvent(QContextMenuEvent *event)
- {
- QMenu *menu = createStandardContextMenu();
- popup = menu;
- popup->exec(event->globalPos());
- delete popup;
- }
- QPointer<KWMapEditor> _p;
- QPointer<QMenu> popup;
+class InlineEditor : public KTextEdit {
+ public:
+ InlineEditor(KWMapEditor *p) : KTextEdit(), _p(p) {
+ setAttribute(Qt::WA_DeleteOnClose);
+ setWindowFlags(Qt::Widget | Qt::FramelessWindowHint);
+ setCheckSpellingEnabled(false);
+ connect(p, SIGNAL(destroyed()), SLOT(close()));
+ }
+
+ protected:
+ virtual void focusOutEvent(QFocusEvent *e) {
+ if (e->reason() == Qt::PopupFocusReason) {
+ // TODO: It seems we only get here if we're disturbed
+ // by our own popup. this needs some clearance though.
+ return;
+ }
+
+ close();
+ }
+ virtual void keyPressEvent(QKeyEvent *e) {
+ if (e->key() == Qt::Key_Escape) {
+ e->accept();
+ close();
+ } else {
+ e->ignore();
+ KTextEdit::keyPressEvent(e);
+ }
+ }
+ virtual void contextMenuEvent( QContextMenuEvent *event )
+ {
+ QMenu *menu = createStandardContextMenu();
+ popup = menu;
+ popup->exec( event->globalPos() );
+ delete popup;
+ }
+ QPointer<KWMapEditor> _p;
+ QPointer<QMenu> popup;
};
class KWMapEditorDelegate : public QItemDelegate
{
-public:
- KWMapEditorDelegate(KWMapEditor *parent) : QItemDelegate(parent)
- {
- }
-
- QWidget *createEditor(QWidget *parentWidget, const QStyleOptionViewItem &option, const QModelIndex &index) const
- {
- if (index.column() != 2) {
- return QItemDelegate::createEditor(parentWidget, option, index);
- }
-
- KWMapEditor *mapEditor = static_cast<KWMapEditor *>(parent());
- return new InlineEditor(mapEditor);
- }
-
- void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
- {
- if (dynamic_cast<InlineEditor *>(editor)) {
- KWMapEditor *mapEditor = static_cast<KWMapEditor *>(parent());
- const QRect geo = mapEditor->visualRect(index);
- editor->move(mapEditor->mapToGlobal(geo.topLeft()));
- editor->resize(geo.width() * 2, geo.height() * 3);
- } else {
- QItemDelegate::updateEditorGeometry(editor, option, index);
- }
- }
-
- void setEditorData(QWidget *editor, const QModelIndex &index) const
- {
- InlineEditor *e = dynamic_cast<InlineEditor *>(editor);
- if (e) {
- KWMapEditor *mapEditor = static_cast<KWMapEditor *>(parent());
- e->setText(mapEditor->item(index.row(), index.column())->text());
- } else {
- QItemDelegate::setEditorData(editor, index);
- }
- }
-
- void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
- {
- InlineEditor *e = dynamic_cast<InlineEditor *>(editor);
- if (e) {
- KWMapEditor *mapEditor = static_cast<KWMapEditor *>(parent());
- mapEditor->item(index.row(), index.column())->setText(e->toPlainText());
- } else {
- QItemDelegate::setModelData(editor, model, index);
- }
- }
+ public:
+ KWMapEditorDelegate(KWMapEditor *parent) : QItemDelegate(parent)
+ {
+ }
+
+ QWidget *createEditor(QWidget *parentWidget, const QStyleOptionViewItem &option, const QModelIndex &index) const
+ {
+ if (index.column() != 2) {
+ return QItemDelegate::createEditor(parentWidget, option, index);
+ }
+
+ KWMapEditor *mapEditor = static_cast<KWMapEditor*>(parent());
+ return new InlineEditor(mapEditor);
+ }
+
+ void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
+ {
+ if (dynamic_cast<InlineEditor*>(editor))
+ {
+ KWMapEditor *mapEditor = static_cast<KWMapEditor*>(parent());
+ const QRect geo = mapEditor->visualRect(index);
+ editor->move(mapEditor->mapToGlobal(geo.topLeft()));
+ editor->resize(geo.width() * 2, geo.height() * 3);
+ }
+ else
+ {
+ QItemDelegate::updateEditorGeometry(editor, option, index);
+ }
+ }
+
+ void setEditorData(QWidget *editor, const QModelIndex &index) const
+ {
+ InlineEditor *e = dynamic_cast<InlineEditor*>(editor);
+ if (e)
+ {
+ KWMapEditor *mapEditor = static_cast<KWMapEditor*>(parent());
+ e->setText(mapEditor->item(index.row(), index.column())->text());
+ }
+ else
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/kwmapeditor.h
^
|
@@ -24,35 +24,35 @@
#include <QTableWidget>
+class KAction;
class KActionCollection;
-class KWMapEditor : public QTableWidget
-{
- Q_OBJECT
-
-public:
- KWMapEditor(QMap<QString, QString> &map, QWidget *parent = 0);
- virtual ~KWMapEditor();
-
-public slots:
- void reload();
- void saveMap();
- void erase();
- void contextMenu(const QPoint &pos);
- void addEntry();
- void emitDirty();
-
-private slots:
- void copy();
-
-signals:
- void dirty();
-
-private:
- QMap<QString, QString> &_map;
- int _contextRow;
- KActionCollection *_ac;
- QAction *_copyAct;
+class KWMapEditor : public QTableWidget {
+ Q_OBJECT
+
+ public:
+ KWMapEditor(QMap<QString,QString>& map, QWidget *parent = 0);
+ virtual ~KWMapEditor();
+
+ public slots:
+ void reload();
+ void saveMap();
+ void erase();
+ void contextMenu(const QPoint& pos);
+ void addEntry();
+ void emitDirty();
+
+ private slots:
+ void copy();
+
+ signals:
+ void dirty();
+
+ private:
+ QMap<QString,QString>& _map;
+ int _contextRow;
+ KActionCollection *_ac;
+ KAction *_copyAct;
};
#endif
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/main.cpp
^
|
@@ -17,87 +17,82 @@
Boston, MA 02110-1301, USA.
*/
-#include "kwalletmanager.h"
-
-#include <KDBusAddons/kdbusservice.h>
-#include <klocalizedstring.h>
+#include <kaboutdata.h>
+#include <kcmdlineargs.h>
+#include <kdebug.h>
+#include <kglobal.h>
+#include <klocale.h>
+#include <kmimetype.h>
+#include <kstandarddirs.h>
+#include <kuniqueapplication.h>
-#include <QApplication>
-#include <QCommandLineParser>
-#include <QEventLoopLocker>
#include <QFile>
#include <QFileInfo>
-#include <QMimeDatabase>
-#include <QMimeType>
-#include <QStandardPaths>
-
-class MyApp : public QApplication
-{
-public:
- MyApp(int &argc, char **argv) : QApplication(argc, argv)
- {
- }
-
- virtual ~MyApp() {}
-
- virtual int newInstance()
- {
- return 0;
- }
-private:
- QEventLoopLocker m_locker;
-};
+#include "kwalletmanager.h"
-int main(int argc, char **argv)
-{
- QCoreApplication::setApplicationName("kwalletmanager5");
- QCoreApplication::setApplicationVersion("3.0");
- QCoreApplication::setOrganizationName("KDE");
- QCoreApplication::setOrganizationDomain("kde.org");
- QApplication::setApplicationDisplayName(i18n("Wallet Manager"));
-
- KDBusService dbssvc(KDBusService::Unique);
-
- QCommandLineParser parser;
- parser.addHelpOption();
- parser.addVersionOption();
-
- parser.addOption(QCommandLineOption("show", i18n("Show window on startup")));
- parser.addOption(QCommandLineOption("kwalletd", i18n("For use by kwalletd only")));
- parser.addOption(QCommandLineOption("name", i18n("A wallet name")));
-
-
- MyApp a(argc, argv);
- parser.process(a);
- KWalletManager wm;
- wm.setCaption(i18n("Wallet Manager"));
-
- if (parser.isSet("show")) {
- wm.show();
- }
-
- if (parser.isSet("kwalletd")) {
- wm.kwalletdLaunch();
- }
-
- const QStringList arguments = a.arguments();
- for (int i = 1; i < arguments.count(); ++i) {
- QString fn = QFileInfo(arguments.at(i)).absoluteFilePath();
- if (QFile::exists(fn))
- {
- QMimeDatabase mimeDb;
- QMimeType mt = mimeDb.mimeTypeForFile(fn, QMimeDatabase::MatchContent);
-
- if (mt.isValid() &&
- mt.inherits(QLatin1String("application/x-kwallet"))) {
- wm.openWalletFile(fn);
- }
- } else {
- wm.openWallet(arguments.at(i));
- }
- }
- return a.exec();
+class MyApp : public KUniqueApplication {
+ public:
+ MyApp() : KUniqueApplication() { KGlobal::ref(); }
+ virtual ~MyApp() {}
+
+ virtual int newInstance() { return 0; }
+};
+
+int main(int argc, char **argv) {
+ KAboutData about("kwalletmanager", 0, ki18n("KDE Wallet Manager"), "2.0",
+ ki18n("KDE Wallet Management Tool"),
+ KAboutData::License_GPL,
+ ki18n("(c) 2003,2004 George Staikos"), KLocalizedString(),
+ "http://utils.kde.org/projects/kwalletmanager");
+
+ about.addAuthor(ki18n("Valentin Rusu"), ki18n("Maintainer, user interface refactoring"), "kde@rusu.info");
+ about.addAuthor(ki18n("George Staikos"), ki18n("Original author and former maintainer"), "staikos@kde.org");
+ about.addAuthor(ki18n("Michael Leupold"), ki18n("Developer and former maintainer"), "lemma@confuego.org");
+ about.addAuthor(ki18n("Isaac Clerencia"), ki18n("Developer"), "isaac@warp.es");
+
+ KCmdLineArgs::init(argc, argv, &about);
+
+ KCmdLineOptions options;
+ options.add("show", ki18n("Show window on startup"));
+ options.add("kwalletd", ki18n("For use by kwalletd only"));
+ options.add("+name", ki18n("A wallet name"));
+ KCmdLineArgs::addCmdLineOptions(options);
+
+ if (!KUniqueApplication::start()) {
+ return 0;
+ }
+
+ MyApp a;
+
+ KWalletManager wm;
+ wm.setCaption(i18n("KDE Wallet Manager"));
+
+ KGlobal::dirs()->addResourceType("kwallet", 0, QLatin1String( "share/apps/kwallet" ));
+
+ KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+
+ if (args->isSet("show")) {
+ wm.show();
+ }
+
+ if (args->isSet("kwalletd")) {
+ wm.kwalletdLaunch();
+ }
+
+ for (int i = 0; i < args->count(); ++i) {
+ QString fn = QFileInfo(args->arg(i)).absoluteFilePath();
+ KMimeType::Ptr ptr;
+ if (QFile::exists(fn) &&
+ (ptr = KMimeType::findByFileContent(fn)) &&
+ ptr->is(QLatin1String( "application/x-kwallet" ))) {
+ wm.openWalletFile(fn);
+ } else {
+ wm.openWallet(args->arg(i));
+ }
+ }
+ args->clear();
+ return a.exec();
}
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/registercreateactionmethod.cpp
^
|
@@ -17,20 +17,23 @@
Boston, MA 02110-1301, USA.
*/
+
#include "registercreateactionmethod.h"
-Q_GLOBAL_STATIC(std::list<RegisterCreateActionsMethod::CreateActionsMethod>, createActionMethodList)
+#include <kglobal.h>
+
+K_GLOBAL_STATIC(std::list<RegisterCreateActionsMethod::CreateActionsMethod>, createActionMethodList)
RegisterCreateActionsMethod::RegisterCreateActionsMethod(RegisterCreateActionsMethod::CreateActionsMethod method)
{
createActionMethodList->push_back(method);
}
-void RegisterCreateActionsMethod::createActions(KActionCollection *actionCollection)
+void RegisterCreateActionsMethod::createActions(KActionCollection* actionCollection)
{
std::list<CreateActionsMethod>::const_iterator it = createActionMethodList->begin();
std::list<CreateActionsMethod>::const_iterator end = createActionMethodList->end();
- for (; it != end; it++) {
+ for ( ; it != end; it++ ) {
(*it)(actionCollection);
}
}
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/registercreateactionmethod.h
^
|
@@ -37,10 +37,9 @@
* To avoid that, the main window will call createActions of this class that will
* in turn delegate to the registered CreateActionsMethod's registered here.
*/
-class RegisterCreateActionsMethod
-{
+class RegisterCreateActionsMethod {
public:
- typedef void (*CreateActionsMethod)(KActionCollection *);
+ typedef void (*CreateActionsMethod)(KActionCollection*);
RegisterCreateActionsMethod(CreateActionsMethod method);
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/revokeauthbutton.cpp
^
|
@@ -20,14 +20,14 @@
#include "revokeauthbutton.h"
#include <klocalizedstring.h>
-RevokeAuthButton::RevokeAuthButton(const QString &appName, KWallet::Wallet *wallet):
+RevokeAuthButton::RevokeAuthButton(const QString& appName, KWallet::Wallet* wallet):
QPushButton(),
_appName(appName),
_wallet(wallet)
{
setObjectName(QString("Revoke_%1").arg(appName));
setText(i18n("Revoke Authorization"));
- connect(this, &RevokeAuthButton::clicked, this, &RevokeAuthButton::onClicked);
+ connect(this, SIGNAL(clicked(bool)), this, SLOT(onClicked()));
}
void RevokeAuthButton::onClicked()
@@ -35,4 +35,4 @@
emit appRevoked(_appName);
}
-
+#include "revokeauthbutton.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/revokeauthbutton.h
^
|
@@ -22,8 +22,7 @@
#include <QPushButton>
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
@@ -31,7 +30,7 @@
{
Q_OBJECT
public:
- RevokeAuthButton(const QString &appName, KWallet::Wallet *wallet);
+ RevokeAuthButton(const QString& appName, KWallet::Wallet *wallet);
private Q_SLOTS:
void onClicked();
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/walletcontrolwidget.cpp
^
|
@@ -21,20 +21,18 @@
#include "kwalleteditor.h"
#include "applicationsmanager.h"
-#include <klocalizedstring.h>
-#include <kmessagebox.h>
-#include <qmenu.h>
-#include <QTabWidget>
-#include <kwallet.h>
-
-#include <QDebug>
-#include <QEvent>
-#include <QFrame>
#include <QPropertyAnimation>
#include <QTimer>
+#include <QFrame>
#include <QToolButton>
+#include <qevent.h>
+#include <kwallet.h>
+#include <kmessagebox.h>
+#include <kmenu.h>
+#include <KTabWidget>
+#include <kdebug.h>
-WalletControlWidget::WalletControlWidget(QWidget *parent, const QString &walletName):
+WalletControlWidget::WalletControlWidget(QWidget* parent, const QString& walletName):
QWidget(parent),
_walletName(walletName),
_wallet(0),
@@ -66,13 +64,13 @@
if (0 == _wallet) {
_wallet = KWallet::Wallet::openWallet(_walletName, effectiveWinId());
if (0 == _wallet) {
- qDebug() << "Weird situation: wallet could not be opened when setting-up the widget.";
+ kDebug() << "Weird situation: wallet could not be opened when setting-up the widget.";
}
}
}
if (_wallet) {
- connect(_wallet, &KWallet::Wallet::walletClosed, this, &WalletControlWidget::onWalletClosed);
+ connect(_wallet, SIGNAL(walletClosed()), this, SLOT(onWalletClosed()));
_openClose->setText(i18n("&Close"));
if (0 == _walletEditor) {
@@ -91,13 +89,13 @@
_changePassword->setEnabled(true);
_stateLabel->setText(i18nc("the 'kdewallet' is currently open (e.g. %1 will be replaced with current wallet name)", "The '%1' wallet is currently open", _walletName));
- _tabs->setTabIcon(0, QIcon::fromTheme(QLatin1String("wallet-open")).pixmap(16));
+ _tabs->setTabIcon(0, QIcon::fromTheme( QLatin1String("wallet-open")).pixmap(16));
} else {
_openClose->setText(i18n("&Open..."));
if (_walletEditor) {
_walletEditor->setVisible(false);
- delete _walletEditor, _walletEditor = 0;
+ delete _walletEditor, _walletEditor =0;
}
if (_applicationsManager) {
@@ -106,7 +104,7 @@
}
_changePassword->setEnabled(false);
_stateLabel->setText(i18n("The wallet is currently closed"));
- _tabs->setTabIcon(0, QIcon::fromTheme(QLatin1String("wallet-closed")).pixmap(16));
+ _tabs->setTabIcon(0, QIcon::fromTheme( QLatin1String("wallet-closed")).pixmap(16));
}
}
@@ -149,7 +147,7 @@
// for ( ; i != ie; i++ ) {
// _disconnect->removeAction(*i);
// }
-//
+//
}
void WalletControlWidget::onDisconnectApplication()
@@ -166,12 +164,12 @@
KWallet::Wallet::changePassword(_walletName, effectiveWinId());
}
-void WalletControlWidget::hideEvent(QHideEvent *)
+void WalletControlWidget::hideEvent(QHideEvent* )
{
}
-void WalletControlWidget::showEvent(QShowEvent *ev)
+void WalletControlWidget::showEvent(QShowEvent* ev)
{
}
-
+#include "walletcontrolwidget.moc"
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/walletcontrolwidget.h
^
|
@@ -24,16 +24,15 @@
class KWalletEditor;
class ApplicationsManager;
-namespace KWallet
-{
+namespace KWallet {
class Wallet;
}
-class WalletControlWidget : public QWidget, public Ui::WalletControlWidget
+class WalletControlWidget : public QWidget, public Ui::WalletControlWidget
{
Q_OBJECT
public:
- WalletControlWidget(QWidget *parent, const QString &walletName);
+ WalletControlWidget(QWidget* parent, const QString& walletName);
bool openWallet();
@@ -46,14 +45,14 @@
void onChangePassword();
protected:
- virtual void hideEvent(QHideEvent *);
- virtual void showEvent(QShowEvent *);
+ virtual void hideEvent(QHideEvent*);
+ virtual void showEvent(QShowEvent*);
private:
QString _walletName;
- KWallet::Wallet *_wallet;
- KWalletEditor *_walletEditor;
- ApplicationsManager *_applicationsManager;
+ KWallet::Wallet* _wallet;
+ KWalletEditor* _walletEditor;
+ ApplicationsManager* _applicationsManager;
};
#endif // WALLETCONTROLWIDGET_H
|
[-]
[+]
|
Changed |
kwalletmanager-5.2.0.tar.xz/src/manager/walletwidget.ui
^
|
@@ -323,7 +323,7 @@
</spacer>
</item>
<item>
- <widget class="QPushButton" name="_undoChanges">
+ <widget class="KPushButton" name="_undoChanges">
<property name="enabled">
<bool>false</bool>
</property>
@@ -333,7 +333,7 @@
</widget>
</item>
<item>
- <widget class="QPushButton" name="_saveChanges">
+ <widget class="KPushButton" name="_saveChanges">
<property name="enabled">
<bool>false</bool>
</property>
@@ -352,12 +352,18 @@
</widget>
<customwidgets>
<customwidget>
+ <class>KPushButton</class>
+ <extends>QPushButton</extends>
+ <header>kpushbutton.h</header>
+ </customwidget>
+ <customwidget>
<class>KSqueezedTextLabel</class>
<extends>QLabel</extends>
<header>ksqueezedtextlabel.h</header>
</customwidget>
</customwidgets>
<includes>
+ <include location="global">kdialog.h</include>
<include location="global">kiconloader.h</include>
</includes>
<resources/>
|
[-]
[+]
|
Changed |
kwalletmanager.yaml
^
|
@@ -1,5 +1,5 @@
Name : kwalletmanager
-Version : 5.1.90
+Version : 5.2.0
Release : 1
Group : System/Base
License : GPLv2+
|