Rename KWallet to TDEWallet.

pull/1/head
Darrell Anderson 11 years ago
parent 979cc55d34
commit e9d00a46c2

@ -42,7 +42,8 @@ passwords.</para>
<keywordset> <keywordset>
<keyword>KDE</keyword> <keyword>KDE</keyword>
<keyword>Kwallet</keyword> <keyword>TDE</keyword>
<keyword>TDEWallet</keyword>
<keyword>passwords</keyword> <keyword>passwords</keyword>
<keyword>forms</keyword> <keyword>forms</keyword>
</keywordset> </keywordset>

@ -185,7 +185,7 @@ bool TDEWalletItem::acceptDrop(const TQMimeSource *mime) const {
static bool decodeEntry(TDEWallet::Wallet *_wallet, TQDataStream& ds) { static bool decodeEntry(TDEWallet::Wallet *_wallet, TQDataStream& ds) {
TQ_UINT32 magic; TQ_UINT32 magic;
ds >> magic; ds >> magic;
if (magic != KWALLETENTRYMAGIC) { if (magic != TDEWALLETENTRYMAGIC) {
kdDebug() << "bad magic" << endl; kdDebug() << "bad magic" << endl;
return false; return false;
} }
@ -210,7 +210,7 @@ static bool decodeEntry(TDEWallet::Wallet *_wallet, TQDataStream& ds) {
static bool decodeFolder(TDEWallet::Wallet *_wallet, TQDataStream& ds) { static bool decodeFolder(TDEWallet::Wallet *_wallet, TQDataStream& ds) {
TQ_UINT32 magic; TQ_UINT32 magic;
ds >> magic; ds >> magic;
if (magic != KWALLETFOLDERMAGIC) { if (magic != TDEWALLETFOLDERMAGIC) {
kdDebug() << "bad magic" << endl; kdDebug() << "bad magic" << endl;
return false; return false;
} }
@ -446,9 +446,9 @@ void TDEWalletEntryList::itemDropped(TQDropEvent *e, TQListViewItem *item) {
//check magic to discover mime type //check magic to discover mime type
TQ_UINT32 magic; TQ_UINT32 magic;
(*ds) >> magic; (*ds) >> magic;
if (magic == KWALLETENTRYMAGIC) { if (magic == TDEWALLETENTRYMAGIC) {
isEntry = true; isEntry = true;
} else if (magic == KWALLETFOLDERMAGIC) { } else if (magic == TDEWALLETFOLDERMAGIC) {
isEntry = false; isEntry = false;
} else { } else {
kdDebug() << "bad magic" << endl; kdDebug() << "bad magic" << endl;
@ -711,7 +711,7 @@ TQDragObject *TDEWalletEntryList::dragObject() {
sd = new TDEWalletEntryDrag(viewport(), "TDEWallet Entry Drag"); sd = new TDEWalletEntryDrag(viewport(), "TDEWallet Entry Drag");
TQByteArray a; TQByteArray a;
TQDataStream ds(a, IO_WriteOnly); TQDataStream ds(a, IO_WriteOnly);
ds << KWALLETENTRYMAGIC; ds << TDEWALLETENTRYMAGIC;
ds << *ei; ds << *ei;
sd->setEncodedData(a); sd->setEncodedData(a);
} else if (i->rtti() == TDEWalletFolderItemClass) { } else if (i->rtti() == TDEWalletFolderItemClass) {
@ -723,7 +723,7 @@ TQDragObject *TDEWalletEntryList::dragObject() {
TQByteArray a; TQByteArray a;
TQDataStream ds(a, IO_WriteOnly); TQDataStream ds(a, IO_WriteOnly);
ds << KWALLETFOLDERMAGIC; ds << TDEWALLETFOLDERMAGIC;
ds << *fi; ds << *fi;
sd->setEncodedData(a); sd->setEncodedData(a);
} }

@ -27,8 +27,8 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kicontheme.h> #include <kicontheme.h>
#define KWALLETENTRYMAGIC ((TQ_UINT32) 0x6B776C65) #define TDEWALLETENTRYMAGIC ((TQ_UINT32) 0x6B776C65)
#define KWALLETFOLDERMAGIC ((TQ_UINT32) 0x6B776C66) #define TDEWALLETFOLDERMAGIC ((TQ_UINT32) 0x6B776C66)
enum TDEWalletListItemClasses { enum TDEWalletListItemClasses {
TDEWalletFolderItemClass = 1000, TDEWalletFolderItemClass = 1000,

@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef _KWALLETKONFIGURATOR_H #ifndef _TDEWALLETKONFIGURATOR_H
#define _KWALLETKONFIGURATOR_H #define _TDEWALLETKONFIGURATOR_H
#include <tdecmodule.h> #include <tdecmodule.h>

@ -53,7 +53,7 @@ Name[uz@cyrillic]=Қопчиқ бошқариш воситаси
Name[zh_CN]=钱包管理工具 Name[zh_CN]=钱包管理工具
Name[zh_TW]=錢包管理工具 Name[zh_TW]=錢包管理工具
Exec=tdewalletmanager --show %u Exec=tdewalletmanager --show %u
MimeType=application/x-kde-wallet MimeType=application/x-tde-wallet
InitialPreference=6 InitialPreference=6
Icon=tdewalletmanager Icon=tdewalletmanager
Type=Service Type=Service

@ -88,7 +88,7 @@ int main(int argc, char **argv) {
KMimeType::Ptr ptr; KMimeType::Ptr ptr;
if (TQFile::exists(fn) && if (TQFile::exists(fn) &&
(ptr = KMimeType::findByFileContent(fn)) && (ptr = KMimeType::findByFileContent(fn)) &&
ptr->is("application/x-kde-wallet")) { ptr->is("application/x-tde-wallet")) {
wm.openWalletFile(fn); wm.openWalletFile(fn);
} else { } else {
wm.openWallet(args->arg(i)); wm.openWallet(args->arg(i));

@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KWALLETEDITOR_H #ifndef TDEWALLETEDITOR_H
#define KWALLETEDITOR_H #define TDEWALLETEDITOR_H
#include "walletwidget.h" #include "walletwidget.h"
#include <tdewallet.h> #include <tdewallet.h>

@ -53,7 +53,7 @@ Name[uz@cyrillic]=Қопчиқ бошқариш воситаси
Name[zh_CN]=钱包管理工具 Name[zh_CN]=钱包管理工具
Name[zh_TW]=錢包管理工具 Name[zh_TW]=錢包管理工具
Exec=tdewalletmanager %u Exec=tdewalletmanager %u
MimeType=application/x-kde-wallet; MimeType=application/x-tde-wallet;
InitialPreference=6 InitialPreference=6
Icon=tdewalletmanager Icon=tdewalletmanager
Type=Application Type=Application

@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KWALLETMANAGER_H #ifndef TDEWALLETMANAGER_H
#define KWALLETMANAGER_H #define TDEWALLETMANAGER_H
#include <tdemainwindow.h> #include <tdemainwindow.h>
#include <dcopobject.h> #include <dcopobject.h>

@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#ifndef KWALLETPOPUP_H #ifndef TDEWALLETPOPUP_H
#define KWALLETPOPUP_H #define TDEWALLETPOPUP_H
#include <tdepopupmenu.h> #include <tdepopupmenu.h>
#include <tqmap.h> #include <tqmap.h>

Loading…
Cancel
Save