Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/21/head
Timothy Pearson 12 years ago
parent 5c4a80ead2
commit a9bde819f2

@ -133,9 +133,9 @@ Part::Part( TQWidget *parentWidget, const char * /*widgetName*/,
// start knotifyclient if not already started. makes it work for people who doesn't use full kde, according to kmail devels // start knotifyclient if not already started. makes it work for people who doesn't use full kde, according to kmail devels
KNotifyClient::startDaemon(); KNotifyClient::startDaemon();
m_standardFeedList = KGlobal::dirs()->saveLocation("data", "akregator/data") + "/feeds.opml"; m_standardFeedList = TDEGlobal::dirs()->saveLocation("data", "akregator/data") + "/feeds.opml";
m_tagSetPath = KGlobal::dirs()->saveLocation("data", "akregator/data") + "/tagset.xml"; m_tagSetPath = TDEGlobal::dirs()->saveLocation("data", "akregator/data") + "/tagset.xml";
Backend::StorageFactoryDummyImpl* dummyFactory = new Backend::StorageFactoryDummyImpl(); Backend::StorageFactoryDummyImpl* dummyFactory = new Backend::StorageFactoryDummyImpl();
Backend::StorageFactoryRegistry::self()->registerFactory(dummyFactory, dummyFactory->key()); Backend::StorageFactoryRegistry::self()->registerFactory(dummyFactory, dummyFactory->key());
@ -832,10 +832,10 @@ void Part::initFonts()
TQStringList fonts = Settings::fonts(); TQStringList fonts = Settings::fonts();
if (fonts.isEmpty()) if (fonts.isEmpty())
{ {
fonts.append(KGlobalSettings::generalFont().family()); fonts.append(TDEGlobalSettings::generalFont().family());
fonts.append(KGlobalSettings::fixedFont().family()); fonts.append(TDEGlobalSettings::fixedFont().family());
fonts.append(KGlobalSettings::generalFont().family()); fonts.append(TDEGlobalSettings::generalFont().family());
fonts.append(KGlobalSettings::generalFont().family()); fonts.append(TDEGlobalSettings::generalFont().family());
fonts.append("0"); fonts.append("0");
} }
Settings::setFonts(fonts); Settings::setFonts(fonts);
@ -860,7 +860,7 @@ void Part::initFonts()
if (konq.hasKey("MinimumFontSize")) if (konq.hasKey("MinimumFontSize"))
minfs = konq.readNumEntry("MinimumFontSize"); minfs = konq.readNumEntry("MinimumFontSize");
else else
minfs = KGlobalSettings::generalFont().pointSize(); minfs = TDEGlobalSettings::generalFont().pointSize();
kdDebug() << "Part::initFonts(): set MinimumFontSize to " << minfs << endl; kdDebug() << "Part::initFonts(): set MinimumFontSize to " << minfs << endl;
Settings::setMinimumFontSize(minfs); Settings::setMinimumFontSize(minfs);
} }
@ -871,7 +871,7 @@ void Part::initFonts()
if (konq.hasKey("MediumFontSize")) if (konq.hasKey("MediumFontSize"))
medfs = konq.readNumEntry("MediumFontSize"); medfs = konq.readNumEntry("MediumFontSize");
else else
medfs = KGlobalSettings::generalFont().pointSize(); medfs = TDEGlobalSettings::generalFont().pointSize();
kdDebug() << "Part::initFonts(): set MediumFontSize to " << medfs << endl; kdDebug() << "Part::initFonts(): set MediumFontSize to " << medfs << endl;
Settings::setMediumFontSize(medfs); Settings::setMediumFontSize(medfs);
} }

@ -247,7 +247,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
m_listTabWidget->setViewMode(ListTabWidget::single); m_listTabWidget->setViewMode(ListTabWidget::single);
m_feedListView = new NodeListView( this, "feedtree" ); m_feedListView = new NodeListView( this, "feedtree" );
m_listTabWidget->addView(m_feedListView, i18n("Feeds"), KGlobal::iconLoader()->loadIcon("folder", KIcon::Small)); m_listTabWidget->addView(m_feedListView, i18n("Feeds"), TDEGlobal::iconLoader()->loadIcon("folder", KIcon::Small));
connect(m_feedListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&))); connect(m_feedListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&)));
@ -256,7 +256,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
TreeNode*, Folder*))); TreeNode*, Folder*)));
m_tagNodeListView = new NodeListView(this); m_tagNodeListView = new NodeListView(this);
m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), KGlobal::iconLoader()->loadIcon("rss_tag", KIcon::Small)); m_listTabWidget->addView(m_tagNodeListView, i18n("Tags"), TDEGlobal::iconLoader()->loadIcon("rss_tag", KIcon::Small));
connect(m_tagNodeListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&))); connect(m_tagNodeListView, TQT_SIGNAL(signalContextMenu(KListView*, TreeNode*, const TQPoint&)), this, TQT_SLOT(slotFeedTreeContextMenu(KListView*, TreeNode*, const TQPoint&)));

@ -156,7 +156,7 @@ class ArticleListView::ArticleItem : public KListViewItem
// FIXME: Remove resolveEntities for KDE 4.0, it's now done in the parser // FIXME: Remove resolveEntities for KDE 4.0, it's now done in the parser
ArticleListView::ArticleItem::ArticleItem( TQListView *parent, const Article& a) ArticleListView::ArticleItem::ArticleItem( TQListView *parent, const Article& a)
: KListViewItem( parent, KCharsets::resolveEntities(a.title()), a.feed()->title(), KGlobal::locale()->formatDateTime(a.pubDate(), true, false) ), m_article(a), m_pubDate(a.pubDate().toTime_t()) : KListViewItem( parent, KCharsets::resolveEntities(a.title()), a.feed()->title(), TDEGlobal::locale()->formatDateTime(a.pubDate(), true, false) ), m_article(a), m_pubDate(a.pubDate().toTime_t())
{ {
if (a.keep()) if (a.keep())
setPixmap(0, keepFlag()); setPixmap(0, keepFlag());
@ -197,7 +197,7 @@ void ArticleListView::ArticleItem::updateItem(const Article& article)
setPixmap(0, m_article.keep() ? keepFlag() : TQPixmap()); setPixmap(0, m_article.keep() ? keepFlag() : TQPixmap());
setText(0, KCharsets::resolveEntities(m_article.title())); setText(0, KCharsets::resolveEntities(m_article.title()));
setText(1, m_article.feed()->title()); setText(1, m_article.feed()->title());
setText(2, KGlobal::locale()->formatDateTime(m_article.pubDate(), true, false)); setText(2, TDEGlobal::locale()->formatDateTime(m_article.pubDate(), true, false));
} }
int ArticleListView::ArticleItem::compare(TQListViewItem *i, int col, bool ascending) const { int ArticleListView::ArticleItem::compare(TQListViewItem *i, int col, bool ascending) const {

@ -177,7 +177,7 @@ ArticleViewer::ArticleViewer(TQWidget *parent, const char *name)
connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) ); connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) );
connect(kapp, TQT_SIGNAL(kdisplayFontChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) ); connect(kapp, TQT_SIGNAL(kdisplayFontChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) );
m_imageDir.setPath(KGlobal::dirs()->saveLocation("cache", "akregator/Media/")); m_imageDir.setPath(TDEGlobal::dirs()->saveLocation("cache", "akregator/Media/"));
m_htmlFooter = "</body></html>"; m_htmlFooter = "</body></html>";
} }
@ -420,7 +420,7 @@ TQString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& artic
text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date")));
text += TQString ("%1:").arg(i18n("Date")); text += TQString ("%1:").arg(i18n("Date"));
text += "</span><span class=\"headertext\">"; text += "</span><span class=\"headertext\">";
text += KGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL? text += TDEGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL?
} }
TQString author = article.author(); TQString author = article.author();
if (!author.isEmpty()) if (!author.isEmpty())
@ -515,7 +515,7 @@ TQString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& art
text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date")));
text += TQString ("%1:").arg(i18n("Date")); text += TQString ("%1:").arg(i18n("Date"));
text += "</span><span class=\"headertext\">"; text += "</span><span class=\"headertext\">";
text += KGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL? text += TDEGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL?
} }
TQString author = article.author(); TQString author = article.author();

@ -208,7 +208,7 @@ TQValueList<Article> Feed::articles(const TQString& tag)
void Feed::loadImage() void Feed::loadImage()
{ {
TQString imageFileName = KGlobal::dirs()->saveLocation("cache", "akregator/Media/") TQString imageFileName = TDEGlobal::dirs()->saveLocation("cache", "akregator/Media/")
+ Utils::fileNameForUrl(d->xmlUrl) + + Utils::fileNameForUrl(d->xmlUrl) +
".png"; ".png";
d->imagePixmap.load(imageFileName, "PNG"); d->imagePixmap.load(imageFileName, "PNG");
@ -589,7 +589,7 @@ void Feed::slotImageFetched(const TQPixmap& image)
if (image.isNull()) if (image.isNull())
return; return;
d->imagePixmap=image; d->imagePixmap=image;
d->imagePixmap.save(KGlobal::dirs()->saveLocation("cache", "akregator/Media/") d->imagePixmap.save(TDEGlobal::dirs()->saveLocation("cache", "akregator/Media/")
+ Utils::fileNameForUrl(d->xmlUrl) + + Utils::fileNameForUrl(d->xmlUrl) +
".png","PNG"); ".png","PNG");
nodeModified(); nodeModified();

@ -140,7 +140,7 @@ void FeedIconManager::slotFeedDestroyed(TreeNode* node)
void FeedIconManager::slotIconChanged(bool /*isHost*/, const TQString& hostOrURL, void FeedIconManager::slotIconChanged(bool /*isHost*/, const TQString& hostOrURL,
const TQString& iconName) const TQString& iconName)
{ {
TQString iconFile = KGlobal::dirs()->findResource("cache", TQString iconFile = TDEGlobal::dirs()->findResource("cache",
iconName+".png"); iconName+".png");
Feed* f; Feed* f;
TQPixmap p = TQPixmap(iconFile); TQPixmap p = TQPixmap(iconFile);

@ -84,12 +84,12 @@ void FeedItem::nodeChanged()
TQPixmap FeedItem::errorPixmap() TQPixmap FeedItem::errorPixmap()
{ {
return KGlobal::iconLoader()->loadIcon("error", KIcon::Small); return TDEGlobal::iconLoader()->loadIcon("error", KIcon::Small);
} }
TQPixmap FeedItem::defaultPixmap() TQPixmap FeedItem::defaultPixmap()
{ {
return KGlobal::iconLoader()->loadIcon("txt", KIcon::Small); return TDEGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
} }
void FeedItem::initialize(Feed* node) void FeedItem::initialize(Feed* node)

@ -56,7 +56,7 @@ FolderItem::FolderItem(KListView* parent, TreeNodeItem* after, Folder* node) : T
void FolderItem::initialize(Folder* node) void FolderItem::initialize(Folder* node)
{ {
setOpen(node->isOpen()); setOpen(node->isOpen());
setPixmap ( 0, KGlobal::iconLoader()->loadIcon("folder", KIcon::Small) ); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon("folder", KIcon::Small) );
if (node) if (node)
setText(0, node->title()); setText(0, node->title());
} }

@ -207,12 +207,12 @@ void OutputRetriever::retrieveData(const KURL &url)
d->buffer->open(IO_WriteOnly); d->buffer->open(IO_WriteOnly);
d->process = new KShellProcess(); d->process = new KShellProcess();
connect(d->process, TQT_SIGNAL(processExited(KProcess *)), connect(d->process, TQT_SIGNAL(processExited(TDEProcess *)),
TQT_SLOT(slotExited(KProcess *))); TQT_SLOT(slotExited(TDEProcess *)));
connect(d->process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), connect(d->process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
TQT_SLOT(slotOutput(KProcess *, char *, int))); TQT_SLOT(slotOutput(TDEProcess *, char *, int)));
*d->process << url.path(); *d->process << url.path();
d->process->start(KProcess::NotifyOnExit, KProcess::Stdout); d->process->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
} }
int OutputRetriever::errorCode() const int OutputRetriever::errorCode() const
@ -220,12 +220,12 @@ int OutputRetriever::errorCode() const
return d->lastError; return d->lastError;
} }
void OutputRetriever::slotOutput(KProcess *, char *data, int length) void OutputRetriever::slotOutput(TDEProcess *, char *data, int length)
{ {
d->buffer->writeBlock(data, length); d->buffer->writeBlock(data, length);
} }
void OutputRetriever::slotExited(KProcess *p) void OutputRetriever::slotExited(TDEProcess *p)
{ {
if (!p->normalExit()) if (!p->normalExit())
d->lastError = p->exitStatus(); d->lastError = p->exitStatus();

@ -21,7 +21,7 @@ namespace KIO
{ {
class Job; class Job;
} }
class KProcess; class TDEProcess;
namespace RSS namespace RSS
{ {
@ -194,8 +194,8 @@ namespace RSS
virtual void abort() {} virtual void abort() {}
private slots: private slots:
void slotOutput(KProcess *process, char *data, int length); void slotOutput(TDEProcess *process, char *data, int length);
void slotExited(KProcess *process); void slotExited(TDEProcess *process);
private: private:
OutputRetriever(const OutputRetriever &other); OutputRetriever(const OutputRetriever &other);

@ -199,7 +199,7 @@ void MainWindow::optionsConfigureKeys()
void MainWindow::optionsConfigureToolbars() void MainWindow::optionsConfigureToolbars()
{ {
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
// use the standard toolbar editor // use the standard toolbar editor
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
@ -212,7 +212,7 @@ void MainWindow::optionsConfigureToolbars()
void MainWindow::applyNewToolbarConfig() void MainWindow::applyNewToolbarConfig()
{ {
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }

@ -148,7 +148,7 @@ FeedStorageMK4Impl::FeedStorageMK4Impl(const TQString& url, StorageMK4Impl* main
TQString t = url2; TQString t = url2;
TQString t2 = url2; TQString t2 = url2;
TQString filePath = main->archivePath() +"/"+ t.replace("/", "_").replace(":", "_"); TQString filePath = main->archivePath() +"/"+ t.replace("/", "_").replace(":", "_");
d->oldArchivePath = KGlobal::dirs()->saveLocation("data", "akregator/Archive/") + t2.replace("/", "_").replace(":", "_") + ".xml"; d->oldArchivePath = TDEGlobal::dirs()->saveLocation("data", "akregator/Archive/") + t2.replace("/", "_").replace(":", "_") + ".xml";
d->convert = !TQFile::exists(filePath + ".mk4") && TQFile::exists(d->oldArchivePath); d->convert = !TQFile::exists(filePath + ".mk4") && TQFile::exists(d->oldArchivePath);
d->storage = new c4_Storage((filePath + ".mk4").local8Bit(), true); d->storage = new c4_Storage((filePath + ".mk4").local8Bit(), true);

@ -90,7 +90,7 @@ StorageMK4Impl::StorageMK4Impl() : d(new StorageMK4ImplPrivate)
TQString StorageMK4Impl::defaultArchivePath() TQString StorageMK4Impl::defaultArchivePath()
{ {
return KGlobal::dirs()->saveLocation("data", "akregator")+"Archive"; return TDEGlobal::dirs()->saveLocation("data", "akregator")+"Archive";
} }
StorageMK4Impl::~StorageMK4Impl() StorageMK4Impl::~StorageMK4Impl()

@ -46,7 +46,7 @@ class StorageMK4Impl : public Storage
virtual ~StorageMK4Impl(); virtual ~StorageMK4Impl();
/** KGlobal::dirs()->saveLocation("data", "akregator")+"/Archive" */ /** TDEGlobal::dirs()->saveLocation("data", "akregator")+"/Archive" */
static TQString defaultArchivePath(); static TQString defaultArchivePath();
/** sets the directory where the metakit files will be stored. /** sets the directory where the metakit files will be stored.

@ -55,7 +55,7 @@ NotificationManager::~NotificationManager()
void NotificationManager::setWidget(TQWidget* widget, TDEInstance* inst) void NotificationManager::setWidget(TQWidget* widget, TDEInstance* inst)
{ {
m_widget = widget; m_widget = widget;
m_instance = inst != NULL ? inst : KGlobal::instance(); m_instance = inst != NULL ? inst : TDEGlobal::instance();
} }
void NotificationManager::slotNotifyArticle(const Article& article) void NotificationManager::slotNotifyArticle(const Article& article)

@ -99,7 +99,7 @@ PageViewer::PageViewer(TQWidget *parent, const char *name)
: Viewer(parent, name), d(new PageViewerPrivate) : Viewer(parent, name), d(new PageViewerPrivate)
{ {
// this hack is necessary since the part looks for []HTML Settings] in // this hack is necessary since the part looks for []HTML Settings] in
// KGlobal::config() by default, which is wrong when running in Kontact // TDEGlobal::config() by default, which is wrong when running in Kontact
KHTMLSettings* s = const_cast<KHTMLSettings*> (settings()); KHTMLSettings* s = const_cast<KHTMLSettings*> (settings());
s->init(Settings::self()->config()); s->init(Settings::self()->config());
@ -260,7 +260,7 @@ bool PageViewer::openURL(const KURL& url)
TQString favicon = FeedIconManager::self()->iconLocation(url); TQString favicon = FeedIconManager::self()->iconLocation(url);
if (!favicon.isEmpty()) if (!favicon.isEmpty())
emit setTabIcon(TQPixmap(KGlobal::dirs()->findResource("cache", favicon+".png"))); emit setTabIcon(TQPixmap(TDEGlobal::dirs()->findResource("cache", favicon+".png")));
else else
emit setTabIcon(SmallIcon("html")); emit setTabIcon(SmallIcon("html"));
@ -398,7 +398,7 @@ void PageViewer::slotPaletteOrFontChanged()
obj->tqt_invoke(id, o); obj->tqt_invoke(id, o);
// this hack is necessary since the part looks for []HTML Settings] in // this hack is necessary since the part looks for []HTML Settings] in
// KGlobal::config() by default, which is wrong when running in Kontact // TDEGlobal::config() by default, which is wrong when running in Kontact
// NOTE: when running in Kontact, immediate updating doesn't work // NOTE: when running in Kontact, immediate updating doesn't work
KHTMLSettings* s = const_cast<KHTMLSettings*> (settings()); KHTMLSettings* s = const_cast<KHTMLSettings*> (settings());
s->init(Settings::self()->config()); s->init(Settings::self()->config());

@ -84,7 +84,7 @@ SearchBar::SearchBar(TQWidget* parent, const char* name) : TQHBox(parent, name),
statusLabel->setText( i18n("Status:") ); statusLabel->setText( i18n("Status:") );
d->searchCombo = new KComboBox(this, "searchcombo"); d->searchCombo = new KComboBox(this, "searchcombo");
TQPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small); TQPixmap iconAll = TDEGlobal::iconLoader()->loadIcon("exec", KIcon::Small);
TQPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png")); TQPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png"));
TQPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png")); TQPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png"));
TQPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png")); TQPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png"));

@ -62,13 +62,13 @@ void TagNodeItem::initialize(TagNode* node)
if (node) if (node)
{ {
setText(0, node->title()); setText(0, node->title());
setPixmap ( 0, KGlobal::iconLoader()->loadIcon(node->icon(), KIcon::Small) ); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node->icon(), KIcon::Small) );
} }
} }
void TagNodeItem::nodeChanged() void TagNodeItem::nodeChanged()
{ {
setPixmap ( 0, KGlobal::iconLoader()->loadIcon(node()->icon(), KIcon::Small)); setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon(node()->icon(), KIcon::Small));
TreeNodeItem::nodeChanged(); TreeNodeItem::nodeChanged();
} }

@ -144,7 +144,7 @@ void TrayIcon::slotSetUnread(int unread)
int oldH = pixmap()->size().height(); int oldH = pixmap()->size().height();
TQString uStr=TQString::number( unread ); TQString uStr=TQString::number( unread );
TQFont f=KGlobalSettings::generalFont(); TQFont f=TDEGlobalSettings::generalFont();
f.setBold(true); f.setBold(true);
float pointSize=f.pointSizeFloat(); float pointSize=f.pointSizeFloat();
TQFontMetrics fm(f); TQFontMetrics fm(f);

@ -113,10 +113,10 @@ void Viewer::displayInExternalBrowser(const KURL &url, const TQString &mimetype)
TQString cmd = Settings::externalBrowserCustomCommand(); TQString cmd = Settings::externalBrowserCustomCommand();
TQString urlStr = url.url(); TQString urlStr = url.url();
cmd.replace(TQRegExp("%u"), urlStr); cmd.replace(TQRegExp("%u"), urlStr);
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
TQStringList cmdAndArgs = KShell::splitArgs(cmd); TQStringList cmdAndArgs = KShell::splitArgs(cmd);
*proc << cmdAndArgs; *proc << cmdAndArgs;
proc->start(KProcess::DontCare); proc->start(TDEProcess::DontCare);
delete proc; delete proc;
} }
} }

@ -96,7 +96,7 @@ CertificateInfoWidgetImpl::CertificateInfoWidgetImpl( const GpgME::Key & key, bo
connect( importButton, TQT_SIGNAL( clicked() ), connect( importButton, TQT_SIGNAL( clicked() ),
this, TQT_SLOT( slotImportCertificate() ) ); this, TQT_SLOT( slotImportCertificate() ) );
dumpView->setFont( KGlobalSettings::fixedFont() ); dumpView->setFont( TDEGlobalSettings::fixedFont() );
if ( !key.isNull() ) if ( !key.isNull() )
setKey( key ); setKey( key );
@ -253,36 +253,36 @@ void CertificateInfoWidgetImpl::startCertificateChainListing() {
} }
void CertificateInfoWidgetImpl::startCertificateDump() { void CertificateInfoWidgetImpl::startCertificateDump() {
KProcess* proc = new KProcess( TQT_TQOBJECT(this) ); TDEProcess* proc = new TDEProcess( TQT_TQOBJECT(this) );
(*proc) << "gpgsm"; // must be in the PATH (*proc) << "gpgsm"; // must be in the PATH
(*proc) << "--dump-keys"; (*proc) << "--dump-keys";
(*proc) << mChain.front().primaryFingerprint(); (*proc) << mChain.front().primaryFingerprint();
TQObject::connect( proc, TQT_SIGNAL( receivedStdout(KProcess *, char *, int) ), TQObject::connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int) ),
this, TQT_SLOT( slotCollectStdout(KProcess *, char *, int) ) ); this, TQT_SLOT( slotCollectStdout(TDEProcess *, char *, int) ) );
TQObject::connect( proc, TQT_SIGNAL( receivedStderr(KProcess *, char *, int) ), TQObject::connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int) ),
this, TQT_SLOT( slotCollectStderr(KProcess *, char *, int) ) ); this, TQT_SLOT( slotCollectStderr(TDEProcess *, char *, int) ) );
TQObject::connect( proc, TQT_SIGNAL( processExited(KProcess*) ), TQObject::connect( proc, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotDumpProcessExited(KProcess*) ) ); this, TQT_SLOT( slotDumpProcessExited(TDEProcess*) ) );
if ( !proc->start( KProcess::NotifyOnExit, (KProcess::Communication)(KProcess::Stdout | KProcess::Stderr) ) ) { if ( !proc->start( TDEProcess::NotifyOnExit, (TDEProcess::Communication)(TDEProcess::Stdout | TDEProcess::Stderr) ) ) {
TQString wmsg = i18n("Failed to execute gpgsm:\n%1").arg( i18n( "program not found" ) ); TQString wmsg = i18n("Failed to execute gpgsm:\n%1").arg( i18n( "program not found" ) );
dumpView->setText( TQStyleSheet::escape( wmsg ) ); dumpView->setText( TQStyleSheet::escape( wmsg ) );
delete proc; delete proc;
} }
} }
void CertificateInfoWidgetImpl::slotCollectStdout(KProcess *, char *buffer, int buflen) void CertificateInfoWidgetImpl::slotCollectStdout(TDEProcess *, char *buffer, int buflen)
{ {
mDumpOutput += TQCString(buffer, buflen+1); // like KProcIO does mDumpOutput += TQCString(buffer, buflen+1); // like KProcIO does
} }
void CertificateInfoWidgetImpl::slotCollectStderr(KProcess *, char *buffer, int buflen) void CertificateInfoWidgetImpl::slotCollectStderr(TDEProcess *, char *buffer, int buflen)
{ {
mDumpError += TQCString(buffer, buflen+1); // like KProcIO does mDumpError += TQCString(buffer, buflen+1); // like KProcIO does
} }
void CertificateInfoWidgetImpl::slotDumpProcessExited(KProcess* proc) { void CertificateInfoWidgetImpl::slotDumpProcessExited(TDEProcess* proc) {
int rc = ( proc->normalExit() ) ? proc->exitStatus() : -1 ; int rc = ( proc->normalExit() ) ? proc->exitStatus() : -1 ;
if ( rc == 0 ) { if ( rc == 0 ) {

@ -39,7 +39,7 @@
#include <tqvaluelist.h> #include <tqvaluelist.h>
class KProcess; class TDEProcess;
class TQListViewItem; class TQListViewItem;
namespace GpgME { namespace GpgME {
@ -66,9 +66,9 @@ private slots:
void slotNextKey( const GpgME::Key & key ); void slotNextKey( const GpgME::Key & key );
void slotKeyExistanceCheckNextCandidate( const GpgME::Key & key ); void slotKeyExistanceCheckNextCandidate( const GpgME::Key & key );
void slotKeyExistanceCheckFinished(); void slotKeyExistanceCheckFinished();
void slotCollectStdout(KProcess *, char *, int); void slotCollectStdout(TDEProcess *, char *, int);
void slotCollectStderr(KProcess *, char *, int); void slotCollectStderr(TDEProcess *, char *, int);
void slotDumpProcessExited(KProcess*); void slotDumpProcessExited(TDEProcess*);
private: private:
void startCertificateChainListing(); void startCertificateChainListing();

@ -129,7 +129,7 @@ CertificateWizardImpl::CertificateWizardImpl( TQWidget* parent, const char* nam
connect( storeUR, TQT_SIGNAL( urlSelected( const TQString& ) ), connect( storeUR, TQT_SIGNAL( urlSelected( const TQString& ) ),
this, TQT_SLOT( slotURLSelected( const TQString& ) ) ); this, TQT_SLOT( slotURLSelected( const TQString& ) ) );
const KConfigGroup config( KGlobal::config(), "CertificateCreationWizard" ); const KConfigGroup config( TDEGlobal::config(), "CertificateCreationWizard" );
caEmailED->setText( config.readEntry( "CAEmailAddress" ) ); caEmailED->setText( config.readEntry( "CAEmailAddress" ) );
connect( this, TQT_SIGNAL( helpClicked() ), connect( this, TQT_SIGNAL( helpClicked() ),
@ -337,7 +337,7 @@ void CertificateWizardImpl::createPersonalDataPage()
TQGridLayout* grid = new TQGridLayout( edContainer, 2, 1, TQGridLayout* grid = new TQGridLayout( edContainer, 2, 1,
KDialog::marginHint(), KDialog::spacingHint() ); KDialog::marginHint(), KDialog::spacingHint() );
KConfigGroup config( KGlobal::config(), "CertificateCreationWizard" ); KConfigGroup config( TDEGlobal::config(), "CertificateCreationWizard" );
TQStringList attrOrder = config.readListEntry( "DNAttributeOrder" ); TQStringList attrOrder = config.readListEntry( "DNAttributeOrder" );
if ( attrOrder.empty() ) if ( attrOrder.empty() )
attrOrder << "CN!" << "L" << "OU" << "O!" << "C!" << "EMAIL!"; attrOrder << "CN!" << "L" << "OU" << "O!" << "C!" << "EMAIL!";

@ -930,10 +930,10 @@ bool CertManager::connectAndStartDirmngr( const char * slot, const char * proces
assert( processname ); assert( processname );
assert( mDirmngrProc ); assert( mDirmngrProc );
mErrorbuffer = TQString(); mErrorbuffer = TQString();
connect( mDirmngrProc, TQT_SIGNAL(processExited(KProcess*)), slot ); connect( mDirmngrProc, TQT_SIGNAL(processExited(TDEProcess*)), slot );
connect( mDirmngrProc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int) ), connect( mDirmngrProc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int) ),
this, TQT_SLOT(slotStderr(KProcess*,char*,int)) ); this, TQT_SLOT(slotStderr(TDEProcess*,char*,int)) );
if( !mDirmngrProc->start( KProcess::NotifyOnExit, KProcess::Stderr ) ) { if( !mDirmngrProc->start( TDEProcess::NotifyOnExit, TDEProcess::Stderr ) ) {
delete mDirmngrProc; mDirmngrProc = 0; delete mDirmngrProc; mDirmngrProc = 0;
KMessageBox::error( this, i18n( "Unable to start %1 process. Please check your installation." ).arg( processname ), i18n( "Certificate Manager Error" ) ); KMessageBox::error( this, i18n( "Unable to start %1 process. Please check your installation." ).arg( processname ), i18n( "Certificate Manager Error" ) );
return false; return false;
@ -945,7 +945,7 @@ void CertManager::startImportCRL( const TQString& filename, bool isTempFile )
{ {
assert( !mDirmngrProc ); assert( !mDirmngrProc );
mImportCRLTempFile = isTempFile ? filename : TQString(); mImportCRLTempFile = isTempFile ? filename : TQString();
mDirmngrProc = new KProcess(); mDirmngrProc = new TDEProcess();
*mDirmngrProc << "gpgsm" << "--call-dirmngr" << "loadcrl" << filename; *mDirmngrProc << "gpgsm" << "--call-dirmngr" << "loadcrl" << filename;
if ( !connectAndStartDirmngr( TQT_SLOT(slotDirmngrExited()), "gpgsm" ) ) { if ( !connectAndStartDirmngr( TQT_SLOT(slotDirmngrExited()), "gpgsm" ) ) {
updateImportActions( true ); updateImportActions( true );
@ -956,13 +956,13 @@ void CertManager::startImportCRL( const TQString& filename, bool isTempFile )
void CertManager::startClearCRLs() { void CertManager::startClearCRLs() {
assert( !mDirmngrProc ); assert( !mDirmngrProc );
mDirmngrProc = new KProcess(); mDirmngrProc = new TDEProcess();
*mDirmngrProc << "dirmngr" << "--flush"; *mDirmngrProc << "dirmngr" << "--flush";
//*mDirmngrProc << "gpgsm" << "--call-dimngr" << "flush"; // use this once it's implemented! //*mDirmngrProc << "gpgsm" << "--call-dimngr" << "flush"; // use this once it's implemented!
connectAndStartDirmngr( TQT_SLOT(slotClearCRLsResult()), "dirmngr" ); connectAndStartDirmngr( TQT_SLOT(slotClearCRLsResult()), "dirmngr" );
} }
void CertManager::slotStderr( KProcess*, char* buf, int len ) { void CertManager::slotStderr( TDEProcess*, char* buf, int len ) {
mErrorbuffer += TQString::fromLocal8Bit( buf, len ); mErrorbuffer += TQString::fromLocal8Bit( buf, len );
} }
@ -1423,10 +1423,10 @@ void CertManager::importNextURLOrRedisplay()
void CertManager::slotStartWatchGnuPG() void CertManager::slotStartWatchGnuPG()
{ {
KProcess certManagerProc; TDEProcess certManagerProc;
certManagerProc << "kwatchgnupg"; certManagerProc << "kwatchgnupg";
if( !certManagerProc.start( KProcess::DontCare ) ) if( !certManagerProc.start( TDEProcess::DontCare ) )
KMessageBox::error( this, i18n( "Could not start GnuPG LogViewer (kwatchgnupg). " KMessageBox::error( this, i18n( "Could not start GnuPG LogViewer (kwatchgnupg). "
"Please check your installation!" ), "Please check your installation!" ),
i18n( "Kleopatra Error" ) ); i18n( "Kleopatra Error" ) );

@ -54,7 +54,7 @@ namespace Kleo {
namespace KIO { namespace KIO {
class Job; class Job;
} }
class KProcess; class TDEProcess;
class KToolBar; class KToolBar;
class KAction; class KAction;
@ -118,7 +118,7 @@ private slots:
void slotImportCRLJobFinished( KIO::Job * ); void slotImportCRLJobFinished( KIO::Job * );
void slotDirmngrExited(); void slotDirmngrExited();
void slotStderr( KProcess*, char*, int ); void slotStderr( TDEProcess*, char*, int );
void slotToggleRemote(int idx); void slotToggleRemote(int idx);
void slotToggleHierarchicalView( bool ); void slotToggleHierarchicalView( bool );
@ -182,7 +182,7 @@ private:
Kleo::ProgressBar * mProgressBar; Kleo::ProgressBar * mProgressBar;
TQLabel * mStatusLabel; TQLabel * mStatusLabel;
KProcess * mDirmngrProc; TDEProcess * mDirmngrProc;
TQString mErrorbuffer; TQString mErrorbuffer;
TQPtrList<Kleo::KeyListViewItem> mItemsToDelete; TQPtrList<Kleo::KeyListViewItem> mItemsToDelete;
KURL::List mURLsToImport; KURL::List mURLsToImport;

@ -52,7 +52,7 @@ ConfigureDialog::ConfigureDialog( TQWidget *parent, const char *name, bool modal
// the KCMultiDialog starts with the size of the first kcm, not // the KCMultiDialog starts with the size of the first kcm, not
// the largest one. This way at least after the first showing of // the largest one. This way at least after the first showing of
// the largest kcm the size is kept. // the largest kcm the size is kept.
const KConfigGroup geometry( KGlobal::config(), "Geometry" ); const KConfigGroup geometry( TDEGlobal::config(), "Geometry" );
const int width = geometry.readNumEntry( "ConfigureDialogWidth" ); const int width = geometry.readNumEntry( "ConfigureDialogWidth" );
const int height = geometry.readNumEntry( "ConfigureDialogHeight" ); const int height = geometry.readNumEntry( "ConfigureDialogHeight" );
if ( width != 0 && height != 0 ) { if ( width != 0 && height != 0 ) {
@ -62,7 +62,7 @@ ConfigureDialog::ConfigureDialog( TQWidget *parent, const char *name, bool modal
} }
void ConfigureDialog::hideEvent( TQHideEvent * ) { void ConfigureDialog::hideEvent( TQHideEvent * ) {
KConfigGroup geometry( KGlobal::config(), "Geometry" ); KConfigGroup geometry( TDEGlobal::config(), "Geometry" );
geometry.writeEntry( "ConfigureDialogWidth", width() ); geometry.writeEntry( "ConfigureDialogWidth", width() );
geometry.writeEntry( "ConfigureDialogHeight",height() ); geometry.writeEntry( "ConfigureDialogHeight",height() );
} }

@ -57,7 +57,7 @@ CRLView::CRLView( TQWidget* parent, const char* name, bool modal )
topLayout->addWidget( new TQLabel( i18n("CRL cache dump:"), this ) ); topLayout->addWidget( new TQLabel( i18n("CRL cache dump:"), this ) );
_textView = new TQTextEdit( this ); _textView = new TQTextEdit( this );
_textView->setFont( KGlobalSettings::fixedFont() ); _textView->setFont( TDEGlobalSettings::fixedFont() );
_textView->setTextFormat( TQTextEdit::LogText ); _textView->setTextFormat( TQTextEdit::LogText );
topLayout->addWidget( _textView ); topLayout->addWidget( _textView );
@ -99,22 +99,22 @@ void CRLView::slotUpdateView()
_textView->clear(); _textView->clear();
_buffer = TQString(); _buffer = TQString();
if( _process == 0 ) { if( _process == 0 ) {
_process = new KProcess(); _process = new TDEProcess();
*_process << "gpgsm" << "--call-dirmngr" << "listcrls"; *_process << "gpgsm" << "--call-dirmngr" << "listcrls";
connect( _process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int) ), connect( _process, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int) ),
this, TQT_SLOT( slotReadStdout( KProcess*, char*, int ) ) ); this, TQT_SLOT( slotReadStdout( TDEProcess*, char*, int ) ) );
connect( _process, TQT_SIGNAL( processExited( KProcess* ) ), connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( slotProcessExited() ) ); this, TQT_SLOT( slotProcessExited() ) );
} }
if( _process->isRunning() ) _process->kill(); if( _process->isRunning() ) _process->kill();
if( !_process->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) { if( !_process->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) ) {
KMessageBox::error( this, i18n( "Unable to start gpgsm process. Please check your installation." ), i18n( "Certificate Manager Error" ) ); KMessageBox::error( this, i18n( "Unable to start gpgsm process. Please check your installation." ), i18n( "Certificate Manager Error" ) );
slotProcessExited(); slotProcessExited();
} }
_timer->start( 1000 ); _timer->start( 1000 );
} }
void CRLView::slotReadStdout( KProcess*, char* buf, int len) void CRLView::slotReadStdout( TDEProcess*, char* buf, int len)
{ {
_buffer.append( TQString::fromUtf8( buf, len ) ); _buffer.append( TQString::fromUtf8( buf, len ) );
} }

@ -38,7 +38,7 @@
class TQTextEdit; class TQTextEdit;
class TQPushButton; class TQPushButton;
class KProcess; class TDEProcess;
class TQTimer; class TQTimer;
class CRLView : public TQDialog { class CRLView : public TQDialog {
@ -51,7 +51,7 @@ public slots:
void slotUpdateView(); void slotUpdateView();
protected slots: protected slots:
void slotReadStdout( KProcess*, char* buf, int len); void slotReadStdout( TDEProcess*, char* buf, int len);
void slotProcessExited(); void slotProcessExited();
void slotAppendBuffer(); void slotAppendBuffer();
@ -62,7 +62,7 @@ private:
TQTextEdit* _textView; TQTextEdit* _textView;
TQPushButton* _updateButton; TQPushButton* _updateButton;
TQPushButton* _closeButton; TQPushButton* _closeButton;
KProcess* _process; TDEProcess* _process;
TQTimer* _timer; TQTimer* _timer;
TQString _buffer; TQString _buffer;
}; };

@ -69,7 +69,7 @@ KWatchGnuPGMainWindow::KWatchGnuPGMainWindow( TQWidget* parent, const char* name
setCentralWidget( mCentralWidget ); setCentralWidget( mCentralWidget );
mWatcher = new KProcIO( TQTextCodec::codecForMib( 106 /*utf-8*/ ) ); mWatcher = new KProcIO( TQTextCodec::codecForMib( 106 /*utf-8*/ ) );
connect( mWatcher, TQT_SIGNAL( processExited(KProcess*) ), connect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotWatcherExited() ) ); this, TQT_SLOT( slotWatcherExited() ) );
connect( mWatcher, TQT_SIGNAL( readReady(KProcIO*) ), connect( mWatcher, TQT_SIGNAL( readReady(KProcIO*) ),
this, TQT_SLOT( slotReadStdout() ) ); this, TQT_SLOT( slotReadStdout() ) );
@ -127,7 +127,7 @@ void KWatchGnuPGMainWindow::slotConfigureToolbars()
void KWatchGnuPGMainWindow::startWatcher() void KWatchGnuPGMainWindow::startWatcher()
{ {
disconnect( mWatcher, TQT_SIGNAL( processExited(KProcess*) ), disconnect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotWatcherExited() ) ); this, TQT_SLOT( slotWatcherExited() ) );
if( mWatcher->isRunning() ) { if( mWatcher->isRunning() ) {
mWatcher->kill(); mWatcher->kill();
@ -150,7 +150,7 @@ void KWatchGnuPGMainWindow::startWatcher()
mCentralWidget->append( tqtr("[%1] Log started") mCentralWidget->append( tqtr("[%1] Log started")
.arg( TQDateTime::currentDateTime().toString(Qt::ISODate) ) ); .arg( TQDateTime::currentDateTime().toString(Qt::ISODate) ) );
} }
connect( mWatcher, TQT_SIGNAL( processExited(KProcess*) ), connect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotWatcherExited() ) ); this, TQT_SLOT( slotWatcherExited() ) );
} }
@ -251,7 +251,7 @@ void KWatchGnuPGMainWindow::slotSaveAs()
void KWatchGnuPGMainWindow::slotQuit() void KWatchGnuPGMainWindow::slotQuit()
{ {
disconnect( mWatcher, TQT_SIGNAL( processExited(KProcess*) ), disconnect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotWatcherExited() ) ); this, TQT_SLOT( slotWatcherExited() ) );
mWatcher->kill(); mWatcher->kill();
kapp->quit(); kapp->quit();

@ -44,7 +44,7 @@ KWatchGnuPGTray::KWatchGnuPGTray( KWatchGnuPGMainWindow* mainwin )
{ {
kdDebug() << "KWatchGnuPGTray::KWatchGnuPGTray" << endl; kdDebug() << "KWatchGnuPGTray::KWatchGnuPGTray" << endl;
KGlobal::iconLoader()->addAppDir( "kwatchgnupg" ); TDEGlobal::iconLoader()->addAppDir( "kwatchgnupg" );
mNormalPix = loadIcon("kwatchgnupg"); mNormalPix = loadIcon("kwatchgnupg");
mAttentionPix = loadIcon("kwatchgnupg2"); mAttentionPix = loadIcon("kwatchgnupg2");

@ -110,8 +110,8 @@ GpgME::Error Kleo::ChiasmusJob::start() {
if ( const GpgME::Error err = setup() ) if ( const GpgME::Error err = setup() )
return mError = err; return mError = err;
connect( mSymCryptRun, TQT_SIGNAL(processExited(KProcess*)), connect( mSymCryptRun, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(KProcess*)) ); this, TQT_SLOT(slotProcessExited(TDEProcess*)) );
if ( !mSymCryptRun->launch( mInput ) ) if ( !mSymCryptRun->launch( mInput ) )
return mError = gpg_error( GPG_ERR_ENOENT ); // what else? return mError = gpg_error( GPG_ERR_ENOENT ); // what else?
@ -120,7 +120,7 @@ GpgME::Error Kleo::ChiasmusJob::start() {
return mError = 0; return mError = 0;
} }
GpgME::Error Kleo::ChiasmusJob::slotProcessExited( KProcess * proc ) { GpgME::Error Kleo::ChiasmusJob::slotProcessExited( TDEProcess * proc ) {
if ( proc != mSymCryptRun ) if ( proc != mSymCryptRun )
mError = gpg_error( GPG_ERR_INTERNAL ); mError = gpg_error( GPG_ERR_INTERNAL );
else if ( mCanceled ) else if ( mCanceled )
@ -172,7 +172,7 @@ GpgME::Error Kleo::ChiasmusJob::exec() {
if ( const GpgME::Error err = setup() ) if ( const GpgME::Error err = setup() )
return mError = err; return mError = err;
if ( !mSymCryptRun->launch( mInput, KProcess::Block ) ) { if ( !mSymCryptRun->launch( mInput, TDEProcess::Block ) ) {
delete mSymCryptRun; mSymCryptRun = 0; delete mSymCryptRun; mSymCryptRun = 0;
return mError = gpg_error( GPG_ERR_ENOENT ); // what else? return mError = gpg_error( GPG_ERR_ENOENT ); // what else?
} }

@ -40,7 +40,7 @@
#include <gpgmepp/context.h> #include <gpgmepp/context.h>
class KProcess; class TDEProcess;
namespace Kleo { namespace Kleo {
@ -91,7 +91,7 @@ namespace Kleo {
void slotCancel(); void slotCancel();
private slots: private slots:
GpgME::Error slotProcessExited( KProcess * ); GpgME::Error slotProcessExited( TDEProcess * );
void slotTimeout(); void slotTimeout();
private: private:

@ -45,7 +45,7 @@ Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const TQString & class_, c
const TQString & keyFile, const TQString & options, const TQString & keyFile, const TQString & options,
Operation mode, Operation mode,
TQObject * parent, const char * name ) TQObject * parent, const char * name )
: KProcess( parent, name ), : TDEProcess( parent, name ),
mOperation( mode ), mOptions( options ) mOperation( mode ), mOptions( options )
{ {
*this << "symcryptrun" *this << "symcryptrun"
@ -58,10 +58,10 @@ Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const TQString & class_, c
Kleo::SymCryptRunProcessBase::~SymCryptRunProcessBase() {} Kleo::SymCryptRunProcessBase::~SymCryptRunProcessBase() {}
bool Kleo::SymCryptRunProcessBase::launch( const TQByteArray & input, RunMode rm ) { bool Kleo::SymCryptRunProcessBase::launch( const TQByteArray & input, RunMode rm ) {
connect( this, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), connect( this, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedStdout(KProcess*,char*,int)) ); this, TQT_SLOT(slotReceivedStdout(TDEProcess*,char*,int)) );
connect( this, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect( this, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedStderr(KProcess*,char*,int)) ); this, TQT_SLOT(slotReceivedStderr(TDEProcess*,char*,int)) );
if ( rm == Block ) { if ( rm == Block ) {
KTempFile tempfile; KTempFile tempfile;
tempfile.setAutoDelete( true ); tempfile.setAutoDelete( true );
@ -72,15 +72,15 @@ bool Kleo::SymCryptRunProcessBase::launch( const TQByteArray & input, RunMode rm
tempfile.close(); tempfile.close();
*this << "--input" << tempfile.name(); *this << "--input" << tempfile.name();
addOptions(); addOptions();
return KProcess::start( Block, All ); return TDEProcess::start( Block, All );
} else { } else {
addOptions(); addOptions();
const bool ok = KProcess::start( rm, All ); const bool ok = TDEProcess::start( rm, All );
if ( !ok ) if ( !ok )
return ok; return ok;
mInput = input.copy(); mInput = input.copy();
writeStdin( mInput.begin(), mInput.size() ); writeStdin( mInput.begin(), mInput.size() );
connect( this, TQT_SIGNAL(wroteStdin(KProcess*)), this, TQT_SLOT(closeStdin()) ); connect( this, TQT_SIGNAL(wroteStdin(TDEProcess*)), this, TQT_SLOT(closeStdin()) );
return true; return true;
} }
} }
@ -93,14 +93,14 @@ void Kleo::SymCryptRunProcessBase::addOptions() {
} }
} }
void Kleo::SymCryptRunProcessBase::slotReceivedStdout( KProcess * proc, char * buf, int len ) { void Kleo::SymCryptRunProcessBase::slotReceivedStdout( TDEProcess * proc, char * buf, int len ) {
Q_ASSERT( proc == this ); Q_ASSERT( proc == this );
const int oldsize = mOutput.size(); const int oldsize = mOutput.size();
mOutput.resize( oldsize + len ); mOutput.resize( oldsize + len );
memcpy( mOutput.data() + oldsize, buf, len ); memcpy( mOutput.data() + oldsize, buf, len );
} }
void Kleo::SymCryptRunProcessBase::slotReceivedStderr( KProcess * proc, char * buf, int len ) { void Kleo::SymCryptRunProcessBase::slotReceivedStderr( TDEProcess * proc, char * buf, int len ) {
Q_ASSERT( proc == this ); Q_ASSERT( proc == this );
if ( len > 0 ) if ( len > 0 )
mStderr += TQString::fromLocal8Bit( buf, len ); mStderr += TQString::fromLocal8Bit( buf, len );

@ -41,7 +41,7 @@ class TQString;
namespace Kleo { namespace Kleo {
class SymCryptRunProcessBase : public KProcess { class SymCryptRunProcessBase : public TDEProcess {
Q_OBJECT Q_OBJECT
public: public:
@ -61,11 +61,11 @@ public:
public slots: public slots:
/*! upgraded to slot */ /*! upgraded to slot */
void closeStdin() { KProcess::closeStdin(); } void closeStdin() { TDEProcess::closeStdin(); }
private slots: private slots:
void slotReceivedStdout( KProcess *, char *, int ); void slotReceivedStdout( TDEProcess *, char *, int );
void slotReceivedStderr( KProcess *, char *, int ); void slotReceivedStderr( TDEProcess *, char *, int );
private: private:
void addOptions(); void addOptions();

@ -57,7 +57,7 @@ struct Kleo::GnuPGProcessBase::Private {
Kleo::GnuPGProcessBase::GnuPGProcessBase( TQObject * parent, const char * name ) Kleo::GnuPGProcessBase::GnuPGProcessBase( TQObject * parent, const char * name )
: KProcess( parent, name ) : TDEProcess( parent, name )
{ {
d = new Private(); d = new Private();
} }
@ -76,7 +76,7 @@ bool Kleo::GnuPGProcessBase::start( RunMode runmode, Communication comm ) {
// set up the status-fd. This should be in setupCommunication(), // set up the status-fd. This should be in setupCommunication(),
// but then it's too late: we need the fd of the pipe to pass it // but then it's too late: we need the fd of the pipe to pass it
// as argument to the --status-fd option: // as argument to the --status-fd option:
// PENDING(marc) find out why KProcess uses both pipe() and socketpair()... // PENDING(marc) find out why TDEProcess uses both pipe() and socketpair()...
if ( ::pipe( d->statusFD ) < 0 ) { if ( ::pipe( d->statusFD ) < 0 ) {
kdDebug( 5150 ) << "Kleo::GnuPGProcessBase::start: pipe(2) failed: " << perror << endl; kdDebug( 5150 ) << "Kleo::GnuPGProcessBase::start: pipe(2) failed: " << perror << endl;
return false; return false;
@ -94,11 +94,11 @@ bool Kleo::GnuPGProcessBase::start( RunMode runmode, Communication comm ) {
//arguments.insert( it, "--enable-progress-filter" ); // gpgsm doesn't know this //arguments.insert( it, "--enable-progress-filter" ); // gpgsm doesn't know this
} }
} }
return KProcess::start( runmode, comm ); return TDEProcess::start( runmode, comm );
} }
int Kleo::GnuPGProcessBase::setupCommunication( Communication comm ) { int Kleo::GnuPGProcessBase::setupCommunication( Communication comm ) {
if ( int ok = KProcess::setupCommunication( comm ) ) if ( int ok = TDEProcess::setupCommunication( comm ) )
return ok; return ok;
if ( d->usetStatusFD ) { if ( d->usetStatusFD ) {
// base class impl returned error, so close our fd's, too // base class impl returned error, so close our fd's, too
@ -115,13 +115,13 @@ int Kleo::GnuPGProcessBase::commSetupDoneP() {
d->statnot = new TQSocketNotifier( d->statusFD[0], TQSocketNotifier::Read, this ); d->statnot = new TQSocketNotifier( d->statusFD[0], TQSocketNotifier::Read, this );
connect( d->statnot, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChildStatus(int)) ); connect( d->statnot, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChildStatus(int)) );
} }
return KProcess::commSetupDoneP(); return TDEProcess::commSetupDoneP();
} }
int Kleo::GnuPGProcessBase::commSetupDoneC() { int Kleo::GnuPGProcessBase::commSetupDoneC() {
if ( d->usetStatusFD ) if ( d->usetStatusFD )
::fcntl( d->statusFD[1], F_SETFD, 0 ); ::fcntl( d->statusFD[1], F_SETFD, 0 );
return KProcess::commSetupDoneC(); return TDEProcess::commSetupDoneC();
} }
void Kleo::GnuPGProcessBase::slotChildStatus( int fd ) { void Kleo::GnuPGProcessBase::slotChildStatus( int fd ) {
@ -192,7 +192,7 @@ void Kleo::GnuPGProcessBase::parsetStatusOutput() {
} }
void Kleo::GnuPGProcessBase::virtual_hook( int id, void * data ) { void Kleo::GnuPGProcessBase::virtual_hook( int id, void * data ) {
KProcess::virtual_hook( id, data ); TDEProcess::virtual_hook( id, data );
} }
#include "gnupgprocessbase.moc" #include "gnupgprocessbase.moc"

@ -40,12 +40,12 @@ namespace Kleo {
/** /**
* @short a base class for GPG and GPGSM processes. * @short a base class for GPG and GPGSM processes.
* *
* This KProcess subclass implements the status-fd handling common * This TDEProcess subclass implements the status-fd handling common
* to GPG and GPGSM. * to GPG and GPGSM.
* *
* @author Marc Mutz <mutz@kde.org> * @author Marc Mutz <mutz@kde.org>
*/ */
class GnuPGProcessBase : public KProcess { class GnuPGProcessBase : public TDEProcess {
Q_OBJECT Q_OBJECT
public: public:

@ -80,7 +80,7 @@ void QGpgMECryptoConfig::runGpgConf( bool showErrors )
// run the process: // run the process:
int rc = 0; int rc = 0;
if ( !proc.start( KProcess::Block ) ) if ( !proc.start( TDEProcess::Block ) )
rc = -1; rc = -1;
else else
rc = ( proc.normalExit() ) ? proc.exitStatus() : -2 ; rc = ( proc.normalExit() ) ? proc.exitStatus() : -2 ;
@ -179,7 +179,7 @@ void QGpgMECryptoConfigComponent::runGpgConf()
// run the process: // run the process:
int rc = 0; int rc = 0;
if ( !proc.start( KProcess::Block ) ) if ( !proc.start( TDEProcess::Block ) )
rc = -1; rc = -1;
else else
rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ; rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ;
@ -280,20 +280,20 @@ void QGpgMECryptoConfigComponent::sync( bool runtime )
if ( runtime ) if ( runtime )
commandLine += " --runtime"; commandLine += " --runtime";
commandLine += " --change-options "; commandLine += " --change-options ";
commandLine += KProcess::quote( mName ); commandLine += TDEProcess::quote( mName );
commandLine += " < "; commandLine += " < ";
commandLine += KProcess::quote( tmpFile.name() ); commandLine += TDEProcess::quote( tmpFile.name() );
//kdDebug(5150) << commandLine << endl; //kdDebug(5150) << commandLine << endl;
//system( TQCString( "cat " ) + tmpFile.name().latin1() ); // DEBUG //system( TQCString( "cat " ) + tmpFile.name().latin1() ); // DEBUG
KProcess proc; TDEProcess proc;
proc.setUseShell( true ); proc.setUseShell( true );
proc << commandLine; proc << commandLine;
// run the process: // run the process:
int rc = 0; int rc = 0;
if ( !proc.start( KProcess::Block ) ) if ( !proc.start( TDEProcess::Block ) )
rc = -1; rc = -1;
else else
rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ; rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ;

@ -107,14 +107,14 @@ GpgME::Error Kleo::QGpgMERefreshKeysJob::startAProcess() {
mProcess->setUsetStatusFD( true ); mProcess->setUsetStatusFD( true );
connect( mProcess, TQT_SIGNAL(processExited(KProcess*)), connect( mProcess, TQT_SIGNAL(processExited(TDEProcess*)),
TQT_SLOT(slotProcessExited(KProcess*)) ); TQT_SLOT(slotProcessExited(TDEProcess*)) );
connect( mProcess, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect( mProcess, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
TQT_SLOT(slotStderr(KProcess*,char*,int)) ); TQT_SLOT(slotStderr(TDEProcess*,char*,int)) );
connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)), connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)),
TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) ); TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) );
if ( !mProcess->start( KProcess::NotifyOnExit, KProcess::Stderr ) ) { if ( !mProcess->start( TDEProcess::NotifyOnExit, TDEProcess::Stderr ) ) {
mError = gpg_err_make( GPG_ERR_SOURCE_GPGSM, GPG_ERR_ENOENT ); // what else? mError = gpg_err_make( GPG_ERR_SOURCE_GPGSM, GPG_ERR_ENOENT ); // what else?
deleteLater(); deleteLater();
return mError; return mError;
@ -182,11 +182,11 @@ void Kleo::QGpgMERefreshKeysJob::slotStatus( GnuPGProcessBase * proc, const TQSt
} }
} }
void Kleo::QGpgMERefreshKeysJob::slotStderr( KProcess *, char *, int ) { void Kleo::QGpgMERefreshKeysJob::slotStderr( TDEProcess *, char *, int ) {
// implement? or not? // implement? or not?
} }
void Kleo::QGpgMERefreshKeysJob::slotProcessExited( KProcess * proc ) { void Kleo::QGpgMERefreshKeysJob::slotProcessExited( TDEProcess * proc ) {
if ( proc != mProcess ) if ( proc != mProcess )
return; return;

@ -45,7 +45,7 @@ namespace GpgME {
class Error; class Error;
} }
class KProcess; class TDEProcess;
namespace Kleo { namespace Kleo {
@ -64,8 +64,8 @@ namespace Kleo {
void slotCancel(); void slotCancel();
void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & ); void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & );
void slotStderr( KProcess *, char *, int ); void slotStderr( TDEProcess *, char *, int );
void slotProcessExited( KProcess * ); void slotProcessExited( TDEProcess * );
private: private:
GpgME::Error startAProcess(); GpgME::Error startAProcess();

@ -88,16 +88,16 @@ GpgME::Error Kleo::QGpgMESecretKeyExportJob::start( const TQStringList & pattern
mProcess->setUsetStatusFD( true ); mProcess->setUsetStatusFD( true );
connect( mProcess, TQT_SIGNAL(processExited(KProcess*)), connect( mProcess, TQT_SIGNAL(processExited(TDEProcess*)),
TQT_SLOT(slotProcessExited(KProcess*)) ); TQT_SLOT(slotProcessExited(TDEProcess*)) );
connect( mProcess, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), connect( mProcess, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
TQT_SLOT(slotStdout(KProcess*,char*,int)) ); TQT_SLOT(slotStdout(TDEProcess*,char*,int)) );
connect( mProcess, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect( mProcess, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
TQT_SLOT(slotStderr(KProcess*,char*,int)) ); TQT_SLOT(slotStderr(TDEProcess*,char*,int)) );
connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)), connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)),
TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) ); TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) );
if ( !mProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) { if ( !mProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) {
mError = gpg_err_make( GPG_ERR_SOURCE_GPGSM, GPG_ERR_ENOENT ); // what else? mError = gpg_err_make( GPG_ERR_SOURCE_GPGSM, GPG_ERR_ENOENT ); // what else?
deleteLater(); deleteLater();
return mError; return mError;
@ -165,7 +165,7 @@ void Kleo::QGpgMESecretKeyExportJob::slotStatus( GnuPGProcessBase * proc, const
} }
} }
void Kleo::QGpgMESecretKeyExportJob::slotStdout( KProcess * proc, char * buf, int buflen ) { void Kleo::QGpgMESecretKeyExportJob::slotStdout( TDEProcess * proc, char * buf, int buflen ) {
if ( proc != mProcess ) if ( proc != mProcess )
return; return;
if ( buflen <= 0 ) if ( buflen <= 0 )
@ -177,11 +177,11 @@ void Kleo::QGpgMESecretKeyExportJob::slotStdout( KProcess * proc, char * buf, in
memcpy( mKeyData.data() + oldlen, buf, buflen ); memcpy( mKeyData.data() + oldlen, buf, buflen );
} }
void Kleo::QGpgMESecretKeyExportJob::slotStderr( KProcess *, char *, int ) { void Kleo::QGpgMESecretKeyExportJob::slotStderr( TDEProcess *, char *, int ) {
// implement? or not? // implement? or not?
} }
void Kleo::QGpgMESecretKeyExportJob::slotProcessExited( KProcess * proc ) { void Kleo::QGpgMESecretKeyExportJob::slotProcessExited( TDEProcess * proc ) {
if ( proc != mProcess ) if ( proc != mProcess )
return; return;

@ -50,7 +50,7 @@ namespace QGpgME {
class TQByteArrayDataProvider; class TQByteArrayDataProvider;
} }
class KProcess; class TDEProcess;
namespace Kleo { namespace Kleo {
@ -69,9 +69,9 @@ namespace Kleo {
void slotCancel(); void slotCancel();
void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & ); void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & );
void slotStdout( KProcess *, char *, int ); void slotStdout( TDEProcess *, char *, int );
void slotStderr( KProcess *, char *, int ); void slotStderr( TDEProcess *, char *, int );
void slotProcessExited( KProcess * ); void slotProcessExited( TDEProcess * );
private: private:
GnuPGProcessBase * mProcess; GnuPGProcessBase * mProcess;

@ -39,7 +39,7 @@
namespace Kleo { namespace Kleo {
class GnuPGProcessBase; class GnuPGProcessBase;
} }
class KProcess; class TDEProcess;
class TQStringList; class TQStringList;
class GnuPGViewer : public TQTextEdit { class GnuPGViewer : public TQTextEdit {
@ -52,10 +52,10 @@ public:
void setProcess( Kleo::GnuPGProcessBase * process ); void setProcess( Kleo::GnuPGProcessBase * process );
private slots: private slots:
void slotStdout( KProcess *, char *, int ); void slotStdout( TDEProcess *, char *, int );
void slotStderr( KProcess *, char *, int ); void slotStderr( TDEProcess *, char *, int );
void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & ); void slotStatus( Kleo::GnuPGProcessBase *, const TQString &, const TQStringList & );
void slotProcessExited( KProcess * ); void slotProcessExited( TDEProcess * );
private: private:
Kleo::GnuPGProcessBase * mProcess; Kleo::GnuPGProcessBase * mProcess;

@ -62,12 +62,12 @@ void GnuPGViewer::setProcess( Kleo::GnuPGProcessBase * process ) {
if ( !process ) if ( !process )
return; return;
mProcess = process; mProcess = process;
connect( mProcess, TQT_SIGNAL(processExited(KProcess*)), connect( mProcess, TQT_SIGNAL(processExited(TDEProcess*)),
TQT_SLOT(slotProcessExited(KProcess*)) ); TQT_SLOT(slotProcessExited(TDEProcess*)) );
connect( mProcess, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), connect( mProcess, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
TQT_SLOT(slotStdout(KProcess*,char*,int)) ); TQT_SLOT(slotStdout(TDEProcess*,char*,int)) );
connect( mProcess, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect( mProcess, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
TQT_SLOT(slotStderr(KProcess*,char*,int)) ); TQT_SLOT(slotStderr(TDEProcess*,char*,int)) );
connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)), connect( mProcess, TQT_SIGNAL(status(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)),
TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) ); TQT_SLOT(slotStatus(Kleo::GnuPGProcessBase*,const TQString&,const TQStringList&)) );
} }
@ -91,13 +91,13 @@ static TQString escape( TQString str ) {
return str.replace( '&', "&amp" ).replace( '<', "&lt;" ).replace( '>', "&gt;" ); return str.replace( '&', "&amp" ).replace( '<', "&lt;" ).replace( '>', "&gt;" );
} }
void GnuPGViewer::slotStdout( KProcess *, char * buffer, int buflen ) { void GnuPGViewer::slotStdout( TDEProcess *, char * buffer, int buflen ) {
const TQStringList l = split( buffer, buflen, mLastStdout ); const TQStringList l = split( buffer, buflen, mLastStdout );
for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it )
append( "stdout: " + escape( *it ) ); append( "stdout: " + escape( *it ) );
} }
void GnuPGViewer::slotStderr( KProcess *, char * buffer, int buflen ) { void GnuPGViewer::slotStderr( TDEProcess *, char * buffer, int buflen ) {
const TQStringList l = split( buffer, buflen, mLastStderr ); const TQStringList l = split( buffer, buflen, mLastStderr );
for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it )
append( "<b>stderr: " + escape( *it ) + "</b>" ); append( "<b>stderr: " + escape( *it ) + "</b>" );
@ -105,7 +105,7 @@ void GnuPGViewer::slotStderr( KProcess *, char * buffer, int buflen ) {
void GnuPGViewer::slotStatus( Kleo::GnuPGProcessBase *, const TQString & type, const TQStringList & args ) { void GnuPGViewer::slotStatus( Kleo::GnuPGProcessBase *, const TQString & type, const TQStringList & args ) {
append( "<b><font color=\"red\">status: " + escape( type + ' ' + args.join( " " ) ) + "</font></b>" ); append( "<b><font color=\"red\">status: " + escape( type + ' ' + args.join( " " ) ) + "</font></b>" );
} }
void GnuPGViewer::slotProcessExited( KProcess * proc ) { void GnuPGViewer::slotProcessExited( TDEProcess * proc ) {
if ( !proc ) if ( !proc )
return; return;
if ( proc->normalExit() ) if ( proc->normalExit() )
@ -135,7 +135,7 @@ int main( int argc, char** argv ) {
app.setMainWidget( gv ); app.setMainWidget( gv );
gv->show(); gv->show();
gpg.start( KProcess::NotifyOnExit, KProcess::AllOutput ); gpg.start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
return app.exec(); return app.exec();
} }

@ -48,7 +48,7 @@ int main( int argc, char ** argv ) {
TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
TDEApplication app; TDEApplication app;
KGlobal::iconLoader()->addAppDir( "libkleopatra" ); TDEGlobal::iconLoader()->addAppDir( "libkleopatra" );
Kleo::KeySelectionDialog dlg( "Kleo::KeySelectionDialog Test", Kleo::KeySelectionDialog dlg( "Kleo::KeySelectionDialog Test",
"Please select a key:", "Please select a key:",

@ -58,7 +58,7 @@
using namespace Kleo; using namespace Kleo;
static inline TQPixmap loadIcon( TQString s ) { static inline TQPixmap loadIcon( TQString s ) {
return KGlobal::instance()->iconLoader() return TDEGlobal::instance()->iconLoader()
->loadIcon( s.replace( TQRegExp( "[^a-zA-Z0-9_]" ), "_" ), KIcon::NoGroup, KIcon::SizeMedium ); ->loadIcon( s.replace( TQRegExp( "[^a-zA-Z0-9_]" ), "_" ), KIcon::NoGroup, KIcon::SizeMedium );
} }

@ -189,7 +189,7 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
+ 2; + 2;
// don't make the dialog too large // don't make the dialog too large
const TQRect desk = KGlobalSettings::desktopGeometry( this ); const TQRect desk = TDEGlobalSettings::desktopGeometry( this );
setInitialSize( TQSize( kMin( dialogWidth, 3 * desk.width() / 4 ), setInitialSize( TQSize( kMin( dialogWidth, 3 * desk.width() / 4 ),
kMin( dialogHeight, 7 * desk.height() / 8 ) ) ); kMin( dialogHeight, 7 * desk.height() / 8 ) ) );
} }

@ -395,7 +395,7 @@ void Kleo::KeySelectionDialog::init( bool rememberChoice, bool extendedSelection
TQLineEdit * le = new TQLineEdit( page ); TQLineEdit * le = new TQLineEdit( page );
le->setText( initialQuery ); le->setText( initialQuery );
TQToolButton *clearButton = new TQToolButton( page ); TQToolButton *clearButton = new TQToolButton( page );
clearButton->setIconSet( KGlobal::iconLoader()->loadIconSet( clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) );
hlay->addWidget( clearButton ); hlay->addWidget( clearButton );
hlay->addWidget( new TQLabel( le, i18n("&Search for:"), page ) ); hlay->addWidget( new TQLabel( le, i18n("&Search for:"), page ) );
@ -449,14 +449,14 @@ void Kleo::KeySelectionDialog::init( bool rememberChoice, bool extendedSelection
KWin::setIcons( winId(), kapp->icon(), kapp->miniIcon() ); KWin::setIcons( winId(), kapp->icon(), kapp->miniIcon() );
TQSize dialogSize( 500, 400 ); TQSize dialogSize( 500, 400 );
KConfigGroup dialogConfig( KGlobal::config(), "Key Selection Dialog" ); KConfigGroup dialogConfig( TDEGlobal::config(), "Key Selection Dialog" );
dialogSize = dialogConfig.readSizeEntry( "Dialog size", &dialogSize ); dialogSize = dialogConfig.readSizeEntry( "Dialog size", &dialogSize );
resize( dialogSize ); resize( dialogSize );
} }
} }
Kleo::KeySelectionDialog::~KeySelectionDialog() { Kleo::KeySelectionDialog::~KeySelectionDialog() {
KConfigGroup dialogConfig( KGlobal::config(), "Key Selection Dialog" ); KConfigGroup dialogConfig( TDEGlobal::config(), "Key Selection Dialog" );
dialogConfig.writeEntry( "Dialog size", size() ); dialogConfig.writeEntry( "Dialog size", size() );
dialogConfig.sync(); dialogConfig.sync();
} }
@ -548,12 +548,12 @@ void Kleo::KeySelectionDialog::slotHelp()
void Kleo::KeySelectionDialog::slotStartCertificateManager( const TQString &query ) void Kleo::KeySelectionDialog::slotStartCertificateManager( const TQString &query )
{ {
KProcess certManagerProc; TDEProcess certManagerProc;
certManagerProc << "kleopatra"; certManagerProc << "kleopatra";
if ( !query.isEmpty() ) if ( !query.isEmpty() )
certManagerProc << "--external" << "--query" << KURL::decode_string( query ); certManagerProc << "--external" << "--query" << KURL::decode_string( query );
if( !certManagerProc.start( KProcess::DontCare ) ) if( !certManagerProc.start( TDEProcess::DontCare ) )
KMessageBox::error( this, i18n( "Could not start certificate manager; " KMessageBox::error( this, i18n( "Could not start certificate manager; "
"please check your installation." ), "please check your installation." ),
i18n( "Certificate Manager Error" ) ); i18n( "Certificate Manager Error" ) );

@ -63,8 +63,8 @@ int main( int argc, char** argv )
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KGlobal::locale()->insertCatalogue( "libkleopatra" ); TDEGlobal::locale()->insertCatalogue( "libkleopatra" );
KGlobal::iconLoader()->addAppDir( "libkleopatra" ); TDEGlobal::iconLoader()->addAppDir( "libkleopatra" );
if( !Kleo::CryptoBackendFactory::instance()->smime() ) { if( !Kleo::CryptoBackendFactory::instance()->smime() ) {
KMessageBox::error(0, KMessageBox::error(0,

@ -469,7 +469,7 @@ void AddressEditDialog::updateAddressEdits()
mPreferredCheckBox->setChecked( a.type() & KABC::Address::Pref ); mPreferredCheckBox->setChecked( a.type() & KABC::Address::Pref );
if ( a.isEmpty() ) if ( a.isEmpty() )
mCountryCombo->setCurrentText( KGlobal::locale()->twoAlphaToCountryName( KGlobal::locale()->country() ) ); mCountryCombo->setCurrentText( TDEGlobal::locale()->twoAlphaToCountryName( TDEGlobal::locale()->country() ) );
mStreetTextEdit->setFocus(); mStreetTextEdit->setFocus();

@ -157,7 +157,7 @@ void AddresseeEditorWidget::setupTab1()
// Person icon // Person icon
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 0, 0 ); layout->addMultiCellWidget( label, 0, 1, 0, 0 );
@ -212,7 +212,7 @@ void AddresseeEditorWidget::setupTab1()
////////////////////////////////////// //////////////////////////////////////
// Phone numbers (upper right) // Phone numbers (upper right)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kaddressbook",
KIcon::Desktop, KIcon::SizeMedium ) ); KIcon::Desktop, KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 3, 3 ); layout->addMultiCellWidget( label, 0, 1, 3, 3 );
@ -226,7 +226,7 @@ void AddresseeEditorWidget::setupTab1()
////////////////////////////////////// //////////////////////////////////////
// Addresses (lower left) // Addresses (lower left)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "kfm_home", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "kfm_home", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 5, 6, 0, 0 ); layout->addMultiCellWidget( label, 5, 6, 0, 0 );
@ -237,7 +237,7 @@ void AddresseeEditorWidget::setupTab1()
////////////////////////////////////// //////////////////////////////////////
// Email / Web (lower right) // Email / Web (lower right)
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 5, 6, 3, 3 ); layout->addMultiCellWidget( label, 5, 6, 3, 3 );
@ -252,7 +252,7 @@ void AddresseeEditorWidget::setupTab1()
TQHBoxLayout *homePageLayout = new TQHBoxLayout( 0, 11, 7 ); TQHBoxLayout *homePageLayout = new TQHBoxLayout( 0, 11, 7 );
label = new TQLabel( tab1 ); label = new TQLabel( tab1 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
homePageLayout->addWidget( label ); homePageLayout->addWidget( label );
@ -325,7 +325,7 @@ void AddresseeEditorWidget::setupTab2()
// Department // Department
label = new TQLabel( tab2 ); label = new TQLabel( tab2 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 0, 1, 0, 0 ); layout->addMultiCellWidget( label, 0, 1, 0, 0 );
@ -384,7 +384,7 @@ void AddresseeEditorWidget::setupTab2()
// Personal info // Personal info
label = new TQLabel( tab2 ); label = new TQLabel( tab2 );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop,
KIcon::SizeMedium ) ); KIcon::SizeMedium ) );
layout->addMultiCellWidget( label, 4, 5, 0, 0 ); layout->addMultiCellWidget( label, 4, 5, 0, 0 );
@ -484,7 +484,7 @@ void AddresseeEditorWidget::setupCustomFieldsTabs()
{ {
TQStringList activePages = KABPrefs::instance()->advancedCustomFields(); TQStringList activePages = KABPrefs::instance()->advancedCustomFields();
const TQStringList list = KGlobal::dirs()->findAllResources( "data", "kaddressbook/contacteditorpages/*.ui", true, true ); const TQStringList list = TDEGlobal::dirs()->findAllResources( "data", "kaddressbook/contacteditorpages/*.ui", true, true );
for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) { for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
if ( activePages.find( (*it).mid( (*it).findRev('/') + 1 ) ) == activePages.end() ) if ( activePages.find( (*it).mid( (*it).findRev('/') + 1 ) ) == activePages.end() )
continue; continue;

@ -72,7 +72,7 @@ TQString LocationMap::createUrl( const KABC::Address &addr )
%c country (in ISO format) %c country (in ISO format)
*/ */
TQString urlTemplate = KABPrefs::instance()->locationMapURL().arg( KGlobal::locale()->country() ); TQString urlTemplate = KABPrefs::instance()->locationMapURL().arg( TDEGlobal::locale()->country() );
if ( urlTemplate.isEmpty() ) { if ( urlTemplate.isEmpty() ) {
KMessageBox::error( 0, i18n( "No service provider available for map lookup!\nPlease add one in the configuration dialog." ) ); KMessageBox::error( 0, i18n( "No service provider available for map lookup!\nPlease add one in the configuration dialog." ) );
return TQString(); return TQString();

@ -105,7 +105,7 @@ void KAB::DistributionListEntryView::setEntry( const KPIM::DistributionList& lis
TQPixmap pixmap; TQPixmap pixmap;
pixmap.convertFromImage( m_entry.addressee.photo().data() ); pixmap.convertFromImage( m_entry.addressee.photo().data() );
m_imageLabel->setPixmap( pixmap.isNull() ? KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) : pixmap ); m_imageLabel->setPixmap( pixmap.isNull() ? TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) : pixmap );
m_addresseeLabel->setText( i18n( "Formatted name, role, organization", "<qt><h2>%1</h2><p>%2<br/>%3</p></qt>" ).arg( m_entry.addressee.formattedName(), m_entry.addressee.role(), m_entry.addressee.organization() ) ); m_addresseeLabel->setText( i18n( "Formatted name, role, organization", "<qt><h2>%1</h2><p>%2<br/>%3</p></qt>" ).arg( m_entry.addressee.formattedName(), m_entry.addressee.role(), m_entry.addressee.organization() ) );
m_distListLabel->setURL( m_list.name() ); m_distListLabel->setURL( m_list.name() );
m_distListLabel->setText( m_list.name() ); m_distListLabel->setText( m_list.name() );

@ -54,8 +54,8 @@ extern "C" {
CryptoWidgetFactory::CryptoWidgetFactory() CryptoWidgetFactory::CryptoWidgetFactory()
{ {
KGlobal::locale()->insertCatalogue( "libkleopatra" ); TDEGlobal::locale()->insertCatalogue( "libkleopatra" );
KGlobal::iconLoader()->addAppDir( "libkleopatra" ); TDEGlobal::iconLoader()->addAppDir( "libkleopatra" );
} }
TQString CryptoWidgetFactory::pageTitle() const TQString CryptoWidgetFactory::pageTitle() const

@ -221,7 +221,7 @@ DistributionListWidget::DistributionListWidget( KAB::Core *core, TQWidget *paren
installEventFilter( catcher ); installEventFilter( catcher );
mContactView->installEventFilter( catcher ); mContactView->installEventFilter( catcher );
mContactView->restoreLayout( KGlobal::config(), "DistributionListViewColumns" ); mContactView->restoreLayout( TDEGlobal::config(), "DistributionListViewColumns" );
KAcceleratorManager::manage( this ); KAcceleratorManager::manage( this );
} }
@ -232,7 +232,7 @@ DistributionListWidget::~DistributionListWidget()
delete mManager; delete mManager;
#endif #endif
mContactView->saveLayout( KGlobal::config(), "DistributionListViewColumns" ); mContactView->saveLayout( TDEGlobal::config(), "DistributionListViewColumns" );
} }
void DistributionListWidget::save() void DistributionListWidget::save()

@ -64,7 +64,7 @@ class ResourceItem : public TQCheckListItem
mResourceIdentifier() mResourceIdentifier()
{ {
setOn( resource->isActive() ); setOn( resource->isActive() );
setPixmap( 0, KGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) );
mChecked = isOn(); mChecked = isOn();
} }
@ -77,7 +77,7 @@ class ResourceItem : public TQCheckListItem
{ {
KPIM::ResourceABC* res = dynamic_cast<KPIM::ResourceABC *>( mResource ); KPIM::ResourceABC* res = dynamic_cast<KPIM::ResourceABC *>( mResource );
setOn( res->subresourceActive( mResourceIdentifier ) ); setOn( res->subresourceActive( mResourceIdentifier ) );
setPixmap( 0, KGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "contents", KIcon::Small ) );
mChecked = isOn(); mChecked = isOn();
} }

@ -54,7 +54,7 @@ GeoWidget::GeoWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name
topLayout->setSpacing( KDialog::spacingHint() ); topLayout->setSpacing( KDialog::spacingHint() );
label = new TQLabel( this ); label = new TQLabel( this );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "package_network", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "package_network",
KIcon::Desktop, KIcon::SizeMedium ) ); KIcon::Desktop, KIcon::SizeMedium ) );
label->setAlignment( TQt::AlignTop ); label->setAlignment( TQt::AlignTop );
topLayout->addMultiCellWidget( label, 0, 3, 0, 0 ); topLayout->addMultiCellWidget( label, 0, 3, 0, 0 );

@ -144,7 +144,7 @@ void ImageButton::startDrag()
void ImageButton::updateGUI() void ImageButton::updateGUI()
{ {
if ( mPicture.data().isNull() ) if ( mPicture.data().isNull() )
setPixmap( KGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop ) ); setPixmap( TDEGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop ) );
else else
setPixmap( mPicture.data() ); setPixmap( mPicture.data() );
} }
@ -208,7 +208,7 @@ void ImageButton::mouseMoveEvent( TQMouseEvent *event )
{ {
if ( (event->state() & Qt::LeftButton) && if ( (event->state() & Qt::LeftButton) &&
(event->pos() - mDragStartPos).manhattanLength() > (event->pos() - mDragStartPos).manhattanLength() >
KGlobalSettings::dndEventDelay() ) { TDEGlobalSettings::dndEventDelay() ) {
startDrag(); startDrag();
} }
} }

@ -47,7 +47,7 @@ class TDEApplication;
class KDE_NO_EXPORT localXXPortFactory : public KAB::XXPortFactory { \ class KDE_NO_EXPORT localXXPortFactory : public KAB::XXPortFactory { \
KAB::XXPort *xxportObject( KABC::AddressBook *ab, TQWidget *parent, const char *name ) \ KAB::XXPort *xxportObject( KABC::AddressBook *ab, TQWidget *parent, const char *name ) \
{ const char *cat = catalog; \ { const char *cat = catalog; \
if (cat) KGlobal::locale()->insertCatalogue(cat); \ if (cat) TDEGlobal::locale()->insertCatalogue(cat); \
return new XXPortClass( ab, parent, name ); \ return new XXPortClass( ab, parent, name ); \
} \ } \
}; \ }; \

@ -56,7 +56,7 @@ KAddressbookPart::KAddressbookPart( TQWidget *parentWidget, const char *widgetNa
TQVBoxLayout *topLayout = new TQVBoxLayout( canvas ); TQVBoxLayout *topLayout = new TQVBoxLayout( canvas );
KGlobal::iconLoader()->addAppDir( "kaddressbook" ); TDEGlobal::iconLoader()->addAppDir( "kaddressbook" );
mCore = new KABCore( this, true, canvas ); mCore = new KABCore( this, true, canvas );
mCore->restoreSettings(); mCore->restoreSettings();

@ -174,7 +174,7 @@ void KAddressBookMain::saveToProfile( const TQString& ) const
void KAddressBookMain::configureToolbars() void KAddressBookMain::configureToolbars()
{ {
saveMainWindowSettings( KGlobal::config(), "MainWindow" ); saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar edit( factory() ); KEditToolbar edit( factory() );
connect( &edit, TQT_SIGNAL( newToolbarConfig() ), connect( &edit, TQT_SIGNAL( newToolbarConfig() ),
@ -186,7 +186,7 @@ void KAddressBookMain::configureToolbars()
void KAddressBookMain::newToolbarConfig() void KAddressBookMain::newToolbarConfig()
{ {
createGUI( "kaddressbookui.rc", false ); createGUI( "kaddressbookui.rc", false );
applyMainWindowSettings( KGlobal::config(), "MainWindow" ); applyMainWindowSettings( TDEGlobal::config(), "MainWindow" );
} }
#include "kaddressbookmain.moc" #include "kaddressbookmain.moc"

@ -171,7 +171,7 @@ void KABConfigWidget::restoreSettings()
mFaxHook->setText( KABPrefs::instance()->faxHookApplication() ); mFaxHook->setText( KABPrefs::instance()->faxHookApplication() );
mAddresseeWidget->restoreSettings(); mAddresseeWidget->restoreSettings();
mEditorCombo->setCurrentItem( KABPrefs::instance()->editorType() ); mEditorCombo->setCurrentItem( KABPrefs::instance()->editorType() );
mLocationMapURL->setCurrentText( KABPrefs::instance()->locationMapURL().arg( KGlobal::locale()->country() ) ); mLocationMapURL->setCurrentText( KABPrefs::instance()->locationMapURL().arg( TDEGlobal::locale()->country() ) );
mLocationMapURL->lineEdit()->setCursorPosition( 0 ); mLocationMapURL->lineEdit()->setCursorPosition( 0 );
KConfig config( "kabcrc", false, false ); KConfig config( "kabcrc", false, false );

@ -72,6 +72,6 @@ TQString KCMKabCustomFields::applicationName()
TQString KCMKabCustomFields::kabLocalDir() TQString KCMKabCustomFields::kabLocalDir()
{ {
TQStringList kabdirs = locateLocal("data", "kaddressbook/"); TQStringList kabdirs = locateLocal("data", "kaddressbook/");
return kabdirs.grep( TQRegExp( "^"+KGlobal::dirs()->localtdedir() ) ).first(); return kabdirs.grep( TQRegExp( "^"+TDEGlobal::dirs()->localtdedir() ) ).first();
} }

@ -573,7 +573,7 @@ KABC::Addressee::List LDAPSearchDialog::importContactsUnlessTheyExist( const TQV
if ( existing.isEmpty() ) { if ( existing.isEmpty() ) {
addr.setUid( TDEApplication::randomString( 10 ) ); addr.setUid( TDEApplication::randomString( 10 ) );
addr.setNote( i18n( "arguments are host name, datetime", "Imported from LDAP directory %1 on %2" ).arg( d->itemToServer[cli], KGlobal::locale()->formatDateTime( now ) ) ); addr.setNote( i18n( "arguments are host name, datetime", "Imported from LDAP directory %1 on %2" ).arg( d->itemToServer[cli], TDEGlobal::locale()->formatDateTime( now ) ) );
addr.setResource( resource ); addr.setResource( resource );
mCore->addressBook()->insertAddressee( addr ); mCore->addressBook()->insertAddressee( addr );
TQString displayString; TQString displayString;

@ -121,7 +121,7 @@ int main( int argc, char *argv[] )
return 0; return 0;
KAddressBookApp app; KAddressBookApp app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
bool ret = app.exec(); bool ret = app.exec();
while (KMainWindow::memberList->first()) while (KMainWindow::memberList->first())

@ -72,8 +72,8 @@ DetailledPrintStyle::DetailledPrintStyle( PrintingWizard *parent, const char *na
KConfig *config; KConfig *config;
TQFont font; TQFont font;
bool kdeFonts; bool kdeFonts;
TQFont standard = KGlobalSettings::generalFont(); TQFont standard = TDEGlobalSettings::generalFont();
TQFont fixed = KGlobalSettings::fixedFont(); TQFont fixed = TDEGlobalSettings::fixedFont();
setPreview( "detailed-style.png" ); setPreview( "detailed-style.png" );
@ -163,11 +163,11 @@ void DetailledPrintStyle::print( const KABC::Addressee::List &contacts, PrintPro
} }
if ( mPageAppearance->cbStandardFonts->isChecked() ) { if ( mPageAppearance->cbStandardFonts->isChecked() ) {
TQFont standard = KGlobalSettings::generalFont(); TQFont standard = TDEGlobalSettings::generalFont();
header = standard; header = standard;
headlines = standard; headlines = standard;
body = standard; body = standard;
fixed = KGlobalSettings::fixedFont(); fixed = TDEGlobalSettings::fixedFont();
comment = standard; comment = standard;
} else { } else {
header.setFamily( mPageAppearance->kfcHeaderFont->currentText() ); header.setFamily( mPageAppearance->kfcHeaderFont->currentText() );

@ -208,7 +208,7 @@ bool KABEntryPainter::printAddressee( const KABC::Addressee &addr,
// paint the birthday to the right: // paint the birthday to the right:
TQDateTime dt = addr.birthday(); TQDateTime dt = addr.birthday();
if ( dt.isValid() ) { if ( dt.isValid() ) {
line1 = KGlobal::locale()->formatDate( dt.date(), true ); line1 = TDEGlobal::locale()->formatDate( dt.date(), true );
if ( !fake ) { if ( !fake ) {
// create a little (1/8) space on top of the letters: // create a little (1/8) space on top of the letters:
float ypos = y + ( (float)rect.height() ) * 0.125; float ypos = y + ( (float)rect.height() ) * 0.125;

@ -205,7 +205,7 @@ void MikesStyle::paintTagLine( TQPainter &p, const TQFont &font )
TQFontMetrics fm( font ); TQFontMetrics fm( font );
TQString text = i18n( "Printed on %1 by KAddressBook (http://www.kde.org)" ) TQString text = i18n( "Printed on %1 by KAddressBook (http://www.kde.org)" )
.arg( KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) ); .arg( TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) );
p.setPen( TQt::black ); p.setPen( TQt::black );
p.drawText( 0, fm.height(), text ); p.drawText( 0, fm.height(), text );

@ -46,7 +46,7 @@ SoundWidget::SoundWidget( KABC::AddressBook *ab, TQWidget *parent, const char *n
KDialog::spacingHint() ); KDialog::spacingHint() );
TQLabel *label = new TQLabel( this ); TQLabel *label = new TQLabel( this );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "multimedia", label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "multimedia",
KIcon::Desktop, KIcon::SizeMedium ) ); KIcon::Desktop, KIcon::SizeMedium ) );
label->setAlignment( TQt::AlignTop ); label->setAlignment( TQt::AlignTop );
topLayout->addMultiCellWidget( label, 0, 1, 0, 0 ); topLayout->addMultiCellWidget( label, 0, 1, 0, 0 );

@ -48,7 +48,7 @@ extern "C"
{ {
ThumbCreator *new_creator() ThumbCreator *new_creator()
{ {
KGlobal::locale()->insertCatalogue( "kaddressbook" ); TDEGlobal::locale()->insertCatalogue( "kaddressbook" );
return new VCard_LDIFCreator; return new VCard_LDIFCreator;
} }
} }
@ -238,7 +238,7 @@ bool VCard_LDIFCreator::createImageSmall()
bool VCard_LDIFCreator::createImageBig() bool VCard_LDIFCreator::createImageBig()
{ {
TQFont normalFont( KGlobalSettings::generalFont() ); TQFont normalFont( TDEGlobalSettings::generalFont() );
TQFont titleFont( normalFont ); TQFont titleFont( normalFont );
titleFont.setBold(true); titleFont.setBold(true);
// titleFont.setUnderline(true); // titleFont.setUnderline(true);

@ -48,7 +48,7 @@ ViewConfigureWidget::ViewConfigureWidget( KABC::AddressBook *ab, TQWidget *paren
// Add the first page, the attributes // Add the first page, the attributes
TQVBox *page = addPage( i18n( "Fields" ), TQString(), TQVBox *page = addPage( i18n( "Fields" ), TQString(),
KGlobal::iconLoader()->loadIcon( "view_detailed", TDEGlobal::iconLoader()->loadIcon( "view_detailed",
KIcon::Panel ) ); KIcon::Panel ) );
// Add the select fields page // Add the select fields page
@ -56,7 +56,7 @@ ViewConfigureWidget::ViewConfigureWidget( KABC::AddressBook *ab, TQWidget *paren
// Add the second page, the filter selection // Add the second page, the filter selection
page = addPage( i18n( "Default Filter" ), TQString(), page = addPage( i18n( "Default Filter" ), TQString(),
KGlobal::iconLoader()->loadIcon( "filter", TDEGlobal::iconLoader()->loadIcon( "filter",
KIcon::Panel ) ); KIcon::Panel ) );
mFilterPage = new ViewConfigureFilterPage( page ); mFilterPage = new ViewConfigureFilterPage( page );

@ -497,7 +497,7 @@ void ViewManager::startDrag()
} }
} }
drag->setPixmap( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); drag->setPixmap( TDEGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) );
drag->dragCopy(); drag->dragCopy();
} }

@ -1129,7 +1129,7 @@ void CardView::contentsMouseReleaseEvent( TQMouseEvent *e )
// Get the item at this position // Get the item at this position
CardViewItem *item = itemAt( e->pos() ); CardViewItem *item = itemAt( e->pos() );
if ( item && KGlobalSettings::singleClick() ) if ( item && TDEGlobalSettings::singleClick() )
emit executed( item ); emit executed( item );
} }
@ -1142,7 +1142,7 @@ void CardView::contentsMouseDoubleClickEvent( TQMouseEvent *e )
if ( item ) if ( item )
d->mCurrentItem = item; d->mCurrentItem = item;
if ( item && !KGlobalSettings::singleClick() ) if ( item && !TDEGlobalSettings::singleClick() )
emit executed(item); emit executed(item);
emit doubleClicked( item ); emit doubleClicked( item );

@ -91,7 +91,7 @@ void CardViewLookNFeelPage::restoreSettings( KConfig *config )
// colors // colors
cbEnableCustomColors->setChecked( config->readBoolEntry( "EnableCustomColors", false ) ); cbEnableCustomColors->setChecked( config->readBoolEntry( "EnableCustomColors", false ) );
TQColor c; TQColor c;
c = KGlobalSettings::baseColor(); c = TDEGlobalSettings::baseColor();
lbColors->insertItem( new ColorListItem( i18n("Background Color"), lbColors->insertItem( new ColorListItem( i18n("Background Color"),
config->readColorEntry( "BackgroundColor", &c ) ) ); config->readColorEntry( "BackgroundColor", &c ) ) );
c = colorGroup().foreground(); c = colorGroup().foreground();

@ -46,7 +46,7 @@ ConfigureTableViewWidget::ConfigureTableViewWidget( KABC::AddressBook *ab,
: ViewConfigureWidget( ab, parent, name ) : ViewConfigureWidget( ab, parent, name )
{ {
TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(), TQWidget *page = addPage( i18n( "Look & Feel" ), TQString(),
KGlobal::iconLoader()->loadIcon( "looknfeel", TDEGlobal::iconLoader()->loadIcon( "looknfeel",
KIcon::Panel ) ); KIcon::Panel ) );
mPage = new LookAndFeelPage( page ); mPage = new LookAndFeelPage( page );

@ -240,7 +240,7 @@ void ContactListViewItem::refresh()
if ( (*it)->label() == KABC::Addressee::birthdayLabel() ) { if ( (*it)->label() == KABC::Addressee::birthdayLabel() ) {
TQDate date = mAddressee.birthday().date(); TQDate date = mAddressee.birthday().date();
if ( date.isValid() ) if ( date.isValid() )
setText( i++, KGlobal::locale()->formatDate( date, true ) ); setText( i++, TDEGlobal::locale()->formatDate( date, true ) );
else else
setText( i++, "" ); setText( i++, "" );
} else } else
@ -268,7 +268,7 @@ ContactListView::ContactListView(KAddressBookTableView *view,
mSingleLine = false; mSingleLine = false;
mToolTips = true; mToolTips = true;
mShowIM = true; mShowIM = true;
mAlternateColor = KGlobalSettings::alternateBackgroundColor(); mAlternateColor = TDEGlobalSettings::alternateBackgroundColor();
setAlternateBackgroundEnabled(mABackground); setAlternateBackgroundEnabled(mABackground);
setAcceptDrops( true ); setAcceptDrops( true );

@ -112,7 +112,7 @@ class AddresseeIconViewItem : public KIconViewItem
setText( mAddressee.givenName() + " " + mAddressee.familyName() ); setText( mAddressee.givenName() + " " + mAddressee.familyName() );
TQPixmap icon; TQPixmap icon;
TQPixmap defaultIcon( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); TQPixmap defaultIcon( TDEGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) );
KABC::Picture pic = mAddressee.photo(); KABC::Picture pic = mAddressee.photo();
if ( pic.data().isNull() ) if ( pic.data().isNull() )
pic = mAddressee.logo(); pic = mAddressee.logo();

@ -792,7 +792,7 @@ void CSVImportDialog::applyTemplate()
TQStringList templates; TQStringList templates;
// load all template files // load all template files
TQStringList list = KGlobal::dirs()->findAllResources( "data" , TQString( kapp->name() ) + TQStringList list = TDEGlobal::dirs()->findAllResources( "data" , TQString( kapp->name() ) +
"/csv-templates/*.desktop", true, true ); "/csv-templates/*.desktop", true, true );
for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it )

@ -59,7 +59,7 @@ KABC::AddresseeList KDE2XXPort::importContacts( const TQString& ) const
if ( !result ) return KABC::AddresseeList(); if ( !result ) return KABC::AddresseeList();
KProcess proc; TDEProcess proc;
if ( result == KMessageBox::Yes ) { if ( result == KMessageBox::Yes ) {
proc << "kab2kabc"; proc << "kab2kabc";
@ -70,7 +70,7 @@ KABC::AddresseeList KDE2XXPort::importContacts( const TQString& ) const
kdDebug(5720) << "KAddressBook::importKDE2(): Unknow return value." << endl; kdDebug(5720) << "KAddressBook::importKDE2(): Unknow return value." << endl;
return KABC::AddresseeList(); return KABC::AddresseeList();
} }
proc.start( KProcess::Block ); proc.start( TDEProcess::Block );
addressBook()->load(); addressBook()->load();

@ -493,7 +493,7 @@ TQString AlarmListViewItem::alarmText(const KAEvent& event) const
*/ */
TQString AlarmListViewItem::alarmTimeText(const DateTime& dateTime) const TQString AlarmListViewItem::alarmTimeText(const DateTime& dateTime) const
{ {
KLocale* locale = KGlobal::locale(); KLocale* locale = TDEGlobal::locale();
TQString dateTimeText = locale->formatDate(dateTime.date(), true); TQString dateTimeText = locale->formatDate(dateTime.date(), true);
if (!dateTime.isDateOnly()) if (!dateTime.isDateOnly())
{ {

@ -401,7 +401,7 @@ AddresseeItem::AddresseeItem(TQListView* parent, const TQString& name, const TQD
mBirthday(birthday) mBirthday(birthday)
{ {
setText(NAME, name); setText(NAME, name);
setText(BIRTHDAY, KGlobal::locale()->formatDate(mBirthday, true)); setText(BIRTHDAY, TDEGlobal::locale()->formatDate(mBirthday, true));
mBirthdayOrder.sprintf("%04d%03d", mBirthday.year(), mBirthday.dayOfYear()); mBirthdayOrder.sprintf("%04d%03d", mBirthday.year(), mBirthday.dayOfYear());
} }

@ -745,7 +745,7 @@ bool runProgram(const TQCString& program, const TQCString& windowName, TQCString
*/ */
bool readConfigWindowSize(const char* window, TQSize& result) bool readConfigWindowSize(const char* window, TQSize& result)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1(window)); config->setGroup(TQString::fromLatin1(window));
TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop());
TQSize s = TQSize(config->readNumEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), 0), TQSize s = TQSize(config->readNumEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), 0),
@ -762,7 +762,7 @@ bool readConfigWindowSize(const char* window, TQSize& result)
*/ */
void writeConfigWindowSize(const char* window, const TQSize& size) void writeConfigWindowSize(const char* window, const TQSize& size)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1(window)); config->setGroup(TQString::fromLatin1(window));
TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop());
config->writeEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), size.width()); config->writeEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), size.width());
@ -894,7 +894,7 @@ int localeFirstDayOfWeek()
{ {
static int firstDay = 0; static int firstDay = 0;
if (!firstDay) if (!firstDay)
firstDay = KGlobal::locale()->weekStartDay(); firstDay = TDEGlobal::locale()->weekStartDay();
return firstDay; return firstDay;
} }

@ -1697,7 +1697,7 @@ void* KAlarmApp::execAlarm(KAEvent& event, const KAAlarm& alarm, bool reschedule
ShellProcess* KAlarmApp::doShellCommand(const TQString& command, const KAEvent& event, const KAAlarm* alarm, int flags) ShellProcess* KAlarmApp::doShellCommand(const TQString& command, const KAEvent& event, const KAAlarm* alarm, int flags)
{ {
kdDebug(5950) << "KAlarmApp::doShellCommand(" << command << ", " << event.id() << ")" << endl; kdDebug(5950) << "KAlarmApp::doShellCommand(" << command << ", " << event.id() << ")" << endl;
KProcess::Communication comms = KProcess::NoCommunication; TDEProcess::Communication comms = TDEProcess::NoCommunication;
TQString cmd; TQString cmd;
TQString tmpXtermFile; TQString tmpXtermFile;
if (flags & ProcData::EXEC_IN_XTERM) if (flags & ProcData::EXEC_IN_XTERM)
@ -1748,26 +1748,26 @@ ShellProcess* KAlarmApp::doShellCommand(const TQString& command, const KAEvent&
else else
{ {
cmd = command; cmd = command;
comms = KProcess::AllOutput; comms = TDEProcess::AllOutput;
} }
ShellProcess* proc = new ShellProcess(cmd); ShellProcess* proc = new ShellProcess(cmd);
connect(proc, TQT_SIGNAL(shellExited(ShellProcess*)), TQT_SLOT(slotCommandExited(ShellProcess*))); connect(proc, TQT_SIGNAL(shellExited(ShellProcess*)), TQT_SLOT(slotCommandExited(ShellProcess*)));
TQGuardedPtr<ShellProcess> logproc = 0; TQGuardedPtr<ShellProcess> logproc = 0;
if (comms == KProcess::AllOutput && !event.logFile().isEmpty()) if (comms == TDEProcess::AllOutput && !event.logFile().isEmpty())
{ {
// Output is to be appended to a log file. // Output is to be appended to a log file.
// Set up a logging process to write the command's output to. // Set up a logging process to write the command's output to.
connect(proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), TQT_SLOT(slotCommandOutput(KProcess*,char*,int))); connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), TQT_SLOT(slotCommandOutput(TDEProcess*,char*,int)));
connect(proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), TQT_SLOT(slotCommandOutput(KProcess*,char*,int))); connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), TQT_SLOT(slotCommandOutput(TDEProcess*,char*,int)));
logproc = new ShellProcess(TQString::fromLatin1("cat >>%1").arg(event.logFile())); logproc = new ShellProcess(TQString::fromLatin1("cat >>%1").arg(event.logFile()));
connect(logproc, TQT_SIGNAL(shellExited(ShellProcess*)), TQT_SLOT(slotLogProcExited(ShellProcess*))); connect(logproc, TQT_SIGNAL(shellExited(ShellProcess*)), TQT_SLOT(slotLogProcExited(ShellProcess*)));
logproc->start(KProcess::Stdin); logproc->start(TDEProcess::Stdin);
TQCString heading; TQCString heading;
if (alarm && alarm->dateTime().isValid()) if (alarm && alarm->dateTime().isValid())
{ {
TQString dateTime = alarm->dateTime().isDateOnly() TQString dateTime = alarm->dateTime().isDateOnly()
? KGlobal::locale()->formatDate(alarm->dateTime().date(), true) ? TDEGlobal::locale()->formatDate(alarm->dateTime().date(), true)
: KGlobal::locale()->formatDateTime(alarm->dateTime().dateTime()); : TDEGlobal::locale()->formatDateTime(alarm->dateTime().dateTime());
heading.sprintf("\n******* KAlarm %s *******\n", dateTime.latin1()); heading.sprintf("\n******* KAlarm %s *******\n", dateTime.latin1());
} }
else else
@ -1822,7 +1822,7 @@ TQString KAlarmApp::createTempScriptFile(const TQString& command, bool insertShe
/****************************************************************************** /******************************************************************************
* Called when an executing command alarm sends output to stdout or stderr. * Called when an executing command alarm sends output to stdout or stderr.
*/ */
void KAlarmApp::slotCommandOutput(KProcess* proc, char* buffer, int bufflen) void KAlarmApp::slotCommandOutput(TDEProcess* proc, char* buffer, int bufflen)
{ {
//kdDebug(5950) << "KAlarmApp::slotCommandOutput(): '" << TQCString(buffer, bufflen+1) << "'\n"; //kdDebug(5950) << "KAlarmApp::slotCommandOutput(): '" << TQCString(buffer, bufflen+1) << "'\n";
// Find this command in the command list // Find this command in the command list

@ -29,7 +29,7 @@ class TQDateTime;
#include <kuniqueapplication.h> #include <kuniqueapplication.h>
#include <kurl.h> #include <kurl.h>
class KProcess; class TDEProcess;
namespace KCal { class Event; } namespace KCal { class Event; }
#include "alarmevent.h" #include "alarmevent.h"
@ -99,7 +99,7 @@ class KAlarmApp : public KUniqueApplication
private slots: private slots:
void quitFatal(); void quitFatal();
void slotPreferencesChanged(); void slotPreferencesChanged();
void slotCommandOutput(KProcess*, char* buffer, int bufflen); void slotCommandOutput(TDEProcess*, char* buffer, int bufflen);
void slotLogProcExited(ShellProcess*); void slotLogProcExited(ShellProcess*);
void slotCommandExited(ShellProcess*); void slotCommandExited(ShellProcess*);
void slotSystemTrayTimer(); void slotSystemTrayTimer();

@ -48,7 +48,7 @@ void ADConfigData::readConfig()
{ {
kdDebug(5900) << "ADConfigData::readConfig()" << endl; kdDebug(5900) << "ADConfigData::readConfig()" << endl;
ClientInfo::clear(); ClientInfo::clear();
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
TQStringList clients = config->groupList().grep(CLIENT_GROUP_SEARCH); TQStringList clients = config->groupList().grep(CLIENT_GROUP_SEARCH);
for (TQStringList::Iterator cl = clients.begin(); cl != clients.end(); ++cl) for (TQStringList::Iterator cl = clients.begin(); cl != clients.end(); ++cl)
{ {
@ -101,7 +101,7 @@ void ADConfigData::readConfig()
*/ */
void ADConfigData::writeClient(const TQCString& appName, const ClientInfo* cinfo) void ADConfigData::writeClient(const TQCString& appName, const ClientInfo* cinfo)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName)); config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->writeEntry(TITLE_KEY, cinfo->title()); config->writeEntry(TITLE_KEY, cinfo->title());
config->writeEntry(DCOP_OBJECT_KEY, TQString(TQString::fromLocal8Bit(cinfo->dcopObject()))); config->writeEntry(DCOP_OBJECT_KEY, TQString(TQString::fromLocal8Bit(cinfo->dcopObject())));
@ -115,7 +115,7 @@ void ADConfigData::writeClient(const TQCString& appName, const ClientInfo* cinfo
*/ */
void ADConfigData::removeClient(const TQCString& appName) void ADConfigData::removeClient(const TQCString& appName)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->deleteGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName)); config->deleteGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->sync(); config->sync();
} }
@ -125,7 +125,7 @@ void ADConfigData::removeClient(const TQCString& appName)
*/ */
void ADConfigData::setCalendar(const TQCString& appName, ADCalendar* cal) void ADConfigData::setCalendar(const TQCString& appName, ADCalendar* cal)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName)); config->setGroup(CLIENT_GROUP + TQString::fromLocal8Bit(appName));
config->writePathEntry(CALENDAR_KEY, cal->urlString()); config->writePathEntry(CALENDAR_KEY, cal->urlString());
config->sync(); config->sync();
@ -137,7 +137,7 @@ void ADConfigData::setCalendar(const TQCString& appName, ADCalendar* cal)
void ADConfigData::enableAutoStart(bool on) void ADConfigData::enableAutoStart(bool on)
{ {
kdDebug(5900) << "ADConfigData::enableAutoStart(" << on << ")\n"; kdDebug(5900) << "ADConfigData::enableAutoStart(" << on << ")\n";
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->reparseConfiguration(); config->reparseConfiguration();
config->setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION)); config->setGroup(TQString::fromLatin1(DAEMON_AUTOSTART_SECTION));
config->writeEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), on); config->writeEntry(TQString::fromLatin1(DAEMON_AUTOSTART_KEY), on);

@ -503,7 +503,7 @@ bool AlarmDaemon::notifyEvent(ADCalendar* calendar, const TQString& eventID)
} }
// Start KAlarm, using the command line to specify the alarm // Start KAlarm, using the command line to specify the alarm
KProcess p; TDEProcess p;
TQString cmd = locate("exe", appname); TQString cmd = locate("exe", appname);
if (cmd.isEmpty()) if (cmd.isEmpty())
{ {
@ -512,7 +512,7 @@ bool AlarmDaemon::notifyEvent(ADCalendar* calendar, const TQString& eventID)
} }
p << cmd; p << cmd;
p << "--handleEvent" << id << "--calendarURL" << calendar->urlString(); p << "--handleEvent" << id << "--calendarURL" << calendar->urlString();
p.start(KProcess::DontCare); p.start(TDEProcess::DontCare);
kdDebug(5900) << "AlarmDaemon::notifyEvent(): used command line" << endl; kdDebug(5900) << "AlarmDaemon::notifyEvent(): used command line" << endl;
return true; return true;
} }

@ -80,7 +80,7 @@ void DateEdit::pastLimitMessage(const TQDate& limit, const TQString& error, cons
if (limit == TQDate::currentDate()) if (limit == TQDate::currentDate())
errString = i18n("today"); errString = i18n("today");
else else
errString = KGlobal::locale()->formatDate(limit, true); errString = TDEGlobal::locale()->formatDate(limit, true);
errString = defaultError.arg(errString); errString = defaultError.arg(errString);
} }
KMessageBox::sorry(this, errString); KMessageBox::sorry(this, errString);

@ -39,9 +39,9 @@ TQDateTime DateTime::dateTime() const
TQString DateTime::formatLocale(bool shortFormat) const TQString DateTime::formatLocale(bool shortFormat) const
{ {
if (mDateOnly) if (mDateOnly)
return KGlobal::locale()->formatDate(mDateTime.date(), shortFormat); return TDEGlobal::locale()->formatDate(mDateTime.date(), shortFormat);
else if (mTimeValid) else if (mTimeValid)
return KGlobal::locale()->formatDateTime(mDateTime, shortFormat); return TDEGlobal::locale()->formatDateTime(mDateTime, shortFormat);
else else
return TQString(); return TQString();
} }

@ -61,14 +61,14 @@ void LineEdit::init()
{ {
if (mType == Url) if (mType == Url)
{ {
setCompletionMode(KGlobalSettings::CompletionShell); setCompletionMode(TDEGlobalSettings::CompletionShell);
KURLCompletion* comp = new KURLCompletion(KURLCompletion::FileCompletion); KURLCompletion* comp = new KURLCompletion(KURLCompletion::FileCompletion);
comp->setReplaceHome(true); comp->setReplaceHome(true);
setCompletionObject(comp); setCompletionObject(comp);
setAutoDeleteCompletionObject(true); setAutoDeleteCompletionObject(true);
} }
else else
setCompletionMode(KGlobalSettings::CompletionNone); setCompletionMode(TDEGlobalSettings::CompletionNone);
} }
/****************************************************************************** /******************************************************************************

@ -108,7 +108,7 @@ bool MessageBox::setDefaultShouldBeShownContinue(const TQString& dontShowAgainNa
if (dontShowAgainName.isEmpty()) if (dontShowAgainName.isEmpty())
return false; return false;
// First check whether there is an existing setting // First check whether there is an existing setting
KConfig* config = mConfig ? mConfig : KGlobal::config(); KConfig* config = mConfig ? mConfig : TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Notification Messages")); config->setGroup(TQString::fromLatin1("Notification Messages"));
if (config->hasKey(dontShowAgainName)) if (config->hasKey(dontShowAgainName))
return false; return false;
@ -167,7 +167,7 @@ void MessageBox::saveDontShowAgain(const TQString& dontShowAgainName, bool yesno
{ {
if (dontShowAgainName.isEmpty()) if (dontShowAgainName.isEmpty())
return; return;
KConfig* config = mConfig ? mConfig : KGlobal::config(); KConfig* config = mConfig ? mConfig : TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Notification Messages")); config->setGroup(TQString::fromLatin1("Notification Messages"));
bool global = (dontShowAgainName[0] == ':'); bool global = (dontShowAgainName[0] == ':');
if (yesno) if (yesno)

@ -56,9 +56,9 @@ bool ShellProcess::start(Communication comm)
return false; return false;
} }
KShellProcess::operator<<(mCommand); KShellProcess::operator<<(mCommand);
connect(this, TQT_SIGNAL(wroteStdin(KProcess*)), TQT_SLOT(writtenStdin(KProcess*))); connect(this, TQT_SIGNAL(wroteStdin(TDEProcess*)), TQT_SLOT(writtenStdin(TDEProcess*)));
connect(this, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotExited(KProcess*))); connect(this, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(slotExited(TDEProcess*)));
if (!KShellProcess::start(KProcess::NotifyOnExit, comm)) if (!KShellProcess::start(TDEProcess::NotifyOnExit, comm))
{ {
mStatus = START_FAIL; mStatus = START_FAIL;
return false; return false;
@ -72,7 +72,7 @@ bool ShellProcess::start(Communication comm)
* Interprets the exit status according to which shell was called, and emits * Interprets the exit status according to which shell was called, and emits
* a shellExited() signal. * a shellExited() signal.
*/ */
void ShellProcess::slotExited(KProcess* proc) void ShellProcess::slotExited(TDEProcess* proc)
{ {
kdDebug(5950) << "ShellProcess::slotExited()\n"; kdDebug(5950) << "ShellProcess::slotExited()\n";
mStdinQueue.clear(); mStdinQueue.clear();
@ -105,7 +105,7 @@ void ShellProcess::writeStdin(const char* buffer, int bufflen)
bool write = mStdinQueue.isEmpty(); bool write = mStdinQueue.isEmpty();
mStdinQueue.append(scopy); mStdinQueue.append(scopy);
if (write) if (write)
KProcess::writeStdin(mStdinQueue.first(), mStdinQueue.first().length()); TDEProcess::writeStdin(mStdinQueue.first(), mStdinQueue.first().length());
} }
/****************************************************************************** /******************************************************************************
@ -114,7 +114,7 @@ void ShellProcess::writeStdin(const char* buffer, int bufflen)
* Note that buffers written to STDIN must not be freed until the writtenStdin() * Note that buffers written to STDIN must not be freed until the writtenStdin()
* signal has been processed. * signal has been processed.
*/ */
void ShellProcess::writtenStdin(KProcess* proc) void ShellProcess::writtenStdin(TDEProcess* proc)
{ {
mStdinQueue.pop_front(); // free the buffer which has now been written mStdinQueue.pop_front(); // free the buffer which has now been written
if (!mStdinQueue.isEmpty()) if (!mStdinQueue.isEmpty())

@ -116,8 +116,8 @@ class ShellProcess : public KShellProcess
void shellExited(ShellProcess*); void shellExited(ShellProcess*);
private slots: private slots:
void writtenStdin(KProcess*); void writtenStdin(TDEProcess*);
void slotExited(KProcess*); void slotExited(TDEProcess*);
private: private:
// Prohibit the following inherited methods // Prohibit the following inherited methods

@ -35,7 +35,7 @@ TimeEdit::TimeEdit(TQWidget* parent, const char* name)
mPmIndex(-1), mPmIndex(-1),
mReadOnly(false) mReadOnly(false)
{ {
bool use12hour = KGlobal::locale()->use12Clock(); bool use12hour = TDEGlobal::locale()->use12Clock();
mSpinBox = new TimeSpinBox(!use12hour, this); mSpinBox = new TimeSpinBox(!use12hour, this);
mSpinBox->setFixedSize(mSpinBox->sizeHint()); mSpinBox->setFixedSize(mSpinBox->sizeHint());
connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)));
@ -174,7 +174,7 @@ void TimeEdit::setAmPmCombo(int am, int pm)
{ {
// Insert "am" // Insert "am"
mAmIndex = 0; mAmIndex = 0;
mAmPm->insertItem(KGlobal::locale()->translate("am"), mAmIndex); mAmPm->insertItem(TDEGlobal::locale()->translate("am"), mAmIndex);
if (mPmIndex >= 0) if (mPmIndex >= 0)
mPmIndex = 1; mPmIndex = 1;
mAmPm->setCurrentItem(mPmIndex >= 0 ? mPmIndex : mAmIndex); mAmPm->setCurrentItem(mPmIndex >= 0 ? mPmIndex : mAmIndex);
@ -193,7 +193,7 @@ void TimeEdit::setAmPmCombo(int am, int pm)
{ {
// Insert "pm" // Insert "pm"
mPmIndex = mAmIndex + 1; mPmIndex = mAmIndex + 1;
mAmPm->insertItem(KGlobal::locale()->translate("pm"), mPmIndex); mAmPm->insertItem(TDEGlobal::locale()->translate("pm"), mPmIndex);
if (mAmIndex < 0) if (mAmIndex < 0)
mAmPm->setCurrentItem(mPmIndex); mAmPm->setCurrentItem(mPmIndex);
} }

@ -125,7 +125,7 @@ MainWindow::MainWindow(bool restored)
kdDebug(5950) << "MainWindow::MainWindow()\n"; kdDebug(5950) << "MainWindow::MainWindow()\n";
setAutoSaveSettings(TQString::fromLatin1(WINDOW_NAME)); // save window sizes etc. setAutoSaveSettings(TQString::fromLatin1(WINDOW_NAME)); // save window sizes etc.
setPlainCaption(kapp->aboutData()->programName()); setPlainCaption(kapp->aboutData()->programName());
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(VIEW_GROUP); config->setGroup(VIEW_GROUP);
mShowExpired = config->readBoolEntry(SHOW_ARCHIVED_KEY, false); mShowExpired = config->readBoolEntry(SHOW_ARCHIVED_KEY, false);
mShowTime = config->readBoolEntry(SHOW_TIME_KEY, true); mShowTime = config->readBoolEntry(SHOW_TIME_KEY, true);
@ -190,8 +190,8 @@ MainWindow::~MainWindow()
KAlarm::writeConfigWindowSize(WINDOW_NAME, main->size()); KAlarm::writeConfigWindowSize(WINDOW_NAME, main->size());
KToolBar* tb = toolBar(); KToolBar* tb = toolBar();
if (tb) if (tb)
tb->saveSettings(KGlobal::config(), "Toolbars"); tb->saveSettings(TDEGlobal::config(), "Toolbars");
KGlobal::config()->sync(); // save any new window size to disc TDEGlobal::config()->sync(); // save any new window size to disc
theApp()->quitIf(); theApp()->quitIf();
} }
@ -314,7 +314,7 @@ void MainWindow::hideEvent(TQHideEvent* he)
*/ */
void MainWindow::columnsReordered() void MainWindow::columnsReordered()
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1(WINDOW_NAME)); config->setGroup(TQString::fromLatin1(WINDOW_NAME));
config->writeEntry(TQString::fromLatin1("ColumnOrder"), mListView->columnOrder()); config->writeEntry(TQString::fromLatin1("ColumnOrder"), mListView->columnOrder());
config->sync(); config->sync();
@ -412,7 +412,7 @@ void MainWindow::initActions()
KToolBar* tb = toolBar(); KToolBar* tb = toolBar();
if (tb) if (tb)
tb->applySettings(KGlobal::config(), "Toolbars"); tb->applySettings(TDEGlobal::config(), "Toolbars");
Undo::emitChanged(); // set the Undo/Redo menu texts Undo::emitChanged(); // set the Undo/Redo menu texts
Daemon::checkStatus(); Daemon::checkStatus();
@ -792,7 +792,7 @@ void MainWindow::slotShowTime()
else else
{ {
mListView->selectTimeColumns(mShowTime, mShowTimeTo); mListView->selectTimeColumns(mShowTime, mShowTimeTo);
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(VIEW_GROUP); config->setGroup(VIEW_GROUP);
config->writeEntry(SHOW_TIME_KEY, mShowTime); config->writeEntry(SHOW_TIME_KEY, mShowTime);
config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo); config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo);
@ -811,7 +811,7 @@ void MainWindow::slotShowTimeTo()
else else
{ {
mListView->selectTimeColumns(mShowTime, mShowTimeTo); mListView->selectTimeColumns(mShowTime, mShowTimeTo);
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(VIEW_GROUP); config->setGroup(VIEW_GROUP);
config->writeEntry(SHOW_TIME_KEY, mShowTime); config->writeEntry(SHOW_TIME_KEY, mShowTime);
config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo); config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo);
@ -829,7 +829,7 @@ void MainWindow::slotShowExpired()
mActionShowExpired->setToolTip(mShowExpired ? i18n_HideExpiredAlarms() : i18n_ShowExpiredAlarms()); mActionShowExpired->setToolTip(mShowExpired ? i18n_HideExpiredAlarms() : i18n_ShowExpiredAlarms());
mListView->showExpired(mShowExpired); mListView->showExpired(mShowExpired);
mListView->refresh(); mListView->refresh();
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(VIEW_GROUP); config->setGroup(VIEW_GROUP);
config->writeEntry(SHOW_ARCHIVED_KEY, mShowExpired); config->writeEntry(SHOW_ARCHIVED_KEY, mShowExpired);
} }
@ -1086,7 +1086,7 @@ void MainWindow::slotConfigureKeys()
*/ */
void MainWindow::slotConfigureToolbar() void MainWindow::slotConfigureToolbar()
{ {
saveMainWindowSettings(KGlobal::config(), WINDOW_NAME); saveMainWindowSettings(TDEGlobal::config(), WINDOW_NAME);
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig())); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig()));
dlg.exec(); dlg.exec();
@ -1099,7 +1099,7 @@ void MainWindow::slotConfigureToolbar()
void MainWindow::slotNewToolbarConfig() void MainWindow::slotNewToolbarConfig()
{ {
createGUI(UI_FILE); createGUI(UI_FILE);
applyMainWindowSettings(KGlobal::config(), WINDOW_NAME); applyMainWindowSettings(TDEGlobal::config(), WINDOW_NAME);
} }
/****************************************************************************** /******************************************************************************
@ -1258,7 +1258,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e)
dt.setTime_t(summary.date()); dt.setTime_t(summary.date());
TQString body = KAMail::getMailBody(summary.serialNumber()); TQString body = KAMail::getMailBody(summary.serialNumber());
alarmText.setEmail(summary.to(), summary.from(), TQString(), alarmText.setEmail(summary.to(), summary.from(), TQString(),
KGlobal::locale()->formatDateTime(dt), summary.subject(), TDEGlobal::locale()->formatDateTime(dt), summary.subject(),
body, summary.serialNumber()); body, summary.serialNumber());
} }
else if (KCal::ICalDrag::decode(e, &calendar)) else if (KCal::ICalDrag::decode(e, &calendar))

@ -310,8 +310,8 @@ void MessageWin::initView()
// Alarm date/time // Alarm date/time
TQLabel* label = new TQLabel(frame ? frame : topWidget); TQLabel* label = new TQLabel(frame ? frame : topWidget);
label->setText(mDateTime.isDateOnly() label->setText(mDateTime.isDateOnly()
? KGlobal::locale()->formatDate(mDateTime.date(), true) ? TDEGlobal::locale()->formatDate(mDateTime.date(), true)
: KGlobal::locale()->formatDateTime(mDateTime.dateTime())); : TDEGlobal::locale()->formatDateTime(mDateTime.dateTime()));
if (!frame) if (!frame)
label->setFrameStyle(TQFrame::Box | TQFrame::Raised); label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
label->setFixedSize(label->sizeHint()); label->setFixedSize(label->sizeHint());

@ -214,7 +214,7 @@ void Preferences::initialise()
{ {
// Initialise static variables here to avoid static initialisation // Initialise static variables here to avoid static initialisation
// sequencing errors. // sequencing errors.
mDefault_messageFont = TQFont(KGlobalSettings::generalFont().family(), 16, TQFont::Bold); mDefault_messageFont = TQFont(TDEGlobalSettings::generalFont().family(), 16, TQFont::Bold);
mInstance = new Preferences; mInstance = new Preferences;
@ -252,7 +252,7 @@ void Preferences::read()
{ {
initialise(); initialise();
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(GENERAL_SECTION); config->setGroup(GENERAL_SECTION);
TQStringList cols = config->readListEntry(MESSAGE_COLOURS); TQStringList cols = config->readListEntry(MESSAGE_COLOURS);
if (!cols.count()) if (!cols.count())
@ -358,7 +358,7 @@ void Preferences::read()
*/ */
void Preferences::save(bool syncToDisc) void Preferences::save(bool syncToDisc)
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(GENERAL_SECTION); config->setGroup(GENERAL_SECTION);
config->writeEntry(VERSION_NUM, KALARM_VERSION); config->writeEntry(VERSION_NUM, KALARM_VERSION);
TQStringList colours; TQStringList colours;
@ -428,12 +428,12 @@ void Preferences::save(bool syncToDisc)
void Preferences::syncToDisc() void Preferences::syncToDisc()
{ {
KGlobal::config()->sync(); TDEGlobal::config()->sync();
} }
void Preferences::updateStartOfDayCheck() void Preferences::updateStartOfDayCheck()
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(GENERAL_SECTION); config->setGroup(GENERAL_SECTION);
config->writeEntry(START_OF_DAY_CHECK, startOfDayCheck()); config->writeEntry(START_OF_DAY_CHECK, startOfDayCheck());
config->sync(); config->sync();
@ -549,7 +549,7 @@ bool Preferences::notifying(const TQString& messageID)
*/ */
void Preferences::convertOldPrefs() void Preferences::convertOldPrefs()
{ {
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup(GENERAL_SECTION); config->setGroup(GENERAL_SECTION);
int version = KAlarm::getVersionNumber(config->readEntry(VERSION_NUM)); int version = KAlarm::getVersionNumber(config->readEntry(VERSION_NUM));
if (version >= KAlarm::Version(1,4,22)) if (version >= KAlarm::Version(1,4,22))

@ -563,7 +563,7 @@ void RecurrenceEdit::addException()
if (insert) if (insert)
{ {
mExceptionDates.insert(it, date); mExceptionDates.insert(it, date);
mExceptionDateList->insertItem(KGlobal::locale()->formatDate(date), index); mExceptionDateList->insertItem(TDEGlobal::locale()->formatDate(date), index);
} }
mExceptionDateList->setCurrentItem(index); mExceptionDateList->setCurrentItem(index);
enableExceptionButtons(); enableExceptionButtons();
@ -856,7 +856,7 @@ void RecurrenceEdit::set(const KAEvent& event, bool keepDuration)
qHeapSort(mExceptionDates); qHeapSort(mExceptionDates);
mExceptionDateList->clear(); mExceptionDateList->clear();
for (DateList::ConstIterator it = mExceptionDates.begin(); it != mExceptionDates.end(); ++it) for (DateList::ConstIterator it = mExceptionDates.begin(); it != mExceptionDates.end(); ++it)
mExceptionDateList->insertItem(KGlobal::locale()->formatDate(*it)); mExceptionDateList->insertItem(TDEGlobal::locale()->formatDate(*it));
enableExceptionButtons(); enableExceptionButtons();
// Get repetition within recurrence // Get repetition within recurrence
@ -1124,7 +1124,7 @@ DayWeekRule::DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis
// Save the first day of the week, just in case it changes while the dialog is open. // Save the first day of the week, just in case it changes while the dialog is open.
TQWidget* box = new TQWidget(this); // this is to control the TQWhatsThis text display area TQWidget* box = new TQWidget(this); // this is to control the TQWhatsThis text display area
TQGridLayout* dgrid = new TQGridLayout(box, 4, 2, 0, KDialog::spacingHint()); TQGridLayout* dgrid = new TQGridLayout(box, 4, 2, 0, KDialog::spacingHint());
const KCalendarSystem* calendar = KGlobal::locale()->calendar(); const KCalendarSystem* calendar = TDEGlobal::locale()->calendar();
for (int i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
int day = KAlarm::localeDayInWeek_to_weekDay(i); int day = KAlarm::localeDayInWeek_to_weekDay(i);
@ -1314,7 +1314,7 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
mPosButton->setFocusWidget(mWeekCombo); mPosButton->setFocusWidget(mWeekCombo);
mDayOfWeekCombo = new ComboBox(false, box); mDayOfWeekCombo = new ComboBox(false, box);
const KCalendarSystem* calendar = KGlobal::locale()->calendar(); const KCalendarSystem* calendar = TDEGlobal::locale()->calendar();
for (int i = 0; i < 7; ++i) for (int i = 0; i < 7; ++i)
{ {
int day = KAlarm::localeDayInWeek_to_weekDay(i); int day = KAlarm::localeDayInWeek_to_weekDay(i);
@ -1465,7 +1465,7 @@ YearlyRule::YearlyRule(bool readOnly, TQWidget* parent, const char* name)
TQWidget* w = new TQWidget(this); // this is to control the TQWhatsThis text display area TQWidget* w = new TQWidget(this); // this is to control the TQWhatsThis text display area
hlayout->addWidget(w, 1, TQt::AlignAuto); hlayout->addWidget(w, 1, TQt::AlignAuto);
TQGridLayout* grid = new TQGridLayout(w, 4, 3, 0, KDialog::spacingHint()); TQGridLayout* grid = new TQGridLayout(w, 4, 3, 0, KDialog::spacingHint());
const KCalendarSystem* calendar = KGlobal::locale()->calendar(); const KCalendarSystem* calendar = TDEGlobal::locale()->calendar();
int year = TQDate::currentDate().year(); int year = TQDate::currentDate().year();
for (int i = 0; i < 12; ++i) for (int i = 0; i < 12; ++i)
{ {

@ -413,7 +413,7 @@ bool SoundDlg::checkFile()
{ {
// It's a relative path. // It's a relative path.
// Find the first sound resource that contains files. // Find the first sound resource that contains files.
TQStringList soundDirs = KGlobal::dirs()->resourceDirs("sound"); TQStringList soundDirs = TDEGlobal::dirs()->resourceDirs("sound");
if (!soundDirs.isEmpty()) if (!soundDirs.isEmpty())
{ {
TQDir dir; TQDir dir;

@ -279,7 +279,7 @@ TQString SoundPicker::browseFile(TQString& defaultDir, const TQString& initialFi
if (defaultDir.isEmpty()) if (defaultDir.isEmpty())
{ {
if (kdeSoundDir.isNull()) if (kdeSoundDir.isNull())
kdeSoundDir = KGlobal::dirs()->findResourceDir("sound", "KDE_Notify.wav"); kdeSoundDir = TDEGlobal::dirs()->findResourceDir("sound", "KDE_Notify.wav");
defaultDir = kdeSoundDir; defaultDir = kdeSoundDir;
} }
#ifdef WITHOUT_ARTS #ifdef WITHOUT_ARTS

@ -253,7 +253,7 @@ void TrayWindow::tooltipAlarmText(TQString& text) const
bool space = false; bool space = false;
if (Preferences::showTooltipAlarmTime()) if (Preferences::showTooltipAlarmTime())
{ {
item.text += KGlobal::locale()->formatTime(item.dateTime.time()); item.text += TDEGlobal::locale()->formatTime(item.dateTime.time());
item.text += ' '; item.text += ' ';
space = true; space = true;
} }

@ -88,7 +88,7 @@ Kandy::Kandy(CommandScheduler *scheduler)
connect(mView,TQT_SIGNAL(modifiedChanged(bool)),TQT_SLOT(setTitle())); connect(mView,TQT_SIGNAL(modifiedChanged(bool)),TQT_SLOT(setTitle()));
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
TQString currentProfile = config->readEntry("CurrentProfile", TQString currentProfile = config->readEntry("CurrentProfile",
locate("appdata","default.kandy")); locate("appdata","default.kandy"));
@ -250,7 +250,7 @@ void Kandy::optionsConfigureKeys()
void Kandy::optionsConfigureToolbars() void Kandy::optionsConfigureToolbars()
{ {
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings( KGlobal::config(), autoSaveGroup() ); saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig())); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig()));
dlg.exec(); dlg.exec();
@ -261,7 +261,7 @@ void Kandy::newToolbarConfig()
// this slot is called when user clicks "Ok" or "Apply" in the toolbar editor. // this slot is called when user clicks "Ok" or "Apply" in the toolbar editor.
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI(); createGUI();
applyMainWindowSettings( KGlobal::config(), autoSaveGroup() ); applyMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
} }
void Kandy::optionsPreferences() void Kandy::optionsPreferences()

@ -283,7 +283,7 @@ bool KandyView::loadFile(const TQString& filename)
new CommandItem(mCommandList,cmds->at(i)); new CommandItem(mCommandList,cmds->at(i));
} }
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
config->writeEntry("CurrentProfile",filename); config->writeEntry("CurrentProfile",filename);
@ -296,7 +296,7 @@ bool KandyView::saveFile(const TQString& filename)
{ {
if (!mScheduler->saveProfile(filename)) return false; if (!mScheduler->saveProfile(filename)) return false;
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
config->writeEntry("CurrentProfile",filename); config->writeEntry("CurrentProfile",filename);

@ -128,7 +128,7 @@ void MobileMain::optionsConfigureKeys()
void MobileMain::optionsConfigureToolbars() void MobileMain::optionsConfigureToolbars()
{ {
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings( KGlobal::config(), autoSaveGroup() ); saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig())); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig()));
dlg.exec(); dlg.exec();
@ -138,7 +138,7 @@ void MobileMain::newToolbarConfig()
{ {
// recreate our GUI // recreate our GUI
createGUI("kandymobileui.rc"); createGUI("kandymobileui.rc");
applyMainWindowSettings( KGlobal::config(), autoSaveGroup() ); applyMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
} }
void MobileMain::optionsPreferences() void MobileMain::optionsPreferences()

@ -55,7 +55,7 @@ CSVExportDialog::CSVExportDialog( ReportCriteria::REPORTTYPE rt,
// If decimal symbol is a comma, then default field seperator to semi-colon. // If decimal symbol is a comma, then default field seperator to semi-colon.
// In France and Germany, one-and-a-half is written as 1,5 not 1.5 // In France and Germany, one-and-a-half is written as 1,5 not 1.5
TQString d = KGlobal::locale()->decimalSymbol(); TQString d = TDEGlobal::locale()->decimalSymbol();
if ( "," == d ) CSVExportDialogBase::radioSemicolon->setChecked(true); if ( "," == d ) CSVExportDialogBase::radioSemicolon->setChecked(true);
else CSVExportDialogBase::radioComma->setChecked(true); else CSVExportDialogBase::radioComma->setChecked(true);

@ -68,7 +68,7 @@ void IdleTimeDetector::informOverrun(int idleSeconds)
_timer->stop(); _timer->stop();
TQDateTime idleStart = TQDateTime::currentDateTime().addSecs(-idleSeconds); TQDateTime idleStart = TQDateTime::currentDateTime().addSecs(-idleSeconds);
TQString idleStartTQString = KGlobal::locale()->formatTime(idleStart.time()); TQString idleStartTQString = TDEGlobal::locale()->formatTime(idleStart.time());
int id = TQMessageBox::warning( 0, i18n("Idle Detection"), int id = TQMessageBox::warning( 0, i18n("Idle Detection"),
i18n("Desktop has been idle since %1." i18n("Desktop has been idle since %1."
@ -83,7 +83,7 @@ void IdleTimeDetector::informOverrun(int idleSeconds)
{ {
// Revert And Stop // Revert And Stop
kdDebug(5970) << "Now it is " << TQDateTime::currentDateTime() << endl; kdDebug(5970) << "Now it is " << TQDateTime::currentDateTime() << endl;
kdDebug(5970) << "Reverting timer to " << KGlobal::locale()->formatTime(idleStart.time()).ascii() << endl; kdDebug(5970) << "Reverting timer to " << TDEGlobal::locale()->formatTime(idleStart.time()).ascii() << endl;
emit(extractTime(idleSeconds/60+diff)); // we need to subtract the time that has been added during idleness. emit(extractTime(idleSeconds/60+diff)); // we need to subtract the time that has been added during idleness.
emit(stopAllTimersAt(idleStart)); emit(stopAllTimersAt(idleStart));
} }

@ -416,7 +416,7 @@ extern "C"
{ {
KDE_EXPORT void* init_libkarmpart() KDE_EXPORT void* init_libkarmpart()
{ {
KGlobal::locale()->insertCatalogue("karm"); TDEGlobal::locale()->insertCatalogue("karm");
return new karmPartFactory; return new karmPartFactory;
} }
} }

@ -917,11 +917,11 @@ TQString KarmStorage::exportcsvHistory ( TaskView *taskview,
// header // header
retval += i18n("Task History\n"); retval += i18n("Task History\n");
retval += i18n("From %1 to %2") retval += i18n("From %1 to %2")
.arg(KGlobal::locale()->formatDate(from)) .arg(TDEGlobal::locale()->formatDate(from))
.arg(KGlobal::locale()->formatDate(to)); .arg(TDEGlobal::locale()->formatDate(to));
retval += cr; retval += cr;
retval += i18n("Printed on: %1") retval += i18n("Printed on: %1")
.arg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime())); .arg(TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
retval += cr; retval += cr;
day=from; day=from;

@ -12,10 +12,10 @@ TQString formatTime( long minutes, bool decimal )
TQString time; TQString time;
if ( decimal ) { if ( decimal ) {
time.sprintf("%.2f", minutes / 60.0); time.sprintf("%.2f", minutes / 60.0);
time.replace( '.', KGlobal::locale()->decimalSymbol() ); time.replace( '.', TDEGlobal::locale()->decimalSymbol() );
} }
else time.sprintf("%s%ld:%02ld", else time.sprintf("%s%ld:%02ld",
(minutes < 0) ? KGlobal::locale()->negativeSign().utf8().data() : "", (minutes < 0) ? TDEGlobal::locale()->negativeSign().utf8().data() : "",
labs(minutes / 60), labs(minutes % 60)); labs(minutes / 60), labs(minutes % 60));
return time; return time;
} }

@ -106,7 +106,7 @@ void KArmTimeWidget::setTime( long minutes )
dummy.setNum( hourpart ); dummy.setNum( hourpart );
if (minutes < 0) if (minutes < 0)
dummy = KGlobal::locale()->negativeSign() + dummy; dummy = TDEGlobal::locale()->negativeSign() + dummy;
_hourLE->setText( dummy ); _hourLE->setText( dummy );
dummy.setNum( minutepart ); dummy.setNum( minutepart );
@ -123,7 +123,7 @@ long KArmTimeWidget::time() const
h = abs(_hourLE->text().toInt( &ok )); h = abs(_hourLE->text().toInt( &ok ));
m = _minuteLE->text().toInt( &ok ); m = _minuteLE->text().toInt( &ok );
isNegative = _hourLE->text().startsWith(KGlobal::locale()->negativeSign()); isNegative = _hourLE->text().startsWith(TDEGlobal::locale()->negativeSign());
return (h * 60 + m) * ((isNegative) ? -1 : 1); return (h * 60 + m) * ((isNegative) ? -1 : 1);
} }

@ -454,7 +454,7 @@ void MainWindow::loadGeometry()
void MainWindow::saveGeometry() void MainWindow::saveGeometry()
{ {
KConfig &config = *KGlobal::config(); KConfig &config = *TDEGlobal::config();
config.setGroup( TQString::fromLatin1("Main Window Geometry")); config.setGroup( TQString::fromLatin1("Main Window Geometry"));
config.writeEntry( TQString::fromLatin1("Width"), width()); config.writeEntry( TQString::fromLatin1("Width"), width());
config.writeEntry( TQString::fromLatin1("Height"), height()); config.writeEntry( TQString::fromLatin1("Height"), height());

@ -286,7 +286,7 @@ void Preferences::load()
void Preferences::save() void Preferences::save()
{ {
KConfig &config = *KGlobal::config(); KConfig &config = *TDEGlobal::config();
config.setGroup( TQString::fromLatin1("Idle detection")); config.setGroup( TQString::fromLatin1("Idle detection"));
config.writeEntry( TQString::fromLatin1("enabled"), _doIdleDetectionV); config.writeEntry( TQString::fromLatin1("enabled"), _doIdleDetectionV);
@ -314,20 +314,20 @@ void Preferences::save()
// HACK: this entire config dialog should be upgraded to KConfigXT // HACK: this entire config dialog should be upgraded to KConfigXT
bool Preferences::readBoolEntry( const TQString& key ) bool Preferences::readBoolEntry( const TQString& key )
{ {
KConfig &config = *KGlobal::config(); KConfig &config = *TDEGlobal::config();
return config.readBoolEntry ( key, true ); return config.readBoolEntry ( key, true );
} }
void Preferences::writeEntry( const TQString &key, bool value) void Preferences::writeEntry( const TQString &key, bool value)
{ {
KConfig &config = *KGlobal::config(); KConfig &config = *TDEGlobal::config();
config.writeEntry( key, value ); config.writeEntry( key, value );
config.sync(); config.sync();
} }
void Preferences::deleteEntry( const TQString &key ) void Preferences::deleteEntry( const TQString &key )
{ {
KConfig &config = *KGlobal::config(); KConfig &config = *TDEGlobal::config();
config.deleteEntry( key ); config.deleteEntry( key );
config.sync(); config.sync();
} }

@ -75,7 +75,7 @@ void MyPrinter::print()
painter.setFont(newFont); painter.setFont(newFont);
int height = metrics.height(); int height = metrics.height();
TQString now = KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()); TQString now = TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime());
painter.drawText(xMargin, yoff, pageWidth, height, painter.drawText(xMargin, yoff, pageWidth, height,
TQPainter::AlignCenter, TQPainter::AlignCenter,

@ -59,7 +59,7 @@ TQString TimeKard::totalsAsText(TaskView* taskview, bool justThisTask, WhichTime
// header // header
retval += i18n("Task Totals") + cr; retval += i18n("Task Totals") + cr;
retval += KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()); retval += TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime());
retval += cr + cr; retval += cr + cr;
retval += TQString(TQString::fromLatin1("%1 %2")) retval += TQString(TQString::fromLatin1("%1 %2"))
.arg(i18n("Time"), timeWidth) .arg(i18n("Time"), timeWidth)
@ -313,11 +313,11 @@ TQString TimeKard::historyAsText(TaskView* taskview, const TQDate& from,
retval += totalsOnly ? i18n("Task Totals") : i18n("Task History"); retval += totalsOnly ? i18n("Task Totals") : i18n("Task History");
retval += cr; retval += cr;
retval += i18n("From %1 to %2") retval += i18n("From %1 to %2")
.arg(KGlobal::locale()->formatDate(from)) .arg(TDEGlobal::locale()->formatDate(from))
.arg(KGlobal::locale()->formatDate(to)); .arg(TDEGlobal::locale()->formatDate(to));
retval += cr; retval += cr;
retval += i18n("Printed on: %1") retval += i18n("Printed on: %1")
.arg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime())); .arg(TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
if ( perWeek ) if ( perWeek )
{ {
@ -353,7 +353,7 @@ TQDate Week::end() const
TQString Week::name() const TQString Week::name() const
{ {
return i18n("Week of %1").arg(KGlobal::locale()->formatDate(start())); return i18n("Week of %1").arg(TDEGlobal::locale()->formatDate(start()));
} }
TQValueList<Week> Week::weeksFromDateRange(const TQDate& from, const TQDate& to) TQValueList<Week> Week::weeksFromDateRange(const TQDate& from, const TQDate& to)
@ -372,7 +372,7 @@ TQValueList<Week> Week::weeksFromDateRange(const TQDate& from, const TQDate& to)
// even if from and to are the same date. The week starts on the day // even if from and to are the same date. The week starts on the day
// that is set in the locale settings. // that is set in the locale settings.
start = from.addDays( start = from.addDays(
-((7 - KGlobal::locale()->weekStartDay() + from.dayOfWeek()) % 7)); -((7 - TDEGlobal::locale()->weekStartDay() + from.dayOfWeek()) % 7));
for (TQDate d = start; d <= to; d = d.addDays(7)) for (TQDate d = start; d <= to; d = d.addDays(7))
weeks.append(Week(d)); weeks.append(Week(d));

@ -138,7 +138,7 @@ void KarmTray::updateToolTip(TQPtrList<Task> activeTasks)
TQFontMetrics fm( TQToolTip::font() ); TQFontMetrics fm( TQToolTip::font() );
const TQString continued = i18n( ", ..." ); const TQString continued = i18n( ", ..." );
const int buffer = fm.boundingRect( continued ).width(); const int buffer = fm.boundingRect( continued ).width();
const int desktopWidth = KGlobalSettings::desktopGeometry(this).width(); const int desktopWidth = TDEGlobalSettings::desktopGeometry(this).width();
const int maxWidth = desktopWidth - buffer; const int maxWidth = desktopWidth - buffer;
TQString qTip; TQString qTip;

@ -824,7 +824,7 @@ void KDTimeHeaderWidget::preparePopupMenu()
TQString KDTimeHeaderWidget::getToolTipText(TQPoint p) TQString KDTimeHeaderWidget::getToolTipText(TQPoint p)
{ {
return KGlobal::locale()->formatDateTime(getDateTimeForIndex(p.x())); return TDEGlobal::locale()->formatDateTime(getDateTimeForIndex(p.x()));
} }
void KDTimeHeaderWidget::addTickRight( int num ) void KDTimeHeaderWidget::addTickRight( int num )
{ {
@ -1950,7 +1950,7 @@ TQDateTime KDTimeHeaderWidget::getEvenTimeDate(TQDateTime tempdatetime ,Scale sc
break; break;
case KDGanttView::Week: case KDGanttView::Week:
tempdate = tempdatetime.date(); tempdate = tempdatetime.date();
while (tempdate.dayOfWeek ()!= KGlobal::locale()->weekStartDay()) while (tempdate.dayOfWeek ()!= TDEGlobal::locale()->weekStartDay())
tempdate = tempdate.addDays(-1); tempdate = tempdate.addDays(-1);
//tempdate = tempdate.addDays(-7); //tempdate = tempdate.addDays(-7);
tempdatetime = TQDateTime (tempdate, TQTime (0,0)); tempdatetime = TQDateTime (tempdate, TQTime (0,0));
@ -2217,7 +2217,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
TQTime tempTime = myRealStart.time(); TQTime tempTime = myRealStart.time();
TQDateTime tempDateTime; TQDateTime tempDateTime;
int i; int i;
const KCalendarSystem * calendar = KGlobal::locale()->calendar(); const KCalendarSystem * calendar = TDEGlobal::locale()->calendar();
switch (myRealScale) switch (myRealScale)
{ {
case KDGanttView::Minute: case KDGanttView::Minute:
@ -2284,7 +2284,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
tempDate = tempDate.addDays(tempMinorScaleCount); tempDate = tempDate.addDays(tempMinorScaleCount);
} }
tempDate = myRealStart.date(); tempDate = myRealStart.date();
while (tempDate.dayOfWeek() != KGlobal::locale()->weekStartDay()) while (tempDate.dayOfWeek() != TDEGlobal::locale()->weekStartDay())
tempDate = tempDate.addDays(1); tempDate = tempDate.addDays(1);
while (tempDate < myRealEnd.date()) { while (tempDate < myRealEnd.date()) {
majorTicks.append( getCoordX(tempDate)); majorTicks.append( getCoordX(tempDate));
@ -2304,7 +2304,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale)
tempDate = tempDate.addDays(7*tempMinorScaleCount); tempDate = tempDate.addDays(7*tempMinorScaleCount);
} }
tempDate = myRealStart.date(); tempDate = myRealStart.date();
while (tempDate.day() != KGlobal::locale()->weekStartDay()) while (tempDate.day() != TDEGlobal::locale()->weekStartDay())
tempDate = tempDate.addDays(1); tempDate = tempDate.addDays(1);
while (tempDate < myRealEnd.date()) { while (tempDate < myRealEnd.date()) {
majorTicks.append( getCoordX(tempDate)); majorTicks.append( getCoordX(tempDate));

@ -701,9 +701,9 @@ mimeHeader::iconName ()
fileName = fileName =
KMimeType::mimeType (contentType.lower ())->icon (TQString(), false); KMimeType::mimeType (contentType.lower ())->icon (TQString(), false);
fileName = fileName =
KGlobal::instance ()->iconLoader ()->iconPath (fileName, KIcon::Desktop); TDEGlobal::instance ()->iconLoader ()->iconPath (fileName, KIcon::Desktop);
// if (fileName.isEmpty()) // if (fileName.isEmpty())
// fileName = KGlobal::instance()->iconLoader()->iconPath( "unknown", KIcon::Desktop ); // fileName = TDEGlobal::instance()->iconLoader()->iconPath( "unknown", KIcon::Desktop );
return fileName; return fileName;
} }

@ -44,7 +44,7 @@ int kdemain( int argc, char * argv[] )
{ {
KLocale::setMainCatalogue("tdelibs"); KLocale::setMainCatalogue("tdelibs");
TDEInstance instance("kio_mbox"); TDEInstance instance("kio_mbox");
(void) KGlobal::locale(); (void) TDEGlobal::locale();
if (argc != 4) { if (argc != 4) {
fprintf(stderr, "Usage: kio_mbox protocol " fprintf(stderr, "Usage: kio_mbox protocol "

@ -94,7 +94,7 @@ void AboutPage::handleUrl( const KURL &url )
TQString AboutPage::htmlText() const TQString AboutPage::htmlText() const
{ {
KIconLoader *iconloader = KGlobal::iconLoader(); KIconLoader *iconloader = TDEGlobal::iconLoader();
int iconSize = iconloader->currentSize( KIcon::Desktop ); int iconSize = iconloader->currentSize( KIcon::Desktop );
TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop );

@ -56,7 +56,7 @@ GroupConfig::GroupConfig( TQWidget *parent )
TQBoxLayout *nameLayout = new TQHBoxLayout( titleFrame ); TQBoxLayout *nameLayout = new TQHBoxLayout( titleFrame );
nameLayout->setMargin( 4 ); nameLayout->setMargin( 4 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_summary", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary",
KIcon::Desktop ); KIcon::Desktop );
TQLabel *iconLabel = new TQLabel( titleFrame ); TQLabel *iconLabel = new TQLabel( titleFrame );
@ -92,7 +92,7 @@ GroupConfig::GroupConfig( TQWidget *parent )
buttonLayout->addStretch( 1 ); buttonLayout->addStretch( 1 );
icon = KGlobal::iconLoader()->loadIcon( "bookmark", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "bookmark", KIcon::Desktop );
TQFrame *page = mMemberView->addPage( i18n("Group"), TQFrame *page = mMemberView->addPage( i18n("Group"),
i18n("General Group Settings"), icon ); i18n("General Group Settings"), icon );
TQBoxLayout *pageLayout = new TQVBoxLayout( page ); TQBoxLayout *pageLayout = new TQVBoxLayout( page );

@ -67,7 +67,7 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
static TQPixmap icon; static TQPixmap icon;
if ( icon.isNull() ) if ( icon.isNull() )
icon = KGlobal::iconLoader()->loadIcon( "kontact_summary", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary", KIcon::Desktop );
mIcon = new TQLabel( hbox ); mIcon = new TQLabel( hbox );
mIcon->setPixmap( icon ); mIcon->setPixmap( icon );
@ -123,8 +123,8 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
mCallbackHandler->setEngine( mSyncProcess->engine() ); mCallbackHandler->setEngine( mSyncProcess->engine() );
setSelectionForegroundColor( KGlobalSettings::textColor() ); setSelectionForegroundColor( TDEGlobalSettings::textColor() );
setSelectionBackgroundColor( KGlobalSettings::alternateBackgroundColor() ); setSelectionBackgroundColor( TDEGlobalSettings::alternateBackgroundColor() );
update(); update();
} }
@ -143,7 +143,7 @@ void GroupItem::update()
TQDateTime dateTime = mSyncProcess->group().lastSynchronization(); TQDateTime dateTime = mSyncProcess->group().lastSynchronization();
if ( dateTime.isValid() ) if ( dateTime.isValid() )
mTime->setText( i18n( "Last synchronized on: %1" ).arg( KGlobal::locale()->formatDateTime( dateTime ) ) ); mTime->setText( i18n( "Last synchronized on: %1" ).arg( TDEGlobal::locale()->formatDateTime( dateTime ) ) );
else else
mTime->setText( i18n( "Not synchronized yet" ) ); mTime->setText( i18n( "Not synchronized yet" ) );

@ -45,8 +45,8 @@ void HTMLDiffAlgoDisplay::begin()
mText.append( "<html>" ); mText.append( "<html>" );
mText.append( TQString( "<body text=\"%1\" bgcolor=\"%2\">" ) mText.append( TQString( "<body text=\"%1\" bgcolor=\"%2\">" )
.arg( KGlobalSettings::textColor().name() ) .arg( TDEGlobalSettings::textColor().name() )
.arg( KGlobalSettings::baseColor().name() ) ); .arg( TDEGlobalSettings::baseColor().name() ) );
mText.append( "<center><table>" ); mText.append( "<center><table>" );
mText.append( TQString( "<tr><th></th><th align=\"center\">%1</th><td> </td><th align=\"center\">%2</th></tr>" ) mText.append( TQString( "<tr><th></th><th align=\"center\">%1</th><td> </td><th align=\"center\">%2</th></tr>" )

@ -259,10 +259,10 @@ bool KWidgetList::eventFilter( TQObject *object, TQEvent *event )
KWidgetListItem::KWidgetListItem( KWidgetList *parent, const char *name ) KWidgetListItem::KWidgetListItem( KWidgetList *parent, const char *name )
: TQWidget( parent, name ) : TQWidget( parent, name )
{ {
mForegroundColor = KGlobalSettings::textColor(); mForegroundColor = TDEGlobalSettings::textColor();
mBackgroundColor = KGlobalSettings::baseColor(); mBackgroundColor = TDEGlobalSettings::baseColor();
mSelectionForegroundColor = KGlobalSettings::highlightedTextColor(); mSelectionForegroundColor = TDEGlobalSettings::highlightedTextColor();
mSelectionBackgroundColor = KGlobalSettings::highlightColor(); mSelectionBackgroundColor = TDEGlobalSettings::highlightColor();
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQ_StrongFocus );
} }

@ -49,7 +49,7 @@ int main( int argc, char **argv )
KUniqueApplication app; KUniqueApplication app;
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
MainWindow *mainWindow = new MainWindow; MainWindow *mainWindow = new MainWindow;
mainWindow->show(); mainWindow->show();

@ -32,12 +32,12 @@ MemberInfo::MemberInfo( const QSync::Member &member )
TQPixmap MemberInfo::smallIcon() const TQPixmap MemberInfo::smallIcon() const
{ {
return KGlobal::iconLoader()->loadIcon( iconName(), KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( iconName(), KIcon::Small );
} }
TQPixmap MemberInfo::desktopIcon() const TQPixmap MemberInfo::desktopIcon() const
{ {
return KGlobal::iconLoader()->loadIcon( iconName(), KIcon::Desktop ); return TDEGlobal::iconLoader()->loadIcon( iconName(), KIcon::Desktop );
} }
TQString MemberInfo::iconName() const TQString MemberInfo::iconName() const

@ -48,7 +48,7 @@ KitchenSyncPart::KitchenSyncPart( TQWidget *parentWidget, const char *widgetName
new MainWidget( this, canvas ); new MainWidget( this, canvas );
KGlobal::iconLoader()->addAppDir( "kitchensync" ); TDEGlobal::iconLoader()->addAppDir( "kitchensync" );
setXMLFile( "kitchensync_part.rc" ); setXMLFile( "kitchensync_part.rc" );
} }

@ -41,7 +41,7 @@ PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin )
TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() );
TQLabel *icon = new TQLabel( this ); TQLabel *icon = new TQLabel( this );
icon->setPixmap( KGlobal::iconLoader()->loadIcon( iconName, KIcon::Desktop ) ); icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( iconName, KIcon::Desktop ) );
icon->setFixedSize( icon->sizeHint() ); icon->setFixedSize( icon->sizeHint() );
TQLabel *name = new TQLabel( plugin.longName(), this ); TQLabel *name = new TQLabel( plugin.longName(), this );

@ -908,7 +908,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 ); button->setFixedSize( 22, 22 );
button->setIconSet( button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "reload", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "reload", KIcon::Small, 0 ) );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) ); connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) );
TQWhatsThis::add( button, TQWhatsThis::add( button,
i18n("Reload the namespaces from the server. This overwrites any changes.") ); i18n("Reload the namespaces from the server. This overwrites any changes.") );
@ -922,7 +922,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.personalNS->setReadOnly( true ); mImap.personalNS->setReadOnly( true );
mImap.editPNS = new TQToolButton( listbox ); mImap.editPNS = new TQToolButton( listbox );
mImap.editPNS->setIconSet( mImap.editPNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editPNS->setAutoRaise( true ); mImap.editPNS->setAutoRaise( true );
mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editPNS->setFixedSize( 22, 22 ); mImap.editPNS->setFixedSize( 22, 22 );
@ -934,7 +934,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.otherUsersNS->setReadOnly( true ); mImap.otherUsersNS->setReadOnly( true );
mImap.editONS = new TQToolButton( listbox ); mImap.editONS = new TQToolButton( listbox );
mImap.editONS->setIconSet( mImap.editONS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editONS->setAutoRaise( true ); mImap.editONS->setAutoRaise( true );
mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editONS->setFixedSize( 22, 22 ); mImap.editONS->setFixedSize( 22, 22 );
@ -946,7 +946,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
mImap.sharedNS->setReadOnly( true ); mImap.sharedNS->setReadOnly( true );
mImap.editSNS = new TQToolButton( listbox ); mImap.editSNS = new TQToolButton( listbox );
mImap.editSNS->setIconSet( mImap.editSNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editSNS->setAutoRaise( true ); mImap.editSNS->setAutoRaise( true );
mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editSNS->setFixedSize( 22, 22 ); mImap.editSNS->setFixedSize( 22, 22 );
@ -2305,7 +2305,7 @@ NamespaceEditDialog::NamespaceEditDialog( TQWidget *parent,
edit->setText( it.key() ); edit->setText( it.key() );
TQToolButton* button = new TQToolButton( grid ); TQToolButton* button = new TQToolButton( grid );
button->setIconSet( button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small, 0 ) ); TDEGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small, 0 ) );
button->setAutoRaise( true ); button->setAutoRaise( true );
button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 ); button->setFixedSize( 22, 22 );

@ -616,10 +616,10 @@ void AntiSpamWizard::slotBuildSummary()
int AntiSpamWizard::checkForProgram( const TQString &executable ) int AntiSpamWizard::checkForProgram( const TQString &executable )
{ {
kdDebug(5006) << "Testing for executable:" << executable << endl; kdDebug(5006) << "Testing for executable:" << executable << endl;
KProcess process; TDEProcess process;
process << executable; process << executable;
process.setUseShell( true ); process.setUseShell( true );
process.start( KProcess::Block ); process.start( TDEProcess::Block );
return process.exitStatus(); return process.exitStatus();
} }

@ -39,7 +39,7 @@ using namespace KMail;
static TQString standardArchivePath( const TQString &folderName ) static TQString standardArchivePath( const TQString &folderName )
{ {
TQString currentPath = KGlobalSettings::documentPath(); TQString currentPath = TDEGlobalSettings::documentPath();
TQDir dir( currentPath ); TQDir dir( currentPath );
if( !dir.exists() ) { if( !dir.exists() ) {
currentPath = TQDir::homeDirPath() + '/'; currentPath = TQDir::homeDirPath() + '/';

@ -27,7 +27,7 @@
class KMFolder; class KMFolder;
class KMMessage; class KMMessage;
class KArchive; class KArchive;
class KProcess; class TDEProcess;
class TQWidget; class TQWidget;
namespace KPIM { namespace KPIM {

@ -1019,7 +1019,7 @@ void AccountsPage::SendingTab::doLoadOther() {
{ {
//### FIXME: Use the global convenience function instead of the homebrewed //### FIXME: Use the global convenience function instead of the homebrewed
// solution once we can rely on HEAD tdelibs. // solution once we can rely on HEAD tdelibs.
//str = KGlobal::hostname(); ??????? //str = TDEGlobal::hostname(); ???????
char buffer[256]; char buffer[256];
if ( !gethostname( buffer, 255 ) ) if ( !gethostname( buffer, 255 ) )
// buffer need not be NUL-terminated if it has full length // buffer need not be NUL-terminated if it has full length
@ -1646,8 +1646,8 @@ void AppearancePage::FontsTab::slotFontSelectorChanged( int index )
void AppearancePage::FontsTab::doLoadOther() { void AppearancePage::FontsTab::doLoadOther() {
KConfigGroup fonts( KMKernel::config(), "Fonts" ); KConfigGroup fonts( KMKernel::config(), "Fonts" );
mFont[0] = KGlobalSettings::generalFont(); mFont[0] = TDEGlobalSettings::generalFont();
TQFont fixedFont = KGlobalSettings::fixedFont(); TQFont fixedFont = TDEGlobalSettings::fixedFont();
for ( int i = 0 ; i < numFontNames ; i++ ) for ( int i = 0 ; i < numFontNames ; i++ )
mFont[i] = fonts.readFontEntry( fontNames[i].configName, mFont[i] = fonts.readFontEntry( fontNames[i].configName,
(fontNames[i].onlyFixed) ? &fixedFont : &mFont[0] ); (fontNames[i].onlyFixed) ? &fixedFont : &mFont[0] );
@ -1794,13 +1794,13 @@ void AppearancePage::ColorsTab::doLoadOther() {
static const TQColor defaultColor[ numColorNames ] = { static const TQColor defaultColor[ numColorNames ] = {
kapp->palette().active().base(), // bg kapp->palette().active().base(), // bg
KGlobalSettings::alternateBackgroundColor(), // alt bg TDEGlobalSettings::alternateBackgroundColor(), // alt bg
kapp->palette().active().text(), // fg kapp->palette().active().text(), // fg
TQColor( 0x00, 0x80, 0x00 ), // quoted l1 TQColor( 0x00, 0x80, 0x00 ), // quoted l1
TQColor( 0x00, 0x70, 0x00 ), // quoted l2 TQColor( 0x00, 0x70, 0x00 ), // quoted l2
TQColor( 0x00, 0x60, 0x00 ), // quoted l3 TQColor( 0x00, 0x60, 0x00 ), // quoted l3
KGlobalSettings::linkColor(), // link TDEGlobalSettings::linkColor(), // link
KGlobalSettings::visitedLinkColor(), // visited link TDEGlobalSettings::visitedLinkColor(), // visited link
TQt::red, // misspelled words TQt::red, // misspelled words
TQt::red, // new msg TQt::red, // new msg
TQt::blue, // unread mgs TQt::blue, // unread mgs
@ -2374,7 +2374,7 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
bool found = false; bool found = false;
for( ; it != end; ++it) for( ; it != end; ++it)
{ {
const TQString encoding = KGlobal::charsets()->encodingForName(*it); const TQString encoding = TDEGlobal::charsets()->encodingForName(*it);
if ( encoding == "iso-8859-15" ) if ( encoding == "iso-8859-15" )
indexOfLatin9 = i; indexOfLatin9 = i;
if( encoding == currentEncoding ) if( encoding == currentEncoding )
@ -2403,7 +2403,7 @@ void AppearancePage::ReaderTab::readCurrentOverrideCodec()
uint i = 0; uint i = 0;
for( ; it != end; ++it) for( ; it != end; ++it)
{ {
if( KGlobal::charsets()->encodingForName(*it) == currentOverrideEncoding ) if( TDEGlobal::charsets()->encodingForName(*it) == currentOverrideEncoding )
{ {
mOverrideCharsetCombo->setCurrentItem( i ); mOverrideCharsetCombo->setCurrentItem( i );
break; break;
@ -2450,11 +2450,11 @@ void AppearancePage::ReaderTab::save() {
GlobalSettings::self()->setCollapseQuoteLevelSpin( mCollapseQuoteLevelSpin->value() ); GlobalSettings::self()->setCollapseQuoteLevelSpin( mCollapseQuoteLevelSpin->value() );
GlobalSettings::self()->setFallbackCharacterEncoding( GlobalSettings::self()->setFallbackCharacterEncoding(
KGlobal::charsets()->encodingForName( mCharsetCombo->currentText() ) ); TDEGlobal::charsets()->encodingForName( mCharsetCombo->currentText() ) );
GlobalSettings::self()->setOverrideCharacterEncoding( GlobalSettings::self()->setOverrideCharacterEncoding(
mOverrideCharsetCombo->currentItem() == 0 ? mOverrideCharsetCombo->currentItem() == 0 ?
TQString() : TQString() :
KGlobal::charsets()->encodingForName( mOverrideCharsetCombo->currentText() ) ); TDEGlobal::charsets()->encodingForName( mOverrideCharsetCombo->currentText() ) );
GlobalSettings::self()->setShowCurrentTime( mShowCurrentTimeCheck->isChecked() ); GlobalSettings::self()->setShowCurrentTime( mShowCurrentTimeCheck->isChecked() );
} }
@ -3095,7 +3095,7 @@ void ComposerPage::PhrasesTab::doLoadFromGlobalSettings() {
currentNr = 0; currentNr = 0;
if ( numLang == 0 ) { if ( numLang == 0 ) {
slotAddNewLanguage( KGlobal::locale()->language() ); slotAddNewLanguage( TDEGlobal::locale()->language() );
} }
mPhraseLanguageCombo->setCurrentItem( currentNr ); mPhraseLanguageCombo->setCurrentItem( currentNr );
@ -3309,7 +3309,7 @@ void ComposerPage::CharsetTab::slotVerifyCharset( TQString & charset ) {
} }
bool ok = false; bool ok = false;
TQTextCodec *codec = KGlobal::charsets()->codecForName( charset, ok ); TQTextCodec *codec = TDEGlobal::charsets()->codecForName( charset, ok );
if ( ok && codec ) { if ( ok && codec ) {
charset = TQString::fromLatin1( codec->mimeName() ).lower(); charset = TQString::fromLatin1( codec->mimeName() ).lower();
return; return;

@ -202,7 +202,7 @@ NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
hlay->addWidget( new TQLabel( mComboBox, i18n("Choose &language:"), page ) ); hlay->addWidget( new TQLabel( mComboBox, i18n("Choose &language:"), page ) );
hlay->addWidget( mComboBox, 1 ); hlay->addWidget( mComboBox, 1 );
TQStringList pathList = KGlobal::dirs()->findAllResources( "locale", TQStringList pathList = TDEGlobal::dirs()->findAllResources( "locale",
TQString::fromLatin1("*/entry.desktop") ); TQString::fromLatin1("*/entry.desktop") );
// extract a list of language tags that should not be included: // extract a list of language tags that should not be included:
TQStringList suppressedAcronyms; TQStringList suppressedAcronyms;
@ -324,7 +324,7 @@ void ProfileDialog::setup() {
mListView->clear(); mListView->clear();
// find all profiles (config files named "profile-xyz-rc"): // find all profiles (config files named "profile-xyz-rc"):
const TQString profileFilenameFilter = TQString::fromLatin1("kmail/profile-*-rc"); const TQString profileFilenameFilter = TQString::fromLatin1("kmail/profile-*-rc");
mProfileList = KGlobal::dirs()->findAllResources( "data", profileFilenameFilter ); mProfileList = TDEGlobal::dirs()->findAllResources( "data", profileFilenameFilter );
kdDebug(5006) << "Profile manager: found " << mProfileList.count() kdDebug(5006) << "Profile manager: found " << mProfileList.count()
<< " profiles:" << endl; << " profiles:" << endl;

@ -57,7 +57,7 @@ CustomTemplates::CustomTemplates( TQWidget *parent, const char *name )
mCurrentItem( 0 ), mCurrentItem( 0 ),
mBlockChangeSignal( false ) mBlockChangeSignal( false )
{ {
TQFont f = KGlobalSettings::fixedFont(); TQFont f = TDEGlobalSettings::fixedFont();
mEdit->setFont( f ); mEdit->setFont( f );
mAdd->setIconSet( BarIconSet( "add", KIcon::SizeSmall ) ); mAdd->setIconSet( BarIconSet( "add", KIcon::SizeSmall ) );

@ -99,9 +99,9 @@ bool EditorWatcher::start()
// start the editor // start the editor
TQStringList params = KRun::processDesktopExec( *offer, list, false ); TQStringList params = KRun::processDesktopExec( *offer, list, false );
mEditor = new KProcess( this ); mEditor = new TDEProcess( this );
*mEditor << params; *mEditor << params;
connect( mEditor, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(editorExited()) ); connect( mEditor, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(editorExited()) );
if ( !mEditor->start() ) if ( !mEditor->start() )
return false; return false;
mEditorRunning = true; mEditorRunning = true;

@ -25,7 +25,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <tqtimer.h> #include <tqtimer.h>
class KProcess; class TDEProcess;
namespace KMail { namespace KMail {
@ -63,7 +63,7 @@ class EditorWatcher : public TQObject
KURL mUrl; KURL mUrl;
TQString mMimeType; TQString mMimeType;
bool mOpenWith; bool mOpenWith;
KProcess *mEditor; TDEProcess *mEditor;
TQWidget *mParentWidget; TQWidget *mParentWidget;
int mInotifyFd; int mInotifyFd;

@ -863,7 +863,7 @@ bool EncodingDetector::setEncoding(const char *_encoding, EncodingChoiceSource t
if(enc=="visual") if(enc=="visual")
enc="iso8859-8"; enc="iso8859-8";
bool b; bool b;
codec = KGlobal::charsets()->codecForName(enc, b); codec = TDEGlobal::charsets()->codecForName(enc, b);
if (!b) if (!b)
return false; return false;
} }

@ -438,7 +438,7 @@ void FavoriteFolderView::readColorConfig()
KConfig* conf = KMKernel::config(); KConfig* conf = KMKernel::config();
// Custom/System color support // Custom/System color support
KConfigGroupSaver saver(conf, "Reader"); KConfigGroupSaver saver(conf, "Reader");
TQColor c = KGlobalSettings::alternateBackgroundColor(); TQColor c = TDEGlobalSettings::alternateBackgroundColor();
if ( !conf->readBoolEntry("defaultColors", true) ) if ( !conf->readBoolEntry("defaultColors", true) )
mPaintInfo.colBack = conf->readColorEntry( "AltBackgroundColor",&c ); mPaintInfo.colBack = conf->readColorEntry( "AltBackgroundColor",&c );
else else

@ -52,7 +52,7 @@ FolderRequester::FolderRequester( TQWidget *parent, KMFolderTree *tree )
edit->setReadOnly( true ); edit->setReadOnly( true );
TQToolButton* button = new TQToolButton( this ); TQToolButton* button = new TQToolButton( this );
button->setIconSet( KGlobal::iconLoader()->loadIconSet( "folder", KIcon::Small, 0 ) ); button->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "folder", KIcon::Small, 0 ) );
connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenDialog()) ); connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenDialog()) );
setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,

@ -424,7 +424,7 @@ void HeaderItem::paintCell( TQPainter * p, const TQColorGroup & cg,
font = headers->dateFont(); font = headers->dateFont();
} }
TQColor cdisabled = KGlobalSettings::inactiveTextColor(); TQColor cdisabled = TDEGlobalSettings::inactiveTextColor();
if ( headers->isMessageCut( msgSerNum() ) ) { if ( headers->isMessageCut( msgSerNum() ) ) {
font.setItalic( true ); font.setItalic( true );
color = &cdisabled; color = &cdisabled;

@ -144,7 +144,7 @@ namespace KMail {
TQString dateString; TQString dateString;
if( printing ) { if( printing ) {
TQDateTime dateTime; TQDateTime dateTime;
KLocale * locale = KGlobal::locale(); KLocale * locale = TDEGlobal::locale();
dateTime.setTime_t( message->date() ); dateTime.setTime_t( message->date() );
dateString = locale->formatDateTime( dateTime ); dateString = locale->formatDateTime( dateTime );
} else { } else {
@ -243,7 +243,7 @@ namespace KMail {
TQString dateString; TQString dateString;
if( printing ) { if( printing ) {
TQDateTime dateTime; TQDateTime dateTime;
KLocale* locale = KGlobal::locale(); KLocale* locale = TDEGlobal::locale();
dateTime.setTime_t( message->date() ); dateTime.setTime_t( message->date() );
dateString = locale->formatDateTime( dateTime ); dateString = locale->formatDateTime( dateTime );
} }
@ -448,7 +448,7 @@ namespace KMail {
TQString dateString; TQString dateString;
if( printing ) { if( printing ) {
TQDateTime dateTime; TQDateTime dateTime;
KLocale* locale = KGlobal::locale(); KLocale* locale = TDEGlobal::locale();
dateTime.setTime_t( message->date() ); dateTime.setTime_t( message->date() );
dateString = locale->formatDateTime( dateTime ); dateString = locale->formatDateTime( dateTime );
} }
@ -695,7 +695,7 @@ namespace KMail {
} }
TQString tformat; TQString tformat;
if ( KGlobal::locale()->use12Clock() ) { if ( TDEGlobal::locale()->use12Clock() ) {
tformat = "h:mm AP"; tformat = "h:mm AP";
} }
else { else {
@ -914,7 +914,7 @@ namespace KMail {
TQString dateString; TQString dateString;
if( printing ) { if( printing ) {
TQDateTime dateTime; TQDateTime dateTime;
KLocale * locale = KGlobal::locale(); KLocale * locale = TDEGlobal::locale();
dateTime.setTime_t( message->date() ); dateTime.setTime_t( message->date() );
dateString = locale->formatDateTime( dateTime ); dateString = locale->formatDateTime( dateTime );
} else { } else {

@ -288,7 +288,7 @@ namespace KMail {
// "keep password" checkbox. Then, we set [Passwords]Keep to // "keep password" checkbox. Then, we set [Passwords]Keep to
// storePasswd(), so that the checkbox in the dialog will be // storePasswd(), so that the checkbox in the dialog will be
// init'ed correctly: // init'ed correctly:
KConfigGroup passwords( KGlobal::config(), "Passwords" ); KConfigGroup passwords( TDEGlobal::config(), "Passwords" );
passwords.writeEntry( "Keep", storePasswd() ); passwords.writeEntry( "Keep", storePasswd() );
TQString msg = i18n("You need to supply a username and a password to " TQString msg = i18n("You need to supply a username and a password to "
"access this mailbox."); "access this mailbox.");

@ -51,8 +51,8 @@ KMPrecommand::KMPrecommand(const TQString &precommand, TQObject *parent)
mPrecommandProcess.setUseShell(true); mPrecommandProcess.setUseShell(true);
mPrecommandProcess << precommand; mPrecommandProcess << precommand;
connect(&mPrecommandProcess, TQT_SIGNAL(processExited(KProcess *)), connect(&mPrecommandProcess, TQT_SIGNAL(processExited(TDEProcess *)),
TQT_SLOT(precommandExited(KProcess *))); TQT_SLOT(precommandExited(TDEProcess *)));
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -64,7 +64,7 @@ KMPrecommand::~KMPrecommand()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool KMPrecommand::start() bool KMPrecommand::start()
{ {
bool ok = mPrecommandProcess.start( KProcess::NotifyOnExit ); bool ok = mPrecommandProcess.start( TDEProcess::NotifyOnExit );
if (!ok) KMessageBox::error(0, i18n("Could not execute precommand '%1'.") if (!ok) KMessageBox::error(0, i18n("Could not execute precommand '%1'.")
.arg(mPrecommand)); .arg(mPrecommand));
return ok; return ok;
@ -72,7 +72,7 @@ bool KMPrecommand::start()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMPrecommand::precommandExited(KProcess *p) void KMPrecommand::precommandExited(TDEProcess *p)
{ {
int exitCode = p->normalExit() ? p->exitStatus() : -1; int exitCode = p->normalExit() ? p->exitStatus() : -1;
if (exitCode) if (exitCode)

@ -60,13 +60,13 @@ public:
bool start(); bool start();
protected slots: protected slots:
void precommandExited(KProcess *); void precommandExited(TDEProcess *);
signals: signals:
void finished(bool); void finished(bool);
protected: protected:
KProcess mPrecommandProcess; TDEProcess mPrecommandProcess;
TQString mPrecommand; TQString mPrecommand;
}; };

@ -426,7 +426,7 @@
<default>HDR_STANDARD</default> <default>HDR_STANDARD</default>
</entry> </entry>
<entry name="CompletionMode" type="Int" key="Completion Mode"> <entry name="CompletionMode" type="Int" key="Completion Mode">
<default code="true">KGlobalSettings::completionMode()</default> <default code="true">TDEGlobalSettings::completionMode()</default>
</entry> </entry>
<entry name="AutoSpellChecking" type="Bool" key="autoSpellChecking"> <entry name="AutoSpellChecking" type="Bool" key="autoSpellChecking">
<default>true</default> <default>true</default>
@ -537,10 +537,10 @@
<default>true</default> <default>true</default>
</entry> </entry>
<entry name="ComposerFont" type="Font" key="composer-font"> <entry name="ComposerFont" type="Font" key="composer-font">
<default code="true">KGlobalSettings::generalFont()</default> <default code="true">TDEGlobalSettings::generalFont()</default>
</entry> </entry>
<entry name="FixedFont" type="Font" key="fixed-font"> <entry name="FixedFont" type="Font" key="fixed-font">
<default code="true">KGlobalSettings::fixedFont()</default> <default code="true">TDEGlobalSettings::fixedFont()</default>
</entry> </entry>
</group> </group>

@ -102,7 +102,7 @@ KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
TQWidget *canvas = new TQWidget(parentWidget, widgetName); TQWidget *canvas = new TQWidget(parentWidget, widgetName);
canvas->setFocusPolicy(TQ_ClickFocus); canvas->setFocusPolicy(TQ_ClickFocus);
setWidget(canvas); setWidget(canvas);
KGlobal::iconLoader()->addAppDir("kmail"); TDEGlobal::iconLoader()->addAppDir("kmail");
#if 0 #if 0
//It's also possible to make a part out of a readerWin //It's also possible to make a part out of a readerWin
KMReaderWin *mReaderWin = new KMReaderWin( canvas, canvas, actionCollection() ); KMReaderWin *mReaderWin = new KMReaderWin( canvas, canvas, actionCollection() );
@ -117,7 +117,7 @@ KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
mReaderWin->setFocusPolicy(TQWidget::ClickFocus); mReaderWin->setFocusPolicy(TQWidget::ClickFocus);
mStatusBar = new KMailStatusBarExtension(this); mStatusBar = new KMailStatusBarExtension(this);
//new KParts::SideBarExtension( kmkernel->mainWin()-mainKMWidget()->leftFrame(), this ); //new KParts::SideBarExtension( kmkernel->mainWin()-mainKMWidget()->leftFrame(), this );
KGlobal::iconLoader()->addAppDir("kmail"); TDEGlobal::iconLoader()->addAppDir("kmail");
setXMLFile( "kmail_part.rc" ); setXMLFile( "kmail_part.rc" );
kmkernel->inboxFolder()->close(); kmkernel->inboxFolder()->close();
#else #else
@ -143,7 +143,7 @@ KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
connect( this, TQT_SIGNAL(textChanged(const TQString&)), ie, TQT_SIGNAL(textChanged(const TQString&)) ); connect( this, TQT_SIGNAL(textChanged(const TQString&)), ie, TQT_SIGNAL(textChanged(const TQString&)) );
connect( this, TQT_SIGNAL(iconChanged(const TQPixmap&)), ie, TQT_SIGNAL(iconChanged(const TQPixmap&)) ); connect( this, TQT_SIGNAL(iconChanged(const TQPixmap&)), ie, TQT_SIGNAL(iconChanged(const TQPixmap&)) );
KGlobal::iconLoader()->addAppDir( "kmail" ); TDEGlobal::iconLoader()->addAppDir( "kmail" );
setXMLFile( "kmail_part.rc" ); setXMLFile( "kmail_part.rc" );
#endif #endif

@ -743,7 +743,7 @@ KMCommand::Result KMShowMsgSrcCommand::execute()
viewer->setCaption( i18n("Message as Plain Text") ); viewer->setCaption( i18n("Message as Plain Text") );
viewer->setText(str); viewer->setText(str);
if( mFixedFont ) if( mFixedFont )
viewer->setFont(KGlobalSettings::fixedFont()); viewer->setFont(TDEGlobalSettings::fixedFont());
// Well, there is no widget to be seen here, so we have to use TQCursor::pos() // Well, there is no widget to be seen here, so we have to use TQCursor::pos()
// Update: (GS) I'm not going to make this code behave according to Xinerama // Update: (GS) I'm not going to make this code behave according to Xinerama
@ -1605,10 +1605,10 @@ KMPrintCommand::KMPrintCommand( TQWidget *parent, KMMessage *msg,
mUseFixedFont( useFixedFont ), mEncoding( encoding ) mUseFixedFont( useFixedFont ), mEncoding( encoding )
{ {
if ( GlobalSettings::useDefaultFonts() ) if ( GlobalSettings::useDefaultFonts() )
mOverrideFont = KGlobalSettings::generalFont(); mOverrideFont = TDEGlobalSettings::generalFont();
else { else {
KConfigGroup fonts( KMKernel::config(), "Fonts" ); KConfigGroup fonts( KMKernel::config(), "Fonts" );
TQString tmp = fonts.readEntry( "print-font", KGlobalSettings::generalFont().toString() ); TQString tmp = fonts.readEntry( "print-font", TDEGlobalSettings::generalFont().toString() );
mOverrideFont.fromString( tmp ); mOverrideFont.fromString( tmp );
} }
} }

@ -21,7 +21,7 @@ class TQPopupMenu;
class KMainWindow; class KMainWindow;
class KAction; class KAction;
class KProgressDialog; class KProgressDialog;
class KProcess; class TDEProcess;
class KMFilter; class KMFilter;
class KMFolder; class KMFolder;
class KMFolderImap; class KMFolderImap;

@ -226,8 +226,8 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
mEdtReplyTo = new KMLineEdit(true,mHeadersArea, "replyToLine"); mEdtReplyTo = new KMLineEdit(true,mHeadersArea, "replyToLine");
TQToolTip::add( mEdtReplyTo, TQToolTip::add( mEdtReplyTo,
i18n( "Set the \"Reply-To:\" email address for this message" ) ); i18n( "Set the \"Reply-To:\" email address for this message" ) );
connect(mEdtReplyTo,TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), connect(mEdtReplyTo,TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
TQT_SLOT(slotCompletionModeChanged(KGlobalSettings::Completion))); TQT_SLOT(slotCompletionModeChanged(TDEGlobalSettings::Completion)));
if ( mClassicalRecipients ) { if ( mClassicalRecipients ) {
mRecipientsEditor = 0; mRecipientsEditor = 0;
@ -260,12 +260,12 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
connect(mBtnBcc,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo())); connect(mBtnBcc,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookTo()));
//connect(mBtnFrom,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookFrom())); //connect(mBtnFrom,TQT_SIGNAL(clicked()),TQT_SLOT(slotAddrBookFrom()));
connect(mEdtTo,TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), connect(mEdtTo,TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
TQT_SLOT(slotCompletionModeChanged(KGlobalSettings::Completion))); TQT_SLOT(slotCompletionModeChanged(TDEGlobalSettings::Completion)));
connect(mEdtCc,TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), connect(mEdtCc,TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
TQT_SLOT(slotCompletionModeChanged(KGlobalSettings::Completion))); TQT_SLOT(slotCompletionModeChanged(TDEGlobalSettings::Completion)));
connect(mEdtBcc,TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), connect(mEdtBcc,TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
TQT_SLOT(slotCompletionModeChanged(KGlobalSettings::Completion))); TQT_SLOT(slotCompletionModeChanged(TDEGlobalSettings::Completion)));
mEdtTo->setFocus(); mEdtTo->setFocus();
} else { } else {
@ -284,8 +284,8 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
mRecipientsEditor = new RecipientsEditor( mHeadersArea ); mRecipientsEditor = new RecipientsEditor( mHeadersArea );
connect( mRecipientsEditor, connect( mRecipientsEditor,
TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ), TQT_SIGNAL( completionModeChanged( TDEGlobalSettings::Completion ) ),
TQT_SLOT( slotCompletionModeChanged( KGlobalSettings::Completion ) ) ); TQT_SLOT( slotCompletionModeChanged( TDEGlobalSettings::Completion ) ) );
connect( mRecipientsEditor, TQT_SIGNAL(sizeHintChanged()), TQT_SLOT(recipientEditorSizeHintChanged()) ); connect( mRecipientsEditor, TQT_SIGNAL(sizeHintChanged()), TQT_SLOT(recipientEditorSizeHintChanged()) );
mRecipientsEditor->setFocus(); mRecipientsEditor->setFocus();
@ -447,8 +447,8 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
connect( kmkernel->identityManager(), TQT_SIGNAL(changed(uint)), connect( kmkernel->identityManager(), TQT_SIGNAL(changed(uint)),
TQT_SLOT(slotIdentityChanged(uint))); TQT_SLOT(slotIdentityChanged(uint)));
connect(mEdtFrom,TQT_SIGNAL(completionModeChanged(KGlobalSettings::Completion)), connect(mEdtFrom,TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
TQT_SLOT(slotCompletionModeChanged(KGlobalSettings::Completion))); TQT_SLOT(slotCompletionModeChanged(TDEGlobalSettings::Completion)));
connect(kmkernel->folderMgr(),TQT_SIGNAL(folderRemoved(KMFolder*)), connect(kmkernel->folderMgr(),TQT_SIGNAL(folderRemoved(KMFolder*)),
TQT_SLOT(slotFolderRemoved(KMFolder*))); TQT_SLOT(slotFolderRemoved(KMFolder*)));
connect(kmkernel->imapFolderMgr(),TQT_SIGNAL(folderRemoved(KMFolder*)), connect(kmkernel->imapFolderMgr(),TQT_SIGNAL(folderRemoved(KMFolder*)),
@ -692,21 +692,21 @@ void KMComposeWin::readConfig( bool reload /* = false */ )
TQStringList transportHistory = GlobalSettings::self()->transportHistory(); TQStringList transportHistory = GlobalSettings::self()->transportHistory();
TQString currentTransport = GlobalSettings::self()->currentTransport(); TQString currentTransport = GlobalSettings::self()->currentTransport();
mEdtFrom->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mEdtFrom->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
mEdtReplyTo->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mEdtReplyTo->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
if ( mClassicalRecipients ) { if ( mClassicalRecipients ) {
mEdtTo->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mEdtTo->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
mEdtCc->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mEdtCc->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
mEdtBcc->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mEdtBcc->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
} }
else else
mRecipientsEditor->setCompletionMode( (KGlobalSettings::Completion)GlobalSettings::self()->completionMode() ); mRecipientsEditor->setCompletionMode( (TDEGlobalSettings::Completion)GlobalSettings::self()->completionMode() );
readColorConfig(); readColorConfig();
if ( GlobalSettings::self()->useDefaultFonts() ) { if ( GlobalSettings::self()->useDefaultFonts() ) {
mBodyFont = KGlobalSettings::generalFont(); mBodyFont = TDEGlobalSettings::generalFont();
mFixedFont = KGlobalSettings::fixedFont(); mFixedFont = TDEGlobalSettings::fixedFont();
} else { } else {
mBodyFont = GlobalSettings::self()->composerFont(); mBodyFont = GlobalSettings::self()->composerFont();
mFixedFont = GlobalSettings::self()->fixedFont(); mFixedFont = GlobalSettings::self()->fixedFont();
@ -2701,9 +2701,9 @@ void KMComposeWin::setCharset(const TQCString& aCharset, bool forceDefault)
++it, i++ ) ++it, i++ )
{ {
if (i > 0 && ((mCharset == "us-ascii" && i == 1) || if (i > 0 && ((mCharset == "us-ascii" && i == 1) ||
(i != 1 && KGlobal::charsets()->codecForName( (i != 1 && TDEGlobal::charsets()->codecForName(
KGlobal::charsets()->encodingForName(*it)) TDEGlobal::charsets()->encodingForName(*it))
== KGlobal::charsets()->codecForName(mCharset)))) == TDEGlobal::charsets()->codecForName(mCharset))))
{ {
mEncodingAction->setCurrentItem( i ); mEncodingAction->setCurrentItem( i );
slotSetCharset(); slotSetCharset();
@ -2807,7 +2807,7 @@ void KMComposeWin::slotAttachFileResult(KIO::Job *job)
{ {
(*it).data.resize((*it).data.size() + 1); (*it).data.resize((*it).data.size() + 1);
(*it).data[(*it).data.size() - 1] = '\0'; (*it).data[(*it).data.size() - 1] = '\0';
if ( const TQTextCodec * codec = KGlobal::charsets()->codecForName((*it).encoding) ) if ( const TQTextCodec * codec = TDEGlobal::charsets()->codecForName((*it).encoding) )
mEditor->insert( codec->toUnicode( (*it).data ) ); mEditor->insert( codec->toUnicode( (*it).data ) );
else else
mEditor->insert( TQString::fromLocal8Bit( (*it).data ) ); mEditor->insert( TQString::fromLocal8Bit( (*it).data ) );
@ -2821,7 +2821,7 @@ void KMComposeWin::slotAttachFileResult(KIO::Job *job)
partCharset = TQCString( ( *it ).url.fileEncoding().latin1() ); partCharset = TQCString( ( *it ).url.fileEncoding().latin1() );
} else { } else {
EncodingDetector ed; EncodingDetector ed;
KLocale *loc = KGlobal::locale(); KLocale *loc = TDEGlobal::locale();
ed.setAutoDetectLanguage( EncodingDetector::scriptForLanguageCode ( loc->language() ) ); ed.setAutoDetectLanguage( EncodingDetector::scriptForLanguageCode ( loc->language() ) );
ed.analyze( (*it).data ); ed.analyze( (*it).data );
partCharset = ed.encoding(); partCharset = ed.encoding();
@ -2946,7 +2946,7 @@ void KMComposeWin::slotInsertFile()
false, 0, 0, 0); false, 0, 0, 0);
KComboBox *combo = fdlg.toolBar()->getCombo(4711); KComboBox *combo = fdlg.toolBar()->getCombo(4711);
for (int i = 0; i < combo->count(); i++) for (int i = 0; i < combo->count(); i++)
if (KGlobal::charsets()->codecForName(KGlobal::charsets()-> if (TDEGlobal::charsets()->codecForName(TDEGlobal::charsets()->
encodingForName(combo->text(i))) encodingForName(combo->text(i)))
== TQTextCodec::codecForLocale()) combo->setCurrentItem(i); == TQTextCodec::codecForLocale()) combo->setCurrentItem(i);
if (!fdlg.exec()) return; if (!fdlg.exec()) return;
@ -2957,7 +2957,7 @@ void KMComposeWin::slotInsertFile()
{ {
KConfig *config = KMKernel::config(); KConfig *config = KMKernel::config();
KConfigGroupSaver saver( config, "Composer" ); KConfigGroupSaver saver( config, "Composer" );
TQString encoding = KGlobal::charsets()->encodingForName(combo->currentText()).latin1(); TQString encoding = TDEGlobal::charsets()->encodingForName(combo->currentText()).latin1();
TQStringList urls = config->readListEntry( "recent-urls" ); TQStringList urls = config->readListEntry( "recent-urls" );
TQStringList encodings = config->readListEntry( "recent-encodings" ); TQStringList encodings = config->readListEntry( "recent-encodings" );
// Prevent config file from growing without bound // Prevent config file from growing without bound
@ -3022,7 +3022,7 @@ void KMComposeWin::slotSetCharset()
} }
mAutoCharset = false; mAutoCharset = false;
mCharset = KGlobal::charsets()->encodingForName( mEncodingAction-> mCharset = TDEGlobal::charsets()->encodingForName( mEncodingAction->
currentText() ).latin1(); currentText() ).latin1();
} }
@ -5089,7 +5089,7 @@ void KMComposeWin::cleanupAutoSave()
} }
} }
void KMComposeWin::slotCompletionModeChanged( KGlobalSettings::Completion mode) void KMComposeWin::slotCompletionModeChanged( TDEGlobalSettings::Completion mode)
{ {
GlobalSettings::self()->setCompletionMode( (int) mode ); GlobalSettings::self()->setCompletionMode( (int) mode );

@ -57,7 +57,7 @@ class KMFolderComboBox;
class KMFolder; class KMFolder;
class KMMessage; class KMMessage;
class KMMessagePart; class KMMessagePart;
class KProcess; class TDEProcess;
class KDirWatch; class KDirWatch;
class KSelectAction; class KSelectAction;
class KFontAction; class KFontAction;
@ -848,7 +848,7 @@ private:
int calcColumnWidth(int which, long allShowing, int width); int calcColumnWidth(int which, long allShowing, int width);
private slots: private slots:
void slotCompletionModeChanged( KGlobalSettings::Completion ); void slotCompletionModeChanged( TDEGlobalSettings::Completion );
void slotConfigChanged(); void slotConfigChanged();
void slotComposerDone( bool ); void slotComposerDone( bool );

@ -442,7 +442,7 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e)
mExtEditorTempFile->close(); mExtEditorTempFile->close();
// replace %f in the system line // replace %f in the system line
sysLine.replace( "%f", mExtEditorTempFile->name() ); sysLine.replace( "%f", mExtEditorTempFile->name() );
mExtEditorProcess = new KProcess(); mExtEditorProcess = new TDEProcess();
mExtEditorProcess->setUseShell( true ); mExtEditorProcess->setUseShell( true );
sysLine += " "; sysLine += " ";
while (!sysLine.isEmpty()) while (!sysLine.isEmpty())
@ -450,8 +450,8 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e)
*mExtEditorProcess << sysLine.left(sysLine.find(" ")).local8Bit(); *mExtEditorProcess << sysLine.left(sysLine.find(" ")).local8Bit();
sysLine.remove(0, sysLine.find(" ") + 1); sysLine.remove(0, sysLine.find(" ") + 1);
} }
connect(mExtEditorProcess, TQT_SIGNAL(processExited(KProcess*)), connect(mExtEditorProcess, TQT_SIGNAL(processExited(TDEProcess*)),
TQT_SLOT(slotExternalEditorDone(KProcess*))); TQT_SLOT(slotExternalEditorDone(TDEProcess*)));
if (!mExtEditorProcess->start()) if (!mExtEditorProcess->start())
{ {
KMessageBox::error( topLevelWidget(), KMessageBox::error( topLevelWidget(),
@ -610,7 +610,7 @@ void KMEdit::slotExternalEditorTempFileChanged( const TQString & fileName ) {
repaint(); repaint();
} }
void KMEdit::slotExternalEditorDone( KProcess * proc ) { void KMEdit::slotExternalEditorDone( TDEProcess * proc ) {
assert(proc == mExtEditorProcess); assert(proc == mExtEditorProcess);
// make sure, we update even when KDirWatcher is too slow: // make sure, we update even when KDirWatcher is too slow:
slotExternalEditorTempFileChanged( mExtEditorTempFile->name() ); slotExternalEditorTempFileChanged( mExtEditorTempFile->name() );

@ -18,7 +18,7 @@ class KSpellConfig;
class SpellingFilter; class SpellingFilter;
class KTempFile; class KTempFile;
class KDirWatch; class KDirWatch;
class KProcess; class TDEProcess;
class TQPopupMenu; class TQPopupMenu;
/** /**
@ -131,7 +131,7 @@ public slots:
void slotSpellcheck2(KSpell*); void slotSpellcheck2(KSpell*);
void slotSpellResult(const TQString&); void slotSpellResult(const TQString&);
void slotSpellDone(); void slotSpellDone();
void slotExternalEditorDone(KProcess*); void slotExternalEditorDone(TDEProcess*);
void slotMisspelling(const TQString &, const TQStringList &, unsigned int); void slotMisspelling(const TQString &, const TQStringList &, unsigned int);
void slotCorrected (const TQString &, const TQString &, unsigned int); void slotCorrected (const TQString &, const TQString &, unsigned int);
void addSuggestion(const TQString& text, const TQStringList& lst, unsigned int ); void addSuggestion(const TQString& text, const TQStringList& lst, unsigned int );
@ -188,7 +188,7 @@ private:
SpellingFilter* mSpellingFilter; SpellingFilter* mSpellingFilter;
KTempFile *mExtEditorTempFile; KTempFile *mExtEditorTempFile;
KDirWatch *mExtEditorTempFileWatcher; KDirWatch *mExtEditorTempFileWatcher;
KProcess *mExtEditorProcess; TDEProcess *mExtEditorProcess;
bool mUseExtEditor; bool mUseExtEditor;
TQString mExtEditor; TQString mExtEditor;
bool mWasModifiedBeforeSpellCheck; bool mWasModifiedBeforeSpellCheck;

@ -110,7 +110,7 @@ void KMSoundTestWidget::openSoundDialog( KURLRequester * )
<< "audio/x-adpcm"; << "audio/x-adpcm";
fileDialog->setMimeFilter( filters ); fileDialog->setMimeFilter( filters );
TQStringList soundDirs = KGlobal::dirs()->resourceDirs( "sound" ); TQStringList soundDirs = TDEGlobal::dirs()->resourceDirs( "sound" );
if ( !soundDirs.isEmpty() ) { if ( !soundDirs.isEmpty() ) {
KURL soundURL; KURL soundURL;

@ -495,7 +495,7 @@ TQString KMFilterActionWithCommand::substituteCommandLineArgsFor( KMMessage *aMs
TQRegExp header_rx( "%\\{([a-z0-9-]+)\\}", false ); TQRegExp header_rx( "%\\{([a-z0-9-]+)\\}", false );
int idx = 0; int idx = 0;
while ( ( idx = header_rx.search( result, idx ) ) != -1 ) { while ( ( idx = header_rx.search( result, idx ) ) != -1 ) {
TQString replacement = KProcess::quote( aMsg->headerField( TQString(header_rx.cap(1)).latin1() ) ); TQString replacement = TDEProcess::quote( aMsg->headerField( TQString(header_rx.cap(1)).latin1() ) );
result.replace( idx, header_rx.matchedLength(), replacement ); result.replace( idx, header_rx.matchedLength(), replacement );
idx += replacement.length(); idx += replacement.length();
} }
@ -511,7 +511,7 @@ KMFilterAction::ReturnCode KMFilterActionWithCommand::genericProcess(KMMessage*
if ( mParameter.isEmpty() ) if ( mParameter.isEmpty() )
return ErrorButGoOn; return ErrorButGoOn;
// KProcess doesn't support a TQProcess::launch() equivalent, so // TDEProcess doesn't support a TQProcess::launch() equivalent, so
// we must use a temp file :-( // we must use a temp file :-(
KTempFile * inFile = new KTempFile; KTempFile * inFile = new KTempFile;
inFile->setAutoDelete(true); inFile->setAutoDelete(true);
@ -544,9 +544,9 @@ KMFilterAction::ReturnCode KMFilterActionWithCommand::genericProcess(KMMessage*
shProc << commandLine; shProc << commandLine;
// run process: // run process:
if ( !shProc.start( KProcess::Block, if ( !shProc.start( TDEProcess::Block,
withOutput ? KProcess::Stdout withOutput ? TDEProcess::Stdout
: KProcess::NoCommunication ) ) : TDEProcess::NoCommunication ) )
return ErrorButGoOn; return ErrorButGoOn;
if ( !shProc.normalExit() || shProc.exitStatus() != 0 ) { if ( !shProc.normalExit() || shProc.exitStatus() != 0 ) {

@ -508,7 +508,7 @@ public:
@short Abstract base class for filter actions with a command line as parameter. @short Abstract base class for filter actions with a command line as parameter.
@author Marc Mutz <Marc@Mutz.com>, based upon work by Stefan Taferner <taferner@kde.org> @author Marc Mutz <Marc@Mutz.com>, based upon work by Stefan Taferner <taferner@kde.org>
@see KMFilterActionWithString KMFilterAction KMFilter KProcess @see KMFilterActionWithString KMFilterAction KMFilter TDEProcess
*/ */
class KMFilterActionWithUrl : public KMFilterAction class KMFilterActionWithUrl : public KMFilterAction

@ -349,9 +349,9 @@ int KMFolderMbox::lock()
case procmail_lockfile: case procmail_lockfile:
cmd_str = "lockfile -l20 -r5 "; cmd_str = "lockfile -l20 -r5 ";
if (!mProcmailLockFileName.isEmpty()) if (!mProcmailLockFileName.isEmpty())
cmd_str += TQFile::encodeName(KProcess::quote(mProcmailLockFileName)); cmd_str += TQFile::encodeName(TDEProcess::quote(mProcmailLockFileName));
else else
cmd_str += TQFile::encodeName(KProcess::quote(location() + ".lock")); cmd_str += TQFile::encodeName(TDEProcess::quote(location() + ".lock"));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
@ -363,7 +363,7 @@ int KMFolderMbox::lock()
} }
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "lockfile -l20 -r5 " + TQFile::encodeName(KProcess::quote(indexLocation() + ".lock")); cmd_str = "lockfile -l20 -r5 " + TQFile::encodeName(TDEProcess::quote(indexLocation() + ".lock"));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
{ {
@ -376,7 +376,7 @@ int KMFolderMbox::lock()
break; break;
case mutt_dotlock: case mutt_dotlock:
cmd_str = "mutt_dotlock " + TQFile::encodeName(KProcess::quote(location())); cmd_str = "mutt_dotlock " + TQFile::encodeName(TDEProcess::quote(location()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
{ {
@ -387,7 +387,7 @@ int KMFolderMbox::lock()
} }
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "mutt_dotlock " + TQFile::encodeName(KProcess::quote(indexLocation())); cmd_str = "mutt_dotlock " + TQFile::encodeName(TDEProcess::quote(indexLocation()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
{ {
@ -400,7 +400,7 @@ int KMFolderMbox::lock()
break; break;
case mutt_dotlock_privileged: case mutt_dotlock_privileged:
cmd_str = "mutt_dotlock -p " + TQFile::encodeName(KProcess::quote(location())); cmd_str = "mutt_dotlock -p " + TQFile::encodeName(TDEProcess::quote(location()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
{ {
@ -411,7 +411,7 @@ int KMFolderMbox::lock()
} }
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "mutt_dotlock -p " + TQFile::encodeName(KProcess::quote(indexLocation())); cmd_str = "mutt_dotlock -p " + TQFile::encodeName(TDEProcess::quote(indexLocation()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( rc != 0 ) if( rc != 0 )
{ {
@ -478,34 +478,34 @@ int KMFolderMbox::unlock()
case procmail_lockfile: case procmail_lockfile:
cmd_str = "rm -f "; cmd_str = "rm -f ";
if (!mProcmailLockFileName.isEmpty()) if (!mProcmailLockFileName.isEmpty())
cmd_str += TQFile::encodeName(KProcess::quote(mProcmailLockFileName)); cmd_str += TQFile::encodeName(TDEProcess::quote(mProcmailLockFileName));
else else
cmd_str += TQFile::encodeName(KProcess::quote(location() + ".lock")); cmd_str += TQFile::encodeName(TDEProcess::quote(location() + ".lock"));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "rm -f " + TQFile::encodeName(KProcess::quote(indexLocation() + ".lock")); cmd_str = "rm -f " + TQFile::encodeName(TDEProcess::quote(indexLocation() + ".lock"));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
} }
break; break;
case mutt_dotlock: case mutt_dotlock:
cmd_str = "mutt_dotlock -u " + TQFile::encodeName(KProcess::quote(location())); cmd_str = "mutt_dotlock -u " + TQFile::encodeName(TDEProcess::quote(location()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "mutt_dotlock -u " + TQFile::encodeName(KProcess::quote(indexLocation())); cmd_str = "mutt_dotlock -u " + TQFile::encodeName(TDEProcess::quote(indexLocation()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
} }
break; break;
case mutt_dotlock_privileged: case mutt_dotlock_privileged:
cmd_str = "mutt_dotlock -p -u " + TQFile::encodeName(KProcess::quote(location())); cmd_str = "mutt_dotlock -p -u " + TQFile::encodeName(TDEProcess::quote(location()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
if( mIndexStream ) if( mIndexStream )
{ {
cmd_str = "mutt_dotlock -p -u " + TQFile::encodeName(KProcess::quote(indexLocation())); cmd_str = "mutt_dotlock -p -u " + TQFile::encodeName(TDEProcess::quote(indexLocation()));
rc = system( cmd_str.data() ); rc = system( cmd_str.data() );
} }
break; break;

@ -122,7 +122,7 @@ void KMFolderSelDlg::setFlags( bool mustBeReadWrite, bool showOutbox,
void KMFolderSelDlg::readConfig() void KMFolderSelDlg::readConfig()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "FolderSelectionDialog" ); config->setGroup( "FolderSelectionDialog" );
TQSize size = config->readSizeEntry( "Size" ); TQSize size = config->readSizeEntry( "Size" );
@ -143,7 +143,7 @@ void KMFolderSelDlg::readConfig()
void KMFolderSelDlg::writeConfig() void KMFolderSelDlg::writeConfig()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "FolderSelectionDialog" ); config->setGroup( "FolderSelectionDialog" );
config->writeEntry( "Size", size() ); config->writeEntry( "Size", size() );

@ -149,7 +149,7 @@ TQPixmap KMFolderTreeItem::normalIcon(int size) const
if (mFolder && mFolder->useCustomIcons() ) { if (mFolder && mFolder->useCustomIcons() ) {
icon = mFolder->normalIconPath(); icon = mFolder->normalIconPath();
} }
KIconLoader * il = KGlobal::instance()->iconLoader(); KIconLoader * il = TDEGlobal::instance()->iconLoader();
TQPixmap pm = il->loadIcon( icon, KIcon::Small, size, TQPixmap pm = il->loadIcon( icon, KIcon::Small, size,
KIcon::DefaultState, 0, true ); KIcon::DefaultState, 0, true );
if ( mFolder && pm.isNull() ) { if ( mFolder && pm.isNull() ) {
@ -170,7 +170,7 @@ TQPixmap KMFolderTreeItem::unreadIcon(int size) const
kmkernel->folderIsDraftOrOutbox( mFolder ) ) kmkernel->folderIsDraftOrOutbox( mFolder ) )
pm = normalIcon( size ); pm = normalIcon( size );
KIconLoader * il = KGlobal::instance()->iconLoader(); KIconLoader * il = TDEGlobal::instance()->iconLoader();
if ( mFolder && mFolder->useCustomIcons() ) { if ( mFolder && mFolder->useCustomIcons() ) {
pm = il->loadIcon( mFolder->unreadIconPath(), KIcon::Small, size, pm = il->loadIcon( mFolder->unreadIconPath(), KIcon::Small, size,
KIcon::DefaultState, 0, true ); KIcon::DefaultState, 0, true );
@ -488,11 +488,11 @@ void KMFolderTree::readConfig (void)
{ {
KConfigGroupSaver saver(conf, "Fonts"); KConfigGroupSaver saver(conf, "Fonts");
if (!conf->readBoolEntry("defaultFonts",true)) { if (!conf->readBoolEntry("defaultFonts",true)) {
TQFont folderFont( KGlobalSettings::generalFont() ); TQFont folderFont( TDEGlobalSettings::generalFont() );
setFont(conf->readFontEntry("folder-font", &folderFont)); setFont(conf->readFontEntry("folder-font", &folderFont));
} }
else else
setFont(KGlobalSettings::generalFont()); setFont(TDEGlobalSettings::generalFont());
} }
// restore the layout // restore the layout

@ -435,7 +435,7 @@ void KMHeaders::readColorConfig (void)
TQColor c4=TQColor(kapp->palette().active().base()); TQColor c4=TQColor(kapp->palette().active().base());
TQColor c5=TQColor(0,0x7F,0); TQColor c5=TQColor(0,0x7F,0);
TQColor c6=TQColor(0,0x98,0); TQColor c6=TQColor(0,0x98,0);
TQColor c7=KGlobalSettings::alternateBackgroundColor(); TQColor c7=TDEGlobalSettings::alternateBackgroundColor();
if (!config->readBoolEntry("defaultColors",true)) { if (!config->readBoolEntry("defaultColors",true)) {
mPaintInfo.colFore = config->readColorEntry("ForegroundColor",&c1); mPaintInfo.colFore = config->readColorEntry("ForegroundColor",&c1);
@ -533,18 +533,18 @@ void KMHeaders::readConfig (void)
KConfigGroupSaver saver(config, "Fonts"); KConfigGroupSaver saver(config, "Fonts");
if (!(config->readBoolEntry("defaultFonts",true))) if (!(config->readBoolEntry("defaultFonts",true)))
{ {
TQFont listFont( KGlobalSettings::generalFont() ); TQFont listFont( TDEGlobalSettings::generalFont() );
listFont = config->readFontEntry( "list-font", &listFont ); listFont = config->readFontEntry( "list-font", &listFont );
setFont( listFont ); setFont( listFont );
mNewFont = config->readFontEntry( "list-new-font", &listFont ); mNewFont = config->readFontEntry( "list-new-font", &listFont );
mUnreadFont = config->readFontEntry( "list-unread-font", &listFont ); mUnreadFont = config->readFontEntry( "list-unread-font", &listFont );
mImportantFont = config->readFontEntry( "list-important-font", &listFont ); mImportantFont = config->readFontEntry( "list-important-font", &listFont );
mTodoFont = config->readFontEntry( "list-todo-font", &listFont ); mTodoFont = config->readFontEntry( "list-todo-font", &listFont );
mDateFont = KGlobalSettings::fixedFont(); mDateFont = TDEGlobalSettings::fixedFont();
mDateFont = config->readFontEntry( "list-date-font", &mDateFont ); mDateFont = config->readFontEntry( "list-date-font", &mDateFont );
} else { } else {
mNewFont= mUnreadFont = mImportantFont = mDateFont = mTodoFont = mNewFont= mUnreadFont = mImportantFont = mDateFont = mTodoFont =
KGlobalSettings::generalFont(); TDEGlobalSettings::generalFont();
setFont( mDateFont ); setFont( mDateFont );
} }
} }
@ -2376,7 +2376,7 @@ void KMHeaders::contentsMouseReleaseEvent(TQMouseEvent* e)
void KMHeaders::contentsMouseMoveEvent( TQMouseEvent* e ) void KMHeaders::contentsMouseMoveEvent( TQMouseEvent* e )
{ {
if (mMousePressed && if (mMousePressed &&
(e->pos() - mPressPos).manhattanLength() > KGlobalSettings::dndEventDelay()) { (e->pos() - mPressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay()) {
mMousePressed = false; mMousePressed = false;
TQListViewItem *item = itemAt( contentsToViewport(mPressPos) ); TQListViewItem *item = itemAt( contentsToViewport(mPressPos) );
if ( item ) { if ( item ) {

@ -161,7 +161,7 @@ KMKernel::KMKernel (TQObject *parent, const char *name) :
netCodec = TQTextCodec::codecForName("jis7"); netCodec = TQTextCodec::codecForName("jis7");
// TQTextCodec *cdc = TQTextCodec::codecForName("jis7"); // TQTextCodec *cdc = TQTextCodec::codecForName("jis7");
// TQTextCodec::setCodecForLocale(cdc); // TQTextCodec::setCodecForLocale(cdc);
// KGlobal::locale()->setEncoding(cdc->mibEnum()); // TDEGlobal::locale()->setEncoding(cdc->mibEnum());
} else { } else {
netCodec = TQTextCodec::codecForLocale(); netCodec = TQTextCodec::codecForLocale();
} }

@ -57,7 +57,7 @@ namespace KPIM {
class IdentityManager; class IdentityManager;
} }
class KMKernel; class KMKernel;
class KProcess; class TDEProcess;
class KProgressDialog; class KProgressDialog;
class TDEInstance; class TDEInstance;
class TQTimer; class TQTimer;

@ -555,7 +555,7 @@ void KMMainWidget::createWidgets(void)
TQWidget *headerParent = 0, TQWidget *headerParent = 0,
*mimeParent = 0, *messageParent = 0; *mimeParent = 0, *messageParent = 0;
const bool opaqueResize = KGlobalSettings::opaqueResize(); const bool opaqueResize = TDEGlobalSettings::opaqueResize();
if ( mLongFolderList ) { if ( mLongFolderList ) {
// superior splitter: folder tree vs. rest // superior splitter: folder tree vs. rest
// inferior splitter: headers vs. message vs. mime tree // inferior splitter: headers vs. message vs. mime tree
@ -678,7 +678,7 @@ void KMMainWidget::createWidgets(void)
// create list of folders // create list of folders
mFolderViewSplitter = new TQSplitter( Qt::Vertical, mFolderViewParent ); mFolderViewSplitter = new TQSplitter( Qt::Vertical, mFolderViewParent );
mFolderViewSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); mFolderViewSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter ); mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter );
if ( mFavoritesCheckMailAction ) if ( mFavoritesCheckMailAction )
connect( mFavoritesCheckMailAction, TQT_SIGNAL(activated()), mFavoriteFolderView, TQT_SLOT(checkMail()) ); connect( mFavoritesCheckMailAction, TQT_SIGNAL(activated()), mFavoriteFolderView, TQT_SLOT(checkMail()) );
@ -1762,17 +1762,17 @@ void KMMainWidget::slotDebugSieve()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMMainWidget::slotStartCertManager() void KMMainWidget::slotStartCertManager()
{ {
KProcess certManagerProc; // save to create on the heap, since TDEProcess certManagerProc; // save to create on the heap, since
// there is no parent // there is no parent
certManagerProc << "kleopatra"; certManagerProc << "kleopatra";
if( !certManagerProc.start( KProcess::DontCare ) ) if( !certManagerProc.start( TDEProcess::DontCare ) )
KMessageBox::error( this, i18n( "Could not start certificate manager; " KMessageBox::error( this, i18n( "Could not start certificate manager; "
"please check your installation." ), "please check your installation." ),
i18n( "KMail Error" ) ); i18n( "KMail Error" ) );
else else
kdDebug(5006) << "\nslotStartCertManager(): certificate manager started.\n" << endl; kdDebug(5006) << "\nslotStartCertManager(): certificate manager started.\n" << endl;
// process continues to run even after the KProcess object goes // process continues to run even after the TDEProcess object goes
// out of scope here, since it is started in DontCare run mode. // out of scope here, since it is started in DontCare run mode.
} }
@ -1780,10 +1780,10 @@ void KMMainWidget::slotStartCertManager()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMMainWidget::slotStartWatchGnuPG() void KMMainWidget::slotStartWatchGnuPG()
{ {
KProcess certManagerProc; TDEProcess certManagerProc;
certManagerProc << "kwatchgnupg"; certManagerProc << "kwatchgnupg";
if( !certManagerProc.start( KProcess::DontCare ) ) if( !certManagerProc.start( TDEProcess::DontCare ) )
KMessageBox::error( this, i18n( "Could not start GnuPG LogViewer (kwatchgnupg); " KMessageBox::error( this, i18n( "Could not start GnuPG LogViewer (kwatchgnupg); "
"please check your installation." ), "please check your installation." ),
i18n( "KMail Error" ) ); i18n( "KMail Error" ) );

@ -4038,7 +4038,7 @@ void KMMessage::readConfig()
{ // area for config group "KMMessage #n" { // area for config group "KMMessage #n"
KConfigGroupSaver saver(config, TQString("KMMessage #%1").arg(languageNr)); KConfigGroupSaver saver(config, TQString("KMMessage #%1").arg(languageNr));
sReplyLanguage = config->readEntry("language",KGlobal::locale()->language()); sReplyLanguage = config->readEntry("language",TDEGlobal::locale()->language());
sReplyStr = config->readEntry("phrase-reply", sReplyStr = config->readEntry("phrase-reply",
i18n("On %D, you wrote:")); i18n("On %D, you wrote:"));
sReplyAllStr = config->readEntry("phrase-reply-all", sReplyAllStr = config->readEntry("phrase-reply-all",

@ -576,7 +576,7 @@ const TQTextCodec* KMMsgBase::codecForName(const TQCString& _str)
if (_str.isEmpty()) return 0; if (_str.isEmpty()) return 0;
TQCString codec = _str; TQCString codec = _str;
KPIM::kAsciiToLower(codec.data()); KPIM::kAsciiToLower(codec.data());
return KGlobal::charsets()->codecForName(codec); return TDEGlobal::charsets()->codecForName(codec);
} }
@ -600,23 +600,23 @@ TQCString KMMsgBase::toUsAscii(const TQString& _str, bool *ok)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
TQStringList KMMsgBase::supportedEncodings(bool usAscii) TQStringList KMMsgBase::supportedEncodings(bool usAscii)
{ {
TQStringList encodingNames = KGlobal::charsets()->availableEncodingNames(); TQStringList encodingNames = TDEGlobal::charsets()->availableEncodingNames();
TQStringList encodings; TQStringList encodings;
TQMap<TQString,bool> mimeNames; TQMap<TQString,bool> mimeNames;
for (TQStringList::Iterator it = encodingNames.begin(); for (TQStringList::Iterator it = encodingNames.begin();
it != encodingNames.end(); it++) it != encodingNames.end(); it++)
{ {
TQTextCodec *codec = KGlobal::charsets()->codecForName(*it); TQTextCodec *codec = TDEGlobal::charsets()->codecForName(*it);
TQString mimeName = (codec) ? TQString(codec->mimeName()).lower() : (*it); TQString mimeName = (codec) ? TQString(codec->mimeName()).lower() : (*it);
if (mimeNames.find(mimeName) == mimeNames.end()) if (mimeNames.find(mimeName) == mimeNames.end())
{ {
encodings.append(KGlobal::charsets()->languageForEncoding(*it) encodings.append(TDEGlobal::charsets()->languageForEncoding(*it)
+ " ( " + mimeName + " )"); + " ( " + mimeName + " )");
mimeNames.insert(mimeName, true); mimeNames.insert(mimeName, true);
} }
} }
encodings.sort(); encodings.sort();
if (usAscii) encodings.prepend(KGlobal::charsets() if (usAscii) encodings.prepend(TDEGlobal::charsets()
->languageForEncoding("us-ascii") + " ( us-ascii )"); ->languageForEncoding("us-ascii") + " ( us-ascii )");
return encodings; return encodings;
} }

@ -450,7 +450,7 @@ TQString KMMessagePart::iconName( int size ) const
} }
fileName = fileName =
KGlobal::instance()->iconLoader()->iconPath( fileName, size ); TDEGlobal::instance()->iconLoader()->iconPath( fileName, size );
return fileName; return fileName;
} }

@ -394,7 +394,7 @@ void KMReaderWin::createWidgets() {
mBox->setFrameStyle( mMimePartTree->frameStyle() ); mBox->setFrameStyle( mMimePartTree->frameStyle() );
mColorBar = new HtmlStatusBar( mBox, "mColorBar" ); mColorBar = new HtmlStatusBar( mBox, "mColorBar" );
mViewer = new KHTMLPart( mBox, "mViewer" ); mViewer = new KHTMLPart( mBox, "mViewer" );
mSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
mSplitter->setResizeMode( mMimePartTree, TQSplitter::KeepSize ); mSplitter->setResizeMode( mMimePartTree, TQSplitter::KeepSize );
} }
@ -1078,7 +1078,7 @@ void KMReaderWin::setOverrideEncoding( const TQString & encoding )
TQStringList encodings = mSelectEncodingAction->items(); TQStringList encodings = mSelectEncodingAction->items();
uint i = 0; uint i = 0;
for ( TQStringList::const_iterator it = encodings.begin(), end = encodings.end(); it != end; ++it, ++i ) { for ( TQStringList::const_iterator it = encodings.begin(), end = encodings.end(); it != end; ++it, ++i ) {
if ( KGlobal::charsets()->encodingForName( *it ) == encoding ) { if ( TDEGlobal::charsets()->encodingForName( *it ) == encoding ) {
mSelectEncodingAction->setCurrentItem( i ); mSelectEncodingAction->setCurrentItem( i );
break; break;
} }
@ -1117,7 +1117,7 @@ void KMReaderWin::slotSetEncoding()
if ( mSelectEncodingAction->currentItem() == 0 ) // Auto if ( mSelectEncodingAction->currentItem() == 0 ) // Auto
mOverrideEncoding = TQString(); mOverrideEncoding = TQString();
else else
mOverrideEncoding = KGlobal::charsets()->encodingForName( mSelectEncodingAction->currentText() ); mOverrideEncoding = TDEGlobal::charsets()->encodingForName( mSelectEncodingAction->currentText() );
update( true ); update( true );
} }
@ -2153,7 +2153,7 @@ void KMReaderWin::setMsgPart( KMMessagePart* aMsgPart, bool aHTML,
iio->setFileName(aFileName); iio->setFileName(aFileName);
if( iio->read() ) { if( iio->read() ) {
TQImage img = iio->image(); TQImage img = iio->image();
TQRect desk = KGlobalSettings::desktopGeometry(mMainWindow); TQRect desk = TDEGlobalSettings::desktopGeometry(mMainWindow);
// determine a reasonable window size // determine a reasonable window size
int width, height; int width, height;
if( img.width() < 50 ) if( img.width() < 50 )
@ -2689,7 +2689,7 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
// notifications in case we started a drag ourselves // notifications in case we started a drag ourselves
slotUrlOn( linkForNode( mViewer->nodeUnderMouse() ) ); slotUrlOn( linkForNode( mViewer->nodeUnderMouse() ) );
if ( ( mLastClickPosition - me->pos() ).manhattanLength() > KGlobalSettings::dndEventDelay() ) { if ( ( mLastClickPosition - me->pos() ).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
if ( mCanStartDrag && ( !( mHoveredUrl.isEmpty() && mLastClickImagePath.isEmpty() ) ) ) { if ( mCanStartDrag && ( !( mHoveredUrl.isEmpty() && mLastClickImagePath.isEmpty() ) ) ) {
if ( URLHandlerManager::instance()->handleDrag( mHoveredUrl, mLastClickImagePath, this ) ) { if ( URLHandlerManager::instance()->handleDrag( mHoveredUrl, mLastClickImagePath, this ) ) {
mCanStartDrag = false; mCanStartDrag = false;

@ -129,9 +129,9 @@ KMSearchRule * KMSearchRule::createInstanceFromConfig( const KConfig * config, i
{ {
const char cIdx = char( int('A') + aIdx ); const char cIdx = char( int('A') + aIdx );
static const TQString & field = KGlobal::staticQString( "field" ); static const TQString & field = TDEGlobal::staticQString( "field" );
static const TQString & func = KGlobal::staticQString( "func" ); static const TQString & func = TDEGlobal::staticQString( "func" );
static const TQString & contents = KGlobal::staticQString( "contents" ); static const TQString & contents = TDEGlobal::staticQString( "contents" );
const TQCString &field2 = config->readEntry( field + cIdx ).latin1(); const TQCString &field2 = config->readEntry( field + cIdx ).latin1();
Function func2 = configValueToFunc( config->readEntry( func + cIdx ).latin1() ); Function func2 = configValueToFunc( config->readEntry( func + cIdx ).latin1() );
@ -163,9 +163,9 @@ TQString KMSearchRule::functionToString( Function function )
void KMSearchRule::writeConfig( KConfig * config, int aIdx ) const { void KMSearchRule::writeConfig( KConfig * config, int aIdx ) const {
const char cIdx = char('A' + aIdx); const char cIdx = char('A' + aIdx);
static const TQString & field = KGlobal::staticQString( "field" ); static const TQString & field = TDEGlobal::staticQString( "field" );
static const TQString & func = KGlobal::staticQString( "func" ); static const TQString & func = TDEGlobal::staticQString( "func" );
static const TQString & contents = KGlobal::staticQString( "contents" ); static const TQString & contents = TDEGlobal::staticQString( "contents" );
config->writeEntry( field + cIdx, TQString(mField) ); config->writeEntry( field + cIdx, TQString(mField) );
config->writeEntry( func + cIdx, functionToString( mFunction ) ); config->writeEntry( func + cIdx, functionToString( mFunction ) );

@ -942,14 +942,14 @@ bool KMSendSendmail::doStart() {
if (!mMailerProc) if (!mMailerProc)
{ {
mMailerProc = new KProcess; mMailerProc = new TDEProcess;
assert(mMailerProc != 0); assert(mMailerProc != 0);
connect(mMailerProc,TQT_SIGNAL(processExited(KProcess*)), connect(mMailerProc,TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(sendmailExited(KProcess*))); this, TQT_SLOT(sendmailExited(TDEProcess*)));
connect(mMailerProc,TQT_SIGNAL(wroteStdin(KProcess*)), connect(mMailerProc,TQT_SIGNAL(wroteStdin(TDEProcess*)),
this, TQT_SLOT(wroteStdin(KProcess*))); this, TQT_SLOT(wroteStdin(TDEProcess*)));
connect(mMailerProc,TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect(mMailerProc,TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(receivedStderr(KProcess*, char*, int))); this, TQT_SLOT(receivedStderr(TDEProcess*, char*, int)));
} }
return true; return true;
} }
@ -976,7 +976,7 @@ bool KMSendSendmail::doSend( const TQString & sender, const TQStringList & to, c
mMsgStr = message; mMsgStr = message;
if ( !mMailerProc->start( KProcess::NotifyOnExit, KProcess::All ) ) { if ( !mMailerProc->start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
KMessageBox::information( 0, i18n("Failed to execute mailer program %1") KMessageBox::information( 0, i18n("Failed to execute mailer program %1")
.arg( mSender->transportInfo()->host ) ); .arg( mSender->transportInfo()->host ) );
return false; return false;
@ -989,7 +989,7 @@ bool KMSendSendmail::doSend( const TQString & sender, const TQStringList & to, c
} }
void KMSendSendmail::wroteStdin(KProcess *proc) void KMSendSendmail::wroteStdin(TDEProcess *proc)
{ {
char* str; char* str;
int len; int len;
@ -1009,13 +1009,13 @@ void KMSendSendmail::wroteStdin(KProcess *proc)
mMsgRest -= len; mMsgRest -= len;
mMsgPos += len; mMsgPos += len;
mMailerProc->writeStdin(str,len); mMailerProc->writeStdin(str,len);
// if code is added after writeStdin() KProcess probably initiates // if code is added after writeStdin() TDEProcess probably initiates
// a race condition. // a race condition.
} }
} }
void KMSendSendmail::receivedStderr(KProcess *proc, char *buffer, int buflen) void KMSendSendmail::receivedStderr(TDEProcess *proc, char *buffer, int buflen)
{ {
assert(proc!=0); assert(proc!=0);
Q_UNUSED( proc ); Q_UNUSED( proc );
@ -1023,7 +1023,7 @@ void KMSendSendmail::receivedStderr(KProcess *proc, char *buffer, int buflen)
} }
void KMSendSendmail::sendmailExited(KProcess *proc) void KMSendSendmail::sendmailExited(TDEProcess *proc)
{ {
assert(proc!=0); assert(proc!=0);
mSendOk = (proc->normalExit() && proc->exitStatus()==0); mSendOk = (proc->normalExit() && proc->exitStatus()==0);

@ -38,7 +38,7 @@ class KMMessage;
class KMFolder; class KMFolder;
class KMFolderMgr; class KMFolderMgr;
class KConfig; class KConfig;
class KProcess; class TDEProcess;
class KMSendProc; class KMSendProc;
class KMSendSendmail; class KMSendSendmail;
class KMSendSMTP; class KMSendSMTP;

@ -12,7 +12,7 @@
#include <kio/global.h> #include <kio/global.h>
#include <tdeversion.h> #include <tdeversion.h>
class KProcess; class TDEProcess;
namespace KIO { namespace KIO {
class Job; class Job;
@ -95,9 +95,9 @@ public:
void abort(); void abort();
protected slots: protected slots:
void receivedStderr(KProcess*,char*,int); void receivedStderr(TDEProcess*,char*,int);
void wroteStdin(KProcess*); void wroteStdin(TDEProcess*);
void sendmailExited(KProcess*); void sendmailExited(TDEProcess*);
private: private:
/** implemented from KMSendProc */ /** implemented from KMSendProc */
@ -111,7 +111,7 @@ private:
TQByteArray mMsgStr; TQByteArray mMsgStr;
char* mMsgPos; char* mMsgPos;
int mMsgRest; int mMsgRest;
KProcess* mMailerProc; TDEProcess* mMailerProc;
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

@ -250,8 +250,8 @@ void insertLibraryCataloguesAndIcons() {
"libkmime" "libkmime"
}; };
KLocale * l = KGlobal::locale(); KLocale * l = TDEGlobal::locale();
KIconLoader * il = KGlobal::iconLoader(); KIconLoader * il = TDEGlobal::iconLoader();
for ( unsigned int i = 0 ; i < sizeof catalogues / sizeof *catalogues ; ++i ) { for ( unsigned int i = 0 ; i < sizeof catalogues / sizeof *catalogues ; ++i ) {
l->insertCatalogue( catalogues[i] ); l->insertCatalogue( catalogues[i] );
il->addAppDir( catalogues[i] ); il->addAppDir( catalogues[i] );

@ -193,7 +193,7 @@ void KMSystemTray::updateCount()
int oldPixmapHeight = pixmap()->size().height(); int oldPixmapHeight = pixmap()->size().height();
TQString countString = TQString::number( mCount ); TQString countString = TQString::number( mCount );
TQFont countFont = KGlobalSettings::generalFont(); TQFont countFont = TDEGlobalSettings::generalFont();
countFont.setBold(true); countFont.setBold(true);
// decrease the size of the font for the number of unread messages if the // decrease the size of the font for the number of unread messages if the

@ -320,7 +320,7 @@ KMail::SieveEditor::SieveEditor( TQWidget * parent, const char * name )
mTextEdit->setFocus(); mTextEdit->setFocus();
mTextEdit->setTextFormat( TQTextEdit::PlainText ); mTextEdit->setTextFormat( TQTextEdit::PlainText );
mTextEdit->setWordWrap( TQTextEdit::NoWrap ); mTextEdit->setWordWrap( TQTextEdit::NoWrap );
mTextEdit->setFont( KGlobalSettings::fixedFont() ); mTextEdit->setFont( TDEGlobalSettings::fixedFont() );
connect( mTextEdit, TQT_SIGNAL( textChanged () ), TQT_SLOT( slotTextChanged() ) ); connect( mTextEdit, TQT_SIGNAL( textChanged () ), TQT_SLOT( slotTextChanged() ) );
resize( 3 * sizeHint() ); resize( 3 * sizeHint() );
} }

@ -733,7 +733,7 @@ namespace KMail {
void ObjectTreeParser::writeDecryptionInProgressBlock() { void ObjectTreeParser::writeDecryptionInProgressBlock() {
assert( mReader ); assert( mReader );
// PENDING(marc) find an animated icon here: // PENDING(marc) find an animated icon here:
//const TQString iconName = KGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small ); //const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small );
const TQString decryptedData = i18n("Encrypted data not shown"); const TQString decryptedData = i18n("Encrypted data not shown");
PartMetaData messagePart; PartMetaData messagePart;
messagePart.isDecryptable = true; messagePart.isDecryptable = true;
@ -749,7 +749,7 @@ void ObjectTreeParser::writeDecryptionInProgressBlock() {
void ObjectTreeParser::writeDeferredDecryptionBlock() { void ObjectTreeParser::writeDeferredDecryptionBlock() {
assert( mReader ); assert( mReader );
const TQString iconName = KGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small ); const TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( "decrypted", KIcon::Small );
const TQString decryptedData = const TQString decryptedData =
"<div style=\"font-size:large; text-align:center;padding-top:20pt;\">" + "<div style=\"font-size:large; text-align:center;padding-top:20pt;\">" +
i18n("This message is encrypted.") + i18n("This message is encrypted.") +
@ -2010,7 +2010,7 @@ bool ObjectTreeParser::processApplicationMsTnefSubtype( partNode *node, ProcessR
TQString href = "file:" + KURL::encode_string( dir + TQDir::separator() + att->name() ); TQString href = "file:" + KURL::encode_string( dir + TQDir::separator() + att->name() );
KMimeType::Ptr mimeType = KMimeType::mimeType( att->mimeTag() ); KMimeType::Ptr mimeType = KMimeType::mimeType( att->mimeTag() );
TQString iconName = KGlobal::instance()->iconLoader()->iconPath( mimeType->icon( TQString(), false ), KIcon::Desktop ); TQString iconName = TDEGlobal::instance()->iconLoader()->iconPath( mimeType->icon( TQString(), false ), KIcon::Desktop );
htmlWriter()->queue( "<div><a href=\"" + href + "\"><img src=\"" + htmlWriter()->queue( "<div><a href=\"" + href + "\"><img src=\"" +
iconName + "\" border=\"0\" style=\"max-width: 100%\">" + label + iconName + "\" border=\"0\" style=\"max-width: 100%\">" + label +
@ -2563,7 +2563,7 @@ TQString ObjectTreeParser::writeSigstatHeader( PartMetaData & block,
.arg( keyWithWithoutURL ); .arg( keyWithWithoutURL );
else else
htmlStr += i18n( "Message was signed on %1 with key %2." ) htmlStr += i18n( "Message was signed on %1 with key %2." )
.arg( KGlobal::locale()->formatDateTime( created ), .arg( TDEGlobal::locale()->formatDateTime( created ),
keyWithWithoutURL ); keyWithWithoutURL );
} }
else { else {
@ -2572,7 +2572,7 @@ TQString ObjectTreeParser::writeSigstatHeader( PartMetaData & block,
.arg( keyWithWithoutURL ); .arg( keyWithWithoutURL );
else else
htmlStr += i18n( "Message was signed by %3 on %1 with key %2" ) htmlStr += i18n( "Message was signed by %3 on %1 with key %2" )
.arg( KGlobal::locale()->formatDateTime( created ), .arg( TDEGlobal::locale()->formatDateTime( created ),
keyWithWithoutURL, keyWithWithoutURL,
signer ); signer );
} }
@ -2621,7 +2621,7 @@ TQString ObjectTreeParser::writeSigstatHeader( PartMetaData & block,
TQDateTime created = block.creationTime; TQDateTime created = block.creationTime;
if ( created.isValid() ) if ( created.isValid() )
htmlStr += i18n( "Message was signed on %1 with unknown key %2." ) htmlStr += i18n( "Message was signed on %1 with unknown key %2." )
.arg( KGlobal::locale()->formatDateTime( created ), .arg( TDEGlobal::locale()->formatDateTime( created ),
keyWithWithoutURL ); keyWithWithoutURL );
else else
htmlStr += i18n( "Message was signed with unknown key %1." ) htmlStr += i18n( "Message was signed with unknown key %1." )
@ -2997,11 +2997,11 @@ TQString ObjectTreeParser::quotedHTML( const TQString& s, bool decorate )
// Cache Icons // Cache Icons
if ( mCollapseIcon.isEmpty() ) { if ( mCollapseIcon.isEmpty() ) {
mCollapseIcon= LinkLocator::pngToDataUrl( mCollapseIcon= LinkLocator::pngToDataUrl(
KGlobal::instance()->iconLoader()->iconPath( "quotecollapse",0 )); TDEGlobal::instance()->iconLoader()->iconPath( "quotecollapse",0 ));
} }
if ( mExpandIcon.isEmpty() ) if ( mExpandIcon.isEmpty() )
mExpandIcon= LinkLocator::pngToDataUrl( mExpandIcon= LinkLocator::pngToDataUrl(
KGlobal::instance()->iconLoader()->iconPath( "quoteexpand",0 )); TDEGlobal::instance()->iconLoader()->iconPath( "quoteexpand",0 ));
} }
for (unsigned int p=0; p<line.length(); p++) { for (unsigned int p=0; p<line.length(); p++) {

@ -325,7 +325,7 @@ RecipientsView::RecipientsView( TQWidget *parent )
mLineHeight( 0 ), mFirstColumnWidth( 0 ), mLineHeight( 0 ), mFirstColumnWidth( 0 ),
mModified( false ) mModified( false )
{ {
mCompletionMode = KGlobalSettings::completionMode(); mCompletionMode = TDEGlobalSettings::completionMode();
setHScrollBarMode( AlwaysOff ); setHScrollBarMode( AlwaysOff );
setLineWidth( 0 ); setLineWidth( 0 );
@ -369,8 +369,8 @@ RecipientLine *RecipientsView::addLine()
connect( line, TQT_SIGNAL( countChanged() ), TQT_SLOT( calculateTotal() ) ); connect( line, TQT_SIGNAL( countChanged() ), TQT_SLOT( calculateTotal() ) );
connect( line, TQT_SIGNAL( typeModified( RecipientLine * ) ), connect( line, TQT_SIGNAL( typeModified( RecipientLine * ) ),
TQT_SLOT( slotTypeModified( RecipientLine * ) ) ); TQT_SLOT( slotTypeModified( RecipientLine * ) ) );
connect( line->mEdit, TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ), connect( line->mEdit, TQT_SIGNAL( completionModeChanged( TDEGlobalSettings::Completion ) ),
TQT_SLOT( setCompletionMode( KGlobalSettings::Completion ) ) ); TQT_SLOT( setCompletionMode( TDEGlobalSettings::Completion ) ) );
if ( mLines.last() ) { if ( mLines.last() ) {
if ( mLines.count() == 1 ) { if ( mLines.count() == 1 ) {
@ -586,7 +586,7 @@ Recipient::List RecipientsView::recipients() const
return recipients; return recipients;
} }
void RecipientsView::setCompletionMode ( KGlobalSettings::Completion mode ) void RecipientsView::setCompletionMode ( TDEGlobalSettings::Completion mode )
{ {
if ( mCompletionMode == mode ) if ( mCompletionMode == mode )
return; return;
@ -847,8 +847,8 @@ RecipientsEditor::RecipientsEditor( TQWidget *parent )
topLayout->addWidget( mRecipientsView ); topLayout->addWidget( mRecipientsView );
connect( mRecipientsView, TQT_SIGNAL( focusUp() ), TQT_SIGNAL( focusUp() ) ); connect( mRecipientsView, TQT_SIGNAL( focusUp() ), TQT_SIGNAL( focusUp() ) );
connect( mRecipientsView, TQT_SIGNAL( focusDown() ), TQT_SIGNAL( focusDown() ) ); connect( mRecipientsView, TQT_SIGNAL( focusDown() ), TQT_SIGNAL( focusDown() ) );
connect( mRecipientsView, TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ), connect( mRecipientsView, TQT_SIGNAL( completionModeChanged( TDEGlobalSettings::Completion ) ),
TQT_SIGNAL( completionModeChanged( KGlobalSettings::Completion ) ) ); TQT_SIGNAL( completionModeChanged( TDEGlobalSettings::Completion ) ) );
mSideWidget = new SideWidget( mRecipientsView, this ); mSideWidget = new SideWidget( mRecipientsView, this );
topLayout->addWidget( mSideWidget ); topLayout->addWidget( mSideWidget );
@ -993,7 +993,7 @@ void RecipientsEditor::selectRecipients()
mSideWidget->pickRecipient(); mSideWidget->pickRecipient();
} }
void RecipientsEditor::setCompletionMode( KGlobalSettings::Completion mode ) void RecipientsEditor::setCompletionMode( TDEGlobalSettings::Completion mode )
{ {
mRecipientsView->setCompletionMode( mode ); mRecipientsView->setCompletionMode( mode );
} }

@ -212,7 +212,7 @@ class RecipientsView : public TQScrollView
int setFirstColumnWidth( int ); int setFirstColumnWidth( int );
public slots: public slots:
void setCompletionMode( KGlobalSettings::Completion ); void setCompletionMode( TDEGlobalSettings::Completion );
RecipientLine *addLine(); RecipientLine *addLine();
void setFocus(); void setFocus();
@ -224,7 +224,7 @@ class RecipientsView : public TQScrollView
void focusUp(); void focusUp();
void focusDown(); void focusDown();
void focusRight(); void focusRight();
void completionModeChanged( KGlobalSettings::Completion ); void completionModeChanged( TDEGlobalSettings::Completion );
void sizeHintChanged(); void sizeHintChanged();
protected: protected:
@ -247,7 +247,7 @@ class RecipientsView : public TQScrollView
int mLineHeight; int mLineHeight;
int mFirstColumnWidth; int mFirstColumnWidth;
bool mModified; bool mModified;
KGlobalSettings::Completion mCompletionMode; TDEGlobalSettings::Completion mCompletionMode;
}; };
class RecipientsToolTip : public TQToolTip class RecipientsToolTip : public TQToolTip
@ -344,7 +344,7 @@ class RecipientsEditor : public TQWidget
/** /**
* Set completion mode for all lines * Set completion mode for all lines
*/ */
void setCompletionMode( KGlobalSettings::Completion ); void setCompletionMode( TDEGlobalSettings::Completion );
public slots: public slots:
void setFocus(); void setFocus();
@ -357,7 +357,7 @@ class RecipientsEditor : public TQWidget
signals: signals:
void focusUp(); void focusUp();
void focusDown(); void focusDown();
void completionModeChanged( KGlobalSettings::Completion ); void completionModeChanged( TDEGlobalSettings::Completion );
void sizeHintChanged(); void sizeHintChanged();
protected slots: protected slots:

@ -63,7 +63,7 @@ void RecipientItem::setDistributionList( KPIM::DistributionList &list )
{ {
mDistributionList = list; mDistributionList = list;
mIcon = KGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small );
mName = list.name(); mName = list.name();
mKey = list.name(); mKey = list.name();
@ -80,7 +80,7 @@ void RecipientItem::setDistributionList( KABC::DistributionList *list )
{ {
mDistributionList = list; mDistributionList = list;
mIcon = KGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small );
mName = list->name(); mName = list->name();
mKey = list->name(); mKey = list->name();
@ -105,7 +105,7 @@ void RecipientItem::setAddressee( const KABC::Addressee &a,
if ( !img.isNull() ) if ( !img.isNull() )
mIcon = img.smoothScale( 20, 20, TQ_ScaleMin ); mIcon = img.smoothScale( 20, 20, TQ_ScaleMin );
else else
mIcon = KGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ); mIcon = TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small );
mName = mAddressee.realName(); mName = mAddressee.realName();
mKey = mAddressee.realName() + '|' + mEmail; mKey = mAddressee.realName() + '|' + mEmail;
@ -372,7 +372,7 @@ RecipientsPicker::RecipientsPicker( TQWidget *parent )
TQBoxLayout *searchLayout = new TQHBoxLayout( topLayout ); TQBoxLayout *searchLayout = new TQHBoxLayout( topLayout );
TQToolButton *button = new TQToolButton( this ); TQToolButton *button = new TQToolButton( this );
button->setIconSet( KGlobal::iconLoader()->loadIconSet( button->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) );
searchLayout->addWidget( button ); searchLayout->addWidget( button );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( resetSearch() ) ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( resetSearch() ) );
@ -810,7 +810,7 @@ void RecipientsPicker::keyPressEvent( TQKeyEvent *ev )
void RecipientsPicker::readConfig() void RecipientsPicker::readConfig()
{ {
KConfig *cfg = KGlobal::config(); KConfig *cfg = TDEGlobal::config();
cfg->setGroup( "RecipientsPicker" ); cfg->setGroup( "RecipientsPicker" );
TQSize size = cfg->readSizeEntry( "Size" ); TQSize size = cfg->readSizeEntry( "Size" );
if ( !size.isEmpty() ) { if ( !size.isEmpty() ) {
@ -825,7 +825,7 @@ void RecipientsPicker::readConfig()
void RecipientsPicker::writeConfig() void RecipientsPicker::writeConfig()
{ {
KConfig *cfg = KGlobal::config(); KConfig *cfg = TDEGlobal::config();
cfg->setGroup( "RecipientsPicker" ); cfg->setGroup( "RecipientsPicker" );
cfg->writeEntry( "Size", size() ); cfg->writeEntry( "Size", size() );
cfg->writeEntry( "CurrentCollection", mCollectionCombo->currentItem() ); cfg->writeEntry( "CurrentCollection", mCollectionCombo->currentItem() );

@ -105,7 +105,7 @@ namespace KMail {
TQWhatsThis::add(mTextEdit, TQWhatsThis::add(mTextEdit,
i18n("Use this field to enter an arbitrary static signature.")); i18n("Use this field to enter an arbitrary static signature."));
widgetStack->addWidget( mTextEdit, pageno ); widgetStack->addWidget( mTextEdit, pageno );
mTextEdit->setFont( KGlobalSettings::fixedFont() ); mTextEdit->setFont( TDEGlobalSettings::fixedFont() );
mTextEdit->setWordWrap( TQTextEdit::NoWrap ); mTextEdit->setWordWrap( TQTextEdit::NoWrap );
mTextEdit->setTextFormat( TQt::PlainText ); mTextEdit->setTextFormat( TQt::PlainText );

@ -702,21 +702,21 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
kdDebug() << "Command: DATESHORT" << endl; kdDebug() << "Command: DATESHORT" << endl;
i += strlen( "DATESHORT" ); i += strlen( "DATESHORT" );
TQDateTime date = TQDateTime::currentDateTime(); TQDateTime date = TQDateTime::currentDateTime();
TQString str = KGlobal::locale()->formatDate( date.date(), true ); TQString str = TDEGlobal::locale()->formatDate( date.date(), true );
body.append( str ); body.append( str );
} else if ( cmd.startsWith( "DATE" ) ) { } else if ( cmd.startsWith( "DATE" ) ) {
kdDebug() << "Command: DATE" << endl; kdDebug() << "Command: DATE" << endl;
i += strlen( "DATE" ); i += strlen( "DATE" );
TQDateTime date = TQDateTime::currentDateTime(); TQDateTime date = TQDateTime::currentDateTime();
TQString str = KGlobal::locale()->formatDate( date.date(), false ); TQString str = TDEGlobal::locale()->formatDate( date.date(), false );
body.append( str ); body.append( str );
} else if ( cmd.startsWith( "DOW" ) ) { } else if ( cmd.startsWith( "DOW" ) ) {
kdDebug() << "Command: DOW" << endl; kdDebug() << "Command: DOW" << endl;
i += strlen( "DOW" ); i += strlen( "DOW" );
TQDateTime date = TQDateTime::currentDateTime(); TQDateTime date = TQDateTime::currentDateTime();
TQString str = KGlobal::locale()->calendar()->weekDayName( date.date(), false ); TQString str = TDEGlobal::locale()->calendar()->weekDayName( date.date(), false );
body.append( str ); body.append( str );
} else if ( cmd.startsWith( "TIMELONGEN" ) ) { } else if ( cmd.startsWith( "TIMELONGEN" ) ) {
@ -731,14 +731,14 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
kdDebug() << "Command: TIMELONG" << endl; kdDebug() << "Command: TIMELONG" << endl;
i += strlen( "TIMELONG" ); i += strlen( "TIMELONG" );
TQDateTime date = TQDateTime::currentDateTime(); TQDateTime date = TQDateTime::currentDateTime();
TQString str = KGlobal::locale()->formatTime( date.time(), true ); TQString str = TDEGlobal::locale()->formatTime( date.time(), true );
body.append( str ); body.append( str );
} else if ( cmd.startsWith( "TIME" ) ) { } else if ( cmd.startsWith( "TIME" ) ) {
kdDebug() << "Command: TIME" << endl; kdDebug() << "Command: TIME" << endl;
i += strlen( "TIME" ); i += strlen( "TIME" );
TQDateTime date = TQDateTime::currentDateTime(); TQDateTime date = TQDateTime::currentDateTime();
TQString str = KGlobal::locale()->formatTime( date.time(), false ); TQString str = TDEGlobal::locale()->formatTime( date.time(), false );
body.append( str ); body.append( str );
} else if ( cmd.startsWith( "ODATEEN" ) ) { } else if ( cmd.startsWith( "ODATEEN" ) ) {
@ -758,7 +758,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
if ( mOrigMsg ) { if ( mOrigMsg ) {
TQDateTime date; TQDateTime date;
date.setTime_t( mOrigMsg->date() ); date.setTime_t( mOrigMsg->date() );
TQString str = KGlobal::locale()->formatDate( date.date(), true ); TQString str = TDEGlobal::locale()->formatDate( date.date(), true );
body.append( str ); body.append( str );
} }
@ -768,7 +768,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
if ( mOrigMsg ) { if ( mOrigMsg ) {
TQDateTime date; TQDateTime date;
date.setTime_t( mOrigMsg->date() ); date.setTime_t( mOrigMsg->date() );
TQString str = KGlobal::locale()->formatDate( date.date(), false ); TQString str = TDEGlobal::locale()->formatDate( date.date(), false );
body.append( str ); body.append( str );
} }
@ -778,7 +778,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
if ( mOrigMsg ) { if ( mOrigMsg ) {
TQDateTime date; TQDateTime date;
date.setTime_t( mOrigMsg->date() ); date.setTime_t( mOrigMsg->date() );
TQString str = KGlobal::locale()->calendar()->weekDayName( date.date(), false ); TQString str = TDEGlobal::locale()->calendar()->weekDayName( date.date(), false );
body.append( str ); body.append( str );
} }
@ -799,7 +799,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
if ( mOrigMsg ) { if ( mOrigMsg ) {
TQDateTime date; TQDateTime date;
date.setTime_t( mOrigMsg->date() ); date.setTime_t( mOrigMsg->date() );
TQString str = KGlobal::locale()->formatTime( date.time(), true ); TQString str = TDEGlobal::locale()->formatTime( date.time(), true );
body.append( str ); body.append( str );
} }
@ -809,7 +809,7 @@ void TemplateParser::processWithTemplate( const TQString &tmpl )
if ( mOrigMsg ) { if ( mOrigMsg ) {
TQDateTime date; TQDateTime date;
date.setTime_t( mOrigMsg->date() ); date.setTime_t( mOrigMsg->date() );
TQString str = KGlobal::locale()->formatTime( date.time(), false ); TQString str = TDEGlobal::locale()->formatTime( date.time(), false );
body.append( str ); body.append( str );
} }
@ -1118,21 +1118,21 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
mPipeErr = ""; mPipeErr = "";
mPipeRc = 0; mPipeRc = 0;
KProcess proc; TDEProcess proc;
TQCString data = buf.local8Bit(); TQCString data = buf.local8Bit();
// kdDebug() << "Command data: " << data << endl; // kdDebug() << "Command data: " << data << endl;
proc << KShell::splitArgs( cmd, KShell::TildeExpand ); proc << KShell::splitArgs( cmd, KShell::TildeExpand );
proc.setUseShell( true ); proc.setUseShell( true );
connect( &proc, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ), connect( &proc, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
this, TQT_SLOT( onReceivedStdout( KProcess *, char *, int ) ) ); this, TQT_SLOT( onReceivedStdout( TDEProcess *, char *, int ) ) );
connect( &proc, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ), connect( &proc, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
this, TQT_SLOT( onReceivedStderr( KProcess *, char *, int ) ) ); this, TQT_SLOT( onReceivedStderr( TDEProcess *, char *, int ) ) );
connect( &proc, TQT_SIGNAL( wroteStdin( KProcess * ) ), connect( &proc, TQT_SIGNAL( wroteStdin( TDEProcess * ) ),
this, TQT_SLOT( onWroteStdin( KProcess * ) ) ); this, TQT_SLOT( onWroteStdin( TDEProcess * ) ) );
if ( proc.start( KProcess::NotifyOnExit, KProcess::All ) ) { if ( proc.start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
bool pipe_filled = proc.writeStdin( data, data.length() ); bool pipe_filled = proc.writeStdin( data, data.length() );
if ( pipe_filled ) { if ( pipe_filled ) {
@ -1208,25 +1208,25 @@ TQString TemplateParser::pipe( const TQString &cmd, const TQString &buf )
return mPipeOut; return mPipeOut;
} }
void TemplateParser::onProcessExited( KProcess *proc ) void TemplateParser::onProcessExited( TDEProcess *proc )
{ {
Q_UNUSED( proc ); Q_UNUSED( proc );
// do nothing for now // do nothing for now
} }
void TemplateParser::onReceivedStdout( KProcess *proc, char *buffer, int buflen ) void TemplateParser::onReceivedStdout( TDEProcess *proc, char *buffer, int buflen )
{ {
Q_UNUSED( proc ); Q_UNUSED( proc );
mPipeOut += TQString::fromLocal8Bit( buffer, buflen ); mPipeOut += TQString::fromLocal8Bit( buffer, buflen );
} }
void TemplateParser::onReceivedStderr( KProcess *proc, char *buffer, int buflen ) void TemplateParser::onReceivedStderr( TDEProcess *proc, char *buffer, int buflen )
{ {
Q_UNUSED( proc ); Q_UNUSED( proc );
mPipeErr += TQString::fromLocal8Bit( buffer, buflen ); mPipeErr += TQString::fromLocal8Bit( buffer, buflen );
} }
void TemplateParser::onWroteStdin( KProcess *proc ) void TemplateParser::onWroteStdin( TDEProcess *proc )
{ {
proc->closeStdin(); proc->closeStdin();
} }

@ -27,7 +27,7 @@ class KMMessage;
class TQString; class TQString;
class KMFolder; class KMFolder;
class TQObject; class TQObject;
class KProcess; class TDEProcess;
/** /**
* The TemplateParser transforms a message with a given template. * The TemplateParser transforms a message with a given template.
@ -163,10 +163,10 @@ class TemplateParser : public TQObject
TQString &quote ) const; TQString &quote ) const;
protected slots: protected slots:
void onProcessExited( KProcess *proc ); void onProcessExited( TDEProcess *proc );
void onReceivedStdout( KProcess *proc, char *buffer, int buflen ); void onReceivedStdout( TDEProcess *proc, char *buffer, int buflen );
void onReceivedStderr( KProcess *proc, char *buffer, int buflen ); void onReceivedStderr( TDEProcess *proc, char *buffer, int buflen );
void onWroteStdin( KProcess *proc ); void onWroteStdin( TDEProcess *proc );
}; };
#endif // __KMAIL_TEMPLATEPARSER_H__ #endif // __KMAIL_TEMPLATEPARSER_H__

@ -41,7 +41,7 @@
TemplatesConfiguration::TemplatesConfiguration( TQWidget *parent, const char *name ) TemplatesConfiguration::TemplatesConfiguration( TQWidget *parent, const char *name )
:TemplatesConfigurationBase( parent, name ) :TemplatesConfigurationBase( parent, name )
{ {
TQFont f = KGlobalSettings::fixedFont(); TQFont f = TDEGlobalSettings::fixedFont();
textEdit_new->setFont( f ); textEdit_new->setFont( f );
textEdit_reply->setFont( f ); textEdit_reply->setFont( f );
textEdit_reply_all->setFont( f ); textEdit_reply_all->setFont( f );

@ -548,9 +548,9 @@ namespace {
TQString displayName, libName, keyId; TQString displayName, libName, keyId;
if ( !foundSMIMEData( url.path() + '#' + url.ref(), displayName, libName, keyId ) ) if ( !foundSMIMEData( url.path() + '#' + url.ref(), displayName, libName, keyId ) )
return false; return false;
KProcess cmp; TDEProcess cmp;
cmp << "kleopatra" << "-query" << keyId; cmp << "kleopatra" << "-query" << keyId;
if ( !cmp.start( KProcess::DontCare ) ) if ( !cmp.start( TDEProcess::DontCare ) )
KMessageBox::error( w, i18n("Could not start certificate manager. " KMessageBox::error( w, i18n("Could not start certificate manager. "
"Please check your installation."), "Please check your installation."),
i18n("KMail Error") ); i18n("KMail Error") );

@ -573,7 +573,7 @@ namespace KMail {
"\n" "\n"
"Yours sincerely,\n" "Yours sincerely,\n"
"-- <enter your name and email address here>\n") "-- <enter your name and email address here>\n")
.arg( KGlobal::locale()->formatDate( TQDate::currentDate().addDays( 1 ) ) ); .arg( TDEGlobal::locale()->formatDate( TQDate::currentDate().addDays( 1 ) ) );
} }
int Vacation::defaultNotificationInterval() { int Vacation::defaultNotificationInterval() {

@ -178,7 +178,7 @@ namespace KMail {
mTextEdit = new TQTextEdit( page ); mTextEdit = new TQTextEdit( page );
page_vlay->addWidget( mTextEdit ); page_vlay->addWidget( mTextEdit );
TQWhatsThis::add( mTextEdit, i18n( "Use this field to enter an arbitrary X-Face string." ) ); TQWhatsThis::add( mTextEdit, i18n( "Use this field to enter an arbitrary X-Face string." ) );
mTextEdit->setFont( KGlobalSettings::fixedFont() ); mTextEdit->setFont( TDEGlobalSettings::fixedFont() );
mTextEdit->setWrapPolicy( TQTextEdit::Anywhere ); mTextEdit->setWrapPolicy( TQTextEdit::Anywhere );
mTextEdit->setTextFormat( TQt::PlainText ); mTextEdit->setTextFormat( TQt::PlainText );
label2 = new KActiveLabel( i18n("Examples are available at <a href=\"http://www.xs4all.nl/~ace/X-Faces/\">http://www.xs4all.nl/~ace/X-Faces/</a>."), page ); label2 = new KActiveLabel( i18n("Examples are available at <a href=\"http://www.xs4all.nl/~ace/X-Faces/\">http://www.xs4all.nl/~ace/X-Faces/</a>."), page );

@ -213,7 +213,7 @@ void KMobile::optionsConfigureKeys()
void KMobile::optionsConfigureToolbars() void KMobile::optionsConfigureToolbars()
{ {
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void KMobile::newToolbarConfig() void KMobile::newToolbarConfig()
@ -222,7 +222,7 @@ void KMobile::newToolbarConfig()
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI(); createGUI();
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void KMobile::optionsPreferences() void KMobile::optionsPreferences()
@ -278,7 +278,7 @@ void KMobile::addDevice()
TQString iconName = ptr->icon(); TQString iconName = ptr->icon();
if (iconName.isEmpty()) if (iconName.isEmpty())
iconName = KMOBILE_ICON_UNKNOWN; iconName = KMOBILE_ICON_UNKNOWN;
TQPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Desktop ); TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Desktop );
TQIconViewItem *item; TQIconViewItem *item;
item = new TQIconViewItem( dialog->iconView, ptr->name(), pm ); item = new TQIconViewItem( dialog->iconView, ptr->name(), pm );

@ -98,7 +98,7 @@ bool KMobileItem::configLoad(int idx)
TQPixmap KMobileItem::getIcon() const TQPixmap KMobileItem::getIcon() const
{ {
return KGlobal::instance()->iconLoader()->loadIcon(m_iconName, KIcon::Desktop ); return TDEGlobal::instance()->iconLoader()->loadIcon(m_iconName, KIcon::Desktop );
} }
TQString KMobileItem::config_SectionName(int idx) const TQString KMobileItem::config_SectionName(int idx) const

@ -100,7 +100,7 @@ KMobileItem *KMobileView::findDevice( const TQString &deviceName ) const
bool KMobileView::startKonqueror( const TQString &devName ) bool KMobileView::startKonqueror( const TQString &devName )
{ {
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
*proc << "kfmclient" << "openProfile" << "webbrowsing" << "mobile:/"+devName; *proc << "kfmclient" << "openProfile" << "webbrowsing" << "mobile:/"+devName;
return proc->start(); return proc->start();
} }

@ -38,7 +38,7 @@
SystemTray::SystemTray(KMainWindow *parent, const char *name) : KSystemTray(parent, name) SystemTray::SystemTray(KMainWindow *parent, const char *name) : KSystemTray(parent, name)
{ {
m_appPix = KGlobal::instance()->iconLoader()->loadIcon("kmobile", KIcon::Small); m_appPix = TDEGlobal::instance()->iconLoader()->loadIcon("kmobile", KIcon::Small);
setPixmap(m_appPix); setPixmap(m_appPix);
setToolTip(); setToolTip();
@ -72,7 +72,7 @@ void SystemTray::contextMenuAboutToShow(KPopupMenu *menu)
for (unsigned int no=0; no<list.count(); no++) { for (unsigned int no=0; no<list.count(); no++) {
TQString devName = list[no]; TQString devName = list[no];
TQString iconName = main->mainView()->iconFileName(devName); TQString iconName = main->mainView()->iconFileName(devName);
TQPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Small); TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Small);
menu->insertItem(pm, devName, SYSTEMTRAY_STARTID+no, 3+no); menu->insertItem(pm, devName, SYSTEMTRAY_STARTID+no, 3+no);
menu->connectItem(SYSTEMTRAY_STARTID+no, this, TQT_SLOT(menuItemSelected())); menu->connectItem(SYSTEMTRAY_STARTID+no, this, TQT_SLOT(menuItemSelected()));
} }

@ -192,7 +192,7 @@ void ArticleWidget::initActions()
mCharsetSelect = new KSelectAction( i18n("Chars&et"), 0, mActionCollection, "set_charset" ); mCharsetSelect = new KSelectAction( i18n("Chars&et"), 0, mActionCollection, "set_charset" );
mCharsetSelect->setShortcutConfigurable( false ); mCharsetSelect->setShortcutConfigurable( false );
TQStringList cs = KGlobal::charsets()->descriptiveEncodingNames(); TQStringList cs = TDEGlobal::charsets()->descriptiveEncodingNames();
cs.prepend( i18n("Automatic") ); cs.prepend( i18n("Automatic") );
mCharsetSelect->setItems( cs ); mCharsetSelect->setItems( cs );
mCharsetSelect->setCurrentItem( 0 ); mCharsetSelect->setCurrentItem( 0 );
@ -420,9 +420,9 @@ void ArticleWidget::displayArticle()
TQStrListIterator npbit( nonPgpBlocks ); TQStrListIterator npbit( nonPgpBlocks );
TQTextCodec *codec; TQTextCodec *codec;
if ( text ) if ( text )
codec = KGlobal::charsets()->codecForName( text->contentType()->charset() ); codec = TDEGlobal::charsets()->codecForName( text->contentType()->charset() );
else else
codec = KGlobal::locale()->codecForEncoding(); codec = TDEGlobal::locale()->codecForEncoding();
for( ; *pbit != 0; ++pbit, ++npbit ) { for( ; *pbit != 0; ++pbit, ++npbit ) {
// handle non-pgp block // handle non-pgp block
@ -607,7 +607,7 @@ void ArticleWidget::displayHeader()
} }
} else if ( hb->is("Date") ) { } else if ( hb->is("Date") ) {
KMime::Headers::Date *date=static_cast<KMime::Headers::Date*>(hb); KMime::Headers::Date *date=static_cast<KMime::Headers::Date*>(hb);
headerHtml += toHtmlString( KGlobal::locale()->formatDateTime(date->qdt(), false, true), None ); headerHtml += toHtmlString( TDEGlobal::locale()->formatDateTime(date->qdt(), false, true), None );
} else if ( hb->is("Newsgroups") ) { } else if ( hb->is("Newsgroups") ) {
TQString groups = hb->asUnicodeString(); TQString groups = hb->asUnicodeString();
groups.replace( ',', ", " ); groups.replace( ',', ", " );
@ -883,7 +883,7 @@ void ArticleWidget::displayAttachment( KMime::Content *att, int partNum )
TQCString mimetype = ct->mimeType(); TQCString mimetype = ct->mimeType();
KPIM::kAsciiToLower( mimetype.data() ); KPIM::kAsciiToLower( mimetype.data() );
TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false ); TQString iconName = KMimeType::mimeType( mimetype )->icon( TQString(), false );
TQString iconFile = KGlobal::instance()->iconLoader()->iconPath( iconName, KIcon::Desktop ); TQString iconFile = TDEGlobal::instance()->iconLoader()->iconPath( iconName, KIcon::Desktop );
html += "<div><a href=\"" + href + "\"><img src=\"" + html += "<div><a href=\"" + href + "\"><img src=\"" +
iconFile + "\" border=\"0\">" + label + iconFile + "\" border=\"0\">" + label +
"</a></div><div>" + comment + "</div><br>"; "</a></div><div>" + comment + "</div><br>";
@ -949,7 +949,7 @@ bool ArticleWidget::canDecodeText( const TQCString &charset ) const
if ( charset.isEmpty() ) if ( charset.isEmpty() )
return false; return false;
bool ok = true; bool ok = true;
KGlobal::charsets()->codecForName( charset,ok ); TDEGlobal::charsets()->codecForName( charset,ok );
return ok; return ok;
} }
@ -1373,7 +1373,7 @@ void ArticleWidget::slotSetCharset( const TQString &charset )
mOverrideCharset = KMime::Headers::Latin1; mOverrideCharset = KMime::Headers::Latin1;
} else { } else {
mForceCharset = true; mForceCharset = true;
mOverrideCharset = KGlobal::charsets()->encodingForName( charset ).latin1(); mOverrideCharset = TDEGlobal::charsets()->encodingForName( charset ).latin1();
} }
if ( mArticle && mArticle->hasContent() ) { if ( mArticle && mArticle->hasContent() ) {

@ -212,7 +212,7 @@ void KNArticleFactory::createReply(KNRemoteArticle *a, TQString selectedText, bo
name = TQString::fromLatin1(a->from()->email()); name = TQString::fromLatin1(a->from()->email());
attribution.replace(TQRegExp("%NAME"),name); attribution.replace(TQRegExp("%NAME"),name);
attribution.replace(TQRegExp("%EMAIL"),TQString::fromLatin1(a->from()->email())); attribution.replace(TQRegExp("%EMAIL"),TQString::fromLatin1(a->from()->email()));
attribution.replace(TQRegExp("%DATE"),KGlobal::locale()->formatDateTime(a->date()->qdt(),false)); attribution.replace(TQRegExp("%DATE"),TDEGlobal::locale()->formatDateTime(a->date()->qdt(),false));
attribution.replace(TQRegExp("%MSID"),a->messageID()->asUnicodeString()); attribution.replace(TQRegExp("%MSID"),a->messageID()->asUnicodeString());
attribution.replace(TQRegExp("%GROUP"),g->groupname()); attribution.replace(TQRegExp("%GROUP"),g->groupname());
attribution.replace(TQRegExp("%L"),"\n"); attribution.replace(TQRegExp("%L"),"\n");

@ -840,9 +840,9 @@ bool KNComposer::applyChanges()
TQString tmpText = tmp; TQString tmpText = tmp;
Kpgp::Block block; Kpgp::Block block;
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(c_harset, ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(c_harset, ok);
if(!ok) // no suitable codec found => try local settings and hope the best ;-) if(!ok) // no suitable codec found => try local settings and hope the best ;-)
codec=KGlobal::locale()->codecForEncoding(); codec=TDEGlobal::locale()->codecForEncoding();
block.setText( codec->fromUnicode(tmpText) ); block.setText( codec->fromUnicode(tmpText) );
kdDebug(5003) << "signing article from " << article()->from()->email() << endl; kdDebug(5003) << "signing article from " << article()->from()->email() << endl;
@ -964,7 +964,7 @@ void KNComposer::insertFile(TQFile *file, bool clear, bool box, TQString boxTitl
{ {
TQString temp; TQString temp;
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(c_harset, ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(c_harset, ok);
TQTextStream ts(file); TQTextStream ts(file);
ts.setCodec(codec); ts.setCodec(codec);
@ -1264,7 +1264,7 @@ void KNComposer::slotExternalEditor()
} }
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(c_harset, ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(c_harset, ok);
TQString tmp; TQString tmp;
TQStringList textLines = v_iew->e_dit->processedText(); TQStringList textLines = v_iew->e_dit->processedText();
@ -1287,7 +1287,7 @@ void KNComposer::slotExternalEditor()
return; return;
} }
e_xternalEditor=new KProcess(); e_xternalEditor=new TDEProcess();
// construct command line... // construct command line...
TQStringList command = TQStringList::split(' ',editorCommand); TQStringList command = TQStringList::split(' ',editorCommand);
@ -1302,7 +1302,7 @@ void KNComposer::slotExternalEditor()
if(!filenameAdded) // no %f in the editor command if(!filenameAdded) // no %f in the editor command
(*e_xternalEditor) << e_ditorTempfile->name(); (*e_xternalEditor) << e_ditorTempfile->name();
connect(e_xternalEditor, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotEditorFinished(KProcess *))); connect(e_xternalEditor, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotEditorFinished(TDEProcess *)));
if(!e_xternalEditor->start()) { if(!e_xternalEditor->start()) {
KMessageBox::error(this, i18n("Unable to start external editor.\nPlease check your configuration in the settings dialog.")); KMessageBox::error(this, i18n("Unable to start external editor.\nPlease check your configuration in the settings dialog."));
delete e_xternalEditor; delete e_xternalEditor;
@ -1520,7 +1520,7 @@ void KNComposer::slotGroupsBtnClicked()
} }
void KNComposer::slotEditorFinished(KProcess *) void KNComposer::slotEditorFinished(TDEProcess *)
{ {
if(e_xternalEditor->normalExit()) { if(e_xternalEditor->normalExit()) {
e_ditorTempfile->file()->close(); e_ditorTempfile->file()->close();

@ -31,7 +31,7 @@
class TQGroupBox; class TQGroupBox;
class KProcess; class TDEProcess;
class KSpell; class KSpell;
class KDictSpellingHighlighter; class KDictSpellingHighlighter;
class KSelectAction; class KSelectAction;
@ -103,7 +103,7 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
//edit //edit
bool e_xternalEdited; bool e_xternalEdited;
KProcess *e_xternalEditor; TDEProcess *e_xternalEditor;
KTempFile *e_ditorTempfile; KTempFile *e_ditorTempfile;
KSpell *s_pellChecker; KSpell *s_pellChecker;
SpellingFilter* mSpellingFilter; SpellingFilter* mSpellingFilter;
@ -160,7 +160,7 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
void slotGroupsBtnClicked(); void slotGroupsBtnClicked();
// external editor // external editor
void slotEditorFinished(KProcess *); void slotEditorFinished(TDEProcess *);
void slotCancelEditor(); void slotCancelEditor();
// attachment list // attachment list

@ -131,17 +131,17 @@ TQString KNConfig::Identity::getSignature()
else else
KMessageBox::error(knGlobals.topWidget, i18n("Cannot open the signature file.")); KMessageBox::error(knGlobals.topWidget, i18n("Cannot open the signature file."));
} else { } else {
KProcess process; TDEProcess process;
// construct command line... // construct command line...
TQStringList command = TQStringList::split(' ',s_igPath); TQStringList command = TQStringList::split(' ',s_igPath);
for ( TQStringList::Iterator it = command.begin(); it != command.end(); ++it ) for ( TQStringList::Iterator it = command.begin(); it != command.end(); ++it )
process << (*it); process << (*it);
connect(&process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceiveStdout(KProcess *, char *, int))); connect(&process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(slotReceiveStdout(TDEProcess *, char *, int)));
connect(&process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(slotReceiveStderr(KProcess *, char *, int))); connect(&process, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQT_SLOT(slotReceiveStderr(TDEProcess *, char *, int)));
if (!process.start(KProcess::Block,KProcess::AllOutput)) if (!process.start(TDEProcess::Block,TDEProcess::AllOutput))
KMessageBox::error(knGlobals.topWidget, i18n("Cannot run the signature generator.")); KMessageBox::error(knGlobals.topWidget, i18n("Cannot run the signature generator."));
} }
} }
@ -156,13 +156,13 @@ TQString KNConfig::Identity::getSignature()
} }
void KNConfig::Identity::slotReceiveStdout(KProcess *, char *buffer, int buflen) void KNConfig::Identity::slotReceiveStdout(TDEProcess *, char *buffer, int buflen)
{ {
s_igContents.append(TQString::fromLocal8Bit(buffer,buflen)); s_igContents.append(TQString::fromLocal8Bit(buffer,buflen));
} }
void KNConfig::Identity::slotReceiveStderr(KProcess *, char *buffer, int buflen) void KNConfig::Identity::slotReceiveStderr(TDEProcess *, char *buffer, int buflen)
{ {
s_igStdErr.append(TQString::fromLocal8Bit(buffer,buflen)); s_igStdErr.append(TQString::fromLocal8Bit(buffer,buflen));
} }
@ -242,18 +242,18 @@ KNConfig::Appearance::Appearance()
//fonts //fonts
u_seFonts = c->readBoolEntry("customFonts", false); u_seFonts = c->readBoolEntry("customFonts", false);
TQFont defFont=KGlobalSettings::generalFont(); TQFont defFont=TDEGlobalSettings::generalFont();
f_onts[article]=c->readFontEntry("articleFont",&defFont); f_onts[article]=c->readFontEntry("articleFont",&defFont);
f_ontNames[article]=i18n("Article Body"); f_ontNames[article]=i18n("Article Body");
defFont=KGlobalSettings::fixedFont(); defFont=TDEGlobalSettings::fixedFont();
f_onts[articleFixed]=c->readFontEntry("articleFixedFont",&defFont); f_onts[articleFixed]=c->readFontEntry("articleFixedFont",&defFont);
f_ontNames[articleFixed]=i18n("Article Body (Fixed)"); f_ontNames[articleFixed]=i18n("Article Body (Fixed)");
f_onts[composer]=c->readFontEntry("composerFont",&defFont); f_onts[composer]=c->readFontEntry("composerFont",&defFont);
f_ontNames[composer]=i18n("Composer"); f_ontNames[composer]=i18n("Composer");
defFont=KGlobalSettings::generalFont(); defFont=TDEGlobalSettings::generalFont();
f_onts[groupList]=c->readFontEntry("groupListFont",&defFont); f_onts[groupList]=c->readFontEntry("groupListFont",&defFont);
f_ontNames[groupList]=i18n("Group List"); f_ontNames[groupList]=i18n("Group List");
@ -261,7 +261,7 @@ KNConfig::Appearance::Appearance()
f_ontNames[articleList]=i18n("Article List"); f_ontNames[articleList]=i18n("Article List");
//icons //icons
KGlobal::iconLoader()->addAppDir("knode"); TDEGlobal::iconLoader()->addAppDir("knode");
recreateLVIcons(); recreateLVIcons();
i_cons[newFups] = UserIcon("newsubs"); i_cons[newFups] = UserIcon("newsubs");
i_cons[eyes] = UserIcon("eyes"); i_cons[eyes] = UserIcon("eyes");
@ -455,7 +455,7 @@ TQColor KNConfig::Appearance::defaultColor(int i) const
return kapp->palette().active().base(); return kapp->palette().active().base();
case alternateBackground: case alternateBackground:
return KGlobalSettings::alternateBackgroundColor(); return TDEGlobalSettings::alternateBackgroundColor();
case quoted1: case quoted1:
return TQColor( 0x00, 0x80, 0x00 ); return TQColor( 0x00, 0x80, 0x00 );
@ -469,7 +469,7 @@ TQColor KNConfig::Appearance::defaultColor(int i) const
return kapp->palette().active().text(); return kapp->palette().active().text();
case url: case url:
return KGlobalSettings::linkColor(); return TDEGlobalSettings::linkColor();
case readThread: case readThread:
return kapp->palette().disabled().text(); return kapp->palette().disabled().text();
@ -499,9 +499,9 @@ TQColor KNConfig::Appearance::defaultColor(int i) const
TQFont KNConfig::Appearance::defaultFont(int i) const TQFont KNConfig::Appearance::defaultFont(int i) const
{ {
if ( i == articleFixed || i == composer ) if ( i == articleFixed || i == composer )
return KGlobalSettings::fixedFont(); return TDEGlobalSettings::fixedFont();
else else
return KGlobalSettings::generalFont(); return TDEGlobalSettings::generalFont();
} }

@ -27,7 +27,7 @@
#include <kmime_util.h> #include <kmime_util.h>
class KScoringRule; class KScoringRule;
class KProcess; class TDEProcess;
class KSpellConfig; class KSpellConfig;
namespace Kpgp { namespace Kpgp {
class Config; class Config;
@ -114,8 +114,8 @@ Q_OBJECT
protected slots: protected slots:
void slotReceiveStdout(KProcess *proc, char *buffer, int buflen); void slotReceiveStdout(TDEProcess *proc, char *buffer, int buflen);
void slotReceiveStderr(KProcess *proc, char *buffer, int buflen); void slotReceiveStderr(TDEProcess *proc, char *buffer, int buflen);
protected: protected:
TQString n_ame, TQString n_ame,

@ -173,11 +173,11 @@ void KNConvert::slotStart()
} }
TQString dataDir=locateLocal("data","knode/"); TQString dataDir=locateLocal("data","knode/");
t_ar=new KProcess; t_ar=new TDEProcess;
*t_ar << "tar"; *t_ar << "tar";
*t_ar << "-cz" << dataDir *t_ar << "-cz" << dataDir
<< "-f" << b_ackupPath->text(); << "-f" << b_ackupPath->text();
connect(t_ar, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotTarExited(KProcess*))); connect(t_ar, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotTarExited(TDEProcess*)));
if(!t_ar->start()) { if(!t_ar->start()) {
delete t_ar; delete t_ar;
t_ar = 0; t_ar = 0;
@ -206,7 +206,7 @@ void KNConvert::slotBrowse()
} }
void KNConvert::slotTarExited(KProcess *proc) void KNConvert::slotTarExited(TDEProcess *proc)
{ {
bool success=true; bool success=true;

@ -29,7 +29,7 @@ class TQWidgetStack;
class TQCheckBox; class TQCheckBox;
class KLineEdit; class KLineEdit;
class KProcess; class TDEProcess;
class KDE_EXPORT KNConvert : public TQDialog { class KDE_EXPORT KNConvert : public TQDialog {
@ -111,7 +111,7 @@ class KDE_EXPORT KNConvert : public TQDialog {
TQStringList l_og; TQStringList l_og;
bool c_onversionDone; bool c_onversionDone;
TQString v_ersion; TQString v_ersion;
KProcess *t_ar; TDEProcess *t_ar;
void convert(); void convert();
@ -119,7 +119,7 @@ class KDE_EXPORT KNConvert : public TQDialog {
void slotStart(); void slotStart();
void slotCreateBkupToggled(bool b); void slotCreateBkupToggled(bool b);
void slotBrowse(); void slotBrowse();
void slotTarExited(KProcess *proc); void slotTarExited(TDEProcess *proc);
}; };

@ -291,7 +291,7 @@ void KNGroupDialog::slotUser2()
TQRadioButton *takeLast = new TQRadioButton( i18n("Created since last check:"), btnGrp ); TQRadioButton *takeLast = new TQRadioButton( i18n("Created since last check:"), btnGrp );
topL->addMultiCellWidget(takeLast, 0, 0, 0, 1); topL->addMultiCellWidget(takeLast, 0, 0, 0, 1);
TQLabel *l = new TQLabel(KGlobal::locale()->formatDate(lastDate, false),btnGrp); TQLabel *l = new TQLabel(TDEGlobal::locale()->formatDate(lastDate, false),btnGrp);
topL->addWidget(l, 1, 1, TQt::AlignLeft); topL->addWidget(l, 1, 1, TQt::AlignLeft);
connect(takeLast, TQT_SIGNAL(toggled(bool)), l, TQT_SLOT(setEnabled(bool))); connect(takeLast, TQT_SIGNAL(toggled(bool)), l, TQT_SLOT(setEnabled(bool)));

@ -677,7 +677,7 @@ void KNGroupManager::slotFetchGroupList(KNNntpAccount *a)
d->path = a->path(); d->path = a->path();
getSubscribed(a,d->subscribed); getSubscribed(a,d->subscribed);
d->getDescriptions = a->fetchDescriptions(); d->getDescriptions = a->fetchDescriptions();
d->codecForDescriptions=KGlobal::charsets()->codecForName(knGlobals.configManager()->postNewsTechnical()->charset()); d->codecForDescriptions=TDEGlobal::charsets()->codecForName(knGlobals.configManager()->postNewsTechnical()->charset());
emitJob( new KNJobData(KNJobData::JTFetchGroups, this, a, d) ); emitJob( new KNJobData(KNJobData::JTFetchGroups, this, a, d) );
} }
@ -691,7 +691,7 @@ void KNGroupManager::slotCheckForNewGroups(KNNntpAccount *a, TQDate date)
getSubscribed(a,d->subscribed); getSubscribed(a,d->subscribed);
d->getDescriptions = a->fetchDescriptions(); d->getDescriptions = a->fetchDescriptions();
d->fetchSince = date; d->fetchSince = date;
d->codecForDescriptions=KGlobal::charsets()->codecForName(knGlobals.configManager()->postNewsTechnical()->charset()); d->codecForDescriptions=TDEGlobal::charsets()->codecForName(knGlobals.configManager()->postNewsTechnical()->charset());
emitJob( new KNJobData(KNJobData::JTCheckNewGroups, this, a, d) ); emitJob( new KNJobData(KNJobData::JTCheckNewGroups, this, a, d) );
} }

@ -810,7 +810,7 @@ void KNMainWidget::readOptions()
a_ctArtSortHeaders->setCurrentItem( h_drView->sortColumn() ); a_ctArtSortHeaders->setCurrentItem( h_drView->sortColumn() );
resize(787,478); // default optimized for 800x600 resize(787,478); // default optimized for 800x600
//applyMainWindowSettings(KGlobal::config(),"mainWindow_options"); //applyMainWindowSettings(TDEGlobal::config(),"mainWindow_options");
// restore dock configuration // restore dock configuration
manager()->readConfig(knGlobals.config(),"dock_configuration"); manager()->readConfig(knGlobals.config(),"dock_configuration");
@ -823,7 +823,7 @@ void KNMainWidget::saveOptions()
conf->setGroup("APPEARANCE"); conf->setGroup("APPEARANCE");
conf->writeEntry("quicksearch", q_uicksearch->isShown()); conf->writeEntry("quicksearch", q_uicksearch->isShown());
//saveMainWindowSettings(KGlobal::config(),"mainWindow_options"); //saveMainWindowSettings(TDEGlobal::config(),"mainWindow_options");
c_olView->writeConfig(); c_olView->writeConfig();
h_drView->writeConfig(); h_drView->writeConfig();

@ -60,7 +60,7 @@ KNMainWindow::KNMainWindow( TQWidget* pWidget )
createGUI( "knodeui.rc" ); createGUI( "knodeui.rc" );
knGlobals.instance = 0; knGlobals.instance = 0;
applyMainWindowSettings(KGlobal::config(),"mainWindow_options"); applyMainWindowSettings(TDEGlobal::config(),"mainWindow_options");
} }
KNMainWindow::~KNMainWindow() KNMainWindow::~KNMainWindow()

@ -60,10 +60,10 @@ KNodePart::KNodePart(TQWidget *parentWidget, const char *widgetName,
kdDebug(5003) << "KNodePart()..." << endl; kdDebug(5003) << "KNodePart()..." << endl;
kdDebug(5003) << " InstanceName: " << kapp->instanceName() << endl; kdDebug(5003) << " InstanceName: " << kapp->instanceName() << endl;
KGlobal::locale()->insertCatalogue("libtdepim"); TDEGlobal::locale()->insertCatalogue("libtdepim");
KGlobal::locale()->insertCatalogue("libkpgp"); TDEGlobal::locale()->insertCatalogue("libkpgp");
kapp->dcopClient()->suspend(); // Don't handle DCOP requests yet kapp->dcopClient()->suspend(); // Don't handle DCOP requests yet
KGlobal::iconLoader()->addAppDir("knode"); TDEGlobal::iconLoader()->addAppDir("knode");
knGlobals.instance = KNodeFactory::instance(); knGlobals.instance = KNodeFactory::instance();
// create a canvas to insert our widget // create a canvas to insert our widget

@ -37,8 +37,8 @@ int main(int argc, char* argv[])
return 0; return 0;
KNApplication app; KNApplication app;
KGlobal::locale()->insertCatalogue("libtdepim"); TDEGlobal::locale()->insertCatalogue("libtdepim");
KGlobal::locale()->insertCatalogue("libkpgp"); TDEGlobal::locale()->insertCatalogue("libkpgp");
return app.exec(); return app.exec();
} }

@ -311,7 +311,7 @@ void KNHelper::restoreWindowSize(const TQString &name, TQWidget *d, const TQSize
TQSize s=c->readSizeEntry(name,&defaultSize); TQSize s=c->readSizeEntry(name,&defaultSize);
if(s.isValid()) { if(s.isValid()) {
TQRect max = KGlobalSettings::desktopGeometry(TQCursor::pos()); TQRect max = TDEGlobalSettings::desktopGeometry(TQCursor::pos());
if ( s.width() > max.width() ) s.setWidth( max.width()-5 ); if ( s.width() > max.width() ) s.setWidth( max.width()-5 );
if ( s.height() > max.height() ) s.setHeight( max.height()-5 ); if ( s.height() > max.height() ) s.setHeight( max.height()-5 );
d->resize(s); d->resize(s);

@ -98,7 +98,7 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
// (KOrganizer's journals don't have titles but a valid start date) // (KOrganizer's journals don't have titles but a valid start date)
if ( m_journal->summary().isNull() && m_journal->dtStart().isValid() ) if ( m_journal->summary().isNull() && m_journal->dtStart().isValid() )
{ {
TQString s = KGlobal::locale()->formatDateTime( m_journal->dtStart() ); TQString s = TDEGlobal::locale()->formatDateTime( m_journal->dtStart() );
m_journal->setSummary( s ); m_journal->setSummary( s );
} }
@ -214,7 +214,7 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *parent, const char *
m_editor->cornerWidget()->setBackgroundMode( PaletteBase ); m_editor->cornerWidget()->setBackgroundMode( PaletteBase );
// the config file location // the config file location
TQString configFile = KGlobal::dirs()->saveLocation( "appdata", "notes/" ); TQString configFile = TDEGlobal::dirs()->saveLocation( "appdata", "notes/" );
configFile += m_journal->uid(); configFile += m_journal->uid();
// no config file yet? -> use the default display config if available // no config file yet? -> use the default display config if available
@ -407,7 +407,7 @@ void KNote::slotKill( bool force )
delete m_config; delete m_config;
m_config = 0; m_config = 0;
TQString configFile = KGlobal::dirs()->saveLocation( "appdata", "notes/" ); TQString configFile = TDEGlobal::dirs()->saveLocation( "appdata", "notes/" );
configFile += m_journal->uid(); configFile += m_journal->uid();
if ( !KIO::NetAccess::del( KURL::fromPathOrURL( configFile ), this ) ) if ( !KIO::NetAccess::del( KURL::fromPathOrURL( configFile ), this ) )
@ -769,7 +769,7 @@ void KNote::slotClose()
void KNote::slotInsDate() void KNote::slotInsDate()
{ {
m_editor->insert( KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()) ); m_editor->insert( TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()) );
} }
void KNote::slotSetAlarm() void KNote::slotSetAlarm()
@ -827,7 +827,7 @@ void KNote::slotMail()
// get the mail action command // get the mail action command
const TQStringList cmd_list = TQStringList::split( TQChar(' '), KNotesGlobalConfig::mailAction() ); const TQStringList cmd_list = TQStringList::split( TQChar(' '), KNotesGlobalConfig::mailAction() );
KProcess mail; TDEProcess mail;
for ( TQStringList::ConstIterator it = cmd_list.constBegin(); for ( TQStringList::ConstIterator it = cmd_list.constBegin();
it != cmd_list.constEnd(); ++it ) it != cmd_list.constEnd(); ++it )
{ {
@ -839,7 +839,7 @@ void KNote::slotMail()
mail << (*it).local8Bit(); mail << (*it).local8Bit();
} }
if ( !mail.start( KProcess::DontCare ) ) if ( !mail.start( TDEProcess::DontCare ) )
KMessageBox::sorry( this, i18n("Unable to start the mail process.") ); KMessageBox::sorry( this, i18n("Unable to start the mail process.") );
} }

@ -39,7 +39,7 @@ KNoteButton::KNoteButton( const TQString& icon, TQWidget *parent, const char *na
m_flat = true; m_flat = true;
if ( !icon.isEmpty() ) if ( !icon.isEmpty() )
setIconSet( KGlobal::iconLoader()->loadIconSet( icon, KIcon::Small, 10 ) ); setIconSet( TDEGlobal::iconLoader()->loadIconSet( icon, KIcon::Small, 10 ) );
} }
KNoteButton::~KNoteButton() KNoteButton::~KNoteButton()

@ -25,11 +25,11 @@
<group name="Editor"> <group name="Editor">
<entry name="Font" type="Font" key="font"> <entry name="Font" type="Font" key="font">
<default code="true">KGlobalSettings::generalFont()</default> <default code="true">TDEGlobalSettings::generalFont()</default>
</entry> </entry>
<entry name="TitleFont" type="Font" key="titlefont"> <entry name="TitleFont" type="Font" key="titlefont">
<default code="true">KGlobalSettings::windowTitleFont()</default> <default code="true">TDEGlobalSettings::windowTitleFont()</default>
</entry> </entry>
<entry name="AutoIndent" type="Bool" key="autoindent"> <entry name="AutoIndent" type="Bool" key="autoindent">

@ -60,7 +60,7 @@ using namespace KNetwork;
class KNotesKeyDialog : public KDialogBase class KNotesKeyDialog : public KDialogBase
{ {
public: public:
KNotesKeyDialog( KGlobalAccel *globals, TQWidget *parent, const char* name = 0 ) KNotesKeyDialog( TDEGlobalAccel *globals, TQWidget *parent, const char* name = 0 )
: KDialogBase( parent, name, true, i18n("Configure Shortcuts"), Default|Ok|Cancel, Ok ) : KDialogBase( parent, name, true, i18n("Configure Shortcuts"), Default|Ok|Cancel, Ok )
{ {
m_keyChooser = new KKeyChooser( globals, this ); m_keyChooser = new KKeyChooser( globals, this );
@ -147,7 +147,7 @@ KNotesApp::KNotesApp()
m_noteGUI.setContent( doc ); m_noteGUI.setContent( doc );
// create accels for global shortcuts // create accels for global shortcuts
m_globalAccel = new KGlobalAccel( TQT_TQOBJECT(this), "global accel" ); m_globalAccel = new TDEGlobalAccel( TQT_TQOBJECT(this), "global accel" );
m_globalAccel->insert( "global_new_note", i18n("New Note"), "", m_globalAccel->insert( "global_new_note", i18n("New Note"), "",
ALT+SHIFT+Key_N, ALT+SHIFT+Key_N , ALT+SHIFT+Key_N, ALT+SHIFT+Key_N ,
TQT_TQOBJECT(this), TQT_SLOT(newNote()), true, true ); TQT_TQOBJECT(this), TQT_SLOT(newNote()), true, true );
@ -163,7 +163,7 @@ KNotesApp::KNotesApp()
m_globalAccel->readSettings(); m_globalAccel->readSettings();
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "Global Keybindings" ); config->setGroup( "Global Keybindings" );
m_globalAccel->setEnabled( config->readBoolEntry( "Enabled", true ) ); m_globalAccel->setEnabled( config->readBoolEntry( "Enabled", true ) );
@ -253,7 +253,7 @@ TQString KNotesApp::newNote( const TQString& name, const TQString& text )
if ( !name.isEmpty() ) if ( !name.isEmpty() )
journal->setSummary( name ); journal->setSummary( name );
else else
journal->setSummary( KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) ); journal->setSummary( TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) );
// the body of the note // the body of the note
journal->setDescription( text ); journal->setDescription( text );

@ -37,7 +37,7 @@ class KNote;
class KPopupMenu; class KPopupMenu;
class KAction; class KAction;
class KActionMenu; class KActionMenu;
class KGlobalAccel; class TDEGlobalAccel;
class KXMLGUIFactory; class KXMLGUIFactory;
class KXMLGUIBuilder; class KXMLGUIBuilder;
class KNotesAlarm; class KNotesAlarm;
@ -156,7 +156,7 @@ private:
KPopupMenu *m_note_menu; KPopupMenu *m_note_menu;
KPopupMenu *m_context_menu; KPopupMenu *m_context_menu;
KGlobalAccel *m_globalAccel; TDEGlobalAccel *m_globalAccel;
KXMLGUIFactory *m_guiFactory; KXMLGUIFactory *m_guiFactory;
KXMLGUIBuilder *m_guiBuilder; KXMLGUIBuilder *m_guiBuilder;

@ -50,7 +50,7 @@ using namespace KCal;
void KNotesLegacy::cleanUp() void KNotesLegacy::cleanUp()
{ {
// remove old (KDE 1.x) local config file if it still exists // remove old (KDE 1.x) local config file if it still exists
TQString configfile = KGlobal::dirs()->saveLocation( "config" ) + "knotesrc"; TQString configfile = TDEGlobal::dirs()->saveLocation( "config" ) + "knotesrc";
if ( TQFile::exists( configfile ) ) { if ( TQFile::exists( configfile ) ) {
KSimpleConfig *test = new KSimpleConfig( configfile ); KSimpleConfig *test = new KSimpleConfig( configfile );
test->setGroup( "General" ); test->setGroup( "General" );
@ -71,7 +71,7 @@ bool KNotesLegacy::convert( CalendarLocal *calendar )
{ {
bool converted = false; bool converted = false;
TQDir noteDir( KGlobal::dirs()->saveLocation( "appdata", "notes/" ) ); TQDir noteDir( TDEGlobal::dirs()->saveLocation( "appdata", "notes/" ) );
const TQStringList notes = noteDir.entryList( TQDir::Files, TQDir::Name ); const TQStringList notes = noteDir.entryList( TQDir::Files, TQDir::Name );
for ( TQStringList::ConstIterator note = notes.constBegin(); note != notes.constEnd(); ++note ) for ( TQStringList::ConstIterator note = notes.constBegin(); note != notes.constEnd(); ++note )
{ {
@ -147,7 +147,7 @@ bool KNotesLegacy::convertKNotes1Config( Journal *journal, TQDir& noteDir,
// set the defaults // set the defaults
KIO::NetAccess::copy( KIO::NetAccess::copy(
KURL( KGlobal::dirs()->saveLocation( "config" ) + "knotesrc" ), KURL( TDEGlobal::dirs()->saveLocation( "config" ) + "knotesrc" ),
KURL( configFile ), KURL( configFile ),
0 0
); );

@ -61,7 +61,7 @@ KNotesNetworkReceiver::KNotesNetworkReceiver( KBufferedSocket *s )
: TQObject(), : TQObject(),
m_buffer( new TQByteArray() ), m_sock( s ) m_buffer( new TQByteArray() ), m_sock( s )
{ {
TQString date = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, false ); TQString date = TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, false );
// Add the remote IP or hostname and the date to the title, to help the // Add the remote IP or hostname and the date to the title, to help the
// user guess who wrote it. // user guess who wrote it.

@ -49,7 +49,7 @@ ResourceLocal::ResourceLocal( const KConfig *config )
{ {
kdDebug(5500) << "ResourceLocal::ResourceLocal()" << endl; kdDebug(5500) << "ResourceLocal::ResourceLocal()" << endl;
setType( "file" ); setType( "file" );
mURL = KGlobal::dirs()->saveLocation( "data", "knotes/" ) + "notes.ics"; mURL = TDEGlobal::dirs()->saveLocation( "data", "knotes/" ) + "notes.ics";
if ( config ) if ( config )
{ {

@ -268,11 +268,11 @@ int addProperty( TDECmdLineArgs *args )
if ( args->isSet( "inplace" ) ) { if ( args->isSet( "inplace" ) ) {
TQString headerFileNameOut = headerFileName + ".kodeorig" ; TQString headerFileNameOut = headerFileName + ".kodeorig" ;
KProcess proc; TDEProcess proc;
proc << "cp" << TQFile::encodeName( headerFileName ).data() << proc << "cp" << TQFile::encodeName( headerFileName ).data() <<
TQFile::encodeName( headerFileNameOut ).data(); TQFile::encodeName( headerFileNameOut ).data();
if ( !proc.start( KProcess::Block ) ) { if ( !proc.start( TDEProcess::Block ) ) {
kdError() << "Copy failed" << endl; kdError() << "Copy failed" << endl;
} else { } else {
kdDebug() << "Write to original file." << endl; kdDebug() << "Write to original file." << endl;

@ -79,15 +79,15 @@ bool KonsoleKalendarExports::exportAsTxt( TQTextStream *ts,
// Print Event Date (in user's prefered format) // Print Event Date (in user's prefered format)
*ts << i18n( "Date:" ) *ts << i18n( "Date:" )
<< "\t" << "\t"
<< KGlobal::locale()->formatDate( date ) << TDEGlobal::locale()->formatDate( date )
<< endl; << endl;
// Print Event Starttime - Endtime, for Non-Floating Events Only // Print Event Starttime - Endtime, for Non-Floating Events Only
if ( !event->doesFloat() ) { if ( !event->doesFloat() ) {
*ts << "\t" *ts << "\t"
<< KGlobal::locale()->formatTime( event->dtStart().time() ) << TDEGlobal::locale()->formatTime( event->dtStart().time() )
<< " - " << " - "
<< KGlobal::locale()->formatTime( event->dtEnd().time() ); << TDEGlobal::locale()->formatTime( event->dtEnd().time() );
} }
*ts << endl; *ts << endl;
@ -159,15 +159,15 @@ bool KonsoleKalendarExports::exportAsTxtShort( TQTextStream *ts,
if ( !sameday ) { if ( !sameday ) {
// If a new date, then Print the Event Date (in user's prefered format) // If a new date, then Print the Event Date (in user's prefered format)
*ts << KGlobal::locale()->formatDate( date ) << ":" *ts << TDEGlobal::locale()->formatDate( date ) << ":"
<< endl; << endl;
} }
// Print Event Starttime - Endtime // Print Event Starttime - Endtime
if ( !event->doesFloat() ) { if ( !event->doesFloat() ) {
*ts << KGlobal::locale()->formatTime( event->dtStart().time() ) *ts << TDEGlobal::locale()->formatTime( event->dtStart().time() )
<< " - " << " - "
<< KGlobal::locale()->formatTime( event->dtEnd().time() ); << TDEGlobal::locale()->formatTime( event->dtEnd().time() );
} else { } else {
*ts << i18n( "[all day]\t" ); *ts << i18n( "[all day]\t" );
} }
@ -222,14 +222,14 @@ bool KonsoleKalendarExports::exportAsCSV( TQTextStream *ts,
TQString dquote = i18n( "\"" ); // character to use to quote CSV fields TQString dquote = i18n( "\"" ); // character to use to quote CSV fields
if ( !event->doesFloat() ) { if ( !event->doesFloat() ) {
*ts << pF( KGlobal::locale()->formatDate( date ) ) *ts << pF( TDEGlobal::locale()->formatDate( date ) )
<< delim << pF( KGlobal::locale()->formatTime( event->dtStart().time() ) ) << delim << pF( TDEGlobal::locale()->formatTime( event->dtStart().time() ) )
<< delim << pF( KGlobal::locale()->formatDate( date ) ) << delim << pF( TDEGlobal::locale()->formatDate( date ) )
<< delim << pF( KGlobal::locale()->formatTime( event->dtEnd().time() ) ); << delim << pF( TDEGlobal::locale()->formatTime( event->dtEnd().time() ) );
} else { } else {
*ts << pF( KGlobal::locale()->formatDate( date ) ) *ts << pF( TDEGlobal::locale()->formatDate( date ) )
<< delim << pF( "" ) << delim << pF( "" )
<< delim << pF( KGlobal::locale()->formatDate( date ) ) << delim << pF( TDEGlobal::locale()->formatDate( date ) )
<< delim << pF( "" ); << delim << pF( "" );
} }

@ -57,7 +57,7 @@ Plugin::Plugin( Kontact::Core *core, TQObject *parent, const char *name )
: KXMLGUIClient( core ), TQObject( parent, name ), d( new Private ) : KXMLGUIClient( core ), TQObject( parent, name ), d( new Private )
{ {
core->factory()->addClient( this ); core->factory()->addClient( this );
KGlobal::locale()->insertCatalogue(name); TDEGlobal::locale()->insertCatalogue(name);
d->core = core; d->core = core;
d->dcopClient = 0; d->dcopClient = 0;

@ -48,7 +48,7 @@ SummaryWidget::SummaryWidget( Kontact::Plugin *plugin, TQWidget *parent, const c
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_mail", KIcon::Desktop, TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_mail", KIcon::Desktop,
KIcon::SizeMedium ); KIcon::SizeMedium );
TQWidget *header = createHeader(this, icon, i18n("E-Mail")); TQWidget *header = createHeader(this, icon, i18n("E-Mail"));
mLayout = new TQGridLayout( 1, 3, 3 ); mLayout = new TQGridLayout( 1, 3, 3 );

@ -161,7 +161,7 @@ TQString KNotesPart::newNote( const TQString& name, const TQString& text )
if ( !name.isEmpty() ) if ( !name.isEmpty() )
journal->setSummary( name ); journal->setSummary( name );
else else
journal->setSummary( KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) ); journal->setSummary( TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) );
// the body of the note // the body of the note
journal->setDescription( text ); journal->setDescription( text );

@ -68,7 +68,7 @@ class KNotesIconViewItem : public KIconViewItem
KIconEffect effect; KIconEffect effect;
TQColor color( journal->customProperty( "KNotes", "BgColor" ) ); TQColor color( journal->customProperty( "KNotes", "BgColor" ) );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "knotes", KIcon::Desktop );
icon = effect.apply( icon, KIconEffect::Colorize, 1, color, false ); icon = effect.apply( icon, KIconEffect::Colorize, 1, color, false );
setPixmap( icon ); setPixmap( icon );
setText( journal->summary() ); setText( journal->summary() );

@ -100,7 +100,7 @@ void KNoteTip::setNote( KNotesIconViewItem *item )
while ( w > 60 && h == mPreview->heightForWidth( w - 20 ) ) while ( w > 60 && h == mPreview->heightForWidth( w - 20 ) )
w -= 20; w -= 20;
TQRect desk = KGlobalSettings::desktopGeometry( mNoteIVI->rect().center() ); TQRect desk = TDEGlobalSettings::desktopGeometry( mNoteIVI->rect().center() );
resize( w, TQMIN( h, desk.height() / 2 - 20 ) ); resize( w, TQMIN( h, desk.height() / 2 - 20 ) );
hide(); hide();
@ -206,7 +206,7 @@ void KNoteTip::reposition()
TQPoint pos = rect.center(); TQPoint pos = rect.center();
// should the tooltip be shown to the left or to the right of the ivi? // should the tooltip be shown to the left or to the right of the ivi?
TQRect desk = KGlobalSettings::desktopGeometry( pos ); TQRect desk = TDEGlobalSettings::desktopGeometry( pos );
if ( rect.center().x() + width() > desk.right() ) { if ( rect.center().x() + width() > desk.right() ) {
// to the left // to the left
if ( pos.x() - width() < 0 ) if ( pos.x() - width() < 0 )

@ -50,7 +50,7 @@ KNotesSummaryWidget::KNotesSummaryWidget( Kontact::Plugin *plugin,
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_notes", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_notes",
KIcon::Desktop, KIcon::SizeMedium ); KIcon::Desktop, KIcon::SizeMedium );
TQWidget* header = createHeader( this, icon, i18n( "Notes" ) ); TQWidget* header = createHeader( this, icon, i18n( "Notes" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );

@ -56,7 +56,7 @@ SummaryWidget::SummaryWidget( KOrganizerPlugin *plugin, TQWidget *parent,
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_date", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_date",
KIcon::Desktop, KIcon::SizeMedium ); KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Calendar" ) ); TQWidget *header = createHeader( this, icon, i18n( "Calendar" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );
@ -167,15 +167,15 @@ void SummaryWidget::updateView()
( sD.day() == currentDate.addDays( 1 ).day() ) ) { ( sD.day() == currentDate.addDays( 1 ).day() ) ) {
datestr = i18n( "Tomorrow" ); datestr = i18n( "Tomorrow" );
} else { } else {
datestr = KGlobal::locale()->formatDate( sD ); datestr = TDEGlobal::locale()->formatDate( sD );
} }
// Print the date span for multiday, floating events, for the // Print the date span for multiday, floating events, for the
// first day of the event only. // first day of the event only.
if ( ev->isMultiDay() && ev->doesFloat() && dayof == 1 && span > 1 ) { if ( ev->isMultiDay() && ev->doesFloat() && dayof == 1 && span > 1 ) {
datestr = KGlobal::locale()->formatDate( ev->dtStart().date() ); datestr = TDEGlobal::locale()->formatDate( ev->dtStart().date() );
datestr += " -\n " + datestr += " -\n " +
KGlobal::locale()->formatDate( sD.addDays( span-1 ) ); TDEGlobal::locale()->formatDate( sD.addDays( span-1 ) );
} }
label = new TQLabel( datestr, this ); label = new TQLabel( datestr, this );
@ -225,8 +225,8 @@ void SummaryWidget::updateView()
} }
} }
datestr = i18n( "Time from - to", "%1 - %2" ) datestr = i18n( "Time from - to", "%1 - %2" )
.arg( KGlobal::locale()->formatTime( sST ) ) .arg( TDEGlobal::locale()->formatTime( sST ) )
.arg( KGlobal::locale()->formatTime( sET ) ); .arg( TDEGlobal::locale()->formatTime( sET ) );
label = new TQLabel( datestr, this ); label = new TQLabel( datestr, this );
label->setAlignment( AlignLeft | AlignVCenter ); label->setAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 3 ); mLayout->addWidget( label, counter, 3 );
@ -270,7 +270,7 @@ void SummaryWidget::popupMenu( const TQString &uid )
KPopupMenu popup( this ); KPopupMenu popup( this );
TQToolTip::remove( this ); TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit Appointment..." ), 0 ); popup.insertItem( i18n( "&Edit Appointment..." ), 0 );
popup.insertItem( KGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small),
i18n( "&Delete Appointment" ), 1 ); i18n( "&Delete Appointment" ), 1 );
switch ( popup.exec( TQCursor::pos() ) ) { switch ( popup.exec( TQCursor::pos() ) ) {

@ -58,7 +58,7 @@ TodoSummaryWidget::TodoSummaryWidget( TodoPlugin *plugin,
{ {
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_todo", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_todo",
KIcon::Desktop, KIcon::SizeMedium ); KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "To-do" ) ); TQWidget *header = createHeader( this, icon, i18n( "To-do" ) );
mainLayout->addWidget( header ); mainLayout->addWidget( header );
@ -227,11 +227,11 @@ void TodoSummaryWidget::popupMenu( const TQString &uid )
KPopupMenu popup( this ); KPopupMenu popup( this );
TQToolTip::remove( this ); TQToolTip::remove( this );
popup.insertItem( i18n( "&Edit To-do..." ), 0 ); popup.insertItem( i18n( "&Edit To-do..." ), 0 );
popup.insertItem( KGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small),
i18n( "&Delete To-do" ), 1 ); i18n( "&Delete To-do" ), 1 );
KCal::Todo *todo = mCalendar->todo( uid ); KCal::Todo *todo = mCalendar->todo( uid );
if ( !todo->isCompleted() ) { if ( !todo->isCompleted() ) {
popup.insertItem( KGlobal::iconLoader()->loadIcon( "checkedbox", KIcon::Small), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "checkedbox", KIcon::Small),
i18n( "&Mark To-do Completed" ), 2 ); i18n( "&Mark To-do Completed" ), 2 );
} }

@ -59,7 +59,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
mLayout = new TQGridLayout( this, 2, 3, 3, 3 ); mLayout = new TQGridLayout( this, 2, 3, 3, 3 );
int row=0; int row=0;
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kpilot", KIcon::Desktop, KIcon::SizeMedium ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kpilot", KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "KPilot Configuration" ) ); TQWidget *header = createHeader( this, icon, i18n( "KPilot Configuration" ) );
mLayout->addMultiCellWidget( header, row,row, 0,3 ); mLayout->addMultiCellWidget( header, row,row, 0,3 );

@ -47,7 +47,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
{ {
TQVBoxLayout *vlay = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *vlay = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_news", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kontact_news",
KIcon::Desktop, KIcon::SizeMedium ); KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "News Feeds" ) ); TQWidget *header = createHeader( this, icon, i18n( "News Feeds" ) );

@ -84,7 +84,7 @@ SDSummaryWidget::SDSummaryWidget( Kontact::Plugin *plugin, TQWidget *parent,
// Create the Summary Layout // Create the Summary Layout
TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "cookie", TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "cookie",
KIcon::Desktop, KIcon::SizeMedium ); KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Special Dates" ) ); TQWidget *header = createHeader( this, icon, i18n( "Special Dates" ) );
@ -226,8 +226,8 @@ void SDSummaryWidget::updateView()
TQLabel *label = 0; TQLabel *label = 0;
// No reason to show the date year // No reason to show the date year
TQString savefmt = KGlobal::locale()->dateFormat(); TQString savefmt = TDEGlobal::locale()->dateFormat();
KGlobal::locale()->setDateFormat( KGlobal::locale()-> TDEGlobal::locale()->setDateFormat( TDEGlobal::locale()->
dateFormat().replace( 'Y', ' ' ) ); dateFormat().replace( 'Y', ' ' ) );
// Search for Birthdays and Anniversaries in the Addressbook // Search for Birthdays and Anniversaries in the Addressbook
@ -424,7 +424,7 @@ void SDSummaryWidget::updateView()
} }
label = new TQLabel( this ); label = new TQLabel( this );
if ( icon_img.isNull() ) { if ( icon_img.isNull() ) {
label->setPixmap( KGlobal::iconLoader()->loadIcon( icon_name, label->setPixmap( TDEGlobal::iconLoader()->loadIcon( icon_name,
KIcon::Small ) ); KIcon::Small ) );
} else { } else {
label->setPixmap( icon_img ); label->setPixmap( icon_img );
@ -446,13 +446,13 @@ void SDSummaryWidget::updateView()
} else if ( (*addrIt).daysTo == 1 ) { } else if ( (*addrIt).daysTo == 1 ) {
datestr = i18n( "Tomorrow" ); datestr = i18n( "Tomorrow" );
} else { } else {
datestr = KGlobal::locale()->formatDate( sD ); datestr = TDEGlobal::locale()->formatDate( sD );
} }
// Print the date span for multiday, floating events, for the // Print the date span for multiday, floating events, for the
// first day of the event only. // first day of the event only.
if ( (*addrIt).span > 1 ) { if ( (*addrIt).span > 1 ) {
TQString endstr = TQString endstr =
KGlobal::locale()->formatDate( sD.addDays( (*addrIt).span - 1 ) ); TDEGlobal::locale()->formatDate( sD.addDays( (*addrIt).span - 1 ) );
datestr += " -\n " + endstr; datestr += " -\n " + endstr;
} }
@ -550,7 +550,7 @@ void SDSummaryWidget::updateView()
for ( label = mLabels.first(); label; label = mLabels.next() ) for ( label = mLabels.first(); label; label = mLabels.next() )
label->show(); label->show();
KGlobal::locale()->setDateFormat( savefmt ); TDEGlobal::locale()->setDateFormat( savefmt );
} }
void SDSummaryWidget::mailContact( const TQString &uid ) void SDSummaryWidget::mailContact( const TQString &uid )
@ -575,9 +575,9 @@ void SDSummaryWidget::viewContact( const TQString &uid )
void SDSummaryWidget::popupMenu( const TQString &uid ) void SDSummaryWidget::popupMenu( const TQString &uid )
{ {
KPopupMenu popup( this ); KPopupMenu popup( this );
popup.insertItem( KGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kmail", KIcon::Small ),
i18n( "Send &Mail" ), 0 ); i18n( "Send &Mail" ), 0 );
popup.insertItem( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ), popup.insertItem( TDEGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Small ),
i18n( "View &Contact" ), 1 ); i18n( "View &Contact" ), 1 );
switch ( popup.exec( TQCursor::pos() ) ) { switch ( popup.exec( TQCursor::pos() ) ) {

@ -55,7 +55,7 @@ class PluginItem : public TQCheckListItem
: TQCheckListItem( parent, TQString(), TQCheckListItem::CheckBox ), : TQCheckListItem( parent, TQString(), TQCheckListItem::CheckBox ),
mInfo( info ) mInfo( info )
{ {
TQPixmap pm = KGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small ); TQPixmap pm = TDEGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small );
setPixmap( 0, pm ); setPixmap( 0, pm );
} }

@ -317,7 +317,7 @@ void SummaryViewPart::slotAdjustPalette()
void SummaryViewPart::setDate( const TQDate& newDate ) void SummaryViewPart::setDate( const TQDate& newDate )
{ {
TQString date( "<b>%1</b>" ); TQString date( "<b>%1</b>" );
date = date.arg( KGlobal::locale()->formatDate( newDate ) ); date = date.arg( TDEGlobal::locale()->formatDate( newDate ) );
mDateLabel->setText( date ); mDateLabel->setText( date );
} }

@ -45,7 +45,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name )
mLayout = new TQVBoxLayout( this, 3, 3 ); mLayout = new TQVBoxLayout( this, 3, 3 );
mLayout->setAlignment( TQt::AlignTop ); mLayout->setAlignment( TQt::AlignTop );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "kweather", KIcon::Desktop, KIcon::SizeMedium );
TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) ); TQWidget *header = createHeader( this, icon, i18n( "Weather Service" ) );
mLayout->addWidget( header ); mLayout->addWidget( header );
@ -209,9 +209,9 @@ void SummaryWidget::updateSummary( bool )
void SummaryWidget::showReport( const TQString &stationID ) void SummaryWidget::showReport( const TQString &stationID )
{ {
mProc = new KProcess; mProc = new TDEProcess;
TQApplication::connect( mProc, TQT_SIGNAL( processExited( KProcess* ) ), TQApplication::connect( mProc, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( reportFinished( KProcess* ) ) ); this, TQT_SLOT( reportFinished( TDEProcess* ) ) );
*mProc << "kweatherreport"; *mProc << "kweatherreport";
*mProc << stationID; *mProc << stationID;
@ -221,7 +221,7 @@ void SummaryWidget::showReport( const TQString &stationID )
} }
} }
void SummaryWidget::reportFinished( KProcess* ) void SummaryWidget::reportFinished( TDEProcess* )
{ {
mProc->deleteLater(); mProc->deleteLater();
mProc = 0; mProc = 0;

@ -35,7 +35,7 @@
#include <tqtimer.h> #include <tqtimer.h>
#include <tqwidget.h> #include <tqwidget.h>
class KProcess; class TDEProcess;
class TQGridLayout; class TQGridLayout;
class TQLabel; class TQLabel;
@ -107,7 +107,7 @@ class SummaryWidget : public Kontact::Summary, public DCOPObject
void updateView(); void updateView();
void timeout(); void timeout();
void showReport( const TQString& ); void showReport( const TQString& );
void reportFinished( KProcess* ); void reportFinished( TDEProcess* );
private: private:
TQStringList mStations; TQStringList mStations;
@ -118,7 +118,7 @@ class SummaryWidget : public Kontact::Summary, public DCOPObject
TQPtrList<TQGridLayout> mLayouts; TQPtrList<TQGridLayout> mLayouts;
TQVBoxLayout *mLayout; TQVBoxLayout *mLayout;
KProcess* mProc; TDEProcess* mProc;
}; };
#endif #endif

@ -46,7 +46,7 @@ AboutDialog::AboutDialog( Kontact::Core *core, const char *name )
mCore( core ) mCore( core )
{ {
addAboutData( i18n( "Kontact Container" ), TQString( "kontact" ), addAboutData( i18n( "Kontact Container" ), TQString( "kontact" ),
KGlobal::instance()->aboutData() ); TDEGlobal::instance()->aboutData() );
TQValueList<Plugin*> plugins = mCore->pluginList(); TQValueList<Plugin*> plugins = mCore->pluginList();
TQValueList<Plugin*>::ConstIterator end = plugins.end(); TQValueList<Plugin*>::ConstIterator end = plugins.end();
@ -54,7 +54,7 @@ AboutDialog::AboutDialog( Kontact::Core *core, const char *name )
for ( ; it != end; ++it ) for ( ; it != end; ++it )
addAboutPlugin( *it ); addAboutPlugin( *it );
addLicenseText( KGlobal::instance()->aboutData() ); addLicenseText( TDEGlobal::instance()->aboutData() );
} }
void AboutDialog::addAboutPlugin( Kontact::Plugin *plugin ) void AboutDialog::addAboutPlugin( Kontact::Plugin *plugin )
@ -65,7 +65,7 @@ void AboutDialog::addAboutPlugin( Kontact::Plugin *plugin )
void AboutDialog::addAboutData( const TQString &title, const TQString &icon, void AboutDialog::addAboutData( const TQString &title, const TQString &icon,
const TDEAboutData *about ) const TDEAboutData *about )
{ {
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon( icon, TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( icon,
KIcon::Desktop, 48 ); KIcon::Desktop, 48 );
TQFrame *topFrame = addPage( title, TQString(), pixmap ); TQFrame *topFrame = addPage( title, TQString(), pixmap );
@ -160,7 +160,7 @@ void AboutDialog::addLicenseText( const TDEAboutData *about )
if ( !about || about->license().isEmpty() ) if ( !about || about->license().isEmpty() )
return; return;
TQPixmap pixmap = KGlobal::iconLoader()->loadIcon( "signature", TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( "signature",
KIcon::Desktop, 48 ); KIcon::Desktop, 48 );
TQString title = i18n( "%1 License" ).arg( about->programName() ); TQString title = i18n( "%1 License" ).arg( about->programName() );

@ -111,7 +111,7 @@ void EntryItem::reloadPixmap()
{ {
int size = (int)navigator()->viewMode(); int size = (int)navigator()->viewMode();
if ( size != 0 ) if ( size != 0 )
mPixmap = KGlobal::iconLoader()->loadIcon( mPlugin->icon(), mPixmap = TDEGlobal::iconLoader()->loadIcon( mPlugin->icon(),
KIcon::Desktop, size, KIcon::Desktop, size,
mPlugin->disabled() ? mPlugin->disabled() ?
KIcon::DisabledState KIcon::DisabledState

@ -53,7 +53,7 @@ class KontactApp : public KUniqueApplication {
public: public:
KontactApp() : mMainWindow( 0 ), mSessionRestored( false ) KontactApp() : mMainWindow( 0 ), mSessionRestored( false )
{ {
KGlobal::iconLoader()->addAppDir( "tdepim" ); TDEGlobal::iconLoader()->addAppDir( "tdepim" );
} }
~KontactApp() {} ~KontactApp() {}

@ -1050,7 +1050,7 @@ void MainWindow::configureShortcuts()
void MainWindow::configureToolbars() void MainWindow::configureToolbars()
{ {
saveMainWindowSettings( KGlobal::config(), "MainWindow" ); saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar edit( factory() ); KEditToolbar edit( factory() );
connect( &edit, TQT_SIGNAL( newToolbarConfig() ), connect( &edit, TQT_SIGNAL( newToolbarConfig() ),
@ -1064,7 +1064,7 @@ void MainWindow::slotNewToolbarConfig()
createGUI( mCurrentPlugin->part() ); createGUI( mCurrentPlugin->part() );
} }
if ( mCurrentPlugin ) { if ( mCurrentPlugin ) {
applyMainWindowSettings( KGlobal::config(), "MainWindow" ); applyMainWindowSettings( TDEGlobal::config(), "MainWindow" );
} }
updateShortcuts(); // for the plugActionList call updateShortcuts(); // for the plugActionList call
} }
@ -1160,7 +1160,7 @@ void MainWindow::slotShowStatusMsg( const TQString &msg )
TQString MainWindow::introductionString() TQString MainWindow::introductionString()
{ {
KIconLoader *iconloader = KGlobal::iconLoader(); KIconLoader *iconloader = TDEGlobal::iconLoader();
int iconSize = iconloader->currentSize( KIcon::Desktop ); int iconSize = iconloader->currentSize( KIcon::Desktop );
TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop ); TQString handbook_icon_path = iconloader->iconPath( "contents2", KIcon::Desktop );

@ -178,7 +178,7 @@ void Kontact::ProfileManager::writeProfileConfig( const Kontact::Profile& profil
void Kontact::ProfileManager::readConfig() void Kontact::ProfileManager::readConfig()
{ {
const TQStringList profilePaths = KGlobal::dirs()->findAllResources( "data", TQString::fromLatin1( "kontact/profiles/*/profile.cfg" ) ); const TQStringList profilePaths = TDEGlobal::dirs()->findAllResources( "data", TQString::fromLatin1( "kontact/profiles/*/profile.cfg" ) );
typedef TQMap<TQString, Kontact::Profile> ProfileMap; typedef TQMap<TQString, Kontact::Profile> ProfileMap;
ProfileMap profiles; ProfileMap profiles;

@ -754,9 +754,9 @@ void ActionManager::file_icalimport()
return; return;
} }
KProcess proc; TDEProcess proc;
proc << "ical2vcal" << tmpfn.name(); proc << "ical2vcal" << tmpfn.name();
bool success = proc.start( KProcess::Block ); bool success = proc.start( TDEProcess::Block );
if ( !success ) { if ( !success ) {
kdDebug(5850) << "Error starting ical2vcal." << endl; kdDebug(5850) << "Error starting ical2vcal." << endl;
@ -1290,11 +1290,11 @@ void ActionManager::setDestinationPolicy()
void ActionManager::configureDateTime() void ActionManager::configureDateTime()
{ {
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
*proc << "kcmshell" << "language"; *proc << "kcmshell" << "language";
connect( proc,TQT_SIGNAL( processExited( KProcess * ) ), connect( proc,TQT_SIGNAL( processExited( TDEProcess * ) ),
TQT_SLOT( configureDateTimeFinished( KProcess * ) ) ); TQT_SLOT( configureDateTimeFinished( TDEProcess * ) ) );
if ( !proc->start() ) { if ( !proc->start() ) {
KMessageBox::sorry( dialogParent(), KMessageBox::sorry( dialogParent(),
@ -1405,7 +1405,7 @@ bool ActionManager::addIncidence( const TQString& ical )
return mCalendarView->addIncidence( ical ); return mCalendarView->addIncidence( ical );
} }
void ActionManager::configureDateTimeFinished( KProcess *proc ) void ActionManager::configureDateTimeFinished( TDEProcess *proc )
{ {
delete proc; delete proc;
} }
@ -1875,7 +1875,7 @@ void ActionManager::goDate( const TQDate& date )
void ActionManager::goDate( const TQString& date ) void ActionManager::goDate( const TQString& date )
{ {
goDate( KGlobal::locale()->readDate( date ) ); goDate( TDEGlobal::locale()->readDate( date ) );
} }
void ActionManager::showDate(const TQDate & date) void ActionManager::showDate(const TQDate & date)

@ -51,7 +51,7 @@ class KRecentFilesAction;
class KSelectAction; class KSelectAction;
class KToggleAction; class KToggleAction;
class KConfig; class KConfig;
class KProcess; class TDEProcess;
class KTempFile; class KTempFile;
class KXMLGUIClient; class KXMLGUIClient;
class CalendarView; class CalendarView;
@ -338,7 +338,7 @@ class KDE_EXPORT ActionManager : public TQObject, public KCalendarIface
/** called by the auto archive timer to automatically delete/archive events */ /** called by the auto archive timer to automatically delete/archive events */
void slotAutoArchive(); void slotAutoArchive();
void configureDateTimeFinished(KProcess *); void configureDateTimeFinished(TDEProcess *);
void setTitle(); void setTitle();

@ -775,7 +775,7 @@ void CalendarView::incidenceChanged( Incidence *oldIncidence,
Todo *todo = static_cast<Todo *>(newIncidence); Todo *todo = static_cast<Todo *>(newIncidence);
if ( todo->isCompleted() || if ( todo->isCompleted() ||
modification == KOGlobals::COMPLETION_MODIFIED_WITH_RECURRENCE ) { modification == KOGlobals::COMPLETION_MODIFIED_WITH_RECURRENCE ) {
TQString timeStr = KGlobal::locale()->formatTime( TQTime::currentTime() ); TQString timeStr = TDEGlobal::locale()->formatTime( TQTime::currentTime() );
TQString description = i18n( "To-do completed: %1 (%2)" ).arg( TQString description = i18n( "To-do completed: %1 (%2)" ).arg(
newIncidence->summary() ).arg( timeStr ); newIncidence->summary() ).arg( timeStr );
@ -786,7 +786,7 @@ void CalendarView::incidenceChanged( Incidence *oldIncidence,
journal = new Journal(); journal = new Journal();
journal->setDtStart( TQDateTime::currentDateTime() ); journal->setDtStart( TQDateTime::currentDateTime() );
TQString dateStr = KGlobal::locale()->formatDate( TQDate::currentDate() ); TQString dateStr = TDEGlobal::locale()->formatDate( TQDate::currentDate() );
journal->setSummary( i18n("Journal of %1").arg( dateStr ) ); journal->setSummary( i18n("Journal of %1").arg( dateStr ) );
journal->setDescription( description ); journal->setDescription( description );
@ -1677,8 +1677,8 @@ void CalendarView::mailFreeBusy( int daysToPublish )
KOPrefs::instance()->email() ) ); KOPrefs::instance()->email() ) );
kdDebug(5850) << "calendarview: schedule_publish_freebusy: startDate: " kdDebug(5850) << "calendarview: schedule_publish_freebusy: startDate: "
<< KGlobal::locale()->formatDateTime( start ) << " End Date: " << TDEGlobal::locale()->formatDateTime( start ) << " End Date: "
<< KGlobal::locale()->formatDateTime( end ) << endl; << TDEGlobal::locale()->formatDateTime( end ) << endl;
PublishDialog *publishdlg = new PublishDialog(); PublishDialog *publishdlg = new PublishDialog();
if ( publishdlg->exec() == TQDialog::Accepted ) { if ( publishdlg->exec() == TQDialog::Accepted ) {
@ -2405,7 +2405,7 @@ void CalendarView::deleteIncidence(Incidence *incidence, bool force)
"Do you want to delete only the current one on %2, only all " "Do you want to delete only the current one on %2, only all "
"future recurrences, or all its recurrences?" ) "future recurrences, or all its recurrences?" )
.arg( incidence->summary() ) .arg( incidence->summary() )
.arg( KGlobal::locale()->formatDate(itemDate)), .arg( TDEGlobal::locale()->formatDate(itemDate)),
i18n("KOrganizer Confirmation"), i18n("Delete C&urrent"), i18n("KOrganizer Confirmation"), i18n("Delete C&urrent"),
i18n("Delete &Future"), i18n("Delete &Future"),
i18n("Delete &All")); i18n("Delete &All"));

@ -104,7 +104,7 @@ void DateNavigator::selectDates( const TQDate &d, int count, const TQDate &prefe
void DateNavigator::selectWeekByDay( int weekDay, const TQDate &d, const TQDate &preferredMonth ) void DateNavigator::selectWeekByDay( int weekDay, const TQDate &d, const TQDate &preferredMonth )
{ {
int dateCount = mSelectedDates.count(); int dateCount = mSelectedDates.count();
bool weekStart = ( weekDay == KGlobal::locale()->weekStartDay() ); bool weekStart = ( weekDay == TDEGlobal::locale()->weekStartDay() );
if ( weekStart && dateCount == 7 ) { if ( weekStart && dateCount == 7 ) {
selectWeek( d, preferredMonth ); selectWeek( d, preferredMonth );
} else { } else {
@ -121,7 +121,7 @@ void DateNavigator::selectWeek( const TQDate &d, const TQDate &preferredMonth )
{ {
int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d ); int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d );
int weekStart = KGlobal::locale()->weekStartDay(); int weekStart = TDEGlobal::locale()->weekStartDay();
TQDate firstDate = d.addDays( weekStart - dayOfWeek ); TQDate firstDate = d.addDays( weekStart - dayOfWeek );
@ -139,7 +139,7 @@ void DateNavigator::selectWorkWeek()
void DateNavigator::selectWorkWeek( const TQDate &d ) void DateNavigator::selectWorkWeek( const TQDate &d )
{ {
int weekStart = KGlobal::locale()->weekStartDay(); int weekStart = TDEGlobal::locale()->weekStartDay();
int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d ); int dayOfWeek = KOGlobals::self()->calendarSystem()->dayOfWeek( d );

@ -118,7 +118,7 @@ void EventArchiver::run( Calendar* calendar, const TQDate& limitDate, TQWidget*
KMessageBox::information( KMessageBox::information(
widget, widget,
i18n( "There are no incidences available to archive before the specified cut-off date %1. " i18n( "There are no incidences available to archive before the specified cut-off date %1. "
"Archiving will not be performed." ).arg( KGlobal::locale()->formatDate( limitDate ) ), "Archiving will not be performed." ).arg( TDEGlobal::locale()->formatDate( limitDate ) ),
"ArchiverNoIncidences" ); "ArchiverNoIncidences" );
} }
return; return;
@ -147,7 +147,7 @@ void EventArchiver::deleteIncidences( Calendar* calendar, const TQDate& limitDat
int result = KMessageBox::warningContinueCancelList( int result = KMessageBox::warningContinueCancelList(
widget, i18n("Delete all items before %1 without saving?\n" widget, i18n("Delete all items before %1 without saving?\n"
"The following items will be deleted:") "The following items will be deleted:")
.arg(KGlobal::locale()->formatDate(limitDate)), incidenceStrs, .arg(TDEGlobal::locale()->formatDate(limitDate)), incidenceStrs,
i18n("Delete Old Items"),KStdGuiItem::del()); i18n("Delete Old Items"),KStdGuiItem::del());
if (result != KMessageBox::Continue) if (result != KMessageBox::Continue)
return; return;

@ -86,7 +86,7 @@ JournalDateEntry::~JournalDateEntry()
void JournalDateEntry::setDate(const TQDate &date) void JournalDateEntry::setDate(const TQDate &date)
{ {
TQString dtstring = TQString( "<qt><center><b><i>%1</i></b> " ) TQString dtstring = TQString( "<qt><center><b><i>%1</i></b> " )
.arg( KGlobal::locale()->formatDate(date) ); .arg( TDEGlobal::locale()->formatDate(date) );
dtstring += " <font size=\"-1\"><a href=\"#\">" + dtstring += " <font size=\"-1\"><a href=\"#\">" +
i18n("[Add Journal Entry]") + i18n("[Add Journal Entry]") +

@ -61,7 +61,7 @@ KDateNavigator::KDateNavigator( TQWidget *parent, const char *name )
connect( mNavigatorBar, TQT_SIGNAL( yearSelected( int ) ), TQT_SIGNAL( yearSelected( int ) ) ); connect( mNavigatorBar, TQT_SIGNAL( yearSelected( int ) ), TQT_SIGNAL( yearSelected( int ) ) );
int i; int i;
TQString generalFont = KGlobalSettings::generalFont().family(); TQString generalFont = TDEGlobalSettings::generalFont().family();
// Set up the heading fields. // Set up the heading fields.
for( i = 0; i < 7; i++ ) { for( i = 0; i < 7; i++ ) {
@ -149,7 +149,7 @@ TQDate KDateNavigator::startDate() const
const KCalendarSystem *calsys = KOGlobals::self()->calendarSystem(); const KCalendarSystem *calsys = KOGlobals::self()->calendarSystem();
int m_fstDayOfWkCalsys = calsys->dayOfWeek( dayone ); int m_fstDayOfWkCalsys = calsys->dayOfWeek( dayone );
int weekstart = KGlobal::locale()->weekStartDay(); int weekstart = TDEGlobal::locale()->weekStartDay();
// If month begins on Monday and Monday is first day of week, // If month begins on Monday and Monday is first day of week,
// month should begin on second line. Sunday doesn't have this problem. // month should begin on second line. Sunday doesn't have this problem.
@ -234,7 +234,7 @@ void KDateNavigator::updateView()
void KDateNavigator::updateConfig() void KDateNavigator::updateConfig()
{ {
int day; int day;
int weekstart = KGlobal::locale()->weekStartDay(); int weekstart = TDEGlobal::locale()->weekStartDay();
for( int i = 0; i < 7; i++ ) { for( int i = 0; i < 7; i++ ) {
day = weekstart + i <= 7 ? weekstart + i : ( weekstart + i ) % 7; day = weekstart + i <= 7 ? weekstart + i : ( weekstart + i ) % 7;
TQString dayName = KOGlobals::self()->calendarSystem()->weekDayName( day, TQString dayName = KOGlobals::self()->calendarSystem()->weekDayName( day,

@ -147,7 +147,7 @@ void MarcusBains::updateLocationRecalc( bool recalculate )
if(recalculate) if(recalculate)
mTimeBox->setFont(KOPrefs::instance()->mMarcusBainsFont); mTimeBox->setFont(KOPrefs::instance()->mMarcusBainsFont);
TQString timeStr = KGlobal::locale()->formatTime(tim, KOPrefs::instance()->mMarcusBainsShowSeconds); TQString timeStr = TDEGlobal::locale()->formatTime(tim, KOPrefs::instance()->mMarcusBainsShowSeconds);
TQFontMetrics fm = fontMetrics(); TQFontMetrics fm = fontMetrics();
mTimeBox->setText( timeStr ); mTimeBox->setText( timeStr );
TQSize sz( fm.width( timeStr + ' ' ), fm.height() ); TQSize sz( fm.width( timeStr + ' ' ), fm.height() );

@ -836,17 +836,17 @@ void KOAgendaItem::paintEvent( TQPaintEvent *ev )
TQString shortH; TQString shortH;
TQString longH; TQString longH;
if ( !isMultiItem() ) { if ( !isMultiItem() ) {
shortH = KGlobal::locale()->formatTime(mIncidence->dtStart().time()); shortH = TDEGlobal::locale()->formatTime(mIncidence->dtStart().time());
if (mIncidence->type() != "Todo") if (mIncidence->type() != "Todo")
longH = i18n("%1 - %2").arg(shortH) longH = i18n("%1 - %2").arg(shortH)
.arg(KGlobal::locale()->formatTime(mIncidence->dtEnd().time())); .arg(TDEGlobal::locale()->formatTime(mIncidence->dtEnd().time()));
else else
longH = shortH; longH = shortH;
} else if ( !mMultiItemInfo->mFirstMultiItem ) { } else if ( !mMultiItemInfo->mFirstMultiItem ) {
shortH = KGlobal::locale()->formatTime(mIncidence->dtStart().time()); shortH = TDEGlobal::locale()->formatTime(mIncidence->dtStart().time());
longH = shortH; longH = shortH;
} else { } else {
shortH = KGlobal::locale()->formatTime(mIncidence->dtEnd().time()); shortH = TDEGlobal::locale()->formatTime(mIncidence->dtEnd().time());
longH = i18n("- %1").arg(shortH); longH = i18n("- %1").arg(shortH);
} }
@ -937,8 +937,8 @@ void KOAgendaItem::paintEvent( TQPaintEvent *ev )
(mIncidence->dtStart() != mIncidence->dtEnd()) ) { // multi days (mIncidence->dtStart() != mIncidence->dtEnd()) ) { // multi days
shortH = longH = shortH = longH =
i18n("%1 - %2") i18n("%1 - %2")
.arg(KGlobal::locale()->formatDate(mIncidence->dtStart().date())) .arg(TDEGlobal::locale()->formatDate(mIncidence->dtStart().date()))
.arg(KGlobal::locale()->formatDate(mIncidence->dtEnd().date())); .arg(TDEGlobal::locale()->formatDate(mIncidence->dtEnd().date()));
// paint headline // paint headline
p.fillRect( 0, 0, width(), (ft/2) + margin + hlHeight, p.fillRect( 0, 0, width(), (ft/2) + margin + hlHeight,

@ -288,7 +288,7 @@ KOAgendaView::KOAgendaView( Calendar *cal,
topLayout->addWidget(mSplitterAgenda); topLayout->addWidget(mSplitterAgenda);
#if KDE_IS_VERSION( 3, 1, 93 ) #if KDE_IS_VERSION( 3, 1, 93 )
mSplitterAgenda->setOpaqueResize( KGlobalSettings::opaqueResize() ); mSplitterAgenda->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
#else #else
mSplitterAgenda->setOpaqueResize(); mSplitterAgenda->setOpaqueResize();
#endif #endif
@ -625,7 +625,7 @@ void KOAgendaView::createDayLabels( bool force )
// dayLayout->setMinimumWidth(1); // dayLayout->setMinimumWidth(1);
int dW = calsys->dayOfWeek(date); int dW = calsys->dayOfWeek(date);
TQString veryLongStr = KGlobal::locale()->formatDate( date ); TQString veryLongStr = TDEGlobal::locale()->formatDate( date );
TQString longstr = i18n( "short_weekday date (e.g. Mon 13)","%1 %2" ) TQString longstr = i18n( "short_weekday date (e.g. Mon 13)","%1 %2" )
.arg( calsys->weekDayName( dW, true ) ) .arg( calsys->weekDayName( dW, true ) )
.arg( calsys->day(date) ); .arg( calsys->day(date) );

@ -717,7 +717,7 @@ TQPair<TQDate,TQDate> KODayMatrix::matrixLimits( const TQDate &month )
calSys->setYMD( d, calSys->year( month ), calSys->month( month ), 1 ); calSys->setYMD( d, calSys->year( month ), calSys->month( month ), 1 );
const int dayOfWeek = calSys->dayOfWeek( d ); const int dayOfWeek = calSys->dayOfWeek( d );
const int weekstart = KGlobal::locale()->weekStartDay(); const int weekstart = TDEGlobal::locale()->weekStartDay();
d = d.addDays( weekstart - dayOfWeek ); d = d.addDays( weekstart - dayOfWeek );

@ -132,7 +132,7 @@ class AttachmentListItem : public KIconViewItem
static TQPixmap icon( KMimeType::Ptr mimeType, const TQString &uri ) static TQPixmap icon( KMimeType::Ptr mimeType, const TQString &uri )
{ {
TQString iconStr = mimeType->icon( uri, false ); TQString iconStr = mimeType->icon( uri, false );
return KGlobal::iconLoader()->loadIcon( iconStr, KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( iconStr, KIcon::Small );
} }
void readAttachment() void readAttachment()
{ {
@ -234,7 +234,7 @@ AttachmentEditDialog::AttachmentEditDialog( AttachmentListItem *item,
grid->addWidget( new TQLabel( i18n( "Size:" ), topFrame ), 4, 0 ); grid->addWidget( new TQLabel( i18n( "Size:" ), topFrame ), 4, 0 );
grid->addWidget( new TQLabel( TQString::fromLatin1( "%1 (%2)" ). grid->addWidget( new TQLabel( TQString::fromLatin1( "%1 (%2)" ).
arg( KIO::convertSize( size ) ). arg( KIO::convertSize( size ) ).
arg( KGlobal::locale()->formatNumber( arg( TDEGlobal::locale()->formatNumber(
size, 0 ) ), topFrame ), 4, 2 ); size, 0 ) ), topFrame ), 4, 2 );
} }
vbl->addStretch( 10 ); vbl->addStretch( 10 );

@ -188,10 +188,10 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb )
toolTip += "<br>"; toolTip += "<br>";
} }
toolTip += "<i>" + i18n( "Start:" ) + "</i>" + "&nbsp;"; toolTip += "<i>" + i18n( "Start:" ) + "</i>" + "&nbsp;";
toolTip += KGlobal::locale()->formatDateTime( per.start() ); toolTip += TDEGlobal::locale()->formatDateTime( per.start() );
toolTip += "<br>"; toolTip += "<br>";
toolTip += "<i>" + i18n( "End:" ) + "</i>" + "&nbsp;"; toolTip += "<i>" + i18n( "End:" ) + "</i>" + "&nbsp;";
toolTip += KGlobal::locale()->formatDateTime( per.end() ); toolTip += TDEGlobal::locale()->formatDateTime( per.end() );
toolTip += "<br>"; toolTip += "<br>";
toolTip += "</qt>"; toolTip += "</qt>";
newSubItem->setTooltipText( toolTip ); newSubItem->setTooltipText( toolTip );
@ -320,7 +320,7 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *parent,
mGanttView->setShowLegendButton( false ); mGanttView->setShowLegendButton( false );
// Initially, center to current date // Initially, center to current date
mGanttView->centerTimelineAfterShow( TQDateTime::currentDateTime() ); mGanttView->centerTimelineAfterShow( TQDateTime::currentDateTime() );
if ( KGlobal::locale()->use12Clock() ) if ( TDEGlobal::locale()->use12Clock() )
mGanttView->setHourFormat( KDGanttView::Hour_12 ); mGanttView->setHourFormat( KDGanttView::Hour_12 );
else else
mGanttView->setHourFormat( KDGanttView::Hour_24_FourDigit ); mGanttView->setHourFormat( KDGanttView::Hour_24_FourDigit );

@ -197,7 +197,7 @@ void KOEditorGeneralEvent::initInvitationBar(TQWidget * parent, TQBoxLayout * la
{ {
TQBoxLayout *topLayout = new TQHBoxLayout( layout ); TQBoxLayout *topLayout = new TQHBoxLayout( layout );
mInvitationBar = new TQFrame( parent ); mInvitationBar = new TQFrame( parent );
mInvitationBar->setPaletteBackgroundColor( KGlobalSettings::alternateBackgroundColor() ); mInvitationBar->setPaletteBackgroundColor( TDEGlobalSettings::alternateBackgroundColor() );
topLayout->addWidget( mInvitationBar ); topLayout->addWidget( mInvitationBar );
TQBoxLayout *barLayout = new TQHBoxLayout( mInvitationBar ); TQBoxLayout *barLayout = new TQHBoxLayout( mInvitationBar );
@ -468,7 +468,7 @@ void KOEditorGeneralEvent::setDuration()
void KOEditorGeneralEvent::emitDateTimeStr() void KOEditorGeneralEvent::emitDateTimeStr()
{ {
KLocale *l = KGlobal::locale(); KLocale *l = TDEGlobal::locale();
TQString from,to; TQString from,to;
if (mAlldayEventCheckbox->isChecked()) { if (mAlldayEventCheckbox->isChecked()) {
@ -493,14 +493,14 @@ bool KOEditorGeneralEvent::validateInput()
if (!mStartTimeEdit->inputIsValid()) { if (!mStartTimeEdit->inputIsValid()) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("Please specify a valid start time, for example '%1'.") i18n("Please specify a valid start time, for example '%1'.")
.arg( KGlobal::locale()->formatTime( TQTime::currentTime() ) ) ); .arg( TDEGlobal::locale()->formatTime( TQTime::currentTime() ) ) );
return false; return false;
} }
if (!mEndTimeEdit->inputIsValid()) { if (!mEndTimeEdit->inputIsValid()) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("Please specify a valid end time, for example '%1'.") i18n("Please specify a valid end time, for example '%1'.")
.arg( KGlobal::locale()->formatTime( TQTime::currentTime() ) ) ); .arg( TDEGlobal::locale()->formatTime( TQTime::currentTime() ) ) );
return false; return false;
} }
} }
@ -508,14 +508,14 @@ bool KOEditorGeneralEvent::validateInput()
if (!mStartDateEdit->date().isValid()) { if (!mStartDateEdit->date().isValid()) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("Please specify a valid start date, for example '%1'.") i18n("Please specify a valid start date, for example '%1'.")
.arg( KGlobal::locale()->formatDate( TQDate::currentDate() ) ) ); .arg( TDEGlobal::locale()->formatDate( TQDate::currentDate() ) ) );
return false; return false;
} }
if (!mEndDateEdit->date().isValid()) { if (!mEndDateEdit->date().isValid()) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("Please specify a valid end date, for example '%1'.") i18n("Please specify a valid end date, for example '%1'.")
.arg( KGlobal::locale()->formatDate( TQDate::currentDate() ) ) ); .arg( TDEGlobal::locale()->formatDate( TQDate::currentDate() ) ) );
return false; return false;
} }

@ -196,7 +196,7 @@ bool KOEditorGeneralJournal::validateInput()
if (!mDateEdit->date().isValid()) { if (!mDateEdit->date().isValid()) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("Please specify a valid date, for example '%1'.") i18n("Please specify a valid date, for example '%1'.")
.arg( KGlobal::locale()->formatDate( TQDate::currentDate() ) ) ); .arg( TDEGlobal::locale()->formatDate( TQDate::currentDate() ) ) );
return false; return false;
} }

@ -565,7 +565,7 @@ void KOEditorGeneralTodo::completedChanged()
void KOEditorGeneralTodo::dateChanged() void KOEditorGeneralTodo::dateChanged()
{ {
KLocale *l = KGlobal::locale(); KLocale *l = TDEGlobal::locale();
TQString dateTimeStr = ""; TQString dateTimeStr = "";
if ( mStartCheck->isChecked() ) { if ( mStartCheck->isChecked() ) {

@ -183,7 +183,7 @@ RecurWeekly::RecurWeekly( TQWidget *parent, const char *name ) :
TQHBox *dayBox = new TQHBox( this ); TQHBox *dayBox = new TQHBox( this );
topLayout->addWidget( dayBox, 1, AlignVCenter ); topLayout->addWidget( dayBox, 1, AlignVCenter );
// Respect start of week setting // Respect start of week setting
int weekStart=KGlobal::locale()->weekStartDay(); int weekStart=TDEGlobal::locale()->weekStartDay();
for ( int i = 0; i < 7; ++i ) { for ( int i = 0; i < 7; ++i ) {
// i is the nr of the combobox, not the day of week! // i is the nr of the combobox, not the day of week!
// label=(i+weekStart+6)%7 + 1; // label=(i+weekStart+6)%7 + 1;
@ -631,7 +631,7 @@ ExceptionsWidget::ExceptionsWidget( TQWidget *parent, const char *name ) :
void ExceptionsWidget::addException() void ExceptionsWidget::addException()
{ {
TQDate date = mExceptionDateEdit->date(); TQDate date = mExceptionDateEdit->date();
TQString dateStr = KGlobal::locale()->formatDate( date ); TQString dateStr = TDEGlobal::locale()->formatDate( date );
if( !mExceptionList->findItem( dateStr ) ) { if( !mExceptionList->findItem( dateStr ) ) {
mExceptionDates.append( date ); mExceptionDates.append( date );
mExceptionList->insertItem( dateStr ); mExceptionList->insertItem( dateStr );
@ -645,7 +645,7 @@ void ExceptionsWidget::changeException()
TQDate date = mExceptionDateEdit->date(); TQDate date = mExceptionDateEdit->date();
mExceptionDates[ pos ] = date; mExceptionDates[ pos ] = date;
mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos ); mExceptionList->changeItem( TDEGlobal::locale()->formatDate( date ), pos );
} }
void ExceptionsWidget::deleteException() void ExceptionsWidget::deleteException()
@ -663,7 +663,7 @@ void ExceptionsWidget::setDates( const DateList &dates )
mExceptionDates.clear(); mExceptionDates.clear();
DateList::ConstIterator dit; DateList::ConstIterator dit;
for ( dit = dates.begin(); dit != dates.end(); ++dit ) { for ( dit = dates.begin(); dit != dates.end(); ++dit ) {
mExceptionList->insertItem( KGlobal::locale()->formatDate(* dit ) ); mExceptionList->insertItem( TDEGlobal::locale()->formatDate(* dit ) );
mExceptionDates.append( *dit ); mExceptionDates.append( *dit );
} }
} }
@ -824,7 +824,7 @@ void RecurrenceRangeWidget::setDateTimes( const TQDateTime &start,
const TQDateTime & ) const TQDateTime & )
{ {
mStartDateLabel->setText( i18n("Begins on: %1") mStartDateLabel->setText( i18n("Begins on: %1")
.arg( KGlobal::locale()->formatDate( start.date() ) ) ); .arg( TDEGlobal::locale()->formatDate( start.date() ) ) );
} }
///////////////////////// RecurrenceRangeDialog /////////////////////////// ///////////////////////// RecurrenceRangeDialog ///////////////////////////
@ -1394,8 +1394,8 @@ bool KOEditorRecurrence::validateInput()
mEventStartDt.isValid() && ((mRecurrenceRange->endDate())<mEventStartDt.date()) ) { mEventStartDt.isValid() && ((mRecurrenceRange->endDate())<mEventStartDt.date()) ) {
KMessageBox::sorry( 0, KMessageBox::sorry( 0,
i18n("The end date '%1' of the recurrence must be after the start date '%2' of the event.") i18n("The end date '%1' of the recurrence must be after the start date '%2' of the event.")
.arg( KGlobal::locale()->formatDate( mRecurrenceRange->endDate() ) ) .arg( TDEGlobal::locale()->formatDate( mRecurrenceRange->endDate() ) )
.arg( KGlobal::locale()->formatDate( mEventStartDt.date() ) ) ); .arg( TDEGlobal::locale()->formatDate( mEventStartDt.date() ) ) );
return false; return false;
} }
int recurrenceType = mRecurrenceChooser->type(); int recurrenceType = mRecurrenceChooser->type();

@ -72,7 +72,7 @@ KOGlobals::KOGlobals()
mOwnInstance = new TDEInstance( "korganizer" ); mOwnInstance = new TDEInstance( "korganizer" );
mOwnInstance->config()->setGroup( "General" ); mOwnInstance->config()->setGroup( "General" );
mOwnInstance->iconLoader()->addAppDir( "tdepim" ); mOwnInstance->iconLoader()->addAppDir( "tdepim" );
KGlobal::iconLoader()->addAppDir( "tdepim" ); TDEGlobal::iconLoader()->addAppDir( "tdepim" );
mAlarmClient = new AlarmClient; mAlarmClient = new AlarmClient;
} }
@ -91,7 +91,7 @@ KOGlobals::~KOGlobals()
const KCalendarSystem *KOGlobals::calendarSystem() const const KCalendarSystem *KOGlobals::calendarSystem() const
{ {
return KGlobal::locale()->calendar(); return TDEGlobal::locale()->calendar();
} }
AlarmClient *KOGlobals::alarmClient() const AlarmClient *KOGlobals::alarmClient() const
@ -106,7 +106,7 @@ void KOGlobals::fitDialogToScreen( TQWidget *wid, bool force )
int w = wid->frameSize().width(); int w = wid->frameSize().width();
int h = wid->frameSize().height(); int h = wid->frameSize().height();
TQRect desk = KGlobalSettings::desktopGeometry( wid ); TQRect desk = TDEGlobalSettings::desktopGeometry( wid );
if ( w > desk.width() ) { if ( w > desk.width() ) {
w = desk.width(); w = desk.width();
resized = true; resized = true;

@ -193,7 +193,7 @@ void KOIncidenceEditor::setupDesignerTabs( const TQString &type )
{ {
TQStringList activePages = KOPrefs::instance()->activeDesignerFields(); TQStringList activePages = KOPrefs::instance()->activeDesignerFields();
TQStringList list = KGlobal::dirs()->findAllResources( "data", TQStringList list = TDEGlobal::dirs()->findAllResources( "data",
"korganizer/designer/" + type + "/*.ui", true, true ); "korganizer/designer/" + type + "/*.ui", true, true );
for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) { for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) {
const TQString &fn = (*it).mid( (*it).findRev('/') + 1 ); const TQString &fn = (*it).mid( (*it).findRev('/') + 1 );

@ -196,20 +196,20 @@ bool KOMailClient::send(const TQString &from,const TQString &_to,const TQString
if (command.isNull()) return false; // give up if (command.isNull()) return false; // give up
command.append(TQString::fromLatin1(" -s ")); command.append(TQString::fromLatin1(" -s "));
command.append(KProcess::quote(subject)); command.append(TDEProcess::quote(subject));
if (bcc) { if (bcc) {
command.append(TQString::fromLatin1(" -b ")); command.append(TQString::fromLatin1(" -b "));
command.append(KProcess::quote(from)); command.append(TDEProcess::quote(from));
} }
if ( !cc.isEmpty() ) { if ( !cc.isEmpty() ) {
command.append(" -c "); command.append(" -c ");
command.append(KProcess::quote(cc)); command.append(TDEProcess::quote(cc));
} }
command.append(" "); command.append(" ");
command.append(KProcess::quote(to)); command.append(TDEProcess::quote(to));
needHeaders = false; needHeaders = false;
} }

@ -566,7 +566,7 @@ class MonthViewCell::CreateItemVisitor :
if (event->doesFloat()) if (event->doesFloat())
text = event->summary(); text = event->summary();
else { else {
text = KGlobal::locale()->formatTime(event->dtStart().time()); text = TDEGlobal::locale()->formatTime(event->dtStart().time());
dt.setTime( event->dtStart().time() ); dt.setTime( event->dtStart().time() );
text += ' ' + event->summary(); text += ' ' + event->summary();
} }
@ -603,7 +603,7 @@ class MonthViewCell::CreateItemVisitor :
TQDateTime dt( mDate ); TQDateTime dt( mDate );
if ( todo->hasDueDate() && !todo->doesFloat() && if ( todo->hasDueDate() && !todo->doesFloat() &&
todo->dtDue().time() != TQTime( 0,0 ) && todo->dtDue().time().isValid() ) { todo->dtDue().time() != TQTime( 0,0 ) && todo->dtDue().time().isValid() ) {
text += KGlobal::locale()->formatTime( todo->dtDue().time() ); text += TDEGlobal::locale()->formatTime( todo->dtDue().time() );
text += ' '; text += ' ';
dt.setTime( todo->dtDue().time() ); dt.setTime( todo->dtDue().time() );
} }
@ -928,7 +928,7 @@ bool KOMonthView::eventDurationHint( TQDateTime &startDt, TQDateTime &endDt, boo
void KOMonthView::updateConfig() void KOMonthView::updateConfig()
{ {
mWeekStartDay = KGlobal::locale()->weekStartDay(); mWeekStartDay = TDEGlobal::locale()->weekStartDay();
TQFontMetrics fontmetric( mDayLabels[0]->font() ); TQFontMetrics fontmetric( mDayLabels[0]->font() );
mWidthLongDayLabel = 0; mWidthLongDayLabel = 0;

@ -72,12 +72,12 @@ KOPrefs::KOPrefs() :
mDefaultResourceColor = TQColor();//Default is a color invalid mDefaultResourceColor = TQColor();//Default is a color invalid
mDefaultTimeBarFont = KGlobalSettings::generalFont(); mDefaultTimeBarFont = TDEGlobalSettings::generalFont();
// make a large default time bar font, at least 16 points. // make a large default time bar font, at least 16 points.
mDefaultTimeBarFont.setPointSize( mDefaultTimeBarFont.setPointSize(
TQMAX( mDefaultTimeBarFont.pointSize() + 4, 16 ) ); TQMAX( mDefaultTimeBarFont.pointSize() + 4, 16 ) );
mDefaultMonthViewFont = KGlobalSettings::generalFont(); mDefaultMonthViewFont = TDEGlobalSettings::generalFont();
// make it a bit smaller // make it a bit smaller
mDefaultMonthViewFont.setPointSize( mDefaultMonthViewFont.pointSize() - 2 ); mDefaultMonthViewFont.setPointSize( mDefaultMonthViewFont.pointSize() - 2 );

@ -343,7 +343,7 @@ class KOPrefsDialogTime : public KPrefsModule
cb->setText( TQString() ); cb->setText( TQString() );
if ( KOPrefs::instance()->audioFilePathItem()->value().isEmpty() ) { if ( KOPrefs::instance()->audioFilePathItem()->value().isEmpty() ) {
TQString defAudioFile = KGlobal::dirs()->findResourceDir( "sound", "KDE-Sys-Warning.ogg"); TQString defAudioFile = TDEGlobal::dirs()->findResourceDir( "sound", "KDE-Sys-Warning.ogg");
KOPrefs::instance()->audioFilePathItem()->setValue( defAudioFile + "KDE-Sys-Warning.ogg" ); KOPrefs::instance()->audioFilePathItem()->setValue( defAudioFile + "KDE-Sys-Warning.ogg" );
} }
TQString filter = i18n( "*.ogg *.wav *.mp3 *.wma *.flac *.aiff *.raw *.au *.ra|" TQString filter = i18n( "*.ogg *.wav *.mp3 *.wma *.flac *.aiff *.raw *.au *.ra|"
@ -374,7 +374,7 @@ class KOPrefsDialogTime : public KPrefsModule
TQHBox *workDaysBox = new TQHBox( workingHoursGroup ); TQHBox *workDaysBox = new TQHBox( workingHoursGroup );
// Respect start of week setting // Respect start of week setting
int weekStart=KGlobal::locale()->weekStartDay(); int weekStart=TDEGlobal::locale()->weekStartDay();
for ( int i = 0; i < 7; ++i ) { for ( int i = 0; i < 7; ++i ) {
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
TQString weekDayName = calSys->weekDayName( (i + weekStart + 6)%7 + 1, true ); TQString weekDayName = calSys->weekDayName( (i + weekStart + 6)%7 + 1, true );
@ -481,7 +481,7 @@ extern "C"
{ {
KCModule *create_korganizerconfigtime( TQWidget *parent, const char * ) KCModule *create_korganizerconfigtime( TQWidget *parent, const char * )
{ {
KGlobal::locale()->insertCatalogue( "timezones" ); TDEGlobal::locale()->insertCatalogue( "timezones" );
return new KOPrefsDialogTime( parent, "kcmkorganizertime" ); return new KOPrefsDialogTime( parent, "kcmkorganizertime" );
} }
} }
@ -602,14 +602,14 @@ class KOPrefsDialogFonts : public KPrefsModule
KPrefsWidFont *timeBarFont = KPrefsWidFont *timeBarFont =
addWidFont( KOPrefs::instance()->timeBarFontItem(), topFrame, addWidFont( KOPrefs::instance()->timeBarFontItem(), topFrame,
KGlobal::locale()->formatTime( TQTime( 12, 34 ) ) ); TDEGlobal::locale()->formatTime( TQTime( 12, 34 ) ) );
topLayout->addWidget(timeBarFont->label(),0,0); topLayout->addWidget(timeBarFont->label(),0,0);
topLayout->addWidget(timeBarFont->preview(),0,1); topLayout->addWidget(timeBarFont->preview(),0,1);
topLayout->addWidget(timeBarFont->button(),0,2); topLayout->addWidget(timeBarFont->button(),0,2);
KPrefsWidFont *monthViewFont = KPrefsWidFont *monthViewFont =
addWidFont( KOPrefs::instance()->monthViewFontItem(), topFrame, addWidFont( KOPrefs::instance()->monthViewFontItem(), topFrame,
KGlobal::locale()->formatTime(TQTime(12,34)) + " " + TDEGlobal::locale()->formatTime(TQTime(12,34)) + " " +
i18n("Event text") ); i18n("Event text") );
topLayout->addWidget(monthViewFont->label(),1,0); topLayout->addWidget(monthViewFont->label(),1,0);
@ -625,7 +625,7 @@ class KOPrefsDialogFonts : public KPrefsModule
KPrefsWidFont *marcusBainsFont = KPrefsWidFont *marcusBainsFont =
addWidFont( KOPrefs::instance()->marcusBainsFontItem(), topFrame, addWidFont( KOPrefs::instance()->marcusBainsFontItem(), topFrame,
KGlobal::locale()->formatTime( TQTime( 12, 34, 23 ) ) ); TDEGlobal::locale()->formatTime( TQTime( 12, 34, 23 ) ) );
topLayout->addWidget(marcusBainsFont->label(),3,0); topLayout->addWidget(marcusBainsFont->label(),3,0);
topLayout->addWidget(marcusBainsFont->preview(),3,1); topLayout->addWidget(marcusBainsFont->preview(),3,1);
topLayout->addWidget(marcusBainsFont->button(),3,2); topLayout->addWidget(marcusBainsFont->button(),3,2);

@ -112,7 +112,7 @@ AlarmDialog::AlarmDialog( KCal::CalendarResources *calendar, TQWidget *parent, c
connect( calendar, TQT_SIGNAL(calendarChanged()), connect( calendar, TQT_SIGNAL(calendarChanged()),
this, TQT_SLOT(slotCalendarChanged()) ); this, TQT_SLOT(slotCalendarChanged()) );
KGlobal::iconLoader()->addAppDir( "tdepim" ); TDEGlobal::iconLoader()->addAppDir( "tdepim" );
setButtonOK( i18n( "Suspend" ) ); setButtonOK( i18n( "Suspend" ) );
TQWidget *topBox = plainPage(); TQWidget *topBox = plainPage();
@ -123,7 +123,7 @@ AlarmDialog::AlarmDialog( KCal::CalendarResources *calendar, TQWidget *parent, c
topLayout->addWidget( label ); topLayout->addWidget( label );
mSplitter = new TQSplitter( Qt::Vertical, topBox ); mSplitter = new TQSplitter( Qt::Vertical, topBox );
mSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
topLayout->addWidget( mSplitter ); topLayout->addWidget( mSplitter );
mIncidenceListView = new KListView( mSplitter ); mIncidenceListView = new KListView( mSplitter );
@ -505,9 +505,9 @@ void AlarmDialog::eventNotification()
if (alarm->type() == Alarm::Procedure) { if (alarm->type() == Alarm::Procedure) {
// FIXME: Add a message box asking whether the procedure should really be executed // FIXME: Add a message box asking whether the procedure should really be executed
kdDebug(5890) << "Starting program: '" << alarm->programFile() << "'" << endl; kdDebug(5890) << "Starting program: '" << alarm->programFile() << "'" << endl;
KProcess proc; TDEProcess proc;
proc << TQFile::encodeName(alarm->programFile()).data(); proc << TQFile::encodeName(alarm->programFile()).data();
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
else if (alarm->type() == Alarm::Audio) { else if (alarm->type() == Alarm::Audio) {
beeped = true; beeped = true;
@ -693,7 +693,7 @@ TQDateTime AlarmDialog::triggerDateForIncidence( Incidence *incidence,
if ( incidence->doesRecur() ) { if ( incidence->doesRecur() ) {
result = incidence->recurrence()->getNextDateTime( reminderAt ); result = incidence->recurrence()->getNextDateTime( reminderAt );
displayStr = KGlobal::locale()->formatDateTime( result ); displayStr = TDEGlobal::locale()->formatDateTime( result );
} }
if ( incidence->type() == "Event" ) { if ( incidence->type() == "Event" ) {

@ -57,7 +57,7 @@ AlarmDockWindow::AlarmDockWindow( const char *name )
setCaption( mName ); setCaption( mName );
// Set up icons // Set up icons
KGlobal::iconLoader()->addAppDir( "korgac" ); TDEGlobal::iconLoader()->addAppDir( "korgac" );
mPixmapEnabled = loadSizedIcon( "korgac", width() ); mPixmapEnabled = loadSizedIcon( "korgac", width() );
mPixmapDisabled = loadSizedIcon( "korgac_disabled", width() ); mPixmapDisabled = loadSizedIcon( "korgac_disabled", width() );

@ -152,9 +152,9 @@ void KOAlarmClient::slotQuit()
void KOAlarmClient::saveLastCheckTime() void KOAlarmClient::saveLastCheckTime()
{ {
KConfigGroup cg( KGlobal::config(), "Alarms"); KConfigGroup cg( TDEGlobal::config(), "Alarms");
cg.writeEntry( "CalendarsLastChecked", mLastChecked ); cg.writeEntry( "CalendarsLastChecked", mLastChecked );
KGlobal::config()->sync(); TDEGlobal::config()->sync();
} }
void KOAlarmClient::quit() void KOAlarmClient::quit()

@ -80,7 +80,7 @@ int main( int argc, char **argv )
MyApp app; MyApp app;
app.disableSessionManagement(); app.disableSessionManagement();
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
return app.exec(); return app.exec();
} }

@ -202,7 +202,7 @@ void KOrganizer::writeSettings()
void KOrganizer::initActions() void KOrganizer::initActions()
{ {
setInstance( KGlobal::instance() ); setInstance( TDEGlobal::instance() );
setXMLFile( "korganizerui.rc" ); setXMLFile( "korganizerui.rc" );
setStandardToolBarMenuEnabled( true ); setStandardToolBarMenuEnabled( true );

@ -41,7 +41,7 @@ class KTempFile;
class KRecentFilesAction; class KRecentFilesAction;
class KOWindowList; class KOWindowList;
class KToggleAction; class KToggleAction;
class KProcess; class TDEProcess;
class KONewStuff; class KONewStuff;
class ActionManager; class ActionManager;
class CalendarView; class CalendarView;

@ -71,9 +71,9 @@ KOrganizerPart::KOrganizerPart( TQWidget *parentWidget, const char *widgetName,
const TQStringList & ) : const TQStringList & ) :
KParts::ReadOnlyPart(parent, name), mTopLevelWidget( parentWidget->topLevelWidget() ) KParts::ReadOnlyPart(parent, name), mTopLevelWidget( parentWidget->topLevelWidget() )
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
KGlobal::locale()->insertCatalogue( "kdgantt" ); TDEGlobal::locale()->insertCatalogue( "kdgantt" );
KOCore::self()->addXMLGUIClient( mTopLevelWidget, this ); KOCore::self()->addXMLGUIClient( mTopLevelWidget, this );
@ -140,7 +140,7 @@ TDEAboutData *KOrganizerPart::createAboutData()
return new KOrg::AboutData; return new KOrg::AboutData;
} }
void KOrganizerPart::startCompleted( KProcess *process ) void KOrganizerPart::startCompleted( TDEProcess *process )
{ {
delete process; delete process;
} }

@ -33,7 +33,7 @@
class TDEInstance; class TDEInstance;
class TDEAboutData; class TDEAboutData;
class KProcess; class TDEProcess;
class CalendarView; class CalendarView;
class ActionManager; class ActionManager;
@ -95,7 +95,7 @@ class KOrganizerPart: public KParts::ReadOnlyPart,
virtual bool openFile(); virtual bool openFile();
protected slots: protected slots:
void startCompleted( KProcess * ); void startCompleted( TDEProcess * );
private: private:
CalendarView *mView; CalendarView *mView;

@ -54,7 +54,7 @@ KOTimelineView::KOTimelineView(Calendar *calendar, TQWidget *parent,
mGantt->removeColumn( 0 ); mGantt->removeColumn( 0 );
mGantt->addColumn( i18n("Calendar") ); mGantt->addColumn( i18n("Calendar") );
mGantt->setHeaderVisible( true ); mGantt->setHeaderVisible( true );
if ( KGlobal::locale()->use12Clock() ) if ( TDEGlobal::locale()->use12Clock() )
mGantt->setHourFormat( KDGanttView::Hour_12 ); mGantt->setHourFormat( KDGanttView::Hour_12 );
else else
mGantt->setHourFormat( KDGanttView::Hour_24_FourDigit ); mGantt->setHourFormat( KDGanttView::Hour_24_FourDigit );

@ -268,11 +268,11 @@ void KOTodoViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5); int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5);
p->fillRect( 0, 0, width, height(), _cg.base() ); // background p->fillRect( 0, 0, width, height(), _cg.base() ); // background
p->setPen( KGlobalSettings::textColor() ); //border p->setPen( TDEGlobalSettings::textColor() ); //border
p->setBrush( KGlobalSettings::baseColor() ); //filling p->setBrush( TDEGlobalSettings::baseColor() ); //filling
p->drawRect( 2, 2, width-4, height()-4); p->drawRect( 2, 2, width-4, height()-4);
p->fillRect( 3, 3, progress, height()-6, p->fillRect( 3, 3, progress, height()-6,
KGlobalSettings::highlightColor() ); TDEGlobalSettings::highlightColor() );
p->restore(); p->restore();
} else { } else {
TQCheckListItem::paintCell(p, _cg, column, width, alignment); TQCheckListItem::paintCell(p, _cg, column, width, alignment);

@ -65,7 +65,7 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, TQWidget *parent,
: KOrg::BaseView(calendar, parent, name) : KOrg::BaseView(calendar, parent, name)
{ {
// TQLabel *dateLabel = // TQLabel *dateLabel =
// new TQLabel(KGlobal::locale()->formatDate(TQDate::currentDate()),this); // new TQLabel(TDEGlobal::locale()->formatDate(TQDate::currentDate()),this);
// dateLabel->setMargin(2); // dateLabel->setMargin(2);
// dateLabel->setAlignment(AlignCenter); // dateLabel->setAlignment(AlignCenter);
@ -103,11 +103,11 @@ void KOWhatsNextView::updateView()
mText += "<h2>"; mText += "<h2>";
if ( mStartDate.daysTo( mEndDate ) < 1 ) { if ( mStartDate.daysTo( mEndDate ) < 1 ) {
mText += KGlobal::locale()->formatDate( mStartDate ); mText += TDEGlobal::locale()->formatDate( mStartDate );
} else { } else {
mText += i18n("Date from - to", "%1 - %2") mText += i18n("Date from - to", "%1 - %2")
.arg( KGlobal::locale()->formatDate( mStartDate ) ) .arg( TDEGlobal::locale()->formatDate( mStartDate ) )
.arg( KGlobal::locale()->formatDate( mEndDate ) ); .arg( TDEGlobal::locale()->formatDate( mEndDate ) );
} }
mText+="</h2>\n"; mText+="</h2>\n";
@ -281,14 +281,14 @@ void KOWhatsNextView::appendEvent( Incidence *ev, const TQDateTime &start,
if ( starttime.date().daysTo( endtime.date() ) >= 1 ) { if ( starttime.date().daysTo( endtime.date() ) >= 1 ) {
mText += i18n("date from - to", "%1 - %2") mText += i18n("date from - to", "%1 - %2")
.arg( KGlobal::locale()->formatDateTime( starttime ) ) .arg( TDEGlobal::locale()->formatDateTime( starttime ) )
.arg( KGlobal::locale()->formatDateTime( endtime ) ); .arg( TDEGlobal::locale()->formatDateTime( endtime ) );
} else { } else {
/*if (reply) */ /*if (reply) */
mText += i18n("date, from - to", "%1, %2 - %3") mText += i18n("date, from - to", "%1, %2 - %3")
.arg( KGlobal::locale()->formatDate( starttime.date(), true ) ) .arg( TDEGlobal::locale()->formatDate( starttime.date(), true ) )
.arg( KGlobal::locale()->formatTime( starttime.time() ) ) .arg( TDEGlobal::locale()->formatTime( starttime.time() ) )
.arg( KGlobal::locale()->formatTime( endtime.time() ) ); .arg( TDEGlobal::locale()->formatTime( endtime.time() ) );
} }
} }
// } // }

@ -47,9 +47,9 @@ int main ( int argc, char **argv )
KOrganizerApp app; KOrganizerApp app;
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
KGlobal::locale()->insertCatalogue( "kdgantt" ); TDEGlobal::locale()->insertCatalogue( "kdgantt" );
if ( app.isRestored() ) { if ( app.isRestored() ) {
RESTORE( KOrganizer ) RESTORE( KOrganizer )

@ -58,7 +58,7 @@ MultiAgendaView::MultiAgendaView( Calendar * cal, CalendarView *calendarView,
mLeftTopSpacer = new TQWidget( topSideBox ); mLeftTopSpacer = new TQWidget( topSideBox );
mLeftTopSpacer->setFixedHeight( topLabelHeight ); mLeftTopSpacer->setFixedHeight( topLabelHeight );
mLeftSplitter = new TQSplitter( Qt::Vertical, topSideBox ); mLeftSplitter = new TQSplitter( Qt::Vertical, topSideBox );
mLeftSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); mLeftSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
TQLabel *label = new TQLabel( i18n("All Day"), mLeftSplitter ); TQLabel *label = new TQLabel( i18n("All Day"), mLeftSplitter );
label->setAlignment( TQt::AlignRight | TQt::AlignVCenter | TQt::WordBreak ); label->setAlignment( TQt::AlignRight | TQt::AlignVCenter | TQt::WordBreak );
TQVBox *sideBox = new TQVBox( mLeftSplitter ); TQVBox *sideBox = new TQVBox( mLeftSplitter );
@ -82,7 +82,7 @@ MultiAgendaView::MultiAgendaView( Calendar * cal, CalendarView *calendarView,
mRightTopSpacer = new TQWidget( topSideBox ); mRightTopSpacer = new TQWidget( topSideBox );
mRightTopSpacer->setFixedHeight( topLabelHeight ); mRightTopSpacer->setFixedHeight( topLabelHeight );
mRightSplitter = new TQSplitter( Qt::Vertical, topSideBox ); mRightSplitter = new TQSplitter( Qt::Vertical, topSideBox );
mRightSplitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); mRightSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
new TQWidget( mRightSplitter ); new TQWidget( mRightSplitter );
sideBox = new TQVBox( mRightSplitter ); sideBox = new TQVBox( mRightSplitter );
eiSpacer = new EventIndicator( EventIndicator::Top, sideBox ); eiSpacer = new EventIndicator( EventIndicator::Top, sideBox );
@ -461,7 +461,7 @@ bool MultiAgendaView::eventFilter(TQObject * obj, TQEvent * event)
{ {
if ( obj->className() == TQCString(TQSPLITTERHANDLE_OBJECT_NAME_STRING) ) { if ( obj->className() == TQCString(TQSPLITTERHANDLE_OBJECT_NAME_STRING) ) {
// KDE4: not needed anymore, TQSplitter has a moved signal there // KDE4: not needed anymore, TQSplitter has a moved signal there
if ( (event->type() == TQEvent::MouseMove && KGlobalSettings::opaqueResize()) if ( (event->type() == TQEvent::MouseMove && TDEGlobalSettings::opaqueResize())
|| event->type() == TQEvent::MouseButtonRelease ) { || event->type() == TQEvent::MouseButtonRelease ) {
FOREACH_VIEW( agenda ) { FOREACH_VIEW( agenda ) {
if ( TQT_BASE_OBJECT(agenda->splitter()) == TQT_BASE_OBJECT(obj->parent()) ) if ( TQT_BASE_OBJECT(agenda->splitter()) == TQT_BASE_OBJECT(obj->parent()) )

@ -49,7 +49,7 @@ class ExchangeFactory : public KOrg::PartFactory {
KOrg::Part *create(KOrg::MainWindow *parent, const char *name) KOrg::Part *create(KOrg::MainWindow *parent, const char *name)
{ {
kdDebug(5850) << "Registering Exchange Plugin...\n"; kdDebug(5850) << "Registering Exchange Plugin...\n";
KGlobal::locale()->insertCatalogue("libkpimexchange"); TDEGlobal::locale()->insertCatalogue("libkpimexchange");
return new Exchange(parent,name); return new Exchange(parent,name);
} }
}; };

@ -63,7 +63,7 @@ void ConfigDialog::load()
config.setGroup("Calendar/Hebrew Calendar Plugin"); config.setGroup("Calendar/Hebrew Calendar Plugin");
israel_box->setChecked(config. israel_box->setChecked(config.
readBoolEntry("Israel", readBoolEntry("Israel",
(KGlobal::locale()-> (TDEGlobal::locale()->
country() == ".il"))); country() == ".il")));
parsha_box->setChecked(config.readBoolEntry("Parsha", true)); parsha_box->setChecked(config.readBoolEntry("Parsha", true));
chol_box->setChecked(config.readBoolEntry("Chol_HaMoed", true)); chol_box->setChecked(config.readBoolEntry("Chol_HaMoed", true));

@ -51,7 +51,7 @@ TQString Hebrew::shortText(const TQDate & date)
config.setGroup("Calendar/Hebrew Calendar Plugin"); config.setGroup("Calendar/Hebrew Calendar Plugin");
IsraelP = IsraelP =
config.readBoolEntry("Israel", config.readBoolEntry("Israel",
(KGlobal::locale()->country() == ".il")); (TDEGlobal::locale()->country() == ".il"));
Holiday::ParshaP = config.readBoolEntry("Parsha", true); Holiday::ParshaP = config.readBoolEntry("Parsha", true);
Holiday::CholP = config.readBoolEntry("Chol_HaMoed", true); Holiday::CholP = config.readBoolEntry("Chol_HaMoed", true);
Holiday::OmerP = config.readBoolEntry("Omer", true); Holiday::OmerP = config.readBoolEntry("Omer", true);

@ -138,7 +138,7 @@ void CalPrintYear::setDateRange( const TQDate& from, const TQDate& to )
void CalPrintYear::print( TQPainter &p, int width, int height ) void CalPrintYear::print( TQPainter &p, int width, int height )
{ {
const KCalendarSystem *calsys = calendarSystem(); const KCalendarSystem *calsys = calendarSystem();
KLocale *locale = KGlobal::locale(); KLocale *locale = TDEGlobal::locale();
if ( !calsys || !locale ) return; if ( !calsys || !locale ) return;
TQRect headerBox( 0, 0, width, headerHeight() ); TQRect headerBox( 0, 0, width, headerHeight() );

@ -37,7 +37,7 @@ class ProjectViewFactory : public KOrg::PartFactory {
public: public:
KOrg::Part *create(KOrg::MainWindow *parent, const char *name) KOrg::Part *create(KOrg::MainWindow *parent, const char *name)
{ {
KGlobal::locale()->insertCatalogue( "kgantt" ); TDEGlobal::locale()->insertCatalogue( "kgantt" );
return new ProjectView(parent,name); return new ProjectView(parent,name);
} }
}; };

@ -298,7 +298,7 @@ void CalPrintIncidence::print( TQPainter &p, int width, int height )
exceptString = i18n("except for listed dates", " except"); exceptString = i18n("except for listed dates", " except");
for ( uint i = 0; i < recurs->exDates().size(); i++ ) { for ( uint i = 0; i < recurs->exDates().size(); i++ ) {
exceptString.append(" "); exceptString.append(" ");
exceptString.append( KGlobal::locale()->formatDate(recurs->exDates()[i], exceptString.append( TDEGlobal::locale()->formatDate(recurs->exDates()[i],
true) ); true) );
} }
} }
@ -482,24 +482,24 @@ void CalPrintIncidence::print( TQPainter &p, int width, int height )
if ( (*rit)->dtStart().isValid() ) { if ( (*rit)->dtStart().isValid() ) {
datesString += i18n( datesString += i18n(
"Start Date: %1\n").arg( "Start Date: %1\n").arg(
KGlobal::locale()->formatDate( (*rit)->dtStart().date(), TDEGlobal::locale()->formatDate( (*rit)->dtStart().date(),
true ) ); true ) );
if ( !(*rit)->doesFloat() ) { if ( !(*rit)->doesFloat() ) {
datesString += i18n( datesString += i18n(
"Start Time: %1\n").arg( "Start Time: %1\n").arg(
KGlobal::locale()->formatTime((*rit)->dtStart().time(), TDEGlobal::locale()->formatTime((*rit)->dtStart().time(),
false, false) ); false, false) );
} }
} }
if ( (*rit)->dtEnd().isValid() ) { if ( (*rit)->dtEnd().isValid() ) {
subitemString += i18n( subitemString += i18n(
"Due Date: %1\n").arg( "Due Date: %1\n").arg(
KGlobal::locale()->formatDate( (*rit)->dtEnd().date(), TDEGlobal::locale()->formatDate( (*rit)->dtEnd().date(),
true ) ); true ) );
if ( !(*rit)->doesFloat() ) { if ( !(*rit)->doesFloat() ) {
subitemString += i18n( subitemString += i18n(
"subitem due time", "Due Time: %1\n").arg( "subitem due time", "Due Time: %1\n").arg(
KGlobal::locale()->formatTime((*rit)->dtEnd().time(), TDEGlobal::locale()->formatTime((*rit)->dtEnd().time(),
false, false) ); false, false) );
} }
} }
@ -705,7 +705,7 @@ void CalPrintDay::print( TQPainter &p, int width, int height )
TQRect footerBox( 0, height - footerHeight(), width, footerHeight() ); TQRect footerBox( 0, height - footerHeight(), width, footerHeight() );
height -= footerHeight(); height -= footerHeight();
KLocale *local = KGlobal::locale(); KLocale *local = TDEGlobal::locale();
do { do {
TQTime curStartTime( mStartTime ); TQTime curStartTime( mStartTime );
@ -915,7 +915,7 @@ void CalPrintWeek::print( TQPainter &p, int width, int height )
toWeek = mToDate.addDays( 6 - weekdayCol ); toWeek = mToDate.addDays( 6 - weekdayCol );
curWeek = fromWeek.addDays( 6 ); curWeek = fromWeek.addDays( 6 );
KLocale *local = KGlobal::locale(); KLocale *local = TDEGlobal::locale();
TQString line1, line2, title; TQString line1, line2, title;
TQRect headerBox( 0, 0, width, headerHeight() ); TQRect headerBox( 0, 0, width, headerHeight() );

@ -558,7 +558,7 @@ int CalPrintPluginBase::drawFooter( TQPainter &p, TQRect &footbox )
TQFont oldfont( p.font() ); TQFont oldfont( p.font() );
p.setFont( TQFont( "sans-serif", 6 ) ); p.setFont( TQFont( "sans-serif", 6 ) );
TQFontMetrics fm( p.font() ); TQFontMetrics fm( p.font() );
TQString dateStr = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), false ); TQString dateStr = TDEGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), false );
p.drawText( footbox, TQt::AlignCenter | TQt::AlignVCenter | TQt::SingleLine, p.drawText( footbox, TQt::AlignCenter | TQt::AlignVCenter | TQt::SingleLine,
i18n( "print date: formatted-datetime", "printed: %1" ).arg( dateStr ) ); i18n( "print date: formatted-datetime", "printed: %1" ).arg( dateStr ) );
p.setFont( oldfont ); p.setFont( oldfont );
@ -690,7 +690,7 @@ void CalPrintPluginBase::drawTimeLine( TQPainter &p, const TQTime &fromTime,
if ( newY < box.bottom() ) { if ( newY < box.bottom() ) {
TQFont oldFont( p.font() ); TQFont oldFont( p.font() );
// draw the time: // draw the time:
if ( !KGlobal::locale()->use12Clock() ) { if ( !TDEGlobal::locale()->use12Clock() ) {
p.drawLine( xcenter, (int)newY, box.right(), (int)newY ); p.drawLine( xcenter, (int)newY, box.right(), (int)newY );
numStr.setNum( curTime.hour() ); numStr.setNum( curTime.hour() );
if ( cellHeight > 30 ) { if ( cellHeight > 30 ) {
@ -706,7 +706,7 @@ void CalPrintPluginBase::drawTimeLine( TQPainter &p, const TQTime &fromTime,
} else { } else {
p.drawLine( box.left(), (int)newY, box.right(), (int)newY ); p.drawLine( box.left(), (int)newY, box.right(), (int)newY );
TQTime time( curTime.hour(), 0 ); TQTime time( curTime.hour(), 0 );
numStr = KGlobal::locale()->formatTime( time ); numStr = TDEGlobal::locale()->formatTime( time );
if ( box.width() < 60 ) { if ( box.width() < 60 ) {
p.setFont( TQFont( "sans-serif", 7, TQFont::Bold ) ); // for weekprint p.setFont( TQFont( "sans-serif", 7, TQFont::Bold ) ); // for weekprint
} else { } else {
@ -906,14 +906,14 @@ void CalPrintPluginBase::drawAgendaItem( PrintCellItem *item, TQPainter &p,
if ( event->location().isEmpty() ) { if ( event->location().isEmpty() ) {
str = i18n( "starttime - endtime summary", str = i18n( "starttime - endtime summary",
"%1-%2 %3" ). "%1-%2 %3" ).
arg( KGlobal::locale()->formatTime( startTime.time() ) ). arg( TDEGlobal::locale()->formatTime( startTime.time() ) ).
arg( KGlobal::locale()->formatTime( endTime.time() ) ). arg( TDEGlobal::locale()->formatTime( endTime.time() ) ).
arg( cleanStr( event->summary() ) ); arg( cleanStr( event->summary() ) );
} else { } else {
str = i18n( "starttime - endtime summary, location", str = i18n( "starttime - endtime summary, location",
"%1-%2 %3, %4" ). "%1-%2 %3, %4" ).
arg( KGlobal::locale()->formatTime( startTime.time() ) ). arg( TDEGlobal::locale()->formatTime( startTime.time() ) ).
arg( KGlobal::locale()->formatTime( endTime.time() ) ). arg( TDEGlobal::locale()->formatTime( endTime.time() ) ).
arg( cleanStr( event->summary() ) ). arg( cleanStr( event->summary() ) ).
arg( cleanStr( event->location() ) ); arg( cleanStr( event->location() ) );
} }
@ -927,7 +927,7 @@ void CalPrintPluginBase::drawDayBox( TQPainter &p, const TQDate &qd,
bool fullDate, bool printRecurDaily, bool printRecurWeekly ) bool fullDate, bool printRecurDaily, bool printRecurWeekly )
{ {
TQString dayNumStr; TQString dayNumStr;
const KLocale*local = KGlobal::locale(); const KLocale*local = TDEGlobal::locale();
// This has to be localized // This has to be localized
if ( fullDate && mCalSys ) { if ( fullDate && mCalSys ) {
@ -1001,7 +1001,7 @@ void CalPrintPluginBase::drawDayBox( TQPainter &p, const TQDate &qd,
continue; continue;
} }
if ( todo->hasStartDate() && !todo->doesFloat() ) { if ( todo->hasStartDate() && !todo->doesFloat() ) {
timeText = KGlobal::locale()->formatTime( todo->dtStart().time() ) + " "; timeText = TDEGlobal::locale()->formatTime( todo->dtStart().time() ) + " ";
} else { } else {
timeText = ""; timeText = "";
} }
@ -1017,11 +1017,11 @@ void CalPrintPluginBase::drawDayBox( TQPainter &p, const TQDate &qd,
if ( !todo->doesFloat() ) { if ( !todo->doesFloat() ) {
str = i18n( "%1 (Due: %2)" ). str = i18n( "%1 (Due: %2)" ).
arg( summaryStr ). arg( summaryStr ).
arg( KGlobal::locale()->formatDateTime( todo->dtDue() ) ); arg( TDEGlobal::locale()->formatDateTime( todo->dtDue() ) );
} else { } else {
str = i18n( "%1 (Due: %2)" ). str = i18n( "%1 (Due: %2)" ).
arg( summaryStr ). arg( summaryStr ).
arg( KGlobal::locale()->formatDate( todo->dtDue().date(), true ) ); arg( TDEGlobal::locale()->formatDate( todo->dtDue().date(), true ) );
} }
} else { } else {
str = summaryStr; str = summaryStr;
@ -1423,7 +1423,7 @@ void CalPrintPluginBase::drawTodo( int &count, Todo *todo, TQPainter &p,
TodoParentStart *r ) TodoParentStart *r )
{ {
TQString outStr; TQString outStr;
const KLocale *local = KGlobal::locale(); const KLocale *local = TDEGlobal::locale();
TQRect rect; TQRect rect;
TodoParentStart startpt; TodoParentStart startpt;
@ -1640,7 +1640,7 @@ void CalPrintPluginBase::drawTodo( int &count, Todo *todo, TQPainter &p,
int CalPrintPluginBase::weekdayColumn( int weekday ) int CalPrintPluginBase::weekdayColumn( int weekday )
{ {
return ( weekday + 7 - KGlobal::locale()->weekStartDay() ) % 7; return ( weekday + 7 - TDEGlobal::locale()->weekStartDay() ) % 7;
} }
void CalPrintPluginBase::drawJournalField( TQPainter &p, TQString field, TQString text, void CalPrintPluginBase::drawJournalField( TQPainter &p, TQString field, TQString text,
@ -1670,7 +1670,7 @@ void CalPrintPluginBase::drawJournal( Journal * journal, TQPainter &p, int x, in
TQFont oldFont( p.font() ); TQFont oldFont( p.font() );
p.setFont( TQFont( "sans-serif", 15 ) ); p.setFont( TQFont( "sans-serif", 15 ) );
TQString headerText; TQString headerText;
TQString dateText( KGlobal::locale()-> TQString dateText( TDEGlobal::locale()->
formatDate( journal->dtStart().date(), false ) ); formatDate( journal->dtStart().date(), false ) );
if ( journal->summary().isEmpty() ) { if ( journal->summary().isEmpty() ) {

@ -112,7 +112,7 @@ void TimeLabels::drawContents(TQPainter *p,int cx, int cy, int cw, int ch)
TQFont nFont = font(); TQFont nFont = font();
p->setFont( font() ); p->setFont( font() );
if (!KGlobal::locale()->use12Clock()) { if (!TDEGlobal::locale()->use12Clock()) {
suffix = "00"; suffix = "00";
} else } else
if (cell > 11) suffix = "pm"; if (cell > 11) suffix = "pm";
@ -144,7 +144,7 @@ void TimeLabels::drawContents(TQPainter *p,int cx, int cy, int cw, int ch)
p->drawLine( cx, int(y), cw+2, int(y) ); p->drawLine( cx, int(y), cw+2, int(y) );
hour.setNum(cell); hour.setNum(cell);
// handle 24h and am/pm time formats // handle 24h and am/pm time formats
if (KGlobal::locale()->use12Clock()) { if (TDEGlobal::locale()->use12Clock()) {
if (cell == 12) suffix = "pm"; if (cell == 12) suffix = "pm";
if (cell == 0) hour.setNum(12); if (cell == 0) hour.setNum(12);
if (cell > 12) hour.setNum(cell - 12); if (cell > 12) hour.setNum(cell - 12);
@ -185,10 +185,10 @@ void TimeLabels::updateConfig()
setFont(KOPrefs::instance()->mTimeBarFont); setFont(KOPrefs::instance()->mTimeBarFont);
TQString test = "20"; TQString test = "20";
if ( KGlobal::locale()->use12Clock() ) if ( TDEGlobal::locale()->use12Clock() )
test = "12"; test = "12";
mMiniWidth = fontMetrics().width( test ); mMiniWidth = fontMetrics().width( test );
if ( KGlobal::locale()->use12Clock() ) if ( TDEGlobal::locale()->use12Clock() )
test = "pm"; test = "pm";
else { else {
test = "00"; test = "00";

@ -59,5 +59,5 @@ int main(int argc,char **argv)
<< qtime.toString( TQt::ISODate ) << endl; << qtime.toString( TQt::ISODate ) << endl;
kdDebug(5850) << "KLocale::formatTime(): " kdDebug(5850) << "KLocale::formatTime(): "
<< KGlobal::locale()->formatTime( qtime ) << endl; << TDEGlobal::locale()->formatTime( qtime ) << endl;
} }

@ -117,9 +117,9 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri )
// KaddressBook is not already running. // KaddressBook is not already running.
// Pass it the UID of the contact via the command line while starting it - its neater. // Pass it the UID of the contact via the command line while starting it - its neater.
// We start it without its main interface // We start it without its main interface
TQString iconPath = KGlobal::iconLoader()->iconPath( "go", KIcon::Small ); TQString iconPath = TDEGlobal::iconLoader()->iconPath( "go", KIcon::Small );
TQString tmpStr = "kaddressbook --editor-only --uid "; TQString tmpStr = "kaddressbook --editor-only --uid ";
tmpStr += KProcess::quote( uid ); tmpStr += TDEProcess::quote( uid );
KRun::runCommand( tmpStr, "KAddressBook", iconPath ); KRun::runCommand( tmpStr, "KAddressBook", iconPath );
return true; return true;
} }

@ -161,10 +161,10 @@ void BoxContainerItem::readConfig( KConfig* config, const int index )
void BoxContainerItem::runCommand( const TQString& cmd ) void BoxContainerItem::runCommand( const TQString& cmd )
{ {
KProcess *process = new KProcess; TDEProcess *process = new TDEProcess;
process->setUseShell( true ); process->setUseShell( true );
*process << cmd; *process << cmd;
connect( process, TQT_SIGNAL( processExited (KProcess *) ), this, TQT_SLOT( processExited( KProcess * ) ) ); connect( process, TQT_SIGNAL( processExited (TDEProcess *) ), this, TQT_SLOT( processExited( TDEProcess * ) ) );
process->start(); process->start();
} }
@ -281,7 +281,7 @@ void BoxContainerItem::drawLabel( TQLabel *label, const int count, const bool ne
} }
if( hasIcon ) if( hasIcon )
pixmap = KGlobal::iconLoader()->loadIcon( *_icons[ index ], KIcon::Desktop, KIcon::SizeSmallMedium ); pixmap = TDEGlobal::iconLoader()->loadIcon( *_icons[ index ], KIcon::Desktop, KIcon::SizeSmallMedium );
if( hasIcon && hasFg ) if( hasIcon && hasFg )
{ {
@ -435,7 +435,7 @@ void BoxContainerItem::stopTimer()
doStopTimer(); doStopTimer();
} }
void BoxContainerItem::processExited( KProcess* proc ) void BoxContainerItem::processExited( TDEProcess* proc )
{ {
delete proc; delete proc;
} }

@ -27,7 +27,7 @@ class KornMailSubject;
class KActionCollection; class KActionCollection;
class KConfig; class KConfig;
class KPopupMenu; class KPopupMenu;
class KProcess; class TDEProcess;
class TQColor; class TQColor;
class TQLabel; class TQLabel;
@ -213,10 +213,10 @@ signals:
private slots: private slots:
/** /**
* This slot is called when a KProcess-instance needs to be deleted:) * This slot is called when a TDEProcess-instance needs to be deleted:)
* @param proc The instance of the instance which must be deleted. * @param proc The instance of the instance which must be deleted.
*/ */
void processExited( KProcess* proc ); void processExited( TDEProcess* proc );
protected: protected:
//This settings are stored here because every implementation needs them. //This settings are stored here because every implementation needs them.

@ -461,17 +461,17 @@ bool KKioDrop::startProcess()
// debug( "proc start: %s", _command.data() ); // debug( "proc start: %s", _command.data() );
_process = new KProcess; _process = new TDEProcess;
_process->setUseShell( true ); _process->setUseShell( true );
// only reading stdin yet // only reading stdin yet
connect( _process,TQT_SIGNAL(receivedStdout( KProcess *, char *, int)), connect( _process,TQT_SIGNAL(receivedStdout( TDEProcess *, char *, int)),
this, TQT_SLOT(receivedStdout( KProcess *,char *,int)) ); this, TQT_SLOT(receivedStdout( TDEProcess *,char *,int)) );
connect( _process, TQT_SIGNAL(processExited(KProcess*)), connect( _process, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(processExit(KProcess*)) ); this, TQT_SLOT(processExit(TDEProcess*)) );
*_process << _kurl->path(); *_process << _kurl->path();
_process->start( KProcess::NotifyOnExit, KProcess::Stdout ); _process->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout );
return true; return true;
} }
@ -491,7 +491,7 @@ bool KKioDrop::stopProcess()
return true; return true;
} }
void KKioDrop::receivedStdout( KProcess *proc, char * buffer, int /*len*/ ) void KKioDrop::receivedStdout( TDEProcess *proc, char * buffer, int /*len*/ )
{ {
assert(static_cast<void *>(proc) == static_cast<void *>(_process)); assert(static_cast<void *>(proc) == static_cast<void *>(_process));
@ -540,7 +540,7 @@ void KKioDrop::receivedStdout( KProcess *proc, char * buffer, int /*len*/ )
} }
void KKioDrop::processExit(KProcess* proc) void KKioDrop::processExit(TDEProcess* proc)
{ {
assert(static_cast<void *>(proc) == static_cast<void *>(_process)); assert(static_cast<void *>(proc) == static_cast<void *>(_process));

@ -28,7 +28,7 @@
class TQWidget; class TQWidget;
class KDropDialog; class KDropDialog;
class KornMailSubject; class KornMailSubject;
class KProcess; class TDEProcess;
class KIO_Count; class KIO_Count;
class KIO_Protocol; class KIO_Protocol;
class KIO_Subjects; class KIO_Subjects;
@ -70,7 +70,7 @@ private:
int _readSubjectsTotalSteps; int _readSubjectsTotalSteps;
int _deleteMailsTotalSteps; int _deleteMailsTotalSteps;
//For process //For process
KProcess *_process; TDEProcess *_process;
//List of mailurls fetched by the last time emails were counted //List of mailurls fetched by the last time emails were counted
struct FileInfo { struct FileInfo {
@ -202,7 +202,7 @@ public slots:
private slots: private slots:
//For Process too //For Process too
void processExit(KProcess*); void processExit(TDEProcess*);
void receivedStdout( KProcess *, char *, int); void receivedStdout( TDEProcess *, char *, int);
}; };
#endif // KEG_KIODROP_H #endif // KEG_KIODROP_H

@ -178,7 +178,7 @@ const TQTextCodec* KornMailSubject::codecForName(const TQCString& _str)
{ {
if (_str.isEmpty()) return 0; if (_str.isEmpty()) return 0;
TQCString codec = _str; TQCString codec = _str;
return KGlobal::charsets()->codecForName(codec); return TDEGlobal::charsets()->codecForName(codec);
} }
void KornMailSubject::decodeHeaders() void KornMailSubject::decodeHeaders()

@ -15,13 +15,13 @@
KornSubjectsDlg::SubjectListViewItem::SubjectListViewItem( TQListView *parent, KornMailSubject * item) KornSubjectsDlg::SubjectListViewItem::SubjectListViewItem( TQListView *parent, KornMailSubject * item)
// set the column strings except column 2 (date) // set the column strings except column 2 (date)
: KListViewItem(parent, item->getSender(), item->getSubject(), "", KGlobal::locale()->formatNumber(item->getSize(), 0)) : KListViewItem(parent, item->getSender(), item->getSubject(), "", TDEGlobal::locale()->formatNumber(item->getSize(), 0))
, _mailSubject( new KornMailSubject( *item ) ) , _mailSubject( new KornMailSubject( *item ) )
{ {
// convert the date according to the user settings and show it in column 2 // convert the date according to the user settings and show it in column 2
TQDateTime date; TQDateTime date;
date.setTime_t(_mailSubject->getDate()); date.setTime_t(_mailSubject->getDate());
setText(2, KGlobal::locale()->formatDateTime(date, true, true)); setText(2, TDEGlobal::locale()->formatDateTime(date, true, true));
} }
KornSubjectsDlg::SubjectListViewItem::~SubjectListViewItem() KornSubjectsDlg::SubjectListViewItem::~SubjectListViewItem()

@ -60,8 +60,8 @@ extern "C"
{ {
void *init_kcal_kabc() void *init_kcal_kabc()
{ {
KGlobal::locale()->insertCatalogue( "kres_birthday" ); TDEGlobal::locale()->insertCatalogue( "kres_birthday" );
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
return new KRES::PluginFactory<ResourceKABC,ResourceKABCConfig>(); return new KRES::PluginFactory<ResourceKABC,ResourceKABCConfig>();
} }
} }

@ -34,8 +34,8 @@ extern "C"
{ {
void *init_kcal_blogging() void *init_kcal_blogging()
{ {
KGlobal::locale()->insertCatalogue( "tdepimresources" ); TDEGlobal::locale()->insertCatalogue( "tdepimresources" );
KGlobal::locale()->insertCatalogue( "kres_blogging" ); TDEGlobal::locale()->insertCatalogue( "kres_blogging" );
return new BloggingFactory; return new BloggingFactory;
} }
} }

@ -39,7 +39,7 @@
#define EXPORT_KRESOURCES_PLUGIN( resourceclass, resourceconfigclass, catalog ) \ #define EXPORT_KRESOURCES_PLUGIN( resourceclass, resourceconfigclass, catalog ) \
typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \ typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \
class Factory : public FactoryBase { \ class Factory : public FactoryBase { \
public: Factory() { KGlobal::locale()->insertCatalogue(catalog); } \ public: Factory() { TDEGlobal::locale()->insertCatalogue(catalog); } \
}; \ }; \
K_EXPORT_PLUGIN( Factory ) K_EXPORT_PLUGIN( Factory )
@ -48,8 +48,8 @@
#define EXPORT_KRESOURCES_PLUGIN2( resourceclass, resourceconfigclass, catalog1, catalog2 ) \ #define EXPORT_KRESOURCES_PLUGIN2( resourceclass, resourceconfigclass, catalog1, catalog2 ) \
typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \ typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \
class Factory : public FactoryBase { \ class Factory : public FactoryBase { \
public: Factory() { KGlobal::locale()->insertCatalogue(catalog1); \ public: Factory() { TDEGlobal::locale()->insertCatalogue(catalog1); \
KGlobal::locale()->insertCatalogue(catalog2); } \ TDEGlobal::locale()->insertCatalogue(catalog2); } \
}; \ }; \
K_EXPORT_PLUGIN( Factory ) K_EXPORT_PLUGIN( Factory )

@ -40,8 +40,8 @@ extern "C"
{ {
void *init_kcal_caldav() void *init_kcal_caldav()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_caldav" ); TDEGlobal::locale()->insertCatalogue( "kres_caldav" );
return new CalDavFactory; return new CalDavFactory;
} }
} }

@ -39,7 +39,7 @@
#define EXPORT_KRESOURCES_PLUGIN( resourceclass, resourceconfigclass, catalog ) \ #define EXPORT_KRESOURCES_PLUGIN( resourceclass, resourceconfigclass, catalog ) \
typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \ typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \
class Factory : public FactoryBase { \ class Factory : public FactoryBase { \
public: Factory() { KGlobal::locale()->insertCatalogue(catalog); } \ public: Factory() { TDEGlobal::locale()->insertCatalogue(catalog); } \
}; \ }; \
K_EXPORT_PLUGIN( Factory ) K_EXPORT_PLUGIN( Factory )
@ -48,8 +48,8 @@
#define EXPORT_KRESOURCES_PLUGIN2( resourceclass, resourceconfigclass, catalog1, catalog2 ) \ #define EXPORT_KRESOURCES_PLUGIN2( resourceclass, resourceconfigclass, catalog1, catalog2 ) \
typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \ typedef KRES::PluginFactory< resourceclass, resourceconfigclass > FactoryBase; \
class Factory : public FactoryBase { \ class Factory : public FactoryBase { \
public: Factory() { KGlobal::locale()->insertCatalogue(catalog1); \ public: Factory() { TDEGlobal::locale()->insertCatalogue(catalog1); \
KGlobal::locale()->insertCatalogue(catalog2); } \ TDEGlobal::locale()->insertCatalogue(catalog2); } \
}; \ }; \
K_EXPORT_PLUGIN( Factory ) K_EXPORT_PLUGIN( Factory )

@ -38,8 +38,8 @@ extern "C"
{ {
void *init_kabc_carddav() void *init_kabc_carddav()
{ {
KGlobal::locale()->insertCatalogue( "tdepimresources" ); TDEGlobal::locale()->insertCatalogue( "tdepimresources" );
KGlobal::locale()->insertCatalogue( "kres_caldav" ); TDEGlobal::locale()->insertCatalogue( "kres_caldav" );
return new CardDavFactory; return new CardDavFactory;
} }
} }

@ -34,7 +34,7 @@ extern "C"
{ {
void *init_kabc_xmlrpc() void *init_kabc_xmlrpc()
{ {
KGlobal::locale()->insertCatalogue( "kres_xmlrpc" ); TDEGlobal::locale()->insertCatalogue( "kres_xmlrpc" );
return new XMLRPCFactory; return new XMLRPCFactory;
} }
} }

@ -34,7 +34,7 @@ extern "C"
{ {
void *init_kcal_xmlrpc() void *init_kcal_xmlrpc()
{ {
KGlobal::locale()->insertCatalogue( "kres_xmlrpc" ); TDEGlobal::locale()->insertCatalogue( "kres_xmlrpc" );
return new XMLRPCFactory; return new XMLRPCFactory;
} }
} }

@ -34,7 +34,7 @@ extern "C"
{ {
void *init_knotes_xmlrpc() void *init_knotes_xmlrpc()
{ {
KGlobal::locale()->insertCatalogue( "kres_xmlrpc" ); TDEGlobal::locale()->insertCatalogue( "kres_xmlrpc" );
return new XMLRPCFactory; return new XMLRPCFactory;
} }
} }

@ -60,7 +60,7 @@ extern "C"
{ {
void* init_resourcecalendarexchange() void* init_resourcecalendarexchange()
{ {
KGlobal::locale()->insertCatalogue( "kres_exchange" ); TDEGlobal::locale()->insertCatalogue( "kres_exchange" );
return new ExchangeFactory; return new ExchangeFactory;
} }
} }

@ -34,7 +34,7 @@ extern "C"
{ {
void* init_kcal_resourcefeatureplan() void* init_kcal_resourcefeatureplan()
{ {
KGlobal::locale()->insertCatalogue( "kres_featureplan" ); TDEGlobal::locale()->insertCatalogue( "kres_featureplan" );
return new FeatureplanFactory; return new FeatureplanFactory;
} }
} }

@ -35,8 +35,8 @@ extern "C"
{ {
void *init_kabc_groupdav() void *init_kabc_groupdav()
{ {
KGlobal::locale()->insertCatalogue( "tdepimresources" ); TDEGlobal::locale()->insertCatalogue( "tdepimresources" );
KGlobal::locale()->insertCatalogue( "kres_groupdav" ); TDEGlobal::locale()->insertCatalogue( "kres_groupdav" );
return new GroupDavFactory; return new GroupDavFactory;
} }
} }

@ -36,8 +36,8 @@ extern "C"
{ {
void *init_kcal_groupdav() void *init_kcal_groupdav()
{ {
KGlobal::locale()->insertCatalogue( "tdepimresources" ); TDEGlobal::locale()->insertCatalogue( "tdepimresources" );
KGlobal::locale()->insertCatalogue( "kres_groupdav" ); TDEGlobal::locale()->insertCatalogue( "kres_groupdav" );
return new GroupDavFactory; return new GroupDavFactory;
} }
} }

@ -32,8 +32,8 @@ extern "C"
{ {
void *init_kabc_groupware() void *init_kabc_groupware()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_groupware" ); TDEGlobal::locale()->insertCatalogue( "kres_groupware" );
return new ResourceGroupware; return new ResourceGroupware;
} }
} }

@ -33,8 +33,8 @@ extern "C"
{ {
void *init_kcal_groupware() void *init_kcal_groupware()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_groupware" ); TDEGlobal::locale()->insertCatalogue( "kres_groupware" );
return new ResourceGroupware; return new ResourceGroupware;
} }
} }

@ -33,8 +33,8 @@ extern "C"
{ {
void *init_kabc_groupwise() void *init_kabc_groupwise()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_groupwise" ); TDEGlobal::locale()->insertCatalogue( "kres_groupwise" );
return new GroupwiseFactory; return new GroupwiseFactory;
} }
} }

@ -33,8 +33,8 @@ extern "C"
{ {
void *init_kcal_groupwise() void *init_kcal_groupwise()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_groupwise" ); TDEGlobal::locale()->insertCatalogue( "kres_groupwise" );
return new GroupwiseFactory; return new GroupwiseFactory;
} }
} }

@ -52,8 +52,8 @@ static unsigned int uniquifier = 0;
ResourceKolabBase::ResourceKolabBase( const TQCString& objId ) ResourceKolabBase::ResourceKolabBase( const TQCString& objId )
: mSilent( false ) : mSilent( false )
{ {
KGlobal::locale()->insertCatalogue( "kres_kolab" ); TDEGlobal::locale()->insertCatalogue( "kres_kolab" );
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
TQString uniqueObjId = TQString( objId ) + TQString::number( uniquifier++ ); TQString uniqueObjId = TQString( objId ) + TQString::number( uniquifier++ );
mConnection = new KMailConnection( this, uniqueObjId.utf8() ); mConnection = new KMailConnection( this, uniqueObjId.utf8() );
} }

@ -34,8 +34,8 @@ extern "C"
{ {
void *init_kcal_remote() void *init_kcal_remote()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_remote" ); TDEGlobal::locale()->insertCatalogue( "kres_remote" );
return new RemoteFactory; return new RemoteFactory;
} }
} }

@ -42,7 +42,7 @@ int main( int argc, char **argv )
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "scalixadmin" ); TDEGlobal::locale()->insertCatalogue( "scalixadmin" );
MainWindow *window = new MainWindow; MainWindow *window = new MainWindow;
window->show(); window->show();

@ -37,19 +37,19 @@ MainWindow::MainWindow()
{ {
KJanusWidget *wdg = new KJanusWidget( this, "", KJanusWidget::IconList ); KJanusWidget *wdg = new KJanusWidget( this, "", KJanusWidget::IconList );
TQPixmap icon = KGlobal::iconLoader()->loadIcon( "folder_yellow", KIcon::Desktop ); TQPixmap icon = TDEGlobal::iconLoader()->loadIcon( "folder_yellow", KIcon::Desktop );
TQVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon ); TQVBox *page = wdg->addVBoxPage( i18n( "Other Accounts" ), i18n( "Register other accounts" ), icon );
new OtherUserPage( page ); new OtherUserPage( page );
icon = KGlobal::iconLoader()->loadIcon( "edu_languages", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "edu_languages", KIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Delegates" ), i18n( "Setup delegates for my account" ), icon ); page = wdg->addVBoxPage( i18n( "Delegates" ), i18n( "Setup delegates for my account" ), icon );
new DelegatePage( page ); new DelegatePage( page );
icon = KGlobal::iconLoader()->loadIcon( "kontact_summary_green", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "kontact_summary_green", KIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Out of Office..." ), i18n( "Setup Out of Office Message" ), icon ); page = wdg->addVBoxPage( i18n( "Out of Office..." ), i18n( "Setup Out of Office Message" ), icon );
new OutOfOfficePage( page ); new OutOfOfficePage( page );
icon = KGlobal::iconLoader()->loadIcon( "password", KIcon::Desktop ); icon = TDEGlobal::iconLoader()->loadIcon( "password", KIcon::Desktop );
page = wdg->addVBoxPage( i18n( "Password" ), i18n( "Change the password" ), icon ); page = wdg->addVBoxPage( i18n( "Password" ), i18n( "Change the password" ), icon );
new PasswordPage( page ); new PasswordPage( page );

@ -51,8 +51,8 @@ static unsigned int uniquifier = 0;
ResourceScalixBase::ResourceScalixBase( const TQCString& objId ) ResourceScalixBase::ResourceScalixBase( const TQCString& objId )
: mSilent( false ) : mSilent( false )
{ {
KGlobal::locale()->insertCatalogue( "kres_scalix" ); TDEGlobal::locale()->insertCatalogue( "kres_scalix" );
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
TQString uniqueObjId = TQString( objId ) + TQString::number( uniquifier++ ); TQString uniqueObjId = TQString( objId ) + TQString::number( uniquifier++ );
mConnection = new KMailConnection( this, uniqueObjId.utf8() ); mConnection = new KMailConnection( this, uniqueObjId.utf8() );
} }

@ -32,8 +32,8 @@ extern "C"
{ {
void *init_kabc_slox() void *init_kabc_slox()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kabc_slox" ); TDEGlobal::locale()->insertCatalogue( "kabc_slox" );
return new SloxFactory; return new SloxFactory;
} }
} }

@ -33,8 +33,8 @@ extern "C"
{ {
void *init_kcal_slox() void *init_kcal_slox()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kabc_slox" ); TDEGlobal::locale()->insertCatalogue( "kabc_slox" );
return new SLOXFactory; return new SLOXFactory;
} }
} }

@ -82,7 +82,7 @@ void SloxFolderDialog::createFolderViewItem( SloxFolder *folder )
} }
folder->item->setText( 0, folder->name() ); folder->item->setText( 0, folder->name() );
folder->item->setText( 1, folder->id() ); folder->item->setText( 1, folder->id() );
KGlobal::instance()->iconLoader()->addAppDir( "kmail" ); TDEGlobal::instance()->iconLoader()->addAppDir( "kmail" );
switch ( folder->type() ) { switch ( folder->type() ) {
case Calendar: case Calendar:
folder->item->setPixmap( 0, SmallIcon( "kmgroupware_folder_calendar" ) ); folder->item->setPixmap( 0, SmallIcon( "kmgroupware_folder_calendar" ) );

@ -33,8 +33,8 @@ extern "C"
{ {
void *init_kcal_tvanytime() void *init_kcal_tvanytime()
{ {
KGlobal::locale()->insertCatalogue( "libkcal" ); TDEGlobal::locale()->insertCatalogue( "libkcal" );
KGlobal::locale()->insertCatalogue( "kres_tvanytime" ); TDEGlobal::locale()->insertCatalogue( "kres_tvanytime" );
return new TVAnytimeFactory; return new TVAnytimeFactory;
} }
} }

@ -65,12 +65,12 @@ KTNEFMain::KTNEFMain(TQWidget *parent, const char *name)
setupTNEF(); setupTNEF();
KGlobal::config()->setGroup("Settings"); TDEGlobal::config()->setGroup("Settings");
defaultdir_ = KGlobal::config()->readPathEntry("defaultdir", "/tmp/"); defaultdir_ = TDEGlobal::config()->readPathEntry("defaultdir", "/tmp/");
lastdir_ = defaultdir_; lastdir_ = defaultdir_;
// create personale temo extract dir // create personale temo extract dir
KStandardDirs::makeDir(KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp"); KStandardDirs::makeDir(TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp");
resize(430,350); resize(430,350);
setAutoSaveSettings( "MainWindow" ); setAutoSaveSettings( "MainWindow" );
@ -189,7 +189,7 @@ void KTNEFMain::viewFile()
TQString KTNEFMain::extractTemp(KTNEFAttach *att) TQString KTNEFMain::extractTemp(KTNEFAttach *att)
{ {
TQString dir = KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"; TQString dir = TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/";
parser_->extractFileTo(att->name(), dir); parser_->extractFileTo(att->name(), dir);
dir.append(att->name()); dir.append(att->name());
return dir; return dir;
@ -251,8 +251,8 @@ void KTNEFMain::optionDefaultDir()
if (!dirname.isEmpty()) if (!dirname.isEmpty())
{ {
defaultdir_ = dirname; defaultdir_ = dirname;
KGlobal::config()->setGroup("Settings"); TDEGlobal::config()->setGroup("Settings");
KGlobal::config()->writePathEntry("defaultdir",defaultdir_); TDEGlobal::config()->writePathEntry("defaultdir",defaultdir_);
} }
} }
@ -285,7 +285,7 @@ void KTNEFMain::enableSingleAction(bool on)
void KTNEFMain::cleanup() void KTNEFMain::cleanup()
{ {
TQDir d(KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/"); TQDir d(TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/");
const TQFileInfoList *list = d.entryInfoList(TQDir::Files|TQDir::Hidden,TQDir::Unsorted); const TQFileInfoList *list = d.entryInfoList(TQDir::Files|TQDir::Hidden,TQDir::Unsorted);
TQFileInfoListIterator it(*list); TQFileInfoListIterator it(*list);
for (;it.current();++it) for (;it.current();++it)
@ -358,7 +358,7 @@ void KTNEFMain::viewDragRequested( const TQValueList<KTNEFAttach*>& list )
void KTNEFMain::slotEditToolbars() void KTNEFMain::slotEditToolbars()
{ {
saveMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); saveMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() )); connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ));
dlg.exec(); dlg.exec();
@ -367,7 +367,7 @@ void KTNEFMain::slotEditToolbars()
void KTNEFMain::slotNewToolbarConfig() void KTNEFMain::slotNewToolbarConfig()
{ {
createGUI(); createGUI();
applyMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); applyMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") );
} }
void KTNEFMain::slotShowMessageProperties() void KTNEFMain::slotShowMessageProperties()
@ -380,7 +380,7 @@ void KTNEFMain::slotShowMessageText()
{ {
TQString rtf = parser_->message()->rtfString(); TQString rtf = parser_->message()->rtfString();
tqDebug( "%s", rtf.latin1() ); tqDebug( "%s", rtf.latin1() );
KTempFile tmpFile( KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf"); KTempFile tmpFile( TDEGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf");
*( tmpFile.textStream() ) << rtf; *( tmpFile.textStream() ) << rtf;
tmpFile.close(); tmpFile.close();

@ -35,7 +35,7 @@ NetworkStatus *NetworkStatus::mSelf = 0;
NetworkStatus::NetworkStatus() NetworkStatus::NetworkStatus()
: TQObject( 0, "NetworkStatus" ), DCOPObject( "NetworkStatus" ) : TQObject( 0, "NetworkStatus" ), DCOPObject( "NetworkStatus" )
{ {
KConfigGroup group( KGlobal::config(), "NetworkStatus" ); KConfigGroup group( TDEGlobal::config(), "NetworkStatus" );
if ( group.readBoolEntry( "Online", true ) == true ) if ( group.readBoolEntry( "Online", true ) == true )
mStatus = Online; mStatus = Online;
else else
@ -46,7 +46,7 @@ NetworkStatus::NetworkStatus()
NetworkStatus::~NetworkStatus() NetworkStatus::~NetworkStatus()
{ {
KConfigGroup group( KGlobal::config(), "NetworkStatus" ); KConfigGroup group( TDEGlobal::config(), "NetworkStatus" );
group.writeEntry( "Online", mStatus == Online ); group.writeEntry( "Online", mStatus == Online );
} }

@ -100,17 +100,17 @@ TQDate Event::dateEnd() const
TQString Event::dtEndTimeStr() const TQString Event::dtEndTimeStr() const
{ {
return KGlobal::locale()->formatTime(dtEnd().time()); return TDEGlobal::locale()->formatTime(dtEnd().time());
} }
TQString Event::dtEndDateStr(bool shortfmt) const TQString Event::dtEndDateStr(bool shortfmt) const
{ {
return KGlobal::locale()->formatDate(dtEnd().date(),shortfmt); return TDEGlobal::locale()->formatDate(dtEnd().date(),shortfmt);
} }
TQString Event::dtEndStr() const TQString Event::dtEndStr() const
{ {
return KGlobal::locale()->formatDateTime(dtEnd()); return TDEGlobal::locale()->formatDateTime(dtEnd());
} }
void Event::setHasEndDate(bool b) void Event::setHasEndDate(bool b)

@ -147,9 +147,9 @@ void HtmlExport::createMonthView(TQTextStream *ts)
while ( start < toDate() ) { while ( start < toDate() ) {
// Write header // Write header
*ts << "<h2>" << (i18n("month_year","%1 %2").arg(KGlobal::locale()->calendar()->monthName(start)) *ts << "<h2>" << (i18n("month_year","%1 %2").arg(TDEGlobal::locale()->calendar()->monthName(start))
.arg(start.year())) << "</h2>\n"; .arg(start.year())) << "</h2>\n";
if ( KGlobal::locale()->weekStartDay() == 1 ) { if ( TDEGlobal::locale()->weekStartDay() == 1 ) {
start = start.addDays(1 - start.dayOfWeek()); start = start.addDays(1 - start.dayOfWeek());
} else { } else {
if (start.dayOfWeek() != 7) { if (start.dayOfWeek() != 7) {
@ -161,7 +161,7 @@ void HtmlExport::createMonthView(TQTextStream *ts)
// Write table header // Write table header
*ts << " <tr>"; *ts << " <tr>";
for(int i=0; i<7; ++i) { for(int i=0; i<7; ++i) {
*ts << "<th>" << KGlobal::locale()->calendar()->weekDayName( start.addDays(i) ) << "</th>"; *ts << "<th>" << TDEGlobal::locale()->calendar()->weekDayName( start.addDays(i) ) << "</th>";
} }
*ts << "</tr>\n"; *ts << "</tr>\n";
@ -256,7 +256,7 @@ void HtmlExport::createEventList (TQTextStream *ts)
if ( first ) { if ( first ) {
*ts << " <tr><td colspan=\"" << TQString::number(columns) *ts << " <tr><td colspan=\"" << TQString::number(columns)
<< "\" class=\"datehead\"><i>" << "\" class=\"datehead\"><i>"
<< KGlobal::locale()->formatDate(dt) << TDEGlobal::locale()->formatDate(dt)
<< "</i></td></tr>\n"; << "</i></td></tr>\n";
first = false; first = false;
} }

@ -205,17 +205,17 @@ TQDateTime IncidenceBase::dtStart() const
TQString IncidenceBase::dtStartTimeStr() const TQString IncidenceBase::dtStartTimeStr() const
{ {
return KGlobal::locale()->formatTime(dtStart().time()); return TDEGlobal::locale()->formatTime(dtStart().time());
} }
TQString IncidenceBase::dtStartDateStr(bool shortfmt) const TQString IncidenceBase::dtStartDateStr(bool shortfmt) const
{ {
return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); return TDEGlobal::locale()->formatDate(dtStart().date(),shortfmt);
} }
TQString IncidenceBase::dtStartStr() const TQString IncidenceBase::dtStartStr() const
{ {
return KGlobal::locale()->formatDateTime(dtStart()); return TDEGlobal::locale()->formatDateTime(dtStart());
} }

@ -221,7 +221,7 @@ static TQString displayViewLinkPerson( const TQString& email, TQString name, TQS
mailto.setProtocol( "mailto" ); mailto.setProtocol( "mailto" );
mailto.setPath( email ); mailto.setPath( email );
const TQString iconPath = const TQString iconPath =
KGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
tmpString += "&nbsp;" + tmpString += "&nbsp;" +
htmlAddLink( mailto.url(), htmlAddLink( mailto.url(),
"<img valign=\"top\" src=\"" + iconPath + "\">" ); "<img valign=\"top\" src=\"" + iconPath + "\">" );
@ -401,38 +401,38 @@ static TQString displayViewFormatHeader( Incidence *incidence )
if ( incidence->customProperty( "KABC", "BIRTHDAY" ) == "YES" ) { if ( incidence->customProperty( "KABC", "BIRTHDAY" ) == "YES" ) {
if ( incidence->customProperty( "KABC", "ANNIVERSARY" ) == "YES" ) { if ( incidence->customProperty( "KABC", "ANNIVERSARY" ) == "YES" ) {
iconPath = iconPath =
KGlobal::iconLoader()->iconPath( "calendaranniversary", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "calendaranniversary", KIcon::Small );
} else { } else {
iconPath = KGlobal::iconLoader()->iconPath( "calendarbirthday", KIcon::Small ); iconPath = TDEGlobal::iconLoader()->iconPath( "calendarbirthday", KIcon::Small );
} }
} else { } else {
iconPath = KGlobal::iconLoader()->iconPath( "appointment", KIcon::Small ); iconPath = TDEGlobal::iconLoader()->iconPath( "appointment", KIcon::Small );
} }
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">"; tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
} }
if ( incidence->type() == "Todo" ) { if ( incidence->type() == "Todo" ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
KGlobal::iconLoader()->iconPath( "todo", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "todo", KIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->type() == "Journal" ) { if ( incidence->type() == "Journal" ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
KGlobal::iconLoader()->iconPath( "journal", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "journal", KIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->isAlarmEnabled() ) { if ( incidence->isAlarmEnabled() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
KGlobal::iconLoader()->iconPath( "bell", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "bell", KIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->doesRecur() ) { if ( incidence->doesRecur() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
KGlobal::iconLoader()->iconPath( "recur", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "recur", KIcon::Small ) +
"\">"; "\">";
} }
if ( incidence->isReadOnly() ) { if ( incidence->isReadOnly() ) {
tmpStr += "<img valign=\"top\" src=\"" + tmpStr += "<img valign=\"top\" src=\"" +
KGlobal::iconLoader()->iconPath( "readonlyevent", KIcon::Small ) + TDEGlobal::iconLoader()->iconPath( "readonlyevent", KIcon::Small ) +
"\">"; "\">";
} }
@ -1174,7 +1174,7 @@ static TQString invitationPerson( const TQString& email, TQString name, TQString
mailto.setProtocol( "mailto" ); mailto.setProtocol( "mailto" );
mailto.setPath( person.fullName() ); mailto.setPath( person.fullName() );
const TQString iconPath = const TQString iconPath =
KGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small ); TDEGlobal::iconLoader()->iconPath( "mail_new", KIcon::Small );
tmpString += "&nbsp;" + tmpString += "&nbsp;" +
htmlAddLink( mailto.url(), "<img src=\"" + iconPath + "\">" ) htmlAddLink( mailto.url(), "<img src=\"" + iconPath + "\">" )
; ;
@ -1365,10 +1365,10 @@ static TQString invitationDetailsEvent( Event* event, bool noHtmlMode )
for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) { for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) {
if (isFirstExRow == true) { if (isFirstExRow == true) {
isFirstExRow = false; isFirstExRow = false;
html += invitationRow( i18n("Cancelled on:"), KGlobal::locale()->formatDate(* ex_iter ) ); html += invitationRow( i18n("Cancelled on:"), TDEGlobal::locale()->formatDate(* ex_iter ) );
} }
else { else {
html += invitationRow(" ", KGlobal::locale()->formatDate(* ex_iter ) ); html += invitationRow(" ", TDEGlobal::locale()->formatDate(* ex_iter ) );
} }
} }
} }
@ -1487,7 +1487,7 @@ static TQString invitationDetailsFreeBusy( FreeBusy *fb, bool /*noHtmlMode*/ )
html += invitationRow( i18n("Start date:"), html += invitationRow( i18n("Start date:"),
IncidenceFormatter::dateToString( fb->dtStart(), true ) ); IncidenceFormatter::dateToString( fb->dtStart(), true ) );
html += invitationRow( i18n("End date:"), html += invitationRow( i18n("End date:"),
KGlobal::locale()->formatDate( fb->dtEnd().date(), true ) ); TDEGlobal::locale()->formatDate( fb->dtEnd().date(), true ) );
html += "<tr><td colspan=2><hr></td></tr>\n"; html += "<tr><td colspan=2><hr></td></tr>\n";
html += "<tr><td colspan=2>Busy periods given in this free/busy object:</td></tr>\n"; html += "<tr><td colspan=2>Busy periods given in this free/busy object:</td></tr>\n";
@ -1511,19 +1511,19 @@ static TQString invitationDetailsFreeBusy( FreeBusy *fb, bool /*noHtmlMode*/ )
cont += i18n("1 second", "%n seconds", dur); cont += i18n("1 second", "%n seconds", dur);
} }
html += invitationRow( TQString(), i18n("startDate for duration", "%1 for %2") html += invitationRow( TQString(), i18n("startDate for duration", "%1 for %2")
.arg( KGlobal::locale()->formatDateTime( per.start(), false ) ) .arg( TDEGlobal::locale()->formatDateTime( per.start(), false ) )
.arg(cont) ); .arg(cont) );
} else { } else {
TQString cont; TQString cont;
if ( per.start().date() == per.end().date() ) { if ( per.start().date() == per.end().date() ) {
cont = i18n("date, fromTime - toTime ", "%1, %2 - %3") cont = i18n("date, fromTime - toTime ", "%1, %2 - %3")
.arg( KGlobal::locale()->formatDate( per.start().date() ) ) .arg( TDEGlobal::locale()->formatDate( per.start().date() ) )
.arg( KGlobal::locale()->formatTime( per.start().time() ) ) .arg( TDEGlobal::locale()->formatTime( per.start().time() ) )
.arg( KGlobal::locale()->formatTime( per.end().time() ) ); .arg( TDEGlobal::locale()->formatTime( per.end().time() ) );
} else { } else {
cont = i18n("fromDateTime - toDateTime", "%1 - %2") cont = i18n("fromDateTime - toDateTime", "%1 - %2")
.arg( KGlobal::locale()->formatDateTime( per.start(), false ) ) .arg( TDEGlobal::locale()->formatDateTime( per.start(), false ) )
.arg( KGlobal::locale()->formatDateTime( per.end(), false ) ); .arg( TDEGlobal::locale()->formatDateTime( per.end(), false ) );
} }
html += invitationRow( TQString(), cont ); html += invitationRow( TQString(), cont );
@ -2005,7 +2005,7 @@ static TQString invitationAttachments( InvitationFormatterHelper *helper, Incide
// Attachment icon // Attachment icon
KMimeType::Ptr mimeType = KMimeType::mimeType( a->mimeType() ); KMimeType::Ptr mimeType = KMimeType::mimeType( a->mimeType() );
const TQString iconStr = mimeType ? mimeType->icon( a->uri(), false ) : TQString( "application-octet-stream" ); const TQString iconStr = mimeType ? mimeType->icon( a->uri(), false ) : TQString( "application-octet-stream" );
const TQString iconPath = KGlobal::iconLoader()->iconPath( iconStr, KIcon::Small ); const TQString iconPath = TDEGlobal::iconLoader()->iconPath( iconStr, KIcon::Small );
if ( !iconPath.isEmpty() ) { if ( !iconPath.isEmpty() ) {
tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">"; tmpStr += "<img valign=\"top\" src=\"" + iconPath + "\">";
} }
@ -3320,9 +3320,9 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal )
TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb ) TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb )
{ {
TQString tmp( "<br>" + i18n("<i>Period start:</i>&nbsp;%1") ); TQString tmp( "<br>" + i18n("<i>Period start:</i>&nbsp;%1") );
TQString ret = tmp.arg( KGlobal::locale()->formatDateTime( fb->dtStart() ) ); TQString ret = tmp.arg( TDEGlobal::locale()->formatDateTime( fb->dtStart() ) );
tmp = "<br>" + i18n("<i>Period start:</i>&nbsp;%1"); tmp = "<br>" + i18n("<i>Period start:</i>&nbsp;%1");
ret += tmp.arg( KGlobal::locale()->formatDateTime( fb->dtEnd() ) ); ret += tmp.arg( TDEGlobal::locale()->formatDateTime( fb->dtEnd() ) );
return ret; return ret;
} }
@ -3637,9 +3637,9 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
// TODO_Recurrence: What to do with floating // TODO_Recurrence: What to do with floating
TQString endstr; TQString endstr;
if ( event->doesFloat() ) { if ( event->doesFloat() ) {
endstr = KGlobal::locale()->formatDate( recur->endDate() ); endstr = TDEGlobal::locale()->formatDate( recur->endDate() );
} else { } else {
endstr = KGlobal::locale()->formatDateTime( recur->endDateTime() ); endstr = TDEGlobal::locale()->formatDateTime( recur->endDateTime() );
} }
mResult += i18n("Repeat until: %1\n").arg( endstr ); mResult += i18n("Repeat until: %1\n").arg( endstr );
} else { } else {
@ -3652,7 +3652,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
mResult += i18n("This recurring meeting has been cancelled on the following days:\n"); mResult += i18n("This recurring meeting has been cancelled on the following days:\n");
DateList::ConstIterator ex_iter; DateList::ConstIterator ex_iter;
for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) { for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) {
mResult += i18n(" %1\n").arg( KGlobal::locale()->formatDate(* ex_iter ) ); mResult += i18n(" %1\n").arg( TDEGlobal::locale()->formatDate(* ex_iter ) );
} }
} }
} }
@ -3722,9 +3722,9 @@ static TQString recurEnd( Incidence *incidence )
{ {
TQString endstr; TQString endstr;
if ( incidence->doesFloat() ) { if ( incidence->doesFloat() ) {
endstr = KGlobal::locale()->formatDate( incidence->recurrence()->endDate() ); endstr = TDEGlobal::locale()->formatDate( incidence->recurrence()->endDate() );
} else { } else {
endstr = KGlobal::locale()->formatDateTime( incidence->recurrence()->endDateTime() ); endstr = TDEGlobal::locale()->formatDateTime( incidence->recurrence()->endDateTime() );
} }
return endstr; return endstr;
} }
@ -3801,10 +3801,10 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence )
dayList.append( i18n( "29th" ) ); dayList.append( i18n( "29th" ) );
dayList.append( i18n( "30th" ) ); dayList.append( i18n( "30th" ) );
dayList.append( i18n( "31st" ) ); dayList.append( i18n( "31st" ) );
int weekStart = KGlobal::locale()->weekStartDay(); int weekStart = TDEGlobal::locale()->weekStartDay();
TQString dayNames; TQString dayNames;
TQString recurStr, txt; TQString recurStr, txt;
const KCalendarSystem *calSys = KGlobal::locale()->calendar(); const KCalendarSystem *calSys = TDEGlobal::locale()->calendar();
Recurrence *recur = incidence->recurrence(); Recurrence *recur = incidence->recurrence();
switch ( recur->recurrenceType() ) { switch ( recur->recurrenceType() ) {
case Recurrence::rNone: case Recurrence::rNone:
@ -4017,13 +4017,13 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence )
TQString IncidenceFormatter::timeToString( const TQDateTime &date, bool shortfmt ) TQString IncidenceFormatter::timeToString( const TQDateTime &date, bool shortfmt )
{ {
return KGlobal::locale()->formatTime( date.time(), !shortfmt ); return TDEGlobal::locale()->formatTime( date.time(), !shortfmt );
} }
TQString IncidenceFormatter::dateToString( const TQDateTime &date, bool shortfmt ) TQString IncidenceFormatter::dateToString( const TQDateTime &date, bool shortfmt )
{ {
return return
KGlobal::locale()->formatDate( date.date(), shortfmt ); TDEGlobal::locale()->formatDate( date.date(), shortfmt );
} }
TQString IncidenceFormatter::dateTimeToString( const TQDateTime &date, TQString IncidenceFormatter::dateTimeToString( const TQDateTime &date,
@ -4033,7 +4033,7 @@ TQString IncidenceFormatter::dateTimeToString( const TQDateTime &date,
return dateToString( date, shortfmt ); return dateToString( date, shortfmt );
} }
return KGlobal::locale()->formatDateTime( date, shortfmt ); return TDEGlobal::locale()->formatDateTime( date, shortfmt );
} }
TQString IncidenceFormatter::resourceString( Calendar *calendar, Incidence *incidence ) TQString IncidenceFormatter::resourceString( Calendar *calendar, Incidence *incidence )
@ -4133,7 +4133,7 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
if ( alarm->hasTime() ) { if ( alarm->hasTime() ) {
offset = 0; offset = 0;
if ( alarm->time().isValid() ) { if ( alarm->time().isValid() ) {
atStr = KGlobal::locale()->formatDateTime( alarm->time() ); atStr = TDEGlobal::locale()->formatDateTime( alarm->time() );
} }
} else if ( alarm->hasStartOffset() ) { } else if ( alarm->hasStartOffset() ) {
offset = alarm->startOffset().asSeconds(); offset = alarm->startOffset().asSeconds();
@ -4146,7 +4146,7 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
"%1 after the start" ); "%1 after the start" );
} else { //offset is 0 } else { //offset is 0
if ( incidence->dtStart().isValid() ) { if ( incidence->dtStart().isValid() ) {
atStr = KGlobal::locale()->formatDateTime( incidence->dtStart() ); atStr = TDEGlobal::locale()->formatDateTime( incidence->dtStart() );
} }
} }
} else if ( alarm->hasEndOffset() ) { } else if ( alarm->hasEndOffset() ) {
@ -4172,12 +4172,12 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool
if ( incidence->type() == "Todo" ) { if ( incidence->type() == "Todo" ) {
Todo *t = static_cast<Todo *>( incidence ); Todo *t = static_cast<Todo *>( incidence );
if ( t->dtDue().isValid() ) { if ( t->dtDue().isValid() ) {
atStr = KGlobal::locale()->formatDateTime( t->dtDue() ); atStr = TDEGlobal::locale()->formatDateTime( t->dtDue() );
} }
} else { } else {
Event *e = static_cast<Event *>( incidence ); Event *e = static_cast<Event *>( incidence );
if ( e->dtEnd().isValid() ) { if ( e->dtEnd().isValid() ) {
atStr = KGlobal::locale()->formatDateTime( e->dtEnd() ); atStr = TDEGlobal::locale()->formatDateTime( e->dtEnd() );
} }
} }
} }

@ -689,12 +689,12 @@ void ResourceCached::addInfoText( TQString &txt ) const
if ( mLastLoad.isValid() ) { if ( mLastLoad.isValid() ) {
txt += "<br>"; txt += "<br>";
txt += i18n("Last loaded: %1") txt += i18n("Last loaded: %1")
.arg( KGlobal::locale()->formatDateTime( mLastLoad ) ); .arg( TDEGlobal::locale()->formatDateTime( mLastLoad ) );
} }
if ( mLastSave.isValid() ) { if ( mLastSave.isValid() ) {
txt += "<br>"; txt += "<br>";
txt += i18n("Last saved: %1") txt += i18n("Last saved: %1")
.arg( KGlobal::locale()->formatDateTime( mLastSave ) ); .arg( TDEGlobal::locale()->formatDateTime( mLastSave ) );
} }
} }

@ -127,18 +127,18 @@ TQDateTime Todo::dtDue( bool first ) const
TQString Todo::dtDueTimeStr() const TQString Todo::dtDueTimeStr() const
{ {
return KGlobal::locale()->formatTime( dtDue(!doesRecur()).time() ); return TDEGlobal::locale()->formatTime( dtDue(!doesRecur()).time() );
} }
TQString Todo::dtDueDateStr(bool shortfmt) const TQString Todo::dtDueDateStr(bool shortfmt) const
{ {
return KGlobal::locale()->formatDate(dtDue( !doesRecur() ).date(),shortfmt); return TDEGlobal::locale()->formatDate(dtDue( !doesRecur() ).date(),shortfmt);
} }
// TODO: Add shortfmt param!!! // TODO: Add shortfmt param!!!
TQString Todo::dtDueStr() const TQString Todo::dtDueStr() const
{ {
return KGlobal::locale()->formatDateTime( dtDue( !doesRecur() ) ); return TDEGlobal::locale()->formatDateTime( dtDue( !doesRecur() ) );
} }
bool Todo::hasDueDate() const bool Todo::hasDueDate() const
@ -201,17 +201,17 @@ void Todo::setDtStart( const TQDateTime &dtStart )
TQString Todo::dtStartTimeStr( bool first ) const TQString Todo::dtStartTimeStr( bool first ) const
{ {
return KGlobal::locale()->formatTime(dtStart(first).time()); return TDEGlobal::locale()->formatTime(dtStart(first).time());
} }
TQString Todo::dtStartDateStr(bool shortfmt, bool first) const TQString Todo::dtStartDateStr(bool shortfmt, bool first) const
{ {
return KGlobal::locale()->formatDate(dtStart(first).date(),shortfmt); return TDEGlobal::locale()->formatDate(dtStart(first).date(),shortfmt);
} }
TQString Todo::dtStartStr(bool first) const TQString Todo::dtStartStr(bool first) const
{ {
return KGlobal::locale()->formatDateTime(dtStart(first)); return TDEGlobal::locale()->formatDateTime(dtStart(first));
} }
bool Todo::isCompleted() const bool Todo::isCompleted() const
@ -242,7 +242,7 @@ TQDateTime Todo::completed() const
TQString Todo::completedStr() const TQString Todo::completedStr() const
{ {
return KGlobal::locale()->formatDateTime(mCompleted); return TDEGlobal::locale()->formatDateTime(mCompleted);
} }
void Todo::setCompleted(const TQDateTime &completed) void Todo::setCompleted(const TQDateTime &completed)

@ -41,7 +41,7 @@ extern "C" {
TQStringList KHolidays::locations() TQStringList KHolidays::locations()
{ {
TQStringList files = TQStringList files =
KGlobal::dirs()->findAllResources( "data", "libkholidays/" + generateFileName( "*" ), TDEGlobal::dirs()->findAllResources( "data", "libkholidays/" + generateFileName( "*" ),
false, true ); false, true );
TQStringList locs; TQStringList locs;
@ -59,7 +59,7 @@ TQString KHolidays::fileForLocation( const TQString &location )
TQString KHolidays::userPath( bool create ) TQString KHolidays::userPath( bool create )
{ {
return KGlobal::dirs()->saveLocation( "data", "libkholidays/", create ); return TDEGlobal::dirs()->saveLocation( "data", "libkholidays/", create );
} }
TQString KHolidays::generateFileName( const TQString &location ) TQString KHolidays::generateFileName( const TQString &location )

@ -416,7 +416,7 @@ void Content::decodedText(TQString &s, bool trimText,
return; return;
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(contentType()->charset(),ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(contentType()->charset(),ok);
s=codec->toUnicode(b_ody.data(), b_ody.length()); s=codec->toUnicode(b_ody.data(), b_ody.length());
@ -442,7 +442,7 @@ void Content::decodedText(TQStringList &l, bool trimText,
TQString unicode; TQString unicode;
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(contentType()->charset(),ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(contentType()->charset(),ok);
unicode=codec->toUnicode(b_ody.data(), b_ody.length()); unicode=codec->toUnicode(b_ody.data(), b_ody.length());
@ -464,11 +464,11 @@ void Content::decodedText(TQStringList &l, bool trimText,
void Content::fromUnicodeString(const TQString &s) void Content::fromUnicodeString(const TQString &s)
{ {
bool ok=true; bool ok=true;
TQTextCodec *codec=KGlobal::charsets()->codecForName(contentType()->charset(),ok); TQTextCodec *codec=TDEGlobal::charsets()->codecForName(contentType()->charset(),ok);
if(!ok) { // no suitable codec found => try local settings and hope the best ;-) if(!ok) { // no suitable codec found => try local settings and hope the best ;-)
codec=KGlobal::locale()->codecForEncoding(); codec=TDEGlobal::locale()->codecForEncoding();
TQCString chset=KGlobal::locale()->encoding(); TQCString chset=TDEGlobal::locale()->encoding();
contentType()->setCharset(chset); contentType()->setCharset(chset);
} }

@ -208,7 +208,7 @@ bool parseEncodedWord( const char* & scursor, const char * const send,
// try if there's a (text)codec for the charset found: // try if there's a (text)codec for the charset found:
bool matchOK = false; bool matchOK = false;
TQTextCodec TQTextCodec
*textCodec = KGlobal::charsets()->codecForName( maybeCharset, matchOK ); *textCodec = TDEGlobal::charsets()->codecForName( maybeCharset, matchOK );
if ( !matchOK || !textCodec ) { if ( !matchOK || !textCodec ) {
KMIME_WARN_UNKNOWN(Charset,maybeCharset); KMIME_WARN_UNKNOWN(Charset,maybeCharset);
@ -1250,7 +1250,7 @@ static void decodeRFC2231Value( Codec* & rfc2231Codec,
// //
bool matchOK = false; bool matchOK = false;
textcodec = KGlobal::charsets()->codecForName( charset, matchOK ); textcodec = TDEGlobal::charsets()->codecForName( charset, matchOK );
if ( !matchOK ) { if ( !matchOK ) {
textcodec = 0; textcodec = 0;
KMIME_WARN_UNKNOWN(Charset,charset); KMIME_WARN_UNKNOWN(Charset,charset);

@ -223,13 +223,13 @@ TQString decodeRFC2047String(const TQCString &src, const char **usedCS,
TQTextCodec *codec=0; TQTextCodec *codec=0;
bool ok=true; bool ok=true;
if (forceCS || declaredCS.isEmpty()) { if (forceCS || declaredCS.isEmpty()) {
codec=KGlobal::charsets()->codecForName(defaultCS); codec=TDEGlobal::charsets()->codecForName(defaultCS);
(*usedCS)=cachedCharset(defaultCS); (*usedCS)=cachedCharset(defaultCS);
} }
else { else {
codec=KGlobal::charsets()->codecForName(declaredCS, ok); codec=TDEGlobal::charsets()->codecForName(declaredCS, ok);
if(!ok) { //no suitable codec found => use default charset if(!ok) { //no suitable codec found => use default charset
codec=KGlobal::charsets()->codecForName(defaultCS); codec=TDEGlobal::charsets()->codecForName(defaultCS);
(*usedCS)=cachedCharset(defaultCS); (*usedCS)=cachedCharset(defaultCS);
} }
else else
@ -254,12 +254,12 @@ TQCString encodeRFC2047String(const TQString &src, const char *charset,
TQTextCodec *codec=0; TQTextCodec *codec=0;
usedCS=charset; usedCS=charset;
codec=KGlobal::charsets()->codecForName(usedCS, ok); codec=TDEGlobal::charsets()->codecForName(usedCS, ok);
if(!ok) { if(!ok) {
//no codec available => try local8Bit and hope the best ;-) //no codec available => try local8Bit and hope the best ;-)
usedCS=KGlobal::locale()->encoding(); usedCS=TDEGlobal::locale()->encoding();
codec=KGlobal::charsets()->codecForName(usedCS, ok); codec=TDEGlobal::charsets()->codecForName(usedCS, ok);
} }
if (usedCS.find("8859-")>=0) // use "B"-Encoding for non iso-8859-x charsets if (usedCS.find("8859-")>=0) // use "B"-Encoding for non iso-8859-x charsets
@ -636,7 +636,7 @@ DateFormatter::qdateToTimeT(const TQDateTime& dt) const
TQString TQString
DateFormatter::fancy(time_t otime) const DateFormatter::fancy(time_t otime) const
{ {
KLocale *locale = KGlobal::locale(); KLocale *locale = TDEGlobal::locale();
if ( otime <= 0 ) if ( otime <= 0 )
return i18n( "unknown" ); return i18n( "unknown" );
@ -691,7 +691,7 @@ DateFormatter::localized(time_t otime, bool shortFormat, bool includeSecs,
{ {
TQDateTime tmp; TQDateTime tmp;
TQString ret; TQString ret;
KLocale *locale = KGlobal::locale(); KLocale *locale = TDEGlobal::locale();
tmp.setTime_t( otime ); tmp.setTime_t( otime );

@ -533,7 +533,7 @@ Base2::doGetPublicKeys( const TQCString & cmd, const TQStringList & patterns )
for ( TQStringList::ConstIterator it = patterns.begin(); for ( TQStringList::ConstIterator it = patterns.begin();
it != patterns.end(); ++it ) { it != patterns.end(); ++it ) {
exitStatus = run( cmd + " " + KProcess::quote( *it ).local8Bit(), exitStatus = run( cmd + " " + TDEProcess::quote( *it ).local8Bit(),
0, true ); 0, true );
if ( exitStatus != 0 ) { if ( exitStatus != 0 ) {

@ -363,7 +363,7 @@ Base5::publicKeys( const TQStringList & patterns )
for ( TQStringList::ConstIterator it = patterns.begin(); for ( TQStringList::ConstIterator it = patterns.begin();
it != patterns.end(); ++it ) { it != patterns.end(); ++it ) {
cmd += " "; cmd += " ";
cmd += KProcess::quote( *it ).local8Bit(); cmd += TDEProcess::quote( *it ).local8Bit();
} }
status = 0; status = 0;
exitStatus = run( cmd, 0, true ); exitStatus = run( cmd, 0, true );
@ -393,7 +393,7 @@ Base5::secretKeys( const TQStringList & patterns )
for ( TQStringList::ConstIterator it = patterns.begin(); for ( TQStringList::ConstIterator it = patterns.begin();
it != patterns.end(); ++it ) { it != patterns.end(); ++it ) {
cmd += " "; cmd += " ";
cmd += KProcess::quote( *it ).local8Bit(); cmd += TDEProcess::quote( *it ).local8Bit();
} }
status = 0; status = 0;
exitStatus = run( cmd, 0, true ); exitStatus = run( cmd, 0, true );

@ -414,7 +414,7 @@ BaseG::publicKeys( const TQStringList & patterns )
for ( TQStringList::ConstIterator it = patterns.begin(); for ( TQStringList::ConstIterator it = patterns.begin();
it != patterns.end(); ++it ) { it != patterns.end(); ++it ) {
cmd += " "; cmd += " ";
cmd += KProcess::quote( *it ).local8Bit(); cmd += TDEProcess::quote( *it ).local8Bit();
} }
status = 0; status = 0;
exitStatus = runGpg( cmd, 0, true ); exitStatus = runGpg( cmd, 0, true );
@ -446,7 +446,7 @@ BaseG::secretKeys( const TQStringList & patterns )
for ( TQStringList::ConstIterator it = patterns.begin(); for ( TQStringList::ConstIterator it = patterns.begin();
it != patterns.end(); ++it ) { it != patterns.end(); ++it ) {
cmd += " "; cmd += " ";
cmd += KProcess::quote( *it ).local8Bit(); cmd += TDEProcess::quote( *it ).local8Bit();
} }
status = 0; status = 0;
exitStatus = runGpg( cmd, 0, true ); exitStatus = runGpg( cmd, 0, true );

@ -543,13 +543,13 @@ TQString KeySelectionDialog::keyInfo( const Kpgp::Key *key ) const
if( remark.isEmpty() ) { if( remark.isEmpty() ) {
return " " + i18n("creation date and status of an OpenPGP key", return " " + i18n("creation date and status of an OpenPGP key",
"Creation date: %1, Status: %2") "Creation date: %1, Status: %2")
.arg( KGlobal::locale()->formatDate( dt.date(), true ) ) .arg( TDEGlobal::locale()->formatDate( dt.date(), true ) )
.arg( status ); .arg( status );
} }
else { else {
return " " + i18n("creation date, status and remark of an OpenPGP key", return " " + i18n("creation date, status and remark of an OpenPGP key",
"Creation date: %1, Status: %2 (%3)") "Creation date: %1, Status: %2 (%3)")
.arg( KGlobal::locale()->formatDate( dt.date(), true ) ) .arg( TDEGlobal::locale()->formatDate( dt.date(), true ) )
.arg( status ) .arg( status )
.arg( remark ); .arg( remark );
} }
@ -1498,7 +1498,7 @@ KeyApprovalDialog::KeyApprovalDialog( const TQStringList& addresses,
+ marginHint() + marginHint()
+ 2; + 2;
// don't make the dialog too large // don't make the dialog too large
TQRect desk = KGlobalSettings::desktopGeometry(this); TQRect desk = TDEGlobalSettings::desktopGeometry(this);
int screenWidth = desk.width(); int screenWidth = desk.width();
if( dialogWidth > 3*screenWidth/4 ) if( dialogWidth > 3*screenWidth/4 )
dialogWidth = 3*screenWidth/4; dialogWidth = 3*screenWidth/4;
@ -1635,7 +1635,7 @@ CipherTextDialog::CipherTextDialog( const TQCString & text,
unicodeText = TQString::fromLocal8Bit(text.data()); unicodeText = TQString::fromLocal8Bit(text.data());
else { else {
bool ok=true; bool ok=true;
TQTextCodec *codec = KGlobal::charsets()->codecForName(charset, ok); TQTextCodec *codec = TDEGlobal::charsets()->codecForName(charset, ok);
if(!ok) if(!ok)
unicodeText = TQString::fromLocal8Bit(text.data()); unicodeText = TQString::fromLocal8Bit(text.data());
else else
@ -1660,7 +1660,7 @@ void CipherTextDialog::setMinimumSize()
#if KDE_IS_VERSION( 3, 1, 90 ) #if KDE_IS_VERSION( 3, 1, 90 )
int maxWidth = KGlobalSettings::desktopGeometry(parentWidget()).width()-100; int maxWidth = TDEGlobalSettings::desktopGeometry(parentWidget()).width()-100;
#else #else
KConfig gc("kdeglobals", false, false); KConfig gc("kdeglobals", false, false);
gc.setGroup("Windows"); gc.setGroup("Windows");

@ -93,7 +93,7 @@ TQString Signature::textFromCommand( bool * ok ) const
// run the process: // run the process:
int rc = 0; int rc = 0;
if ( !proc.start( KProcess::Block, KProcess::Stdout ) ) if ( !proc.start( TDEProcess::Block, TDEProcess::Stdout ) )
rc = -1; rc = -1;
else else
rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ; rc = ( proc.normalExit() ) ? proc.exitStatus() : -1 ;

@ -15,7 +15,7 @@
#include <tqcstring.h> #include <tqcstring.h>
#include <tqstringlist.h> #include <tqstringlist.h>
class KProcess; class TDEProcess;
namespace KPIM { namespace KPIM {
class Identity; class Identity;
class Signature; class Signature;

@ -133,7 +133,7 @@ TQPixmap AddresseeEmailSelection::itemIcon( const KABC::Addressee &addressee, ui
if ( !addressee.photo().data().isNull() ) if ( !addressee.photo().data().isNull() )
return addressee.photo().data().smoothScale( 16, 16 ); return addressee.photo().data().smoothScale( 16, 16 );
else else
return KGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small );
} }
bool AddresseeEmailSelection::itemEnabled( const KABC::Addressee &addressee, uint ) const bool AddresseeEmailSelection::itemEnabled( const KABC::Addressee &addressee, uint ) const
@ -160,7 +160,7 @@ TQString AddresseeEmailSelection::distributionListText( const KABC::Distribution
TQPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const TQPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const
{ {
return KGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ); return TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small );
} }
bool AddresseeEmailSelection::distributionListEnabled( const KABC::DistributionList* ) const bool AddresseeEmailSelection::distributionListEnabled( const KABC::DistributionList* ) const

@ -419,9 +419,9 @@ void AddresseeLineEdit::doCompletion( bool ctrlT )
{ {
m_lastSearchMode = ctrlT; m_lastSearchMode = ctrlT;
KGlobalSettings::Completion mode = completionMode(); TDEGlobalSettings::Completion mode = completionMode();
if ( mode == KGlobalSettings::CompletionNone ) if ( mode == TDEGlobalSettings::CompletionNone )
return; return;
if ( s_addressesDirty ) { if ( s_addressesDirty ) {
@ -447,20 +447,20 @@ void AddresseeLineEdit::doCompletion( bool ctrlT )
switch ( mode ) { switch ( mode ) {
case KGlobalSettings::CompletionPopupAuto: case TDEGlobalSettings::CompletionPopupAuto:
{ {
if ( m_searchString.isEmpty() ) if ( m_searchString.isEmpty() )
break; break;
} }
case KGlobalSettings::CompletionPopup: case TDEGlobalSettings::CompletionPopup:
{ {
const TQStringList items = getAdjustedCompletionItems( true ); const TQStringList items = getAdjustedCompletionItems( true );
setCompletedItems( items, false ); setCompletedItems( items, false );
break; break;
} }
case KGlobalSettings::CompletionShell: case TDEGlobalSettings::CompletionShell:
{ {
TQString match = s_completion->makeCompletion( m_searchString ); TQString match = s_completion->makeCompletion( m_searchString );
if ( !match.isNull() && match != m_searchString ) { if ( !match.isNull() && match != m_searchString ) {
@ -471,8 +471,8 @@ void AddresseeLineEdit::doCompletion( bool ctrlT )
break; break;
} }
case KGlobalSettings::CompletionMan: // Short-Auto in fact case TDEGlobalSettings::CompletionMan: // Short-Auto in fact
case KGlobalSettings::CompletionAuto: case TDEGlobalSettings::CompletionAuto:
{ {
//force autoSuggest in KLineEdit::keyPressed or setCompletedText will have no effect //force autoSuggest in KLineEdit::keyPressed or setCompletedText will have no effect
setCompletionMode( completionMode() ); setCompletionMode( completionMode() );
@ -521,7 +521,7 @@ void AddresseeLineEdit::doCompletion( bool ctrlT )
break; break;
} }
case KGlobalSettings::CompletionNone: case TDEGlobalSettings::CompletionNone:
default: // fall through default: // fall through
break; break;
} }
@ -594,7 +594,7 @@ void AddresseeLineEdit::loadContacts()
int idx = addCompletionSource( i18n( "Distribution Lists" ) ); int idx = addCompletionSource( i18n( "Distribution Lists" ) );
for ( listIt = distLists.begin(); listIt != distLists.end(); ++listIt ) { for ( listIt = distLists.begin(); listIt != distLists.end(); ++listIt ) {
//for KGlobalSettings::CompletionAuto //for TDEGlobalSettings::CompletionAuto
addCompletionItem( (*listIt).simplifyWhiteSpace(), weight, idx ); addCompletionItem( (*listIt).simplifyWhiteSpace(), weight, idx );
//for CompletionShell, CompletionPopup //for CompletionShell, CompletionPopup
@ -773,9 +773,9 @@ void AddresseeLineEdit::addCompletionItem( const TQString& string, int weight, i
void AddresseeLineEdit::slotStartLDAPLookup() void AddresseeLineEdit::slotStartLDAPLookup()
{ {
KGlobalSettings::Completion mode = completionMode(); TDEGlobalSettings::Completion mode = completionMode();
if ( mode == KGlobalSettings::CompletionNone ) if ( mode == TDEGlobalSettings::CompletionNone )
return; return;
if ( !s_LDAPSearch->isAvailable() ) { if ( !s_LDAPSearch->isAvailable() ) {
@ -828,8 +828,8 @@ void AddresseeLineEdit::slotLDAPSearchData( const KPIM::LdapResultList& adrs )
} }
if ( (hasFocus() || completionBox()->hasFocus() ) if ( (hasFocus() || completionBox()->hasFocus() )
&& completionMode() != KGlobalSettings::CompletionNone && completionMode() != TDEGlobalSettings::CompletionNone
&& completionMode() != KGlobalSettings::CompletionShell ) { && completionMode() != TDEGlobalSettings::CompletionShell ) {
setText( m_previousAddresses + m_searchString ); setText( m_previousAddresses + m_searchString );
// only complete again if the user didn't change the selection while we were waiting // only complete again if the user didn't change the selection while we were waiting
// otherwise the completion box will be closed // otherwise the completion box will be closed

@ -288,8 +288,8 @@ void AddresseeSelector::initGUI()
int row = 1; int row = 1;
TQIconSet moveSet = KGlobal::iconLoader()->loadIconSet( "next", KIcon::Small ); TQIconSet moveSet = TDEGlobal::iconLoader()->loadIconSet( "next", KIcon::Small );
TQIconSet removeSet = KGlobal::iconLoader()->loadIconSet( "previous", KIcon::Small ); TQIconSet removeSet = TDEGlobal::iconLoader()->loadIconSet( "previous", KIcon::Small );
uint count = mSelection->fieldCount(); uint count = mSelection->fieldCount();
for ( uint i = 0; i < count; ++i, ++row ) { for ( uint i = 0; i < count; ++i, ++row ) {

@ -62,7 +62,7 @@ AddresseeView::AddresseeView( TQWidget *parent, const char *name,
TQStyleSheet *sheet = styleSheet(); TQStyleSheet *sheet = styleSheet();
TQStyleSheetItem *link = sheet->item( "a" ); TQStyleSheetItem *link = sheet->item( "a" );
link->setColor( KGlobalSettings::linkColor() ); link->setColor( TDEGlobalSettings::linkColor() );
connect( this, TQT_SIGNAL( mailClick( const TQString&, const TQString& ) ), connect( this, TQT_SIGNAL( mailClick( const TQString&, const TQString& ) ),
this, TQT_SLOT( slotMailClicked( const TQString&, const TQString& ) ) ); this, TQT_SLOT( slotMailClicked( const TQString&, const TQString& ) ) );
@ -160,13 +160,13 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
// placeholder where we fill in something else (in this case, // placeholder where we fill in something else (in this case,
// the global background color). // the global background color).
// //
TQString backgroundColor = KGlobalSettings::alternateBackgroundColor().name(); TQString backgroundColor = TDEGlobalSettings::alternateBackgroundColor().name();
TQString cellStyle = TQString::fromLatin1( TQString cellStyle = TQString::fromLatin1(
"style=\"" "style=\""
"padding-right: 2px; " "padding-right: 2px; "
"border-right: #000 dashed 1px; " "border-right: #000 dashed 1px; "
"background: %1;\"").arg(backgroundColor); "background: %1;\"").arg(backgroundColor);
TQString backgroundColor2 = KGlobalSettings::baseColor().name(); TQString backgroundColor2 = TDEGlobalSettings::baseColor().name();
TQString cellStyle2 = TQString::fromLatin1( TQString cellStyle2 = TQString::fromLatin1(
"style=\"" "style=\""
"padding-left: 2px; " "padding-left: 2px; "
@ -207,7 +207,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
} else if ( !pic.url().isEmpty() ) { } else if ( !pic.url().isEmpty() ) {
image = (pic.url().startsWith( "http://" ) || pic.url().startsWith( "https://" ) ? pic.url() : "http://" + pic.url()); image = (pic.url().startsWith( "http://" ) || pic.url().startsWith( "https://" ) ? pic.url() : "http://" + pic.url());
} else { } else {
image = "file:" + KGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop ); image = "file:" + TDEGlobal::iconLoader()->iconPath( "personal", KIcon::Desktop );
} }
} }
@ -217,7 +217,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
if ( date.isValid() ) if ( date.isValid() )
dynamicPart += rowFmtStr dynamicPart += rowFmtStr
.arg( KABC::Addressee::birthdayLabel() ) .arg( KABC::Addressee::birthdayLabel() )
.arg( KGlobal::locale()->formatDate( date, true ) ); .arg( TDEGlobal::locale()->formatDate( date, true ) );
} }
if ( fieldMask & PhoneFields ) { if ( fieldMask & PhoneFields ) {
@ -532,8 +532,8 @@ void AddresseeView::updateView()
"%3" // dynamic part "%3" // dynamic part
"</body>" "</body>"
"</html>" ) "</html>" )
.arg( KGlobalSettings::textColor().name() ) .arg( TDEGlobalSettings::textColor().name() )
.arg( KGlobalSettings::baseColor().name() ) .arg( TDEGlobalSettings::baseColor().name() )
.arg( strAddr ); .arg( strAddr );
TQString imageURL = TQString( "contact_%1_image" ).arg( mAddressee.uid() ); TQString imageURL = TQString( "contact_%1_image" ).arg( mAddressee.uid() );
@ -554,7 +554,7 @@ void AddresseeView::updateView()
} }
} else { } else {
TQMimeSourceFactory::defaultFactory()->setPixmap( imageURL, TQMimeSourceFactory::defaultFactory()->setPixmap( imageURL,
KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 128 ) ); TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 128 ) );
} }
} }

@ -105,11 +105,11 @@ AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const KABC::Add
if ( addr.photo().url().isEmpty() ) { if ( addr.photo().url().isEmpty() ) {
if ( addr.photo().data().isNull() ) if ( addr.photo().data().isNull() )
setPixmap( 0, KGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "personal", KIcon::Small ) );
else else
setPixmap( 0, addr.photo().data().smoothScale( 16, 16 ) ); setPixmap( 0, addr.photo().data().smoothScale( 16, 16 ) );
} else { } else {
setPixmap( 0, KGlobal::iconLoader()->loadIcon( addr.photo().url(), KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( addr.photo().url(), KIcon::Small ) );
} }
} }
@ -135,7 +135,7 @@ AddresseeViewItem::AddresseeViewItem( AddresseeViewItem *parent, const TQString
d = new AddresseeViewItemPrivate; d = new AddresseeViewItemPrivate;
d->category = DistList; d->category = DistList;
setPixmap( 0, KGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ) ); setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "tdmconfig", KIcon::Small ) );
} }
AddresseeViewItem::~AddresseeViewItem() AddresseeViewItem::~AddresseeViewItem()
@ -321,7 +321,7 @@ AddressesDialog::setRecentAddresses( const KABC::Addressee::List& list )
void void
AddressesDialog::updateRecentAddresses() AddressesDialog::updateRecentAddresses()
{ {
static const TQString &recentGroup = KGlobal::staticQString( i18n( "Recent Addresses" ) ); static const TQString &recentGroup = TDEGlobal::staticQString( i18n( "Recent Addresses" ) );
if ( !d->recent ) { if ( !d->recent ) {
d->recent = new AddresseeViewItem( d->ui->mAvailableView, recentGroup ); d->recent = new AddresseeViewItem( d->ui->mAvailableView, recentGroup );
@ -461,7 +461,7 @@ AddressesDialog::updateAvailableAddressees()
d->ui->mAvailableView->clear(); d->ui->mAvailableView->clear();
d->groupDict.clear(); d->groupDict.clear();
static const TQString &personalGroup = KGlobal::staticQString( i18n( "Other Addresses" ) ); static const TQString &personalGroup = TDEGlobal::staticQString( i18n( "Other Addresses" ) );
d->ui->mAvailableView->setRootIsDecorated( true ); d->ui->mAvailableView->setRootIsDecorated( true );
d->personal = new AddresseeViewItem( d->ui->mAvailableView, personalGroup ); d->personal = new AddresseeViewItem( d->ui->mAvailableView, personalGroup );
//connect(d->personal, TQT_SIGNAL(addressSelected(AddresseeViewItem*, bool)), //connect(d->personal, TQT_SIGNAL(addressSelected(AddresseeViewItem*, bool)),

@ -41,7 +41,7 @@ void AlarmClient::startDaemon()
return; return;
} }
KGlobal::dirs()->addResourceType("autostart", "share/autostart"); TDEGlobal::dirs()->addResourceType("autostart", "share/autostart");
TQString desktopFile = locate( "autostart", "korgac.desktop" ); TQString desktopFile = locate( "autostart", "korgac.desktop" );
if ( desktopFile.isEmpty() ) { if ( desktopFile.isEmpty() ) {
kdWarning() << "Couldn't find autostart/korgac.desktop!" << endl; kdWarning() << "Couldn't find autostart/korgac.desktop!" << endl;

@ -55,7 +55,7 @@ void BroadcastStatus::setStatusMsg( const TQString& message )
void BroadcastStatus::setStatusMsgWithTimestamp( const TQString& message ) void BroadcastStatus::setStatusMsgWithTimestamp( const TQString& message )
{ {
KLocale* locale = KGlobal::locale(); KLocale* locale = TDEGlobal::locale();
setStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" ) setStatusMsg( i18n( "%1 is a time, %2 is a status message", "[%1] %2" )
.arg( locale->formatTime( TQTime::currentTime(), .arg( locale->formatTime( TQTime::currentTime(),
true /* with seconds */ ) ) true /* with seconds */ ) )

@ -50,7 +50,7 @@ struct CollectingProcess::Private {
CollectingProcess::CollectingProcess( TQObject * parent, const char * name ) CollectingProcess::CollectingProcess( TQObject * parent, const char * name )
: KProcess( parent, name ) : TDEProcess( parent, name )
{ {
d = new Private(); d = new Private();
} }
@ -61,23 +61,23 @@ CollectingProcess::~CollectingProcess() {
bool CollectingProcess::start( RunMode runmode, Communication comm ) { bool CollectingProcess::start( RunMode runmode, Communication comm ) {
// prevent duplicate connection // prevent duplicate connection
disconnect( this, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ), disconnect( this, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
this, TQT_SLOT( slotReceivedStdout( KProcess *, char *, int ) ) ); this, TQT_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
if ( comm & Stdout ) { if ( comm & Stdout ) {
connect( this, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ), connect( this, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
this, TQT_SLOT( slotReceivedStdout( KProcess *, char *, int ) ) ); this, TQT_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
} }
// prevent duplicate connection // prevent duplicate connection
disconnect( this, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ), disconnect( this, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
this, TQT_SLOT( slotReceivedStderr( KProcess *, char *, int ) ) ); this, TQT_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
if ( comm & Stderr ) { if ( comm & Stderr ) {
connect( this, TQT_SIGNAL( receivedStderr( KProcess *, char *, int ) ), connect( this, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
this, TQT_SLOT( slotReceivedStderr( KProcess *, char *, int ) ) ); this, TQT_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
} }
return KProcess::start( runmode, comm ); return TDEProcess::start( runmode, comm );
} }
void CollectingProcess::slotReceivedStdout( KProcess *, char *buf, int len ) void CollectingProcess::slotReceivedStdout( TDEProcess *, char *buf, int len )
{ {
TQByteArray b; TQByteArray b;
b.duplicate( buf, len ); b.duplicate( buf, len );
@ -85,7 +85,7 @@ void CollectingProcess::slotReceivedStdout( KProcess *, char *buf, int len )
d->stdoutSize += len; d->stdoutSize += len;
} }
void CollectingProcess::slotReceivedStderr( KProcess *, char *buf, int len ) void CollectingProcess::slotReceivedStderr( TDEProcess *, char *buf, int len )
{ {
TQByteArray b; TQByteArray b;
b.duplicate( buf, len ); b.duplicate( buf, len );
@ -134,7 +134,7 @@ TQByteArray CollectingProcess::collectedStderr()
} }
void CollectingProcess::virtual_hook( int id, void * data ) { void CollectingProcess::virtual_hook( int id, void * data ) {
KProcess::virtual_hook( id, data ); TDEProcess::virtual_hook( id, data );
} }
#include "collectingprocess.moc" #include "collectingprocess.moc"

@ -39,14 +39,14 @@
namespace KPIM { namespace KPIM {
/** /**
* @short An output collecting KProcess class. * @short An output collecting TDEProcess class.
* *
* This class simplifies the usage of KProcess by collecting all output * This class simplifies the usage of TDEProcess by collecting all output
* (stdout/stderr) of the process. * (stdout/stderr) of the process.
* *
* @author Ingo Kloecker <kloecker@kde.org> * @author Ingo Kloecker <kloecker@kde.org>
*/ */
class KDE_EXPORT CollectingProcess : public KProcess { class KDE_EXPORT CollectingProcess : public TDEProcess {
Q_OBJECT Q_OBJECT
public: public:
@ -64,8 +64,8 @@ public:
TQByteArray collectedStderr(); TQByteArray collectedStderr();
private slots: private slots:
void slotReceivedStdout( KProcess *, char *, int ); void slotReceivedStdout( TDEProcess *, char *, int );
void slotReceivedStderr( KProcess *, char *, int ); void slotReceivedStderr( TDEProcess *, char *, int );
private: private:
class Private; class Private;

@ -74,8 +74,8 @@ namespace KPIM {
{ {
// initialize with defaults - should match the corresponding application defaults // initialize with defaults - should match the corresponding application defaults
mForegroundColor = TQApplication::palette().active().text(); mForegroundColor = TQApplication::palette().active().text();
mLinkColor = KGlobalSettings::linkColor(); mLinkColor = TDEGlobalSettings::linkColor();
mVisitedLinkColor = KGlobalSettings::visitedLinkColor(); mVisitedLinkColor = TDEGlobalSettings::visitedLinkColor();
mBackgroundColor = TQApplication::palette().active().base(); mBackgroundColor = TQApplication::palette().active().base();
cHtmlWarning = TQColor( 0xFF, 0x40, 0x40 ); // warning frame color: light red cHtmlWarning = TQColor( 0xFF, 0x40, 0x40 ); // warning frame color: light red
@ -89,8 +89,8 @@ namespace KPIM {
mQuoteColor[i] = TQColor( 0x00, 0x80 - i * 0x10, 0x00 ); // shades of green mQuoteColor[i] = TQColor( 0x00, 0x80 - i * 0x10, 0x00 ); // shades of green
mRecycleQuoteColors = false; mRecycleQuoteColors = false;
TQFont defaultFont = KGlobalSettings::generalFont(); TQFont defaultFont = TDEGlobalSettings::generalFont();
TQFont defaultFixedFont = KGlobalSettings::fixedFont(); TQFont defaultFixedFont = TDEGlobalSettings::fixedFont();
mBodyFont = mPrintFont = defaultFont; mBodyFont = mPrintFont = defaultFont;
mFixedFont = mFixedPrintFont = defaultFixedFont; mFixedFont = mFixedPrintFont = defaultFixedFont;
defaultFont.setItalic( true ); defaultFont.setItalic( true );

@ -45,8 +45,8 @@ void HTMLDiffAlgoDisplay::begin()
mText.append( "<html>" ); mText.append( "<html>" );
mText.append( TQString( "<body text=\"%1\" bgcolor=\"%2\">" ) mText.append( TQString( "<body text=\"%1\" bgcolor=\"%2\">" )
.arg( KGlobalSettings::textColor().name() ) .arg( TDEGlobalSettings::textColor().name() )
.arg( KGlobalSettings::baseColor().name() ) ); .arg( TDEGlobalSettings::baseColor().name() ) );
mText.append( "<center><table>" ); mText.append( "<center><table>" );
mText.append( TQString( "<tr><th></th><th align=\"center\">%1</th><td> </td><th align=\"center\">%2</th></tr>" ) mText.append( TQString( "<tr><th></th><th align=\"center\">%1</th><td> </td><th align=\"center\">%2</th></tr>" )

@ -196,7 +196,7 @@ void KCMDesignerFields::importFile()
void KCMDesignerFields::loadUiFiles() void KCMDesignerFields::loadUiFiles()
{ {
TQStringList list = KGlobal::dirs()->findAllResources( "data", uiPath() + "/*.ui", true, true ); TQStringList list = TDEGlobal::dirs()->findAllResources( "data", uiPath() + "/*.ui", true, true );
for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) { for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) {
new PageItem( mPageView, *it ); new PageItem( mPageView, *it );
} }
@ -411,7 +411,7 @@ void KCMDesignerFields::startDesigner()
// check if path exists and create one if not. // check if path exists and create one if not.
TQString cepPath = localUiDir(); TQString cepPath = localUiDir();
if( !KGlobal::dirs()->exists(cepPath) ) { if( !TDEGlobal::dirs()->exists(cepPath) ) {
KIO::NetAccess::mkdir( cepPath, this ); KIO::NetAccess::mkdir( cepPath, this );
} }
@ -421,7 +421,7 @@ void KCMDesignerFields::startDesigner()
TQListViewItem *item = mPageView->selectedItem(); TQListViewItem *item = mPageView->selectedItem();
if ( item ) { if ( item ) {
PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item ); PageItem *pageItem = static_cast<PageItem*>( item->parent() ? item->parent() : item );
cmdLine += " " + KProcess::quote( pageItem->path() ); cmdLine += " " + TDEProcess::quote( pageItem->path() );
} }
KRun::runCommand( cmdLine ); KRun::runCommand( cmdLine );

@ -53,7 +53,7 @@ class DateValidator : public TQValidator
return Acceptable; return Acceptable;
bool ok = false; bool ok = false;
KGlobal::locale()->readDate( str, &ok ); TDEGlobal::locale()->readDate( str, &ok );
if ( ok ) if ( ok )
return Acceptable; return Acceptable;
else else
@ -73,7 +73,7 @@ KDateEdit::KDateEdit( TQWidget *parent, const char *name )
setMaxCount( 1 ); setMaxCount( 1 );
mDate = TQDate::currentDate(); mDate = TQDate::currentDate();
TQString today = KGlobal::locale()->formatDate( mDate, true ); TQString today = TDEGlobal::locale()->formatDate( mDate, true );
insertItem( today ); insertItem( today );
setCurrentItem( 0 ); setCurrentItem( 0 );
@ -134,7 +134,7 @@ void KDateEdit::popup()
if ( mReadOnly ) if ( mReadOnly )
return; return;
TQRect desk = KGlobalSettings::desktopGeometry( this ); TQRect desk = TDEGlobalSettings::desktopGeometry( this );
TQPoint popupPoint = mapToGlobal( TQPoint( 0,0 ) ); TQPoint popupPoint = mapToGlobal( TQPoint( 0,0 ) );
@ -238,7 +238,7 @@ TQDate KDateEdit::parseDate( bool *replaced ) const
if ( replaced ) if ( replaced )
(*replaced) = true; (*replaced) = true;
} else { } else {
result = KGlobal::locale()->readDate( text ); result = TDEGlobal::locale()->readDate( text );
} }
return result; return result;
@ -335,7 +335,7 @@ void KDateEdit::setupKeywords()
TQString dayName; TQString dayName;
for ( int i = 1; i <= 7; ++i ) { for ( int i = 1; i <= 7; ++i ) {
dayName = KGlobal::locale()->calendar()->weekDayName( i ).lower(); dayName = TDEGlobal::locale()->calendar()->weekDayName( i ).lower();
mKeywordMap.insert( dayName, i + 100 ); mKeywordMap.insert( dayName, i + 100 );
} }
} }
@ -351,7 +351,7 @@ void KDateEdit::updateView()
{ {
TQString dateString; TQString dateString;
if ( mDate.isValid() ) if ( mDate.isValid() )
dateString = KGlobal::locale()->formatDate( mDate, true ); dateString = TDEGlobal::locale()->formatDate( mDate, true );
// We do not want to generate a signal here, // We do not want to generate a signal here,
// since we explicitly setting the date // since we explicitly setting the date

@ -572,7 +572,7 @@ void KImportDialog::assignTemplate()
TQStringList templates; TQStringList templates;
// load all template files // load all template files
TQStringList list = KGlobal::dirs()->findAllResources( "data" , TQString( kapp->name() ) + TQStringList list = TDEGlobal::dirs()->findAllResources( "data" , TQString( kapp->name() ) +
"/csv-templates/*.desktop", true, true ); "/csv-templates/*.desktop", true, true );
for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it )

@ -201,7 +201,7 @@ void KIncidenceChooser::setLabels()
if ( mDiffBut ) if ( mDiffBut )
mDiffBut->setEnabled( false ); mDiffBut->setEnabled( false );
} }
mMod1lab->setText( KGlobal::locale()->formatDateTime(inc->lastModified() )); mMod1lab->setText( TDEGlobal::locale()->formatDateTime(inc->lastModified() ));
inc = mInc2; inc = mInc2;
des = mInc2lab; des = mInc2lab;
sum = mInc2Sumlab; sum = mInc2Sumlab;
@ -219,7 +219,7 @@ void KIncidenceChooser::setLabels()
sum->setText( inc->description().left( 30 )); sum->setText( inc->description().left( 30 ));
} }
mMod2lab->setText( KGlobal::locale()->formatDateTime(inc->lastModified() )); mMod2lab->setText( TDEGlobal::locale()->formatDateTime(inc->lastModified() ));
} }
void KIncidenceChooser::showIncidence1() void KIncidenceChooser::showIncidence1()

@ -78,7 +78,7 @@ PluginManager::PluginManager( TQObject *parent )
kapp->ref(); kapp->ref();
d->shutdownMode = Private::StartingUp; d->shutdownMode = Private::StartingUp;
KSettings::Dispatcher::self()->registerInstance( KGlobal::instance(), KSettings::Dispatcher::self()->registerInstance( TDEGlobal::instance(),
this, TQT_SLOT( loadAllPlugins() ) ); this, TQT_SLOT( loadAllPlugins() ) );
d->plugins = KPluginInfo::fromServices( d->plugins = KPluginInfo::fromServices(

@ -785,9 +785,9 @@ KScoringManager::KScoringManager(const TQString& appName)
allRules.setAutoDelete(true); allRules.setAutoDelete(true);
// determine filename of the scorefile // determine filename of the scorefile
if(appName.isEmpty()) if(appName.isEmpty())
mFilename = KGlobal::dirs()->saveLocation("appdata") + "/scorefile"; mFilename = TDEGlobal::dirs()->saveLocation("appdata") + "/scorefile";
else else
mFilename = KGlobal::dirs()->saveLocation("data") + "/" + appName + "/scorefile"; mFilename = TDEGlobal::dirs()->saveLocation("data") + "/" + appName + "/scorefile";
// open the score file // open the score file
load(); load();
} }

@ -223,7 +223,7 @@ KSubscription::KSubscription( TQWidget *parent, const TQString &caption,
i18n("Manage which mail folders you want to see in your folder view") + "</p>", page); i18n("Manage which mail folders you want to see in your folder view") + "</p>", page);
TQToolButton *clearButton = new TQToolButton( page ); TQToolButton *clearButton = new TQToolButton( page );
clearButton->setIconSet( KGlobal::iconLoader()->loadIconSet( clearButton->setIconSet( TDEGlobal::iconLoader()->loadIconSet(
TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) );
filterEdit = new KLineEdit(page); filterEdit = new KLineEdit(page);
TQLabel *l = new TQLabel(filterEdit,i18n("S&earch:"), page); TQLabel *l = new TQLabel(filterEdit,i18n("S&earch:"), page);

@ -53,7 +53,7 @@ public:
return Intermediate; return Intermediate;
bool ok = false; bool ok = false;
/*TQTime time =*/ KGlobal::locale()->readTime(str, KLocale::WithoutSeconds, &ok); /*TQTime time =*/ TDEGlobal::locale()->readTime(str, KLocale::WithoutSeconds, &ok);
if ( ok ) if ( ok )
return Acceptable; return Acceptable;
// kdDebug(5300)<<"Time "<<str<<" not directly acceptable, trying military format "<<endl; // kdDebug(5300)<<"Time "<<str<<" not directly acceptable, trying military format "<<endl;
@ -91,12 +91,12 @@ public:
} }
virtual void fixup ( TQString & input ) const { virtual void fixup ( TQString & input ) const {
bool ok = false; bool ok = false;
KGlobal::locale()->readTime( input, KLocale::WithoutSeconds, &ok ); TDEGlobal::locale()->readTime( input, KLocale::WithoutSeconds, &ok );
if ( !ok ) { if ( !ok ) {
// Also try to accept times in "military format", i.e. no delimiter, like 1200 // Also try to accept times in "military format", i.e. no delimiter, like 1200
int tm = input.toInt( &ok ); int tm = input.toInt( &ok );
if ( ( 0 <= tm ) && ( tm < 2400 ) && ( tm%100 < 60 ) && ok ) { if ( ( 0 <= tm ) && ( tm < 2400 ) && ( tm%100 < 60 ) && ok ) {
input = KGlobal::locale()->formatTime( TQTime( tm / 100, tm % 100, 0 ) ); input = TDEGlobal::locale()->formatTime( TQTime( tm / 100, tm % 100, 0 ) );
} }
} }
} }
@ -119,11 +119,11 @@ KTimeEdit::KTimeEdit( TQWidget *parent, TQTime qt, const char *name )
// Fill combo box with selection of times in localized format. // Fill combo box with selection of times in localized format.
TQTime timeEntry(0,0,0); TQTime timeEntry(0,0,0);
do { do {
insertItem(KGlobal::locale()->formatTime(timeEntry)); insertItem(TDEGlobal::locale()->formatTime(timeEntry));
timeEntry = timeEntry.addSecs(60*15); timeEntry = timeEntry.addSecs(60*15);
} while (!timeEntry.isNull()); } while (!timeEntry.isNull());
// Add end of day. // Add end of day.
insertItem( KGlobal::locale()->formatTime( TQTime( 23, 59, 59 ) ) ); insertItem( TDEGlobal::locale()->formatTime( TQTime( 23, 59, 59 ) ) );
updateText(); updateText();
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQ_StrongFocus);
@ -151,7 +151,7 @@ TQTime KTimeEdit::getTime() const
//kdDebug(5300) << "KTimeEdit::getTime(), currentText() = " << currentText() << endl; //kdDebug(5300) << "KTimeEdit::getTime(), currentText() = " << currentText() << endl;
// TODO use KLocale::WithoutSeconds in HEAD // TODO use KLocale::WithoutSeconds in HEAD
bool ok = false; bool ok = false;
TQTime time = KGlobal::locale()->readTime( currentText(), KLocale::WithoutSeconds, &ok ); TQTime time = TDEGlobal::locale()->readTime( currentText(), KLocale::WithoutSeconds, &ok );
if ( !ok ) { if ( !ok ) {
// Also try to accept times in "military format", i.e. no delimiter, like 1200 // Also try to accept times in "military format", i.e. no delimiter, like 1200
int tm = currentText().toInt( &ok ); int tm = currentText().toInt( &ok );
@ -257,7 +257,7 @@ void KTimeEdit::keyPressEvent(TQKeyEvent *qke)
void KTimeEdit::updateText() void KTimeEdit::updateText()
{ {
// kdDebug(5300) << "KTimeEdit::updateText() " << endl; // kdDebug(5300) << "KTimeEdit::updateText() " << endl;
TQString s = KGlobal::locale()->formatTime(mTime); TQString s = TDEGlobal::locale()->formatTime(mTime);
// Set the text but without emitting signals, nor losing the cursor position // Set the text but without emitting signals, nor losing the cursor position
TQLineEdit *line = lineEdit(); TQLineEdit *line = lineEdit();
line->blockSignals(true); line->blockSignals(true);

@ -66,7 +66,7 @@ namespace KPIM {
mPluginMap.clear(); mPluginMap.clear();
const TQStringList list = const TQStringList list =
KGlobal::dirs()->findAllResources( "data", path, true, true ); TDEGlobal::dirs()->findAllResources( "data", path, true, true );
for ( TQStringList::const_iterator it = list.begin() ; for ( TQStringList::const_iterator it = list.begin() ;
it != list.end() ; ++it ) { it != list.end() ; ++it ) {
KSimpleConfig config( *it, true ); KSimpleConfig config( *it, true );

@ -260,7 +260,7 @@ ProgressDialog::ProgressDialog( TQWidget* alignWidget, TQWidget* parent, const c
pbClose->setAutoRaise(true); pbClose->setAutoRaise(true);
pbClose->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); pbClose->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
pbClose->setFixedSize( 16, 16 ); pbClose->setFixedSize( 16, 16 );
pbClose->setIconSet( KGlobal::iconLoader()->loadIconSet( "fileclose", KIcon::Small, 14 ) ); pbClose->setIconSet( TDEGlobal::iconLoader()->loadIconSet( "fileclose", KIcon::Small, 14 ) );
TQToolTip::add( pbClose, i18n( "Hide detailed progress window" ) ); TQToolTip::add( pbClose, i18n( "Hide detailed progress window" ) );
connect(pbClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose())); connect(pbClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
TQWidget* spacer = new TQWidget( rightBox ); // don't let the close button take up all the height TQWidget* spacer = new TQWidget( rightBox ); // don't let the close button take up all the height

@ -57,7 +57,7 @@ RecentAddresses * RecentAddresses::self( KConfig *config)
RecentAddresses::RecentAddresses(KConfig * config) RecentAddresses::RecentAddresses(KConfig * config)
{ {
if ( !config ) if ( !config )
load( KGlobal::config() ); load( TDEGlobal::config() );
else else
load( config ); load( config );
} }

@ -106,7 +106,7 @@ public:
/** /**
* Saves the list of recently used addresses to the configfile. * Saves the list of recently used addresses to the configfile.
* Make sure to call KGlobal::config()->sync() afterwards, to really save. * Make sure to call TDEGlobal::config()->sync() afterwards, to really save.
*/ */
void save( KConfig * ); void save( KConfig * );

@ -67,7 +67,7 @@ void SSLLabel::setState( State state )
case Encrypted: case Encrypted:
TQToolTip::remove( this ); TQToolTip::remove( this );
TQToolTip::add( this, i18n("Connection is encrypted") ); TQToolTip::add( this, i18n("Connection is encrypted") );
setPixmap( SmallIcon( "encrypted", KGlobal::instance() ) ); setPixmap( SmallIcon( "encrypted", TDEGlobal::instance() ) );
show(); show();
break; break;
case Unencrypted: case Unencrypted:

@ -971,6 +971,6 @@ extern "C"
KDE_EXPORT KMail::Interface::BodyPartFormatterPlugin * KDE_EXPORT KMail::Interface::BodyPartFormatterPlugin *
libkmail_bodypartformatter_text_calendar_create_bodypart_formatter_plugin() libkmail_bodypartformatter_text_calendar_create_bodypart_formatter_plugin()
{ {
KGlobal::locale()->insertCatalogue( "kmail_text_calendar_plugin" ); TDEGlobal::locale()->insertCatalogue( "kmail_text_calendar_plugin" );
return new Plugin(); return new Plugin();
} }

@ -270,7 +270,7 @@ namespace {
extern "C" extern "C"
KDE_EXPORT KMail::Interface::BodyPartFormatterPlugin * KDE_EXPORT KMail::Interface::BodyPartFormatterPlugin *
libkmail_bodypartformatter_text_vcard_create_bodypart_formatter_plugin() { libkmail_bodypartformatter_text_vcard_create_bodypart_formatter_plugin() {
KGlobal::locale()->insertCatalogue( "kmail_text_vcard_plugin" ); TDEGlobal::locale()->insertCatalogue( "kmail_text_vcard_plugin" );
return new Plugin(); return new Plugin();
} }

@ -44,7 +44,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -44,7 +44,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -45,7 +45,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -44,7 +44,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -23,7 +23,7 @@ int main( int argc, char **argv )
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -51,7 +51,7 @@ OverViewPage::OverViewPage( TQWidget *parent, const char *name )
layout->addMultiCellWidget( label, 0, 0, 0, 2 ); layout->addMultiCellWidget( label, 0, 0, 0, 2 );
label = new TQLabel( this ); label = new TQLabel( this );
label->setPixmap( KGlobal::iconLoader()->loadIcon( "network", KIcon::Desktop ) ); label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "network", KIcon::Desktop ) );
layout->addWidget( label, 0, 3 ); layout->addWidget( label, 0, 3 );
label = new TQLabel( "", this ); label = new TQLabel( "", this );

@ -44,7 +44,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -44,7 +44,7 @@ int main(int argc,char **argv)
TDEApplication app; TDEApplication app;
KGlobal::locale()->insertCatalogue( "libtdepim" ); TDEGlobal::locale()->insertCatalogue( "libtdepim" );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

Loading…
Cancel
Save