Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent e6aaa3624c
commit f8069e2ea0

@ -598,7 +598,7 @@
2003-01-11 André Wöbbeking <Woebbeking@kde.org>
* Moved colors from UpdateViewItem to UpdateView:
o it's faster as you don't need KConfig in UpdateViewItem ctor
o it's faster as you don't need TDEConfig in UpdateViewItem ctor
o it needs less memory (3 colors per item)
2003-01-09 Christian Loose <christian.loose@hamburg.de>
@ -750,7 +750,7 @@
* Mark files with option -kb with a binary icon
* Fixed restoration of the last loaded sandbox
* Use different instance names for part and shell,
otherwise KConfig get messed up
otherwise TDEConfig get messed up
2002-06-26 Bernd Gehrmann <bernd@mail.berlios.de>

@ -32,7 +32,7 @@
#include <knuminput.h>
AddRepositoryDialog::AddRepositoryDialog(KConfig& cfg, const TQString& repo,
AddRepositoryDialog::AddRepositoryDialog(TDEConfig& cfg, const TQString& repo,
TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, i18n("Add Repository"),
Ok | Cancel, Ok, true)
@ -114,7 +114,7 @@ void AddRepositoryDialog::setCompression(int compression)
{
if( compression < 0 )
{
// TODO: use KConfigXT to retrieve default compression level
// TODO: use TDEConfigXT to retrieve default compression level
m_compressionLevel->setValue(0);
m_useDifferentCompression->setChecked(false);
}

@ -25,7 +25,7 @@
#include <kdialogbase.h>
class TQCheckBox;
class KConfig;
class TDEConfig;
class KIntNumInput;
class KLineEdit;
@ -36,7 +36,7 @@ class AddRepositoryDialog : public KDialogBase
public:
AddRepositoryDialog(KConfig& cfg, const TQString& repo, TQWidget* parent = 0,
AddRepositoryDialog(TDEConfig& cfg, const TQString& repo, TQWidget* parent = 0,
const char* name = 0);
virtual ~AddRepositoryDialog();
@ -63,7 +63,7 @@ private:
TQCheckBox* m_useDifferentCompression;
TQCheckBox* m_retrieveCvsignoreFile;
KIntNumInput* m_compressionLevel;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -23,7 +23,7 @@
#include "annotateview.h"
AnnotateDialog::AnnotateDialog(KConfig& cfg, TQWidget *parent, const char *name)
AnnotateDialog::AnnotateDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, false, TQString(),
Close | Help, Close, true)
, partConfig(cfg)

@ -27,7 +27,7 @@
class AnnotateView;
class TQDate;
class KConfig;
class TDEConfig;
namespace Cervisia
{
@ -39,7 +39,7 @@ class AnnotateDialog : public KDialogBase
{
public:
explicit AnnotateDialog( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit AnnotateDialog( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~AnnotateDialog();
@ -48,7 +48,7 @@ public:
private:
AnnotateView *annotate;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -140,7 +140,7 @@ int AnnotateViewItem::width(const TQFontMetrics &fm, const TQListView *, int col
caused by a bug in TQHeader::adjustHeaderSize() in TQt <= 3.0.4.
*/
AnnotateView::AnnotateView(KConfig &cfg, TQWidget *parent, const char *name)
AnnotateView::AnnotateView(TDEConfig &cfg, TQWidget *parent, const char *name)
: TQListView(parent, name, WRepaintNoErase | WResizeNoErase)
{
setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
@ -162,7 +162,7 @@ AnnotateView::AnnotateView(KConfig &cfg, TQWidget *parent, const char *name)
connect(toolTip, TQT_SIGNAL(queryToolTip(const TQPoint&, TQRect&, TQString&)),
this, TQT_SLOT(slotQueryToolTip(const TQPoint&, TQRect&, TQString&)));
KConfigGroupSaver cs(&cfg, "LookAndFeel");
TDEConfigGroupSaver cs(&cfg, "LookAndFeel");
setFont(cfg.readFontEntry("AnnotateFont"));
}

@ -25,7 +25,7 @@
#include <tqlistview.h>
class KConfig;
class TDEConfig;
namespace Cervisia
@ -41,7 +41,7 @@ class AnnotateView : public TQListView
public:
explicit AnnotateView( KConfig &cfg, TQWidget *parent=0, const char *name=0 );
explicit AnnotateView( TDEConfig &cfg, TQWidget *parent=0, const char *name=0 );
void addLine(const Cervisia::LogInfo& logInfo, const TQString& content,
bool odd);

@ -121,7 +121,7 @@ CervisiaPart::CervisiaPart( TQWidget *parentWidget, const char *widgetName,
cvsService = new CvsService_stub(appId, "CvsService");
// Create UI
KConfig *conf = config();
TDEConfig *conf = config();
conf->setGroup("LookAndFeel");
bool splitHorz = conf->readBoolEntry("SplitHorizontally",true);
@ -176,7 +176,7 @@ CervisiaPart::~CervisiaPart()
writeSettings();
}
KConfig *CervisiaPart::config()
TDEConfig *CervisiaPart::config()
{
return CervisiaFactory::instance()->config();
}
@ -184,7 +184,7 @@ KConfig *CervisiaPart::config()
bool CervisiaPart::openURL( const KURL &u )
{
// support url protocols like system:// or home://
KURL url = KIO::NetAccess::mostLocalURL(u, widget());
KURL url = TDEIO::NetAccess::mostLocalURL(u, widget());
// right now, we are unfortunately not network-aware
if( !url.isLocalFile() )
@ -975,7 +975,7 @@ void CervisiaPart::slotCommit()
while (recentCommits.count() > 50)
recentCommits.remove( recentCommits.last() );
KConfig* conf = config();
TDEConfig* conf = config();
conf->setGroup( "CommitLogs" );
conf->writeEntry( sandbox, recentCommits, COMMIT_SPLIT_CHAR );
}
@ -1628,7 +1628,7 @@ void CervisiaPart::slotDoCVSEdit()
void CervisiaPart::slotConfigure()
{
KConfig *conf = config();
TDEConfig *conf = config();
SettingsDialog *l = new SettingsDialog( conf, widget() );
l->exec();
@ -1755,7 +1755,7 @@ bool CervisiaPart::openSandbox(const TQString &dirname)
update->openDirectory(sandbox);
setFilter();
KConfig *conf = config();
TDEConfig *conf = config();
conf->setGroup("General");
bool dostatus = conf->readBoolEntry(repository.contains(":")?
"StatusForRemoteRepos" :
@ -1767,7 +1767,7 @@ bool CervisiaPart::openSandbox(const TQString &dirname)
slotStatus();
}
//load the recentCommits for this app from the KConfig app
//load the recentCommits for this app from the TDEConfig app
conf->setGroup( "CommitLogs" );
recentCommits = conf->readListEntry( sandbox, COMMIT_SPLIT_CHAR );
@ -1808,12 +1808,12 @@ void CervisiaPart::setFilter()
void CervisiaPart::readSettings()
{
KConfig* config = CervisiaFactory::instance()->config();
TDEConfig* config = CervisiaFactory::instance()->config();
config->setGroup("Session");
recent->loadEntries( config );
// Unfortunately, the KConfig systems sucks and we have to live
// Unfortunately, the TDEConfig systems sucks and we have to live
// with all entries in one group for session management.
opt_createDirs = config->readBoolEntry("Create Dirs", true);
@ -1872,7 +1872,7 @@ void CervisiaPart::readSettings()
void CervisiaPart::writeSettings()
{
KConfig* config = CervisiaFactory::instance()->config();
TDEConfig* config = CervisiaFactory::instance()->config();
config->setGroup("Session");
recent->saveEntries( config );

@ -63,7 +63,7 @@ public:
/**
* Get the config object for the part's instance.
*/
static KConfig *config();
static TDEConfig *config();
TQString sandBox() const { return sandbox; }

@ -177,7 +177,7 @@ bool CervisiaShell::queryExit()
}
void CervisiaShell::readProperties(KConfig* config)
void CervisiaShell::readProperties(TDEConfig* config)
{
m_lastOpenDir = config->readPathEntry("Current Directory");
@ -188,7 +188,7 @@ void CervisiaShell::readProperties(KConfig* config)
}
void CervisiaShell::saveProperties(KConfig* config)
void CervisiaShell::saveProperties(TDEConfig* config)
{
// Save current working directory (if part was created)
if( m_part )
@ -203,7 +203,7 @@ void CervisiaShell::saveProperties(KConfig* config)
void CervisiaShell::readSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
config->setGroup("Session");
readProperties(config);
@ -212,7 +212,7 @@ void CervisiaShell::readSettings()
void CervisiaShell::writeSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
config->setGroup("Session");
saveProperties(config);

@ -53,8 +53,8 @@ protected:
void setupActions();
bool queryExit();
virtual void readProperties(KConfig* config);
virtual void saveProperties(KConfig* config);
virtual void readProperties(TDEConfig* config);
virtual void saveProperties(TDEConfig* config);
private:
void readSettings();

@ -40,7 +40,7 @@ static inline TQString DateStringISO8601()
ChangeLogDialog::Options *ChangeLogDialog::options = 0;
ChangeLogDialog::ChangeLogDialog(KConfig& cfg, TQWidget *parent, const char *name)
ChangeLogDialog::ChangeLogDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Edit ChangeLog"),
Ok | Cancel, Ok, true)
, partConfig(cfg)
@ -118,7 +118,7 @@ bool ChangeLogDialog::readFile(const TQString &filename)
f.close();
}
KConfigGroupSaver cs(&partConfig, "General");
TDEConfigGroupSaver cs(&partConfig, "General");
const TQString username = partConfig.readEntry("Username", Cervisia::UserName());
edit->insertParagraph("", 0);

@ -25,13 +25,13 @@
#include <kdialogbase.h>
class KTextEdit;
class KConfig;
class TDEConfig;
class ChangeLogDialog : public KDialogBase
{
public:
explicit ChangeLogDialog( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit ChangeLogDialog( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~ChangeLogDialog();
@ -49,7 +49,7 @@ private:
TQString fname;
KTextEdit *edit;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -42,7 +42,7 @@
using Cervisia::IsValidTag;
CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service,
CheckoutDialog::CheckoutDialog(TDEConfig& cfg, CvsService_stub* service,
ActionType action, TQWidget* parent,
const char* name)
: KDialogBase(parent, name, true, TQString(),
@ -415,7 +415,7 @@ void CheckoutDialog::branchButtonClicked()
void CheckoutDialog::restoreUserInput()
{
KConfigGroupSaver cs(&partConfig, "CheckoutDialog");
TDEConfigGroupSaver cs(&partConfig, "CheckoutDialog");
repo_combo->setEditText(partConfig.readEntry("Repository"));
workdir_edit->setText(partConfig.readPathEntry("Working directory"));
@ -441,7 +441,7 @@ void CheckoutDialog::restoreUserInput()
void CheckoutDialog::saveUserInput()
{
KConfigGroupSaver cs(&partConfig, "CheckoutDialog");
TDEConfigGroupSaver cs(&partConfig, "CheckoutDialog");
partConfig.writeEntry("Repository", repository());
partConfig.writeEntry("Module", module());

@ -27,7 +27,7 @@
class TQCheckBox;
class TQComboBox;
class KConfig;
class TDEConfig;
class KLineEdit;
class CvsService_stub;
@ -40,7 +40,7 @@ class CheckoutDialog : public KDialogBase
public:
enum ActionType { Checkout, Import };
CheckoutDialog( KConfig& cfg, CvsService_stub* service, ActionType action,
CheckoutDialog( TDEConfig& cfg, CvsService_stub* service, ActionType action,
TQWidget *parent=0, const char *name=0 );
TQString workingDirectory() const;
@ -77,7 +77,7 @@ private:
TQCheckBox *binary_box, *export_box, *recursive_box;
TQCheckBox* m_useModificationTimeBox;
ActionType act;
KConfig& partConfig;
TDEConfig& partConfig;
CvsService_stub *cvsService;
};

@ -52,7 +52,7 @@ private:
};
CommitDialog::CommitDialog(KConfig& cfg, CvsService_stub* service,
CommitDialog::CommitDialog(TDEConfig& cfg, CvsService_stub* service,
TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("CVS Commit"),
Ok | Cancel | Help | User1, Ok, true)
@ -119,7 +119,7 @@ CommitDialog::~CommitDialog()
{
saveDialogSize(partConfig, "CommitDialog");
KConfigGroupSaver cs(&partConfig, "CommitDialog");
TDEConfigGroupSaver cs(&partConfig, "CommitDialog");
partConfig.writeEntry("UseTemplate", m_useTemplateChk->isChecked());
}
@ -286,7 +286,7 @@ void CommitDialog::checkForTemplateFile()
f.close();
m_useTemplateChk->setEnabled(true);
KConfigGroupSaver cs(&partConfig, "CommitDialog");
TDEConfigGroupSaver cs(&partConfig, "CommitDialog");
bool check = partConfig.readBoolEntry("UseTemplate", true);
m_useTemplateChk->setChecked(check);

@ -30,7 +30,7 @@ namespace Cervisia { class LogMessageEdit; }
class TQComboBox;
class TQCheckBox;
class KListView;
class KConfig;
class TDEConfig;
class CvsService_stub;
@ -40,7 +40,7 @@ class CommitDialog : public KDialogBase
public:
CommitDialog( KConfig& cfg, CvsService_stub* service, TQWidget *parent=0,
CommitDialog( TDEConfig& cfg, CvsService_stub* service, TQWidget *parent=0,
const char *name=0 );
virtual ~CommitDialog();
@ -75,7 +75,7 @@ private:
TQCheckBox* m_useTemplateChk;
TQString m_templateText;
KConfig& partConfig;
TDEConfig& partConfig;
CvsService_stub* cvsService; // for diff dialog
};

@ -86,8 +86,8 @@ CvsService::CvsService()
d->cvsJobs.setAutoDelete(true);
d->loginJobs.setAutoDelete(true);
KConfig* config = kapp->config();
KConfigGroupSaver cs(config, "General");
TDEConfig* config = kapp->config();
TDEConfigGroupSaver cs(config, "General");
if( config->readBoolEntry("UseSshAgent", false) )
{
// use the existing or start a new ssh-agent

@ -201,7 +201,7 @@ void Repository::slotConfigDirty(const TQString& fileName)
void Repository::Private::readGeneralConfig()
{
KConfig* config = kapp->config();
TDEConfig* config = kapp->config();
// get path to cvs client programm
config->setGroup("General");
@ -211,7 +211,7 @@ void Repository::Private::readGeneralConfig()
void Repository::Private::readConfig()
{
KConfig* config = kapp->config();
TDEConfig* config = kapp->config();
// Sometimes the location can be unequal to the entry in the CVS/Root.
//
@ -251,7 +251,7 @@ void Repository::Private::readConfig()
// use default global compression level instead?
if( compressionLevel < 0 )
{
KConfigGroupSaver cs(config, "General");
TDEConfigGroupSaver cs(config, "General");
compressionLevel = config->readNumEntry("Compression", 0);
}

@ -41,7 +41,7 @@
#include "diffview.h"
DiffDialog::DiffDialog(KConfig& cfg, TQWidget *parent, const char *name, bool modal)
DiffDialog::DiffDialog(TDEConfig& cfg, TQWidget *parent, const char *name, bool modal)
: KDialogBase(parent, name, modal, TQString(),
Close | Help | User1, Close, true, KStdGuiItem::saveAs())
, partConfig(cfg)
@ -118,7 +118,7 @@ DiffDialog::DiffDialog(KConfig& cfg, TQWidget *parent, const char *name, bool mo
TQSize size = configDialogSize(partConfig, "DiffDialog");
resize(size);
KConfigGroupSaver cs(&partConfig, "DiffDialog");
TDEConfigGroupSaver cs(&partConfig, "DiffDialog");
syncbox->setChecked(partConfig.readBoolEntry("Sync"));
}
@ -127,7 +127,7 @@ DiffDialog::~DiffDialog()
{
saveDialogSize(partConfig, "DiffDialog");
KConfigGroupSaver cs(&partConfig, "DiffDialog");
TDEConfigGroupSaver cs(&partConfig, "DiffDialog");
partConfig.writeEntry("Sync", syncbox->isChecked());
}
@ -230,7 +230,7 @@ bool DiffDialog::parseCvsDiff(CvsService_stub* service, const TQString& fileName
i18n("Working dir:")
: i18n("Revision ")+revB+":" );
KConfigGroupSaver cs(&partConfig, "General");
TDEConfigGroupSaver cs(&partConfig, "General");
// Ok, this is a hack: When the user wants an external diff
// front end, it is executed from here. Of course, in that

@ -28,7 +28,7 @@
class TQLabel;
class TQCheckBox;
class TQComboBox;
class KConfig;
class TDEConfig;
class DiffItem;
class DiffView;
class CvsService_stub;
@ -41,7 +41,7 @@ class DiffDialog : public KDialogBase
public:
explicit DiffDialog( KConfig& config, TQWidget *parent=0, const char *name=0,
explicit DiffDialog( TDEConfig& config, TQWidget *parent=0, const char *name=0,
bool modal=false );
virtual ~DiffDialog();
@ -76,7 +76,7 @@ private:
TQPtrList<DiffItem> items;
int markeditem;
KConfig& partConfig;
TDEConfig& partConfig;
TQStringList m_diffOutput;
};

@ -53,7 +53,7 @@ int DiffViewItemList::compareItems(TQPtrCollection::Item item1, TQPtrCollection:
const int DiffView::BORDER = 7;
DiffView::DiffView( KConfig& cfg, bool withlinenos, bool withmarker,
DiffView::DiffView( TDEConfig& cfg, bool withlinenos, bool withmarker,
TQWidget *parent, const char *name )
: QtTableView(parent, name, WRepaintNoErase)
, partConfig(cfg)
@ -388,7 +388,7 @@ void DiffView::wheelEvent(TQWheelEvent *e)
}
DiffZoomWidget::DiffZoomWidget(KConfig& cfg, TQWidget *parent, const char *name)
DiffZoomWidget::DiffZoomWidget(TDEConfig& cfg, TQWidget *parent, const char *name)
: TQFrame(parent, name)
{
setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum ) );

@ -28,7 +28,7 @@
#include <tqptrlist.h>
class KConfig;
class TDEConfig;
class DiffViewItem;
@ -47,7 +47,7 @@ class DiffView : public QtTableView
public:
enum DiffType { Change, Insert, Delete, Neutral, Unchanged, Separator };
DiffView( KConfig& cfg, bool withlinenos, bool withmarker,
DiffView( TDEConfig& cfg, bool withlinenos, bool withmarker,
TQWidget *parent=0, const char *name=0 );
void setPartner(DiffView *other);
@ -98,7 +98,7 @@ private:
TQColor diffDeleteColor;
int m_tabWidth;
KConfig& partConfig;
TDEConfig& partConfig;
};
@ -108,7 +108,7 @@ class DiffZoomWidget : public TQFrame
public:
DiffZoomWidget(KConfig& cfg, TQWidget *parent=0, const char *name=0);
DiffZoomWidget(TDEConfig& cfg, TQWidget *parent=0, const char *name=0);
~DiffZoomWidget();
void setDiffView(DiffView *view);

@ -138,7 +138,7 @@ bool HistoryItem::isOther()
}
HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name)
HistoryDialog::HistoryDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, false, TQString(),
Close | Help, ButtonCode(0), true)
, partConfig(cfg)

@ -26,7 +26,7 @@
class TQCheckBox;
class KConfig;
class TDEConfig;
class KLineEdit;
class KListView;
class CvsService_stub;
@ -38,7 +38,7 @@ class HistoryDialog : public KDialogBase
public:
explicit HistoryDialog( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit HistoryDialog( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~HistoryDialog();
bool parseHistory(CvsService_stub* cvsService);
@ -52,7 +52,7 @@ private:
TQCheckBox *commit_box, *checkout_box, *tag_box, *other_box;
TQCheckBox *onlyuser_box, *onlyfilenames_box, *onlydirnames_box;
KLineEdit *user_edit, *filename_edit, *dirname_edit;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -57,7 +57,7 @@
#include "patchoptiondlg.h"
LogDialog::LogDialog(KConfig& cfg, TQWidget *parent, const char *name)
LogDialog::LogDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, false, TQString(),
Ok | Apply | Close | Help | User1 | User2 | User3, Close, true,
KGuiItem(i18n("&Annotate")),
@ -204,7 +204,7 @@ LogDialog::LogDialog(KConfig& cfg, TQWidget *parent, const char *name)
TQSize size = configDialogSize(partConfig, "LogDialog");
resize(size);
KConfigGroupSaver cs(&partConfig, "LogDialog");
TDEConfigGroupSaver cs(&partConfig, "LogDialog");
tabWidget->setCurrentPage(partConfig.readNumEntry("ShowTab", 0));
updateButtons();
@ -215,7 +215,7 @@ LogDialog::~LogDialog()
{
saveDialogSize(partConfig, "LogDialog");
KConfigGroupSaver cs(&partConfig, "LogDialog");
TDEConfigGroupSaver cs(&partConfig, "LogDialog");
partConfig.writeEntry("ShowTab", tabWidget->currentPageIndex());
}

@ -32,7 +32,7 @@ class LogListView;
class LogTreeView;
class LogPlainView;
class KConfig;
class TDEConfig;
class TQComboBox;
class TQLabel;
@ -55,7 +55,7 @@ class LogDialog : public KDialogBase
public:
explicit LogDialog( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit LogDialog( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~LogDialog();
@ -95,7 +95,7 @@ private:
TQComboBox *tagcombo[2];
CvsService_stub* cvsService;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -106,7 +106,7 @@ int LogListViewItem::compare(TQListViewItem* i, int col, bool ascending) const
}
LogListView::LogListView(KConfig& cfg, TQWidget *parent, const char *name)
LogListView::LogListView(TDEConfig& cfg, TQWidget *parent, const char *name)
: KListView(parent, name)
, partConfig(cfg)
{

@ -25,7 +25,7 @@
#include <klistview.h>
class KConfig;
class TDEConfig;
class TipLabel;
class LogListViewItem;
@ -42,7 +42,7 @@ class LogListView : public KListView
public:
explicit LogListView( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit LogListView( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~LogListView();
void addRevision(const Cervisia::LogInfo& logInfo);
@ -61,7 +61,7 @@ private slots:
private:
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -22,7 +22,7 @@
#include <ktextbrowser.h>
class KConfig;
class TDEConfig;
class KFind;
namespace Cervisia

@ -62,7 +62,7 @@ static CvsService_stub* StartDCOPService(const TQString& directory)
static int ShowResolveDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
TDEConfig* config = new TDEConfig("cervisiapartrc");
ResolveDialog* dlg = new ResolveDialog(*config);
kapp->setMainWidget(dlg);
@ -81,7 +81,7 @@ static int ShowResolveDialog(const TQString& fileName)
static int ShowLogDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
TDEConfig* config = new TDEConfig("cervisiapartrc");
LogDialog* dlg = new LogDialog(*config);
kapp->setMainWidget(dlg);
@ -111,7 +111,7 @@ static int ShowLogDialog(const TQString& fileName)
static int ShowAnnotateDialog(const TQString& fileName)
{
KConfig* config = new KConfig("cervisiapartrc");
TDEConfig* config = new TDEConfig("cervisiapartrc");
AnnotateDialog* dlg = new AnnotateDialog(*config);
kapp->setMainWidget(dlg);

@ -26,7 +26,7 @@
class TQString;
class TQStringList;
class TQWidget;
class KConfig;
class TDEConfig;
class CvsService_stub;

@ -42,7 +42,7 @@ ProtocolView::ProtocolView(const TQCString& appId, TQWidget *parent, const char
setTabChangesFocus(true);
setTextFormat(TQt::LogText);
KConfig *config = CervisiaPart::config();
TDEConfig *config = CervisiaPart::config();
config->setGroup("LookAndFeel");
setFont(config->readFontEntry("ProtocolFont"));

@ -111,7 +111,7 @@ TQStringList Repositories::readConfigFile()
{
TQStringList list;
KConfig *config = CervisiaPart::config();
TDEConfig *config = CervisiaPart::config();
config->setGroup("Repositories");
list = config->readListEntry("Repos");

@ -152,7 +152,7 @@ void RepositoryListItem::changeLoginStatusColumn()
}
RepositoryDialog::RepositoryDialog(KConfig& cfg, CvsService_stub* cvsService,
RepositoryDialog::RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService,
TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, i18n("Configure Access to Repositories"),
Ok | Cancel | Help, Ok, true)
@ -204,7 +204,7 @@ RepositoryDialog::RepositoryDialog(KConfig& cfg, CvsService_stub* cvsService,
this, TQT_SLOT(slotLogoutClicked()) );
// open cvs DCOP service configuration file
m_serviceConfig = new KConfig("cvsservicerc");
m_serviceConfig = new TDEConfig("cvsservicerc");
readCvsPassFile();
readConfigFile();

@ -27,7 +27,7 @@
class TQListViewItem;
class TQPushButton;
class KConfig;
class TDEConfig;
class KListView;
class CvsService_stub;
class RepositoryListItem;
@ -39,7 +39,7 @@ class RepositoryDialog : public KDialogBase
public:
RepositoryDialog(KConfig& cfg, CvsService_stub* cvsService,
RepositoryDialog(TDEConfig& cfg, CvsService_stub* cvsService,
TQWidget* parent = 0, const char* name = 0);
virtual ~RepositoryDialog();
@ -62,9 +62,9 @@ private:
void writeRepositoryData(RepositoryListItem* item);
private:
KConfig& m_partConfig;
TDEConfig& m_partConfig;
CvsService_stub* m_cvsService;
KConfig* m_serviceConfig;
TDEConfig* m_serviceConfig;
KListView* m_repoList;
TQPushButton* m_modifyButton;
TQPushButton* m_removeButton;

@ -95,7 +95,7 @@ private:
}
ResolveDialog::ResolveDialog(KConfig& cfg, TQWidget *parent, const char *name)
ResolveDialog::ResolveDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, false, TQString(),
Close | Help | User1 | User2, Close, true,
KStdGuiItem::saveAs(), KStdGuiItem::save())

@ -31,7 +31,7 @@
class TQLabel;
class TQTextCodec;
class KConfig;
class TDEConfig;
class ResolveItem;
@ -43,7 +43,7 @@ class ResolveDialog : public KDialogBase
public:
enum ChooseType { ChA, ChB, ChAB, ChBA, ChEdit };
explicit ResolveDialog( KConfig& cfg, TQWidget *parent=0, const char *name=0 );
explicit ResolveDialog( TDEConfig& cfg, TQWidget *parent=0, const char *name=0 );
virtual ~ResolveDialog();
bool parseFile(const TQString &name);
@ -85,7 +85,7 @@ private:
TQString fname;
TQTextCodec *fcodec;
int markeditem;
KConfig& partConfig;
TDEConfig& partConfig;
TQString m_contentMergedVersion;
};

@ -22,7 +22,7 @@ using namespace Cervisia;
#include <ktextedit.h>
ResolveEditorDialog::ResolveEditorDialog(KConfig& cfg, TQWidget *parent, const char *name)
ResolveEditorDialog::ResolveEditorDialog(TDEConfig& cfg, TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, TQString(),
Ok | Cancel, Ok, true)
, m_partConfig(cfg)

@ -23,7 +23,7 @@
class KTextEdit;
class TQStringList;
class KConfig;
class TDEConfig;
namespace Cervisia
@ -33,7 +33,7 @@ namespace Cervisia
class ResolveEditorDialog : public KDialogBase
{
public:
explicit ResolveEditorDialog(KConfig& cfg, TQWidget* parent=0, const char* name=0);
explicit ResolveEditorDialog(TDEConfig& cfg, TQWidget* parent=0, const char* name=0);
virtual ~ResolveEditorDialog();
void setContent(const TQString& text);
@ -41,7 +41,7 @@ public:
private:
KTextEdit* m_edit;
KConfig& m_partConfig;
TDEConfig& m_partConfig;
};

@ -77,7 +77,7 @@ void FontButton::chooseFont()
}
SettingsDialog::SettingsDialog( KConfig *conf, TQWidget *parent, const char *name )
SettingsDialog::SettingsDialog( TDEConfig *conf, TQWidget *parent, const char *name )
: KDialogBase(KDialogBase::IconList, i18n("Configure Cervisia"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help,
KDialogBase::Ok,
@ -86,7 +86,7 @@ SettingsDialog::SettingsDialog( KConfig *conf, TQWidget *parent, const char *nam
config = conf;
// open cvs DCOP service configuration file
serviceConfig = new KConfig("cvsservicerc");
serviceConfig = new TDEConfig("cvsservicerc");
//
// General Options

@ -29,7 +29,7 @@
class TQCheckBox;
class KIntNumInput;
class KLineEdit;
class KConfig;
class TDEConfig;
class KColorButton;
class KURLRequester;
class AdvancedPage;
@ -54,7 +54,7 @@ class SettingsDialog : public KDialogBase
public:
SettingsDialog( KConfig *conf, TQWidget *parent=0, const char *name=0 );
SettingsDialog( TDEConfig *conf, TQWidget *parent=0, const char *name=0 );
virtual ~SettingsDialog();
protected slots:
@ -70,7 +70,7 @@ private:
void addAdvancedPage();
void addLookAndFeelPage();
KConfig *config;
TDEConfig *config;
KIntNumInput *contextedit;
KIntNumInput *tabwidthedit;
KURLRequester *cvspathedit;
@ -95,7 +95,7 @@ private:
TQCheckBox* m_splitterBox;
AdvancedPage* m_advancedPage;
KConfig* serviceConfig;
TDEConfig* serviceConfig;
};
#endif

@ -38,7 +38,7 @@ using Cervisia::Entry;
using Cervisia::EntryStatus;
UpdateView::UpdateView(KConfig& partConfig, TQWidget *parent, const char *name)
UpdateView::UpdateView(TDEConfig& partConfig, TQWidget *parent, const char *name)
: KListView(parent, name),
m_partConfig(partConfig),
m_unfoldingTree(false)
@ -531,7 +531,7 @@ void UpdateView::syncSelection()
*/
void UpdateView::updateColors()
{
KConfigGroupSaver cs(&m_partConfig, "Colors");
TDEConfigGroupSaver cs(&m_partConfig, "Colors");
m_partConfig.setGroup("Colors");
TQColor defaultColor = TQColor(255, 130, 130);

@ -29,7 +29,7 @@
#include "entry.h"
class KConfig;
class TDEConfig;
class UpdateView : public KListView
@ -43,7 +43,7 @@ public:
NoRemoved=4, NoNotInCVS=8 , NoEmptyDirectories = 16 };
enum Action { Add, Remove, Update, UpdateNoAct, Commit };
explicit UpdateView(KConfig& partConfig, TQWidget *parent=0, const char *name=0);
explicit UpdateView(TDEConfig& partConfig, TQWidget *parent=0, const char *name=0);
virtual ~UpdateView();
@ -93,7 +93,7 @@ private:
void updateColors();
KConfig& m_partConfig;
TDEConfig& m_partConfig;
Filter filt;
Action act;

@ -30,7 +30,7 @@
#include "progressdlg.h"
WatchersDialog::WatchersDialog(KConfig& cfg, TQWidget* parent, const char* name)
WatchersDialog::WatchersDialog(TDEConfig& cfg, TQWidget* parent, const char* name)
: KDialogBase(parent, name, false, TQString(),
Close, ButtonCode(0), true)
, partConfig(cfg)

@ -24,14 +24,14 @@
#include <kdialogbase.h>
class TQTable;
class KConfig;
class TDEConfig;
class CvsService_stub;
class WatchersDialog : public KDialogBase
{
public:
explicit WatchersDialog(KConfig& cfg, TQWidget* parent = 0,
explicit WatchersDialog(TDEConfig& cfg, TQWidget* parent = 0,
const char* name = 0);
virtual ~WatchersDialog();
@ -39,7 +39,7 @@ public:
private:
TQTable* table;
KConfig& partConfig;
TDEConfig& partConfig;
};
#endif

@ -26,7 +26,7 @@ Jul-30-2001 - Kurt Granroth
Jul-06-2001 - Kurt Granroth
o Fixed 'configure toolbar' in part app template
o KIONetAccess is now (and has been for some time) KIO::NetAccess
o KIONetAccess is now (and has been for some time) TDEIO::NetAccess
Jul-05-2001 - Kurt Granroth (v1.0.6)
o KPartApp's part should be in it's own directory. Did it ever work

@ -72,7 +72,7 @@ void ${APP_NAME}::load(const KURL& url)
#if 0
// download the contents
if (KIO::NetAccess::download(url, target))
if (TDEIO::NetAccess::download(url, target))
{
// set our caption
setCaption(url.prettyURL());
@ -81,7 +81,7 @@ void ${APP_NAME}::load(const KURL& url)
loadFile(target);
// and remove the temp file
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
}
#endif
@ -107,7 +107,7 @@ void ${APP_NAME}::setupActions()
actionCollection(), "custom_action");
}
void ${APP_NAME}::saveProperties(KConfig *config)
void ${APP_NAME}::saveProperties(TDEConfig *config)
{
// the 'config' object points to the session managed
// config file. anything you write here will be available
@ -122,7 +122,7 @@ void ${APP_NAME}::saveProperties(KConfig *config)
}
}
void ${APP_NAME}::readProperties(KConfig *config)
void ${APP_NAME}::readProperties(TDEConfig *config)
{
// the 'config' object points to the session managed
// config file. this function is automatically called whenever

@ -55,14 +55,14 @@ protected:
* This function is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties(KConfig *);
void saveProperties(TDEConfig *);
/**
* This function is called when this app is restored. The KConfig
* This function is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
void readProperties(KConfig *);
void readProperties(TDEConfig *);
private slots:

@ -91,14 +91,14 @@ void ${APP_NAME}::setupActions()
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
}
void ${APP_NAME}::saveProperties(KConfig* /*config*/)
void ${APP_NAME}::saveProperties(TDEConfig* /*config*/)
{
// the 'config' object points to the session managed
// config file. anything you write here will be available
// later when this app is restored
}
void ${APP_NAME}::readProperties(KConfig* /*config*/)
void ${APP_NAME}::readProperties(TDEConfig* /*config*/)
{
// the 'config' object points to the session managed
// config file. this function is automatically called whenever

@ -43,14 +43,14 @@ protected:
* This method is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties(KConfig *);
void saveProperties(TDEConfig *);
/**
* This method is called when this app is restored. The KConfig
* This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
void readProperties(KConfig *);
void readProperties(TDEConfig *);
private slots:
void fileNew();

@ -37,7 +37,7 @@ Changes 1.10:
- XLIFF support (Stanislav Visnovsky)
- word count tool (Stanislav Visnovsky)
- projects UI enhancements - recent projects, etc (Stanislav Visnovsky)
- use KConfigXT for projects
- use TDEConfigXT for projects
- Fixed bugs: #91989, #92537, #89710, #88293, #91900
Changes 1.9:

@ -595,7 +595,7 @@ void CatalogManager::saveSettings( TQString configFile )
_project->setSettings( _settings );
config = new KConfig(configFile);
config = new TDEConfig(configFile);
_catalogManager->saveView(config);

@ -58,7 +58,7 @@ class TQPopupMenu;
class TQTimer;
class KProgress;
class KAction;
class KConfig;
class TDEConfig;
class FindInFilesDialog;
namespace KBabel
@ -211,7 +211,7 @@ private:
TQString _configFile;
KBabel::Project::Ptr _project;
KConfig* config;
TDEConfig* config;
TQMap<TQString,uint> actionMap;
};

@ -221,7 +221,7 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
connect( svnhandler, TQT_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
this, TQT_SLOT( updateFiles( const TQStringList& ) ) );
KConfig *config = TDEGlobal::config();
TDEConfig *config = TDEGlobal::config();
restoreView(config);
_dictBox->readSettings(_project->config());
@ -252,18 +252,18 @@ CatalogManagerView::~CatalogManagerView()
}
void CatalogManagerView::saveView( KConfig *config) const
void CatalogManagerView::saveView( TDEConfig *config) const
{
saveMarker(config);
KConfigGroupSaver( config, "CatalogManager" );
TDEConfigGroupSaver( config, "CatalogManager" );
config->writeEntry( "ValidateMarkAsFuzzy", _markAsFuzzy );
config->writeEntry( "ValidateIgnoreFuzzy", _ignoreFuzzy );
}
void CatalogManagerView::restoreView( KConfig *config)
void CatalogManagerView::restoreView( TDEConfig *config)
{
readMarker(config);
@ -439,9 +439,9 @@ void CatalogManagerView::loadMarks()
TQString filename;
#if KDE_IS_VERSION( 3, 2, 90 )
if (!KIO::NetAccess::download( url, filename, this ) )
if (!TDEIO::NetAccess::download( url, filename, this ) )
#else
if( !KIO::NetAccess::download( url, filename ) )
if( !TDEIO::NetAccess::download( url, filename ) )
#endif
{
KMessageBox::error(this,i18n(
@ -483,7 +483,7 @@ void CatalogManagerView::loadMarks()
"Error while trying to open file:\n %1").arg(url.prettyURL()));
}
KIO::NetAccess::removeTempFile( filename );
TDEIO::NetAccess::removeTempFile( filename );
// test validity of list items
TQStringList testedList;
@ -514,7 +514,7 @@ void CatalogManagerView::saveMarks()
if( url2.isEmpty() ) return;
// ### FIXME: why is the file dialog not doing this?
if ( KIO::NetAccess::exists( url2, false, this ) )
if ( TDEIO::NetAccess::exists( url2, false, this ) )
{
if(KMessageBox::warningContinueCancel(this,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url2.prettyURL())),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Cancel)
@ -525,7 +525,7 @@ void CatalogManagerView::saveMarks()
#if KDE_IS_VERSION( 3, 4, 92 )
// Support for partially remote KIO slave like media:
const KURL url ( KIO::NetAccess::mostLocalURL( url2, this ) );
const KURL url ( TDEIO::NetAccess::mostLocalURL( url2, this ) );
#else
const KURL url ( url2 );
#endif
@ -573,7 +573,7 @@ void CatalogManagerView::saveMarks()
else if ( !localFile )
{
tempFile->close();
if( !KIO::NetAccess::upload( tempFile->name(), url, this ) )
if( !TDEIO::NetAccess::upload( tempFile->name(), url, this ) )
{
// ### KDE4 FIXME: strip the final \n of the message
KMessageBox::error(this,
@ -2552,16 +2552,16 @@ void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event)
}
}
void CatalogManagerView::readMarker( KConfig* config)
void CatalogManagerView::readMarker( TDEConfig* config)
{
KConfigGroupSaver cs(config,"CatalogManager");
TDEConfigGroupSaver cs(config,"CatalogManager");
_markerList = config->readListEntry("Marker");
}
void CatalogManagerView::saveMarker( KConfig* config) const
void CatalogManagerView::saveMarker( TDEConfig* config) const
{
KConfigGroupSaver cs(config,"CatalogManager");
TDEConfigGroupSaver cs(config,"CatalogManager");
config->writeEntry("Marker",_markerList);
config->sync();

@ -60,7 +60,7 @@ class KBabelDictBox;
class CatManPreferences;
class TQTextEdit;
class KProgress;
class KConfig;
class TDEConfig;
class KDataToolInfo;
class ValidateProgressDialog;
class CVSHandler;
@ -97,8 +97,8 @@ public:
bool isActive() const {return _active;}
bool isStopped() const {return _stop;}
void restoreView(KConfig *config);
void saveView(KConfig *config) const;
void restoreView(TDEConfig *config);
void saveView(TDEConfig *config) const;
void setRMBMenuFile( TQPopupMenu *m);
void setRMBMenuDir( TQPopupMenu *m);
@ -379,8 +379,8 @@ private slots:
private:
void toggleColumn( uint id, bool show);
void readMarker(KConfig *config);
void saveMarker(KConfig *config) const;
void readMarker(TDEConfig *config);
void saveMarker(TDEConfig *config) const;
/**
* remove marked entries, which are not in the current file list
*/

@ -156,10 +156,10 @@ void FindInFilesDialog::setReplaceOpts(ReplaceOptions options)
void FindInFilesDialog::readSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
if(isReplaceDialog()) {
KConfigGroupSaver cgs(config,"ReplaceDialog");
TDEConfigGroupSaver cgs(config,"ReplaceDialog");
ReplaceOptions options = replaceOpts();
@ -178,7 +178,7 @@ void FindInFilesDialog::readSettings()
FindDialog::setReplaceOpts(options);
}
else {
KConfigGroupSaver cgs(config,"FindDialog");
TDEConfigGroupSaver cgs(config,"FindDialog");
FindOptions options = findOpts();
@ -201,10 +201,10 @@ void FindInFilesDialog::readSettings()
void FindInFilesDialog::saveSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
if(isReplaceDialog()) {
KConfigGroupSaver cgs(config,"ReplaceDialog");
TDEConfigGroupSaver cgs(config,"ReplaceDialog");
ReplaceOptions options = replaceOpts();
config->writeEntry("AllFiles", options.inAllFiles);
@ -214,7 +214,7 @@ void FindInFilesDialog::saveSettings()
config->writeEntry("AskForSave",options.askForSave);
}
else {
KConfigGroupSaver cgs(config,"FindDialog");
TDEConfigGroupSaver cgs(config,"FindDialog");
FindOptions options = findOpts();

@ -140,7 +140,7 @@ void MarkPatternDialog::slotRegexpButtonClicked( )
void MarkPatternDialog::restoreSettings( )
{
KConfig * config = TDEGlobal::config( );
TDEConfig * config = TDEGlobal::config( );
config->setGroup("MarkPatternDialog");
patternList = config->readListEntry("Patterns");
@ -160,7 +160,7 @@ void MarkPatternDialog::restoreSettings( )
void MarkPatternDialog::saveSettings( )
{
KConfig * config = TDEGlobal::config( );
TDEConfig * config = TDEGlobal::config( );
config->setGroup("MarkPatternDialog");
config->writeEntry("Patterns", patternList);

@ -38,7 +38,7 @@ pkginclude_HEADERS = catalog.h catalogitem.h editcmd.h msgfmt.h catalogsettings.
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
# KConfigXT project settings
# TDEConfigXT project settings
kde_kcfg_DATA=kbprojectsettings.kcfg
# service type for the filters

@ -893,7 +893,7 @@ ConversionStatus Catalog::openURL(const KURL& url, const TQString& package)
TQString target;
ConversionStatus error = OK;
if(KIO::NetAccess::download(url, target, NULL))
if(TDEIO::NetAccess::download(url, target, NULL))
{
CatalogImportPlugin* filter=0;
@ -912,7 +912,7 @@ ConversionStatus Catalog::openURL(const KURL& url, const TQString& package)
if( !ptr )
{
kdDebug(KBABEL) << "No plugin for PO files, giving up" << endl;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return NO_PLUGIN;
}
}
@ -922,7 +922,7 @@ ConversionStatus Catalog::openURL(const KURL& url, const TQString& package)
if (!factory)
{
kdDebug(KBABEL) << "No factory" << endl;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return OS_ERROR;
}
@ -997,7 +997,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
TQString target;
ConversionStatus error = OK;
if(KIO::NetAccess::download(openUrl, target, NULL))
if(TDEIO::NetAccess::download(openUrl, target, NULL))
{
CatalogImportPlugin* filter=0;
@ -1010,7 +1010,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
if( !ptr )
{
kdDebug(KBABEL) << "No plugin for this type" << endl;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return NO_PLUGIN;
}
@ -1019,7 +1019,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
if (!factory)
{
kdDebug(KBABEL) << "No factory" << endl;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return OS_ERROR;
}
@ -1047,7 +1047,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
if( error == STOPPED )
{
delete filter;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return STOPPED;
}
@ -1061,7 +1061,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
// KBabel cannot work correctly with not any entry
kdWarning() << k_funcinfo << " No entries! Assuming parse error!" << endl;
delete filter;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return NO_ENTRY_ERROR;
}
@ -1083,7 +1083,7 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
delete filter;
// and remove the temp file
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return error;
}
@ -2004,7 +2004,7 @@ ConversionStatus Catalog::saveFileAs(const KURL &url, bool overwrite)
if(status == OK)
{
if( !KIO::NetAccess::upload( tempFile, targetURL, NULL ) )
if( !TDEIO::NetAccess::upload( tempFile, targetURL, NULL ) )
{
status = OS_ERROR;
}

@ -54,7 +54,7 @@ class KFileInfo;
class TQTextCodec;
class TQFile;
class FindOptions;
class KConfig;
class TDEConfig;
namespace KBabel
{

@ -80,7 +80,7 @@ void KBabelMailer::sendOneFile(const TQString& fileName)
void KBabelMailer::sendOneFile( const KURL& url)
{
#if KDE_IS_VERSION( 3, 5, 0)
const KURL localUrl( KIO::NetAccess::mostLocalURL( url, m_parent ) );
const KURL localUrl( TDEIO::NetAccess::mostLocalURL( url, m_parent ) );
#else
const KURL localUrl( url );
#endif
@ -99,7 +99,7 @@ void KBabelMailer::sendOneFile( const KURL& url)
// ### TODO: the current implementation has the default to possibly overwrite an already existing temporary file
TQString tempName( m_tempDir.name() );
tempName += fileName;
if ( KIO::NetAccess::download( url, tempName, m_parent ) )
if ( TDEIO::NetAccess::download( url, tempName, m_parent ) )
kapp->invokeMailer("", "", "", "", "", "", fileName);
else
{
@ -184,12 +184,12 @@ TQString KBabelMailer::buildArchive(TQStringList fileList, TQString archiveName,
for (it = fileList.constBegin(); it != fileList.constEnd(); ++it) {
#if KDE_IS_VERSION( 3, 5, 0 )
// Try to get a local URL instead of a remote one
const KURL url( KIO::NetAccess::mostLocalURL( KURL::fromPathOrURL( *it ), m_parent ) );
const KURL url( TDEIO::NetAccess::mostLocalURL( KURL::fromPathOrURL( *it ), m_parent ) );
#else
const KURL url( KURL::fromPathOrURL( *it ) );
#endif
TQString poTempName;
if ( !KIO::NetAccess::download( url, poTempName, m_parent ) ) {
if ( !TDEIO::NetAccess::download( url, poTempName, m_parent ) ) {
KMessageBox::error( m_parent, i18n("Error while trying to read file %1.").arg( url.prettyURL() ) );
continue;
}
@ -208,7 +208,7 @@ TQString KBabelMailer::buildArchive(TQStringList fileList, TQString archiveName,
KMessageBox::error( m_parent, i18n("Error while trying to copy file %1 into archive.").arg( url.prettyURL() ) );
}
KIO::NetAccess::removeTempFile(poTempName);
TDEIO::NetAccess::removeTempFile(poTempName);
}
archive.close();
@ -225,7 +225,7 @@ void KBabelMailer::readConfig()
bzipCompression = _settings.useBzip;
singleFileCompression = _settings.compressSingleFile;
KConfig* conf = _project->config();
TDEConfig* conf = _project->config();
conf->setGroup ("Misc");
archiveList = conf->readListEntry("MailArchiveNames");
@ -236,7 +236,7 @@ void KBabelMailer::readConfig()
void KBabelMailer::saveConfig()
{
// For an explanation see readConfig( )
KConfig* _config = _project->config();
TDEConfig* _config = _project->config();
_config->setGroup("Misc");
_config->writeEntry("MailArchiveNames", archiveList);

@ -191,7 +191,7 @@ Project::~Project ()
ProjectManager::remove (this);
}
KConfig* Project::config ()
TDEConfig* Project::config ()
{
return _config;
}
@ -430,7 +430,7 @@ void Project::setSettings (SpellcheckSettings settings)
void Project::setSettings (SourceContextSettings settings)
{
KConfigGroupSaver saver(_config,"SourceContext");
TDEConfigGroupSaver saver(_config,"SourceContext");
_settings->setCodeRoot(settings.codeRoot);
_settings->setPaths(settings.sourcePaths);

@ -58,7 +58,7 @@ namespace KBabel
void setName( const TQString& name ) { _name = name; }
KConfig* config ();
TDEConfig* config ();
/**
* Returns the KSharedConfig pointer of the project data
* @since 1.11.2 (KDE 3.5.2)

@ -363,7 +363,7 @@ ConversionStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList &w
return OK;
TQString target;
if(KIO::NetAccess::download(KURL( url ), target, 0))
if(TDEIO::NetAccess::download(KURL( url ), target, 0))
{
TQFile file(target);
@ -375,7 +375,7 @@ ConversionStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList &w
Msgfmt::Status stat = msgfmt.checkSyntax( target , output );
if(stat == Msgfmt::SyntaxError)
{
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return PARSE_ERROR;
}
}
@ -403,7 +403,7 @@ ConversionStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList &w
if( stopStaticRead )
{
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
delete lexer;
delete stream;
return OK;
@ -480,18 +480,18 @@ ConversionStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList &w
if(success==PARSE_ERROR)
{
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return PARSE_ERROR;
}
}
else
{
delete stream;
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
return NO_PERMISSIONS;
}
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
if( target == url )
PoInfo::cacheSave( url, info );
return OK;
@ -510,12 +510,12 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options )
stopStaticRead = false;
TQString target;
if(KIO::NetAccess::download(KURL( url ), target, 0))
if(TDEIO::NetAccess::download(KURL( url ), target, 0))
{
std::ifstream* stream = new std::ifstream( target.local8Bit());
if(stream->is_open())
{
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
GettextFlexLexer* lexer = new GettextFlexLexer( stream );

@ -42,7 +42,7 @@ using namespace KBabel;
TagExtractor::TagExtractor() : RegExpExtractor(TQStringList())
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
config->setGroup("Tags");

@ -128,7 +128,7 @@ TQValueList<ContextInfo> SourceContext::resolvePath( const TQString& packageDir,
// ### TODO: find a way to allow remote files too
TQString poDir;
#if KDE_IS_VERSION( 3, 5, 0 )
const KURL localUrl( KIO::NetAccess::mostLocalURL( urlPoFile, m_parent ) );
const KURL localUrl( TDEIO::NetAccess::mostLocalURL( urlPoFile, m_parent ) );
if ( localUrl.isLocalFile() )
{
const TQFileInfo fi( localUrl.path() );

@ -45,7 +45,7 @@ class TQComboBox;
class TQVBoxLayout;
class TQLineEdit;
class KListEditor;
class KConfig;
class TDEConfig;
class KURL;
struct ContextInfo
@ -107,7 +107,7 @@ private:
TQValueList<ContextInfo> resolvePath( const TQString& packageDir, const TQString& packageName, const TQString& gettextComment, const KURL& urlPoFile );
bool loadPart();
/// Parent widget (for KIO::NetAccess member functions)
/// Parent widget (for TDEIO::NetAccess member functions)
TQWidget* m_parent;
KTextEditor::Document* _part;
KTextEditor::View* _view;

@ -386,10 +386,10 @@ void FindDialog::setReplaceOpts(ReplaceOptions options)
void FindDialog::readSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
if(_replaceDlg) {
KConfigGroupSaver cgs(config,"ReplaceDialog");
TDEConfigGroupSaver cgs(config,"ReplaceDialog");
_replaceOptions.inMsgstr = config->readBoolEntry("InMsgstr",true);
_replaceOptions.inComment = config->readBoolEntry("InComment",false);
@ -421,7 +421,7 @@ void FindDialog::readSettings()
_findCombo->insertStringList(_replaceFindList);
}
else {
KConfigGroupSaver cgs(config,"FindDialog");
TDEConfigGroupSaver cgs(config,"FindDialog");
_findOptions.inMsgid = config->readBoolEntry("InMsgid",true);
_findOptions.inMsgstr = config->readBoolEntry("InMsgstr",true);
@ -459,10 +459,10 @@ void FindDialog::readSettings()
void FindDialog::saveSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
if(_replaceDlg) {
KConfigGroupSaver cgs(config,"ReplaceDialog");
TDEConfigGroupSaver cgs(config,"ReplaceDialog");
config->writeEntry("InMsgstr",_replaceOptions.inMsgstr);
config->writeEntry("InComment",_replaceOptions.inComment);
@ -478,7 +478,7 @@ void FindDialog::saveSettings()
config->writeEntry("ReplaceList",_replaceList);
}
else {
KConfigGroupSaver cgs(config,"FindDialog");
TDEConfigGroupSaver cgs(config,"FindDialog");
config->writeEntry("InMsgid",_findOptions.inMsgid);
config->writeEntry("InMsgstr",_findOptions.inMsgstr);

@ -61,7 +61,7 @@
using namespace KBabel;
ProjectDialog::ProjectDialog(Project::Ptr project)
: KConfigDialog(0, "project dialog", project->settings(),
: TDEConfigDialog(0, "project dialog", project->settings(),
IconList, Help|Default|Ok|Apply|Cancel)
, _project( project )
{
@ -133,7 +133,7 @@ ProjectDialog::ProjectDialog(Project::Ptr project)
void ProjectDialog::slotDefault()
{
// redefine the KConfigDialog behavior to push default on the
// redefine the TDEConfigDialog behavior to push default on the
// current page only
_project->settings()->useDefaults(true);

@ -55,7 +55,7 @@ class DiffPreferences;
namespace KBabel {
class KDE_EXPORT ProjectDialog : public KConfigDialog
class KDE_EXPORT ProjectDialog : public TDEConfigDialog
{
Q_OBJECT

@ -1163,7 +1163,7 @@ SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(p
tempLabel->setBuddy( _coderootEdit );
layout->addWidget(box);
// FIXME: use KConfigXT
// FIXME: use TDEConfigXT
_pathsEditor = new KListEditor(page);
_pathsEditor->setTitle(i18n("Path Patterns"));
layout->addWidget(_pathsEditor);

@ -53,7 +53,7 @@ ProjectWizard::ProjectWizard(TQWidget *parent,const char *name)
_wizard = new ProjectStep1(this,"project wizard widget");
// fill the known language codes
KConfig all_languages("all_languages", true, false, "locale");
TDEConfig all_languages("all_languages", true, false, "locale");
TQStringList lang_codes = TDEGlobal::locale()->allLanguagesTwoAlpha();
for (TQStringList::iterator it = lang_codes.begin();
it != lang_codes.end(); ++it)

@ -160,8 +160,8 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
TQPtrList<ModuleInfo> moduleList = dict->moduleInfos();
KConfig *config = TDEGlobal::config();
KConfigGroupSaver gs(config,"RoughTranslation");
TDEConfig *config = TDEGlobal::config();
TDEConfigGroupSaver gs(config,"RoughTranslation");
TQStringList selectedList=config->readListEntry("Selected");
if(selectedList.isEmpty())
{
@ -212,8 +212,8 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
RoughTransDlg::~RoughTransDlg()
{
KConfig *config=TDEGlobal::config();
KConfigGroupSaver gs(config,"RoughTranslation");
TDEConfig *config=TDEGlobal::config();
TDEConfigGroupSaver gs(config,"RoughTranslation");
config->writeEntry("Selected",dictChooser->selectedDicts());
bool flag=transButton->isChecked();

@ -96,17 +96,17 @@ void CharacterSelectorView::setTab(int value)
_table->setTableNum( value );
}
void CharacterSelectorView::saveSettings(KConfig* config)
void CharacterSelectorView::saveSettings(TDEConfig* config)
{
KConfigGroupSaver saver(config, "KBCharSelector" );
TDEConfigGroupSaver saver(config, "KBCharSelector" );
config->writeEntry( "TableNum", _tableNum->value() );
config->writeEntry( "SelectedChar", TQString(_table->chr()) );
}
void CharacterSelectorView::restoreSettings(KConfig* config)
void CharacterSelectorView::restoreSettings(TDEConfig* config)
{
KConfigGroupSaver saver(config, "KBCharSelector" );
TDEConfigGroupSaver saver(config, "KBCharSelector" );
_tableNum->setValue( config->readNumEntry("TableNum", 0 ));
_table->setChar( config->readEntry("SelectedChar"," ").at(0));

@ -48,8 +48,8 @@ public:
*/
CharacterSelectorView(KBCatalog* catalog,TQWidget *parent, KBabel::Project::Ptr project);
void saveSettings(KConfig* config);
void restoreSettings(KConfig* config);
void saveSettings(TDEConfig* config);
void restoreSettings(TDEConfig* config);
public slots:
// this view does not depend on the current item

@ -84,18 +84,18 @@ HeaderEditor::~HeaderEditor()
void HeaderEditor::saveSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
KConfigGroupSaver saver(config, "HeaderEditor" );
TDEConfigGroupSaver saver(config, "HeaderEditor" );
config->writeEntry( "Size", _editor->size() );
}
void HeaderEditor::restoreSettings()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
KConfigGroupSaver saver(config, "HeaderEditor" );
TDEConfigGroupSaver saver(config, "HeaderEditor" );
TQSize defaultSize(350,250);
_editorSize = config->readSizeEntry("Size", &defaultSize );

@ -874,7 +874,7 @@ void KBabelMW::restoreSettings()
{
{
applyMainWindowSettings(_config, "View");
KConfigGroupSaver saver(_config,"View");
TDEConfigGroupSaver saver(_config,"View");
_config->setGroup("View");
m_view->restoreView(_config);
@ -891,12 +891,12 @@ void KBabelMW::restoreSettings()
void KBabelMW::saveProperties(KConfig *config)
void KBabelMW::saveProperties(TDEConfig *config)
{
m_view->saveSession(config);
}
void KBabelMW::readProperties(KConfig *config)
void KBabelMW::readProperties(TDEConfig *config)
{
m_view->restoreSession(config);

@ -139,14 +139,14 @@ protected:
* This function is called when it is time for the app to save its
* properties for session management purposes.
*/
virtual void saveProperties(KConfig *);
virtual void saveProperties(TDEConfig *);
/**
* This function is called when this app is restored. The KConfig
* This function is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
virtual void readProperties(KConfig *);
virtual void readProperties(TDEConfig *);
virtual bool queryExit();
virtual bool queryClose();

@ -50,7 +50,7 @@
using namespace KBabel;
KBabelPreferences::KBabelPreferences(TQPtrList<ModuleInfo> ml)
: KConfigDialog(0, "Preferences", KBabelSettings::self())
: TDEConfigDialog(0, "Preferences", KBabelSettings::self())
{
_editorPage = new EditorPreferences(0, "editor");
addPage( _editorPage
@ -116,7 +116,7 @@ bool KBabelPreferences::hasChanged()
module_ret = info->id != KBabelSettings::defaultModule();
}
return KConfigDialog::hasChanged()
return TDEConfigDialog::hasChanged()
|| (_editorPage->_kcfg_AutoCheckTools->selectedTools() != KBabelSettings::autoCheckTools())
|| (module_ret);
}
@ -128,7 +128,7 @@ bool KBabelPreferences::isDefault()
ModuleInfo *info = moduleList.at(_searchPage->_kcfg_DefaultModule->currentItem());
bool module_ret = ( info && info->id == KBabelSettings::defaultModule() );
bool ret = KConfigDialog::isDefault()
bool ret = TDEConfigDialog::isDefault()
&& (_editorPage->_kcfg_AutoCheckTools->selectedTools().empty())
&& (module_ret);
@ -138,7 +138,7 @@ bool KBabelPreferences::isDefault()
void KBabelPreferences::updateSettings()
{
KConfigDialog::updateSettings();
TDEConfigDialog::updateSettings();
KBabelSettings::setAutoCheckTools(_editorPage->_kcfg_AutoCheckTools->selectedTools());
@ -155,7 +155,7 @@ void KBabelPreferences::updateSettings()
void KBabelPreferences::updateWidgets()
{
KConfigDialog::updateWidgets();
TDEConfigDialog::updateWidgets();
_editorPage->_kcfg_AutoCheckTools->setSelectedTools(KBabelSettings::autoCheckTools());
int i=0;
@ -172,7 +172,7 @@ void KBabelPreferences::updateWidgets()
void KBabelPreferences::updateWidgetsDefault()
{
KConfigDialog::updateWidgetsDefault();
TDEConfigDialog::updateWidgetsDefault();
bool old_useDefault = KBabelSettings::self()->useDefaults(true);

@ -42,7 +42,7 @@ class SearchPreferences;
class EditorPreferences;
struct ModuleInfo;
class KBabelPreferences : public KConfigDialog
class KBabelPreferences : public TDEConfigDialog
{
Q_OBJECT
@ -56,8 +56,8 @@ protected slots:
virtual void updateWidgetsDefault();
protected:
virtual bool hasChanged(); // reimplemented from KConfigDialog for our ToolSelectionWidget
virtual bool isDefault(); // reimplemented from KConfigDialog for our ToolSelectionWidget
virtual bool hasChanged(); // reimplemented from TDEConfigDialog for our ToolSelectionWidget
virtual bool isDefault(); // reimplemented from TDEConfigDialog for our ToolSelectionWidget
private:
SearchPreferences* _searchPage;

@ -135,7 +135,7 @@ KBabelView::KBabelView(KBCatalog* catalog,KBabelMW *parent, Project::Ptr project
_config = KSharedConfig::openConfig ("kbabelrc");
KConfigGroupSaver gs(_config,"Editor");
TDEConfigGroupSaver gs(_config,"Editor");
bool buildLeds=! KBabelSettings::ledInStatusbar();
_fuzzyLed=0;
@ -679,7 +679,7 @@ void KBabelView::update(EditCommand* cmd, bool undo)
void KBabelView::readSettings(KConfig* config)
void KBabelView::readSettings(TDEConfig* config)
{
if(KBabelSettings::autoUnsetFuzzy())
@ -690,7 +690,7 @@ void KBabelView::readSettings(KConfig* config)
setupAutoCheckTools();
KConfigGroupSaver saver(config,"Editor");
TDEConfigGroupSaver saver(config,"Editor");
_diffEnabled = config->readBoolEntry("AutoDiff", false);
emit signalDiffEnabled(_diffEnabled);
@ -799,7 +799,7 @@ void KBabelView::readProject(Project::Ptr project)
void KBabelView::saveSettings()
{
KConfigGroupSaver saver(_config,"Editor");
TDEConfigGroupSaver saver(_config,"Editor");
_config->writeEntry("AutoDiff",_diffEnabled);
@ -955,15 +955,15 @@ void KBabelView::setRMBSearchMenu(TQPopupMenu* popup)
}
void KBabelView::saveView(KConfig *)
void KBabelView::saveView(TDEConfig *)
{
}
void KBabelView::restoreView(KConfig *)
void KBabelView::restoreView(TDEConfig *)
{
}
void KBabelView::saveSession(KConfig* config)
void KBabelView::saveSession(TDEConfig* config)
{
TQString focus;
int line=0,col=0;
@ -994,7 +994,7 @@ void KBabelView::saveSession(KConfig* config)
if( _spellcheckSettings.valid )
{
KConfigGroupSaver (config, "Spellcheck");
TDEConfigGroupSaver (config, "Spellcheck");
config->writeEntry("NoRootAffix",_spellcheckSettings.noRootAffix);
config->writeEntry("RunTogether",_spellcheckSettings.runTogether);
config->writeEntry("SpellEncoding",_spellcheckSettings.spellEncoding);
@ -1007,7 +1007,7 @@ void KBabelView::saveSession(KConfig* config)
saveView(config);
}
void KBabelView::restoreSession(KConfig* config)
void KBabelView::restoreSession(TDEConfig* config)
{
TQString url=config->readPathEntry("URL");
@ -1106,7 +1106,7 @@ void KBabelView::open()
void KBabelView::open(const KURL& _url, const TQString & package, bool checkIfModified, bool newView)
{
#if KDE_IS_VERSION( 3, 5, 0)
KURL url = KIO::NetAccess::mostLocalURL(_url,this);
KURL url = TDEIO::NetAccess::mostLocalURL(_url,this);
#else
KURL url = _url;
#endif
@ -1446,7 +1446,7 @@ bool KBabelView::saveFileAs(KURL url, bool syntaxCheck)
newName=true;
}
if (KIO::NetAccess::exists(url, false, this))
if (TDEIO::NetAccess::exists(url, false, this))
{
if(KMessageBox::warningContinueCancel(this,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url.prettyURL())),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Cancel)
@ -1515,7 +1515,7 @@ bool KBabelView::saveFileAs(KURL url, bool syntaxCheck)
return false;
}
if (KIO::NetAccess::exists(url, false, this))
if (TDEIO::NetAccess::exists(url, false, this))
{
if(KMessageBox::warningContinueCancel(this,i18n("The file %1 already exists.\n"
"Do you want to overwrite it?").arg(url.prettyURL()),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Continue)
@ -1584,7 +1584,7 @@ bool KBabelView::saveFileSpecial()
KBabel::Project::Ptr project = KBabel::ProjectManager::open (tmpname);
project->setSettings( _catalog->saveSettings() );
KConfigDialog *_prefDialog = new KConfigDialog(this, "project dialog", project->settings(),
TDEConfigDialog *_prefDialog = new TDEConfigDialog(this, "project dialog", project->settings(),
KDialogBase::IconList, KDialogBase::Cancel|KDialogBase::Ok|KDialogBase::Help);
_prefDialog->setCaption( i18n("Special Save Settings") );
@ -2700,8 +2700,8 @@ void KBabelView::findInFile(TQCString fileSource, FindOptions options)
_showTryLaterBox=true;
// delete dontDisplayAgain from configuration
KConfig* config = TDEGlobal::config();
KConfigGroupSaver saver(config,"Notification Messages");
TDEConfig* config = TDEGlobal::config();
TDEConfigGroupSaver saver(config,"Notification Messages");
config->writeEntry("waitForNextFile",true);
// set that there can be more files
@ -2729,8 +2729,8 @@ void KBabelView::replaceInFile(TQCString fileSource, KBabel::ReplaceOptions opti
_showTryLaterBox=true;
// delete dontDisplayAgain from configuration
KConfig* config = TDEGlobal::config();
KConfigGroupSaver saver(config,"Notification Messages");
TDEConfig* config = TDEGlobal::config();
TDEConfigGroupSaver saver(config,"Notification Messages");
config->writeEntry("waitForNextFile",true);
// set that there can be more files
@ -3494,7 +3494,7 @@ void KBabelView::processUriDrop(KURL::List& uriList, const TQPoint& pos)
KURL first(uriList.first());
KURL second(uriList.last());
if( KIO::NetAccess::exists(first, true, this) )
if( TDEIO::NetAccess::exists(first, true, this) )
{
open(first);
}

@ -131,16 +131,16 @@ public:
void setOverwriteMode(bool ovr);
bool isSearching() const;
void saveView(KConfig *config);
void restoreView(KConfig *config);
void saveSession(KConfig*);
void restoreSession(KConfig*);
void saveView(TDEConfig *config);
void restoreView(TDEConfig *config);
void saveSession(TDEConfig*);
void restoreSession(TDEConfig*);
void readSettings(KConfig* config);
void readSettings(TDEConfig* config);
void saveSettings();
void readProject(KBabel::Project::Ptr project);
void saveProject(KConfig* config);
void saveProject(TDEConfig* config);
void openTemplate(const KURL& openURL, const KURL& saveURL);
bool saveFile(bool checkSyntax=true);

@ -679,7 +679,7 @@ bool KBabelView::openDiffFile(bool autoDiff)
KURL diffFileURL(diffFilePath);
if(diffFileURL.isValid() && KIO::NetAccess::exists(diffFileURL,true,NULL))
if(diffFileURL.isValid() && TDEIO::NetAccess::exists(diffFileURL,true,NULL))
{
url = diffFileURL;

@ -111,15 +111,15 @@ void KBCatalogView::readConfigurationSettings()
{
}
void KBCatalogView::readSessionSettings(KConfig *)
void KBCatalogView::readSessionSettings(TDEConfig *)
{
}
void KBCatalogView::writeConfigurationSettings(KConfig *)
void KBCatalogView::writeConfigurationSettings(TDEConfig *)
{
}
void KBCatalogView::writeSessionSettings(KConfig *)
void KBCatalogView::writeSessionSettings(TDEConfig *)
{
}

@ -74,10 +74,10 @@ public slots:
virtual void readProjectSettings();
virtual void readFileSettings();
virtual void readConfigurationSettings();
virtual void readSessionSettings(KConfig *config);
virtual void readSessionSettings(TDEConfig *config);
virtual void writeConfigurationSettings(KConfig *config);
virtual void writeSessionSettings(KConfig *config);
virtual void writeConfigurationSettings(TDEConfig *config);
virtual void writeSessionSettings(TDEConfig *config);
virtual void setReadOnly (bool on);

@ -75,17 +75,17 @@ void KBCharSelect::setTab(int value)
_table->setTableNum( value );
}
void KBCharSelect::saveSettings(KConfig* config)
void KBCharSelect::saveSettings(TDEConfig* config)
{
KConfigGroupSaver saver(config, "KBCharSelector" );
TDEConfigGroupSaver saver(config, "KBCharSelector" );
config->writeEntry( "TableNum", _tableNum->value() );
config->writeEntry( "SelectedChar", TQString(_table->chr()) );
}
void KBCharSelect::restoreSettings(KConfig* config)
void KBCharSelect::restoreSettings(TDEConfig* config)
{
KConfigGroupSaver saver(config, "KBCharSelector" );
TDEConfigGroupSaver saver(config, "KBCharSelector" );
_tableNum->setValue( config->readNumEntry("TableNum", 0 ));
_table->setChar( config->readEntry("SelectedChar"," ").at(0));

@ -35,7 +35,7 @@
#include <tqvbox.h>
class KConfig;
class TDEConfig;
class KCharSelectTable;
class TQSpinBox;
@ -46,8 +46,8 @@ class KBCharSelect : public TQVBox
public:
KBCharSelect(TQWidget* parent, const char* name=0);
void saveSettings(KConfig* config);
void restoreSettings(KConfig* config);
void saveSettings(TDEConfig* config);
void restoreSettings(TDEConfig* config);
signals:
void characterDoubleClicked( TQChar ch );

@ -193,7 +193,7 @@ void KBabelHighlighter::setHasErrors( bool err )
void KBabelHighlighter::readSettings( )
{
// FIXME: does not care about different projects yet
KConfig * config = TDEGlobal::config( );
TDEConfig * config = TDEGlobal::config( );
config->setGroup( "Misc" );
TQString temp = config->readEntry( "AccelMarker", "&" );
accelMarker = temp[0];

@ -59,8 +59,8 @@ SpellDlg::SpellDlg(bool haveMarkedText,TQWidget *parent,const char *name)
{
_mainWidget->markedBtn->setEnabled(false);
KConfig *config = TDEGlobal::config();
KConfigGroupSaver cs(config,"SpellDlg");
TDEConfig *config = TDEGlobal::config();
TDEConfigGroupSaver cs(config,"SpellDlg");
TQString what=config->readEntry("Default","All");
if(what=="All")
@ -82,8 +82,8 @@ SpellDlg::~SpellDlg()
{
if(_mainWidget->defaultBtn->isChecked())
{
KConfig *config=TDEGlobal::config();
KConfigGroupSaver cs(config,"SpellDlg");
TDEConfig *config=TDEGlobal::config();
TDEConfigGroupSaver cs(config,"SpellDlg");
TQString what="All";
if(_mainWidget->endBtn->isChecked())

@ -304,7 +304,7 @@ void DictChooser::configureSelected()
tempConfig.insert(mi->id ,tmp);
kdDebug(KBABEL_SEARCH) << "Temp file: " << tmp->name() << endl;
KConfig config(tmp->name());
TDEConfig config(tmp->name());
config.setGroup(mi->id);
box->saveSettings(mi->id, &config);
}
@ -323,7 +323,7 @@ void DictChooser::restoreConfig()
TQDictIterator<KTempFile> it( tempConfig ); // See TQDictIterator
for( ; it.current(); ++it )
{
KConfig config( it.current()->name() );
TDEConfig config( it.current()->name() );
config.setGroup( it.currentKey() );
box->readSettings( it.currentKey(), &config);
}

@ -73,15 +73,15 @@ KBabelDict::~KBabelDict()
void KBabelDict::saveConfig()
{
KConfig *config=TDEGlobal::config();
KConfigGroupSaver gs(config,"KBabelDict");
TDEConfig *config=TDEGlobal::config();
TDEConfigGroupSaver gs(config,"KBabelDict");
config->writeEntry("Preferences",view->prefVisible());
}
void KBabelDict::readConfig()
{
KConfig *config=TDEGlobal::config();
KConfigGroupSaver gs(config,"KBabelDict");
TDEConfig *config=TDEGlobal::config();
TDEConfigGroupSaver gs(config,"KBabelDict");
bool pref=config->readBoolEntry("Preferences",true);
if(view->prefVisible() != pref)

@ -367,7 +367,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
for( TQStringList::Iterator rit = rcList.begin(); rit != rcList.end();
++rit)
{
KConfig rcConfig((*rit),true,false);
TDEConfig rcConfig((*rit),true,false);
rcConfig.setGroup("SearchEngine");
@ -504,9 +504,9 @@ void KBabelDictBox::registerModule( SearchEngine* e )
, TQT_SIGNAL(errorInModule(const TQString&)));
}
void KBabelDictBox::saveSettings(KConfigBase *config)
void KBabelDictBox::saveSettings(TDEConfigBase *config)
{
KConfigGroupSaver cs(config,"KBabelDict");
TDEConfigGroupSaver cs(config,"KBabelDict");
config->writeEntry("ResultSplitter",resultSplitter->sizes());
@ -527,7 +527,7 @@ void KBabelDictBox::saveSettings(KConfigBase *config)
}
void KBabelDictBox::saveSettings(const TQString& moduleId, KConfigBase *config)
void KBabelDictBox::saveSettings(const TQString& moduleId, TDEConfigBase *config)
{
SearchEngine *e;
@ -541,10 +541,10 @@ void KBabelDictBox::saveSettings(const TQString& moduleId, KConfigBase *config)
}
}
void KBabelDictBox::readSettings(KConfigBase *config)
void KBabelDictBox::readSettings(TDEConfigBase *config)
{
SearchEngine *e;
KConfigGroupSaver cs(config,"KBabelDict");
TDEConfigGroupSaver cs(config,"KBabelDict");
TQValueList<int> sizes=config->readIntListEntry("ResultSplitter");
if(!sizes.isEmpty())
resultSplitter->setSizes(sizes);
@ -562,7 +562,7 @@ void KBabelDictBox::readSettings(KConfigBase *config)
}
}
void KBabelDictBox::readSettings(const TQString& moduleId, KConfigBase *config)
void KBabelDictBox::readSettings(const TQString& moduleId, TDEConfigBase *config)
{
SearchEngine *e;

@ -115,25 +115,25 @@ public:
* Saves the settings including the settings of the different modules
* in the given config object.
*/
void saveSettings(KConfigBase *config);
void saveSettings(TDEConfigBase *config);
/**
* Saves the settings of the given module
* in the given config object.
*/
void saveSettings(const TQString& moduleId, KConfigBase *config);
void saveSettings(const TQString& moduleId, TDEConfigBase *config);
/**
* Reads the settings including the settings of the different modules
* from the given config object.
*/
void readSettings(KConfigBase *config);
void readSettings(TDEConfigBase *config);
/**
* Reads the settings of the given module
* from the given config object.
*/
void readSettings(const TQString& moduleId, KConfigBase *config);
void readSettings(const TQString& moduleId, TDEConfigBase *config);

@ -129,7 +129,7 @@ KBabelDictView::KBabelDictView( TQWidget* parent, const char* name, WFlags fl )
tempLayout->addWidget(prefStack);
tempLayout->addStretch(1);
KConfig *config = TDEGlobal::config();
TDEConfig *config = TDEGlobal::config();
dictBox->readSettings(config);
dictBox->setAutoUpdateOptions(true);
@ -185,7 +185,7 @@ KBabelDictView::KBabelDictView( TQWidget* parent, const char* name, WFlags fl )
KBabelDictView::~KBabelDictView()
{
// no need to delete child widgets, TQt does it all for us
KConfig *config = TDEGlobal::config();
TDEConfig *config = TDEGlobal::config();
dictBox->saveSettings(config);
}

@ -196,20 +196,20 @@ KDBSearchEngine::loadDatabase (TQString database, bool noask = false)
".db");
// rename the old files
KIO::NetAccess::copy (KURL (transFile + ",old"),
TDEIO::NetAccess::copy (KURL (transFile + ",old"),
KURL (transFile), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL
(database + "/wordsindex." + lang +
".db,old"),
KURL (database + "/wordsindex." + lang +
".db"), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL
(database + "/keysindex." + lang + ".db,old"),
KURL (database + "/keysindex." + lang +
".db"), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL
(database + "/catalogsinfo." + lang +
".db,old"),
@ -228,15 +228,15 @@ KDBSearchEngine::loadDatabase (TQString database, bool noask = false)
else if (oldstuff)
{
// rename the old files
KIO::NetAccess::copy (KURL (transFile + ",old"),
TDEIO::NetAccess::copy (KURL (transFile + ",old"),
KURL (transFile), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL (database + "/wordsindex." + lang + ".db,old"),
KURL (database + "/wordsindex." + lang + ".db"), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL (database + "/keysindex." + lang + ".db,old"),
KURL (database + "/keysindex." + lang + ".db"), 0);
KIO::NetAccess::
TDEIO::NetAccess::
copy (KURL
(database + "/catalogsinfo." + lang + ".db,old"),
KURL (database + "/catalogsinfo." + lang + ".db"), 0);
@ -1106,10 +1106,10 @@ KDBSearchEngine::isReady () const
void
KDBSearchEngine::saveSettings (KConfigBase * config)
KDBSearchEngine::saveSettings (TDEConfigBase * config)
{
// updateSettings(); //maybe with autoupdate
KConfigGroupSaver cgs (config, "KDBSearchEngine");
TDEConfigGroupSaver cgs (config, "KDBSearchEngine");
#if KDE_IS_VERSION(3,1,3)
config->writePathEntry ("Filename", dbname);
#else
@ -1145,11 +1145,11 @@ KDBSearchEngine::saveSettings (KConfigBase * config)
void
KDBSearchEngine::readSettings (KConfigBase * config)
KDBSearchEngine::readSettings (TDEConfigBase * config)
{
TQString newName;
KConfigGroupSaver cgs (config, "KDBSearchEngine");
TDEConfigGroupSaver cgs (config, "KDBSearchEngine");
TQString defaultLang;
TQString oldLang = lang;

@ -191,8 +191,8 @@ public:
virtual bool isReady() const ;
virtual bool isSearching() const;
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
virtual void saveSettings(TDEConfigBase *config);
virtual void readSettings(TDEConfigBase *config);
virtual PrefWidget *preferencesWidget(TQWidget *parent);

@ -440,19 +440,19 @@ DataBaseManager::openDataBase ()
// use temporary file instead
if (ret == 0)
{
KIO::NetAccess::del (KURL::fromPathOrURL (transfilename));
TDEIO::NetAccess::del (KURL::fromPathOrURL (transfilename));
copy_hack (*transFile.file (), transfilenameFile);
transFile.unlink ();
KIO::NetAccess::del (KURL::fromPathOrURL (infofilename));
TDEIO::NetAccess::del (KURL::fromPathOrURL (infofilename));
copy_hack (*infoFile.file (), infofilenameFile);
infoFile.unlink ();
KIO::NetAccess::del (KURL::fromPathOrURL (wordsfilename));
TDEIO::NetAccess::del (KURL::fromPathOrURL (wordsfilename));
copy_hack (*wordsFile.file (), wordfilenameFile);
wordsFile.unlink ();
KIO::NetAccess::del (KURL::fromPathOrURL (keysfilename));
TDEIO::NetAccess::del (KURL::fromPathOrURL (keysfilename));
copy_hack (*keysFile.file (), keysfilenameFile);
keysFile.unlink ();

@ -276,9 +276,9 @@ PrefWidget * KDBSearchEngine2::preferencesWidget(TQWidget *parent)
return pw;
}
void KDBSearchEngine2::saveSettings(KConfigBase *config)
void KDBSearchEngine2::saveSettings(TDEConfigBase *config)
{
KConfigGroupSaver cgs(config,"KDBSearchEngine2");
TDEConfigGroupSaver cgs(config,"KDBSearchEngine2");
@ -318,7 +318,7 @@ void KDBSearchEngine2::saveSettings(KConfigBase *config)
}
}
void KDBSearchEngine2::readSettings(KConfigBase *config)
void KDBSearchEngine2::readSettings(TDEConfigBase *config)
{
/*TQString defaultDir;
@ -331,7 +331,7 @@ void KDBSearchEngine2::readSettings(KConfigBase *config)
defaultDir += "kbabeldict/dbsearchengine2";
}
*/
KConfigGroupSaver cgs(config,"KDBSearchEngine2");
TDEConfigGroupSaver cgs(config,"KDBSearchEngine2");
// dbDirectory=config->readEntry("DBDirectory",defaultDir);
autoAdd=config->readBoolEntry("AutoAdd",true);

@ -43,8 +43,8 @@ class KDBSearchEngine2 : public SearchEngine
bool isReady() const {return iAmReady; }
void saveSettings(KConfigBase *config);
void readSettings(KConfigBase *config);
void saveSettings(TDEConfigBase *config);
void readSettings(TDEConfigBase *config);
TQString translate(const TQString text);

@ -33,7 +33,7 @@ MessagesSource::MessagesSource()
{
//FIXMR: check if we should put something in that constructor
}
void MessagesSource::writeConfig(KConfigBase *config)
void MessagesSource::writeConfig(TDEConfigBase *config)
{
config->writeEntry("Location",location.url());
config->writeEntry("LocationType",type);
@ -42,7 +42,7 @@ void MessagesSource::writeConfig(KConfigBase *config)
config->writeEntry("Status",status);
}
void MessagesSource::readConfig(KConfigBase *config)
void MessagesSource::readConfig(TDEConfigBase *config)
{
location=config->readEntry("Location");
type=config->readNumEntry("LocationType",0);

@ -31,7 +31,7 @@
#include "sourcedialog.h"
class KConfigBase;
class TDEConfigBase;
class MessagesSource
{
@ -39,8 +39,8 @@ class MessagesSource
public:
MessagesSource();
void writeConfig(KConfigBase *config);
void readConfig(KConfigBase *config);
void writeConfig(TDEConfigBase *config);
void readConfig(TDEConfigBase *config);
void setDialogValues(SourceDialog *sd);
void getDialogValues(SourceDialog *sd);

@ -86,7 +86,7 @@ bool PoAuxiliary::isSearching() const
}
void PoAuxiliary::saveSettings(KConfigBase *config)
void PoAuxiliary::saveSettings(TDEConfigBase *config)
{
if(autoUpdate && prefWidget && prefWidget->settingsChanged())
{
@ -97,7 +97,7 @@ void PoAuxiliary::saveSettings(KConfigBase *config)
config->writeEntry("IgnoreFuzzy",ignoreFuzzy);
}
void PoAuxiliary::readSettings(KConfigBase *config)
void PoAuxiliary::readSettings(TDEConfigBase *config)
{
bool needLoading=false;

@ -62,8 +62,8 @@ public:
virtual bool isSearching() const;
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
virtual void saveSettings(TDEConfigBase *config);
virtual void readSettings(TDEConfigBase *config);
virtual PrefWidget *preferencesWidget(TQWidget *parent);

@ -113,7 +113,7 @@ bool PoCompendium::isSearching() const
}
void PoCompendium::saveSettings(KConfigBase *config )
void PoCompendium::saveSettings(TDEConfigBase *config )
{
if(autoUpdate && prefWidget && prefWidget->settingsChanged())
{
@ -133,7 +133,7 @@ void PoCompendium::saveSettings(KConfigBase *config )
config->writeEntry("Compendium", url);
}
void PoCompendium::readSettings(KConfigBase *config)
void PoCompendium::readSettings(TDEConfigBase *config)
{
caseSensitive = config->readBoolEntry("CaseSensitive", false);
ignoreFuzzy = config->readBoolEntry("IgnoreFuzzy",true);

@ -45,7 +45,7 @@
#include <tqptrlist.h>
class CompendiumPreferencesWidget;
class KConfigBase;
class TDEConfigBase;
class TQTimer;
class PoCompendium : public SearchEngine
@ -65,8 +65,8 @@ public:
virtual bool isSearching() const;
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
virtual void saveSettings(TDEConfigBase *config);
virtual void readSettings(TDEConfigBase *config);
virtual PrefWidget *preferencesWidget(TQWidget *parent);

@ -107,7 +107,7 @@ bool TmxCompendium::isSearching() const
}
void TmxCompendium::saveSettings(KConfigBase *config)
void TmxCompendium::saveSettings(TDEConfigBase *config)
{
if(autoUpdate && prefWidget && prefWidget->settingsChanged())
{
@ -126,7 +126,7 @@ void TmxCompendium::saveSettings(KConfigBase *config)
config->writeEntry("Compendium", url);
}
void TmxCompendium::readSettings(KConfigBase *config)
void TmxCompendium::readSettings(TDEConfigBase *config)
{
caseSensitive = config->readBoolEntry("CaseSensitive", false);
wholeWords = config->readBoolEntry("WholeWords",true);

@ -44,7 +44,7 @@
#include <tqguardedptr.h>
class TmxCompendiumPreferencesWidget;
class KConfigBase;
class TDEConfigBase;
class TQTimer;
class TmxCompendium : public SearchEngine
@ -63,8 +63,8 @@ public:
virtual bool isSearching() const;
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
virtual void saveSettings(TDEConfigBase *config);
virtual void readSettings(TDEConfigBase *config);
virtual PrefWidget *preferencesWidget(TQWidget *parent);

@ -83,7 +83,7 @@ bool TmxCompendiumData::load(const KURL& url, const TQString& language)
TQString target;
if( KIO::NetAccess::download( url, target ) )
if( TDEIO::NetAccess::download( url, target ) )
{
TQFile f( target );
if ( !f.open( IO_ReadOnly ) )
@ -96,7 +96,7 @@ bool TmxCompendiumData::load(const KURL& url, const TQString& language)
_errorMsg = i18n( "Cannot parse XML data." );
}
f.close();
KIO::NetAccess::removeTempFile(target);
TDEIO::NetAccess::removeTempFile(target);
} else {
_error = true;
_errorMsg = i18n( "Cannot open the file." );

@ -288,8 +288,8 @@ public:
/** save the settings in the given config object */
virtual void saveSettings(KConfigBase *config) = 0;
virtual void readSettings(KConfigBase *config) = 0;
virtual void saveSettings(TDEConfigBase *config) = 0;
virtual void readSettings(TDEConfigBase *config) = 0;
/** @returns true, if it was initialized correctly */
virtual bool isReady() const =0;

@ -14,7 +14,7 @@ TQString BugCommand::details()
return TQString();
}
BugCommand *BugCommand::load( KConfig *config, const TQString &type )
BugCommand *BugCommand::load( TDEConfig *config, const TQString &type )
{
TQString bugNumber = config->group();
// ### this sucks. we better let Bug implement proper persistance,
@ -90,7 +90,7 @@ TQString BugCommandClose::details() const
return m_message;
}
void BugCommandClose::save( KConfig *config )
void BugCommandClose::save( TDEConfig *config )
{
config->writeEntry( "Close",m_message );
}
@ -107,7 +107,7 @@ TQString BugCommandCloseSilently::name()
return i18n("Close Silently");
}
void BugCommandCloseSilently::save( KConfig *config )
void BugCommandCloseSilently::save( TDEConfig *config )
{
config->writeEntry( "CloseSilently", true );
}
@ -124,7 +124,7 @@ TQString BugCommandReopen::name()
return i18n("Reopen");
}
void BugCommandReopen::save( KConfig *config )
void BugCommandReopen::save( TDEConfig *config )
{
config->writeEntry( "Reopen", true );
}
@ -146,7 +146,7 @@ TQString BugCommandRetitle::details() const
return m_title;
}
void BugCommandRetitle::save( KConfig *config )
void BugCommandRetitle::save( TDEConfig *config )
{
config->writeEntry( "Retitle", m_title );
}
@ -168,7 +168,7 @@ TQString BugCommandMerge::details() const
return m_bugNumbers.join(", ");
}
void BugCommandMerge::save( KConfig *config )
void BugCommandMerge::save( TDEConfig *config )
{
config->writeEntry( "Merge", m_bugNumbers );
}
@ -185,7 +185,7 @@ TQString BugCommandUnmerge::name()
return i18n("Unmerge");
}
void BugCommandUnmerge::save( KConfig *config )
void BugCommandUnmerge::save( TDEConfig *config )
{
config->writeEntry( "Unmerge", true );
}
@ -234,7 +234,7 @@ TQString BugCommandReply::details() const
return m_message;
}
void BugCommandReply::save( KConfig *config )
void BugCommandReply::save( TDEConfig *config )
{
config->writeEntry( "Reply", m_message );
#if 0
@ -264,7 +264,7 @@ TQString BugCommandReplyPrivate::details() const
return m_message;
}
void BugCommandReplyPrivate::save( KConfig *config )
void BugCommandReplyPrivate::save( TDEConfig *config )
{
TQStringList args;
args << m_address;
@ -289,7 +289,7 @@ TQString BugCommandSeverity::details() const
return m_severity;
}
void BugCommandSeverity::save( KConfig *config )
void BugCommandSeverity::save( TDEConfig *config )
{
config->writeEntry( "Severity", m_severity );
}
@ -311,7 +311,7 @@ TQString BugCommandReassign::details() const
return m_package;
}
void BugCommandReassign::save( KConfig *config )
void BugCommandReassign::save( TDEConfig *config )
{
config->writeEntry( "Reassign", m_package );
}

@ -7,7 +7,7 @@
#include "bug.h"
#include "package.h"
class KConfig;
class TDEConfig;
class BugCommand {
public:
@ -31,8 +31,8 @@ class BugCommand {
virtual TQString type() const { return TQString(); }
virtual void save( KConfig * ) = 0;
static BugCommand *load( KConfig *, const TQString &type );
virtual void save( TDEConfig * ) = 0;
static BugCommand *load( TDEConfig *, const TQString &type );
protected:
Bug m_bug;
@ -53,7 +53,7 @@ class BugCommandClose : public BugCommand {
TQString type() const { return TQString::fromLatin1("Close"); }
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_message;
@ -70,7 +70,7 @@ class BugCommandCloseSilently : public BugCommand {
TQString type() const { return TQString::fromLatin1("CloseSilently"); }
void save( KConfig * );
void save( TDEConfig * );
};
class BugCommandReopen : public BugCommand {
@ -84,7 +84,7 @@ class BugCommandReopen : public BugCommand {
TQString type() const { return TQString::fromLatin1("Reopen"); }
void save( KConfig * );
void save( TDEConfig * );
};
class BugCommandRetitle : public BugCommand {
@ -99,7 +99,7 @@ class BugCommandRetitle : public BugCommand {
TQString type() const { return TQString::fromLatin1("Retitle"); }
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_title;
@ -117,7 +117,7 @@ class BugCommandMerge : public BugCommand {
TQString type() const { return TQString::fromLatin1("Merge"); }
void save( KConfig * );
void save( TDEConfig * );
private:
TQStringList m_bugNumbers;
@ -132,7 +132,7 @@ class BugCommandUnmerge : public BugCommand {
TQString type() const { return TQString::fromLatin1("Unmerge"); }
void save( KConfig * );
void save( TDEConfig * );
TQString controlString() const;
};
@ -150,7 +150,7 @@ class BugCommandReply : public BugCommand {
TQString type() const { return TQString::fromLatin1("Reply"); }
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_message;
@ -171,7 +171,7 @@ class BugCommandReplyPrivate : public BugCommand {
TQString type() const { return TQString::fromLatin1("ReplyPrivate"); }
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_address;
@ -190,7 +190,7 @@ class BugCommandSeverity : public BugCommand {
TQString controlString() const;
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_severity;
@ -208,7 +208,7 @@ class BugCommandReassign : public BugCommand {
TQString controlString() const;
void save( KConfig * );
void save( TDEConfig * );
private:
TQString m_package;

@ -28,19 +28,19 @@ void BugJob::start( const KURL &url )
// ### obey post, if necessary
KIO::Job *job = KIO::get( url, true /*always 'reload=true', we have our own cache*/, false );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
this, TQT_SLOT( ioResult( KIO::Job * ) ) );
connect( job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
this, TQT_SLOT( ioData( KIO::Job *, const TQByteArray & ) ) );
connect( job, TQT_SIGNAL( infoMessage( KIO::Job *, const TQString & ) ),
this, TQT_SLOT( ioInfoMessage( KIO::Job *, const TQString & ) ) );
connect( job, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ),
this, TQT_SLOT( ioInfoPercent( KIO::Job *, unsigned long ) ) );
TDEIO::Job *job = TDEIO::get( url, true /*always 'reload=true', we have our own cache*/, false );
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
this, TQT_SLOT( ioResult( TDEIO::Job * ) ) );
connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ),
this, TQT_SLOT( ioData( TDEIO::Job *, const TQByteArray & ) ) );
connect( job, TQT_SIGNAL( infoMessage( TDEIO::Job *, const TQString & ) ),
this, TQT_SLOT( ioInfoMessage( TDEIO::Job *, const TQString & ) ) );
connect( job, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ),
this, TQT_SLOT( ioInfoPercent( TDEIO::Job *, unsigned long ) ) );
}
void BugJob::ioResult( KIO::Job *job )
void BugJob::ioResult( TDEIO::Job *job )
{
m_error = job->error();
m_errorText = job->errorText();
@ -71,7 +71,7 @@ void BugJob::ioResult( KIO::Job *job )
delete this;
}
void BugJob::ioData( KIO::Job *, const TQByteArray &data )
void BugJob::ioData( TDEIO::Job *, const TQByteArray &data )
{
unsigned int start = m_data.size();
@ -79,13 +79,13 @@ void BugJob::ioData( KIO::Job *, const TQByteArray &data )
memcpy( m_data.data() + start, data.data(), data.size() );
}
void BugJob::ioInfoMessage( KIO::Job *, const TQString &_text )
void BugJob::ioInfoMessage( TDEIO::Job *, const TQString &_text )
{
TQString text = _text;
emit infoMessage( text );
}
void BugJob::ioInfoPercent( KIO::Job *, unsigned long percent )
void BugJob::ioInfoPercent( TDEIO::Job *, unsigned long percent )
{
emit infoPercent( percent );
}

@ -5,7 +5,7 @@
#include "bugserver.h"
class BugJob : public KIO::Job
class BugJob : public TDEIO::Job
{
Q_OBJECT
@ -27,13 +27,13 @@ class BugJob : public KIO::Job
virtual void process( const TQByteArray &data ) = 0;
private slots:
void ioResult( KIO::Job *job );
void ioResult( TDEIO::Job *job );
void ioData( KIO::Job *job, const TQByteArray &data );
void ioData( TDEIO::Job *job, const TQByteArray &data );
void ioInfoMessage( KIO::Job *job, const TQString &text );
void ioInfoMessage( TDEIO::Job *job, const TQString &text );
void ioInfoPercent( KIO::Job *job, unsigned long percent );
void ioInfoPercent( TDEIO::Job *job, unsigned long percent );
private:
TQByteArray m_data;

@ -195,11 +195,11 @@ Bug::Severity BugServer::bugSeverity( const TQString &str )
}
}
void BugServer::readConfig( KConfig * /*config*/ )
void BugServer::readConfig( TDEConfig * /*config*/ )
{
}
void BugServer::writeConfig( KConfig * /*config*/ )
void BugServer::writeConfig( TDEConfig * /*config*/ )
{
}

@ -70,9 +70,9 @@ class BugServer
Processor *processor() const;
void readConfig( KConfig * );
void readConfig( TDEConfig * );
void writeConfig( KConfig * );
void writeConfig( TDEConfig * );
/**
Queue a new command.

@ -111,7 +111,7 @@ TQStringList BugServerConfig::bugzillaVersions()
return v;
}
void BugServerConfig::readConfig( KConfig *cfg, const TQString &name )
void BugServerConfig::readConfig( TDEConfig *cfg, const TQString &name )
{
mName = name;
@ -129,7 +129,7 @@ void BugServerConfig::readConfig( KConfig *cfg, const TQString &name )
mCurrentBug = cfg->readEntry( "CurrentBug" );
}
void BugServerConfig::writeConfig( KConfig *cfg )
void BugServerConfig::writeConfig( TDEConfig *cfg )
{
cfg->setGroup( "BugServer " + mName );

@ -29,7 +29,7 @@
#include <kurl.h>
class KConfig;
class TDEConfig;
class BugServerConfig
{
@ -50,8 +50,8 @@ class BugServerConfig
void setPassword( const TQString &password );
TQString password() const;
void readConfig( KConfig *, const TQString &name );
void writeConfig( KConfig * );
void readConfig( TDEConfig *, const TQString &name );
void writeConfig( TDEConfig * );
static TQStringList bugzillaVersions();

@ -373,7 +373,7 @@ TQString BugSystem::lastResponse()
return mLastResponse;
}
void BugSystem::readConfig( KConfig *config )
void BugSystem::readConfig( TDEConfig *config )
{
config->setGroup("Servers");
TQStringList servers = config->readListEntry( "Servers" );
@ -394,7 +394,7 @@ void BugSystem::readConfig( KConfig *config )
setServerList( serverList );
}
void BugSystem::writeConfig( KConfig *config )
void BugSystem::writeConfig( TDEConfig *config )
{
TQValueList<BugServer *>::ConstIterator itServer;
TQStringList servers;

@ -13,7 +13,7 @@
#include <tqmap.h>
#include <tqpair.h>
class KConfig;
class TDEConfig;
class BugCommand;
class BugServer;
@ -80,8 +80,8 @@ class BugSystem : public TQObject
static void saveResponse( const TQByteArray &d );
static TQString lastResponse();
void readConfig( KConfig * );
void writeConfig( KConfig * );
void readConfig( TDEConfig * );
void writeConfig( TDEConfig * );
signals:
void packageListAvailable( const Package::List &pkgs );

@ -37,7 +37,7 @@
KBBPrefs *KBBPrefs::mInstance = 0;
KBBPrefs::KBBPrefs() : KConfigSkeleton()
KBBPrefs::KBBPrefs() : TDEConfigSkeleton()
{
setCurrentGroup("History");

@ -32,7 +32,7 @@
class TQStringList;
class KBBPrefs : public KConfigSkeleton
class KBBPrefs : public TDEConfigSkeleton
{
public:
virtual ~KBBPrefs();

@ -360,7 +360,7 @@ void KBBMainWindow::slotListChanges()
void KBBMainWindow::slotSetPercent( unsigned long percent )
{
// KIO::Job::percent() shouldn't return an unsigned long. - Frerich
// TDEIO::Job::percent() shouldn't return an unsigned long. - Frerich
m_progressBar->setProgress( percent );
}

@ -23,7 +23,7 @@
LoadAllBugsDlg::LoadAllBugsDlg( const Package& pkg, const TQString &component )
: TQDialog( 0L, "progressdlg", TRUE )
{
m_bugLoadingProgress = new KIO::DefaultProgress( this );
m_bugLoadingProgress = new TDEIO::DefaultProgress( this );
connect( m_bugLoadingProgress, TQT_SIGNAL( stopped() ),
this, TQT_SLOT( slotStopped() ) );
setCaption( i18n( "Loading All Bugs for Product %1" ).arg( pkg.name() ) );

@ -20,7 +20,7 @@
class Package;
class BugDetails;
namespace KIO { class DefaultProgress; }
namespace TDEIO { class DefaultProgress; }
class LoadAllBugsDlg : public TQDialog
{
@ -38,7 +38,7 @@ private:
Bug::List m_bugs;
unsigned int m_processed;
unsigned int m_count;
KIO::DefaultProgress* m_bugLoadingProgress;
TDEIO::DefaultProgress* m_bugLoadingProgress;
};
#endif

@ -54,13 +54,13 @@
#include "kcalresource.h"
KCalResource::KCalResource( const KConfig* config )
KCalResource::KCalResource( const TDEConfig* config )
: ResourceCached( config ), mLock( 0 )
{
mPrefs = new KBB::ResourcePrefs;
KConfigSkeletonItem::List items = mPrefs->items();
KConfigSkeletonItem::List::Iterator it;
TDEConfigSkeletonItem::List items = mPrefs->items();
TDEConfigSkeletonItem::List::Iterator it;
for( it = items.begin(); it != items.end(); ++it ) {
(*it)->setGroup( identifier() );
}
@ -93,7 +93,7 @@ void KCalResource::init()
mLock = new KABC::LockNull( true );
KConfig config( "kbugbusterrc" );
TDEConfig config( "kbugbusterrc" );
BugSystem::self()->readConfig( &config );
}
@ -103,12 +103,12 @@ KBB::ResourcePrefs *KCalResource::prefs()
return mPrefs;
}
void KCalResource::readConfig( const KConfig * )
void KCalResource::readConfig( const TDEConfig * )
{
mPrefs->readConfig();
}
void KCalResource::writeConfig( KConfig *config )
void KCalResource::writeConfig( TDEConfig *config )
{
kdDebug() << "KCalResource::writeConfig()" << endl;
@ -225,7 +225,7 @@ void KCalResource::slotBugListAvailable( const Package &, const TQString &,
emit resourceChanged( this );
}
void KCalResource::slotLoadJobResult( KIO::Job *job )
void KCalResource::slotLoadJobResult( TDEIO::Job *job )
{
if ( job->error() ) {
job->showErrorDialog( 0 );
@ -267,9 +267,9 @@ bool KCalResource::doSave()
mCalendar.save( cacheFile() );
mUploadJob = KIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true );
connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ),
TQT_SLOT( slotSaveJobResult( KIO::Job * ) ) );
mUploadJob = TDEIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true );
connect( mUploadJob, TQT_SIGNAL( result( TDEIO::Job * ) ),
TQT_SLOT( slotSaveJobResult( TDEIO::Job * ) ) );
return true;
}
@ -279,7 +279,7 @@ bool KCalResource::isSaving()
return mUploadJob;
}
void KCalResource::slotSaveJobResult( KIO::Job *job )
void KCalResource::slotSaveJobResult( TDEIO::Job *job )
{
if ( job->error() ) {
job->showErrorDialog( 0 );

@ -36,7 +36,7 @@
#include <bugsystem.h>
namespace KIO {
namespace TDEIO {
class FileCopyJob;
class Job;
}
@ -64,13 +64,13 @@ class KCalResource : public KCal::ResourceCached
enum { ReloadNever, ReloadOnStartup, ReloadOnceADay, ReloadAlways };
/**
Create resource from configuration information stored in KConfig object.
Create resource from configuration information stored in TDEConfig object.
*/
KCalResource( const KConfig * );
KCalResource( const TDEConfig * );
~KCalResource();
void readConfig( const KConfig *config );
void writeConfig( KConfig *config );
void readConfig( const TDEConfig *config );
void writeConfig( TDEConfig *config );
KBB::ResourcePrefs *prefs();
@ -89,8 +89,8 @@ class KCalResource : public KCal::ResourceCached
void slotBugListAvailable( const Package &, const TQString &,
const Bug::List &bugs );
void slotLoadJobResult( KIO::Job * );
void slotSaveJobResult( KIO::Job * );
void slotLoadJobResult( TDEIO::Job * );
void slotSaveJobResult( TDEIO::Job * );
protected:
bool doOpen();
@ -112,8 +112,8 @@ class KCalResource : public KCal::ResourceCached
bool mOpen;
KIO::FileCopyJob *mDownloadJob;
KIO::FileCopyJob *mUploadJob;
TDEIO::FileCopyJob *mDownloadJob;
TDEIO::FileCopyJob *mUploadJob;
KABC::Lock *mLock;

@ -39,7 +39,7 @@ public:
~KSvnd();
k_dcop:
// void addAuthInfo(KIO::AuthInfo, long);
// void addAuthInfo(TDEIO::AuthInfo, long);
TQString commitDialog(TQString);
bool anyNotValidWorkingCopy( const KURL::List& wclist );
bool anyValidWorkingCopy( const KURL::List& wclist );

@ -53,7 +53,7 @@
#include "svn.h"
#include <apr_portable.h>
using namespace KIO;
using namespace TDEIO;
typedef struct
{
@ -125,14 +125,14 @@ kio_svnProtocol::kio_svnProtocol(const TQCString &pool_socket, const TQCString &
svn_error_t *err = svn_client_create_context(&ctx, pool);
if ( err ) {
kdDebug(7128) << "kio_svnProtocol::kio_svnProtocol() create_context ERROR" << endl;
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
return;
}
err = svn_config_ensure (NULL,pool);
if ( err ) {
kdDebug(7128) << "kio_svnProtocol::kio_svnProtocol() configensure ERROR" << endl;
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
return;
}
svn_config_get_config (&ctx->config, NULL, pool);
@ -272,7 +272,7 @@ void kio_svnProtocol::get(const KURL& url ){
svn_error_t *err = svn_client_cat (bt->string_stream, svn_path_canonicalize( target.utf8(),subpool ),&rev,ctx, subpool);
if ( err ) {
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
svn_pool_destroy( subpool );
return;
}
@ -439,7 +439,7 @@ void kio_svnProtocol::listDir(const KURL& url){
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_ls (&dirents, svn_path_canonicalize( target.utf8(), subpool ), &rev, false, ctx, subpool);
if ( err ) {
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
svn_pool_destroy( subpool );
return;
}
@ -490,23 +490,23 @@ bool kio_svnProtocol::createUDSEntry( const TQString& filename, const TQString&
kdDebug(7128) << "MTime : " << ( long )mtime << endl;
kdDebug(7128) << "UDS filename : " << filename << endl;
UDSAtom atom;
atom.m_uds = KIO::UDS_NAME;
atom.m_uds = TDEIO::UDS_NAME;
atom.m_str = filename;
entry.append( atom );
atom.m_uds = KIO::UDS_FILE_TYPE;
atom.m_uds = TDEIO::UDS_FILE_TYPE;
atom.m_long = isdir ? S_IFDIR : S_IFREG;
entry.append( atom );
atom.m_uds = KIO::UDS_SIZE;
atom.m_uds = TDEIO::UDS_SIZE;
atom.m_long = size;
entry.append( atom );
atom.m_uds = KIO::UDS_MODIFICATION_TIME;
atom.m_uds = TDEIO::UDS_MODIFICATION_TIME;
atom.m_long = mtime;
entry.append( atom );
atom.m_uds = KIO::UDS_USER;
atom.m_uds = TDEIO::UDS_USER;
atom.m_str = user;
entry.append( atom );
@ -552,7 +552,7 @@ void kio_svnProtocol::copy(const KURL & src, const KURL& dest, int /*permissions
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_copy(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), ctx, subpool);
if ( err ) {
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
}
finished();
@ -580,7 +580,7 @@ void kio_svnProtocol::mkdir( const KURL::List& list, int /*permissions*/ ) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool);
if ( err ) {
error( KIO::ERR_COULD_NOT_MKDIR, err->message );
error( TDEIO::ERR_COULD_NOT_MKDIR, err->message );
}
finished();
@ -603,7 +603,7 @@ void kio_svnProtocol::mkdir( const KURL& url, int /*permissions*/ ) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool);
if ( err ) {
error( KIO::ERR_COULD_NOT_MKDIR, err->message );
error( TDEIO::ERR_COULD_NOT_MKDIR, err->message );
}
finished();
@ -626,7 +626,7 @@ void kio_svnProtocol::del( const KURL& url, bool /*isfile*/ ) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_delete(&commit_info,targets,false/*force remove locally modified files in wc*/,ctx,subpool);
if ( err ) {
error( KIO::ERR_CANNOT_DELETE, err->message );
error( TDEIO::ERR_CANNOT_DELETE, err->message );
}
finished();
@ -672,7 +672,7 @@ void kio_svnProtocol::rename(const KURL& src, const KURL& dest, bool /*overwrite
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_move(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), false/*force remove locally modified files in wc*/, ctx, subpool);
if ( err ) {
error( KIO::ERR_CANNOT_RENAME, err->message );
error( TDEIO::ERR_CANNOT_RENAME, err->message );
}
finished();
@ -935,7 +935,7 @@ void kio_svnProtocol::svn_diff(const KURL & url1, const KURL& url2,int rev1, int
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_diff (options, path1, &revision1, path2, &revision2, recurse, false, true, outfile, NULL, ctx, subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
//read the content of the outfile now
TQStringList tmp;
apr_file_close(outfile);
@ -981,7 +981,7 @@ void kio_svnProtocol::svn_switch( const KURL& wc, const KURL& repos, int revnumb
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_switch (NULL/*result revision*/, path, url, &rev, recurse, ctx, subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1001,7 +1001,7 @@ void kio_svnProtocol::update( const KURL& wc, int revnumber, const TQString& rev
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_update (NULL, svn_path_canonicalize( target.utf8(), subpool ), &rev, true, ctx, subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1029,7 +1029,7 @@ void kio_svnProtocol::import( const KURL& repos, const KURL& wc ) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_import(&commit_info,path,url,nonrecursive,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1053,7 +1053,7 @@ void kio_svnProtocol::checkout( const KURL& repos, const KURL& wc, int revnumber
initNotifier(true, false, false, subpool);
svn_error_t *err = svn_client_checkout (NULL/* rev actually checkedout */, svn_path_canonicalize( target.utf8(), subpool ), svn_path_canonicalize ( dpath.utf8(), subpool ), &rev, true, ctx, subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1078,7 +1078,7 @@ void kio_svnProtocol::commit(const KURL::List& wc) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_commit(&commit_info,targets,nonrecursive,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
if ( commit_info ) {
for ( TQValueListConstIterator<KURL> it = wc.begin(); it != wc.end() ; ++it ) {
@ -1118,7 +1118,7 @@ void kio_svnProtocol::add(const KURL& wc) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_add(svn_path_canonicalize( nurl.path().utf8(), subpool ),nonrecursive,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1144,7 +1144,7 @@ void kio_svnProtocol::wc_delete(const KURL::List& wc) {
svn_error_t *err = svn_client_delete(&commit_info,targets,nonrecursive,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1168,7 +1168,7 @@ void kio_svnProtocol::wc_revert(const KURL::List& wc) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_revert(targets,nonrecursive,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1192,7 +1192,7 @@ void kio_svnProtocol::wc_status(const KURL& wc, bool checkRepos, bool fullRecurs
svn_error_t *err = svn_client_status(&result_rev, svn_path_canonicalize( nurl.path().utf8(), subpool ), &rev, kio_svnProtocol::status, this, fullRecurse, getAll, checkRepos, no_ignore, ctx, subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);
@ -1565,7 +1565,7 @@ void kio_svnProtocol::wc_resolve( const KURL& wc, bool recurse ) {
initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_resolved(svn_path_canonicalize( nurl.path().utf8(), subpool ), recurse,ctx,subpool);
if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message );
error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished();
svn_pool_destroy (subpool);

@ -64,7 +64,7 @@ typedef struct notify_baton {
} notify_baton;
class kio_svnProtocol : public KIO::SlaveBase
class kio_svnProtocol : public TDEIO::SlaveBase
{
public:
kio_svnProtocol(const TQCString &pool_socket, const TQCString &app_socket);
@ -113,7 +113,7 @@ class kio_svnProtocol : public KIO::SlaveBase
KURL myURL;
svn_client_ctx_t *ctx;
KIO::AuthInfo info;
TDEIO::AuthInfo info;
enum SVN_METHOD {
SVN_CHECKOUT=1, //KURL repository, KURL workingcopy, int revnumber=-1, TQString revkind(HEAD, ...) //revnumber==-1 => use of revkind
@ -132,7 +132,7 @@ class kio_svnProtocol : public KIO::SlaveBase
};
private:
bool createUDSEntry( const TQString& filename, const TQString& user, long long int size, bool isdir, time_t mtime, KIO::UDSEntry& entry);
bool createUDSEntry( const TQString& filename, const TQString& user, long long int size, bool isdir, time_t mtime, TDEIO::UDSEntry& entry);
apr_pool_t *pool;
int m_counter;
};

@ -66,9 +66,9 @@ SvnHelper::SvnHelper():TDEApplication() {
int rev = -1;
kdDebug(7128) << "updating : " << (*it).prettyURL() << endl;
s << cmd << *it << rev << TQString( "HEAD" );
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
}
} else if (args->isSet("c")) {
kdDebug(7128) << "commit " << list << endl;
@ -81,9 +81,9 @@ SvnHelper::SvnHelper():TDEApplication() {
kdDebug(7128) << "commiting : " << (*it).prettyURL() << endl;
s << *it;
}
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
} else if (args->isSet("a")) {
kdDebug(7128) << "add " << list << endl;
KURL servURL = "svn+http://this_is_a_fake_URL_and_this_is_normal/";
@ -93,9 +93,9 @@ SvnHelper::SvnHelper():TDEApplication() {
int cmd = 6;
kdDebug(7128) << "adding : " << (*it).prettyURL() << endl;
s << cmd << *it;
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
}
} else if (args->isSet("D")) {
kdDebug(7128) << "diff " << list << endl;
@ -110,9 +110,9 @@ SvnHelper::SvnHelper():TDEApplication() {
TQString revkind1 = "BASE";
TQString revkind2 = "WORKING";
s << cmd << *it << *it << rev1 << revkind1 << rev2 << revkind2 << true ;
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
if ( diffresult.count() > 0 ) {
//check kompare is available
if ( !KStandardDirs::findExe( "kompare" ).isNull() ) {
@ -151,9 +151,9 @@ SvnHelper::SvnHelper():TDEApplication() {
kdDebug(7128) << "deleting : " << (*it).prettyURL() << endl;
s << *it;
}
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
} else if (args->isSet("s")) {
kdDebug(7128) << "switch " << list << endl;
SubversionSwitch d;
@ -178,9 +178,9 @@ SvnHelper::SvnHelper():TDEApplication() {
s << recurse;
s << revnumber;
s << revkind;
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
}
}
} else if (args->isSet("r")) {
@ -194,9 +194,9 @@ SvnHelper::SvnHelper():TDEApplication() {
kdDebug(7128) << "reverting : " << (*it).prettyURL() << endl;
s << *it;
}
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
} else if (args->isSet("C")) {
kdDebug(7128) << "checkout " << list << endl;
SubversionCheckout d;
@ -219,9 +219,9 @@ SvnHelper::SvnHelper():TDEApplication() {
s << rev;
s << revkind;
kdDebug(7128) << "checkouting : " << d.url->url() << " into " << (*it).prettyURL() << " at rev : " << rev << " or " << revkind << endl;
KIO::SimpleJob * job = KIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 );
TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
TDEIO::NetAccess::synchronousRun( job, 0 );
}
}
} else {
@ -230,11 +230,11 @@ SvnHelper::SvnHelper():TDEApplication() {
TQTimer::singleShot( 0, this, TQT_SLOT( finished() ) );
}
void SvnHelper::slotResult( KIO::Job* job ) {
void SvnHelper::slotResult( TDEIO::Job* job ) {
if ( job->error() )
job->showErrorDialog( );
KIO::MetaData ma = job->metaData();
TDEIO::MetaData ma = job->metaData();
TQValueList<TQString> keys = ma.keys();
qHeapSort( keys );
TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it;

@ -33,7 +33,7 @@ public:
SvnHelper();
private slots:
void finished();
void slotResult( KIO::Job *);
void slotResult( TDEIO::Job *);
private:
WId m_id;
TQStringList diffresult; //for diff commands ;)

@ -63,7 +63,7 @@ Nov 20, 2003 : Otto Bruggeman
* When swapping source with destination also change the windows caption and the statusbar text
* Make sure that when swapping and when there are changes, all changes that were made can be
saved, discarded or cancel the whole swap (strings are recycled from the queryClose method)
* Give a better parent to the KIO::NetAccess::download in komparemodellist.cpp
* Give a better parent to the TDEIO::NetAccess::download in komparemodellist.cpp
* Added some FIXME's for after the branching to make the urls appear in bold in the error message
* Make queryClose not use the isModified from the part but from the modellist

@ -8,7 +8,7 @@
#include <tqstringlist.h>
#include <kdemacros.h>
class KConfig;
class TDEConfig;
class KURL;
class KompareInterfacePrivate;
@ -87,8 +87,8 @@ public:
* Warning this should be in class Part in KDE 4.0, not here !
* Around that time the methods will disappear here
*/
virtual int readProperties( KConfig* config ) = 0;
virtual int saveProperties( KConfig* config ) = 0;
virtual int readProperties( TDEConfig* config ) = 0;
virtual int saveProperties( TDEConfig* config ) = 0;
/**
* Warning this should be in class ReadWritePart in KDE 4.0, not here !

@ -294,7 +294,7 @@ void KompareShell::setCaption( const TQString& caption )
KParts::DockMainWindow::setCaption( caption, m_viewPart->isModified() );
}
void KompareShell::saveProperties(KConfig* config)
void KompareShell::saveProperties(TDEConfig* config)
{
// The 'config' object points to the session managed
// config file. Anything you write here will be available
@ -314,7 +314,7 @@ void KompareShell::saveProperties(KConfig* config)
m_viewPart->saveProperties( config );
}
void KompareShell::readProperties(KConfig* config)
void KompareShell::readProperties(TDEConfig* config)
{
// The 'config' object points to the session managed
// config file. This function is automatically called whenever

@ -99,14 +99,14 @@ protected:
* This method is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties(KConfig *);
void saveProperties(TDEConfig *);
/**
* This method is called when this app is restored. The KConfig
* This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
void readProperties(KConfig *);
void readProperties(TDEConfig *);
private slots:
void slotSetStatusBarText( const TQString& text );

@ -264,7 +264,7 @@ const TQString KomparePart::fetchURL( const KURL& url )
TQString tempFileName( "" );
if ( !url.isLocalFile() )
{
if ( ! KIO::NetAccess::download( url, tempFileName, widget() ) )
if ( ! TDEIO::NetAccess::download( url, tempFileName, widget() ) )
{
slotShowError( i18n( "<qt>The URL <b>%1</b> cannot be downloaded.</qt>" ).arg( url.prettyURL() ) );
tempFileName = "";
@ -288,9 +288,9 @@ void KomparePart::cleanUpTemporaryFiles()
{
// i hope a local file will not be removed if it was not downloaded...
if ( !m_info.localSource.isEmpty() )
KIO::NetAccess::removeTempFile( m_info.localSource );
TDEIO::NetAccess::removeTempFile( m_info.localSource );
if ( !m_info.localDestination.isEmpty() )
KIO::NetAccess::removeTempFile( m_info.localDestination );
TDEIO::NetAccess::removeTempFile( m_info.localDestination );
}
void KomparePart::compare( const KURL& source, const KURL& destination )
@ -433,7 +433,7 @@ void KomparePart::saveDiff()
if( dlg->exec() ) {
w->saveOptions();
KConfig* config = instance()->config();
TDEConfig* config = instance()->config();
saveProperties( config );
config->sync();
@ -441,7 +441,7 @@ void KomparePart::saveDiff()
{
KURL url = KFileDialog::getSaveURL( m_info.destination.url(),
i18n("*.diff *.dif *.patch|Patch Files"), widget(), i18n( "Save .diff" ) );
if ( KIO::NetAccess::exists( url, false, widget() ) )
if ( TDEIO::NetAccess::exists( url, false, widget() ) )
{
int result = KMessageBox::warningYesNoCancel( widget(), i18n("The file exists or is write-protected; do you want to overwrite it?"), i18n("File Exists"), i18n("Overwrite"), i18n("Do Not Overwrite") );
if ( result == KMessageBox::Cancel )
@ -722,7 +722,7 @@ bool KomparePart::queryClose()
return true;
}
int KomparePart::readProperties( KConfig *config )
int KomparePart::readProperties( TDEConfig *config )
{
m_viewSettings->loadSettings( config );
m_diffSettings->loadSettings( config );
@ -730,7 +730,7 @@ int KomparePart::readProperties( KConfig *config )
return 0;
}
int KomparePart::saveProperties( KConfig *config )
int KomparePart::saveProperties( TDEConfig *config )
{
m_viewSettings->saveSettings( config );
m_diffSettings->saveSettings( config );

@ -76,8 +76,8 @@ public:
// Sessionmanagement stuff, added to the kompare iface
// because they are not in the Part class where they belong
// Should be added when bic changes are allowed again (kde 4.0)
virtual int readProperties( KConfig *config );
virtual int saveProperties( KConfig *config );
virtual int readProperties( TDEConfig *config );
virtual int saveProperties( TDEConfig *config );
// this one is called when the shell_app is about to close.
// we need it now to save the properties of the part when apps dont (can't)
// use the readProperties and saveProperties methods

@ -37,7 +37,7 @@ KompareURLDialog::KompareURLDialog( TQWidget *parent, const char *name )
{
setIconListAllVisible(true);
KConfig* cfg = kapp->config();
TDEConfig* cfg = kapp->config();
TQVBox* filesBox = addVBoxPage( i18n( "Files" ), i18n( "Here you can enter the files you want to compare." ) );
m_filesPage = new FilesPage( filesBox );
m_filesSettings = new FilesSettings( this );
@ -76,7 +76,7 @@ void KompareURLDialog::slotOk()
{
m_filesPage->setURLsInComboBoxes();
KConfig* cfg = kapp->config();
TDEConfig* cfg = kapp->config();
m_filesPage->apply();
m_diffPage->apply();

@ -26,7 +26,7 @@
class TQGroupBox;
class KComboBox;
class KConfig;
class TDEConfig;
class KFileDialog;
class KURLComboBox;
class KURLRequester;

@ -44,9 +44,9 @@ DiffSettings::~DiffSettings()
{
}
void DiffSettings::loadSettings( KConfig* config )
void DiffSettings::loadSettings( TDEConfig* config )
{
KConfigGroup group( config, "Diff Options" );
TDEConfigGroup group( config, "Diff Options" );
m_diffProgram = group.readEntry ( "DiffProgram", "" );
m_linesOfContext = group.readNumEntry ( "LinesOfContext", 3 );
m_largeFiles = group.readBoolEntry( "LargeFiles", true );
@ -66,7 +66,7 @@ void DiffSettings::loadSettings( KConfig* config )
m_format = static_cast<Kompare::Format>( group.readNumEntry( "Format", Kompare::Unified ) );
KConfigGroup group2 ( config, "Exclude File Options" );
TDEConfigGroup group2 ( config, "Exclude File Options" );
m_excludeFilePattern = group2.readBoolEntry( "Pattern", false );
m_excludeFilePatternList = group2.readListEntry( "PatternList" );
m_excludeFilesFile = group2.readBoolEntry( "File", false );
@ -74,9 +74,9 @@ void DiffSettings::loadSettings( KConfig* config )
m_excludeFilesFileHistoryList = group2.readListEntry( "FileHistoryList" );
}
void DiffSettings::saveSettings( KConfig* config )
void DiffSettings::saveSettings( TDEConfig* config )
{
KConfigGroup group( config, "Diff Options" );
TDEConfigGroup group( config, "Diff Options" );
group.writeEntry( "DiffProgram", m_diffProgram );
group.writeEntry( "LinesOfContext", m_linesOfContext );
group.writeEntry( "Format", m_format );
@ -96,7 +96,7 @@ void DiffSettings::saveSettings( KConfig* config )
group.writeEntry( "NewFiles", m_newFiles );
group.setDirty( true );
KConfigGroup group2( config, "Exclude File Options" );
TDEConfigGroup group2( config, "Exclude File Options" );
group2.writeEntry( "Pattern", m_excludeFilePattern );
group2.writeEntry( "PatternList", m_excludeFilePatternList );
group2.writeEntry( "File", m_excludeFilesFile );

@ -35,8 +35,8 @@ public:
virtual ~DiffSettings();
public:
// some virtual functions that will be overloaded from the base class
virtual void loadSettings( KConfig* config );
virtual void saveSettings( KConfig* config );
virtual void loadSettings( TDEConfig* config );
virtual void saveSettings( TDEConfig* config );
public:
TQString m_diffProgram;

@ -26,7 +26,7 @@ class TQGroupBox;
class TQComboBox;
class KComboBox;
class KConfig;
class TDEConfig;
class KFileDialog;
class KURLComboBox;
class KURLRequester;

@ -30,7 +30,7 @@ FilesSettings::~FilesSettings()
{
}
void FilesSettings::loadSettings( KConfig* config )
void FilesSettings::loadSettings( TDEConfig* config )
{
config->setGroup( m_configGroupName );
@ -41,7 +41,7 @@ void FilesSettings::loadSettings( KConfig* config )
m_encoding = config->readEntry ( "Encoding", "default" );
}
void FilesSettings::saveSettings( KConfig* config )
void FilesSettings::saveSettings( TDEConfig* config )
{
config->setGroup( m_configGroupName );
config->writeEntry( "Recent Sources", m_recentSources );

@ -23,7 +23,7 @@
#include "settingsbase.h"
class KConfig;
class TDEConfig;
class FilesSettings : public SettingsBase
{
@ -35,8 +35,8 @@ public:
public:
// some virtual functions that will be overloaded from the base class
virtual void loadSettings( KConfig* config );
virtual void saveSettings( KConfig* config );
virtual void loadSettings( TDEConfig* config );
virtual void saveSettings( TDEConfig* config );
void setGroup( const TQString& groupName );

@ -31,11 +31,11 @@ SettingsBase::~SettingsBase()
}
void SettingsBase::loadSettings( KConfig* /* config */ )
void SettingsBase::loadSettings( TDEConfig* /* config */ )
{
}
void SettingsBase::saveSettings( KConfig* /* config */ )
void SettingsBase::saveSettings( TDEConfig* /* config */ )
{
}

@ -25,7 +25,7 @@
#include "kompare.h"
class TQWidget;
class KConfig;
class TDEConfig;
class SettingsBase : public TQObject
{
@ -36,8 +36,8 @@ public:
~SettingsBase();
public:
virtual void loadSettings( KConfig* config );
virtual void saveSettings( KConfig* config );
virtual void loadSettings( TDEConfig* config );
virtual void saveSettings( TDEConfig* config );
};
#endif

@ -46,9 +46,9 @@ ViewSettings::~ViewSettings()
{
}
void ViewSettings::loadSettings( KConfig* config )
void ViewSettings::loadSettings( TDEConfig* config )
{
KConfigGroup cfg( config, "View Options" );
TDEConfigGroup cfg( config, "View Options" );
m_removeColor = cfg.readColorEntry( "RemoveColor", &default_removeColor );
m_changeColor = cfg.readColorEntry( "ChangeColor", &default_changeColor );
m_addColor = cfg.readColorEntry( "AddColor", &default_addColor );
@ -61,9 +61,9 @@ void ViewSettings::loadSettings( KConfig* config )
m_font = cfg.readFontEntry ( "TextFont", &stdFixed );
}
void ViewSettings::saveSettings( KConfig* config )
void ViewSettings::saveSettings( TDEConfig* config )
{
KConfigGroup cfg( config, "View Options" );
TDEConfigGroup cfg( config, "View Options" );
cfg.writeEntry( "RemoveColor", m_removeColor );
cfg.writeEntry( "ChangeColor", m_changeColor );
cfg.writeEntry( "AddColor", m_addColor );

@ -40,8 +40,8 @@ public:
~ViewSettings();
public:
// some virtual functions that will be overloaded from the base class
virtual void loadSettings( KConfig* config );
virtual void saveSettings( KConfig* config );
virtual void loadSettings( TDEConfig* config );
virtual void saveSettings( TDEConfig* config );
TQColor colorForDifferenceType( int type, bool selected = false, bool applied = false );
public:

@ -360,22 +360,22 @@ bool KompareModelList::saveDestination( DiffModel* model )
TQString destination = model->destinationPath() + model->destinationFile();
kdDebug(8101) << "Tempfilename : " << temp->name() << endl;
kdDebug(8101) << "DestinationURL : " << destination << endl;
KIO::UDSEntry entry;
if ( !KIO::NetAccess::stat( KURL( destination ).path(), entry, (TQWidget*)parent() ) )
TDEIO::UDSEntry entry;
if ( !TDEIO::NetAccess::stat( KURL( destination ).path(), entry, (TQWidget*)parent() ) )
{
if ( !KIO::NetAccess::mkdir( KURL( destination ).path(), (TQWidget*)parent() ) )
if ( !TDEIO::NetAccess::mkdir( KURL( destination ).path(), (TQWidget*)parent() ) )
{
emit error( i18n( "<qt>Could not create destination directory <b>%1</b>.\nThe file has not been saved.</qt>" ) );
return false;
}
}
result = KIO::NetAccess::upload( temp->name(), KURL( destination ), (TQWidget*)parent() );
result = TDEIO::NetAccess::upload( temp->name(), KURL( destination ), (TQWidget*)parent() );
}
else
{
kdDebug(8101) << "Tempfilename : " << temp->name() << endl;
kdDebug(8101) << "DestinationURL : " << m_destination << endl;
result = KIO::NetAccess::upload( temp->name(), KURL( m_destination ), (TQWidget*)parent() );
result = TDEIO::NetAccess::upload( temp->name(), KURL( m_destination ), (TQWidget*)parent() );
}
if ( !result )
@ -613,7 +613,7 @@ void KompareModelList::slotWriteDiffOutput( bool success )
emit error( i18n( "Could not write to the temporary file." ) );
}
KIO::NetAccess::upload( m_diffTemp->name(), KURL( m_diffURL ), (TQWidget*)parent() );
TDEIO::NetAccess::upload( m_diffTemp->name(), KURL( m_diffURL ), (TQWidget*)parent() );
emit status( Kompare::FinishedWritingDiff );
}

@ -101,14 +101,14 @@ void KUIViewer::setupActions()
KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
}
void KUIViewer::saveProperties(KConfig* /*config*/)
void KUIViewer::saveProperties(TDEConfig* /*config*/)
{
// the 'config' object points to the session managed
// config file. anything you write here will be available
// later when this app is restored
}
void KUIViewer::readProperties(KConfig* /*config*/)
void KUIViewer::readProperties(TDEConfig* /*config*/)
{
// the 'config' object points to the session managed
// config file. this function is automatically called whenever

@ -79,14 +79,14 @@ protected:
* This method is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties(KConfig *);
void saveProperties(TDEConfig *);
/**
* This method is called when this app is restored. The KConfig
* This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
void readProperties(KConfig *);
void readProperties(TDEConfig *);
private slots:
void fileOpen();

@ -153,7 +153,7 @@ bool KUIViewerPart::openURL( const KURL& url)
m_url = url;
m_file = TQString();
if (KIO::NetAccess::download(url, m_file))
if (TDEIO::NetAccess::download(url, m_file))
return openFile();
else
return false;

@ -51,8 +51,8 @@ kde-spellcheck.pl A script to check source code for misspelings and optionally
=== MODERNIZATION SCRIPTS
rc2kcfgxt.pl Reads an existing KConfig rc file and creates a best-guess
version of a KConfigXT XML file.
rc2kcfgxt.pl Reads an existing TDEConfig rc file and creates a best-guess
version of a TDEConfigXT XML file.
kdelnk2desktop.py Converts old-style .kdelnk files to their modern .desktop
equivalents.

@ -28,21 +28,21 @@ $lastdir = '.';
'`QTextStream\' undeclared \(first use this function\)' => "qtextstream",
'`QTextStream\' was not declared in this scope' => "qtextstream",
'incomplete type `QSocketNotifier\'' => "qsocketnotifier",
'no matching function for call to `KConfig' => "kconfig",
'variable `class KConfig \S*\' has initializer but incomplete type' => "kconfig",
'no matching function for call to `TDEConfig' => "kconfig",
'variable `class TDEConfig \S*\' has initializer but incomplete type' => "kconfig",
'implicit declaration of function `int kdDebug' => "kdebug",
'implicit declaration of function `int kdWarning' => "kdebug",
'`QFile\' undeclared \(first use this function' => "qfile",
'variable `QFile \S*\' has initializer but incomplete type' => "qfile",
'type `KConfigBase\' is not a base type for type `KConfig' => "kconfig",
'type `TDEConfigBase\' is not a base type for type `TDEConfig' => "kconfig",
'invalid use of undefined type `class QAccel' => "qaccel",
'invalid use of undefined type `class TDEAboutData' => "kaboutdata",
'incomplete type `TDEAboutData\'' => "kaboutdata",
'incomplete type `QGrid\'' => "qgrid",
'invalid use of undefined type `class QGrid\'' => "qgrid",
'aggregate `class KConfig \S*\' has incomplete type' => "kconfig",
'aggregate `class TDEConfig \S*\' has incomplete type' => "kconfig",
'`stderr\' undeclared \(first use this function' => "stdio",
'invalid use of undefined type `class KConfig' => "kconfig",
'invalid use of undefined type `class TDEConfig' => "kconfig",
'implicit declaration of function `int f?printf' => "stdio",
'no method `TDEGlobal::' => "kglobal",
'`TDEGlobal\' undeclared \(first use this function\)' => "kglobal",

@ -234,7 +234,7 @@ function! MapIdentHeader( ident )
" KDE stuff
elseif a:ident == 'K\(Double\|Int\)\(NumInput\|SpinBox\)'
return '<knuminput.h>'
elseif a:ident == 'KConfigGroup'
elseif a:ident == 'TDEConfigGroup'
return '<kconfigbase.h>'
elseif a:ident == 'KListViewItem'
return '<klistview.h>'

@ -121,7 +121,7 @@
; KDE
(kdebug.h kdDebug kdWarning kdError kdFatal kdBacktrace)
(kconfig.h KConfigGroup)
(kconfig.h TDEConfigGroup)
(kiconloader.h BarIcon SmallIcon DesktopIcon KIcon)
(kicondialog.h KIconCanvas KIconButton)
(knuminput.h KDoubleNumInput KIntNumInput)

@ -8,7 +8,7 @@
#
# Usage: rc2kcfgtxt.pl < rcfile > xmlfile
#
# Reads an rcfile (say, kmailrc) and writes out an KConfigXT XML
# Reads an rcfile (say, kmailrc) and writes out an TDEConfigXT XML
# file that represents a reasonable guess for representing the
# rc file. No guarantees about well-formedness of the XML are made.
#

@ -2685,10 +2685,10 @@ TQString CallGraphView::zoomPosString(ZoomPosition p)
return TQString("TopLeft");
}
void CallGraphView::readViewConfig(KConfig* c,
void CallGraphView::readViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup* g = configGroup(c, prefix, postfix);
TDEConfigGroup* g = configGroup(c, prefix, postfix);
if (0) tqDebug("CallGraphView::readViewConfig");
@ -2709,10 +2709,10 @@ void CallGraphView::readViewConfig(KConfig* c,
delete g;
}
void CallGraphView::saveViewConfig(KConfig* c,
void CallGraphView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
writeConfigEntry(&g, "MaxCaller", _maxCallerDepth, DEFAULT_MAXCALLER);
writeConfigEntry(&g, "MaxCalling", _maxCallingDepth, DEFAULT_MAXCALLING);

@ -426,8 +426,8 @@ public:
TQWidget* parent=0, const char* name=0);
~CallGraphView();
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void readViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
TQWidget* widget() { return this; }
TQString whatsThis() const;

@ -948,10 +948,10 @@ TQColor CallMapCallerItem::backColor() const
return w->groupColor(_c->caller());
}
void CallMapView::readViewConfig(KConfig* c,
void CallMapView::readViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup* g = configGroup(c, prefix, postfix);
TDEConfigGroup* g = configGroup(c, prefix, postfix);
setSplitMode(g->readEntry("SplitMode", DEFAULT_SPLITMODE));
@ -975,10 +975,10 @@ void CallMapView::readViewConfig(KConfig* c,
delete g;
}
void CallMapView::saveViewConfig(KConfig* c,
void CallMapView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
writeConfigEntry(&g, "SplitMode", splitModeString(), DEFAULT_SPLITMODE);
writeConfigEntry(&g, "DrawName", fieldVisible(0), DEFAULT_DRAWNAME);

@ -41,8 +41,8 @@ public:
TQString whatsThis() const;
void setData(TraceData*);
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void readViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
bool showCallers() const { return _showCallers; }
TraceCost* totalCost();

@ -130,12 +130,12 @@ Configuration* Configuration::config()
}
void Configuration::saveOptions(KConfig* kconfig)
void Configuration::saveOptions(TDEConfig* kconfig)
{
Configuration* c = config();
// color options
KConfigGroup colorConfig(kconfig, TQCString("CostColors"));
TDEConfigGroup colorConfig(kconfig, TQCString("CostColors"));
TQDictIterator<ColorSetting> it( c->_colors );
int count = 1;
for( ; it.current(); ++it ) {
@ -152,7 +152,7 @@ void Configuration::saveOptions(KConfig* kconfig)
colorConfig.writeEntry( "Count", count-1);
// source options
KConfigGroup sourceConfig(kconfig, TQCString("Source"));
TDEConfigGroup sourceConfig(kconfig, TQCString("Source"));
sourceConfig.writeEntry("Dirs", c->_generalSourceDirs, ':');
TQDictIterator<TQStringList> it2( c->_objectSourceDirs );
count = 1;
@ -166,7 +166,7 @@ void Configuration::saveOptions(KConfig* kconfig)
sourceConfig.writeEntry( "Count", count-1);
// general options
KConfigGroup generalConfig(kconfig, TQCString("General"));
TDEConfigGroup generalConfig(kconfig, TQCString("General"));
generalConfig.writeEntry("ShowPercentage", c->_showPercentage);
generalConfig.writeEntry("ShowExpanded", c->_showExpanded);
generalConfig.writeEntry("ShowCycles", c->_showCycles);
@ -179,7 +179,7 @@ void Configuration::saveOptions(KConfig* kconfig)
generalConfig.writeEntry("Context", c->_context);
generalConfig.writeEntry("NoCostInside", c->_noCostInside);
KConfigGroup ctConfig(kconfig, TQCString("CostTypes"));
TDEConfigGroup ctConfig(kconfig, TQCString("CostTypes"));
int ctCount = TraceCostType::knownTypeCount();
ctConfig.writeEntry( "Count", ctCount);
for (int i=0; i<ctCount; i++) {
@ -200,7 +200,7 @@ void Configuration::saveOptions(KConfig* kconfig)
void Configuration::readOptions(KConfig* kconfig)
void Configuration::readOptions(TDEConfig* kconfig)
{
int i, count;
Configuration* c = config();
@ -226,7 +226,7 @@ void Configuration::readOptions(KConfig* kconfig)
c->color("CostType-Dr")->color = TQColor(40,40,180);
c->color("CostType-Dw")->color = TQColor(80,80,120);
KConfigGroup colorConfig(kconfig, TQCString("CostColors"));
TDEConfigGroup colorConfig(kconfig, TQCString("CostColors"));
count = colorConfig.readNumEntry("Count", 0);
for (i=1;i<=count;i++) {
TQString n = colorConfig.readEntry(TQString("Name%1").arg(i));
@ -245,7 +245,7 @@ void Configuration::readOptions(KConfig* kconfig)
}
// source options
KConfigGroup sourceConfig(kconfig, TQCString("Source"));
TDEConfigGroup sourceConfig(kconfig, TQCString("Source"));
TQStringList dirs;
dirs = sourceConfig.readListEntry("Dirs", ':');
if (dirs.count()>0) c->_generalSourceDirs = dirs;
@ -263,7 +263,7 @@ void Configuration::readOptions(KConfig* kconfig)
// general options
KConfigGroup generalConfig(kconfig, TQCString("General"));
TDEConfigGroup generalConfig(kconfig, TQCString("General"));
c->_showPercentage = generalConfig.readBoolEntry("ShowPercentage", true);
c->_showExpanded = generalConfig.readBoolEntry("ShowExpanded", false);
c->_showCycles = generalConfig.readBoolEntry("ShowCycles", true);
@ -279,7 +279,7 @@ void Configuration::readOptions(KConfig* kconfig)
// known cost types
if (TraceCostType::knownTypeCount()==0) {
KConfigGroup ctConfig(kconfig, TQCString("CostTypes"));
TDEConfigGroup ctConfig(kconfig, TQCString("CostTypes"));
int ctCount = ctConfig.readNumEntry("Count", 0);
if (ctCount>0) {
for (int i=1;i<=ctCount;i++) {

@ -29,7 +29,7 @@
#include "tracedata.h"
class KConfig;
class TDEConfig;
class Configuration
{
@ -40,8 +40,8 @@ public:
static Configuration* config();
static void saveOptions(KConfig*);
static void readOptions(KConfig*);
static void saveOptions(TDEConfig*);
static void readOptions(TDEConfig*);
// color for visualisation of an object
static TQColor functionColor(TraceItem::CostType gt, TraceFunction*);

@ -926,10 +926,10 @@ void InstrView::updateInstrItems()
}
}
void InstrView::readViewConfig(KConfig* c,
void InstrView::readViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup* g = configGroup(c, prefix, postfix);
TDEConfigGroup* g = configGroup(c, prefix, postfix);
if (0) tqDebug("InstrView::readViewConfig");
@ -938,10 +938,10 @@ void InstrView::readViewConfig(KConfig* c,
delete g;
}
void InstrView::saveViewConfig(KConfig* c,
void InstrView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
writeConfigEntry(&g, "ShowHexCode", _showHexCode, DEFAULT_SHOWHEXCODE);
}

@ -42,8 +42,8 @@ public:
virtual TQWidget* widget() { return this; }
TQString whatsThis() const;
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void readViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
protected:
int arrowLevels() { return _arrowLevels; }

@ -165,7 +165,7 @@ void MultiView::doUpdate(int changeType)
}
void MultiView::readViewConfig(KConfig* c,
void MultiView::readViewConfig(TDEConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
@ -173,7 +173,7 @@ void MultiView::readViewConfig(KConfig* c,
prefix.ascii(), postfix.ascii());
TQString active;
KConfigGroup* g = configGroup(c, prefix, postfix);
TDEConfigGroup* g = configGroup(c, prefix, postfix);
int n = g->readNumEntry("Panels", 1);
setChildCount(n);
setOrientation( (g->readEntry("Orientation") == TQString("Horizontal")) ?
@ -200,11 +200,11 @@ void MultiView::readViewConfig(KConfig* c,
activeTV->setActive(true);
}
void MultiView::saveViewConfig(KConfig* c,
void MultiView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
g.writeEntry("Panels", childCount());
g.writeEntry("Orientation",

@ -51,8 +51,8 @@ public:
void selected(TraceItemView*, TraceItem*);
void activated(TraceItemView*, TraceItem*);
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void readViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
public slots:
void tabActivated(TabView*);

@ -461,7 +461,7 @@ void PartSelection::hiddenPartsChangedSlot(const TracePartList& list)
partAreaWidget->changeHidden(list);
}
void PartSelection::readVisualisationConfig(KConfigGroup* config)
void PartSelection::readVisualisationConfig(TDEConfigGroup* config)
{
bool enable;
@ -500,7 +500,7 @@ void PartSelection::readVisualisationConfig(KConfigGroup* config)
showInfo(config->readBoolEntry("ShowInfo", false));
}
void PartSelection::saveVisualisationConfig(KConfigGroup* config)
void PartSelection::saveVisualisationConfig(TDEConfigGroup* config)
{
TQString mode;
if (partAreaWidget->visualisation() == PartAreaWidget::Inclusive)

@ -30,7 +30,7 @@
#include "partgraph.h"
#include "tracedata.h"
class KConfigGroup;
class TDEConfigGroup;
class TraceFunction;
class TraceData;
class TreeMapItem;
@ -49,8 +49,8 @@ public:
PartAreaWidget* graph() { return partAreaWidget; }
void readVisualisationConfig(KConfigGroup*);
void saveVisualisationConfig(KConfigGroup*);
void readVisualisationConfig(TDEConfigGroup*);
void saveVisualisationConfig(TDEConfigGroup*);
signals:
void activePartsChanged(const TracePartList& list);

@ -709,14 +709,14 @@ void TabView::selected(TraceItemView*, TraceItem* s)
}
void TabView::readViewConfig(KConfig* c,
void TabView::readViewConfig(TDEConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
if (0) tqDebug("%s::readConfig(%s%s)", name(),
prefix.ascii(), postfix.ascii());
KConfigGroup* g = configGroup(c, prefix, postfix);
TDEConfigGroup* g = configGroup(c, prefix, postfix);
_mainSplitter->setSizes(g->readIntListEntry("MainSizes"));
_leftSplitter->setSizes(g->readIntListEntry("LeftSizes"));
@ -806,11 +806,11 @@ void TabView::readViewConfig(KConfig* c,
updateView();
}
void TabView::saveViewConfig(KConfig* c,
void TabView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix,
bool withOptions)
{
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
g.writeEntry("MainSizes", _mainSplitter->sizes());
g.writeEntry("LeftSizes", _leftSplitter->sizes());

@ -135,8 +135,8 @@ public:
int visibleTabs();
int visibleAreas();
void readViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(KConfig*, TQString prefix, TQString postfix, bool);
void readViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix, bool);
public slots:
void tabChanged(TQWidget*);

@ -105,7 +105,7 @@ TopLevel::TopLevel(const char *name)
#endif
_statusbar->addWidget(_statusLabel, 1);
KConfig* kconfig = TDEGlobal::config();
TDEConfig* kconfig = TDEGlobal::config();
Configuration::readOptions( kconfig );
_openRecent->loadEntries( kconfig );
@ -201,13 +201,13 @@ void TopLevel::setupPartSelection(PartSelection* ps)
*/
void TopLevel::saveCurrentState(TQString postfix)
{
KConfig* kconfig = TDEGlobal::config();
TDEConfig* kconfig = TDEGlobal::config();
TQCString pf = postfix.ascii();
KConfigGroup psConfig(kconfig, TQCString("PartOverview")+pf);
TDEConfigGroup psConfig(kconfig, TQCString("PartOverview")+pf);
_partSelection->saveVisualisationConfig(&psConfig);
KConfigGroup stateConfig(kconfig, TQCString("CurrentState")+pf);
TDEConfigGroup stateConfig(kconfig, TQCString("CurrentState")+pf);
stateConfig.writeEntry("CostType",
_costType ? _costType->name() : TQString("?"));
stateConfig.writeEntry("CostType2",
@ -225,7 +225,7 @@ void TopLevel::saveTraceSettings()
{
TQString key = traceKey();
KConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
TDEConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
pConfig.writeEntry(TQString("CostType%1").arg(key),
_costType ? _costType->name() : TQString("?"));
pConfig.writeEntry(TQString("CostType2%1").arg(key),
@ -235,7 +235,7 @@ void TopLevel::saveTraceSettings()
if (!_data) return;
KConfigGroup aConfig(TDEGlobal::config(), TQCString("Layouts"));
TDEConfigGroup aConfig(TDEGlobal::config(), TQCString("Layouts"));
aConfig.writeEntry(TQString("Count%1").arg(key), _layoutCount);
aConfig.writeEntry(TQString("Current%1").arg(key), _layoutCurrent);
@ -253,14 +253,14 @@ void TopLevel::saveTraceSettings()
*/
void TopLevel::restoreCurrentState(TQString postfix)
{
KConfig* kconfig = TDEGlobal::config();
TDEConfig* kconfig = TDEGlobal::config();
TQStringList gList = kconfig->groupList();
TQCString pf = postfix.ascii();
// dock properties (not position, this should be have done before)
TQCString group = TQCString("PartOverview");
if (gList.contains(group+pf)) group += pf;
KConfigGroup psConfig(kconfig, group);
TDEConfigGroup psConfig(kconfig, group);
_partSelection->readVisualisationConfig(&psConfig);
_multiView->readViewConfig(kconfig, TQString("MainView"), postfix, true);
@ -388,7 +388,7 @@ void TopLevel::createDocks()
#endif
// Restore QT Dock positions...
KConfigGroup dockConfig(TDEGlobal::config(), TQCString("Docks"));
TDEConfigGroup dockConfig(TDEGlobal::config(), TQCString("Docks"));
TQString str = dockConfig.readEntry("Position", TQString());
if (0) tqDebug("Docks/Position: '%s'", str.ascii());
if (str.isEmpty()) {
@ -427,12 +427,12 @@ TopLevel::~TopLevel()
}
void TopLevel::saveProperties(KConfig* c)
void TopLevel::saveProperties(TDEConfig* c)
{
c->writeEntry("TraceName", _data->traceName());
}
void TopLevel::readProperties(KConfig* c)
void TopLevel::readProperties(TDEConfig* c)
{
TQString traceName = c->readEntry("TraceName");
if (!traceName.isEmpty()) {
@ -1017,16 +1017,16 @@ void TopLevel::loadTrace(const KURL& url)
// network transparancy
TQString tmpFile;
#if TDE_VERSION > 0x030190
// for KDE 3.2: KIO::NetAccess::download with 2 args is deprecated
if(KIO::NetAccess::download( url, tmpFile, this )) {
// for KDE 3.2: TDEIO::NetAccess::download with 2 args is deprecated
if(TDEIO::NetAccess::download( url, tmpFile, this )) {
#else
if(KIO::NetAccess::download( url, tmpFile )) {
if(TDEIO::NetAccess::download( url, tmpFile )) {
#endif
_openRecent->addURL(url);
_openRecent->saveEntries( TDEGlobal::config() );
loadTrace(tmpFile);
KIO::NetAccess::removeTempFile( tmpFile );
TDEIO::NetAccess::removeTempFile( tmpFile );
}
}
@ -1066,16 +1066,16 @@ void TopLevel::addTrace(const KURL& url)
// network transparancy
TQString tmpFile;
#if TDE_VERSION > 0x030190
// for KDE 3.2: KIO::NetAccess::download with 2 args is deprecated
if(KIO::NetAccess::download( url, tmpFile, this )) {
// for KDE 3.2: TDEIO::NetAccess::download with 2 args is deprecated
if(TDEIO::NetAccess::download( url, tmpFile, this )) {
#else
if(KIO::NetAccess::download( url, tmpFile )) {
if(TDEIO::NetAccess::download( url, tmpFile )) {
#endif
_openRecent->addURL(url);
_openRecent->saveEntries( TDEGlobal::config() );
addTrace(tmpFile);
KIO::NetAccess::removeTempFile( tmpFile );
TDEIO::NetAccess::removeTempFile( tmpFile );
}
}
@ -1721,8 +1721,8 @@ void TopLevel::restoreTraceTypes()
{
TQString key = traceKey();
KConfigGroup cConfig(TDEGlobal::config(), TQCString("CurrentState"));
KConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
TDEConfigGroup cConfig(TDEGlobal::config(), TQCString("CurrentState"));
TDEConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
TQString groupType, costType, costType2;
groupType = pConfig.readEntry(TQString("GroupType%1").arg(key));
@ -1741,7 +1741,7 @@ void TopLevel::restoreTraceTypes()
if (!_costType && !_saCost->items().isEmpty())
costTypeSelected(_saCost->items().first());
KConfigGroup aConfig(TDEGlobal::config(), TQCString("Layouts"));
TDEConfigGroup aConfig(TDEGlobal::config(), TQCString("Layouts"));
_layoutCount = aConfig.readNumEntry(TQString("Count%1").arg(key), 0);
_layoutCurrent = aConfig.readNumEntry(TQString("Current%1").arg(key), 0);
if (_layoutCount == 0) layoutRestore();
@ -1760,7 +1760,7 @@ void TopLevel::restoreTraceSettings()
TQString key = traceKey();
KConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
TDEConfigGroup pConfig(TDEGlobal::config(), TQCString("TracePositions"));
TQString group = pConfig.readEntry(TQString("Group%1").arg(key));
if (!group.isEmpty()) setGroup(group);
@ -1811,7 +1811,7 @@ void TopLevel::layoutNext()
{
if (_layoutCount <2) return;
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
TQString key = traceKey();
_multiView->saveViewConfig(config,
@ -1832,7 +1832,7 @@ void TopLevel::layoutPrevious()
{
if (_layoutCount <2) return;
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
TQString key = traceKey();
_multiView->saveViewConfig(config,
@ -1851,7 +1851,7 @@ void TopLevel::layoutPrevious()
void TopLevel::layoutSave()
{
KConfig* config = TDEGlobal::config();
TDEConfig* config = TDEGlobal::config();
TQString key = traceKey();
_multiView->saveViewConfig(config,
@ -1871,15 +1871,15 @@ void TopLevel::layoutSave()
TQString("Layout%1-MainView").arg(_layoutCurrent),
key, false);
KConfigGroup aConfig(config, TQCString("Layouts"));
TDEConfigGroup aConfig(config, TQCString("Layouts"));
aConfig.writeEntry("DefaultCount", _layoutCount);
aConfig.writeEntry("DefaultCurrent", _layoutCurrent);
}
void TopLevel::layoutRestore()
{
KConfig* config = TDEGlobal::config();
KConfigGroup aConfig(config, TQCString("Layouts"));
TDEConfig* config = TDEGlobal::config();
TDEConfigGroup aConfig(config, TQCString("Layouts"));
_layoutCount = aConfig.readNumEntry("DefaultCount", 0);
_layoutCurrent = aConfig.readNumEntry("DefaultCurrent", 0);
if (_layoutCount == 0) {
@ -1994,7 +1994,7 @@ bool TopLevel::queryExit()
// Its already stored.
delete toolBar();
KConfigGroup dockConfig(TDEGlobal::config(), TQCString("Docks"));
TDEConfigGroup dockConfig(TDEGlobal::config(), TQCString("Docks"));
TQString str;
TQTextStream ts( &str, IO_WriteOnly );
ts << *this;

@ -64,8 +64,8 @@ public:
TraceData* data() { return _data; }
void setData(TraceData*);
virtual void saveProperties(KConfig*);
virtual void readProperties(KConfig*);
virtual void saveProperties(TDEConfig*);
virtual void readProperties(TDEConfig*);
void createActions();
void createDocks();

@ -58,15 +58,15 @@ void TraceItemView::select(TraceItem* i)
_newSelectedItem = i;
}
KConfigGroup* TraceItemView::configGroup(KConfig* c,
TDEConfigGroup* TraceItemView::configGroup(TDEConfig* c,
TQString group, TQString post)
{
TQStringList gList = c->groupList();
if (gList.contains((group+post).ascii()) ) group += post;
return new KConfigGroup(c, group);
return new TDEConfigGroup(c, group);
}
void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
void TraceItemView::writeConfigEntry(TDEConfigBase* c, const char* pKey,
TQString value, const char* def, bool bNLS)
{
if (!c) return;
@ -77,7 +77,7 @@ void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
c->writeEntry(pKey, value, true, false, bNLS);
}
void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
void TraceItemView::writeConfigEntry(TDEConfigBase* c, const char* pKey,
int value, int def)
{
if (!c) return;
@ -87,7 +87,7 @@ void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
c->writeEntry(pKey, value);
}
void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
void TraceItemView::writeConfigEntry(TDEConfigBase* c, const char* pKey,
double value, double def)
{
if (!c) return;
@ -97,7 +97,7 @@ void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
c->writeEntry(pKey, value);
}
void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
void TraceItemView::writeConfigEntry(TDEConfigBase* c, const char* pKey,
bool value, bool def)
{
if (!c) return;
@ -107,18 +107,18 @@ void TraceItemView::writeConfigEntry(KConfigBase* c, const char* pKey,
c->writeEntry(pKey, value);
}
void TraceItemView::readViewConfig(KConfig*, TQString, TQString, bool)
void TraceItemView::readViewConfig(TDEConfig*, TQString, TQString, bool)
{}
#if 1
void TraceItemView::saveViewConfig(KConfig*, TQString, TQString, bool)
void TraceItemView::saveViewConfig(TDEConfig*, TQString, TQString, bool)
{}
#else
void TraceItemView::saveViewConfig(KConfig* c,
void TraceItemView::saveViewConfig(TDEConfig* c,
TQString prefix, TQString postfix, bool)
{
// write a dummy config entry to see missing virtual functions
KConfigGroup g(c, (prefix+postfix).ascii());
TDEConfigGroup g(c, (prefix+postfix).ascii());
g.writeEntry("SaveNotImplemented", true);
}
#endif

@ -28,9 +28,9 @@
class TQWidget;
class TQPopupMenu;
class KConfig;
class KConfigGroup;
class KConfigBase;
class TDEConfig;
class TDEConfigGroup;
class TDEConfigBase;
class TopLevel;
@ -74,18 +74,18 @@ public:
virtual TQString whatsThis() const;
static KConfigGroup* configGroup(KConfig*, TQString prefix, TQString postfix);
static void writeConfigEntry(KConfigBase*, const char* pKey, TQString value,
static TDEConfigGroup* configGroup(TDEConfig*, TQString prefix, TQString postfix);
static void writeConfigEntry(TDEConfigBase*, const char* pKey, TQString value,
const char* def, bool bNLS = false);
static void writeConfigEntry(KConfigBase*, const char* pKey,
static void writeConfigEntry(TDEConfigBase*, const char* pKey,
int value, int def);
static void writeConfigEntry(KConfigBase*, const char* pKey,
static void writeConfigEntry(TDEConfigBase*, const char* pKey,
bool value, bool def);
static void writeConfigEntry(KConfigBase*, const char* pKey,
static void writeConfigEntry(TDEConfigBase*, const char* pKey,
double value, double def);
virtual void readViewConfig(KConfig*, TQString prefix, TQString postfix,
virtual void readViewConfig(TDEConfig*, TQString prefix, TQString postfix,
bool withOptions);
virtual void saveViewConfig(KConfig*, TQString prefix, TQString postfix,
virtual void saveViewConfig(TDEConfig*, TQString prefix, TQString postfix,
bool withOptions);
// Immediate remove all references to old data, and set the new.

@ -3132,7 +3132,7 @@ void TreeMapWidget::addDepthStopItems(TQPopupMenu* popup,
* Option saving/restoring
*/
void TreeMapWidget::saveOptions(KConfigGroup* config, TQString prefix)
void TreeMapWidget::saveOptions(TDEConfigGroup* config, TQString prefix)
{
config->writeEntry(prefix+"Nesting", splitModeString());
config->writeEntry(prefix+"AllowRotation", allowRotation());
@ -3157,7 +3157,7 @@ void TreeMapWidget::saveOptions(KConfigGroup* config, TQString prefix)
}
void TreeMapWidget::restoreOptions(KConfigGroup* config, TQString prefix)
void TreeMapWidget::restoreOptions(TDEConfigGroup* config, TQString prefix)
{
bool enabled;
int num;

@ -46,7 +46,7 @@ class TreeMapItem;
class TreeMapItemList;
class TQString;
class KConfigGroup;
class TDEConfigGroup;
/**
@ -614,8 +614,8 @@ public:
/**
* Save/restore options.
*/
void saveOptions(KConfigGroup*, TQString prefix = TQString());
void restoreOptions(KConfigGroup*, TQString prefix = TQString());
void saveOptions(TDEConfigGroup*, TQString prefix = TQString());
void restoreOptions(TDEConfigGroup*, TQString prefix = TQString());
/**
* These functions populate given popup menus.

@ -20,7 +20,7 @@
#include <kdebug.h>
AutolayoutDlg::AutolayoutDlg(KConfig* c,UMLView* v,TQWidget *parent, const char *name)
AutolayoutDlg::AutolayoutDlg(TDEConfig* c,UMLView* v,TQWidget *parent, const char *name)
:MyDialog1(parent, name)
{
view=v;
@ -122,7 +122,7 @@ void AutolayoutDlg::slotDoAutolayout()
accept();
}
void AutolayoutDlg::readConfig( KConfig * conf)
void AutolayoutDlg::readConfig( TDEConfig * conf)
{
conf->setGroup("AutolayoutDlg");
associationEdgesCB->setChecked((bool)(conf->readBoolEntry( "associationAsEdges",false)));
@ -138,7 +138,7 @@ void AutolayoutDlg::readConfig( KConfig * conf)
algorithmCOB->setCurrentItem((int)(conf->readNumEntry( "algorithm",0)));
}
void AutolayoutDlg::writeConfig( KConfig * conf)
void AutolayoutDlg::writeConfig( TDEConfig * conf)
{
// conf=kapp->config();
conf->setGroup("AutolayoutDlg");

@ -23,7 +23,7 @@ class AutolayoutDlg : public MyDialog1
Q_OBJECT
public:
AutolayoutDlg(KConfig* c,UMLView* v, TQWidget *parent = 0, const char *name = 0);
AutolayoutDlg(TDEConfig* c,UMLView* v, TQWidget *parent = 0, const char *name = 0);
public slots:
virtual void slotSetAssociationWeight(int i);
virtual void slotSetDependenciesWeight(int i);
@ -38,8 +38,8 @@ class AutolayoutDlg : public MyDialog1
virtual void slotReloadSettings();
virtual void slotSaveSettings();
virtual void slotDoAutolayout();
void readConfig(KConfig*);
void writeConfig(KConfig*);
void readConfig(TDEConfig*);
void writeConfig(TDEConfig*);
virtual void slotSelectAlgorithm(const TQString&);
@ -55,7 +55,7 @@ class AutolayoutDlg : public MyDialog1
bool centerDiagram;
bool clusterizeHierarchies;
int shapeSeparation;
KConfig* config;
TDEConfig* config;
TQString algname;
Autolayout::Autolayouter* getAutolayouter();

@ -100,7 +100,7 @@ CodeGenerationPolicy::CodeGenerationPolicy(CodeGenerationPolicy * clone)
setDefaults(clone,false);
}
CodeGenerationPolicy::CodeGenerationPolicy(KConfig * config)
CodeGenerationPolicy::CodeGenerationPolicy(TDEConfig * config)
{
initFields();
setDefaults(config,false);
@ -441,7 +441,7 @@ void CodeGenerationPolicy::setDefaults ( CodeGenerationPolicy * clone , bool emi
}
void CodeGenerationPolicy::setDefaults( KConfig * config, bool emitUpdateSignal)
void CodeGenerationPolicy::setDefaults( TDEConfig * config, bool emitUpdateSignal)
{
if(!config)
@ -485,7 +485,7 @@ void CodeGenerationPolicy::setDefaults( KConfig * config, bool emitUpdateSignal)
}
void CodeGenerationPolicy::writeConfig (KConfig * config) {
void CodeGenerationPolicy::writeConfig (TDEConfig * config) {
config->setGroup("Code Generation");

@ -24,7 +24,7 @@
#include <tqdom.h>
class TQWidget;
class KConfig;
class TDEConfig;
class CodeGenerationPolicyPage;
/**
@ -79,7 +79,7 @@ public:
// note that as the code gen policy may be the 'default' policy, it may
// not be coupled with a code generator.
CodeGenerationPolicy (CodeGenerationPolicy * clone = 0);
CodeGenerationPolicy (KConfig * config );
CodeGenerationPolicy (TDEConfig * config );
/**
* Empty Destructor
@ -315,14 +315,14 @@ public:
virtual void setDefaults (CodeGenerationPolicy * defaults, bool emitUpdateSignal = true);
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true);
/**
* write Default params to passed KConfig pointer.
* write Default params to passed TDEConfig pointer.
*/
virtual void writeConfig (KConfig * config);
virtual void writeConfig (TDEConfig * config);
void emitModifiedCodeContentSig();

@ -47,7 +47,7 @@ class CodeDocument;
class CodeOperation;
class CodeViewerDialog;
class KConfig;
class TDEConfig;
/**
* class CodeGenerator

@ -15,7 +15,7 @@
#include <tqobject.h>
class TQWidget;
class KConfig;
class TDEConfig;
class CodeGenerationPolicyPage;
/**
@ -39,14 +39,14 @@ public:
virtual CodeGenerationPolicyPage * createPage(TQWidget *parent = 0, const char *name = 0) = 0;
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true) = 0;
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true) = 0;
/**
* write Default params to passed KConfig pointer.
* write Default params to passed TDEConfig pointer.
*/
virtual void writeConfig (KConfig * config) = 0;
virtual void writeConfig (TDEConfig * config) = 0;
};
#endif

@ -45,7 +45,7 @@ const bool CPPCodeGenerationPolicy::DEFAULT_PUBLIC_ACCESSORS = false;
// Constructors/Destructors
//
CPPCodeGenerationPolicy::CPPCodeGenerationPolicy(KConfig *config)
CPPCodeGenerationPolicy::CPPCodeGenerationPolicy(TDEConfig *config)
{
init();
setDefaults(config,false);
@ -264,7 +264,7 @@ TQString CPPCodeGenerationPolicy::getObjectMethodInit(const TQString & variableN
// Other methods
//
void CPPCodeGenerationPolicy::writeConfig ( KConfig * config )
void CPPCodeGenerationPolicy::writeConfig ( TDEConfig * config )
{
// write ONLY the CPP specific stuff
@ -319,7 +319,7 @@ void CPPCodeGenerationPolicy::setDefaults ( CPPCodeGenerationPolicy * cppclone,
}
void CPPCodeGenerationPolicy::setDefaults( KConfig * config, bool emitUpdateSignal )
void CPPCodeGenerationPolicy::setDefaults( TDEConfig * config, bool emitUpdateSignal )
{
if(!config)

@ -21,7 +21,7 @@
#include "codegenpolicyext.h"
#include "../codegenerationpolicy.h"
class KConfig;
class TDEConfig;
class CodeGenerationPolicyPage;
class CPPCodeGenerationPolicy : public CodeGenPolicyExt
@ -56,7 +56,7 @@ public:
/**
* Constructors
*/
CPPCodeGenerationPolicy ( KConfig * config = 0 );
CPPCodeGenerationPolicy ( TDEConfig * config = 0 );
/**
* Empty Destructor
@ -180,14 +180,14 @@ public:
virtual void setDefaults (CPPCodeGenerationPolicy * defaults, bool emitUpdateSignal = true);
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true);
/**
* write Default params to passed KConfig pointer.
* write Default params to passed TDEConfig pointer.
*/
virtual void writeConfig (KConfig * config);
virtual void writeConfig (TDEConfig * config);
/**
* Create a new dialog interface for this object.

@ -28,7 +28,7 @@
class CodeViewerDialog;
class CPPHeaderCodeDocument;
class CodeBlockWithComments;
class KConfig;
class TDEConfig;
class CPPCodeGenerator : public CodeGenerator
{

@ -37,7 +37,7 @@ JavaCodeGenerationPolicy::JavaCodeGenerationPolicy(CodeGenerationPolicy *default
}
*/
JavaCodeGenerationPolicy::JavaCodeGenerationPolicy(KConfig *config)
JavaCodeGenerationPolicy::JavaCodeGenerationPolicy(TDEConfig *config)
// : CodeGenerationPolicy(config)
{
init();
@ -93,7 +93,7 @@ bool JavaCodeGenerationPolicy::getAutoGenerateAssocAccessors( ){
// Other methods
//
void JavaCodeGenerationPolicy::writeConfig ( KConfig * config )
void JavaCodeGenerationPolicy::writeConfig ( TDEConfig * config )
{
// write ONLY the Java specific stuff
@ -136,7 +136,7 @@ void JavaCodeGenerationPolicy::setDefaults ( CodeGenPolicyExt * clone, bool emit
}
void JavaCodeGenerationPolicy::setDefaults( KConfig * config, bool emitUpdateSignal )
void JavaCodeGenerationPolicy::setDefaults( TDEConfig * config, bool emitUpdateSignal )
{
if(!config)

@ -21,7 +21,7 @@
#include "codegenpolicyext.h"
#include "../codegenerationpolicy.h"
class KConfig;
class TDEConfig;
class CodeGenerationPolicyPage;
class JavaCodeGenerationPolicy : public CodeGenPolicyExt
@ -40,7 +40,7 @@ public:
* Constructors
*/
//JavaCodeGenerationPolicy (CodeGenerationPolicy * defaults = 0);
JavaCodeGenerationPolicy (KConfig * config = 0);
JavaCodeGenerationPolicy (TDEConfig * config = 0);
/**
* Empty Destructor
@ -84,14 +84,14 @@ public:
virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true);
/**
* write Default params to passed KConfig pointer.
* write Default params to passed TDEConfig pointer.
*/
virtual void writeConfig (KConfig * config);
virtual void writeConfig (TDEConfig * config);
/**
* Create a new dialog interface for this object.

@ -32,7 +32,7 @@ const bool RubyCodeGenerationPolicy::DEFAULT_AUTO_GEN_ASSOC_ACCESSORS = true;
// Constructors/Destructors
//
RubyCodeGenerationPolicy::RubyCodeGenerationPolicy(KConfig *config)
RubyCodeGenerationPolicy::RubyCodeGenerationPolicy(TDEConfig *config)
{
init();
setDefaults(config,false);
@ -87,7 +87,7 @@ bool RubyCodeGenerationPolicy::getAutoGenerateAssocAccessors( ){
// Other methods
//
void RubyCodeGenerationPolicy::writeConfig ( KConfig * config )
void RubyCodeGenerationPolicy::writeConfig ( TDEConfig * config )
{
// @todo do we need to call CodeGenerationPolicy::writeConfig ???
@ -125,7 +125,7 @@ void RubyCodeGenerationPolicy::setDefaults ( CodeGenPolicyExt * clone, bool emit
}
void RubyCodeGenerationPolicy::setDefaults( KConfig * config, bool emitUpdateSignal )
void RubyCodeGenerationPolicy::setDefaults( TDEConfig * config, bool emitUpdateSignal )
{
if(!config)

@ -24,7 +24,7 @@
#include "codegenpolicyext.h"
#include "../codegenerationpolicy.h"
class KConfig;
class TDEConfig;
class CodeGenerationPolicyPage;
class RubyCodeGenerationPolicy : public CodeGenPolicyExt
@ -42,7 +42,7 @@ public:
/**
* Constructors
*/
RubyCodeGenerationPolicy (KConfig * config = 0);
RubyCodeGenerationPolicy (TDEConfig * config = 0);
/**
* Empty Destructor
@ -86,14 +86,14 @@ public:
virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
/**
* set the defaults from a config file for this code generator from the passed KConfig pointer.
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
*/
virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true);
/**
* write Default params to passed KConfig pointer.
* write Default params to passed TDEConfig pointer.
*/
virtual void writeConfig (KConfig * config);
virtual void writeConfig (TDEConfig * config);
/**
* Create a new dialog interface for this object.

@ -44,7 +44,7 @@ Configurable::~Configurable()
}
bool
Configurable::loadPlugins(KConfig *config,
Configurable::loadPlugins(TDEConfig *config,
const TQString &key)
{
bool ret = true;

@ -24,7 +24,7 @@
// forward declarations
class KLibrary;
class KConfig;
class TDEConfig;
/**
* @defgroup U2_Lib Umbrello2 API
@ -97,7 +97,7 @@ protected:
*
* @return True on success, false on failure.
*/
bool loadPlugins(KConfig *config, const TQString &key);
bool loadPlugins(TDEConfig *config, const TQString &key);
/**
* This is a convenience method for derived classes. When a functional object

@ -163,7 +163,7 @@ private:
CodeGenerationOptionsPage * m_pCodeGenPage;
CodeViewerOptionsPage * m_pCodeViewerPage;
KConfig * m_pCfg;
TDEConfig * m_pCfg;
bool m_bChangesApplied;
private slots:

@ -61,7 +61,7 @@ bool DocbookGenerator::generateDocbookForProject()
return true;
}
KIO::Job* DocbookGenerator::generateDocbookForProjectInto(const KURL& destDir)
TDEIO::Job* DocbookGenerator::generateDocbookForProjectInto(const KURL& destDir)
{
UMLApp* app = UMLApp::app();
UMLDoc* umlDoc = app->getDocument();
@ -135,7 +135,7 @@ KIO::Job* DocbookGenerator::generateDocbookForProjectInto(const KURL& destDir)
url.setPath(destDir.path());
url.addPath(fileName);
kDebug() << "Copying result to: " << url << endl;
KIO::Job* job = KIO::file_copy(tmpDocBook.file()->name(),url,-1,true,false,false);
TDEIO::Job* job = TDEIO::file_copy(tmpDocBook.file()->name(),url,-1,true,false,false);
job->setAutoErrorHandlingEnabled(true);
return job;

@ -23,7 +23,7 @@
class UMLDoc;
namespace KIO
namespace TDEIO
{
class Job;
}
@ -72,7 +72,7 @@ class DocbookGenerator : public TQObject
* @todo better handling of error conditions
* @return true if saving is successful and false otherwise.
*/
KIO::Job* generateDocbookForProjectInto(const KURL& destDir);
TDEIO::Job* generateDocbookForProjectInto(const KURL& destDir);
};

@ -66,17 +66,17 @@ bool XhtmlGenerator::generateXhtmlForProjectInto(const KURL& destDir)
kDebug() << "First convert to docbook" << endl;
m_destDir = destDir;
// KURL url(TQString("file://")+m_tmpDir.name());
KIO::Job* docbookJob = DocbookGenerator().generateDocbookForProjectInto(destDir);
TDEIO::Job* docbookJob = DocbookGenerator().generateDocbookForProjectInto(destDir);
if (docbookJob == 0)
{
return false;
}
kDebug() << "Connecting..." << endl;
connect(docbookJob, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(slotDocbookToXhtml( KIO::Job *)));
connect(docbookJob, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(slotDocbookToXhtml( TDEIO::Job *)));
return true;
}
void XhtmlGenerator::slotDocbookToXhtml(KIO::Job * docbookJob)
void XhtmlGenerator::slotDocbookToXhtml(TDEIO::Job * docbookJob)
{
kDebug() << "Now convert docbook to html..." << endl;
if ( docbookJob->error() )
@ -150,19 +150,19 @@ void XhtmlGenerator::slotDocbookToXhtml(KIO::Job * docbookJob)
xhtmlUrl.addPath(xhtmlName);
kDebug() << "Copying HTML result to: " << xhtmlUrl << endl;
KIO::Job* job = KIO::file_copy(tmpXhtml.file()->name(),xhtmlUrl,-1,true,false,false);
TDEIO::Job* job = TDEIO::file_copy(tmpXhtml.file()->name(),xhtmlUrl,-1,true,false,false);
job->setAutoErrorHandlingEnabled(true);
connect (job, TQT_SIGNAL(result( KIO::Job* )), this, TQT_SLOT(slotHtmlCopyFinished( KIO::Job* )));
connect (job, TQT_SIGNAL(result( TDEIO::Job* )), this, TQT_SLOT(slotHtmlCopyFinished( TDEIO::Job* )));
TQString cssFileName(TDEGlobal::dirs()->findResource("appdata","xmi.css"));
kDebug() << "CSS file is'"<<cssFileName<<"'" << endl;
KURL cssUrl = m_destDir;
cssUrl.addPath("xmi.css");
KIO::Job* cssJob = KIO::file_copy(cssFileName,cssUrl,-1,true,false,false);
TDEIO::Job* cssJob = TDEIO::file_copy(cssFileName,cssUrl,-1,true,false,false);
cssJob->setAutoErrorHandlingEnabled(true);
}
void XhtmlGenerator::slotHtmlCopyFinished( KIO::Job* )
void XhtmlGenerator::slotHtmlCopyFinished( TDEIO::Job* )
{
kDebug() << "HTML copy finished: emiting finished" << endl;
emit(finished());

@ -22,7 +22,7 @@
#include <ktempdir.h>
#include <tqobject.h>
namespace KIO
namespace TDEIO
{
class Job;
}
@ -86,12 +86,12 @@ class XhtmlGenerator : public TQObject
* @param docbookJob the job copying the docbook file to its destination.
* Used only for error reporting
*/
void slotDocbookToXhtml(KIO::Job * docbookJob);
void slotDocbookToXhtml(TDEIO::Job * docbookJob);
/** Triggered when the copying of the HTML result file is finished. Emits
* the signal finished().
*/
void slotHtmlCopyFinished( KIO::Job* );
void slotHtmlCopyFinished( TDEIO::Job* );
private:

@ -62,7 +62,7 @@ bool getShowGUI(TDECmdLineArgs *args);
* @param showGUI If the GUI should be shown.
* @return The startup logo for the application, or a null pointer if it shouldn't be shown.
*/
KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI);
KStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI);
/**
* Initializes the document used by the application.
@ -73,7 +73,7 @@ KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI);
* @param args The command line arguments given.
* @param cfg The application configuration.
*/
void initDocument(TDECmdLineArgs *args, KConfig* cfg);
void initDocument(TDECmdLineArgs *args, TDEConfig* cfg);
/**
* Export all the views in the document using the command line args set by the user.
@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
UMLApp *uml = new UMLApp();
flushEvents();
KConfig * cfg = app.config();
TDEConfig * cfg = app.config();
KStartupLogo* startLogo = showStartupLogo(cfg, showGUI);
@ -145,7 +145,7 @@ bool getShowGUI(TDECmdLineArgs *args) {
return true;
}
KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI) {
KStartupLogo* showStartupLogo(TDEConfig* cfg, bool showGUI) {
KStartupLogo* startLogo = 0L;
cfg->setGroup( "General Options" );
@ -167,7 +167,7 @@ KStartupLogo* showStartupLogo(KConfig* cfg, bool showGUI) {
return startLogo;
}
void initDocument(TDECmdLineArgs *args, KConfig* cfg) {
void initDocument(TDECmdLineArgs *args, TDEConfig* cfg) {
if ( args -> count() ) {
UMLApp::app()->openDocumentFile( args->url( 0 ) );
} else {

@ -112,7 +112,7 @@ Plugin::instanceName() const
return _instanceName;
}
KConfig *
TDEConfig *
Plugin::config()
{
return _config;
@ -136,7 +136,7 @@ Plugin::configure()
bool ret = true;
// grab the OnStartup map
KConfig *conf = config();
TDEConfig *conf = config();
if(!conf) {
kdDebug() << "no configuration for " << instanceName() << endl;
ret = false;

@ -30,7 +30,7 @@
// forward declarations
class TQStringList;
class KConfig;
class TDEConfig;
/**
* This macro replaces the K_EXPORT_COMPONENT_FACTORY macro because of
@ -99,7 +99,7 @@ public:
TQCString instanceName() const;
/** Return the configuration record for the plugin */
KConfig *config();
TDEConfig *config();
/** Return the category descriptor string */
virtual TQString category();
@ -157,7 +157,7 @@ private:
protected:
uint _ref; ///< Reference counter
TQCString _instanceName; ///< Instance name of the plugin
KConfig *_config; ///< Configuration record
TDEConfig *_config; ///< Configuration record
};
}

@ -587,7 +587,7 @@ void UMLApp::readOptions() {
resize( m_config->readSizeEntry("Geometry", & tmpTQSize) );
}
void UMLApp::saveProperties(KConfig *_config) {
void UMLApp::saveProperties(TDEConfig *_config) {
if(m_doc->URL().fileName()!=i18n("Untitled") && !m_doc->isModified()) {
// saving to tempfile not necessary
@ -603,7 +603,7 @@ void UMLApp::saveProperties(KConfig *_config) {
}
}
void UMLApp::readProperties(KConfig* _config) {
void UMLApp::readProperties(TDEConfig* _config) {
TQString filename = _config->readPathEntry("filename");
KURL url(filename);
bool modified = _config->readBoolEntry("modified", false);

@ -69,7 +69,7 @@ class TQCustomEvent;
* full session management as well as using KActions.
* @see KMainWindow
* @see TDEApplication
* @see KConfig
* @see TDEConfig
*
* @author Paul Hensgen <phensgen@techie.com>
* Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
@ -402,7 +402,7 @@ protected:
* temporary filename provided by TDEApplication.
* @see KMainWindow#saveProperties
*/
virtual void saveProperties(KConfig *_cfg);
virtual void saveProperties(TDEConfig *_cfg);
/**
* Reads the session config file and restores the
@ -411,7 +411,7 @@ protected:
* saveProperties()
* @see KMainWindow#readProperties
*/
virtual void readProperties(KConfig *_cfg);
virtual void readProperties(TDEConfig *_cfg);
CodeGenerationPolicy * m_commoncodegenpolicy;
@ -433,7 +433,7 @@ protected slots:
public slots:
/**
* Reads the activeLanguage from the KConfig and calls updateLangSelectMenu()
* Reads the activeLanguage from the TDEConfig and calls updateLangSelectMenu()
*/
void initGenerator();
@ -650,8 +650,8 @@ public slots:
TQString activeLanguageScopeSeparator();
/**
* Return the default code generation language as configured by KConfig.
* If the activeLanguage is not found in the KConfig then use Uml::pl_Cpp
* Return the default code generation language as configured by TDEConfig.
* If the activeLanguage is not found in the TDEConfig then use Uml::pl_Cpp
* as the default.
*/
Uml::Programming_Language getDefaultLanguage();
@ -801,7 +801,7 @@ public slots:
*/
void slotMoveTabRight();
KConfig *getConfig() { return m_config; }
TDEConfig *getConfig() { return m_config; }
/**
* This slot deletes the current XHTML documentation generator as soon as
@ -866,7 +866,7 @@ private:
/**
* The configuration object of the application.
*/
KConfig* m_config;
TDEConfig* m_config;
/**
* View is the main widget which represents your working area.

@ -349,7 +349,7 @@ bool UMLDoc::openDocument(const KURL& url, const char* /*format =0*/) {
// changed to true to block recording of changes in redo-buffer
m_bLoading = true;
TQString tmpfile;
KIO::NetAccess::download( url, tmpfile, UMLApp::app() );
TDEIO::NetAccess::download( url, tmpfile, UMLApp::app() );
TQFile file( tmpfile );
if ( !file.exists() ) {
KMessageBox::error(0, i18n("The file %1 does not exist.").arg(d.path()), i18n("Load Error"));
@ -482,7 +482,7 @@ bool UMLDoc::openDocument(const KURL& url, const char* /*format =0*/) {
}
file.close();
KIO::NetAccess::removeTempFile( tmpfile );
TDEIO::NetAccess::removeTempFile( tmpfile );
if( !status )
{
KMessageBox::error(0, i18n("There was a problem loading file: %1").arg(d.path()), i18n("Load Error"));
@ -592,7 +592,7 @@ bool UMLDoc::saveDocument(const KURL& url, const char * /* format */) {
// now we have to check, if we have to upload the file
if ( !url.isLocalFile() ) {
uploaded = KIO::NetAccess::upload( tmp_tgz_file.name(), m_doc_url,
uploaded = TDEIO::NetAccess::upload( tmp_tgz_file.name(), m_doc_url,
UMLApp::app() );
}
@ -626,10 +626,10 @@ bool UMLDoc::saveDocument(const KURL& url, const char * /* format */) {
// if it is a remote file, we have to upload the tmp file
if ( !url.isLocalFile() ) {
uploaded = KIO::NetAccess::upload( tmpfile.name(), m_doc_url, UMLApp::app() );
uploaded = TDEIO::NetAccess::upload( tmpfile.name(), m_doc_url, UMLApp::app() );
} else {
// now remove the original file
if ( KIO::NetAccess::file_move( tmpfile.name(), d.path(), -1, true ) == false ) {
if ( TDEIO::NetAccess::file_move( tmpfile.name(), d.path(), -1, true ) == false ) {
KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(d.path()), i18n("Save Error"));
m_doc_url.setFileName(i18n("Untitled"));
return false;

@ -61,7 +61,7 @@ bool UMLViewImageExporter::prepareExportView() {
}
// check if the file exists
if (KIO::NetAccess::exists(m_imageURL, true, UMLApp::app())) {
if (TDEIO::NetAccess::exists(m_imageURL, true, UMLApp::app())) {
int wantSave = KMessageBox::warningContinueCancel(0,
i18n("The selected file %1 exists.\nDo you want to overwrite it?").arg(m_imageURL.prettyURL()),
i18n("File Already Exists"), i18n("&Overwrite"));

@ -153,7 +153,7 @@ TQString UMLViewImageExporterModel::exportView(UMLView* view, const TQString &im
// if the file wasn't local, upload the temp file to the target
if (!url.isLocalFile()) {
if (!KIO::NetAccess::upload(tmpFile.name(), url, UMLApp::app())) {
if (!TDEIO::NetAccess::upload(tmpFile.name(), url, UMLApp::app())) {
tmpFile.unlink();
return i18n("There was a problem saving file: %1").arg(url.path());
}
@ -198,9 +198,9 @@ bool UMLViewImageExporterModel::prepareDirectory(const KURL &url) const {
for (TQStringList::ConstIterator it = dirs.begin() ; it != dirs.end(); ++it ) {
directory.addPath(*it);
if (!KIO::NetAccess::exists(directory, true, UMLApp::app())) {
if (!TDEIO::NetAccess::exists(directory, true, UMLApp::app())) {
if (!KIO::NetAccess::mkdir(directory, UMLApp::app())) {
if (!TDEIO::NetAccess::mkdir(directory, UMLApp::app())) {
return false;
}
}

Loading…
Cancel
Save