rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 93f9fda465
commit c6b2971732

@ -23,8 +23,8 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
commandline_part::commandline_part(TQObject *tqparent, const char *name,KCmdLineArgs *args) commandline_part::commandline_part(TQObject *parent, const char *name,KCmdLineArgs *args)
: TQObject(tqparent, name) : TQObject(parent, name)
{ {
KGlobal::locale()->insertCatalogue("kdesvn"); KGlobal::locale()->insertCatalogue("kdesvn");
KInstance * inst = kdesvnPartFactory::instance(); KInstance * inst = kdesvnPartFactory::instance();

@ -33,7 +33,7 @@ class commandline_part : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
commandline_part(TQObject *tqparent, const char *name, KCmdLineArgs *args); commandline_part(TQObject *parent, const char *name, KCmdLineArgs *args);
virtual ~commandline_part(); virtual ~commandline_part();
virtual int exec(); virtual int exec();
private: private:

@ -38,8 +38,8 @@ TQString SshAgent::m_authSock = TQString();
TQString SshAgent::m_pid = TQString(); TQString SshAgent::m_pid = TQString();
SshAgent::SshAgent(TQObject* tqparent, const char* name) SshAgent::SshAgent(TQObject* parent, const char* name)
: TQObject(tqparent, name) : TQObject(parent, name)
{ {
} }

@ -34,7 +34,7 @@ class SshAgent : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SshAgent(TQObject* tqparent = 0, const char* name = 0); SshAgent(TQObject* parent = 0, const char* name = 0);
~SshAgent(); ~SshAgent();
bool querySshAgent(); bool querySshAgent();

@ -60,15 +60,15 @@ static const char description[] =
I18N_NOOP("A Subversion Client for KDE (dynamic Part component)"); I18N_NOOP("A Subversion Client for KDE (dynamic Part component)");
kdesvnPart::kdesvnPart( TQWidget *parentWidget, const char *widgetName, kdesvnPart::kdesvnPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name , const TQStringList&) TQObject *parent, const char *name , const TQStringList&)
: KParts::ReadOnlyPart(tqparent, name) : KParts::ReadOnlyPart(parent, name)
{ {
init(parentWidget,widgetName,false); init(parentWidget,widgetName,false);
} }
kdesvnPart::kdesvnPart(TQWidget *parentWidget, const char *widgetName, kdesvnPart::kdesvnPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,bool ownapp, const TQStringList&) TQObject *parent, const char *name,bool ownapp, const TQStringList&)
: KParts::ReadOnlyPart(tqparent, name) : KParts::ReadOnlyPart(parent, name)
{ {
init(parentWidget,widgetName,ownapp); init(parentWidget,widgetName,ownapp);
} }
@ -302,7 +302,7 @@ void KdesvnBrowserExtension::setPropertiesActionEnabled(bool enabled)
void KdesvnBrowserExtension::properties() void KdesvnBrowserExtension::properties()
{ {
static_cast<kdesvnPart*>(tqparent())->slotFileProperties(); static_cast<kdesvnPart*>(parent())->slotFileProperties();
} }
@ -401,21 +401,21 @@ KAboutData* cFactory::s_about = 0L;
commandline_part* cFactory::s_cline = 0L; commandline_part* cFactory::s_cline = 0L;
KParts::Part* cFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, KParts::Part* cFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *parent, const char *name,
const char *classname, const TQStringList &args ) const char *classname, const TQStringList &args )
{ {
Q_UNUSED(classname); Q_UNUSED(classname);
// Create an instance of our Part // Create an instance of our Part
return new kdesvnPart( parentWidget, widgetName, tqparent, name, args ); return new kdesvnPart( parentWidget, widgetName, parent, name, args );
} }
KParts::Part* cFactory::createAppPart( TQWidget *parentWidget, const char *widgetName, KParts::Part* cFactory::createAppPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *parent, const char *name,
const char *classname, const TQStringList &args ) const char *classname, const TQStringList &args )
{ {
Q_UNUSED(classname); Q_UNUSED(classname);
// Create an instance of our Part // Create an instance of our Part
kdesvnPart* obj = new kdesvnPart( parentWidget, widgetName, tqparent, name, false, args); kdesvnPart* obj = new kdesvnPart( parentWidget, widgetName, parent, name, false, args);
emit objectCreated( obj ); emit objectCreated( obj );
return obj; return obj;
} }
@ -439,11 +439,11 @@ KInstance* cFactory::instance()
return s_instance; return s_instance;
} }
commandline_part*cFactory::createCommandIf(TQObject*tqparent,const char*name, KCmdLineArgs *args) commandline_part*cFactory::createCommandIf(TQObject*parent,const char*name, KCmdLineArgs *args)
{ {
if (!s_cline) { if (!s_cline) {
// no emit of creation - we will delete this object in destructor // no emit of creation - we will delete this object in destructor
s_cline = new commandline_part(tqparent,name,args); s_cline = new commandline_part(parent,name,args);
} }
return s_cline; return s_cline;
} }

@ -52,10 +52,10 @@ public:
* Default constructor * Default constructor
*/ */
kdesvnPart(TQWidget *parentWidget, const char *widgetName, kdesvnPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList&); TQObject *parent, const char *name, const TQStringList&);
kdesvnPart(TQWidget *parentWidget, const char *widgetName, kdesvnPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,bool ownapp, const TQStringList&); TQObject *parent, const char *name,bool ownapp, const TQStringList&);
/** /**
* Destructor * Destructor
@ -117,12 +117,12 @@ public:
cFactory():KParts::Factory(){} cFactory():KParts::Factory(){}
virtual ~cFactory(); virtual ~cFactory();
virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName, virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *parent, const char *name,
const char *classname, const TQStringList &args ); const char *classname, const TQStringList &args );
virtual KParts::Part* createAppPart( TQWidget *parentWidget, const char *widgetName, virtual KParts::Part* createAppPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *parent, const char *name,
const char *classname, const TQStringList &args ); const char *classname, const TQStringList &args );
virtual commandline_part*createCommandIf(TQObject*tqparent,const char*name, KCmdLineArgs *args); virtual commandline_part*createCommandIf(TQObject*parent,const char*name, KCmdLineArgs *args);
static KInstance* instance(); static KInstance* instance();
private: private:

@ -58,8 +58,8 @@
#include <kdialogbase.h> #include <kdialogbase.h>
#include <kprogress.h> #include <kprogress.h>
kdesvnView::kdesvnView(KActionCollection*aCollection,TQWidget *tqparent,const char*name,bool full) kdesvnView::kdesvnView(KActionCollection*aCollection,TQWidget *parent,const char*name,bool full)
: TQWidget(tqparent,name),svn::repository::RepositoryListener(),m_Collection(aCollection), : TQWidget(parent,name),svn::repository::RepositoryListener(),m_Collection(aCollection),
m_currentURL("") m_currentURL("")
{ {
Q_UNUSED(full); Q_UNUSED(full);
@ -89,7 +89,7 @@ kdesvnView::kdesvnView(KActionCollection*aCollection,TQWidget *tqparent,const ch
connect(m_flist,TQT_SIGNAL(sigLogMessage(const TQString&)),this,TQT_SLOT(slotAppendLog(const TQString&))); connect(m_flist,TQT_SIGNAL(sigLogMessage(const TQString&)),this,TQT_SLOT(slotAppendLog(const TQString&)));
connect(m_flist,TQT_SIGNAL(changeCaption(const TQString&)),this,TQT_SLOT(slotSetTitle(const TQString&))); connect(m_flist,TQT_SIGNAL(changeCaption(const TQString&)),this,TQT_SLOT(slotSetTitle(const TQString&)));
connect(m_flist,TQT_SIGNAL(sigShowPopup(const TQString&,TQWidget**)),this,TQT_SLOT(slotDispPopup(const TQString&,TQWidget**))); connect(m_flist,TQT_SIGNAL(sigShowPopup(const TQString&,TQWidget**)),this,TQT_SLOT(slotDispPopup(const TQString&,TQWidget**)));
connect(m_flist,TQT_SIGNAL(sigUrlOpend(bool)),tqparent,TQT_SLOT(slotUrlOpened(bool))); connect(m_flist,TQT_SIGNAL(sigUrlOpend(bool)),parent,TQT_SLOT(slotUrlOpened(bool)));
connect(m_flist,TQT_SIGNAL(sigSwitchUrl(const KURL&)),this,TQT_SIGNAL(sigSwitchUrl(const KURL&))); connect(m_flist,TQT_SIGNAL(sigSwitchUrl(const KURL&)),this,TQT_SIGNAL(sigSwitchUrl(const KURL&)));
connect(m_flist,TQT_SIGNAL(sigUrlChanged( const TQString& )),this,TQT_SLOT(slotUrlChanged(const TQString&))); connect(m_flist,TQT_SIGNAL(sigUrlChanged( const TQString& )),this,TQT_SLOT(slotUrlChanged(const TQString&)));
connect(m_flist,TQT_SIGNAL(sigCachetqStatus(TQ_LONG,TQ_LONG)),this,TQT_SLOT(fillCachetqStatus(TQ_LONG,TQ_LONG))); connect(m_flist,TQT_SIGNAL(sigCachetqStatus(TQ_LONG,TQ_LONG)),this,TQT_SLOT(fillCachetqStatus(TQ_LONG,TQ_LONG)));

@ -57,7 +57,7 @@ public:
/** /**
* Default constructor * Default constructor
*/ */
kdesvnView(KActionCollection*,TQWidget *tqparent,const char*name=0,bool full=false); kdesvnView(KActionCollection*,TQWidget *parent,const char*name=0,bool full=false);
/** /**
* Destructor * Destructor

@ -26,8 +26,8 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
AuthDialogImpl::AuthDialogImpl(const TQString & realm,const TQString&user,TQWidget *tqparent, const char *name) AuthDialogImpl::AuthDialogImpl(const TQString & realm,const TQString&user,TQWidget *parent, const char *name)
:AuthDialogData(tqparent, name),curPass("") :AuthDialogData(parent, name),curPass("")
{ {
m_UsernameEdit->setText(user); m_UsernameEdit->setText(user);
m_PasswordEdit->setText(""); m_PasswordEdit->setText("");

@ -27,7 +27,7 @@ class AuthDialogImpl: public AuthDialogData {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AuthDialogImpl(const TQString & realm = "",const TQString&user="", TQWidget *tqparent = 0, const char *name = 0); AuthDialogImpl(const TQString & realm = "",const TQString&user="", TQWidget *parent = 0, const char *name = 0);
const TQString Username()const; const TQString Username()const;
const TQString Password(); const TQString Password();

@ -28,8 +28,8 @@
#include <tqcombobox.h> #include <tqcombobox.h>
DepthSelector::DepthSelector(TQWidget *tqparent, const char *name) DepthSelector::DepthSelector(TQWidget *parent, const char *name)
:DepthSettings(tqparent, name) :DepthSettings(parent, name)
{ {
if (svn::Version::version_major()>1|| svn::Version::version_minor()>4 ) { if (svn::Version::version_major()>1|| svn::Version::version_minor()>4 ) {
m_recurse = 0L; m_recurse = 0L;

@ -30,7 +30,7 @@ class DepthSelector: public DepthSettings {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DepthSelector(TQWidget *tqparent = 0, const char *name = 0); DepthSelector(TQWidget *parent = 0, const char *name = 0);
virtual ~DepthSelector(); virtual ~DepthSelector();
svn::Depth getDepth()const; svn::Depth getDepth()const;
void addItemWidget(TQWidget*); void addItemWidget(TQWidget*);

@ -36,10 +36,10 @@
#include <tqtextcodec.h> #include <tqtextcodec.h>
/*! /*!
\fn DiffBrowser::DiffBrowser(TQWidget*tqparent=0,const char*name=0) \fn DiffBrowser::DiffBrowser(TQWidget*parent=0,const char*name=0)
*/ */
DiffBrowser::DiffBrowser(TQWidget*tqparent,const char*name) DiffBrowser::DiffBrowser(TQWidget*parent,const char*name)
: KTextBrowser( tqparent, name) : KTextBrowser( parent, name)
{ {
setTextFormat(TQt::PlainText); setTextFormat(TQt::PlainText);
setFont(KGlobalSettings::fixedFont()); setFont(KGlobalSettings::fixedFont());
@ -171,11 +171,11 @@ void DiffBrowser::doSearch(const TQString&to_find_string,bool case_sensitive,boo
m_Data->pattern=to_find_string; m_Data->pattern=to_find_string;
break; break;
} }
TQWidget * _tqparent = m_Data->srchdialog->isVisible()?m_Data->srchdialog:parentWidget(); TQWidget * _parent = m_Data->srchdialog->isVisible()?m_Data->srchdialog:parentWidget();
if (!m_Data->srchdialog->get_direction()) { if (!m_Data->srchdialog->get_direction()) {
// forward // forward
int query = KMessageBox::questionYesNo( int query = KMessageBox::questionYesNo(
_tqparent, _parent,
i18n("End of document reached.\n"\ i18n("End of document reached.\n"\
"Continue from the beginning?"), "Continue from the beginning?"),
i18n("Find"),KStdGuiItem::cont(),i18n("Stop")); i18n("Find"),KStdGuiItem::cont(),i18n("Stop"));
@ -188,7 +188,7 @@ void DiffBrowser::doSearch(const TQString&to_find_string,bool case_sensitive,boo
} }
} else { } else {
int query = KMessageBox::questionYesNo( int query = KMessageBox::questionYesNo(
_tqparent, _parent,
i18n("Beginning of document reached.\n"\ i18n("Beginning of document reached.\n"\
"Continue from the end?"), "Continue from the end?"),
i18n("Find"),KStdGuiItem::cont(),i18n("Stop")); i18n("Find"),KStdGuiItem::cont(),i18n("Stop"));

@ -33,7 +33,7 @@ class DiffBrowser : public KTextBrowser
TQ_OBJECT TQ_OBJECT
public: public:
DiffBrowser(TQWidget*tqparent=0,const char*name=0); DiffBrowser(TQWidget*parent=0,const char*name=0);
virtual ~DiffBrowser(); virtual ~DiffBrowser();
public slots: public slots:

@ -24,8 +24,8 @@
#include <tqcombobox.h> #include <tqcombobox.h>
EncodingSelector_impl::EncodingSelector_impl(const TQString&cur,TQWidget *tqparent, const char *name) EncodingSelector_impl::EncodingSelector_impl(const TQString&cur,TQWidget *parent, const char *name)
:EncodingSelector(tqparent, name) :EncodingSelector(parent, name)
{ {
m_encodingList->insertStringList( KGlobal::charsets()->availableEncodingNames()); m_encodingList->insertStringList( KGlobal::charsets()->availableEncodingNames());

@ -28,7 +28,7 @@ class EncodingSelector_impl: public EncodingSelector {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
EncodingSelector_impl(const TQString&cur, TQWidget *tqparent = 0, const char *name = 0); EncodingSelector_impl(const TQString&cur, TQWidget *parent = 0, const char *name = 0);
virtual ~EncodingSelector_impl(){} virtual ~EncodingSelector_impl(){}
protected slots: protected slots:

@ -64,8 +64,8 @@ public:
virtual int compare( TQListViewItem* item, int col, bool ascending ) const; virtual int compare( TQListViewItem* item, int col, bool ascending ) const;
}; };
Logmsg_impl::Logmsg_impl(TQWidget *tqparent, const char *name) Logmsg_impl::Logmsg_impl(TQWidget *parent, const char *name)
:LogmessageData(tqparent, name) :LogmessageData(parent, name)
{ {
m_LogEdit->setFocus(); m_LogEdit->setFocus();
m_Reviewlabel->hide(); m_Reviewlabel->hide();
@ -81,8 +81,8 @@ Logmsg_impl::Logmsg_impl(TQWidget *tqparent, const char *name)
m_DiffItem=0; m_DiffItem=0;
} }
Logmsg_impl::Logmsg_impl(const svn::CommitItemList&_items,TQWidget *tqparent, const char *name) Logmsg_impl::Logmsg_impl(const svn::CommitItemList&_items,TQWidget *parent, const char *name)
:LogmessageData(tqparent, name) :LogmessageData(parent, name)
{ {
m_LogEdit->setFocus(); m_LogEdit->setFocus();
m_ReviewList->setColumnText(1,i18n("Items to commit")); m_ReviewList->setColumnText(1,i18n("Items to commit"));
@ -108,8 +108,8 @@ Logmsg_impl::Logmsg_impl(const svn::CommitItemList&_items,TQWidget *tqparent, co
checkSplitterSize(); checkSplitterSize();
} }
Logmsg_impl::Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *tqparent, const char *name) Logmsg_impl::Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *parent, const char *name)
:LogmessageData(tqparent, name) :LogmessageData(parent, name)
{ {
m_LogEdit->setFocus(); m_LogEdit->setFocus();
m_ReviewList->setColumnText(1,i18n("Items to commit")); m_ReviewList->setColumnText(1,i18n("Items to commit"));
@ -134,8 +134,8 @@ Logmsg_impl::Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *tqparen
Logmsg_impl::Logmsg_impl(const logActionEntries&_activatedList, Logmsg_impl::Logmsg_impl(const logActionEntries&_activatedList,
const logActionEntries&_notActivatedList, const logActionEntries&_notActivatedList,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
:LogmessageData(tqparent, name) :LogmessageData(parent, name)
{ {
m_LogEdit->setFocus(); m_LogEdit->setFocus();
m_hidden=false; m_hidden=false;
@ -278,14 +278,14 @@ void Logmsg_impl::saveHistory(bool canceld)
} }
} }
TQString Logmsg_impl::getLogmessage(bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent,const char*name) TQString Logmsg_impl::getLogmessage(bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*parent,const char*name)
{ {
bool _ok,_keep_locks; bool _ok,_keep_locks;
svn::Depth _depth = svn::DepthUnknown; svn::Depth _depth = svn::DepthUnknown;
TQString msg(""); TQString msg("");
Logmsg_impl*ptr=0; Logmsg_impl*ptr=0;
KDialogBase dlg(tqparent,name,true,i18n("Commit log"), KDialogBase dlg(parent,name,true,i18n("Commit log"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok,true); KDialogBase::Ok,true);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
@ -317,14 +317,14 @@ TQString Logmsg_impl::getLogmessage(bool*ok,svn::Depth*rec,bool*keep_locks,TQWid
return msg; return msg;
} }
TQString Logmsg_impl::getLogmessage(const svn::CommitItemList&items,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent,const char*name) TQString Logmsg_impl::getLogmessage(const svn::CommitItemList&items,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*parent,const char*name)
{ {
bool _ok,_keep_locks; bool _ok,_keep_locks;
svn::Depth _depth = svn::DepthUnknown; svn::Depth _depth = svn::DepthUnknown;
TQString msg(""); TQString msg("");
Logmsg_impl*ptr=0; Logmsg_impl*ptr=0;
KDialogBase dlg(tqparent,name,true,i18n("Commit log"), KDialogBase dlg(parent,name,true,i18n("Commit log"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok,true); KDialogBase::Ok,true);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
@ -359,14 +359,14 @@ TQString Logmsg_impl::getLogmessage(const svn::CommitItemList&items,bool*ok,svn:
} }
TQString Logmsg_impl::getLogmessage(const TQMap<TQString,TQString>&items, TQString Logmsg_impl::getLogmessage(const TQMap<TQString,TQString>&items,
bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent,const char*name) bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*parent,const char*name)
{ {
bool _ok,_rec,_keep_locks; bool _ok,_rec,_keep_locks;
svn::Depth _depth = svn::DepthUnknown; svn::Depth _depth = svn::DepthUnknown;
TQString msg(""); TQString msg("");
Logmsg_impl*ptr=0; Logmsg_impl*ptr=0;
KDialogBase dlg(tqparent,name,true,i18n("Commit log"), KDialogBase dlg(parent,name,true,i18n("Commit log"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok,true); KDialogBase::Ok,true);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
@ -404,13 +404,13 @@ TQString Logmsg_impl::getLogmessage(const logActionEntries&_on,
const logActionEntries&_off, const logActionEntries&_off,
TQObject*callback, TQObject*callback,
logActionEntries&_result, logActionEntries&_result,
bool*ok,bool*keep_locks,TQWidget*tqparent,const char*name) bool*ok,bool*keep_locks,TQWidget*parent,const char*name)
{ {
bool _ok,_keep_locks; bool _ok,_keep_locks;
TQString msg(""); TQString msg("");
Logmsg_impl*ptr=0; Logmsg_impl*ptr=0;
KDialogBase dlg(tqparent,name,true,i18n("Commit log"), KDialogBase dlg(parent,name,true,i18n("Commit log"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok,true); KDialogBase::Ok,true);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
@ -484,8 +484,8 @@ Logmsg_impl::logActionEntry::logActionEntry()
{ {
} }
SvnCheckListItem::SvnCheckListItem(TQListView*tqparent,const Logmsg_impl::logActionEntry&content) SvnCheckListItem::SvnCheckListItem(TQListView*parent,const Logmsg_impl::logActionEntry&content)
:TQCheckListItem(tqparent,content._name,TQCheckListItem::CheckBox),m_Content(content) :TQCheckListItem(parent,content._name,TQCheckListItem::CheckBox),m_Content(content)
{ {
setTristate(FALSE); setTristate(FALSE);
setText(1,m_Content._actionDesc); setText(1,m_Content._actionDesc);

@ -46,12 +46,12 @@ public:
typedef TQValueList<logActionEntry> logActionEntries; typedef TQValueList<logActionEntry> logActionEntries;
Logmsg_impl(TQWidget *tqparent = 0, const char *name = 0); Logmsg_impl(TQWidget *parent = 0, const char *name = 0);
Logmsg_impl(const svn::CommitItemList&_items,TQWidget *tqparent=0, const char *name=0); Logmsg_impl(const svn::CommitItemList&_items,TQWidget *parent=0, const char *name=0);
Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *tqparent=0, const char *name=0); Logmsg_impl(const TQMap<TQString,TQString>&_items,TQWidget *parent=0, const char *name=0);
Logmsg_impl(const logActionEntries&, Logmsg_impl(const logActionEntries&,
const logActionEntries&, const logActionEntries&,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
virtual ~Logmsg_impl(); virtual ~Logmsg_impl();
TQString getMessage()const; TQString getMessage()const;
@ -59,15 +59,15 @@ public:
void initHistory(); void initHistory();
void saveHistory(bool canceld); void saveHistory(bool canceld);
static TQString getLogmessage(bool*ok,svn::Depth*rec,bool*keeps_locks,TQWidget*tqparent=0,const char*name=0); static TQString getLogmessage(bool*ok,svn::Depth*rec,bool*keeps_locks,TQWidget*parent=0,const char*name=0);
static TQString getLogmessage(const svn::CommitItemList&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent=0,const char*name=0); static TQString getLogmessage(const svn::CommitItemList&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*parent=0,const char*name=0);
static TQString getLogmessage(const TQMap<TQString,TQString>&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*tqparent=0,const char*name=0); static TQString getLogmessage(const TQMap<TQString,TQString>&,bool*ok,svn::Depth*rec,bool*keep_locks,TQWidget*parent=0,const char*name=0);
static TQString getLogmessage(const logActionEntries&, static TQString getLogmessage(const logActionEntries&,
const logActionEntries&, const logActionEntries&,
TQObject*callback, TQObject*callback,
logActionEntries&, logActionEntries&,
bool*ok,bool*keep_locks,TQWidget*tqparent=0,const char*name=0); bool*ok,bool*keep_locks,TQWidget*parent=0,const char*name=0);
void addItemWidget(TQWidget*); void addItemWidget(TQWidget*);

@ -24,10 +24,10 @@
#include <tqlistbox.h> #include <tqlistbox.h>
/*! /*!
\fn RevertFormImpl::RevertFormImpl(TQWidget*tqparent,const char*name) \fn RevertFormImpl::RevertFormImpl(TQWidget*parent,const char*name)
*/ */
RevertFormImpl::RevertFormImpl(TQWidget*tqparent,const char*name) RevertFormImpl::RevertFormImpl(TQWidget*parent,const char*name)
:RevertForm(tqparent,name) :RevertForm(parent,name)
{ {
setMinimumSize(tqminimumSizeHint()); setMinimumSize(tqminimumSizeHint());
} }

@ -30,7 +30,7 @@ class RevertFormImpl:public RevertForm
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RevertFormImpl(TQWidget*tqparent=0,const char*name=0); RevertFormImpl(TQWidget*parent=0,const char*name=0);
virtual ~RevertFormImpl(); virtual ~RevertFormImpl();
svn::Depth getDepth()const; svn::Depth getDepth()const;
void setDispList(const TQStringList&_list); void setDispList(const TQStringList&_list);

@ -32,8 +32,8 @@
#include <kdialogbase.h> #include <kdialogbase.h>
#include <ktextbrowser.h> #include <ktextbrowser.h>
SslTrustPrompt_impl::SslTrustPrompt_impl(const TQString&host,TQWidget *tqparent, const char *name) SslTrustPrompt_impl::SslTrustPrompt_impl(const TQString&host,TQWidget *parent, const char *name)
:SslTrustPrompt(tqparent, name) :SslTrustPrompt(parent, name)
{ {
m_MainLabel->setText("<p align=\"center\"><b>"+ m_MainLabel->setText("<p align=\"center\"><b>"+
i18n("Error validating server certificate for '%1'").tqarg(host)+ i18n("Error validating server certificate for '%1'").tqarg(host)+

@ -26,7 +26,7 @@ class SslTrustPrompt_impl: public SslTrustPrompt {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SslTrustPrompt_impl(const TQString&,TQWidget *tqparent = 0, const char *name = 0); SslTrustPrompt_impl(const TQString&,TQWidget *parent = 0, const char *name = 0);
static bool sslTrust(const TQString&host,const TQString&fingerprint,const TQString&validFrom,const TQString&validUntil,const TQString&issuerName,const TQString&realm,const TQStringList&reasons,bool*ok,bool*saveit); static bool sslTrust(const TQString&host,const TQString&fingerprint,const TQString&validFrom,const TQString&validUntil,const TQString&issuerName,const TQString&realm,const TQStringList&reasons,bool*ok,bool*saveit);
}; };

@ -26,8 +26,8 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <klineedit.h> #include <klineedit.h>
CmdExecSettings_impl::CmdExecSettings_impl(TQWidget* tqparent, const char* name, WFlags fl) CmdExecSettings_impl::CmdExecSettings_impl(TQWidget* parent, const char* name, WFlags fl)
: CmdExecSettings(tqparent,name,fl) : CmdExecSettings(parent,name,fl)
{ {
kcfg_cmdline_log_minline->setSpecialValueText(i18n("No minimum")); kcfg_cmdline_log_minline->setSpecialValueText(i18n("No minimum"));
kcfg_cmdline_log_minline->setEnabled(kcfg_cmdline_show_logwindow->isChecked()); kcfg_cmdline_log_minline->setEnabled(kcfg_cmdline_show_logwindow->isChecked());

@ -29,7 +29,7 @@ class CmdExecSettings_impl : public CmdExecSettings
TQ_OBJECT TQ_OBJECT
public: public:
CmdExecSettings_impl(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); CmdExecSettings_impl(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~CmdExecSettings_impl(); ~CmdExecSettings_impl();
/*$PUBLIC_FUNCTIONS$*/ /*$PUBLIC_FUNCTIONS$*/

@ -26,8 +26,8 @@
#include <klineedit.h> #include <klineedit.h>
#include <kdebug.h> #include <kdebug.h>
DiffMergeSettings_impl::DiffMergeSettings_impl(TQWidget *tqparent, const char *name) DiffMergeSettings_impl::DiffMergeSettings_impl(TQWidget *parent, const char *name)
:DiffMergeSettings(tqparent, name) :DiffMergeSettings(parent, name)
{ {
kcfg_external_diff_display->setEnabled(Kdesvnsettings::use_external_diff()); kcfg_external_diff_display->setEnabled(Kdesvnsettings::use_external_diff());
} }

@ -26,7 +26,7 @@ class DiffMergeSettings_impl: public DiffMergeSettings {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DiffMergeSettings_impl(TQWidget *tqparent = 0, const char *name = 0); DiffMergeSettings_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~DiffMergeSettings_impl(); virtual ~DiffMergeSettings_impl();
protected slots: protected slots:
virtual void diffDispChanged(bool); virtual void diffDispChanged(bool);

@ -21,8 +21,8 @@
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
DispColorSettings_impl::DispColorSettings_impl(TQWidget *tqparent, const char *name) DispColorSettings_impl::DispColorSettings_impl(TQWidget *parent, const char *name)
:DispColorSettings(tqparent, name) :DispColorSettings(parent, name)
{ {
coloredStateToggled(kcfg_colored_state->isChecked()); coloredStateToggled(kcfg_colored_state->isChecked());
} }

@ -26,7 +26,7 @@ class DispColorSettings_impl: public DispColorSettings {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DispColorSettings_impl(TQWidget *tqparent = 0, const char *name = 0); DispColorSettings_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~DispColorSettings_impl(); virtual ~DispColorSettings_impl();
protected slots: protected slots:
virtual void coloredStateToggled(bool); virtual void coloredStateToggled(bool);

@ -26,8 +26,8 @@
#include <klineedit.h> #include <klineedit.h>
#include <kdebug.h> #include <kdebug.h>
DisplaySettings_impl::DisplaySettings_impl(TQWidget *tqparent, const char *name) DisplaySettings_impl::DisplaySettings_impl(TQWidget *parent, const char *name)
:DisplaySettings(tqparent, name) :DisplaySettings(parent, name)
{ {
kcfg_display_previews_in_file_tips->setEnabled(kcfg_display_file_tips->isChecked()); kcfg_display_previews_in_file_tips->setEnabled(kcfg_display_file_tips->isChecked());
} }

@ -26,7 +26,7 @@ class DisplaySettings_impl: public DisplaySettings {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DisplaySettings_impl(TQWidget *tqparent = 0, const char *name = 0); DisplaySettings_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~DisplaySettings_impl(); virtual ~DisplaySettings_impl();
protected slots: protected slots:
virtual void dispFileInfotoggled(bool); virtual void dispFileInfotoggled(bool);

@ -19,8 +19,8 @@
***************************************************************************/ ***************************************************************************/
#include "src/settings/revisiontreesettingsdlg_impl.h" #include "src/settings/revisiontreesettingsdlg_impl.h"
RevisiontreeSettingsDlg_impl::RevisiontreeSettingsDlg_impl(TQWidget *tqparent, const char *name) RevisiontreeSettingsDlg_impl::RevisiontreeSettingsDlg_impl(TQWidget *parent, const char *name)
:RevisiontreeSettingsDlg(tqparent, name) :RevisiontreeSettingsDlg(parent, name)
{ {
} }

@ -27,7 +27,7 @@ class RevisiontreeSettingsDlg_impl: public RevisiontreeSettingsDlg
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RevisiontreeSettingsDlg_impl(TQWidget *tqparent = 0, const char *name = 0); RevisiontreeSettingsDlg_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~RevisiontreeSettingsDlg_impl(); virtual ~RevisiontreeSettingsDlg_impl();
}; };

@ -21,8 +21,8 @@
#include "subversionsettings_impl.h" #include "subversionsettings_impl.h"
SubversionSettings_impl::SubversionSettings_impl(TQWidget* tqparent, const char* name, WFlags fl) SubversionSettings_impl::SubversionSettings_impl(TQWidget* parent, const char* name, WFlags fl)
: SubversionSettings(tqparent,name,fl) : SubversionSettings(parent,name,fl)
{ {
} }

@ -29,7 +29,7 @@ class SubversionSettings_impl : public SubversionSettings
TQ_OBJECT TQ_OBJECT
public: public:
SubversionSettings_impl(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); SubversionSettings_impl(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SubversionSettings_impl(); ~SubversionSettings_impl();
/*$PUBLIC_FUNCTIONS$*/ /*$PUBLIC_FUNCTIONS$*/

@ -243,15 +243,15 @@ class BlameDisplayData
TQString reposRoot; TQString reposRoot;
}; };
BlameDisplay_impl::BlameDisplay_impl(TQWidget*tqparent,const char*name) BlameDisplay_impl::BlameDisplay_impl(TQWidget*parent,const char*name)
: BlameDisplay(tqparent,name) : BlameDisplay(parent,name)
{ {
m_Data = new BlameDisplayData(); m_Data = new BlameDisplayData();
connect(m_BlameList,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotSelectionChanged())); connect(m_BlameList,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotSelectionChanged()));
} }
BlameDisplay_impl::BlameDisplay_impl(const TQString&what,const svn::AnnotatedFile&blame,TQWidget*tqparent,const char*name) BlameDisplay_impl::BlameDisplay_impl(const TQString&what,const svn::AnnotatedFile&blame,TQWidget*parent,const char*name)
: BlameDisplay(tqparent,name) : BlameDisplay(parent,name)
{ {
m_Data = new BlameDisplayData(); m_Data = new BlameDisplayData();
connect(m_BlameList,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotSelectionChanged())); connect(m_BlameList,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(slotSelectionChanged()));

@ -33,8 +33,8 @@ class BlameDisplay_impl:public BlameDisplay
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BlameDisplay_impl(const TQString&,const svn::AnnotatedFile&,TQWidget*tqparent=0,const char*name=0); BlameDisplay_impl(const TQString&,const svn::AnnotatedFile&,TQWidget*parent=0,const char*name=0);
BlameDisplay_impl(TQWidget*tqparent=0,const char*name=0); BlameDisplay_impl(TQWidget*parent=0,const char*name=0);
virtual ~BlameDisplay_impl(); virtual ~BlameDisplay_impl();
virtual void setContent(const TQString&,const svn::AnnotatedFile&); virtual void setContent(const TQString&,const svn::AnnotatedFile&);
@ -42,7 +42,7 @@ public:
const TQColor rev2color(svn_revnum_t)const; const TQColor rev2color(svn_revnum_t)const;
static void displayBlame(SimpleLogCb*,const TQString&,const svn::AnnotatedFile&,TQWidget*tqparent=0,const char*name=0); static void displayBlame(SimpleLogCb*,const TQString&,const svn::AnnotatedFile&,TQWidget*parent=0,const char*name=0);
public slots: public slots:
virtual void slotGoLine(); virtual void slotGoLine();

@ -113,8 +113,8 @@ TQString CContextListener::NotifyState(svn_wc_notify_state_t state)
return notify_state_strings[state].isEmpty()?TQString():i18n(notify_state_strings[state]); return notify_state_strings[state].isEmpty()?TQString():i18n(notify_state_strings[state]);
} }
CContextListener::CContextListener(TQObject *tqparent, const char *name) CContextListener::CContextListener(TQObject *parent, const char *name)
: TQObject(tqparent, name), svn::ContextListener(),ref_count() : TQObject(parent, name), svn::ContextListener(),ref_count()
{ {
m_Data = new CContextListenerData(); m_Data = new CContextListenerData();
} }

@ -36,7 +36,7 @@ class CContextListener : public TQObject, public svn::ContextListener,public svn
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CContextListener(TQObject *tqparent = 0, const char *name = 0); CContextListener(TQObject *parent = 0, const char *name = 0);
virtual ~CContextListener(); virtual ~CContextListener();
/* context-listener methods */ /* context-listener methods */

@ -91,8 +91,8 @@ pCPart::~pCPart()
delete disp; delete disp;
} }
CommandExec::CommandExec(TQObject*tqparent, const char *name,KCmdLineArgs *args) CommandExec::CommandExec(TQObject*parent, const char *name,KCmdLineArgs *args)
: TQObject(tqparent,name) : TQObject(parent,name)
{ {
m_pCPart = new pCPart; m_pCPart = new pCPart;
m_pCPart->args = args; m_pCPart->args = args;

@ -39,7 +39,7 @@ class CommandExec : public TQObject
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CommandExec(TQObject*tqparent,const char *name,KCmdLineArgs *args); CommandExec(TQObject*parent,const char *name,KCmdLineArgs *args);
virtual ~CommandExec(); virtual ~CommandExec();
virtual int exec(); virtual int exec();

@ -28,8 +28,8 @@
#include <kdialogbase.h> #include <kdialogbase.h>
#include <tqvbox.h> #include <tqvbox.h>
CopyMoveView_impl::CopyMoveView_impl(const TQString&baseName,const TQString&sourceName,bool move,TQWidget* tqparent, const char* name, WFlags fl) CopyMoveView_impl::CopyMoveView_impl(const TQString&baseName,const TQString&sourceName,bool move,TQWidget* parent, const char* name, WFlags fl)
: CopyMoveView(tqparent,name,fl) : CopyMoveView(parent,name,fl)
{ {
m_BaseName = baseName; m_BaseName = baseName;
if (m_BaseName.length()>0 && !m_BaseName.endsWith("/")) { if (m_BaseName.length()>0 && !m_BaseName.endsWith("/")) {
@ -80,9 +80,9 @@ bool CopyMoveView_impl::force()
\fn CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,const TQString&old,const TQString&base,TQWidget*) \fn CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,const TQString&old,const TQString&base,TQWidget*)
*/ */
TQString CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,bool move, TQString CopyMoveView_impl::getMoveCopyTo(bool*ok,bool*force,bool move,
const TQString&old,const TQString&base,TQWidget*tqparent,const char*name) const TQString&old,const TQString&base,TQWidget*parent,const char*name)
{ {
KDialogBase dlg(tqparent,name,true,(move?i18n("Move/Rename file/dir"):i18n("Copy file/dir")), KDialogBase dlg(parent,name,true,(move?i18n("Move/Rename file/dir"):i18n("Copy file/dir")),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::NoDefault); KDialogBase::NoDefault);
TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget(); TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();

@ -29,7 +29,7 @@ class CopyMoveView_impl : public CopyMoveView
TQ_OBJECT TQ_OBJECT
public: public:
CopyMoveView_impl(const TQString&baseName,const TQString&sourceName,bool move,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); CopyMoveView_impl(const TQString&baseName,const TQString&sourceName,bool move,TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~CopyMoveView_impl(); ~CopyMoveView_impl();
virtual TQString newName(); virtual TQString newName();
bool force(); bool force();

@ -34,8 +34,8 @@ public:
~RecurseCheck(){value = false;} ~RecurseCheck(){value = false;}
}; };
Createrepo_impl::Createrepo_impl(bool enable_compat13, bool enable_compat14, TQWidget *tqparent, const char *name) Createrepo_impl::Createrepo_impl(bool enable_compat13, bool enable_compat14, TQWidget *parent, const char *name)
:CreateRepo_Dlg(tqparent, name) :CreateRepo_Dlg(parent, name)
{ {
inChangeCompat=true; inChangeCompat=true;
m_DisableFsync->setEnabled(false); m_DisableFsync->setEnabled(false);

@ -26,7 +26,7 @@ class Createrepo_impl: public CreateRepo_Dlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Createrepo_impl(bool enable_compat13,bool enable_compat14, TQWidget *tqparent = 0, const char *name = 0); Createrepo_impl(bool enable_compat13,bool enable_compat14, TQWidget *parent = 0, const char *name = 0);
TQString targetDir(); TQString targetDir();
TQString fsType(); TQString fsType();
bool disableFsync(); bool disableFsync();

@ -27,8 +27,8 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
DumpRepo_impl::DumpRepo_impl(TQWidget *tqparent, const char *name) DumpRepo_impl::DumpRepo_impl(TQWidget *parent, const char *name)
:DumpRepoDlg(tqparent, name) :DumpRepoDlg(parent, name)
{ {
} }

@ -26,7 +26,7 @@ class DumpRepo_impl: public DumpRepoDlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DumpRepo_impl(TQWidget *tqparent = 0, const char *name = 0); DumpRepo_impl(TQWidget *parent = 0, const char *name = 0);
TQString reposPath(); TQString reposPath();
TQString targetFile(); TQString targetFile();
bool incremental(); bool incremental();

@ -30,8 +30,8 @@
#include "editproperty_impl.h" #include "editproperty_impl.h"
EditProperty_impl::EditProperty_impl(TQWidget *tqparent, const char *name) EditProperty_impl::EditProperty_impl(TQWidget *parent, const char *name)
:EditPropsDlgData(tqparent, name) :EditPropsDlgData(parent, name)
{ {
/// @TODO Read these values from a text or config file /// @TODO Read these values from a text or config file
fileProperties += ("svn:eol-style"); fileProperties += ("svn:eol-style");

@ -29,7 +29,7 @@ class EditProperty_impl: public EditPropsDlgData {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
EditProperty_impl(TQWidget *tqparent = 0, const char *name = 0); EditProperty_impl(TQWidget *parent = 0, const char *name = 0);
~EditProperty_impl(); ~EditProperty_impl();
TQString propName()const; TQString propName()const;

@ -46,21 +46,21 @@ const int FileListViewItem::COL_IS_LOCKED = 5;
//const int FileListViewItem::COL_CURRENT_REV = 5; //const int FileListViewItem::COL_CURRENT_REV = 5;
FileListViewItem::FileListViewItem(kdesvnfilelist*_tqparent,const svn::StatusPtr&_stat) FileListViewItem::FileListViewItem(kdesvnfilelist*_parent,const svn::StatusPtr&_stat)
: KListViewItem(_tqparent),SvnItem(_stat), : KListViewItem(_parent),SvnItem(_stat),
sortChar(0), sortChar(0),
m_Ksvnfilelist(_tqparent) m_Ksvnfilelist(_parent)
{ {
m_SvnWrapper = _tqparent->m_SvnWrapper; m_SvnWrapper = _parent->m_SvnWrapper;
init(); init();
} }
FileListViewItem::FileListViewItem(kdesvnfilelist*_tqparent,FileListViewItem*_parentItem,const svn::StatusPtr&_stat) FileListViewItem::FileListViewItem(kdesvnfilelist*_parent,FileListViewItem*_parentItem,const svn::StatusPtr&_stat)
: KListViewItem(_parentItem),SvnItem(_stat), : KListViewItem(_parentItem),SvnItem(_stat),
sortChar(0), sortChar(0),
m_Ksvnfilelist(_tqparent) m_Ksvnfilelist(_parent)
{ {
m_SvnWrapper = _tqparent->m_SvnWrapper; m_SvnWrapper = _parent->m_SvnWrapper;
init(); init();
} }
@ -130,7 +130,7 @@ void FileListViewItem::refreshtqStatus(bool childs,TQPtrList<SvnItem>*exclude,bo
if (!isValid()) { if (!isValid()) {
return; return;
} }
it = static_cast<FileListViewItem*>(tqparent()); it = static_cast<FileListViewItem*>(parent());
if (!childs) { if (!childs) {
if (it && (!exclude || exclude->find(it)==-1)) { if (it && (!exclude || exclude->find(it)==-1)) {
it->refreshtqStatus(false,exclude); it->refreshtqStatus(false,exclude);
@ -174,7 +174,7 @@ bool FileListViewItem::isParent(TQListViewItem*which)
{ {
if (!which) return false; if (!which) return false;
TQListViewItem*item = this; TQListViewItem*item = this;
while ( (item=item->tqparent())) { while ( (item=item->parent())) {
if (item==which) { if (item==which) {
return true; return true;
} }
@ -235,7 +235,7 @@ void FileListViewItem::updatetqStatus(const svn::StatusPtr&s)
SvnItem* FileListViewItem::getParentItem()const SvnItem* FileListViewItem::getParentItem()const
{ {
return static_cast<FileListViewItem*>(tqparent()); return static_cast<FileListViewItem*>(parent());
} }
/*! /*!
\fn FileListViewItem::getParentDir()const \fn FileListViewItem::getParentDir()const

@ -30,10 +30,10 @@
#include <kapplication.h> #include <kapplication.h>
#include <klocale.h> #include <klocale.h>
FillCacheThread::FillCacheThread(TQObject*_tqparent,const TQString&reposRoot) FillCacheThread::FillCacheThread(TQObject*_parent,const TQString&reposRoot)
: TQThread(),mutex(),m_SvnContextListener(0) : TQThread(),mutex(),m_SvnContextListener(0)
{ {
m_Parent = _tqparent; m_Parent = _parent;
m_CurrentContext = new svn::Context(); m_CurrentContext = new svn::Context();
m_SvnContextListener = new ThreadContextListener(m_Parent); m_SvnContextListener = new ThreadContextListener(m_Parent);

@ -31,8 +31,8 @@
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
CheckoutInfo_impl::CheckoutInfo_impl(TQWidget *tqparent, const char *name) CheckoutInfo_impl::CheckoutInfo_impl(TQWidget *parent, const char *name)
:CheckoutInfo(tqparent, name) :CheckoutInfo(parent, name)
{ {
m_RangeInput->setStartOnly(true); m_RangeInput->setStartOnly(true);
m_RangeInput->setHeadDefault(); m_RangeInput->setHeadDefault();

@ -29,7 +29,7 @@ class CheckoutInfo_impl: public CheckoutInfo {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CheckoutInfo_impl(TQWidget *tqparent = 0, const char *name = 0); CheckoutInfo_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~CheckoutInfo_impl(); virtual ~CheckoutInfo_impl();
svn::Revision toRevision(); svn::Revision toRevision();

@ -2,16 +2,16 @@
#include <klocale.h> #include <klocale.h>
#include <kiconloader.h> #include <kiconloader.h>
PropertyListViewItem::PropertyListViewItem(KListView *tqparent,const TQString&aName,const TQString&aValue) PropertyListViewItem::PropertyListViewItem(KListView *parent,const TQString&aName,const TQString&aValue)
: KListViewItem(tqparent),m_currentName(aName),m_startName(aName),m_currentValue(aValue),m_startValue(aValue),m_deleted(false) : KListViewItem(parent),m_currentName(aName),m_startName(aName),m_currentValue(aValue),m_startValue(aValue),m_deleted(false)
{ {
setMultiLinesEnabled(true); setMultiLinesEnabled(true);
setText(0,startName()); setText(0,startName());
setText(1,startValue()); setText(1,startValue());
} }
PropertyListViewItem::PropertyListViewItem(KListView *tqparent) PropertyListViewItem::PropertyListViewItem(KListView *parent)
: KListViewItem(tqparent),m_currentName(""),m_startName(""),m_currentValue(""),m_startValue(""),m_deleted(false) : KListViewItem(parent),m_currentName(""),m_startName(""),m_currentValue(""),m_startValue(""),m_deleted(false)
{ {
setMultiLinesEnabled(true); setMultiLinesEnabled(true);
setText(0,startName()); setText(0,startName());

@ -13,8 +13,8 @@ class PropertyListViewItem:public KListViewItem
public: public:
static const int _RTTI_ = 1001; static const int _RTTI_ = 1001;
PropertyListViewItem(KListView *tqparent,const TQString&,const TQString&); PropertyListViewItem(KListView *parent,const TQString&,const TQString&);
PropertyListViewItem(KListView *tqparent); PropertyListViewItem(KListView *parent);
virtual ~PropertyListViewItem(); virtual ~PropertyListViewItem();
const TQString&startName()const{return m_startName;} const TQString&startName()const{return m_startName;}

@ -25,8 +25,8 @@
#include <kmessagebox.h> #include <kmessagebox.h>
Propertylist::Propertylist(TQWidget *tqparent, const char *name) Propertylist::Propertylist(TQWidget *parent, const char *name)
: KListView(tqparent, name),m_commitit(false) : KListView(parent, name),m_commitit(false)
{ {
addColumn(i18n("Property")); addColumn(i18n("Property"));
addColumn(i18n("Value")); addColumn(i18n("Value"));

@ -31,7 +31,7 @@ class Propertylist : public KListView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Propertylist(TQWidget *tqparent = 0, const char *name = 0); Propertylist(TQWidget *parent = 0, const char *name = 0);
~Propertylist(); ~Propertylist();
bool checkExisting(const TQString&aName,TQListViewItem*it=0); bool checkExisting(const TQString&aName,TQListViewItem*it=0);

@ -29,8 +29,8 @@
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
Rangeinput_impl::Rangeinput_impl(TQWidget *tqparent, const char *name) Rangeinput_impl::Rangeinput_impl(TQWidget *parent, const char *name)
:RangeInputDlg(tqparent, name) :RangeInputDlg(parent, name)
{ {
m_startRevInput->setRange(0,INT_MAX,1,false); m_startRevInput->setRange(0,INT_MAX,1,false);
m_endRevInput->setRange(0,INT_MAX,1,false); m_endRevInput->setRange(0,INT_MAX,1,false);

@ -28,7 +28,7 @@ class Rangeinput_impl: public RangeInputDlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Rangeinput_impl(TQWidget *tqparent = 0, const char *name = 0); Rangeinput_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~Rangeinput_impl(); virtual ~Rangeinput_impl();
typedef TQPair<svn::Revision,svn::Revision> revision_range; typedef TQPair<svn::Revision,svn::Revision> revision_range;

@ -29,8 +29,8 @@
#include <tqvbox.h> #include <tqvbox.h>
RevisionButtonImpl::RevisionButtonImpl(TQWidget *tqparent, const char *name) RevisionButtonImpl::RevisionButtonImpl(TQWidget *parent, const char *name)
:RevisionButton(tqparent, name),m_Rev(svn::Revision::UNDEFINED),m_noWorking(false) :RevisionButton(parent, name),m_Rev(svn::Revision::UNDEFINED),m_noWorking(false)
{ {
} }

@ -28,7 +28,7 @@ class RevisionButtonImpl: public RevisionButton {
TQ_OBJECT TQ_OBJECT
public: public:
RevisionButtonImpl(TQWidget *tqparent = 0, const char *name = 0); RevisionButtonImpl(TQWidget *parent = 0, const char *name = 0);
virtual ~RevisionButtonImpl(); virtual ~RevisionButtonImpl();
virtual void setRevision(const svn::Revision&aRev); virtual void setRevision(const svn::Revision&aRev);

@ -137,8 +137,8 @@ int GraphEdge::rtti()const
return GRAPHTREE_LINE; return GRAPHTREE_LINE;
} }
GraphEdgeArrow::GraphEdgeArrow(GraphEdge*_tqparent,TQCanvas*c) GraphEdgeArrow::GraphEdgeArrow(GraphEdge*_parent,TQCanvas*c)
: TQCanvasPolygon(c),_edge(_tqparent) : TQCanvasPolygon(c),_edge(_parent)
{ {
} }

@ -20,8 +20,8 @@
#include "pannerview.h" #include "pannerview.h"
#include <tqpainter.h> #include <tqpainter.h>
PannerView::PannerView(TQWidget* tqparent, const char* name) PannerView::PannerView(TQWidget* parent, const char* name)
: TQCanvasView(tqparent, name,WNoAutoErase | WStaticContents ) : TQCanvasView(parent, name,WNoAutoErase | WStaticContents )
{ {
m_Moving = false; m_Moving = false;
viewport()->setBackgroundMode(TQt::NoBackground); viewport()->setBackgroundMode(TQt::NoBackground);

@ -30,7 +30,7 @@ class PannerView : public TQCanvasView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PannerView(TQWidget* tqparent=0, const char* name=0); PannerView(TQWidget* parent=0, const char* name=0);
virtual ~PannerView(); virtual ~PannerView();
void setZoomRect(const TQRect& theValue); void setZoomRect(const TQRect& theValue);

@ -76,8 +76,8 @@ void GraphViewTip::maybeTip( const TQPoint & pos)
} }
} }
RevGraphView::RevGraphView(TQObject*aListener,svn::Client*_client,TQWidget * tqparent, const char * name, WFlags f) RevGraphView::RevGraphView(TQObject*aListener,svn::Client*_client,TQWidget * parent, const char * name, WFlags f)
: TQCanvasView(tqparent,name,f) : TQCanvasView(parent,name,f)
{ {
m_Canvas = 0L; m_Canvas = 0L;
m_Client = _client; m_Client = _client;

@ -50,7 +50,7 @@ public:
/* avoid large copy operations */ /* avoid large copy operations */
friend class RevisionTree; friend class RevisionTree;
RevGraphView(TQObject*,svn::Client*,TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0); RevGraphView(TQObject*,svn::Client*,TQWidget * parent = 0, const char * name = 0, WFlags f = 0);
virtual ~RevGraphView(); virtual ~RevGraphView();
void showText(const TQString&s); void showText(const TQString&s);

@ -122,13 +122,13 @@ RevisionTree::RevisionTree(svn::Client*aClient,
const svn::Revision&startr,const svn::Revision&endr, const svn::Revision&startr,const svn::Revision&endr,
const TQString&origin, const TQString&origin,
const svn::Revision& baserevision, const svn::Revision& baserevision,
TQWidget*treeParent,TQWidget*tqparent) TQWidget*treeParent,TQWidget*parent)
:m_InitialRevsion(0),m_Path(origin),m_Valid(false) :m_InitialRevsion(0),m_Path(origin),m_Valid(false)
{ {
m_Data = new RtreeData; m_Data = new RtreeData;
m_Data->m_Client=aClient; m_Data->m_Client=aClient;
m_Data->m_Listener=aListener; m_Data->m_Listener=aListener;
m_Data->dlgParent=tqparent; m_Data->dlgParent=parent;
if (!m_Data->getLogs(reposRoot,startr,endr,origin)) { if (!m_Data->getLogs(reposRoot,startr,endr,origin)) {
return; return;
@ -138,7 +138,7 @@ RevisionTree::RevisionTree(svn::Client*aClient,
kdDebug()<<"Origin: "<<origin << endl; kdDebug()<<"Origin: "<<origin << endl;
m_Data->progress=new KProgressDialog( m_Data->progress=new KProgressDialog(
tqparent,"progressdlg",i18n("Scanning logs"),i18n("Scanning the logs for %1").tqarg(origin),true); parent,"progressdlg",i18n("Scanning logs"),i18n("Scanning the logs for %1").tqarg(origin),true);
m_Data->progress->setMinimumDuration(100); m_Data->progress->setMinimumDuration(100);
m_Data->progress->show(); m_Data->progress->show();
m_Data->progress->setAllowCancel(true); m_Data->progress->setAllowCancel(true);

@ -49,7 +49,7 @@ public:
const TQString& reposRoot, const TQString& reposRoot,
const svn::Revision&startr,const svn::Revision&endr, const svn::Revision&startr,const svn::Revision&endr,
const TQString&,const svn::Revision& baserevision,TQWidget*treeParent, const TQString&,const svn::Revision& baserevision,TQWidget*treeParent,
TQWidget*tqparent=0); TQWidget*parent=0);
virtual ~RevisionTree(); virtual ~RevisionTree();
bool isValid()const; bool isValid()const;

@ -30,11 +30,11 @@
#include "ktextbrowser.h" #include "ktextbrowser.h"
/* /*
* Constructs a RevTreeWidget as a child of 'tqparent', with the * Constructs a RevTreeWidget as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
RevTreeWidget::RevTreeWidget(TQObject*lt,svn::Client*cl, TQWidget* tqparent, const char* name, WFlags fl ) RevTreeWidget::RevTreeWidget(TQObject*lt,svn::Client*cl, TQWidget* parent, const char* name, WFlags fl )
: TQWidget( tqparent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "RevTreeWidget" ); setName( "RevTreeWidget" );

@ -46,7 +46,7 @@ class RevTreeWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
RevTreeWidget(TQObject*,svn::Client*,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); RevTreeWidget(TQObject*,svn::Client*,TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~RevTreeWidget(); ~RevTreeWidget();
TQSplitter* m_Splitter; TQSplitter* m_Splitter;

@ -23,8 +23,8 @@
#include <kurl.h> #include <kurl.h>
#include <kurlrequester.h> #include <kurlrequester.h>
HotcopyDlg_impl::HotcopyDlg_impl(TQWidget *tqparent, const char *name) HotcopyDlg_impl::HotcopyDlg_impl(TQWidget *parent, const char *name)
:HotcopyDlg(tqparent, name) :HotcopyDlg(parent, name)
{ {
} }

@ -26,7 +26,7 @@ class HotcopyDlg_impl: public HotcopyDlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
HotcopyDlg_impl(TQWidget *tqparent = 0, const char *name = 0); HotcopyDlg_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~HotcopyDlg_impl(); virtual ~HotcopyDlg_impl();
TQString srcPath()const; TQString srcPath()const;

@ -30,8 +30,8 @@
#include <tqtooltip.h> #include <tqtooltip.h>
Importdir_logmsg::Importdir_logmsg(TQWidget *tqparent, const char *name) Importdir_logmsg::Importdir_logmsg(TQWidget *parent, const char *name)
: Logmsg_impl(tqparent, name) : Logmsg_impl(parent, name)
{ {
m_createDirBox = new TQCheckBox("",this,"create_dir_checkbox"); m_createDirBox = new TQCheckBox("",this,"create_dir_checkbox");
m_keepLocksButton->hide(); m_keepLocksButton->hide();

@ -31,7 +31,7 @@ class Importdir_logmsg : public Logmsg_impl
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Importdir_logmsg(TQWidget *tqparent = 0, const char *name = 0); Importdir_logmsg(TQWidget *parent = 0, const char *name = 0);
virtual ~Importdir_logmsg(); virtual ~Importdir_logmsg();

@ -189,8 +189,8 @@ bool KdesvnFileListPrivate::reReadSettings()
_unknown != mdisp_unknown_files); _unknown != mdisp_unknown_files);
} }
kdesvnfilelist::kdesvnfilelist(KActionCollection*aCollect,TQWidget *tqparent, const char *name) kdesvnfilelist::kdesvnfilelist(KActionCollection*aCollect,TQWidget *parent, const char *name)
: KListView(tqparent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this)) : KListView(parent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this))
{ {
m_SelectedItems = 0; m_SelectedItems = 0;
m_pList = new KdesvnFileListPrivate; m_pList = new KdesvnFileListPrivate;
@ -646,7 +646,7 @@ void kdesvnfilelist::closeMe()
m_pList->m_fileTip->setItem(0); m_pList->m_fileTip->setItem(0);
} }
bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent) bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _parent)
{ {
TQString what = _what; TQString what = _what;
svn::StatusEntries dlist; svn::StatusEntries dlist;
@ -654,13 +654,13 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent
what.truncate(what.length()-1); what.truncate(what.length()-1);
} }
// prevent this from checking unversioned folder. FIXME: what happen when we do open url on a non-working-copy folder?? // prevent this from checking unversioned folder. FIXME: what happen when we do open url on a non-working-copy folder??
if (!isWorkingCopy()|| (!_tqparent) || ((_tqparent) && (_tqparent->isVersioned()))) { if (!isWorkingCopy()|| (!_parent) || ((_parent) && (_parent->isVersioned()))) {
if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision) ) { if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision) ) {
kdDebug() << "unable maketqStatus" <<endl; kdDebug() << "unable maketqStatus" <<endl;
return false; return false;
} }
} else { } else {
checkUnversionedDirs(_tqparent); checkUnversionedDirs(_parent);
return true; return true;
} }
svn::StatusEntries neweritems; svn::StatusEntries neweritems;
@ -682,15 +682,15 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent
// current item is not versioned // current item is not versioned
if (!(*it)->isVersioned() && !filterOut((*it))) { if (!(*it)->isVersioned() && !filterOut((*it))) {
// if empty, we may want to create a default svn::tqStatus for each folder inside this _tqparent // if empty, we may want to create a default svn::tqStatus for each folder inside this _parent
// iterate over TQDir and create new filelistviewitem // iterate over TQDir and create new filelistviewitem
checkUnversionedDirs(_tqparent); checkUnversionedDirs(_parent);
} }
if ((*it)->path()==what||TQString::compare((*it)->entry().url(),what)==0){ if ((*it)->path()==what||TQString::compare((*it)->entry().url(),what)==0){
if (!_tqparent) { if (!_parent) {
pitem = new FileListViewItem(this,*it); pitem = new FileListViewItem(this,*it);
//kdDebug()<< "CheckDirs::creating new FileListViewitem as tqparent " + (*it)->path() << endl; //kdDebug()<< "CheckDirs::creating new FileListViewitem as parent " + (*it)->path() << endl;
m_Dirsread[pitem->fullName()]=true; m_Dirsread[pitem->fullName()]=true;
pitem->setDropEnabled(true); pitem->setDropEnabled(true);
} }
@ -699,8 +699,8 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent
break; break;
} }
} }
if (_tqparent) { if (_parent) {
pitem = _tqparent; pitem = _parent;
} }
insertDirs(pitem,dlist); insertDirs(pitem,dlist);
if (ownupdates) { if (ownupdates) {
@ -711,7 +711,7 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent
return true; return true;
} }
void kdesvnfilelist::insertDirs(FileListViewItem * _tqparent,svn::StatusEntries&dlist) void kdesvnfilelist::insertDirs(FileListViewItem * _parent,svn::StatusEntries&dlist)
{ {
svn::StatusEntries::iterator it; svn::StatusEntries::iterator it;
#if 0 #if 0
@ -732,13 +732,13 @@ void kdesvnfilelist::insertDirs(FileListViewItem * _tqparent,svn::StatusEntries&
continue; continue;
} }
FileListViewItem * item; FileListViewItem * item;
if (!_tqparent) { if (!_parent) {
item = new FileListViewItem(this,*it); item = new FileListViewItem(this,*it);
} else { } else {
if ( (item = _tqparent->findChild( (*it)->path() )) ) { if ( (item = _parent->findChild( (*it)->path() )) ) {
delete item; delete item;
} }
item = new FileListViewItem(this,_tqparent,*it); item = new FileListViewItem(this,_parent,*it);
} }
if (item->isDir()) { if (item->isDir()) {
m_Dirsread[item->fullName()]=false; m_Dirsread[item->fullName()]=false;
@ -912,7 +912,7 @@ void kdesvnfilelist::enableActions()
m_DelCurrent->setEnabled( (multi||single)); m_DelCurrent->setEnabled( (multi||single));
m_LockAction->setEnabled( (multi||single)); m_LockAction->setEnabled( (multi||single));
m_UnlockAction->setEnabled( (multi||single)); m_UnlockAction->setEnabled( (multi||single));
m_IgnoreAction->setEnabled((single)&&singleSelected()->tqparent()!=0&&!singleSelected()->isRealVersioned()); m_IgnoreAction->setEnabled((single)&&singleSelected()->parent()!=0&&!singleSelected()->isRealVersioned());
m_RenameAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild())); m_RenameAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild()));
m_CopyAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild())); m_CopyAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild()));
@ -1304,11 +1304,11 @@ void kdesvnfilelist::refreshCurrent(SvnItem*cur)
viewport()->tqrepaint(); viewport()->tqrepaint();
} }
bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down) bool kdesvnfilelist::refreshRecursive(FileListViewItem*_parent,bool down)
{ {
FileListViewItem*item; FileListViewItem*item;
if (_tqparent) { if (_parent) {
item = static_cast<FileListViewItem*>(_tqparent->firstChild()); item = static_cast<FileListViewItem*>(_parent->firstChild());
} else { } else {
item = static_cast<FileListViewItem*>(firstChild()); item = static_cast<FileListViewItem*>(firstChild());
} }
@ -1324,7 +1324,7 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down)
item = static_cast<FileListViewItem*>(item->nextSibling()); item = static_cast<FileListViewItem*>(item->nextSibling());
} }
TQString what = (_tqparent!=0?_tqparent->fullName():baseUri()); TQString what = (_parent!=0?_parent->fullName():baseUri());
svn::StatusEntries dlist; svn::StatusEntries dlist;
if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision)) { if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision)) {
@ -1363,10 +1363,10 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down)
if (!gotit &&!filterOut((*it)) ) { if (!gotit &&!filterOut((*it)) ) {
dispchanged = true; dispchanged = true;
FileListViewItem * item; FileListViewItem * item;
if (!_tqparent) { if (!_parent) {
item = new FileListViewItem(this,*it); item = new FileListViewItem(this,*it);
} else { } else {
item = new FileListViewItem(this,_tqparent,*it); item = new FileListViewItem(this,_parent,*it);
} }
if (item->isDir()) { if (item->isDir()) {
m_Dirsread[item->fullName()]=false; m_Dirsread[item->fullName()]=false;
@ -1400,8 +1400,8 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down)
kdDebug() << "Selected items " << m_SelectedItems->count() << endl; kdDebug() << "Selected items " << m_SelectedItems->count() << endl;
#endif #endif
} }
if (_tqparent) { if (_parent) {
item = static_cast<FileListViewItem*>(_tqparent->firstChild()); item = static_cast<FileListViewItem*>(_parent->firstChild());
} else { } else {
item = static_cast<FileListViewItem*>(firstChild()); item = static_cast<FileListViewItem*>(firstChild());
} }
@ -2486,8 +2486,8 @@ void kdesvnfilelist::slotDirItemCreated(const TQString&what)
void kdesvnfilelist::updateParents(FileListViewItem*item) void kdesvnfilelist::updateParents(FileListViewItem*item)
{ {
if (!item || !item->tqparent()) return; if (!item || !item->parent()) return;
FileListViewItem*it = static_cast<FileListViewItem*>(item->tqparent()); FileListViewItem*it = static_cast<FileListViewItem*>(item->parent());
it->update(); it->update();
updateParents(it); updateParents(it);
} }
@ -2564,7 +2564,7 @@ void kdesvnfilelist::_dirwatchTimeout()
checkUnversionedDirs(item); checkUnversionedDirs(item);
} }
} }
updateParents(static_cast<FileListViewItem*>(item->tqparent())); updateParents(static_cast<FileListViewItem*>(item->parent()));
} else if (c=='D') { } else if (c=='D') {
if (item->isDir()) { if (item->isDir()) {
m_pList->m_DirWatch->removeDir(what); m_pList->m_DirWatch->removeDir(what);
@ -2576,7 +2576,7 @@ void kdesvnfilelist::_dirwatchTimeout()
} else if (!item->isMissing()) { } else if (!item->isMissing()) {
TQFileInfo fi(what); TQFileInfo fi(what);
if (!fi.exists()) { if (!fi.exists()) {
FileListViewItem*p = static_cast<FileListViewItem*>(item->tqparent()); FileListViewItem*p = static_cast<FileListViewItem*>(item->parent());
delete item; delete item;
repaintit=true; repaintit=true;
item = 0; item = 0;
@ -2804,11 +2804,11 @@ void kdesvnfilelist::slotRelocate()
refreshItem(k->fItem()); refreshItem(k->fItem());
} }
void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent ) void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _parent )
{ {
TQDir d; TQDir d;
if (_tqparent) if (_parent)
d.setPath(_tqparent->fullName()); //FIXME: this one is not reliable, what if _tqparent == 0?? d.setPath(_parent->fullName()); //FIXME: this one is not reliable, what if _parent == 0??
// else // else
// d.setPath(this->firstChild()->fullName()); // d.setPath(this->firstChild()->fullName());
@ -2845,12 +2845,12 @@ void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent )
// start copying insertDirs // start copying insertDirs
FileListViewItem * item; FileListViewItem * item;
if (!_tqparent) { if (!_parent) {
item = new FileListViewItem(this, stat); item = new FileListViewItem(this, stat);
kdDebug()<< "creating new FileListViewitem " + item->fullName() << endl; kdDebug()<< "creating new FileListViewitem " + item->fullName() << endl;
} else { } else {
item = new FileListViewItem(this,_tqparent, stat); item = new FileListViewItem(this,_parent, stat);
kdDebug()<< "creating new FileListViewitem (with tqparent) " + item->fullName() << endl; kdDebug()<< "creating new FileListViewitem (with parent) " + item->fullName() << endl;
} }
if (fi->isDir()) { if (fi->isDir()) {
m_Dirsread[item->fullName()]=false; m_Dirsread[item->fullName()]=false;
@ -2872,7 +2872,7 @@ void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent )
} }
// uncomment this if you've ben able to set svn_node_kind (see above) // uncomment this if you've ben able to set svn_node_kind (see above)
//this->insertDirs(_tqparent, nonversioned_list); //this->insertDirs(_parent, nonversioned_list);
} }
void kdesvnfilelist::rescanIconsRec(FileListViewItem*startAt,bool checkNewer,bool no_update) void kdesvnfilelist::rescanIconsRec(FileListViewItem*startAt,bool checkNewer,bool no_update)
@ -3098,7 +3098,7 @@ void kdesvnfilelist::slotFoldTree()
while (TQListViewItem* item = it.current()) while (TQListViewItem* item = it.current())
{ {
// don't close the top level directory // don't close the top level directory
if (item->isExpandable() && item->tqparent()) if (item->isExpandable() && item->parent())
item->setOpen(false); item->setOpen(false);
++it; ++it;

@ -56,7 +56,7 @@ class kdesvnfilelist : public KListView,public ItemDisplay
TQ_OBJECT TQ_OBJECT
friend class FileListViewItem; friend class FileListViewItem;
public: public:
kdesvnfilelist(KActionCollection*,TQWidget *tqparent = 0, const char *name = 0); kdesvnfilelist(KActionCollection*,TQWidget *parent = 0, const char *name = 0);
virtual ~kdesvnfilelist(); virtual ~kdesvnfilelist();
virtual bool openURL( const KURL &url,bool noReinit=false ); virtual bool openURL( const KURL &url,bool noReinit=false );
@ -85,9 +85,9 @@ protected:
SvnActions*m_SvnWrapper; SvnActions*m_SvnWrapper;
/* the tqparent entry must removed from list before */ /* the parent entry must removed from list before */
void insertDirs(FileListViewItem * _tqparent,svn::StatusEntries&); void insertDirs(FileListViewItem * _parent,svn::StatusEntries&);
bool checkDirs(const TQString&,FileListViewItem * _tqparent); bool checkDirs(const TQString&,FileListViewItem * _parent);
void setupActions(); void setupActions();
svn::Client*svnclient(); svn::Client*svnclient();
@ -107,7 +107,7 @@ protected:
virtual bool refreshRecursive(FileListViewItem*,bool down=true); virtual bool refreshRecursive(FileListViewItem*,bool down=true);
virtual void updateParents(FileListViewItem*); virtual void updateParents(FileListViewItem*);
virtual void checkUnversionedDirs( FileListViewItem * _tqparent ); virtual void checkUnversionedDirs( FileListViewItem * _parent );
/** /**
* Overridden virtuals for TQt drag 'n drop (XDND) * Overridden virtuals for TQt drag 'n drop (XDND)
@ -129,7 +129,7 @@ protected:
virtual void contentsMouseReleaseEvent(TQMouseEvent*e); virtual void contentsMouseReleaseEvent(TQMouseEvent*e);
virtual void contentsWheelEvent( TQWheelEvent * e ); virtual void contentsWheelEvent( TQWheelEvent * e );
virtual void leaveEvent(TQEvent*e); virtual void leaveEvent(TQEvent*e);
virtual void rescanIconsRec(FileListViewItem*_tqparent=0,bool checkNewer=false,bool no_update=false); virtual void rescanIconsRec(FileListViewItem*_parent=0,bool checkNewer=false,bool no_update=false);
KTrader::OfferList offersList(SvnItem*item,bool execOnly=false); KTrader::OfferList offersList(SvnItem*item,bool execOnly=false);

@ -25,7 +25,7 @@ class KeyState
public: public:
KeyState(){} KeyState(){}
~KeyState(){} ~KeyState(){}
static void keystate(int*,int*,int*,int*,unsigned int*tqmask); static void keystate(int*,int*,int*,int*,unsigned int*mask);
}; };

@ -27,8 +27,8 @@
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
LoadDmpDlg_impl::LoadDmpDlg_impl(TQWidget *tqparent, const char *name) LoadDmpDlg_impl::LoadDmpDlg_impl(TQWidget *parent, const char *name)
:LoadDmpDlg(tqparent, name) :LoadDmpDlg(parent, name)
{ {
} }

@ -26,7 +26,7 @@ class LoadDmpDlg_impl: public LoadDmpDlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LoadDmpDlg_impl(TQWidget *tqparent = 0, const char *name = 0); LoadDmpDlg_impl(TQWidget *parent = 0, const char *name = 0);
virtual ~LoadDmpDlg_impl(); virtual ~LoadDmpDlg_impl();
bool usePost()const; bool usePost()const;
bool usePre()const; bool usePre()const;

@ -31,8 +31,8 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqvbox.h> #include <tqvbox.h>
MergeDlg_impl::MergeDlg_impl(TQWidget *tqparent, const char *name,bool src1,bool src2,bool out) MergeDlg_impl::MergeDlg_impl(TQWidget *parent, const char *name,bool src1,bool src2,bool out)
:MergeDlg(tqparent, name) :MergeDlg(parent, name)
{ {
m_SrcOneInput->setMode(KFile::Directory|KFile::File); m_SrcOneInput->setMode(KFile::Directory|KFile::File);
if (!src1) { if (!src1) {
@ -181,10 +181,10 @@ Rangeinput_impl::revision_range MergeDlg_impl::getRange()const
*/ */
bool MergeDlg_impl::getMergeRange(Rangeinput_impl::revision_range&range,bool*force,bool*recursive,bool*ignorerelated,bool*dry, bool MergeDlg_impl::getMergeRange(Rangeinput_impl::revision_range&range,bool*force,bool*recursive,bool*ignorerelated,bool*dry,
bool*useExternal, bool*useExternal,
TQWidget*tqparent,const char*name) TQWidget*parent,const char*name)
{ {
MergeDlg_impl*ptr = 0; MergeDlg_impl*ptr = 0;
KDialogBase dlg(tqparent,name,true,i18n("Enter merge range"), KDialogBase dlg(parent,name,true,i18n("Enter merge range"),
KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::Help, KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::Help,
KDialogBase::Ok,true); KDialogBase::Ok,true);
dlg.setHelp("merging-items","kdesvn"); dlg.setHelp("merging-items","kdesvn");

@ -27,7 +27,7 @@ class MergeDlg_impl: public MergeDlg {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MergeDlg_impl(TQWidget *tqparent = 0, const char *name = 0,bool src1=true,bool src2=true,bool out=true); MergeDlg_impl(TQWidget *parent = 0, const char *name = 0,bool src1=true,bool src2=true,bool out=true);
virtual ~MergeDlg_impl(); virtual ~MergeDlg_impl();
bool recursive()const; bool recursive()const;
@ -46,7 +46,7 @@ public:
void setDest(const TQString&); void setDest(const TQString&);
static bool getMergeRange(Rangeinput_impl::revision_range&range, static bool getMergeRange(Rangeinput_impl::revision_range&range,
bool*force,bool*recursive,bool*ignorerelated,bool*dry,bool*useExternal,TQWidget*tqparent=0,const char*name=0); bool*force,bool*recursive,bool*ignorerelated,bool*dry,bool*useExternal,TQWidget*parent=0,const char*name=0);
protected slots: protected slots:
virtual void externDisplayToggled(bool); virtual void externDisplayToggled(bool);

@ -27,10 +27,10 @@
#include <kdebug.h> #include <kdebug.h>
#include <kapplication.h> #include <kapplication.h>
CheckModifiedThread::CheckModifiedThread(TQObject*_tqparent,const TQString&what,bool _updates) CheckModifiedThread::CheckModifiedThread(TQObject*_parent,const TQString&what,bool _updates)
: TQThread(),mutex(),m_ContextListener(0) : TQThread(),mutex(),m_ContextListener(0)
{ {
m_Parent = _tqparent; m_Parent = _parent;
m_CurrentContext = new svn::Context(); m_CurrentContext = new svn::Context();
m_ContextListener = new ThreadContextListener(m_Parent); m_ContextListener = new ThreadContextListener(m_Parent);
TQObject::connect(m_ContextListener,TQT_SIGNAL(sendNotify(const TQString&)),m_Parent,TQT_SLOT(slotNotifyMessage(const TQString&))); TQObject::connect(m_ContextListener,TQT_SIGNAL(sendNotify(const TQString&)),m_Parent,TQT_SLOT(slotNotifyMessage(const TQString&)));

@ -22,8 +22,8 @@
#include <krun.h> #include <krun.h>
#include <klocale.h> #include <klocale.h>
OpenContextmenu::OpenContextmenu(const KURL&aPath,const KTrader::OfferList&aList,TQWidget* tqparent, const char* name) OpenContextmenu::OpenContextmenu(const KURL&aPath,const KTrader::OfferList&aList,TQWidget* parent, const char* name)
: TQPopupMenu(tqparent, name),m_Path(aPath),m_List(aList) : TQPopupMenu(parent, name),m_Path(aPath),m_List(aList)
{ {
setup(); setup();
} }

@ -34,7 +34,7 @@ class OpenContextmenu : public TQPopupMenu
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
OpenContextmenu(const KURL&,const KTrader::OfferList&,TQWidget* tqparent, const char* name); OpenContextmenu(const KURL&,const KTrader::OfferList&,TQWidget* parent, const char* name);
virtual ~OpenContextmenu(); virtual ~OpenContextmenu();
protected: protected:
KURL m_Path; KURL m_Path;

@ -38,15 +38,15 @@
#include <kdebug.h> #include <kdebug.h>
/* /*
* Constructs a PropertiesDlg as a child of 'tqparent', with the * Constructs a PropertiesDlg as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
* *
* The dialog will by default be modeless, unless you set 'modal' to * The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog. * TRUE to construct a modal dialog.
*/ */
PropertiesDlg::PropertiesDlg(SvnItem*which, svn::Client*aClient, const svn::Revision&aRev, TQWidget* tqparent, const char* name, bool modal) PropertiesDlg::PropertiesDlg(SvnItem*which, svn::Client*aClient, const svn::Revision&aRev, TQWidget* parent, const char* name, bool modal)
: :
KDialogBase(tqparent,name,modal,i18n("Modify properties"),Ok|Cancel/*|Help|User1|User2*/, Ok, KDialogBase(parent,name,modal,i18n("Modify properties"),Ok|Cancel/*|Help|User1|User2*/, Ok,
true/*, KStdGuiItem::add(),KStdGuiItem::remove() */), true/*, KStdGuiItem::add(),KStdGuiItem::remove() */),
m_Item(which),m_changed(false), m_Item(which),m_changed(false),
m_Client(aClient),m_Rev(aRev) m_Client(aClient),m_Rev(aRev)

@ -52,7 +52,7 @@ class PropertiesDlg : public KDialogBase
public: public:
PropertiesDlg(SvnItem*, svn::Client*, PropertiesDlg(SvnItem*, svn::Client*,
const svn::Revision&aRev=svn::Revision(svn_opt_revision_working), const svn::Revision&aRev=svn::Revision(svn_opt_revision_working),
TQWidget* tqparent = 0, const char* name = 0, bool modal = true); TQWidget* parent = 0, const char* name = 0, bool modal = true);
~PropertiesDlg(); ~PropertiesDlg();
bool hasChanged()const; bool hasChanged()const;

@ -34,8 +34,8 @@
#include <kdebug.h> #include <kdebug.h>
#include <ktextbrowser.h> #include <ktextbrowser.h>
StopDlg::StopDlg(TQObject*listener,TQWidget *tqparent, const char *name,const TQString&caption,const TQString&text) StopDlg::StopDlg(TQObject*listener,TQWidget *parent, const char *name,const TQString&caption,const TQString&text)
: KDialogBase(KDialogBase::Plain,caption,KDialogBase::Cancel, KDialogBase::Cancel,tqparent, name,true) : KDialogBase(KDialogBase::Plain,caption,KDialogBase::Cancel, KDialogBase::Cancel,parent, name,true)
,m_Context(listener),m_MinDuration(1000),mCancelled(false),mShown(false),m_BarShown(false), ,m_Context(listener),m_MinDuration(1000),mCancelled(false),mShown(false),m_BarShown(false),
cstack(0) cstack(0)
{ {
@ -197,8 +197,8 @@ void StopDlg::slotNetProgres(long long int current, long long int max)
} }
} }
StopSimpleDlg::StopSimpleDlg(TQWidget *tqparent, const char *name,const TQString&caption,const TQString&text) StopSimpleDlg::StopSimpleDlg(TQWidget *parent, const char *name,const TQString&caption,const TQString&text)
: StopDlg(0,tqparent,name,caption,text),cancelld(false) : StopDlg(0,parent,name,caption,text),cancelld(false)
{ {
connect(this,TQT_SIGNAL(sigCancel(bool)),this,TQT_SLOT(slotSimpleCancel(bool))); connect(this,TQT_SIGNAL(sigCancel(bool)),this,TQT_SLOT(slotSimpleCancel(bool)));
} }

@ -43,7 +43,7 @@ class StopDlg : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StopDlg(TQObject*,TQWidget *tqparent = 0, const char *name = 0,const TQString&caption=TQString(),const TQString&text=TQString()); StopDlg(TQObject*,TQWidget *parent = 0, const char *name = 0,const TQString&caption=TQString(),const TQString&text=TQString());
virtual ~StopDlg(); virtual ~StopDlg();
bool cancelld(); bool cancelld();
@ -89,7 +89,7 @@ class StopSimpleDlg:public StopDlg
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StopSimpleDlg(TQWidget *tqparent = 0, const char *name = 0,const TQString&caption=TQString(),const TQString&text=TQString()); StopSimpleDlg(TQWidget *parent = 0, const char *name = 0,const TQString&caption=TQString(),const TQString&text=TQString());
virtual ~StopSimpleDlg(){} virtual ~StopSimpleDlg(){}
bool isCanceld()const{return cancelld;} bool isCanceld()const{return cancelld;}

@ -199,14 +199,14 @@ public:
#define EMIT_REFRESH emit sigRefreshAll() #define EMIT_REFRESH emit sigRefreshAll()
#define DIALOGS_SIZES "display_dialogs_sizes" #define DIALOGS_SIZES "display_dialogs_sizes"
SvnActions::SvnActions(ItemDisplay *tqparent, const char *name,bool processes_blocked) SvnActions::SvnActions(ItemDisplay *parent, const char *name,bool processes_blocked)
: TQObject(tqparent?tqparent->realWidget():0, name),SimpleLogCb() : TQObject(parent?parent->realWidget():0, name),SimpleLogCb()
{ {
m_CThread = 0; m_CThread = 0;
m_UThread = 0; m_UThread = 0;
m_FCThread = 0; m_FCThread = 0;
m_Data = new SvnActionsData(); m_Data = new SvnActionsData();
m_Data->m_ParentList = tqparent; m_Data->m_ParentList = parent;
m_Data->m_SvnContextListener = new CContextListener(this); m_Data->m_SvnContextListener = new CContextListener(this);
m_Data->runblocked = processes_blocked; m_Data->runblocked = processes_blocked;
connect(m_Data->m_SvnContextListener,TQT_SIGNAL(sendNotify(const TQString&)),this,TQT_SLOT(slotNotifyMessage(const TQString&))); connect(m_Data->m_SvnContextListener,TQT_SIGNAL(sendNotify(const TQString&)),this,TQT_SLOT(slotNotifyMessage(const TQString&)));
@ -252,11 +252,11 @@ template<class T> KDialogBase* SvnActions::createDialog(T**ptr,const TQString&_h
buttons = buttons|KDialogBase::User1; buttons = buttons|KDialogBase::User1;
} }
KDialogBase * dlg = new KDialogBase( KDialogBase * dlg = new KDialogBase(
modal?TQT_TQWIDGET(TQT_TQWIDGET(KApplication::activeModalWidget())):0, // tqparent modal?TQT_TQWIDGET(TQT_TQWIDGET(KApplication::activeModalWidget())):0, // parent
name, // name name, // name
modal, // modal modal, // modal
_head, // caption _head, // caption
buttons, // buttontqmask buttons, // buttonmask
KDialogBase::Ok, // defaultButton KDialogBase::Ok, // defaultButton
false , // separator false , // separator
(u1.text().isEmpty()?KGuiItem():u1) //user1 (u1.text().isEmpty()?KGuiItem():u1) //user1
@ -280,7 +280,7 @@ void SvnActions::makeLog(const svn::Revision&start,const svn::Revision&end,const
} }
svn::SharedPointer<svn::LogEntriesMap> SvnActions::getLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const TQString&which,bool list_files, svn::SharedPointer<svn::LogEntriesMap> SvnActions::getLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const TQString&which,bool list_files,
int limit,TQWidget*tqparent) int limit,TQWidget*parent)
{ {
svn::SharedPointer<svn::LogEntriesMap> logs = new svn::LogEntriesMap; svn::SharedPointer<svn::LogEntriesMap> logs = new svn::LogEntriesMap;
if (!m_Data->m_CurrentContext) return 0; if (!m_Data->m_CurrentContext) return 0;
@ -289,7 +289,7 @@ svn::SharedPointer<svn::LogEntriesMap> SvnActions::getLog(const svn::Revision&st
kdDebug()<<"Get logs for "<< which<<endl; kdDebug()<<"Get logs for "<< which<<endl;
try { try {
StopDlg sdlg(m_Data->m_SvnContextListener,(tqparent?tqparent:m_Data->m_ParentList->realWidget()),0,"Logs", StopDlg sdlg(m_Data->m_SvnContextListener,(parent?parent:m_Data->m_ParentList->realWidget()),0,"Logs",
i18n("Getting logs - hit cancel for abort")); i18n("Getting logs - hit cancel for abort"));
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&))); connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
if (doNetworking()) { if (doNetworking()) {
@ -522,12 +522,12 @@ void SvnActions::makeBlame(const svn::Revision&start, const svn::Revision&end,co
svn::AnnotatedFile blame; svn::AnnotatedFile blame;
TQString ex; TQString ex;
svn::Path p(k); svn::Path p(k);
TQWidget*_tqparent = _p?_p:m_Data->m_ParentList->realWidget(); TQWidget*_parent = _p?_p:m_Data->m_ParentList->realWidget();
svn::Revision peg = _peg==svn::Revision::UNDEFINED?end:_peg; svn::Revision peg = _peg==svn::Revision::UNDEFINED?end:_peg;
try { try {
CursorStack a(TQt::BusyCursor); CursorStack a(TQt::BusyCursor);
StopDlg sdlg(m_Data->m_SvnContextListener,_tqparent,0,"Annotate",i18n("Annotate lines - hit cancel for abort")); StopDlg sdlg(m_Data->m_SvnContextListener,_parent,0,"Annotate",i18n("Annotate lines - hit cancel for abort"));
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&))); connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
m_Data->m_Svnclient->annotate(blame,p,start,end,peg); m_Data->m_Svnclient->annotate(blame,p,start,end,peg);
} catch (const svn::Exception&e) { } catch (const svn::Exception&e) {
@ -544,11 +544,11 @@ void SvnActions::makeBlame(const svn::Revision&start, const svn::Revision&end,co
} }
bool SvnActions::makeGet(const svn::Revision&start, const TQString&what, const TQString&target, bool SvnActions::makeGet(const svn::Revision&start, const TQString&what, const TQString&target,
const svn::Revision&peg,TQWidget*_dlgtqparent) const svn::Revision&peg,TQWidget*_dlgparent)
{ {
if (!m_Data->m_CurrentContext) return false; if (!m_Data->m_CurrentContext) return false;
CursorStack a(TQt::BusyCursor); CursorStack a(TQt::BusyCursor);
TQWidget*dlgp=_dlgtqparent?_dlgtqparent:m_Data->m_ParentList->realWidget(); TQWidget*dlgp=_dlgparent?_dlgparent:m_Data->m_ParentList->realWidget();
TQString ex; TQString ex;
svn::Path p(what); svn::Path p(what);
try { try {
@ -567,11 +567,11 @@ bool SvnActions::makeGet(const svn::Revision&start, const TQString&what, const T
return true; return true;
} }
void SvnActions::slotMakeCat(const svn::Revision&start, const TQString&what, const TQString&disp,const svn::Revision&peg,TQWidget*_dlgtqparent) void SvnActions::slotMakeCat(const svn::Revision&start, const TQString&what, const TQString&disp,const svn::Revision&peg,TQWidget*_dlgparent)
{ {
KTempFile content; KTempFile content;
content.setAutoDelete(true); content.setAutoDelete(true);
if (!makeGet(start,what,content.name(),peg,_dlgtqparent)) { if (!makeGet(start,what,content.name(),peg,_dlgparent)) {
return; return;
} }
EMIT_FINISHED; EMIT_FINISHED;
@ -609,7 +609,7 @@ void SvnActions::slotMakeCat(const svn::Revision&start, const TQString&what, con
delete dlg; delete dlg;
} }
} else { } else {
KMessageBox::information(_dlgtqparent?_dlgtqparent:m_Data->m_ParentList->realWidget(), KMessageBox::information(_dlgparent?_dlgparent:m_Data->m_ParentList->realWidget(),
i18n("Got no content.")); i18n("Got no content."));
} }
} }
@ -1234,7 +1234,7 @@ void SvnActions::makeDiffinternal(const TQString&p1,const svn::Revision&r1,const
tdir.setAutoDelete(true); tdir.setAutoDelete(true);
TQString tn = TQString("%1/%2").tqarg(tdir.name()).tqarg("/svndiff"); TQString tn = TQString("%1/%2").tqarg(tdir.name()).tqarg("/svndiff");
bool ignore_content = Kdesvnsettings::diff_ignore_content(); bool ignore_content = Kdesvnsettings::diff_ignore_content();
TQWidget*tqparent = p?p:m_Data->m_ParentList->realWidget(); TQWidget*parent = p?p:m_Data->m_ParentList->realWidget();
TQStringList extraOptions; TQStringList extraOptions;
if (Kdesvnsettings::diff_ignore_spaces()) if (Kdesvnsettings::diff_ignore_spaces())
{ {
@ -1247,7 +1247,7 @@ void SvnActions::makeDiffinternal(const TQString&p1,const svn::Revision&r1,const
svn::Revision peg = _peg==svn::Revision::UNDEFINED?r2:_peg; svn::Revision peg = _peg==svn::Revision::UNDEFINED?r2:_peg;
try { try {
StopDlg sdlg(m_Data->m_SvnContextListener,tqparent,0,"Diffing", StopDlg sdlg(m_Data->m_SvnContextListener,parent,0,"Diffing",
i18n("Diffing - hit cancel for abort")); i18n("Diffing - hit cancel for abort"));
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&))); connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
if (p1==p2 && (r1.isRemote()||r2.isRemote())) { if (p1==p2 && (r1.isRemote()||r2.isRemote())) {
@ -1523,7 +1523,7 @@ void SvnActions::makeAdd(bool rec)
++liter; ++liter;
//cur->refreshtqStatus(); //cur->refreshtqStatus();
//emit sigRefreshCurrent(static_cast<FileListViewItem*>(cur->tqparent())); //emit sigRefreshCurrent(static_cast<FileListViewItem*>(cur->parent()));
} }
#else #else
emit sigRefreshCurrent(0); emit sigRefreshCurrent(0);

@ -71,7 +71,7 @@ public:
checkmodifiedthread checkmodifiedthread
}; };
SvnActions(ItemDisplay *tqparent, const char *name = 0,bool processes_blocked=false); SvnActions(ItemDisplay *parent, const char *name = 0,bool processes_blocked=false);
~SvnActions(); ~SvnActions();
void reInitClient(); void reInitClient();
//svn::Client&svnClient(){return m_Svnclient;} //svn::Client&svnClient(){return m_Svnclient;}
@ -83,7 +83,7 @@ public:
const KGuiItem&u1 = KGuiItem()); const KGuiItem&u1 = KGuiItem());
bool makeGet(const svn::Revision&start, const TQString&what,const TQString&target, bool makeGet(const svn::Revision&start, const TQString&what,const TQString&target,
const svn::Revision&peg=svn::Revision::UNDEFINED,TQWidget*dlgtqparent=0); const svn::Revision&peg=svn::Revision::UNDEFINED,TQWidget*dlgparent=0);
bool addItems(const TQValueList<svn::Path> &items,svn::Depth depth=svn::DepthEmpty); bool addItems(const TQValueList<svn::Path> &items,svn::Depth depth=svn::DepthEmpty);
@ -128,11 +128,11 @@ public:
const svn::Revision&endr=svn::Revision::HEAD); const svn::Revision&endr=svn::Revision::HEAD);
void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,SvnItem*k,bool list_files=false,int limit = 0); void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,SvnItem*k,bool list_files=false,int limit = 0);
void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const TQString&,bool list_files=false, int limit=0); void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const TQString&,bool list_files=false, int limit=0);
svn::SharedPointer<svn::LogEntriesMap> getLog(const svn::Revision&start,const svn::Revision& end,const svn::Revision&peg,const TQString&,bool list_files, int limit,TQWidget*tqparent=0); svn::SharedPointer<svn::LogEntriesMap> getLog(const svn::Revision&start,const svn::Revision& end,const svn::Revision&peg,const TQString&,bool list_files, int limit,TQWidget*parent=0);
virtual bool getSingleLog(svn::LogEntry&,const svn::Revision&,const TQString&,const svn::Revision&,TQString&root); virtual bool getSingleLog(svn::LogEntry&,const svn::Revision&,const TQString&,const svn::Revision&,TQString&root);
void makeBlame(const svn::Revision&start, const svn::Revision&end, SvnItem*k); void makeBlame(const svn::Revision&start, const svn::Revision&end, SvnItem*k);
void makeBlame(const svn::Revision&start, const svn::Revision&end, const TQString&,TQWidget*tqparent=0,const svn::Revision&peg=svn::Revision::UNDEFINED,SimpleLogCb*_acb=0); void makeBlame(const svn::Revision&start, const svn::Revision&end, const TQString&,TQWidget*parent=0,const svn::Revision&peg=svn::Revision::UNDEFINED,SimpleLogCb*_acb=0);
void makeUpdate(const TQStringList&what,const svn::Revision&rev,bool recurse); void makeUpdate(const TQStringList&what,const svn::Revision&rev,bool recurse);
bool makeSwitch(const TQString&rUrl,const TQString&tPath,const svn::Revision&r,svn::Depth depth,const svn::Revision&peg,bool stickydepth,bool ignore_externals,bool allow_unversioned); bool makeSwitch(const TQString&rUrl,const TQString&tPath,const svn::Revision&r,svn::Depth depth,const svn::Revision&peg,bool stickydepth,bool ignore_externals,bool allow_unversioned);
bool makeSwitch(const TQString&path,const TQString&what); bool makeSwitch(const TQString&path,const TQString&what);
@ -228,7 +228,7 @@ public slots:
virtual void slotMergeExternal(const TQString&src1,const TQString&src2, const TQString&target, virtual void slotMergeExternal(const TQString&src1,const TQString&src2, const TQString&target,
const svn::Revision&rev1,const svn::Revision&rev2,const svn::Revision&_peg,bool); const svn::Revision&rev1,const svn::Revision&rev2,const svn::Revision&_peg,bool);
virtual void slotExtraLogMsg(const TQString&); virtual void slotExtraLogMsg(const TQString&);
virtual void slotMakeCat(const svn::Revision&start, const TQString&what,const TQString&disp,const svn::Revision&peg,TQWidget*dlgtqparent); virtual void slotMakeCat(const svn::Revision&start, const TQString&what,const TQString&disp,const svn::Revision&peg,TQWidget*dlgparent);
virtual void slotCancel(bool); virtual void slotCancel(bool);

@ -33,14 +33,14 @@
#include <tqscrollview.h> #include <tqscrollview.h>
#include <tqtimer.h> #include <tqtimer.h>
SvnFileTip::SvnFileTip(TQScrollView*tqparent) SvnFileTip::SvnFileTip(TQScrollView*parent)
: TQFrame( 0, 0, WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WStyle_StaysOnTop | WX11BypassWM ), : TQFrame( 0, 0, WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WStyle_StaysOnTop | WX11BypassWM ),
m_on( false ), m_on( false ),
m_preview( false ), m_preview( false ),
m_filter( false ), m_filter( false ),
m_corner( 0 ), m_corner( 0 ),
m_num( 0 ), m_num( 0 ),
m_view( tqparent ), m_view( parent ),
m_svnitem( 0 ), m_svnitem( 0 ),
m_previewJob( 0 ) m_previewJob( 0 )
{ {

@ -42,7 +42,7 @@ class SvnFileTip : public TQFrame
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SvnFileTip(TQScrollView*tqparent); SvnFileTip(TQScrollView*parent);
virtual ~SvnFileTip(); virtual ~SvnFileTip();
void setPreview(bool on); void setPreview(bool on);

@ -212,7 +212,7 @@ TQPixmap SvnItem::internalTransform(const TQPixmap&first,int size)
if (result.isNull()) { if (result.isNull()) {
return result; return result;
} }
const TQBitmap * b = first.tqmask(); const TQBitmap * b = first.mask();
result.fill(TQt::white); result.fill(TQt::white);
if (b) { if (b) {
result.setMask(*b); result.setMask(*b);

@ -49,7 +49,7 @@ const char* SvnLogDlgImp::groupName = "log_dialog_size";
class LogListViewItem:public KListViewItem class LogListViewItem:public KListViewItem
{ {
public: public:
LogListViewItem (KListView *tqparent,const svn::LogEntry&); LogListViewItem (KListView *parent,const svn::LogEntry&);
virtual int compare( TQListViewItem* i, int col, bool ascending ) const; virtual int compare( TQListViewItem* i, int col, bool ascending ) const;
static const int COL_MARKER,COL_REV,COL_AUTHOR,COL_DATE,COL_MSG; static const int COL_MARKER,COL_REV,COL_AUTHOR,COL_DATE,COL_MSG;
@ -80,7 +80,7 @@ const int LogListViewItem::COL_MSG = 4;
class LogChangePathItem:public KListViewItem class LogChangePathItem:public KListViewItem
{ {
public: public:
LogChangePathItem(KListView*tqparent,const svn::LogChangePathEntry&); LogChangePathItem(KListView*parent,const svn::LogChangePathEntry&);
virtual ~LogChangePathItem(){} virtual ~LogChangePathItem(){}
TQChar action() const{return _action;} TQChar action() const{return _action;}
@ -94,8 +94,8 @@ protected:
svn_revnum_t _revision; svn_revnum_t _revision;
}; };
LogListViewItem::LogListViewItem(KListView*_tqparent,const svn::LogEntry&_entry) LogListViewItem::LogListViewItem(KListView*_parent,const svn::LogEntry&_entry)
: KListViewItem(_tqparent),_realName(TQString()) : KListViewItem(_parent),_realName(TQString())
{ {
setMultiLinesEnabled(false); setMultiLinesEnabled(false);
_revision=_entry.revision; _revision=_entry.revision;
@ -143,8 +143,8 @@ void LogListViewItem::showChangedEntries(KListView*where)
} }
} }
LogChangePathItem::LogChangePathItem(KListView*tqparent,const svn::LogChangePathEntry&e) LogChangePathItem::LogChangePathItem(KListView*parent,const svn::LogChangePathEntry&e)
:KListViewItem(tqparent) :KListViewItem(parent)
{ {
_action = TQChar(e.action); _action = TQChar(e.action);
setText(0,_action); setText(0,_action);
@ -190,8 +190,8 @@ bool LogListViewItem::isParent(const TQString&_par,const TQString&tar)
return tar.startsWith(par); return tar.startsWith(par);
} }
SvnLogDlgImp::SvnLogDlgImp(SvnActions*ac,TQWidget *tqparent, const char *name,bool modal) SvnLogDlgImp::SvnLogDlgImp(SvnActions*ac,TQWidget *parent, const char *name,bool modal)
:SvnLogDialogData(tqparent, name,modal),_name("") :SvnLogDialogData(parent, name,modal),_name("")
{ {
m_LogView->setSorting(LogListViewItem::COL_REV); m_LogView->setSorting(LogListViewItem::COL_REV);
m_LogView->setSortOrder(TQt::Descending); m_LogView->setSortOrder(TQt::Descending);

@ -37,7 +37,7 @@ class SvnLogDlgImp: public SvnLogDialogData,public SimpleLogCb
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SvnLogDlgImp(SvnActions*,TQWidget *tqparent = 0, const char *name = 0,bool modal=true); SvnLogDlgImp(SvnActions*,TQWidget *parent = 0, const char *name = 0,bool modal=true);
virtual ~SvnLogDlgImp(); virtual ~SvnLogDlgImp();
void dispLog(const svn::SharedPointer<svn::LogEntriesMap>&,const TQString&,const TQString&,const svn::Revision&peg,const TQString&pegUrl); void dispLog(const svn::SharedPointer<svn::LogEntriesMap>&,const TQString&,const TQString&,const svn::Revision&peg,const TQString&pegUrl);
void saveSize(); void saveSize();

@ -30,8 +30,8 @@
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
ThreadContextListener::ThreadContextListener(TQObject* tqparent, const char* name) ThreadContextListener::ThreadContextListener(TQObject* parent, const char* name)
: CContextListener(tqparent, name) : CContextListener(parent, name)
{ {
m_Data = new ThreadContextListenerData; m_Data = new ThreadContextListenerData;
} }

@ -38,7 +38,7 @@ class ThreadContextListener : public CContextListener
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ThreadContextListener(TQObject* tqparent, const char* name=0); ThreadContextListener(TQObject* parent, const char* name=0);
virtual ~ThreadContextListener(); virtual ~ThreadContextListener();

@ -410,7 +410,7 @@ bool svn::cache::ReposLog::log(const svn::Path&what,const svn::Revision&_start,
*/ */
bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&path) bool svn::cache::ReposLog::itemExists(const svn::Revision&peg,const svn::Path&path)
{ {
/// @todo this moment I have no idea how to check real with all moves and deletes of tqparent folders without a hell of sql statements so we make it quite simple: it exists if we found it. /// @todo this moment I have no idea how to check real with all moves and deletes of parent folders without a hell of sql statements so we make it quite simple: it exists if we found it.
#if 0 #if 0

@ -250,14 +250,14 @@ int TQSQLite3Result::numRowsAffected()
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
TQSQLite3Driver::TQSQLite3Driver(TQObject * tqparent, const char *name) TQSQLite3Driver::TQSQLite3Driver(TQObject * parent, const char *name)
: TQSqlDriver(tqparent, name) : TQSqlDriver(parent, name)
{ {
d = new TQSQLite3DriverPrivate(); d = new TQSQLite3DriverPrivate();
} }
TQSQLite3Driver::TQSQLite3Driver(sqlite3 *connection, TQObject *tqparent, const char *name) TQSQLite3Driver::TQSQLite3Driver(sqlite3 *connection, TQObject *parent, const char *name)
: TQSqlDriver(tqparent, name) : TQSqlDriver(parent, name)
{ {
d = new TQSQLite3DriverPrivate(); d = new TQSQLite3DriverPrivate();
d->access = connection; d->access = connection;

@ -54,8 +54,8 @@ class TQSQLite3Driver : public TQSqlDriver
{ {
friend class TQSQLite3Result; friend class TQSQLite3Result;
public: public:
TQSQLite3Driver(TQObject *tqparent = 0, const char *name = 0); TQSQLite3Driver(TQObject *parent = 0, const char *name = 0);
TQSQLite3Driver(sqlite3 *connection, TQObject *tqparent = 0, const char *name = 0); TQSQLite3Driver(sqlite3 *connection, TQObject *parent = 0, const char *name = 0);
~TQSQLite3Driver(); ~TQSQLite3Driver();
bool hasFeature(DriverFeature f) const; bool hasFeature(DriverFeature f) const;
bool open(const TQString & db, bool open(const TQString & db,

@ -373,7 +373,7 @@ namespace svn
* *
* @param path * @param path
* @param message log message. if it is TQString() asks when working on repository * @param message log message. if it is TQString() asks when working on repository
* @param makeParent create tqparent folders if not existant (only when build with svn 1.5 or above) * @param makeParent create parent folders if not existant (only when build with svn 1.5 or above)
* @exception ClientException * @exception ClientException
*/ */
virtual svn::Revision virtual svn::Revision
@ -390,7 +390,7 @@ namespace svn
* *
* @param targets encoded pathes to create * @param targets encoded pathes to create
* @param message log message. if it is TQString() asks when working on repository * @param message log message. if it is TQString() asks when working on repository
* @param makeParent create tqparent folders if not existant (only when build with svn 1.5 or above) * @param makeParent create parent folders if not existant (only when build with svn 1.5 or above)
* @exception ClientException * @exception ClientException
*/ */
virtual svn::Revision virtual svn::Revision

@ -131,7 +131,7 @@ namespace svn
void void
addComponent (const TQString & component); addComponent (const TQString & component);
/** Reduce path to its tqparent folder. /** Reduce path to its parent folder.
* If the path length is 1 (eg., only "/") it will cleared so * If the path length is 1 (eg., only "/") it will cleared so
* path length will get zero. * path length will get zero.
* @sa svn_path_remove_component * @sa svn_path_remove_component

@ -37,17 +37,17 @@ namespace svn
bool Pool::s_initialized = false; bool Pool::s_initialized = false;
apr_pool_t * apr_pool_t *
Pool::pool_create (apr_pool_t * tqparent) Pool::pool_create (apr_pool_t * parent)
{ {
if (!s_initialized) { if (!s_initialized) {
apr_pool_initialize(); apr_pool_initialize();
s_initialized=true; s_initialized=true;
} }
return svn_pool_create (tqparent); return svn_pool_create (parent);
} }
Pool::Pool (apr_pool_t * tqparent) Pool::Pool (apr_pool_t * parent)
: m_tqparent (tqparent), m_pool (pool_create (tqparent)) : m_parent (parent), m_pool (pool_create (parent))
{ {
} }
@ -72,7 +72,7 @@ namespace svn
{ {
svn_pool_destroy (m_pool); svn_pool_destroy (m_pool);
} }
m_pool = pool_create (m_tqparent); m_pool = pool_create (m_parent);
} }
//TODO //TODO

@ -46,9 +46,9 @@ namespace svn
/** /**
* creates a subpool new pool to an existing pool * creates a subpool new pool to an existing pool
* *
* @param tqparent NULL -> global pool * @param parent NULL -> global pool
*/ */
Pool (apr_pool_t * tqparent = (apr_pool_t *)0); Pool (apr_pool_t * parent = (apr_pool_t *)0);
virtual ~ Pool (); virtual ~ Pool ();
@ -71,7 +71,7 @@ namespace svn
*/ */
void renew (); void renew ();
private: private:
apr_pool_t * m_tqparent; apr_pool_t * m_parent;
apr_pool_t * m_pool; apr_pool_t * m_pool;
Pool& operator=(const Pool&); Pool& operator=(const Pool&);
@ -79,7 +79,7 @@ namespace svn
Pool (const Pool &); Pool (const Pool &);
static bool s_initialized; static bool s_initialized;
static apr_pool_t * pool_create (apr_pool_t * tqparent); static apr_pool_t * pool_create (apr_pool_t * parent);
}; };
} }

@ -30,8 +30,8 @@
#include <tqlabel.h> #include <tqlabel.h>
UrlDlg::UrlDlg(TQWidget *tqparent, const char *name) UrlDlg::UrlDlg(TQWidget *parent, const char *name)
: KDialogBase(Plain, TQString(), Ok|Cancel|User1, Ok, tqparent, name, : KDialogBase(Plain, TQString(), Ok|Cancel|User1, Ok, parent, name,
true,true, KStdGuiItem::clear()) true,true, KStdGuiItem::clear())
{ {
init_dlg(); init_dlg();
@ -132,11 +132,11 @@ KURL UrlDlg::selectedURL()
/*! /*!
\fn UrlDlg::getURL(TQWidget*tqparent) \fn UrlDlg::getURL(TQWidget*parent)
*/ */
KURL UrlDlg::getURL(TQWidget*tqparent) KURL UrlDlg::getURL(TQWidget*parent)
{ {
UrlDlg dlg(tqparent); UrlDlg dlg(parent);
dlg.setCaption(i18n("Open")); dlg.setCaption(i18n("Open"));
dlg.exec(); dlg.exec();
const KURL& url = dlg.selectedURL(); const KURL& url = dlg.selectedURL();

@ -33,10 +33,10 @@ class UrlDlg : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UrlDlg(TQWidget *tqparent = 0, const char *name = 0); UrlDlg(TQWidget *parent = 0, const char *name = 0);
~UrlDlg(); ~UrlDlg();
KURL selectedURL(); KURL selectedURL();
static KURL getURL(TQWidget*tqparent=0); static KURL getURL(TQWidget*parent=0);
protected: protected:
virtual void init_dlg(); virtual void init_dlg();
KURLRequester*urlRequester_; KURLRequester*urlRequester_;

Loading…
Cancel
Save