rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 539a35866f
commit 9abdf0551e

@ -43,15 +43,15 @@
* as well as its child radio buttons. There are two different constructors
* for them.
* Each controller has three child radio buttons, and if any of them is
* activated (stateChange), it sets the text of its tqparent (which is the
* activated (stateChange), it sets the text of its parent (which is the
* controller, which is an instance of ResolutionCheckListItem, too).
**/
class ResolutionCheckListItem : TQCheckListItem {
public:
ResolutionCheckListItem(ResolutionItem*it, ResolutionTable*tb,
TQListView*tqparent);
TQListView*parent);
ResolutionCheckListItem(TQString header, TQString text,
ResolutionCheckListItem*tqparent);
ResolutionCheckListItem*parent);
~ResolutionCheckListItem() {};
virtual void stateChange(bool newstate);
virtual void setValue(TQString text);
@ -73,8 +73,8 @@ protected:
ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
ResolutionTable*tb, TQListView*tqparent) :
TQCheckListItem(tqparent, TQString(), TQCheckListItem::Controller),
ResolutionTable*tb, TQListView*parent) :
TQCheckListItem(parent, TQString(), TQCheckListItem::Controller),
fResItem(it),
isController(true),
fCaption(it?(it->fName):(TQString())),
@ -119,8 +119,8 @@ ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
}
ResolutionCheckListItem::ResolutionCheckListItem(TQString text, TQString header,
ResolutionCheckListItem*tqparent) :
TQCheckListItem(tqparent, TQString(), TQCheckListItem::RadioButton),
ResolutionCheckListItem*parent) :
TQCheckListItem(parent, TQString(), TQCheckListItem::RadioButton),
fResItem(0L),
isController(false),
fCaption(header),
@ -133,7 +133,7 @@ void ResolutionCheckListItem::stateChange(bool newstate)
{
if (newstate && !isController)
{
ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(tqparent());
ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(parent());
{
par->setValue(fText);
}
@ -171,9 +171,9 @@ void ResolutionCheckListItem::updateText()
*
*****************************************************************/
ResolutionDlg::ResolutionDlg( TQWidget* tqparent, KPilotLink*fH,
ResolutionDlg::ResolutionDlg( TQWidget* parent, KPilotLink*fH,
const TQString &caption, const TQString &helpText, ResolutionTable*tab) :
KDialogBase( tqparent, "ResolutionDlg", false, caption, Apply|Cancel, Apply),
KDialogBase( parent, "ResolutionDlg", false, caption, Apply|Cancel, Apply),
tickleTimer(0L),
fHandle(fH),
fTable(tab)

@ -43,7 +43,7 @@ class ResolutionDlg : public KDialogBase
TQ_OBJECT
public:
ResolutionDlg( TQWidget* tqparent=0,
ResolutionDlg( TQWidget* parent=0,
KPilotLink*fH=0L,
const TQString &caption=TQString(),
const TQString &helpText=TQString(),

@ -145,7 +145,7 @@ int docRegExpBookmark::findMatches(TQString doctext, bmkList &fBookmarks)
*********************************************************************/
DOCConverter::DOCConverter(TQObject *tqparent, const char *name):TQObject(tqparent,name) {
DOCConverter::DOCConverter(TQObject *parent, const char *name):TQObject(parent,name) {
FUNCTIONSETUP;
docdb=0L;
eSortBookmarks=eSortNone;

@ -122,7 +122,7 @@ public:
} eSortBookmarks;
public:
DOCConverter(TQObject *tqparent=0L, const char *name=0L);
DOCConverter(TQObject *parent=0L, const char *name=0L);
virtual ~ DOCConverter();
TQString readText();

@ -39,8 +39,8 @@
#include <tqscrollview.h>
ResolutionDialog::ResolutionDialog( TQWidget* tqparent, const TQString& caption, syncInfoList*sinfo, KPilotLink*lnk )
: KDialogBase( tqparent, "resolutionDialog", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), tickleTimer(0L), fHandle(lnk) {
ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, syncInfoList*sinfo, KPilotLink*lnk )
: KDialogBase( parent, "resolutionDialog", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), tickleTimer(0L), fHandle(lnk) {
FUNCTIONSETUP;
syncInfo=sinfo;
hasConflicts=false;

@ -57,7 +57,7 @@ class ResolutionDialog : public KDialogBase
TQ_OBJECT
public:
ResolutionDialog( TQWidget* tqparent=0, const TQString& caption=i18n("Resolution Dialog"), syncInfoList*sinfo=0L, KPilotLink*lnk=0L);
ResolutionDialog( TQWidget* parent=0, const TQString& caption=i18n("Resolution Dialog"), syncInfoList*sinfo=0L, KPilotLink*lnk=0L);
~ResolutionDialog();
bool hasConflicts;

@ -94,7 +94,7 @@ DOCConduitFactory::~DOCConduitFactory()
}
else
{
WARNINGKPILOT << "Couldn't cast tqparent to widget." << endl;
WARNINGKPILOT << "Couldn't cast parent to widget." << endl;
return 0L;
}
}
@ -107,7 +107,7 @@ DOCConduitFactory::~DOCConduitFactory()
}
else
{
WARNINGKPILOT << "Couldn't cast tqparent to KPilotLink" <<endl;
WARNINGKPILOT << "Couldn't cast parent to KPilotLink" <<endl;
return 0L;
}
}

@ -55,7 +55,7 @@ public:
protected:
virtual TQObject * createObject(TQObject * tqparent = 0,
virtual TQObject * createObject(TQObject * parent = 0,
const char *name = 0,
const char *classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList & args = TQStringList());

@ -54,8 +54,8 @@
#include "kpalmdocSettings.h"
ConverterDlg::ConverterDlg( TQWidget *tqparent, const TQString& caption)
: KDialogBase( tqparent, "converterdialog", false, caption, KDialogBase::Close|KDialogBase::Help|KDialogBase::User1,
ConverterDlg::ConverterDlg( TQWidget *parent, const TQString& caption)
: KDialogBase( parent, "converterdialog", false, caption, KDialogBase::Close|KDialogBase::Help|KDialogBase::User1,
KDialogBase::Close, true, i18n("&About"))
{
TQWidget *page = makeHBoxMainWidget();

@ -38,7 +38,7 @@ class ConverterDlg : public KDialogBase
TQ_OBJECT
public:
ConverterDlg( TQWidget *tqparent=0, const TQString& caption=0);
ConverterDlg( TQWidget *parent=0, const TQString& caption=0);
~ConverterDlg();
protected slots:

@ -123,7 +123,7 @@ KNotesConduitFactory::~KNotesConduitFactory()
else
{
WARNINGKPILOT
<< "Couldn't cast tqparent to KPilotDeviceLink"
<< "Couldn't cast parent to KPilotDeviceLink"
<< endl;
return 0L;
}

@ -51,7 +51,7 @@ public:
// break its value. We store group and entry keys in here.
protected:
virtual TQObject* createObject( TQObject* tqparent = 0,
virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );

@ -36,7 +36,7 @@ class KNotesWidget;
class KNotesConfigBase : public ConduitConfigBase
{
public:
KNotesConfigBase(TQWidget *tqparent, const char *name);
KNotesConfigBase(TQWidget *parent, const char *name);
virtual void commit();
virtual void load();

@ -115,7 +115,7 @@ MALConduitFactory::~MALConduitFactory()
else
{
WARNINGKPILOT
<< "Couldn't cast tqparent to widget."
<< "Couldn't cast parent to widget."
<< endl;
return 0L;
}
@ -132,7 +132,7 @@ MALConduitFactory::~MALConduitFactory()
else
{
WARNINGKPILOT
<< "Couldn't cast tqparent to KPilotLink"
<< "Couldn't cast parent to KPilotLink"
<< endl;
return 0L;
}

@ -49,7 +49,7 @@ public:
static KAboutData *about() { return fAbout; } ;
protected:
virtual TQObject* createObject( TQObject* tqparent = 0,
virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );

@ -46,7 +46,7 @@
class MemofileConduitConfig : public ConduitConfigBase
{
public:
MemofileConduitConfig(TQWidget *tqparent=0L, const char *n=0L);
MemofileConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit();
virtual void load();
protected:

@ -115,8 +115,8 @@ bool NotepadConduit::event(TQEvent *e)
// NotepadActionThread
//-----------------------------------------------------------------------------
NotepadActionThread::NotepadActionThread(TQObject *tqparent, KPilotLink *link) :
fParent(tqparent), fLink(link), notSaved(0), saved(0)
NotepadActionThread::NotepadActionThread(TQObject *parent, KPilotLink *link) :
fParent(parent), fLink(link), notSaved(0), saved(0)
{
FUNCTIONSETUP;
}

@ -62,7 +62,7 @@ private:
class NotepadActionThread : public TQThread
{
public:
NotepadActionThread(TQObject *tqparent, KPilotLink *link);
NotepadActionThread(TQObject *parent, KPilotLink *link);
virtual void run();
int getFailed() { return notSaved; }

@ -47,7 +47,7 @@
class NotepadConduitConfig : public ConduitConfigBase
{
public:
NotepadConduitConfig(TQWidget *tqparent=0L, const char *n=0L);
NotepadConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit();
virtual void load();
static ConduitConfigBase *create(TQWidget *p, const char *n)

@ -47,7 +47,7 @@
class NullConduitConfig : public ConduitConfigBase
{
public:
NullConduitConfig(TQWidget *tqparent=0L, const char *n=0L);
NullConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit();
virtual void load();
protected:

@ -48,7 +48,7 @@
class ConduitConfig : public ConduitConfigBase
{
public:
ConduitConfig(TQWidget *tqparent=0L, const char *n=0L);
ConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit();
virtual void load();
protected:

@ -36,7 +36,7 @@ class SysInfoWidget;
class SysInfoWidgetConfig : public ConduitConfigBase
{
public:
SysInfoWidgetConfig(TQWidget *tqparent, const char *);
SysInfoWidgetConfig(TQWidget *parent, const char *);
virtual void commit();
virtual void load();
virtual bool isModified() const;

@ -39,7 +39,7 @@ class TimeWidgetConfig : public ConduitConfigBase
Q_OBJECT
TQ_OBJECT
public:
TimeWidgetConfig(TQWidget *tqparent, const char *);
TimeWidgetConfig(TQWidget *parent, const char *);
virtual void commit();
virtual void load();
static ConduitConfigBase *create(TQWidget *,const char *);

@ -54,12 +54,12 @@
AddressEditor::AddressEditor(PilotAddress * p,
PilotAddressInfo *appInfo,
TQWidget * tqparent,
TQWidget * parent,
const char *name) :
KDialogBase(KDialogBase::Plain,
i18n("Address Editor"),
Ok | Cancel, Cancel,
tqparent, name, false /* non-modal */ ),
parent, name, false /* non-modal */ ),
fDeleteOnCancel(p == 0L),
fAddress(p),
fAppInfo(appInfo)
@ -69,7 +69,7 @@ AddressEditor::AddressEditor(PilotAddress * p,
initLayout();
fillFields();
connect(tqparent, TQT_SIGNAL(recordChanged(PilotAddress *)),
connect(parent, TQT_SIGNAL(recordChanged(PilotAddress *)),
this, TQT_SLOT(updateRecord(PilotAddress *)));
}

@ -45,7 +45,7 @@ class AddressEditor : public KDialogBase
public:
AddressEditor(PilotAddress *address,
PilotAddressInfo *appInfo,
TQWidget *tqparent, const char *name=0L);
TQWidget *parent, const char *name=0L);
~AddressEditor();

@ -65,9 +65,9 @@
#include "addressWidget.moc"
AddressWidget::AddressWidget(TQWidget * tqparent,
AddressWidget::AddressWidget(TQWidget * parent,
const TQString & path) :
PilotComponent(tqparent, "component_address", path),
PilotComponent(parent, "component_address", path),
fAddrInfo(0L),
fAddressAppInfo(0L),
fPendingAddresses(0)

@ -47,7 +47,7 @@ Q_OBJECT
TQ_OBJECT
public:
AddressWidget(TQWidget* tqparent,const TQString& dbpath);
AddressWidget(TQWidget* parent,const TQString& dbpath);
~AddressWidget();
// Pilot Component Methods:

@ -72,16 +72,16 @@
extern "C"
{
KDE_EXPORT KCModule *create_kpilotconfig( TQWidget *tqparent, const char * )
KDE_EXPORT KCModule *create_kpilotconfig( TQWidget *parent, const char * )
{
FUNCTIONSETUP;
return new ConduitConfigWidget( tqparent, "kcmkpilotconfig" );
return new ConduitConfigWidget( parent, "kcmkpilotconfig" );
}
KDE_EXPORT ConfigWizard *create_wizard(TQWidget *tqparent, int m)
KDE_EXPORT ConfigWizard *create_wizard(TQWidget *parent, int m)
{
FUNCTIONSETUP;
return new ConfigWizard(tqparent,"Wizard", m);
return new ConfigWizard(parent,"Wizard", m);
}
}
@ -89,7 +89,7 @@ extern "C"
class ConduitTip : public TQToolTip
{
public:
ConduitTip(TQListView *tqparent);
ConduitTip(TQListView *parent);
virtual ~ConduitTip();
protected:
@ -148,7 +148,7 @@ ConduitTip::~ConduitTip()
class KPilotCheckListItem : public TQCheckListItem
{
public:
KPilotCheckListItem ( TQListViewItem * tqparent, const TQString & text, Type tt = RadioButtonController ) : TQCheckListItem(tqparent, text, tt),mOriginalState(false) {}
KPilotCheckListItem ( TQListViewItem * parent, const TQString & text, Type tt = RadioButtonController ) : TQCheckListItem(parent, text, tt),mOriginalState(false) {}
~KPilotCheckListItem() {}
void setOriginalState(bool state) { mOriginalState=state; setOn(state);}
@ -171,20 +171,20 @@ protected:
/*
** Create a page in the widget stack @p tqparent on page @p pageno,
** Create a page in the widget stack @p parent on page @p pageno,
** bearing the given @p text. The remainder of the parameters are
** for esoteric things like:
** @p buttons set to non-null to include (and return) a TQHBox suitable
** for displaying a row of buttons in on the page.
** @p label set to non-null to return the TQLabel used to display @p text.
*/
static void addDescriptionPage(TQWidgetStack *tqparent,
static void addDescriptionPage(TQWidgetStack *parent,
int pageno,
const TQString &text,
TQHBox **buttons = 0L,
TQLabel **label = 0L)
{
TQVBox *v = new TQVBox(tqparent);
TQVBox *v = new TQVBox(parent);
TQLabel *l = 0L;
v->setFrameShape(TQLabel::NoFrame);
@ -202,12 +202,12 @@ static void addDescriptionPage(TQWidgetStack *tqparent,
l = new TQLabel(v);
}
tqparent->addWidget(v,pageno);
parent->addWidget(v,pageno);
}
ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *tqparent, const char *n) :
KCModule(tqparent, n),
ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *parent, const char *n) :
KCModule(parent, n),
fConduitList(0L),
fStack(0L),
fConfigureButton(0L),
@ -300,9 +300,9 @@ ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *tqparent, const char
fStack->addWidget(ConduitConfigBase::aboutPage(fStack,0L),GENERAL_ABOUT);
}
ConduitConfigWidget::ConduitConfigWidget(TQWidget *tqparent, const char *n,
ConduitConfigWidget::ConduitConfigWidget(TQWidget *parent, const char *n,
bool) :
ConduitConfigWidgetBase(tqparent,n),
ConduitConfigWidgetBase(parent,n),
fConfigure(0L),
fCurrentConduit(0L),
fGeneralPage(0L),
@ -716,7 +716,7 @@ void ConduitConfigWidget::selected(TQListViewItem *p)
#endif
// set the dialog title to the selected item
TQListViewItem *pParent = p->tqparent();
TQListViewItem *pParent = p->parent();
TQString title;
title = pParent ? pParent->text(CONDUIT_NAME) + CSL1(" - ") : TQString() ;
title += p ? p->text(CONDUIT_NAME) : i18n("KPilot Setup");

@ -41,8 +41,8 @@
#include "datebookWidget.moc"
DatebookWidget::DatebookWidget(TQWidget *tqparent, const TQString &dbpath) :
PilotComponent(tqparent,"component_generic",dbpath)
DatebookWidget::DatebookWidget(TQWidget *parent, const TQString &dbpath) :
PilotComponent(parent,"component_generic",dbpath)
{
FUNCTIONSETUP;

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT
public:
DatebookWidget(TQWidget* tqparent, const TQString& dbpath);
DatebookWidget(TQWidget* parent, const TQString& dbpath);
virtual ~DatebookWidget();
// Pilot component methods

@ -41,8 +41,8 @@ using namespace KHE;
/*************************************************
**************************************************/
DBAppInfoEditor::DBAppInfoEditor(char*appInfoData, int l, TQWidget *tqparent) :
KDialogBase(tqparent, "AppBlock Editor",false,
DBAppInfoEditor::DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent) :
KDialogBase(parent, "AppBlock Editor",false,
i18n("Edit AppInfo Block"),
Ok|Cancel),
appInfo(appInfoData),

@ -37,7 +37,7 @@ class DBAppInfoEditor : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
DBAppInfoEditor(char*appInfoData, int l, TQWidget *tqparent = 0);
DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent = 0);
~DBAppInfoEditor();
char*appInfo;
int len;

@ -40,8 +40,8 @@
#include "dbFlagsEditor_base.h"
DBFlagsEditor::DBFlagsEditor(DBInfo*dbinfo, TQWidget *tqparent) :
KDialogBase(tqparent, "FlagsEditor",false,
DBFlagsEditor::DBFlagsEditor(DBInfo*dbinfo, TQWidget *parent) :
KDialogBase(parent, "FlagsEditor",false,
i18n("Edit Database Flags"), Ok|Cancel),
dbi(dbinfo)
{

@ -40,7 +40,7 @@ class DBFlagsEditor : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *tqparent = 0);
DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *parent = 0);
~DBFlagsEditor();
protected:

@ -49,8 +49,8 @@ using namespace KHE;
DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, TQWidget *tqparent)
: KDialogBase(tqparent, "RecordEditor",false,i18n("Edit Record"),
DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, TQWidget *parent)
: KDialogBase(parent, "RecordEditor",false,i18n("Edit Record"),
Ok|Cancel), rec(r), nr(n)
{
// fWidget=new DBRecordEditorBase(this);

@ -56,7 +56,7 @@ class DBRecordEditor : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *tqparent = 0);
DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *parent = 0);
~DBRecordEditor();
protected:

@ -64,8 +64,8 @@
#include "dbviewerWidget.moc"
GenericDBWidget::GenericDBWidget(TQWidget *tqparent, const TQString &dbpath) :
PilotComponent(tqparent,"component_generic",dbpath), fDB(0L)
GenericDBWidget::GenericDBWidget(TQWidget *parent, const TQString &dbpath) :
PilotComponent(parent,"component_generic",dbpath), fDB(0L)
{
FUNCTIONSETUP;
setupWidget();

@ -46,7 +46,7 @@ Q_OBJECT
TQ_OBJECT
public:
GenericDBWidget(TQWidget* tqparent, const TQString& dbpath);
GenericDBWidget(TQWidget* parent, const TQString& dbpath);
virtual ~GenericDBWidget();
// Pilot component methods

@ -58,9 +58,9 @@
#include "fileInstallWidget.moc"
FileInstallWidget::FileInstallWidget(TQWidget * tqparent,
FileInstallWidget::FileInstallWidget(TQWidget * parent,
const TQString & path) :
PilotComponent(tqparent, "component_files", path),
PilotComponent(parent, "component_files", path),
fSaveFileList(false),
fInstaller(0L)
{

@ -48,7 +48,7 @@ Q_OBJECT
TQ_OBJECT
public:
FileInstallWidget(TQWidget* tqparent, const TQString& dbPath);
FileInstallWidget(TQWidget* parent, const TQString& dbPath);
virtual ~FileInstallWidget();
// Pilot Component Methods:

@ -68,7 +68,7 @@
class BackupAction::Thread : public TQThread
{
public:
Thread( BackupAction *tqparent,
Thread( BackupAction *parent,
KPilotLink *link,
const TQString &filename,
const DBInfo *info );
@ -1128,12 +1128,12 @@ void RestoreAction::setDirectory( const TQString &path )
BackupAction::Thread::Thread( BackupAction *tqparent,
BackupAction::Thread::Thread( BackupAction *parent,
KPilotLink *link,
const TQString &filename,
const DBInfo *info )
{
fParent = tqparent;
fParent = parent;
fLink = link;
fFilename = filename;
memcpy(&fDBInfo,info,sizeof(DBInfo));

@ -320,21 +320,21 @@ void KPilotInstaller::slotSelectComponent(PilotComponent *c)
return;
}
TQObject *o = c->tqparent();
TQObject *o = c->parent();
if (!o)
{
WARNINGKPILOT << "Widget has no tqparent." << endl;
WARNINGKPILOT << "Widget has no parent." << endl;
return;
}
TQWidget *tqparent = dynamic_cast<TQWidget *>(o);
if (!tqparent)
TQWidget *parent = dynamic_cast<TQWidget *>(o);
if (!parent)
{
WARNINGKPILOT << "Widget's tqparent is not a widget." << endl;
WARNINGKPILOT << "Widget's parent is not a widget." << endl;
return;
}
int index = fManagingWidget->pageIndex(tqparent);
int index = fManagingWidget->pageIndex(parent);
if (index < 0)
{
@ -741,7 +741,7 @@ void KPilotInstaller::slotResetLink()
/*
** Can't be a member function because it needs to be called even with no KPilotInstaller.
*/
static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *parent)
{
FUNCTIONSETUP;
bool ret = false;
@ -754,7 +754,7 @@ static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
KPilotSettings::self()->readConfig();
KCMultiDialog *options = new KCMultiDialog( KDialogBase::Plain, i18n("Configuration"), tqparent, "KPilotPreferences", true );
KCMultiDialog *options = new KCMultiDialog( KDialogBase::Plain, i18n("Configuration"), parent, "KPilotPreferences", true );
options->addModule( CSL1("kpilot_config.desktop") );
if (!options)
@ -796,7 +796,7 @@ static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
* canceled, though).
*/
typedef enum { Failed, OK, Cancel } WizardResult;
static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *parent)
{
FUNCTIONSETUP;
WizardResult ret = Failed ;
@ -826,7 +826,7 @@ static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
goto sorry;
}
w = f(tqparent,ConfigWizard::Standalone);
w = f(parent,ConfigWizard::Standalone);
if (!w)
{
WARNINGKPILOT << "Can't create wizard." << endl;
@ -847,7 +847,7 @@ static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
sorry:
if (Failed == ret)
{
KMessageBox::sorry(tqparent,
KMessageBox::sorry(parent,
i18n("The library containing the configuration wizard for KPilot "
"could not be loaded, and the wizard is not available. "
"Please try to use the regular configuration dialog."),

@ -52,8 +52,8 @@
#include "kpilotProbeDialog.h"
ConfigWizard::ConfigWizard(TQWidget *tqparent, const char *n, int m) :
KWizard(tqparent, n),
ConfigWizard::ConfigWizard(TQWidget *parent, const char *n, int m) :
KWizard(parent, n),
fMode((Mode)m)
{
// page1=new ConfigWizard_base1(this);

@ -86,8 +86,8 @@ and the module can't be unloaded.
*/
ProbeDialog::ProbeDialog(TQWidget *tqparent, const char *n) :
KDialogBase(tqparent, n, true, i18n("Autodetecting Your Handheld"), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Cancel, true, i18n("Restart Detection")),
ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
KDialogBase(parent, n, true, i18n("Autodetecting Your Handheld"), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Cancel, true, i18n("Restart Detection")),
mDetected(false), mUserName(), mDevice()
{
FUNCTIONSETUP;

@ -36,9 +36,9 @@
#include "listCat.moc"
ListCategorizer::ListCategorizer(TQWidget * tqparent,
ListCategorizer::ListCategorizer(TQWidget * parent,
const char *name) :
KListView(tqparent, name),
KListView(parent, name),
fStartOpen(false)
{
FUNCTIONSETUP;
@ -47,9 +47,9 @@ ListCategorizer::ListCategorizer(TQWidget * tqparent,
ListCategorizer::ListCategorizer(const TQStringList & i,
bool startOpen,
TQWidget * tqparent,
TQWidget * parent,
const char *name) :
KListView(tqparent, name),
KListView(parent, name),
fStartOpen(startOpen)
{
FUNCTIONSETUP;
@ -121,7 +121,7 @@ void ListCategorizer::setupWidget()
return;
}
TQListViewItem *category = p->tqparent();
TQListViewItem *category = p->parent();
if (!category)
{
@ -136,7 +136,7 @@ void ListCategorizer::setupWidget()
FUNCTIONSETUP;
TQListViewItem *p = currentItem();
if (!p || !p->tqparent())
if (!p || !p->parent())
return;
KListView::startDrag();

@ -72,9 +72,9 @@ public:
*
* This creates a new empty ListCategorizer with
* startOpen set to false. The parameters
* @p tqparent and @p name are the usual TQt ones.
* @p parent and @p name are the usual TQt ones.
*/
ListCategorizer(TQWidget *tqparent,
ListCategorizer(TQWidget *parent,
const char *name = 0);
/**
* Constructor.
@ -85,7 +85,7 @@ public:
*/
ListCategorizer(const TQStringList& categories,
bool startOpen,
TQWidget *tqparent,
TQWidget *parent,
const char *name = 0);
/**
@ -201,7 +201,7 @@ private:
class RichListViewItem : public TQListViewItem
{
public:
RichListViewItem(TQListViewItem *tqparent,
RichListViewItem(TQListViewItem *parent,
TQString,
int);
virtual ~RichListViewItem();

@ -94,8 +94,8 @@ PilotListItem::~PilotListItem()
}
#endif
PilotCheckListItem::PilotCheckListItem(TQListView * tqparent, const TQString & text, recordid_t pilotid, void *r) :
TQCheckListItem(tqparent, text, TQCheckListItem::CheckBox),
PilotCheckListItem::PilotCheckListItem(TQListView * parent, const TQString & text, recordid_t pilotid, void *r) :
TQCheckListItem(parent, text, TQCheckListItem::CheckBox),
fid(pilotid),
fr(r)
{
@ -142,10 +142,10 @@ void PilotCheckListItem::stateChange ( bool on)
}
#endif
PilotListViewItem::PilotListViewItem( TQListView * tqparent,
PilotListViewItem::PilotListViewItem( TQListView * parent,
TQString label1, TQString label2, TQString label3, TQString label4,
recordid_t pilotid, void *r):
TQListViewItem(tqparent, label1, label2, label3, label4,
TQListViewItem(parent, label1, label2, label3, label4,
TQString(), TQString(), TQString(), TQString()),
fid(pilotid),
fr(r),

@ -59,7 +59,7 @@ private:
class PilotCheckListItem : public TQCheckListItem
{
public:
PilotCheckListItem( TQListView * tqparent, const TQString & text, recordid_t pilotid=0, void *r=0);
PilotCheckListItem( TQListView * parent, const TQString & text, recordid_t pilotid=0, void *r=0);
virtual ~PilotCheckListItem();
recordid_t id() const {return fid;};
const void *rec() const {return fr;};
@ -85,7 +85,7 @@ struct PilotListViewItemData
class PilotListViewItem : public TQListViewItem
{
public:
PilotListViewItem( TQListView * tqparent,
PilotListViewItem( TQListView * parent,
TQString label1, TQString label2 = TQString(),
TQString label3 = TQString(), TQString label4 = TQString(),
recordid_t pilotid=0, void *r=0);

@ -59,9 +59,9 @@
#define TE_EOL "\n"
LogWidget::LogWidget(TQWidget * tqparent) :
LogWidget::LogWidget(TQWidget * parent) :
DCOPObject("LogIface"),
PilotComponent(tqparent, "component_log", TQString()),
PilotComponent(parent, "component_log", TQString()),
fLog(0L),
fShowTime(false),
fSplash(0L),

@ -74,9 +74,9 @@ public:
} ;
MemoWidget::MemoWidget(TQWidget * tqparent,
MemoWidget::MemoWidget(TQWidget * parent,
const TQString & path) :
PilotComponent(tqparent, "component_memo", path),
PilotComponent(parent, "component_memo", path),
fTextWidget(0L),
d(new Private()),
lastSelectedMemo(-1)
@ -84,7 +84,7 @@ MemoWidget::MemoWidget(TQWidget * tqparent,
FUNCTIONSETUP;
setGeometry(0, 0,
tqparent->tqgeometry().width(), tqparent->tqgeometry().height());
parent->tqgeometry().width(), parent->tqgeometry().height());
setupWidget();
d->fMemoList.setAutoDelete(true);
slotUpdateButtons();

@ -45,7 +45,7 @@ Q_OBJECT
TQ_OBJECT
public:
MemoWidget(TQWidget* tqparent, const TQString& dbpath);
MemoWidget(TQWidget* parent, const TQString& dbpath);
virtual ~MemoWidget();
// Pilot Component Methods:

@ -46,19 +46,19 @@
#include "pilotComponent.moc"
PilotComponent::PilotComponent(TQWidget * tqparent,
PilotComponent::PilotComponent(TQWidget * parent,
const char *id,
const TQString & path) :
TQWidget(tqparent, id),
TQWidget(parent, id),
fDBPath(path),
shown(false)
{
FUNCTIONSETUP;
if (tqparent)
if (parent)
{
resize(tqparent->tqgeometry().width(),
tqparent->tqgeometry().height());
resize(parent->tqgeometry().width(),
parent->tqgeometry().height());
}
}

@ -45,7 +45,7 @@ Q_OBJECT
friend class KPilotInstaller;
public:
PilotComponent(TQWidget* tqparent,
PilotComponent(TQWidget* parent,
const char *id,
const TQString& dbPath);

@ -45,8 +45,8 @@
TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo,
TQWidget * tqparent, const char *name) :
KDialogBase(tqparent, name, false, i18n("To-do Editor"), Ok|Cancel),
TQWidget * parent, const char *name) :
KDialogBase(parent, name, false, i18n("To-do Editor"), Ok|Cancel),
fDeleteOnCancel(p == 0L),
fTodo(p),
fAppInfo(appInfo)
@ -57,7 +57,7 @@ TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo,
setMainWidget(fWidget);
fillFields();
connect(tqparent, TQT_SIGNAL(recordChanged(PilotTodoEntry *)),
connect(parent, TQT_SIGNAL(recordChanged(PilotTodoEntry *)),
this, TQT_SLOT(updateRecord(PilotTodoEntry *)));
}

@ -50,7 +50,7 @@ class TodoEditor : public KDialogBase
public:
TodoEditor(PilotTodoEntry *todo,
struct ToDoAppInfo *appInfo,
TQWidget *tqparent, const char *name=0L);
TQWidget *parent, const char *name=0L);
~TodoEditor();

@ -49,8 +49,8 @@
TodoCheckListItem::TodoCheckListItem(TQListView*tqparent, const TQString&text,
recordid_t pilotid, void*r):PilotCheckListItem(tqparent, text, pilotid, r)
TodoCheckListItem::TodoCheckListItem(TQListView*parent, const TQString&text,
recordid_t pilotid, void*r):PilotCheckListItem(parent, text, pilotid, r)
{
}
@ -63,9 +63,9 @@ void TodoCheckListItem::stateChange(bool state)
TodoWidget::TodoWidget(TQWidget * tqparent,
TodoWidget::TodoWidget(TQWidget * parent,
const TQString & path) :
PilotComponent(tqparent, "component_todo", path),
PilotComponent(parent, "component_todo", path),
fTodoInfo(0L),
fTodoAppInfo(0L),
fTodoDB(0L),

@ -43,7 +43,7 @@ class TodoListView : public KListView
Q_OBJECT
TQ_OBJECT
public:
TodoListView(TQWidget * tqparent = 0, const char * name = 0 ):KListView(tqparent, name){};
TodoListView(TQWidget * parent = 0, const char * name = 0 ):KListView(parent, name){};
~TodoListView() {};
signals:
void itemChecked(TQCheckListItem*item);
@ -59,7 +59,7 @@ public:
class TodoCheckListItem : public PilotCheckListItem
{
public:
TodoCheckListItem(TQListView*tqparent, const TQString&text, recordid_t pilotid, void*r);
TodoCheckListItem(TQListView*parent, const TQString&text, recordid_t pilotid, void*r);
~TodoCheckListItem() {};
virtual void stateChange(bool state);
};
@ -70,7 +70,7 @@ Q_OBJECT
TQ_OBJECT
public:
TodoWidget(TQWidget* tqparent,const TQString& dbpath);
TodoWidget(TQWidget* parent,const TQString& dbpath);
~TodoWidget();
// Pilot Component Methods:

@ -527,9 +527,9 @@ void DeviceCommThread::run()
DEBUGKPILOT << fname << ": comm thread now done..." << endl;
}
KPilotDeviceLink::KPilotDeviceLink(TQObject * tqparent, const char *name,
KPilotDeviceLink::KPilotDeviceLink(TQObject * parent, const char *name,
const TQString &tempDevice) :
KPilotLink(tqparent, name), fLinktqStatus(Init), fWorkaroundUSB(false),
KPilotLink(parent, name), fLinktqStatus(Init), fWorkaroundUSB(false),
fPilotSocket(-1), fTempDevice(tempDevice), fMessages(new Messages(this)), fDeviceCommThread(0L)
{
FUNCTIONSETUP;

@ -82,12 +82,12 @@ public:
* Constructor. Creates a link that can sync to a physical handheld.
* Call reset() on it to start looking for a device.
*
* @param tqparent Parent object.
* @param parent Parent object.
* @param name Name of this object.
* @param tempDevice Path to device node to use as an alternative
* to the "normal" one set by KPilot.
*/
KPilotDeviceLink( TQObject *tqparent = 0,
KPilotDeviceLink( TQObject *parent = 0,
const char *name = 0,
const TQString &tempDevice = TQString() );

@ -109,8 +109,8 @@ private:
class Messages
{
public:
Messages(KPilotDeviceLink *tqparent) :
fDeviceLink(tqparent)
Messages(KPilotDeviceLink *parent) :
fDeviceLink(parent)
{
reset();
}

@ -137,8 +137,8 @@ void TickleThread::run()
KPilotLink::KPilotLink( TQObject *tqparent, const char *name ) :
TQObject( tqparent, name ),
KPilotLink::KPilotLink( TQObject *parent, const char *name ) :
TQObject( parent, name ),
fPilotPath(TQString()),
fPilotUser(0L),
fPilotSysInfo(0L),

@ -178,7 +178,7 @@ public:
typedef TQValueList<struct DBInfo> DBInfoList;
/** Constructor. Use reset() to start looking for a device. */
KPilotLink( TQObject *tqparent = 0, const char *name = 0 );
KPilotLink( TQObject *parent = 0, const char *name = 0 );
/** Destructor. This rudely interrupts any communication in progress.
* It is best to call endOfSync() or finishSync() before destroying

@ -118,8 +118,8 @@ unsigned int KPilotLocalLink::findAvailableDatabases( KPilotLocalLink::Private &
}
KPilotLocalLink::KPilotLocalLink( TQObject *tqparent, const char *name ) :
KPilotLink(tqparent,name),
KPilotLocalLink::KPilotLocalLink( TQObject *parent, const char *name ) :
KPilotLink(parent,name),
fReady(false),
d( new Private )
{

@ -45,7 +45,7 @@ class KDE_EXPORT KPilotLocalLink : public KPilotLink
Q_OBJECT
TQ_OBJECT
public:
KPilotLocalLink( TQObject *tqparent=0L, const char *name=0L );
KPilotLocalLink( TQObject *parent=0L, const char *name=0L );
virtual ~KPilotLocalLink();
virtual TQString statusString() const;

@ -65,9 +65,9 @@
#include "plugin.moc"
ConduitConfigBase::ConduitConfigBase(TQWidget *tqparent,
ConduitConfigBase::ConduitConfigBase(TQWidget *parent,
const char *name) :
TQObject(tqparent,name),
TQObject(parent,name),
fModified(false),
fWidget(0L),
fConduitName(i18n("Unnamed"))
@ -108,11 +108,11 @@ ConduitConfigBase::~ConduitConfigBase()
return true;
}
TQWidget *ConduitConfigBase::aboutPage(TQWidget *tqparent, KAboutData *ad)
TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
{
FUNCTIONSETUP;
TQWidget *w = new TQWidget(tqparent, "aboutpage");
TQWidget *w = new TQWidget(parent, "aboutpage");
TQString s;
TQLabel *text;

@ -82,9 +82,9 @@ Q_OBJECT
public:
/**
* Constructor. Creates a conduit configuration support object
* with the given tqparent @p tqparent and name (optional) @p n.
* with the given parent @p parent and name (optional) @p n.
*/
ConduitConfigBase(TQWidget *tqparent=0L, const char *n=0L);
ConduitConfigBase(TQWidget *parent=0L, const char *n=0L);
/** Destructor. */
virtual ~ConduitConfigBase();
@ -152,10 +152,10 @@ public:
* application's icon. This widget can be used pretty much
* anywhere. Copied from KAboutDialog, mostly.
*
* @param tqparent The widget that holds the about widget.
* @param parent The widget that holds the about widget.
* @param data The KAboutData that is used to populate the widget.
*/
static TQWidget *aboutPage(TQWidget *tqparent, KAboutData *data=0L);
static TQWidget *aboutPage(TQWidget *parent, KAboutData *data=0L);
protected:
/**
@ -444,7 +444,7 @@ namespace PluginUtility
*
* <pre>
* protected:
* virtual TQObject* createObject( TQObject* tqparent = 0,
* virtual TQObject* createObject( TQObject* parent = 0,
* const char* name = 0,
* const char* classname = TQOBJECT_OBJECT_NAME_STRING,
* const TQStringList &args = TQStringList() );

@ -45,26 +45,26 @@ class KPilotLink;
template <class Widget, class Action> class ConduitFactory : public KLibFactory
{
public:
ConduitFactory(TQObject *tqparent = 0, const char *name = 0) :
KLibFactory(tqparent,name)
ConduitFactory(TQObject *parent = 0, const char *name = 0) :
KLibFactory(parent,name)
{ fInstance = new KInstance(name); } ;
virtual ~ConduitFactory()
{ delete fInstance; } ;
protected:
virtual TQObject *createObject(
TQObject* tqparent = 0,
TQObject* parent = 0,
const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() )
{
if (qstrcmp(classname,"ConduitConfigBase")==0)
{
TQWidget *w = dynamic_cast<TQWidget *>(tqparent);
TQWidget *w = dynamic_cast<TQWidget *>(parent);
if (w) return new Widget(w,name);
else
{
WARNINGKPILOT << "Could not cast tqparent to widget." << endl;
WARNINGKPILOT << "Could not cast parent to widget." << endl;
return 0L;
}
}
@ -72,11 +72,11 @@ protected:
if (qstrcmp(classname,"SyncAction")==0)
{
KPilotLink *d = 0L;
if (tqparent) d = dynamic_cast<KPilotLink *>(tqparent);
if (parent) d = dynamic_cast<KPilotLink *>(parent);
if (d || !tqparent)
if (d || !parent)
{
if (!tqparent)
if (!parent)
{
kdDebug() << k_funcinfo << ": Using NULL device." << endl;
}
@ -84,7 +84,7 @@ protected:
}
else
{
WARNINGKPILOT << "Could not cast tqparent to KPilotLink" << endl;
WARNINGKPILOT << "Could not cast parent to KPilotLink" << endl;
return 0L;
}
}

@ -65,11 +65,11 @@ SyncAction::SyncAction(KPilotLink *p,
}
SyncAction::SyncAction(KPilotLink *p,
TQWidget * visibletqparent,
TQWidget * visibleparent,
const char *name) :
TQObject(p, name),
fHandle(p),
fParent(visibletqparent)
fParent(visibleparent)
{
FUNCTIONSETUP;
}

@ -56,7 +56,7 @@ public:
SyncAction(KPilotLink *p,
const char *name=0L);
SyncAction(KPilotLink *p,
TQWidget *visibletqparent,
TQWidget *visibleparent,
const char *name=0L);
~SyncAction();

Loading…
Cancel
Save